1 2011-06-28 Kai Tietz <ktietz@redhat.com>
3 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
6 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
9 with '=' constraint modifier.
10 (*divdf3_vfp): Likewise.
11 ("*mulsf3_vfp"): Likewise.
12 ("*muldf3_vfp"): Likewise.
13 ("*mulsf3negsf_vfp"): Likewise.
14 ("*muldf3negdf_vfp"): Likewise.
16 2011-06-28 Nick Clifton <nickc@redhat.com>
18 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
19 relaxation when performing an incremental link.
21 2011-06-28 Kai Tietz <ktietz@redhat.com>
23 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
24 within BB from last to first.
26 2011-06-28 Joseph Myers <joseph@codesourcery.com>
28 * genattr-common.c: New. Based on genattr.c.
29 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
30 (MOSTLYCLEANFILES): Add insn-attr-common.h.
31 (opts.o): Update dependencies.
32 (.PRECIOUS): Add insn-attr-common.h.
33 (simple_rtl_generated_h): Add insn-attr-common.h.
34 (build/genattr-common.o): New.
35 (genprogrtl): Add attr-common.
36 * genattr.c (main): Include insn-attr-common.h. Don't generate
37 definitions of DELAY_SLOTS or INSN_SCHEDULING.
38 * opts.c: Include insn-attr-common.h instead of rtl.h and
41 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
43 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
44 avr-*-* and avr-*-rtems* targets.
46 * config/avr/elf.h: New file.
47 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
48 (TARGET_ASM_SELECT_SECTION): Define.
49 (INIT_SECTION_ASM_OP): Undefine.
50 (FINI_SECTION_ASM_OP): Undefine.
51 (READONLY_DATA_SECTION_ASM_OP): Undefine.
52 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
53 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
55 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
56 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
57 (MAX_OFILE_ALIGNMENT): Move to elf.h.
58 (STRING_LIMIT): Move to elf.h.
59 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
60 (ASM_DECLARE_OBJECT_NAME): Remove.
62 (ASM_OUTPUT_SKIP): Remove.
63 (DWARF2_DEBUGGING_INFO): Remove.
64 (OBJECT_FORMAT_ELF): Remove.
65 (USER_LABEL_PREFIX): Remove.
66 (ASM_OUTPUT_EXTERNAL): Remove.
67 (ASM_OUTPUT_ASCII): Remove.
68 (TYPE_ASM_OP): Remove.
69 (SIZE_ASM_OP): Remove.
70 (WEAK_ASM_OP): Remove.
71 (STRING_ASM_OP): Remove.
73 (ASM_WEAKEN_LABEL): Remove.
74 (TYPE_OPERAND_FMT): Remove.
75 (ASM_DECLARE_FUNCTION_SIZE): Remove.
76 (ASM_FINISH_DECLARE_OBJECT): Remove.
77 (NO_DOLLAR_IN_LABEL): Remove.
78 (ASM_GENERATE_INTERNAL_LABEL): Remove.
79 (ASM_OUTPUT_CASE_LABEL): Remove.
80 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
81 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
82 (gas_output_ascii): Remove.
83 (gas_output_limited_string): Remove.
84 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
85 * config/avr/avr-protos.h
86 (gas_output_ascii): Remove prototye.
87 (gas_output_limited_string): Remove prototype.
89 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
92 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
95 2011-06-27 Jan Hubicka <jh@suse.cz>
97 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node
98 instead of references in node.
100 2011-06-27 Richard Henderson <rth@redhat.com>
102 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
103 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
106 2011-06-27 Jakub Jelinek <jakub@redhat.com>
108 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
110 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
111 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
112 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
113 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
114 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
115 (evaluate_stmt, execute_fold_all_builtins): Handle
116 BUILT_IN_ASSUME_ALIGNED.
117 * tree-ssa-dce.c (propagate_necessity): Likewise.
118 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
119 call_may_clobber_ref_p_1): Likewise.
120 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
121 (expand_builtin_assume_aligned): New function.
122 * doc/extend.texi (__builtin_assume_aligned): Document.
125 * cselib.c (promote_debug_loc): If cselib_preserve_constants
126 and l has two DEBUG_INSN owned locs instead of just one, adjust
127 the second location's setting_insn too.
129 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
132 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
134 2011-06-27 Nick Clifton <nickc@redhat.com>
136 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
137 convert bit position of highest bit set into a count of the high
140 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
142 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
144 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
147 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
150 2011-06-27 Richard Guenther <rguenther@suse.de>
152 PR tree-optimization/49394
153 * passes.c (execute_one_pass): Restore current_pass after
154 applying IPA transforms.
156 2011-06-27 Kai Tietz <ktietz@redhat.com>
158 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
159 out of type precision after operation.
160 (find_bswap): Take for limit value the integer auto-
161 promotion into account.
163 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
165 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
166 forward scan as well.
168 2011-06-27 Tristan Gingold <gingold@adacore.com>
171 * config/vms/vms-protos.h: New file.
172 * config/vms/vms-crtlmap.map: New file.
173 * config/vms/vms.c: New file.
174 * config/vms/make-crtlmap.awk: New file.
175 * config/vms/vms-crtl.h: File removed.
176 * config/vms/vms-crtl-64.h: File removed.
177 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
178 * config/alpha/vms64.h: Do not include vms-crtl-64.h
179 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
180 clear some builtins on VMS. Calls vms_patch_builtins.
181 (avms_asm_output_external): Remove.
182 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
183 (struct crtl_name_spec): Remove
184 (DO_CTRL_NAMES): Remove.
185 * config/ia64/vms.h (struct crtl_name_spec): Remove
186 (DO_CTRL_NAMES): Remove.
187 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
188 clear some builtins on VMS. Calls vms_patch_builtins.
189 (ia64_asm_output_external): Remove DO_CRTL_NAME.
190 * config/ia64/vms64.h: Do not include vms-crtl-64.h
191 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
194 2011-06-27 Tristan Gingold <gingold@adacore.com>
196 * config/alpha/alpha.c (alpha_end_function): Always generate .end
199 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
201 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
202 the function receives nonlocal gotos.
204 2011-06-27 Richard Guenther <rguenther@suse.de>
206 PR tree-optimization/49536
207 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
208 For non-scalar inner types use a scalar type according to
209 the scalar inner mode.
211 2011-06-27 Richard Guenther <rguenther@suse.de>
213 PR tree-optimization/49365
214 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
216 2011-06-27 Richard Guenther <rguenther@suse.de>
218 PR tree-optimization/49169
219 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
220 the alignment of function decls.
222 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
225 * config/darwin.c (darwin_mergeable_string_section): Place string
226 constants in '.cstring' rather than '.const' when CF/NSStrings are
229 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
231 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
232 (emit_save_register_window): Likewise.
233 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
234 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
235 Swap back %o7/%i7 in register naming.
237 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
240 * config/darwin.c (darwin_override_options): Improve warning when
241 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
242 is given with fpie/fPIE.
243 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
244 * config/darwin9.h (PIE_SPEC): New.
246 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
248 * timevar.c (timevar_print): Increase width for display of timevar
251 2011-06-24 Jakub Jelinek <jakub@redhat.com>
254 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
255 instead of TYPE_CHAIN for chain_next for types.
257 2011-06-24 Richard Henderson <rth@redhat.com>
259 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
260 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
261 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
262 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
263 (sparc_flat_expand_prologue): Emit individual instructions
264 instead of one of the above.
266 2011-06-24 Easwaran Raman <eraman@google.com>
268 PR rtl-optimization/49429
270 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
271 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
272 used to copy y into x.
273 * calls.c (initialize_argument_information): Mark
274 an argument addressable if it is passed by invisible reference.
275 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
276 if it is passed by reference.
278 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
280 PR rtl-optimization/49504
281 * rtlanal.c (nonzero_bits1): Properly handle addition or
282 subtraction of a pointer in Pmode if pointers extend unsigned.
283 (num_sign_bit_copies1): Likewise.
285 2011-06-24 Martin Jambor <mjambor@suse.cz>
287 PR tree-optimizations/49516
288 * tree-sra.c (sra_modify_assign): Choose the safe path for
289 aggregate copies if we also did scalar replacements.
291 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
294 * config/arm/predicates.md (add_operator): New.
295 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
298 2011-06-24 Andi Kleen <ak@linux.intel.com>
300 * tree-sra.c (type_internals_preclude_sra_p): Add msg
301 parameter. Split up ifs and report reason in *msg.
303 (find_var_candiate): Add msg variable.
304 Split up ifs and report reason to reject.
305 (find_param_candidates): Add msg variable.
306 Pass msg to type_internals_preclude_sra_p.
308 2011-06-23 Jeff Law <law@redhat.com>
311 * reload.h (reload): Change to return a bool.
312 * ira.c (ira): If requested by reload, run a fast DCE pass after
313 reload has completed. Fix comment typo.
314 * reload1.c (need_dce): New file scoped static.
315 (reload): Set reload_completed here. Return whether or not a DCE
316 pass after reload is needed.
317 (delete_dead_insn): Set need_dce as needed.
320 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
321 to detect threading through joiner block. If there was already
322 an edge to the new target, then do not change the PHI nodes.
324 2011-06-23 Jakub Jelinek <jakub@redhat.com>
326 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
327 get_pointer_alignment to see if base isn't sufficiently aligned.
329 2011-06-23 Jan Hubicka <jh@suse.cz>
331 PR tree-optimize/49373
332 * tree-pass.h (all_late_ipa_passes): Declare.
333 * cgraphunit.c (init_lowered_empty_function): Fix properties.
334 (cgraph_optimize): Execute late passes; remove unreachable funcions after
336 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
337 * passes.c (all_late_ipa_passes): Declare.
338 (dump_passes, register_pass): Handle late ipa passes.
339 (init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
340 at beggining of all_passes.
341 (apply_ipa_transforms): New function.
342 (execute_one_pass): When doing simple ipa pass, apply all transforms.
344 2011-06-23 Joseph Myers <joseph@codesourcery.com>
346 * params.c: Include common/common-target.h. Don't include tm.h.
347 (lang_independent_params): Move from toplev.c.
348 (global_init_params): New.
349 * params.h (global_init_params): Declare.
350 * target.def (default_params): Move to common-target.def.
351 * toplev.c (lang_independent_options): Remove.
352 (lang_independent_params): Move to params.c.
353 (general_init): Use global_init_params.
354 * common/common-target.def (option_default_params): Move from
356 * common/config/ia64/ia64-common.c: Include params.h.
357 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
359 * common/config/rs6000/rs6000-common.c: Include params.h.
360 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
362 * common/config/sh/sh-common.c: Include params.h.
363 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
365 * common/config/spu/spu-common.c: Include params.h.
366 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
368 * config/ia64/ia64.c (ia64_option_default_params,
369 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
370 * config/rs6000/rs6000.c (rs6000_option_default_params,
371 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
372 * config/sh/sh.c (sh_option_default_params,
373 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
374 * config/spu/spu.c (spu_option_default_params,
375 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
376 * Makefile.in (OBJS): Remove params.o.
377 (OBJS-libcommon-target): Add params.o.
378 (params.o, $(common_out_object_file)): Update dependencies.
379 * doc/tm.texi: Regenerate.
381 2011-06-23 Alan Modra <amodra@gmail.com>
384 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
385 invocation for 2011-06-09 changes.
387 2011-06-22 Jakub Jelinek <jakub@redhat.com>
390 * omp-low.c (expand_omp_for_static_nochunk): Only
391 use n ceil/ nthreads size for the first
392 n % nthreads threads in the team instead of
393 all threads except for the last few ones which
394 get less work or none at all.
397 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
400 2011-06-22 Richard Guenther <rguenther@suse.de>
402 PR tree-optimization/49493
403 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
404 Refer to the alias target of variables.
405 (associate_varinfo_to_alias_1): Remove.
406 (ipa_pta_execute): Do not associate aliases with anything.
407 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
408 (cgraph_function_node): Likewise.
409 (cgraph_function_or_thunk_node): Likewise.
410 (varpool_variable_node): Likewise.
412 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
414 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
416 * config.gcc (arm*-*-linux*): Default to gnu tls.
417 (arm*-*-*): Add --with-tls option.
418 (all_defaults): Add 'tls'.
420 2011-06-22 Richard Henderson <rth@redhat.com>
422 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
423 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
424 (dwarf2out_frame_debug_cfa_window_save): Rename from
425 dwarf2out_window_save; make static.
426 * tree.h (dwarf2out_window_save): Don't declare.
428 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
429 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
430 (emit_save_register_window): Rename from gen_save_register_window;
431 emit the insn and add REG_CFA_* notes.
432 (sparc_expand_prologue): Update to match.
433 * config/sparc/sparc.md (save_register_window_1): Simplify from
434 save_register_window<P:mode>.
436 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
439 * config/i386/i386.md (*lea_general_2): Always allow SImode.
440 (*lea_general_2_zext): Likewise.
441 (imul to lea peepholes): Use const359_operand and check
442 TARGET_PARTIAL_REG_STALL.
444 * config/i386/predicates.md (const359_operand): New.
446 2011-06-22 Michael Matz <matz@suse.de>
448 * cgraphunit.c (assemble_thunk): Use correct return type.
450 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
451 Dmitry Melnik <dm@ispras.ru>
453 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
454 (neon_output_shift_immediate): Ditto.
455 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
457 (neon_output_shift_immediate): Ditto.
458 * config/arm/neon.md (vashl<mode>3): Modified constraint.
459 (vashr<mode>3_imm): New insn pattern.
460 (vlshr<mode>3_imm): Ditto.
461 (vashr<mode>3): Modified constraint.
462 (vlshr<mode>3): Ditto.
463 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
465 (imm_for_neon_rshift_operand): Ditto.
466 (imm_lshift_or_reg_neon): Ditto.
467 (imm_rshift_or_reg_neon): Ditto.
469 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
471 2011-06-22 Jakub Jelinek <jakub@redhat.com>
473 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
474 builtin calls even if likelyvalue is not CONSTANT.
475 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
476 Return get_value_for_expr of first operand
477 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
478 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
479 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
480 their non-checking counterparts.
481 (call_may_clobber_ref_p_1): Likewise.
482 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
483 like their non-checking counterparts.
484 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
485 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
486 like their non-checking counterparts.
487 (find_func_clobbers): Likewise.
488 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
489 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
491 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
492 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
493 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
494 of base type reference as argument.
495 (resolve_addr_in_expr): Likewise. Fix keep computation.
496 (convert_descriptor_to_signed): Renamed to...
497 (convert_descriptor_to_mode): ... this. For wider types convert
498 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
500 (typed_binop): New function.
501 (scompare_loc_descriptor, ucompare_loc_descriptor,
502 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
503 default to unsigned type instead of signed.
506 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
507 (gimple_build_debug_source_bind_stat): New prototype.
508 (gimple_build_debug_source_bind): Define.
509 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
510 gimple_debug_source_bind_get_value,
511 gimple_debug_source_bind_get_value_ptr,
512 gimple_debug_source_bind_set_var,
513 gimple_debug_source_bind_set_value): New inlines.
514 * gimple.c (gimple_build_debug_source_bind_stat): New function.
515 * gimple-pretty-print.c (dump_gimple_debug): Handle
516 GIMPLE_DEBUG_SOURCE_BIND.
517 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
518 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
519 * tree-parloops.c (eliminate_local_variables,
520 separate_decls_in_region): Likewise.
521 (separate_decls_in_region_debug): Renamed from
522 separate_decls_in_region_debug_bind. Handle
523 gimple_debug_source_bind_p.
524 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
526 (DECL_HAS_DEBUG_ARGS_P): Define.
527 (struct tree_function_decl): Add has_debug_args_flag field.
528 * tree.c (debug_args_for_decl): New variable.
529 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
530 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
531 (rewrite_debug_stmt_uses): New function.
532 (rewrite_stmt): Use it to rewrite debug stmt uses.
533 * rtl.def (DEBUG_PARAMETER_REF): New.
534 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
535 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
537 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
538 * print-rtl.c (print_rtx): Likewise.
539 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
540 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
541 debug stmts in the first bb.
542 * tree-inline.c (remap_ssa_name): If remapping default def
543 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
544 a source bind debug stmt.
545 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
546 (maybe_move_debug_stmts_to_successors): Likewise.
547 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
548 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
549 debug args vector from old_decl to new_decl.
550 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
551 or modified parameters, add debug bind stmts before call
552 setting DEBUG_EXPR_DECL which is remembered in debug args
554 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
555 on DECL_DEBUG_EXPRs from debug args vector.
556 (expand_debug_source_expr): New function.
557 (expand_debug_locations): Use it for source bind insns.
558 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
559 * var-tracking.c (prepare_call_arguments): Add debug args
560 to call_arguments if any.
561 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
562 output_loc_operands, output_loc_operands_raw,
563 resolve_addr_in_expr, compare_loc_operands): Handle
564 DW_OP_GNU_parameter_ref.
565 (get_ref_die_offset, parameter_ref_descriptor): New functions.
566 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
567 (gen_subprogram_die): Handle parameters identified by
570 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
572 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
573 * doc/install.texi (Configuration): Document --with-tls.
574 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
575 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
576 (arm_tls_descseq_addr): New.
577 (legitimize_tls_address): Add tlsdesc support.
578 (arm_cannot_copy_insn_p): Check for tlscall.
579 (arm_emit_tls_decoration): Likewise.
580 * config/arm/arm.h (TARGET_GNU2_TLS): New.
581 (OPTION_DEFAULT_SPECS): Add with-tls support.
582 * config/arm/arm.md (R1_REGNUM): Define.
584 * config/arm/arm.opt (tls_type): New enumeration type and values.
585 (mtls-dialect): New switch.
586 * config/arm/arm-opts.h (enum tls_type): New.
588 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
590 * attribs.c (register_attribute): Added assert to check that all
591 attribute specs are registered with a name that is not empty and
592 does not start with '_'.
593 (decl_attributes): Avoid the lookup of the "naked" attribute spec
594 if the function has no attributes.
595 * tree.c (is_attribute_with_length_p): Removed.
596 (is_attribute_p): Removed.
597 (private_is_attribute_p): New.
598 (private_lookup_attribute): New.
599 (lookup_attribute): Removed.
600 (lookup_ident_attribute): New.
601 (remove_attribute): Require the first argument to be in the form
602 'text', not '__text__'. Updated asserts.
603 (merge_attributes): Use lookup_ident_attributes instead of
605 (merge_dllimport_decl_attributes): Use remove_attribute.
606 (attribute_list_contained): Likewise.
607 (attribute_list_equal): Immediately return 1 if the arguments are
609 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
610 'int'. Require the first argument to be in the form 'text', not
611 '__text__'. Require the second argument to be an identifier.
612 (lookup_attribute): Made inline. Require the first argument to be
613 in the form 'text', not '__text__'.
614 (private_is_attribute_p, private_lookup_attribute): New.
617 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
619 * builtins.c: Add sync_ or SYNC__ to builtin names.
620 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
621 * omp-low.c: Add sync_ or SYNC__ to builtin names.
623 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
626 * config/avr/avr.md (extzv): New expander.
628 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
629 * config/avr/constraints.md (C04): New constraint.
630 * doc/md.texi (Machine Constraints): Document it.
632 2011-06-21 Jakub Jelinek <jakub@redhat.com>
635 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
636 unsignedp argument instead of 1 for clrsb_optab.
637 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
638 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
639 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
640 * optabs.c (widen_leading): Call widen_operand and expand_unop
641 with 0 as unsignedp argument instead of 1 for clrsb_optab.
642 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
644 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
646 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
648 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
650 * gensupport.c (add_define_attr): New static function.
651 (is_predicable): Allow multi-alternative lists for the "predicable"
653 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
654 (process_one_cond_exec): Call alter_attrs_for_insn.
655 * doc/md.texi (Defining Attributes): Mention some standard names.
656 (Conditional Execution): Update documentation for "predicable".
658 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
659 __builtin_clrsbll): Document.
660 * doc/rtl.texi (clrsb): New entry.
661 * optabs.c (widen_leading): Renamed from widen_clz. New argument
662 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
663 (expand_unop): Handle clrsb_optab.
664 (init_optabs): Initialize it.
665 * optabs.h (enum optab_index): New entry OTI_clrsb.
666 (clrsb_optab): Define.
667 * genopinit.c (optabs): Add an entry for it.
668 * builtins.c (expand_builtin): Handle clrsb builtin functions.
669 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
670 BUILT_IN_CLRSBLL): New.
671 * rtl.def (CLRSB): New code.
672 * dwarf2out.c (mem_loc_descriptor): Handle it.
673 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
674 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
676 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
677 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
678 (__ctzDI2): Move declaration.
679 * config/bfin/bfin.md (clrsbsi2): New expander.
680 (signbitssi2): Use the CLRSB rtx.
681 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
682 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
684 2011-06-21 Richard Guenther <rguenther@suse.de>
686 * ipa-inline-transform.c (inline_transform): Fix previous change.
688 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
690 PR tree-optimization/49478
691 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
692 with constant operand.
694 2011-06-21 Richard Guenther <rguenther@suse.de>
696 * ipa-inline-transform.c (inline_transform): Fix typo.
698 2011-06-21 Richard Guenther <rguenther@suse.de>
700 PR tree-optimization/49483
701 * tree-vect-stmts.c (vectorizable_assignment): Also handle
702 VIEW_CONVERT_EXPR conversions.
704 2011-06-21 Joseph Myers <joseph@codesourcery.com>
706 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
707 * config/avr/avr-tables.opt: New file (generated).
708 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
709 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
711 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
712 (avr_option_override): Don't process -mmcu= argument here. Set
713 avr_current_device using avr_mcu_index.
714 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
715 * config/avr/avr.opt (mmcu=): Use Enum.
716 * config/avr/t-avr (avr-devices.o): Update dependencies.
717 ($(srcdir)/config/avr/avr-tables.opt): New.
718 * target.def (help): Remove.
719 * doc/tm.texi.in (TARGET_HELP): Remove.
720 * doc/tm.texi: Regenerate.
721 * opts.c: Don't include target.h.
722 (common_handle_option): Don't call targetm.help.
723 * system.h (TARGET_HELP): Poison.
724 * Makefile.in (opts.o): Update dependencies.
726 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
728 * config/usegld.h: New file.
729 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
730 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
731 (LIB_SPEC): Likewise. Search /lib.
732 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
733 (RDYNAMIC_SPEC): Handle GNU ld.
734 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
736 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
737 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
738 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
739 (STACK_CHECK_STATIC_BUILTIN): Define.
740 * config/sol2.opt (compat-bsd): Remove.
741 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
742 * config/sol2-bi.h: New file.
743 * config/sol2-gld.h: Remove.
744 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
745 (NO_DBX_BNSYM_ENSYM): Remove.
746 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
747 (STACK_CHECK_STATIC_BUILTIN): Remove.
748 Test USE_GLD instead of TARGET_GNU_LD.
749 * config/i386/sol2-10.h: Rename to ...
750 * config/i386/sol2-bi.h .. this.
751 (SUBTARGET_EXTRA_SPECS): Redefine.
752 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
753 (MULTILIB_DEFAULTS): Remove.
754 (DEFAULT_ARCH32_P): Define.
755 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
756 (ARCH64_SUBDIR): Define.
757 Test USE_GLD instead of TARGET_GNU_LD.
758 (I386_EMULATION): Rename to ...
759 (ARCH32_EMULATION): ... this.
760 (X86_64_EMULATION): Rename to ...
761 (ARCH64_EMULATION): ... this.
762 (TARGET_LD_EMULATION): Remove.
763 (LINK_ARCH_SPEC): Remove.
764 * config/i386/sol2-gas.h: Remove.
765 * config/i386/t-sol2-10: Rename to ...
766 * config/i386/t-sol2-64: ... this.
767 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
768 (AS_SPARC64_FLAG): Define.
769 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
770 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
771 depending on TARGET_CPU_DEFAULT.
772 (CPP_CPU_SPEC): Redefine.
773 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
774 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
775 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
776 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
777 ASM_ARCH_DEFAULT_SPEC): Redefine.
778 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
779 LINK_ARCH_DEFAULT_SPEC.
780 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
781 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
782 (ARCH64_SUBDIR): Define.
783 (LINK_ARCH64_SPEC): Redefine.
784 (CC1_SPEC): Redefine.
785 (OPTION_DEFAULT_SPECS): Redefine.
786 (MULTILIB_DEFAULTS): Define.
787 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
788 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
789 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
790 (NO_DBX_BNSYM_ENSYM): Remove.
791 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
792 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
793 (TARGET_ASM_NAMED_SECTION): Likewise.
794 (STACK_CHECK_STATIC_BUILTIN): Remove.
795 * config/sparc/sol2-bi.h: Remove.
796 * config/sparc/sol2-gas-bi.h: Remove.
797 * config/sparc/sol2-gas.h: Remove.
798 * config/sparc/sol2-gld-bi.h: Remove.
799 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
801 (*-*-solaris2*): ... here.
803 2011-06-21 Christian Bruel <christian.bruel@st.com>
806 * ipa-inline.c (can_inline_edge_p): Check
807 !DECL_DISREGARD_INLINE_LIMITS.
809 2011-06-21 Christian Bruel <christian.bruel@st.com>
812 * cgraphunit.c (process_function_and_variable_attributes): warn when
813 always_inline functions that are not inline.
814 * ipa-inline-transform.c (inline_transform): Always call
816 * tree-inline.c (tree_inlinable_function_p): Use error instead
818 (expand_call_inline): Likewise.
820 2011-06-21 Jakub Jelinek <jakub@redhat.com>
822 * Makefile.in (dg_target_exps): Set.
823 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
824 instead of 7, try to divide it more evenly.
826 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
829 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
830 (avx256_split_unaligned_store): New definition.
831 (ix86_option_override_internal): Enable avx256 unaligned load/store
832 splitting only when avx256_split_unaligned_load/store is set.
834 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
836 * regrename.c (scan_rtx_reg): Handle the case where we write to an
837 open chain in a smaller mode without failing the entire block.
839 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
842 * combine.c (cant_combine_insn_p): Don't check zero/sign
843 extended hard registers.
845 2011-06-21 Alan Modra <amodra@gmail.com>
847 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
848 CONST high part large-toc address.
849 (rs6000_tls_referenced_p): Make static.
850 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
852 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
855 * combine.c (cant_combine_insn_p): Check zero/sign extended
858 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
861 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
862 one of the operands is a register.
864 2011-06-20 Kai Tietz <ktietz@redhat.com>
866 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
867 operations in combination with binary and.
869 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
871 * regrename.c (do_replace): Don't update notes.
873 2011-06-20 Alan Modra <amodra@gmail.com>
875 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
876 of toc-relative address in CONST.
877 (rs6000_delegitimize_address): Recognize changed address.
878 (rs6000_legitimize_reload_address): Likewise.
879 (rs6000_emit_move): Don't force these constants to memory.
880 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
881 toc-relative address in CONST.
882 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
883 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
885 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
887 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
888 (count_trailing_zeros): Likewise.
890 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
893 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
894 .init_array can be used with .ctors on targets.
895 * configure: Regenerated.
897 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
899 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
900 if the element type is volatile.
902 2011-06-18 Jan Hubicka <jh@suse.cz>
904 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
906 (lto_symtab_resolve_can_prevail_p): Likewise.
907 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
908 * cgraphbuild.c (record_reference): Remove extra body alias code.
909 (mark_load): Likewise.
910 (mark_store): Likewise.
911 * cgraph.h (varpool_node): Remove extra_name filed;
912 add alias_of and extraname_alias.
913 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
914 (varpool_alias_aliased_node): New inline function.
915 (varpool_variable_node): New function.
916 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
917 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
918 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
919 (input_varpool_node): Likewise.
920 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
921 (varpool_externally_visible_p): Remove extra body alias code.
922 (function_and_variable_visibility): Likewise.
923 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
924 (ipa_pta_execute): Use it.
925 * varpool.c (varpool_remove_node): Remove extra name alias code.
926 (varpool_mark_needed_node): Likewise.
927 (varpool_analyze_pending_decls): Analyze aliases.
928 (assemble_aliases): New functoin.
929 (varpool_assemble_decl): Use it.
930 (varpool_create_variable_alias): New function.
931 (varpool_extra_name_alias): Rewrite.
932 (varpool_for_node_and_aliases): New function.
934 2011-06-18 Jakub Jelinek <jakub@redhat.com>
937 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
938 last_arg_constant and last argument doesn't match its predicate,
939 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
940 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
941 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
942 spelling of error message.
943 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
944 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
945 const_0_to_255_operand instead of const_int_operand.
948 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
950 * config/i386/sse.md (blendbits): Remove mode attribute.
951 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
952 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
953 Check integer value of operand 3 in insn constraint.
955 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
957 PR rtl-optimization/48542
958 * reload.c (find_equiv_reg): Stop looking when finding a
960 * reload1.c (reload_as_needed): Invalidate all reload
961 registers when crossing a setjmp-type call.
963 2011-06-16 Jeff Law <law@redhat.com>
965 * tree-ssa-threadupdate.c (struct redirection_data): New field
967 (THREAD_TARGET2): Define.
968 (redirection_data_eq): Also check that the intermediate edge is equal.
969 (lookup_redirection_data): Drop useless argument. Extract the
970 outgoing_edge and intermediate edge from E. Callers updated.
971 (copy_phi_args, update_destination_phis): New functions.
972 (fix_duplicate_block_edges): Likewise.
973 (create_edge_and_update_destination_phis): Duplicate all the edges
974 hung off e->aux. Use copy_phi_args.
975 (create_duplicates): Use fix_duplicate_block_edges.
976 (fixup_template_block): Likewise.
977 (redirect_edges): If necessary, redirect the joiner block's incoming
978 edge to the duplicate of the joiner block.
979 (thread_block): Don't muck up loops when threading through a joiner
981 (thread_through_loop_header): Handle threading through a joiner block.
982 (mark_threaded_blocks, register_jump_thread): Likewise.
983 * tree-flow.h (register_jump_thread): Add new argument. Callers
985 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
986 (thread_across_edge): Handle threading through a joiner block.
988 2011-06-16 Martin Jambor <mjambor@suse.cz>
990 PR tree-optimization/49343
991 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
992 calculate offset, provide 2nd operand for the new COMPONENT_REF.
994 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
996 * config/darwin-protos.h (machopic_select_rtx_section): Move to
997 inside RTX_CODE ifdef.
999 2011-06-16 Tom de Vries <tom@codesourcery.com>
1002 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1003 Disallow NULL pointer for pointer arithmetic.
1005 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1009 2011-06-10 Wei Guozhi <carrot@google.com>
1012 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1013 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1014 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1016 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1018 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1019 (arm_legitimate_ldrd_p): New prototype.
1020 (arm_output_ldrd): New prototype.
1021 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1022 (arm_legitimate_ldrd_p): New function.
1023 (arm_output_ldrd): New function.
1025 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1028 * doc/tm.texi.in: Update Copyright date.
1029 * doc/tm.texi: Regenerate.
1030 * targhooks.c (default_setup_incoming_varargs): Replace
1031 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1032 (default_pretend_outgoing_varargs_named): Likewise.
1033 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1034 (hook_callee_copies_named): Likewise.
1035 (default_function_arg_advance): Likewise.
1036 (default_function_arg): Likewise.
1037 (default_function_incoming_arg): Likewise.
1038 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1039 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1040 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1041 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1042 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1043 * targhooks.h (default_setup_incoming_varargs): Likewise.
1044 (default_pretend_outgoing_varargs_named): Likewise.
1045 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1046 (hook_callee_copies_named): Likewise.
1047 (default_function_arg_advance): Likewise.
1048 (default_function_arg): Likewise.
1049 (default_function_incoming_arg): Likewise.
1050 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1051 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1052 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1053 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1054 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1055 * target.def (pass_by_reference): Likewise.
1056 (setup_incoming_varargs, strict_argument_naming): Likewise.
1057 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1058 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1059 (function_incoming_arg): Likewise.
1060 * target.h: Don't include "tm.h" .
1061 (cumulative_args_t): New typedef.
1062 [GCC_TM_H] (get_cumulative_args): New static inline function.
1063 [GCC_TM_H] (pack_cumulative_args): Likewise.
1064 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1065 argument type with cumulative_args_t.
1066 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1067 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1068 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1069 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1070 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1071 (frv_function_arg_1): Likewise.
1072 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1073 (s390_function_arg_advance, s390_function_arg): Likewise.
1074 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1075 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1076 (m32c_strict_argument_naming): Likewise.
1077 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1078 (spu_function_arg_advance): Likewise.
1079 (spu_setup_incoming_varargs): Likewise. Make static.
1080 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1082 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1083 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1084 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1085 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1086 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1087 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1088 (mep_pass_by_reference, mep_function_arg): Likewise.
1089 (mep_function_arg_advance): Likewise.
1090 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1091 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1092 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1093 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1094 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1095 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1096 (ix86_setup_incoming_varargs): Likewise.
1097 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1098 (sh_strict_argument_naming): Likewise.
1099 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1100 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1101 (sh_function_arg_advance, sh_function_arg): Likewise.
1102 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1103 (pdp11_function_arg_advance): Likewise.
1104 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1106 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1107 * config/avr/avr.c (avr_function_arg): Likewise.
1108 (avr_function_arg_advance): Likewise.
1109 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1110 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1111 (xtensa_function_arg_1): Likewise.
1112 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1114 (xstormy16_function_arg): Likewise.
1115 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1116 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1117 (fr30_function_arg_advance): Likewise.
1118 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1119 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1120 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1121 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1122 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1123 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1124 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1125 (cris_function_arg, cris_function_incoming_arg): Likewise.
1126 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1127 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1128 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1129 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1130 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1131 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1132 (mn10300_arg_partial_bytes): Likewise.
1133 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1134 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1135 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1136 (ia64_function_arg_1): Likewise.
1137 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1138 (m68k_function_arg): Likewise.
1139 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1140 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1141 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1142 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1143 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1144 (picochip_arg_advance): Likewise.
1145 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1146 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1147 (mcore_function_arg_advance): Likewise.
1148 * config/score/score.c (score_pass_by_reference): Likewise.
1149 (score_function_arg_advance): Likewise.
1150 (score_arg_partial_bytes): Likewise. Make static.
1151 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1152 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1153 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1154 (arm_function_arg, arm_function_arg_advance): Likewise.
1155 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1156 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1157 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1158 (pa_function_arg): Likewise.
1159 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1160 (mips_function_arg, mips_function_arg_advance): Likewise.
1161 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1162 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1163 * config/vax/vax.c (vax_function_arg): Likewise.
1164 (vax_function_arg_advance): Likewise.
1165 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1166 (h8300_function_arg_advance): Likewise.
1167 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1168 (v850_strict_argument_naming, v850_function_arg): Likewise.
1169 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1170 (v850_setup_incoming_varargs): Likewise.
1171 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1172 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1173 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1174 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1176 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1177 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1178 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1179 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1180 * calls.c (emit_call_1): Change type of args_so_far to
1181 cumulative_args_t. Changed all callers.
1182 (initialize_argument_information): Likewise.
1183 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1184 * dse.c (get_call_args): Likewise.
1185 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1186 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1187 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1188 New member args_so_far_v. Changed all users.
1189 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1190 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1191 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1192 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1193 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1194 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1196 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1197 m32r_pass_by_reference.
1199 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1201 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1202 argument to be a VEC of statements.
1203 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1204 assert that pattern statements have to have their vector type set.
1205 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1206 Change the first argument to be a VEC of statements. Update
1208 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1209 (vect_handle_widen_mult_by_const): New function.
1210 (vect_recog_widen_mult_pattern): Change the first argument to be a
1211 VEC of statements. Update documentation. Check that the constant is
1212 INTEGER_CST. Support multiplication by a constant that fits an
1213 intermediate type - call vect_handle_widen_mult_by_const.
1214 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1215 call. Handle additional pattern statements if necessary.
1217 2011-06-16 Nick Clifton <nickc@redhat.com>
1220 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1221 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1222 md_file, extra_modes, out_file and extra_options are these are all
1223 deduced from cpu_type.
1225 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1227 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1228 truncation mask to 63.
1230 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1234 * longlong.h: Add AVR support:
1235 (count_leading_zeros): New macro.
1236 (count_trailing_zeros): New macro.
1237 (COUNT_LEADING_ZEROS_0): New macro.
1238 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1239 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1240 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1241 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1242 (LIB2FUNCS_EXCLUDE): Add _clz.
1243 * config/avr/libgcc.S (XCALL): Move up in file.
1244 (XJMP): New C Macro.
1245 (DEFUN): New asm macro.
1246 (ENDF): New asm macro.
1247 (__ffssi2): New function.
1248 (__ffshi2): New function.
1249 (__loop_ffsqi2): New function.
1250 (__ctzsi2): New function.
1251 (__ctzhi2): New function.
1252 (__clzdi2): New function.
1253 (__clzsi2): New function.
1254 (__clzhi2): New function.
1255 (__paritydi2): New function.
1256 (__paritysi2): New function.
1257 (__parityhi2): New function.
1258 (__parityqi2): New function.
1259 (__popcounthi2): New function.
1260 (__popcountsi2): New function.
1261 (__popcountdi2): New function.
1262 (__popcountqi2): New function.
1263 (__bswapsi2): New function.
1264 (__bswapdi2): New function.
1265 (__ashldi3): New function.
1266 (__ashrdi3): New function.
1267 (__lshrdi3): New function.
1268 Fix suspicous lines.
1270 2011-06-16 Richard Guenther <rguenther@suse.de>
1272 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1274 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1276 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1277 equality compares against zero for the lower bit.
1279 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1281 PR tree-optimization/49419
1282 * tree-vrp.c (execute_vrp): Call init_range_assertions
1283 before estimate_numbers_of_iterations, call
1284 free_number_of_iterations_estimates before calling
1285 remove_range_assertions.
1287 2011-06-16 Revital Eres <revital.eres@linaro.org>
1289 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1290 (struct partial_schedule): Add rows_length field.
1291 (verify_partial_schedule): Check rows_length.
1292 (ps_insert_empty_row): Handle rows_length.
1293 (create_partial_schedule): Likewise.
1294 (free_partial_schedule): Likewise.
1295 (reset_partial_schedule): Likewise.
1296 (create_ps_insn): Remove rest_count argument.
1297 (remove_node_from_ps): Update rows_length.
1298 (add_node_to_ps): Update rows_length and call create_ps_insn
1299 without passing row_rest_count.
1300 (rotate_partial_schedule): Update rows_length.
1302 2011-06-16 Revital Eres <revital.eres@linaro.org>
1304 * ddg.c (add_intra_loop_mem_dep): New function.
1305 (build_intra_loop_deps): Call it.
1307 2011-06-13 Jeff Law <law@redhat.com>
1309 * df-problems.c (df_lr_local_compute): Manually CSE
1310 PIC_OFFSET_TABLE_REGNUM.
1311 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1312 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1314 2011-06-13 Jan Hubicka <jh@suse.cz>
1316 * cgraphunit.c (handle_alias_pairs): New function.
1317 (cgraph_finalize_compilation_unit): Use it.
1318 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1319 as externally visible.
1321 2011-06-15 Richard Guenther <rguenther@suse.de>
1323 * expr.c (expand_expr_real_2): Reduce all integral types to
1325 (expand_expr_real_1): Likewise.
1327 2011-06-15 Martin Jambor <mjambor@suse.cz>
1329 PR tree-optimization/48613
1330 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1331 ipa_node_params_vector is NULL.
1333 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1336 * dwarf2out.c (dw_loc_list_node): Add force field.
1337 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1338 location in the list, even if it is modified before first real insn.
1339 (output_loc_list): Emit empty ranges with force flag set.
1340 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1342 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1345 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1346 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1347 above a fence. Update comments.
1348 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1349 placed just above it. Do not allow NULL place_to_insert.
1351 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1353 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1354 (slpeel_tree_peel_loop_to_edge): Don't call
1355 remove_dead_stmts_from_loop.
1356 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1357 remove irrelevant pattern statements. For irrelevant statements
1358 check if it is the last statement of a detected pattern, use
1359 corresponding pattern statement instead.
1360 (destroy_loop_vec_info): No need to remove pattern statements,
1361 only free stmt_vec_info.
1362 (vect_transform_loop): For irrelevant statements check if it is
1363 the last statement of a detected pattern, use corresponding
1364 pattern statement instead.
1365 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1366 pattern statements. Set basic block for the new statement.
1367 (vect_pattern_recog): Update documentation.
1368 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1369 operands of pattern statements.
1370 (vectorizable_call): Fix printing. In case of a pattern statement
1371 use the lhs of the original statement when creating a dummy
1372 statement to replace the original call.
1373 (vect_analyze_stmt): For irrelevant statements check if it is
1374 the last statement of a detected pattern, use corresponding
1375 pattern statement instead.
1376 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1377 statements use gsi of the original statement.
1379 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1381 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1382 common/common-target-def.h.
1383 * target.def (default_target_flags, handle_option,
1384 supports_split_stack, optimization_table, init_struct,
1385 except_unwind_info, unwind_tables_default, have_named_sections):
1386 Move to common/common-target.def.
1387 * target.h (enum opt_levels, struct default_options): Move to
1388 common/common-target.h.
1389 * targhooks.c (default_except_unwind_info,
1390 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1391 default_target_handle_option, empty_optimization_table): Move to
1392 common/common-targhooks.c.
1393 * targhooks.h (default_except_unwind_info,
1394 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1395 default_target_handle_option, empty_optimization_table): Move to
1396 common/common-targhooks.h.
1397 * common/common-target-def.h: Include common/common-targhooks.h.
1398 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1400 * common/common-target.def (handle_option, option_init_struct,
1401 option_optimization_table, default_target_flags,
1402 except_unwind_info, supports_split_stack, unwind_tables_default,
1403 have_named_sections): Move from target.def.
1404 (HOOK_PREFIX): Undefine at end of file.
1405 * common/common-target.h: Include input.h.
1406 (enum opt_levels, struct default_options): Move from target.h.
1407 * common/common-targhooks.c, common/common-targhooks.h: New.
1408 * config.gcc (target_has_targetm_common): Default to yes.
1409 (moxie*): Set target_has_targetm_common=no.
1410 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1411 * doc/tm.texi: Regenerate.
1412 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1413 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1414 (GCC_OBJS): Remove vec.o.
1415 (OBJS): Remove hooks.o and vec.o.
1416 (OBJS-libcommon-target): Add vec.o, hooks.o and
1417 common/common-targhooks.o.
1418 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1419 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1420 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1421 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1422 Update dependencies.
1423 (common/common-targhooks.o): New.
1424 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1425 * common/config/pa/pa-common.c: Include more headers. Take
1426 copyright dates from pa.c.
1427 (pa_option_optimization_table, pa_handle_option,
1428 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1429 TARGET_HANDLE_OPTION): Move from pa.c.
1430 * common/config/alpha/alpha-common.c,
1431 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1432 common/config/bfin/bfin-common.c,
1433 common/config/cris/cris-common.c,
1434 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1435 common/config/h8300/h8300-common.c,
1436 common/config/i386/i386-common.c,
1437 common/config/ia64/ia64-common.c,
1438 common/config/iq2000/iq2000-common.c,
1439 common/config/lm32/lm32-common.c,
1440 common/config/m32c/m32c-common.c,
1441 common/config/m32r/m32r-common.c,
1442 common/config/m68k/m68k-common.c,
1443 common/config/mcore/mcore-common.c,
1444 common/config/mep/mep-common.c,
1445 common/config/microblaze/microblaze-common.c,
1446 common/config/mips/mips-common.c,
1447 common/config/mmix/mmix-common.c,
1448 common/config/mn10300/mn10300-common.c,
1449 common/config/pdp11/pdp11-common.c,
1450 common/config/picochip/picochip-common.c,
1451 common/config/rs6000/rs6000-common.c,
1452 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1453 common/config/score/score-common.c, common/config/sh/sh-common.c,
1454 common/config/sparc/sparc-common.c,
1455 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1456 common/config/vax/vax-common.c,
1457 common/config/xstormy16/xstormy16-common.c,
1458 common/config/xtensa/xtensa-common.c: New.
1459 * config/alpha/alpha.c: Include common/common-target.h.
1460 (alpha_option_optimization_table, alpha_handle_option,
1461 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1462 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1463 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1464 * config/arm/arm.c (arm_option_optimization_table,
1465 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1466 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1468 * config/avr/avr.c (avr_option_optimization_table,
1469 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1471 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1472 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1473 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1474 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1475 * config/cris/cris.c (cris_option_optimization_table,
1476 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1477 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1479 * config/fr30/fr30.c (fr30_option_optimization_table,
1480 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1482 * config/frv/frv.c (frv_option_optimization_table,
1483 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1484 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1485 * config/h8300/h8300.c (h8300_option_optimization_table,
1486 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1487 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1488 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1489 * config/i386/i386.c: Include common/common-target.h.
1490 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1491 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1492 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1493 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1494 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1495 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1496 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1497 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1498 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1499 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1500 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1501 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1502 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1503 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1504 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1505 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1506 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1507 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1508 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1509 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1510 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1511 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1512 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1513 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1514 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1515 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1516 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1517 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1518 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1519 ix86_option_optimization_table, ix86_option_init_struct,
1520 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1521 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1522 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1524 * config/i386/t-i386 (i386.o): Update dependencies.
1525 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1526 * config/ia64/ia64.c (ia64_option_optimization_table,
1527 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1528 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1529 ia64_handle_option): Move to ia64-common.c.
1530 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1531 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1532 * config/lm32/lm32.c (lm32_option_optimization_table,
1533 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1535 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1537 * config/m32r/m32r.c (m32r_option_optimization_table,
1538 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1539 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1540 m32r_handle_option): Move to m32r-common.c.
1541 (m32r_memory_move_cost): Remove comment referring to
1542 TARGET_HANDLE_OPTION.
1543 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1544 Move to m68k-common.c.
1545 * config/mcore/mcore.c (mcore_option_optimization_table,
1546 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1547 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1548 * config/mep/mep.c (mep_option_optimization_table,
1549 mep_handle_option, TARGET_HANDLE_OPTION,
1550 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1551 Move to mep-common.c.
1552 * config/microblaze/microblaze.c
1553 (microblaze_option_optimization_table,
1554 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1555 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1556 * config/mips/mips.c (mips_handle_option,
1557 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1558 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1560 * config/mmix/mmix.c (mmix_option_optimization_table,
1561 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1562 Move to mmix-common.c.
1563 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1564 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1565 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1566 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1567 * config/pa/pa.c: Include common/common-target.h.
1568 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1569 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1570 pa_handle_option): Move to pa-common.c.
1571 (pa_option_override): Use targetm_common.except_unwind_info.
1572 (pa_asm_output_mi_thunk, pa_function_section): Use
1573 targetm_common.have_named_sections.
1574 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1575 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1576 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1577 pdp11_handle_option, pdp11_option_init_struct): Move to
1579 * config/picochip/picochip.c (picochip_option_optimization_table,
1580 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1581 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1582 * config/rs6000/rs6000.c: Include common/common-target.h.
1583 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1584 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1585 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1586 rs6000_handle_option): Move to rs6000-common.c.
1587 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1588 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1589 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1590 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1591 * config/s390/s390.c (processor_flags_table,
1592 s390_option_optimization_table, s390_option_init_struct,
1593 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1594 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1595 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1596 * config/s390/s390.h (processor_flags_table): Declare.
1597 * config/score/score.c (score_option_optimization_table,
1598 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1599 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1600 score_handle_option): Move to score-common.c.
1601 * config/sh/sh.c (sh_option_optimization_table,
1602 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1603 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1604 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1605 * config/sparc/sparc.c: Include common/common-target.h.
1606 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1607 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1608 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1609 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1610 spu_option_init_struct): Move to spu-common.c.
1611 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1612 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1613 * config/v850/v850.c (small_memory_physical_max,
1614 v850_handle_memory_optionn v850_handle_option,
1615 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1616 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1618 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1619 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1620 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1621 Move to xtensa-common.c.
1622 * cfglayout.c: Include common/common-target.h.
1623 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1624 * cfgrtl.c: Include common/common-target.h.
1625 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1626 targetm_common.have_named_sections.
1627 * dbxout.c: Include common/common-target.h.
1628 (dbxout_function_end): Use targetm_common.have_named_sections.
1629 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1630 targetm_common.except_unwind_info.
1631 * dwarf2out.c: Include common/common-target.h.
1632 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1633 dwarf2out_begin_prologue, dwarf2out_frame_init,
1634 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1635 targetm_common.except_unwind_info.
1636 * except.c: Include common/common-target.h.
1637 (init_eh, finish_eh_generation,
1638 output_one_function_exception_table): Use
1639 targetm_common.except_unwind_info.
1640 (switch_to_exception_section): Use targetm_common.have_named_sections.
1641 * explow.c: Include common/common-target.h.
1642 * expr.c: Include common/common-target.h.
1643 (build_personality_function): Use targetm_common.except_unwind_info.
1644 * function.c: Include common/common-target.h.
1645 (expand_function_end): Use targetm_common.except_unwind_info.
1646 * haifa-sched.c: Include common/common-target.h.
1647 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1648 * lto-opts.c: Include common/common-target.h instead of target.h.
1649 (lto_reissue_options): Use targetm_common.handle_option.
1650 * opts.c: Include common/common-target.h.
1651 (target_handle_option): Use targetm_common.handle_option.
1652 (init_options_struct): Update comment referring to
1653 targetm.target_option.optimization. Use
1654 targetm_common.default_target_flags,
1655 targetm_common.unwind_tables_default and
1656 targetm_common.option_init_struct.
1657 (default_options_optimization): Use
1658 targetm_common.option_optimization_table.
1659 (finish_options): Use targetm_common.except_unwind_info,
1660 targetm_common.unwind_tables_default,
1661 targetm_common.have_named_sections and
1662 targetm_common.supports_split_stack.
1663 * toplev.c: Include common/common-target.h.
1664 (process_options): Use targetm_common.have_named_sections.
1665 * tree-tailcall.c: Include common/common-target.h.
1666 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1667 * tree.c: Include common/common-target.h.
1668 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1669 * varasm.c: Include common/common-target.h.
1670 (resolve_unique_section, hot_function_section,
1671 default_function_section): Use targetm_common.have_named_sections.
1673 2011-06-14 Easwaran Raman <eraman@google.com>
1675 PR rtl-optimization/44194
1676 * dse.c: Include tree-flow.h
1677 (insn_info): Add new field non_frame_wild_read.
1678 (group_info): Add new fields escaped_n and escaped_p.
1679 (kill_on_calls): New variable.
1680 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1681 (dse_step0): Initialize kill_on_calls.
1682 (can_escape): New function.
1683 (set_usage_bits): Add additional parameter; record information
1684 about escaped locations.
1685 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1686 (dse_step2_nospill): Set kill_on_calls based on
1687 group->escaped_n and group->escaped_n.
1688 (add_wild_read): Refactor into...
1689 (reset_active_stores): ... New function, and
1690 (free_read_records): ... New function.
1691 (add_non_frame_wild_read): New function.
1692 (scan_insn): Call add_non_frame_wild_read on non-const calls.
1693 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1694 (dse_step5_nospill): Call scan_reads_nospill for instructions
1695 marked as non_frame_wild_read.
1696 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1698 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1700 * common/common-target-def.h, common/common-target.def,
1701 common/common-target.h, common/config/default-common.c,
1702 common/config/pa/pa-common.c: New files.
1703 * Makefile.in (common_out_file, common_out_object_file,
1704 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1705 (OBJS-libcommon-target): Include $(common_out_object_file).
1706 (prefix.o): Update dependencies.
1707 ($(common_out_object_file), common/common-target-hooks-def.h,
1708 s-common-target-hooks-def-h): New.
1709 (s-tm-texi): Also check timestamp on common-target.def.
1710 (build/genhooks.o): Update dependencies.
1711 * config.gcc (common_out_file, target_has_targetm_common): Define.
1712 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1713 TARGET_ALWAYS_STRIP_DOTDOT.
1714 * configure.ac (common_out_object_file): Define.
1715 (common_out_file, common_out_object_file): Substitute.
1716 (common): Create directory.
1717 * configure: Regenerate.
1718 * doc/tm.texi.in (targetm_common): Document.
1719 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1720 * doc/tm.texi: Regenerate.
1721 * genhooks.c (hook_array): Also include common/common-target.def.
1722 * prefix.c (tm.h): Don't include.
1723 (common/common-target.h): Include.
1724 (ALWAYS_STRIP_DOTDOT): Don't define.
1725 (update_path): Use targetm_common.always_strip_dotdot instead of
1726 ALWAYS_STRIP_DOTDOT.
1727 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1729 2011-06-14 David Li <davidxl@google.com>
1731 * passes.c (execute_function_todo): Remove TODO_dump_func.
1732 (execute_one_pass): Remove TODO_dump_func.
1733 (execute_function_dump): New function.
1734 * tree-vrp.c: Remove TODO_dump_func.
1735 * regrename.c: Remove TODO_dump_func.
1736 * fwprop.c: Remove TODO_dump_func.
1737 * tree-into-ssa.c: Remove TODO_dump_func.
1738 * tree-complex.c: Remove TODO_dump_func.
1739 * tracer.c: Remove TODO_dump_func.
1740 * tree-loop-distribution.c: Remove TODO_dump_func.
1741 * postreload-gcse.c: Remove TODO_dump_func.
1742 * postreload.c: Remove TODO_dump_func.
1743 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1744 * tree-tailcall.c: Remove TODO_dump_func.
1745 * ipa-cp.c: Remove TODO_dump_func.
1746 * final.c: Remove TODO_dump_func.
1747 * tree-emutls.c: Remove TODO_dump_func.
1748 * omp-low.c: Remove TODO_dump_func.
1749 * tree-ssa-dse.c: Remove TODO_dump_func.
1750 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1751 * auto-inc-dec.c: Remove TODO_dump_func.
1752 * reorg.c: Remove TODO_dump_func.
1753 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1754 * tree-ssa-ccp.c: Remove TODO_dump_func.
1755 * compare-elim.c: Remove TODO_dump_func.
1756 * mode-switching.c: Remove TODO_dump_func.
1757 * modulo-sched.c: Remove TODO_dump_func.
1758 * tree-call-cdce.c: Remove TODO_dump_func.
1759 * cse.c: Remove TODO_dump_func.
1760 * web.c: Remove TODO_dump_func.
1761 * tree-stdarg.c: Remove TODO_dump_func.
1762 * lto-streamer-out.c: Remove TODO_dump_func.
1763 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1764 * tree-ssa-dom.c: Remove TODO_dump_func.
1765 * tree-nrv.c: Remove TODO_dump_func.
1766 * loop-init.c: Remove TODO_dump_func.
1767 * gimple-low.c: Remove TODO_dump_func.
1768 * ipa-inline.c: Remove TODO_dump_func.
1769 * tree-ssa-sink.c: Remove TODO_dump_func.
1770 * jump.c: Remove TODO_dump_func.
1771 * ifcvt.c: Remove TODO_dump_func.
1772 * tree-ssa-loop.c: Remove TODO_dump_func.
1773 * recog.c: Remove TODO_dump_func.
1774 * dse.c: Remove TODO_dump_func.
1775 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1776 * matrix-reorg.c: Remove TODO_dump_func.
1777 * tree-eh.c: Remove TODO_dump_func.
1778 * regmove.c: Remove TODO_dump_func.
1779 * function.c: Remove TODO_dump_func.
1780 * tree-vectorizer.c: Remove TODO_dump_func.
1781 * ipa-split.c: Remove TODO_dump_func.
1782 * gcse.c: Remove TODO_dump_func.
1783 * tree-if-conv.c: Remove TODO_dump_func.
1784 * init-regs.c: Remove TODO_dump_func.
1785 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1786 * implicit-zee.c: Remove TODO_dump_func.
1787 * lower-subreg.c: Remove TODO_dump_func.
1788 * bt-load.c: Remove TODO_dump_func.
1789 * tree-dfa.c: Remove TODO_dump_func.
1790 * except.c: Remove TODO_dump_func.
1791 * emit-rtl.c: Remove TODO_dump_func.
1792 * store-motion.c: Remove TODO_dump_func.
1793 * cfgexpand.c: Remove TODO_dump_func.
1794 * tree-cfgcleanup.c: Remove TODO_dump_func.
1795 * cfgcleanup.c: Remove TODO_dump_func.
1796 * tree-ssa-pre.c: Remove TODO_dump_func.
1797 * tree-sra.c: Remove TODO_dump_func.
1798 * tree-mudflap.c: Remove TODO_dump_func.
1799 * tree-ssa-copy.c: Remove TODO_dump_func.
1800 * cfglayout.c: Remove TODO_dump_func.
1801 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1802 * tree-ssa-dce.c: Remove TODO_dump_func.
1803 * ira.c: Remove TODO_dump_func.
1804 * tree-ssa.c: Remove TODO_dump_func.
1805 * integrate.c: Remove TODO_dump_func.
1806 * tree-optimize.c: Remove TODO_dump_func.
1807 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1808 * tree-object-size.c: Remove TODO_dump_func.
1809 * combine.c: Remove TODO_dump_func.
1810 * bb-reorder.c: Remove TODO_dump_func.
1811 * cprop.c: Remove TODO_dump_func.
1812 * var-tracking.c: Remove TODO_dump_func.
1813 * tree-profile.c: Remove TODO_dump_func.
1814 * tree-vect-generic.c: Remove TODO_dump_func.
1815 * reg-stack.c: Remove TODO_dump_func.
1816 * sched-rgn.c: Remove TODO_dump_func.
1817 * tree-ssa-structalias.c: Remove TODO_dump_func.
1818 * tree-switch-conversion.c: Remove TODO_dump_func.
1819 * tree-cfg.c: Remove TODO_dump_func.
1820 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1821 * combine-stack-adj.c: Remove TODO_dump_func.
1822 * dce.c: Remove TODO_dump_func.
1823 * tree-ssanames.c: Remove TODO_dump_func.
1824 * regcprop.c: Remove TODO_dump_func.
1826 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1829 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1830 and properly handle result not in Pmode.
1832 2011-06-14 Robert Millan <rmh@gnu.org>
1834 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1835 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1838 * config/i386/kfreebsd-gnu64.h: New file.
1839 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1840 with `i386/kfreebsd-gnu64.h'.
1842 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1843 (GNU_USER_LINK_EMULATION64): New macros.
1844 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1845 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1846 of hardcoding `elf_i386' and `elf_x86_64'.
1848 2011-06-14 Nick Clifton <nickc@redhat.com>
1851 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1854 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1856 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1859 * tree.h (DECL_NONSHAREABLE): Define.
1860 (struct tree_decl_common): Change decl_common_unused to
1861 decl_nonshareable_flag.
1862 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1863 Ignore vars with DECL_NONSHAREABLE bit set.
1864 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1865 on stores to automatic aggregate vars.
1867 PR rtl-optimization/49390
1869 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1871 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1874 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
1875 Tom de Vries <tom@codesourcery.com>
1878 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1879 Document changed semantics.
1880 (max_stmt_executions, max_stmt_executions_int): Declare.
1881 * tree-data-ref.c (estimated_loop_iterations)
1882 (estimated_loop_iterations_int): Move functions...
1883 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1884 (estimated_loop_iterations_int): here.
1885 (record_estimate): Change nb_iterations_upper_bound and
1886 nb_iterations_estimate semantics.
1887 (max_stmt_executions, max_stmt_executions_int): New function.
1888 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1889 (max_stmt_executions_tree): this.
1890 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1891 estimated_loop_iterations_tree.
1892 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1893 max_stmt_executions_int instead of estimated_loop_iterations_int.
1894 * predict.c (predict_loops): Idem.
1895 * tree-parloops.c (parallelize_loops): Idem.
1896 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1897 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1898 (init_omega_for_ddr_1): Idem.
1899 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1900 (loop_prefetch_arrays): Idem
1901 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1902 max_stmt_executions instead of estimated_loop_iterations.
1903 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1904 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1905 instead of nb_iterations_upper_bound.
1907 2011-06-13 Jan Hubicka <jh@suse.cz>
1909 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1911 2011-06-14 Richard Henderson <rth@redhat.com>
1914 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1915 (based_loc_descr): Assert it's true.
1916 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1917 aborting immediately.
1919 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1920 Mingfeng Wu <mingfeng@faraday-tech.com>
1922 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1924 2011-06-13 Jan Hubicka <jh@suse.cz>
1926 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1928 2011-06-13 Jan Hubicka <jh@suse.cz>
1930 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1931 similarly to DECL_COMDAT.
1932 * cgraphunit.c (cgraph_analyze_function): Likewise.
1933 * ipa.c (function_and_variable_visibility): Likewise.
1935 2011-06-13 Jan Hubicka <jh@suse.cz>
1937 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1938 BINFO_VIRTUALS when streaming for ltrans unit.
1940 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1942 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1943 (movdi_internal64): Same.
1945 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1948 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1949 a set of similar patterns, where the MATCH_OPERAND for the function
1950 argument is replaced with individual references to hardware registers.
1951 (save_fpregs_<mode>): Ditto
1952 (restore_gpregs_<mode>): Ditto
1953 (return_and_restore_gpregs_<mode>): Ditto
1954 (return_and_restore_fpregs_<mode>): Ditto
1955 (return_and_restore_fpregs_aix_<mode>): Ditto
1957 2011-06-13 Jan Hubicka <jh@suse.cz>
1959 * ipa-utils.c (postorder_stack): New structure.
1960 (ipa_reverse_postorder): Handle aliases.
1962 2011-06-13 Jan Hubicka <jh@suse.cz>
1964 * ipa-inline.c (reset_edge_caches): Walk aliases.
1965 (update_caller_keys): Do not test inlinability of aliases.
1966 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1967 (do_estimate_growth): Fix typo.
1969 2011-06-13 Jan Hubicka <jh@suse.cz>
1971 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1972 (can_remove_node_now_p): ... here; handle same comdat groups.
1973 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1974 (inline_call): Update use of can_remove_node_now_p.
1976 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1978 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1979 condition to disallow non-identical memory locations.
1980 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1981 preference to bit manipulation instructions.
1983 2011-06-13 Jan Hubicka <jh@suse.cz>
1985 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1986 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1987 (nonremovable_p): New function.
1988 (cgraph_can_remove_if_no_direct_calls_p): New function.
1989 (used_from_object_file_p): New functoin.
1990 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1991 references from aliases.
1992 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1993 * ipa-inline.c (check_caller_edge): New function.
1994 (want_inline_function_called_once_p): Use it; accept aliases called
1996 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1998 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2001 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2002 correctly for the case with Quad vectors.
2004 2011-06-13 Jakub Jelinek <jakub@redhat.com>
2005 Ira Rosen <ira.rosen@linaro.org>
2007 PR tree-optimization/49352
2008 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2009 all, make sure loop_use_stmt after the loop is a def stmt of a used
2010 SSA_NAME that is the only one defined inside of the loop. Don't
2011 check for COND_EXPR and GIMPLE_BINARY_RHS.
2012 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2013 check_reduction is true.
2015 2011-06-11 Jan Hubicka <jh@suse.cz>
2018 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2020 2011-06-11 Jan Hubicka <jh@suse.cz>
2023 * ipa-inline-transform.c: Include tree-pass.h
2024 (inline_transform): Set TODO_update_ssa_only_virtuals.
2025 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2027 2011-06-11 Jan Hubicka <jh@suse.cz>
2030 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2033 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
2035 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2036 Take number of iterations to peel into account for equally frequent
2037 misalignment values.
2039 2011-06-11 Jan Hubicka <jh@suse.cz>
2041 * lto-streamer-out.c (produce_symtab): Stream out the newly
2042 represented aliases.
2044 2011-06-11 Jan Hubicka <jh@suse.cz>
2046 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2048 (ipa_update_after_lto_read): Likewise.
2049 (ipa_write_node_info): Do not sream call_with_var_arguments.
2050 (ipa_read_node_info): Likewise.
2052 2011-06-11 Jan Hubicka <jh@suse.cz>
2054 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2056 2011-06-11 Jan Hubicka <jh@suse.cz>
2058 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2059 (lto_symtab_resolve_can_prevail_p): Likewise.
2060 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2061 * cgraph.c (same_body_aliases_done): New global var.
2062 (cgraph_same_body_alias_1): Rename to ...
2063 (cgraph_create_function_alias): ... this one; reorg to new
2065 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2066 record references when asked to.
2067 (cgraph_add_thunk): Fix formating.
2068 (cgraph_get_node): Kill same body alias code.
2069 (cgraph_node_for_asm): Likewise.
2070 (cgraph_remove_same_body_alias): Remove.
2071 (cgraph_remove_node): Kill same body alias code.
2072 (cgraph_mark_address_taken_node): Mark also the aliased function
2073 as having address taken.
2074 (dump_cgraph_node): Dump same body aliases.
2075 (cgraph_for_node_thunks_and_aliases): Update for new alias
2077 (cgraph_for_node_and_aliases): Likewise.
2078 * cgraph.h (same_body): Kll pointer.
2079 (same_body_alias): Update comment.
2080 (same_body_aliases_done): Declare.
2081 (cgraph_remove_same_body_alias): Remove declaration.
2082 (cgraph_create_function_alias): Declare.
2083 (cgraph_process_same_body_aliases): Declare.
2084 (cgraph_function_with_gimple_body_p): Check for alias.
2085 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2086 (cgraph_alias_aliased_node): New function.
2087 (cgraph_function_node): Update for new aliases.
2088 (cgraph_function_or_thunk_node): Likewise.
2089 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2090 (inline_call): Remove dead aliases.
2091 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2092 name hack for same body aliases.
2093 (clone_of_p): Look through aliases.
2094 (verify_cgraph_node): Verify aliases.
2095 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2096 (cgraph_process_same_body_aliases): New function.
2097 (process_function_and_variable_attributes): Disable weakref warning on
2099 (cgraph_analyze_functions): Handle aliases.
2100 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2101 (assemble_thunks): Rename to ...
2102 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2103 (cgraph_expand_function): Remove alias output code.
2104 (cgraph_output_in_order): Skip aliases.
2105 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2106 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2107 (ipa_record_reference): Do not assert on alias references.
2108 (ipa_ref_has_aliases_p): New function.
2109 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2110 (ipa_ref_has_aliases_p): Declare.
2111 * lto-cgraph.c (lto_output_node): Handle aliases.
2112 (input_node): Likewise.
2113 * lto-streamer-out.c (lto_output): Skip aliases.
2114 (produce_symtab): Kill same_body_alias code.
2115 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2116 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2117 * ipa-inline.c (update_caller_keys): Walk aliases.
2118 (inline_small_functions): Fix thinko in previous patch.
2119 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2120 (function_and_variable_visibility): Do not walk same body aliases.
2121 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2122 (ipa_pta_execute): Use it.
2124 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2126 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2127 (*vec_dupv2df): Rename from vec_dupv2df.
2128 (vec_dupv2df): New expander.
2130 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2132 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2134 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2136 * config/i386/i386.md: Use default value in "isa" attribute.
2137 * config/i386/sse.md: Ditto.
2138 * config/i386/mmx.md: Ditto.
2140 2011-06-10 Wei Guozhi <carrot@google.com>
2143 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2144 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2145 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2147 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2149 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2150 (arm_legitimate_ldrd_p): New prototype.
2151 (arm_output_ldrd): New prototype.
2152 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2153 (arm_legitimate_ldrd_p): New function.
2154 (arm_output_ldrd): New function.
2156 2011-06-10 David Li <davidxl@google.com>
2158 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2159 * passes.c (passr_eq): New function.
2160 (create_pass_tab): New function.
2161 (pass_traverse): New function.
2162 (dump_one_pass): New function.
2163 (dump_pass_list): New function.
2164 (dump_passes): New function.
2166 2011-06-10 Jan Hubicka <jh@suse.cz>
2168 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2169 setting the nothrow flag.
2170 * ipa-reference.c (propagate): Skip aliases.
2171 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2172 (propagate_nothrow): Skip aliases; do not update cgraph.
2173 (local_pure_const): Do not update cgraph.
2174 * tree-profile.c (tree_profiling): Do fixup_cfg.
2176 2011-06-10 Jan Hubicka <jh@suse.cz>
2178 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2179 (cgraph_local_node_p): ... here; handle aliases.
2180 (has_addr_references_p): Break out from ...;
2181 (cgraph_remove_unreachable_nodes) ... here.
2183 2011-06-10 Jan Hubicka <jh@suse.cz>
2185 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2186 * common.opt (flag_inline_functions_called_once): Do not
2189 2011-06-10 Jan Hubicka <jh@suse.cz>
2191 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2192 (ipcp_initialize_node_lattices): Do not deal with aliases;
2193 Do not try to propagate through thunks.
2194 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2196 2011-06-10 Jan Hubicka <jh@suse.cz>
2198 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2200 (ipa_read_node_info): Likewise.
2202 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2205 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2206 (build_and_insert_call): Likewise.
2207 (build_and_insert_ref): New.
2208 (gimple_expand_builtin_pow): Minor cleanup.
2209 (gimple_expand_builtin_cabs): New.
2210 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2212 2011-06-10 Jan Hubicka <jh@suse.cz>
2214 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2215 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2216 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2217 (ipcp_propagate_stage): Skip aliases when propagating.
2218 (ipcp_need_redirect_p): Skip aliases.
2219 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2220 collect_callers_of_node.
2221 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2223 (ipa_compute_jump_functions): Look through aliases.
2225 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2227 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2229 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2231 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2233 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2235 2011-06-10 Jan Hubicka <jh@suse.cz>
2237 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2238 Update call of gimple_get_virt_method_for_binfo.
2239 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2240 refuse_thunks parameter.
2241 (gimple_fold_call): Update.
2242 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2244 2011-06-10 Jan Hubicka <jh@suse.cz>
2246 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2247 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2248 worker for cgraph_for_node_and_aliases.
2249 (convert_callers_for_node): Break out from ...
2250 (convert_callers): ... here.
2251 (modify_function): Use collect_callers_of_node.
2252 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2254 2011-06-10 Richard Guenther <rguenther@suse.de>
2256 PR tree-optimization/49361
2257 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2258 when not already in gimple form.
2260 2011-06-10 Richard Guenther <rguenther@suse.de>
2263 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2264 FOR_EACH_PHI_OR_STMT_USE.
2266 2011-06-10 Jan Hubicka <jh@suse.cz>
2268 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2269 (clone_inlined_nodes): ... here.
2270 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2271 to real destination prior inlining.
2272 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2273 can_early_inline_edge_p, want_early_inline_function_p,
2274 want_early_inline_function_p, want_inline_small_function_p,
2275 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2276 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2277 add_new_edges_to_heap, inline_small_functions, flatten_function,
2278 inline_always_inline_functions, early_inline_small_functions): Use
2279 cgraph_function_or_thunk_node.
2280 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2281 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2282 (do_estimate_edge_growth_1): Break out from ...
2283 (do_estimate_growth) ... here; walk aliases.
2284 (inline_generate_summary): Skip aliases.
2286 2011-06-10 Richard Guenther <rguenther@suse.de>
2288 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2289 forward when combining, visit inserted stmts when a stmt was changed.
2291 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2293 * tree.h (error_operand_p): Add.
2294 * dbxout.c (dbxout_type_fields): Use the latter.
2295 * c-decl.c (add_stmt): Likewise.
2296 * gimplify.c (omp_add_variable, omp_notice_variable,
2297 gimplify_scan_omp_clauses): Likewise.
2299 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2301 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2302 when a value is actually passed in regs.
2304 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2305 Laurent Rougé <laurent.rouge@menta.fr>
2307 * doc/invoke.texi (SPARC options): Add -mflat.
2308 * config/sparc/sparc.opt: Likewise.
2309 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2310 (sparc_flat_expand_prologue): Declare.
2311 (sparc_flat_expand_epilogue): Likewise.
2312 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2313 (CPP_ENDIAN_SPEC): Replace with...
2314 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2315 (CPP_SPEC): Adjust to above change.
2316 (EXTRA_SPECS): Likewise.
2317 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2318 (INCOMING_REGNO): Likewise.
2319 (OUTGOING_REGNO): Likewise.
2320 (LOCAL_REGNO): Likewise.
2321 (SETUP_FRAME_ADDRESSES): Likewise.
2322 (FIXED_REGISTERS): Set 0 for %fp.
2323 (CALL_USED_REGISTERS): Likewise.
2324 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2325 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2326 (RETURN_ADDR_REGNUM): Define.
2327 (RETURN_ADDR_RTX): Use it.
2328 (INCOMING_RETURN_ADDR_REGNUM): Define.
2329 (INCOMING_RETURN_ADDR_RTX): Use it.
2330 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2331 (EH_RETURN_REGNUM): Define.
2332 (EH_RETURN_STACKADJ_RTX): Use it.
2333 (EH_RETURN_HANDLER_RTX): Delete.
2334 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2335 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2337 (struct machine_function): Add frame_size, apparent_frame_size,
2338 frame_base_reg, frame_base_offset, n_global_fp_regs and
2339 save_local_in_regs_p fields.
2340 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2341 sparc_frame_base_offset, sparc_n_global_fp_regs,
2342 sparc_save_local_in_regs_p): New macros.
2343 (sparc_option_override): Error out if -fcall-saved-REG is specified
2345 (eligible_for_restore_insn): Fix formatting.
2346 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2347 (eligible_for_sibcall_delay): Likewise.
2348 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2349 (sparc_legitimate_address_p): Adjust to above change.
2350 (save_global_or_fp_reg_p): New predicate.
2351 (return_addr_reg_needed_p): Likewise.
2352 (save_local_or_in_reg_p): Likewise.
2353 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2354 (SORR_SAVE, SORR_RESTORE): Delete.
2355 (sorr_pred_t): New typedef.
2356 (sorr_act_t): New enum.
2357 (save_or_restore_regs): Rename to...
2358 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2359 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2360 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2361 mechanism. Add CFI information for double-word saves in 32-bit mode.
2362 (emit_adjust_base_to_offset): New function extracted from...
2363 (emit_save_or_restore_regs): ...this. Rename the rest to...
2364 (emit_save_or_restore_regs_global_fp_regs): ...this.
2365 (emit_save_or_restore_regs_local_in_regs): New function.
2366 (gen_create_flat_frame_[123]): New functions.
2367 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2368 (sparc_flat_expand_prologue): New function.
2369 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2370 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2371 (sparc_flat_expand_epilogue): New function.
2372 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2373 (output_return): Likewise.
2374 (output_sibcall): Likewise.
2375 (sparc_output_mi_thunk): Likewise.
2376 (sparc_frame_pointer_required): Likewise.
2377 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2378 function optimization.
2379 * config/sparc/sparc.md (flat): New attribute.
2380 (prologue): Add TARGET_FLAT handling.
2381 (save_register_window): Disable if TARGET_FLAT.
2382 (create_flat_frame_[123]): New patterns.
2383 (epilogue): Add TARGET_FLAT handling.
2384 (sibcall_epilogue): Likewise.
2385 (eh_return): New expander.
2386 (eh_return_internal): New insn and splitter.
2387 (return_internal): Add TARGET_FLAT handling.
2388 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2389 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2390 (nonlocal_goto): Add TARGET_FLAT handling.
2391 * config/sparc/t-elf: Add -mflat multilib.
2392 * config/sparc/t-leon: Likewise.
2394 2011-06-10 Jan Hubicka <jh@suse.cz>
2396 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2397 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2398 (self_recursive_p): Use cgraph_function_node.
2399 (propagate_pure_const): Likewise.
2400 (propagate_nothrow): Likewise.
2401 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2402 cgraph_function_node.
2403 (propagate_bits): Likewise.
2404 (propagate): Likewise.
2406 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2407 Richard Earnshaw <rearnsha@arm.com>
2409 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2410 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2411 (*thumb2_movdi_vfp): Delete.
2412 (*arm_movdi_vfp_cortexa8): Delete.
2413 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2414 (*movdi_vfp_cortexa8): Likewise.
2416 2011-06-10 Richard Guenther <rguenther@suse.de>
2418 * stor-layout.c (initialize_sizetypes): Give names to all
2421 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2423 PR tree-optimization/49318
2424 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2425 irrelevant pattern statements.
2427 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2429 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2432 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2435 2011-06-09 Jan Hubicka <jh@suse.cz>
2437 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2438 do not recompute reachable flag.
2439 (cgraph_finalize_function, cgraph_analyze_functions): Set
2440 redefined_extern_inline here.
2442 2011-06-09 Jan Hubicka <jh@suse.cz>
2444 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2445 (cgraph_only_called_directly_p): ... this one; bring offline.
2446 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2447 varpool_used_from_object_file_p): Drop names from the declaratoin.
2448 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2449 collect_callers_of_node): New.
2450 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2451 (cgraph_edge_recursive_p): Use cgraph_function_node.
2452 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2453 (cgraph_node_cannot_be_local_p_1): Break out from ...
2454 (cgraph_node_can_be_local_p): ... here; walk aliases.
2455 (cgraph_for_node_thunks_and_aliases): New function.
2456 (cgraph_for_node_and_aliases): New function.
2457 (cgraph_make_node_local_1): Break out from ...
2458 (cgraph_make_node_local) ... here; use
2459 cgraph_for_node_thunks_and_aliases.
2460 (cgraph_set_nothrow_flag_1): Break out from ...
2461 (cgraph_set_nothrow_flag) ... here;
2462 use cgraph_for_node_thunks_and_aliases.
2463 (cgraph_set_const_flag_1): Break out from ...
2464 (cgraph_set_const_flag) ... here;
2465 use cgraph_for_node_thunks_and_aliases.
2466 (cgraph_set_pure_flag_1): Break out from ...
2467 (cgraph_set_pure_flag) ... here;
2468 use cgraph_for_node_thunks_and_aliases.
2469 (cgraph_propagate_frequency_1): Break out from ...
2470 (cgraph_propagate_frequency) ... here; use
2471 cgraph_for_node_thunks_and_aliases.
2472 (cgraph_used_from_object_file_p): Do not care about aliases.
2473 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2475 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2477 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2479 PR rtl-optimization/49154
2480 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2481 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2482 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2483 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2484 * config/cris/cris.h (cris_register_move_cost): Remove
2485 !TARGET_V32 code. Tweak comments.
2487 2011-06-09 Jan Hubicka <jh@suse.cz>
2489 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2492 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2494 PR rtl-optimization/49154
2495 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2496 is a matching slot in the hashtable, assign it to classes_ptr.
2498 PR rtl-optimization/49154
2499 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2501 * doc/tm.texi: Regenerate.
2503 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2506 * config/sh/sh.md (UNSPEC_CHKADD): New.
2507 (chk_guard_add): New define_insn_and_split.
2508 (symGOT_load): Use chk_guard_add instead of blockage.
2510 2011-06-09 Kai Tietz <ktietz@redhat.com>
2512 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2514 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2516 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2518 2011-06-09 Wei Guozhi <carrot@google.com>
2521 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2522 (peephole2 for conditional move): Generate 16 bit instructions.
2524 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
2526 * config/i386/i386.md (*movdi_internal_rex64): Merge
2527 alternatives 6 and 8.
2529 2011-06-09 David Li <davidxl@google.com>
2531 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2532 * passes.c (passr_eq): New function.
2533 (create_pass_tab): New function.
2534 (pass_traverse): New function.
2535 (dump_one_pass): New function.
2536 (dump_pass_list): New function.
2537 (dump_passes): New function.
2539 2011-06-09 David Li <davidxl@google.com>
2541 * tree-complex.c (tree_lower_complex): Gate cleanup.
2542 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2543 (execute_optimize_stdarg): Ditto.
2544 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2545 (execute_cleanup_eh_1): Ditto.
2546 (execute_cleanup_eh): Ditto.
2547 * gcse.c (gate_rtl_pre): Ditto.
2548 (execute_rtl_pre): Ditto.
2549 * except.c (finish_eh_generation): Ditto.
2550 (convert_to_eh_region_ranges): Ditto.
2551 * cprop.c (one_cprop_pass): Ditto.
2553 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2556 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2557 in all basic blocks.
2559 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2561 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2562 (HAVE_ENABLE_EXECUTE_STACK): Define.
2563 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2564 (HAVE_ENABLE_EXECUTE_STACK): Define.
2565 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2566 (HAVE_ENABLE_EXECUTE_STACK): Define.
2567 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2568 (ENABLE_EXECUTE_STACK): Remove.
2569 (HAVE_ENABLE_EXECUTE_STACK): Define.
2570 [IN_LIBGCC2]: Don't include <windows.h>.
2571 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2572 (HAVE_ENABLE_EXECUTE_STACK): Define.
2573 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2574 (HAVE_ENABLE_EXECUTE_STACK): Define.
2575 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2576 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2577 (HAVE_ENABLE_EXECUTE_STACK): Define.
2578 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2579 (HAVE_ENABLE_EXECUTE_STACK): Define.
2580 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2581 (HAVE_ENABLE_EXECUTE_STACK): Define.
2582 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2583 (HAVE_ENABLE_EXECUTE_STACK): Define.
2584 * config/alpha/alpha.c (alpha_trampoline_init): Test
2585 HAVE_ENABLE_EXECUTE_STACK.
2586 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2587 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2588 (sparc64_initialize_trampoline): Likewise.
2589 * libgcc2.c [L_enable_execute_stack]: Remove.
2590 * system.h (ENABLE_EXECUTE_STACK): Poison.
2591 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2592 * doc/tm.texi: Regenerate.
2593 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2595 2011-06-09 Jakub Jelinek <jakub@redhat.com>
2598 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2599 variable. After resetting and rescanning insn continue with previous
2602 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2604 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2605 (gcc_cv_ld_hidden): Likewise.
2606 * configure: Regenerate.
2607 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2608 (ix86_stack_protect_fail): Mark unused.
2609 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2610 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2611 [TARGET_MACHO]: Don't define.
2612 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2613 (TARGET_STACK_PROTECT_FAIL): Likewise.
2614 (rs6000_stack_protect_fail): Mark unused.
2615 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2616 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
2618 2011-06-08 Andi Kleen <ak@linux.intel.com>
2620 * varasm.c (get_section): Print location of other conflict
2621 for section conflicts.
2623 2011-06-08 Andi Kleen <ak@linux.intel.com>
2625 * config/i386/driver-i386.c (host_detect_local_cpu):
2626 Add model 0x2d Intel CPU.
2628 2011-06-08 Andi Kleen <ak@linux.intel.com>
2630 * reginfo.c (global_regs_decl): Add.
2631 (globalize_reg): Add decl parameter. Compute location. Pass location
2632 to warnings and add inform. Store decl in global_regs_decl.
2633 * rtl.h (globalize_reg): Update prototype.
2634 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2636 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2638 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2640 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2643 * config/sh/predicates.md (general_movsrc_operand): Check
2644 mode for memory with indexed address for QI and HImode.
2645 (general_movdst_operand): Likewise.
2647 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2649 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2651 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
2653 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2654 (num_ssa_operands): Likewise.
2655 (op_iter_init_phiuse): Forward-declare.
2656 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2658 2011-06-08 Nick Clifton <nickc@redhat.com>
2660 * doc/invoke.texi (ARM Options): Update description of
2663 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2665 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2666 unknown Intel family 0x6 CPUs.
2668 2011-06-08 Martin Jambor <mjambor@suse.cz>
2670 * tree-sra.c (mark_rw_status): Removed.
2671 (analyze_access_subtree): New parameter parent instead of
2672 mark_read and mark_write, propagate from that.
2674 2011-06-08 Julian Brown <julian@codesourcery.com>
2676 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2677 for double-precision helper functions in hard-float mode if only
2678 single-precision arithmetic is supported in hardware.
2680 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
2682 PR rtl-optimization/49303
2683 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2684 code_motion_path_driver returned 0 or 1.
2685 (sel_region_finish): Clear h_d_i_d.
2687 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2689 * config/sh/sh.c (prepare_move_operands): Set pic register
2690 appropriately for global and local dynamic tls models even
2691 if flag_pic is unset.
2693 2011-06-07 Jason Merrill <jason@redhat.com>
2695 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2697 2011-06-07 Xinliang David Li <davidxl@google.com>
2698 * passes.c (enable_disable_pass): Handle assembler name.
2699 (is_pass_explicitly_enabled_or_disabled): Ditto.
2701 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2703 PR tree-optimization/48497
2704 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2706 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2708 PR tree-optimization/46728
2709 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2710 to use gimple_val_nonnegative_real_p.
2711 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2712 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2714 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2716 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2718 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2720 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2723 2011-06-07 Richard Guenther <rguenther@suse.de>
2725 * stor-layout.c (initialize_sizetypes): Initialize all
2726 sizetypes based on target definitions.
2727 (set_sizetype): Remove.
2728 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2729 * tree.h (set_sizetype): Remove.
2731 2011-06-07 Nick Clifton <nickc@redhat.com>
2733 * config.gcc: Unify V850 architecture options and add support for
2734 newer V850 architectures.
2735 * config/v850/t-v850e: Delete.
2737 2011-06-07 Richard Guenther <rguenther@suse.de>
2739 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2740 Call set_sizetype from here.
2742 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
2744 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2745 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2747 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2748 Andrew Stubbs <ams@codesourcery.com>
2750 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2752 * doc/md.texi (Canonicalization of Instructions): Document widening
2753 multiply canonicalization.
2755 2011-06-07 Jakub Jelinek <jakub@redhat.com>
2757 PR gcov-profile/49299
2758 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2760 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
2762 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2764 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2765 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2766 vect_recog_pow_pattern): Likewise.
2767 (vect_pattern_recog_1): Remove declaration.
2768 (widened_name_p): Remove declaration. Add new argument to specify
2769 whether to check that both types are either signed or unsigned.
2770 (vect_recog_widen_mult_pattern): Update documentation. Handle
2771 unsigned patterns and multiplication by constants.
2772 (vect_pattern_recog_1): Update vect_recog_func references. Use
2773 statement information from the statement returned from pattern
2774 detection functions.
2775 (vect_pattern_recog): Update vect_recog_func reference.
2776 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2777 multiplication by a constant use the type of the other operand.
2779 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2781 PR rtl-optimization/49145
2782 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2784 2011-06-06 Jakub Jelinek <jakub@redhat.com>
2787 * dwarf2out.c (native_encode_initializer): Decrement count in each
2791 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2795 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2796 if stmt folded into nothing.
2797 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2798 a bb folded into nothing, just update cgraph edges and move to next bb.
2799 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2800 to be NULL. Don't compute count and frequency if new_call is NULL.
2802 2011-06-04 Diego Novillo <dnovillo@google.com>
2804 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2805 (cgraph.o): Likewise.
2806 (cgraphunit.o): Likewise.
2807 * cgraphunit.c: Include lto-streamer.h
2808 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2810 * lto-streamer-in.c (unpack_value_fields): Call
2811 streamer_hooks.unpack_value_fields if set.
2812 (lto_materialize_tree): For unhandled nodes, first try to
2813 call lto_streamer_hooks.alloc_tree, if it exists.
2814 (lto_input_ts_decl_common_tree_pointers): Move reading of
2815 DECL_INITIAL to lto_streamer_read_tree.
2816 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2817 (lto_streamer_read_tree): New.
2818 (lto_reader_init): Rename from lto_init_reader.
2819 Move initialization code to lto/lto.c.
2820 * lto-streamer-out.c (pack_value_fields): Call
2821 streamer_hooks.pack_value_fields if set.
2822 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2823 call streamer_hooks.indexable_with_decls_p before giving up.
2824 (lto_output_ts_decl_common_tree_pointers): Move handling
2825 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2826 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2827 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2828 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2829 (lto_streamer_write_tree): New.
2830 (lto_output): Call lto_streamer_init directly.
2831 (lto_writer_init): Remove.
2832 * lto-streamer.c (streamer_hooks): New.
2833 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2834 instead of lto_preload_common_nodes.
2835 (lto_is_streamable): Move from lto-streamer.h
2836 (lto_streamer_hooks_init): New.
2837 (streamer_hooks): New.
2838 (streamer_hooks_init): New.
2839 * lto-streamer.h (struct output_block): Forward declare.
2840 (struct lto_input_block): Likewise.
2841 (struct data_in): Likewise.
2842 (struct bitpack_d): Likewise.
2843 (struct streamer_hooks): Declare.
2844 (streamer_hooks): Declare.
2845 (lto_streamer_hooks_init): Declare.
2846 (lto_streamer_write_tree): Declare.
2847 (lto_streamer_read_tree): Declare.
2848 (streamer_hooks_init): Declare.
2849 (lto_is_streamable): Move to lto-streamer.c
2851 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2853 * longlong.h (smul_ppmm): The resulting register pair contains the
2854 higher order word first.
2856 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2858 PR tree-optimization/46728
2859 * builtins.c (powi_table): Remove.
2860 (powi_lookup_cost): Remove.
2861 (powi_cost): Remove.
2862 (expand_powi_1): Remove.
2863 (expand_powi): Remove.
2864 (expand_builtin_pow_root): Remove.
2865 (expand_builtin_pow): Remove.
2866 (expand_builtin_powi): Eliminate handling of constant exponent.
2867 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2869 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2871 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2873 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2875 * dce.c (reset_unmarked_insns_debug_uses): New.
2876 (delete_unmarked_insns): Skip debug insns.
2877 (prescan_insns_for_dce): Likewise.
2878 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2879 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2880 active reg can be found.
2881 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2882 (convert_regs_1): Use it.
2884 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2886 * tree-pretty-print.c (dump_function_header): Add flags.
2887 Don't dump decl_uid with nouid.
2888 * tree-pretty-print.h (dump_function_header): Adjust.
2889 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2890 * passes.c (pass_init_dump_file): Pass dump_flags on.
2891 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2893 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2896 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2898 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2900 PR tree-optimization/49243
2901 * calls.c (setjmp_call_p): Also check if fndecl has the
2902 returns_twice attribute.
2904 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2906 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2909 2011-06-06 Richard Henderson <rth@redhat.com>
2910 Georg-Johann Lay <avr@gjlay.de>
2913 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2915 * config/avr/avr.md ("insv"): New insn expander.
2916 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2917 "*insv.not.io", "*insv.reg"): New insns.
2919 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2922 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2923 to nonimmediate_operand from memory_operand for the operand that is to
2924 be forced to memory by the expander. Lose the constraints.
2926 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2928 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2929 EH return when delayed branches are disabled.
2931 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2933 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2934 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2936 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2937 Simplify MODE_V1DF and MODE_V2SF handling.
2938 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2939 Simplify MODE_SF handling.
2941 2011-06-04 Jan Hubicka <jh@suse.cz>
2943 PR tree-optimization/48893
2944 PR tree-optimization/49091
2945 PR tree-optimization/49179
2946 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2949 2011-06-04 Jan Hubicka <jh@suse.cz>
2952 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2955 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2957 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2959 2011-06-04 Jakub Jelinek <jakub@redhat.com>
2962 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2963 to be strictly smaller than 1 << shiftcount.
2965 2011-06-04 Jan Hubicka <jh@suse.cz>
2967 PR tree-optimize/48929
2968 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2971 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
2974 * calls.c (emit_call_1): Prefer the __builtin declaration of
2977 2011-06-03 Diego Novillo <dnovillo@google.com>
2979 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2980 (lto_input_tree_pointers): Likewise.
2981 * lto-streamer-out.c (pack_value_fields): Likewise.
2982 (lto_output_tree_pointers): Likewise.
2983 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2984 and OPTIMIZATION_NODE.
2986 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2988 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2989 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2990 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2991 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2992 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2993 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2994 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2995 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2996 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2997 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2998 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2999 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3000 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3001 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3002 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3003 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3004 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3005 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3006 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3007 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3008 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3009 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3010 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3011 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3012 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3013 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3014 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3015 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3016 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3017 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3018 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3019 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3020 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3021 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3022 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3023 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3024 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3025 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3026 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3027 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3028 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3029 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3030 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3031 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3032 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3033 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3034 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3035 * system.h (MD_UNWIND_SUPPORT): Poison.
3036 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3037 * doc/tm.texi: Regenerate.
3038 * unwind-dw2.c: Include md-unwind-support.h instead of
3040 * config/ia64/unwind-ia64.c: Likewise.
3041 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3043 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3045 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3047 2011-06-03 Richard Henderson <rth@redhat.com>
3048 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3050 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3051 (sigill_hdlr): Correct insn, insn size.
3052 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3054 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3056 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3058 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3059 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3060 * config/mips/t-iris: Remove.
3061 * config/mips/t-irix6: New file.
3062 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3064 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3066 * Makefile.in (LIB2ADDEHDEP): Remove.
3067 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3068 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3069 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3070 * config/t-darwin (LIB2ADDEHDEP): Remove.
3071 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3072 * config/t-linux (LIB2ADDEHDEP): Remove.
3074 2011-06-03 Diego Novillo <dnovillo@google.com>
3076 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3077 (lto_register_var_decl_in_symtab): Likewise.
3078 (lto_register_function_decl_in_symtab): Likewise.
3079 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3080 logic to uniquify_nodes.
3082 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3084 * config/alpha/t-osf5: Remove.
3085 * config/alpha/t-osf-pthread: Remove.
3086 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3087 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3089 2011-06-03 Julian Brown <julian@codesourcery.com>
3091 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3092 (strongarm1110): Use strongarm tuning.
3093 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3094 * config/arm/arm.c (arm_strongarm_tune): New.
3095 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3096 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3097 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3098 setting, using previous defaults or 1 for Cortex-A5.
3099 (arm_option_override): Set max_insns_skipped from current tuning.
3101 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3103 * doc/install.texi (Options specification): Document --with-specs.
3105 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3107 * config/arm/neon.md (orndi3_neon): Actually split it.
3109 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3111 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3112 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3114 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3117 * target.def (delay_sched2, delay_vartrack): New.
3118 * doc/tm.texi.in: Update.
3119 * doc/tm.texi: Rebuild.
3120 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3121 * var-tracking.c (gate_handle_var_tracking): Likewise.
3122 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3123 (bfin_flag_var_tracking): Drop.
3124 (output_file_start): Don't save and override flag_var_tracking.
3125 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3126 (bfin_reorg): Test original variables.
3127 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3128 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3129 (ia64_flag_var_tracking): Drop.
3130 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3131 (ia64_file_start): Don't save and override flag_var_tracking.
3132 (ia64_override_options_after_change): Ditto
3133 flag_schedule_insns_after_reload.
3134 (ia64_reorg): Test original variables.
3135 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3136 (picochip_flag_var_tracking): Drop.
3137 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3138 (picochip_option_override): Don't save and override
3139 flag_schedule_insns_after_reload.
3140 (picochip_asm_file_start): Ditto flag_var_tracking.
3141 (picochip_reorg): Test original variables.
3142 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3143 (TARGET_DELAY_VARTRACK): Define.
3144 (spu_var_tracking): New.
3145 (spu_machine_dependent_reorg): Call it.
3146 (asm_file_start): Don't save and override flag_var_tracking.
3148 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3151 * config/sh/predicates.md (general_movsrc_operand): Return 0
3152 for memory and memory subreg of which address is an invalid
3153 indexed address for QI and HImode.
3154 (general_movdst_operand): Likewise.
3156 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3158 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3159 edges only, when there is a non-local label in the function.
3160 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3162 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3164 * config/i386/constraints.md (Y3): New register constraint.
3165 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3166 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3167 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3168 *sse2_interleave_lowv2df.
3170 2011-06-02 Julian Brown <julian@codesourcery.com>
3172 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3173 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3174 (arm_cortex_a5_tune): New.
3176 2011-06-02 Julian Brown <julian@codesourcery.com>
3178 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3179 * config/arm/arm.c (arm_default_branch_cost): New.
3180 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3181 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3182 (arm_fa726_tune): Set branch_cost field using
3183 arm_default_branch_cost.
3184 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3185 current_tune structure.
3186 * dojump.c (tm_p.h): Include file.
3188 2011-06-02 Julian Brown <julian@codesourcery.com>
3190 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3192 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3193 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3194 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3196 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3197 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3198 (arm_fa726te_tune): Add prefer_constant_pool setting.
3199 (arm_v6t2_tune, arm_cortex_tune): New.
3200 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3201 prefer_constant_pool setting.
3203 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3205 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3207 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3208 (*movdf_internal) <case 6,7,8>: Ditto.
3210 * config/i386/constraints.md (Y4): New register constraint.
3211 * config/i386/sse.md (vec_set<mode>_0): Merge with
3212 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3213 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3214 *vec_extractv2di_1_sse.
3215 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3216 and *vec_concatv2di_rex64_sse.
3218 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3221 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3222 of cgraph_local_info for null before attempting to use it.
3224 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3226 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3227 (current_function_dynamic_alloc_count): Delete.
3228 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3229 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3230 (expand_builtin_update_setjmp_buf): Remove dead code.
3231 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3232 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3234 * function.c (instantiate_virtual_regs): Likewise.
3235 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3236 for a block with a single abnormal incoming edge.
3237 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3238 (SETJMP_VIA_SAVE_AREA): Delete.
3239 * config/sparc/sparc-protos.h (load_got_register): Declare.
3240 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3241 (load_got_register): Make global.
3242 (sparc_frame_pointer_required): Add 'static'.
3243 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3244 (sparc_builtin_setjmp_frame_value): New function.
3245 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3246 (save_stack_nonlocal): New expander.
3247 (restore_stack_nonlocal): Likewise.
3248 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3249 (nonlocal_goto_internal): New insn.
3250 (goto_handler_and_restore): Delete.
3251 (builtin_setjmp_setup): Likewise.
3252 (do_builtin_setjmp_setup): Likewise.
3254 (builtin_setjmp_receiver): New expander.
3256 2011-06-01 David Li <davidxl@google.com>
3259 * tree-pretty-print.c (dump_function_header): Format cleanup.
3261 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3264 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3265 needed when original operands are used for msw_skip comparison.
3267 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3270 * var-tracking.c (add_uses, add_stores): Don't call
3271 cselib_subst_to_values on ENTRY_VALUE.
3273 2011-06-01 Diego Novillo <dnovillo@google.com>
3275 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3276 output_record_start with LTO_null instead of output_zero.
3277 (lto_output_ts_binfo_tree_pointers): Likewise.
3278 (lto_output_tree): Likewise.
3279 (output_eh_try_list): Likewise.
3280 (output_eh_region): Likewise.
3281 (output_eh_lp): Likewise.
3282 (output_eh_regions): Likewise.
3283 (output_bb): Likewise.
3284 (output_function): Likewise.
3285 (output_unreferenced_globals): Likewise.
3286 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3287 instead of NUM_TREE_CODES.
3288 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3289 (lto_output_int_in_range): Change << to >> when shifting VAL.
3291 2011-06-01 Diego Novillo <dnovillo@google.com>
3293 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3294 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3296 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3299 * optabs.h (valid_multiword_target_p): Declare.
3300 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3301 doing multi-word operations.
3302 * optabs.c (expand_binop): Likewise.
3303 (expand_doubleword_bswap): Likewise.
3304 (expand_absneg_bit): Likewise.
3305 (expand_unop): Likewise.
3306 (expand_copysign_bit): Likewise.
3307 (multiword_target_p): New function.
3309 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3311 PR rtl-optimization/48830
3312 PR rtl-optimization/48808
3313 PR rtl-optimization/48792
3314 * reload.c (push_reload): Check contains_reg_of_mode.
3315 * reload1.c (strip_paradoxical_subreg): New function.
3316 (gen_reload_chain_without_interm_reg_p): Use it to handle
3317 paradoxical subregs.
3318 (emit_output_reload_insns, gen_reload): Likewise.
3320 2011-06-01 David Li <davidxl@google.com>
3322 * predict.c : Change pass name
3325 * tree-profile.c: Ditto.
3328 2011-06-01 David Li <davidxl@google.com>
3330 * tree-pretty-print.c (dump_function_header): New function.
3331 * final.c (rest_of_clean_state): Use header dumper.
3332 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3333 * passes.c (pass_init_dump_file): Use header dumper.
3335 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3337 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3338 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3339 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3341 (mem_loc_descriptor): Use them.
3343 * var-tracking.c (create_entry_value): New function.
3344 (vt_add_function_parameter): Use it.
3346 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3348 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3349 Include <signal.h>, <ucontext.h>.
3350 (sigill_caught): Define.
3351 (sigill_hdlr): New function.
3352 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3353 insns can be executed.
3354 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3355 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3357 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3359 * config/t-slibgcc-darwin: Move to ...
3360 * config/t-slibgcc-dummy: ... this. Clarify comments.
3361 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3362 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3363 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3364 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3365 Remove i386/t-crtstuff from tmake_file.
3366 (i[34567]86-*-solaris2*): Remove t-svr4,
3367 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3369 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3370 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3371 sparc/t-crtfm from tmake_file.
3372 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3373 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3375 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3376 * config/i386/t-nwld (SHLIB_LINK): Remove.
3377 * config/i386/t-rtems-i386: Rename to ...
3378 * config/i386/t-rtems: ... this.
3379 ($(T)crti.o, $(T)crtn.o): Remove.
3380 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3381 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3382 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3383 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3384 EXTRA_MULTILIB_PARTS): Remove.
3385 * config/sparc/t-sol2-64: Likewise.
3386 * config/sparc/t-sol2: Remove.
3387 * config/sparc/t-crtin: Remove.
3388 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3389 * config/i386/gmon-sol2.c: Remove.
3390 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3391 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3392 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3393 * config/i386/sol2-gc1.asm: Remove.
3394 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3395 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3396 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3397 * config/t-slibgcc-sld: Remove.
3399 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3401 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3402 base_type_for_mode with op_mode instead of mode.
3404 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3406 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3408 * config/arm/arm-tune.md: Regenerate.
3409 * config/arm/arm-tables.opt: Regenerate.
3410 * config/arm/arm.c (FL_DIV): Rename...
3411 (FL_THUMB_DIV): ... to this.
3412 (FL_ARM_DIV): Define.
3413 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3414 (arm_arch_hwdiv): Remove.
3415 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3416 (arm_issue_rate): Add cortexr5.
3417 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3418 __ARM_ARCH_EXT_IDIV__.
3419 (TARGET_IDIV): Define.
3420 (arm_arch_hwdiv): Remove.
3421 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3422 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3423 (divsi3, udivsi3): New patterns.
3424 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3425 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3427 2011-06-01 Martin Jambor <mjambor@suse.cz>
3429 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3430 * ipa-utils.c (searchc): Set scc_no.
3432 2011-06-01 Martin Jambor <mjambor@suse.cz>
3434 * ipa-utils.c (searchc_env): New field allow_overwritable.
3435 (searchc): do not ignore edges to overwritable nodes if indicated
3436 by env->allow_overwritable.
3437 (ipa_reduced_postorder): Set env.allow_overwritable.
3439 2011-06-01 Richard Guenther <rguenther@suse.de>
3441 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3443 * lto-streamer.c (lto_record_common_node): Take node pointer,
3444 do not register types.
3445 (lto_preload_common_nodes): Explicitly skip preloading nodes
3446 that differ between frontends.
3448 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3450 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3453 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3455 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3456 parameter value for dump. Dump cost on outermost call only.
3457 (rs6000_memory_move_cost): Dump cost on outermost call only.
3459 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3461 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3462 DW_OP_GNU_convert ops.
3464 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3465 cselib_preserve_constants.
3466 (cselib_lookup_1): If cselib_preserve_constants,
3467 a new VALUE is being created for REG and there is a VALUE for the
3468 same register in wider mode, add another loc with lowpart SUBREG of
3470 (cselib_subst_to_values): Handle ENTRY_VALUE.
3471 * var-tracking.c (replace_expr_with_values): Return NULL for
3473 * dwarf2out.c (convert_descriptor_to_signed): New function.
3474 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3475 instead of two shifts.
3476 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3477 the right mode if needed.
3478 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3479 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3480 convert_descriptor_to_signed.
3481 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3482 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3485 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3487 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3489 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3490 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3491 (SWI248x): New mode iterator, rename from X87MODEI.
3492 (X87MODEI): Remove mode iterator.
3493 (X87MODEI12): Ditto.
3494 (SSEMODEI24): Ditto.
3496 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3498 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3499 * doc/invoke.texi: Document max-vartrack-expr-depth.
3500 * var-tracking.c (EXPR_DEPTH): New.
3501 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3503 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3505 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3506 * config/i386/sse.md: Add n to negated FMA pattern names.
3508 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3510 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3512 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3514 * gengtype-state.c (read_state_params_structs): Initialize previous.
3516 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3518 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3519 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3521 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3523 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3524 registers. Penalize F*r->o alternative to prevent partial memory
3525 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3526 CONST_DOUBLE immediates when optimizing function for size. Do not move
3527 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3528 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3529 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3530 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3532 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3534 (fp_register_operand splitters): Use fp_register_operand
3535 constraint. Do not use FP_REG_P in insn condition.
3536 (any_fp_register_operand splitters): Use any_fp_register_operand
3537 constraint. Do not use ANY_FP_REG_P in insn condition.
3539 2011-05-31 Jan Hubicka <jh@suse.cz>
3541 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3542 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3543 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3544 (lto_output_edge): Use output_enum and var_len_unsigned.
3545 (lto_output_varpool_node): Likewise.
3546 (input_overwrite_node): Do not take resolution parameter;
3547 extract it from a bitpack.
3548 (input_node): Do not read resolution; use input_enum and
3550 (input_varpool_node): Likewise.
3551 (input_edge): Likewise.
3552 (input_cgraph_1): Likewise.
3554 2011-05-31 Richard Guenther <rguenther@suse.de>
3556 * gimple.c (gimple_register_canonical_type): Do not register
3557 any types via gimple_register_type.
3559 2011-05-31 Jan Hubicka <jh@suse.cz>
3561 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3564 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3566 PR rtl-optimization/49235
3567 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3568 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3570 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3572 PR tree-optimization/49093
3573 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3576 2011-05-31 Dodji Seketeli <dodji@redhat.com>
3579 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3580 for concrete functions containing the code of cloned functions.
3582 2011-05-31 Richard Guenther <rguenther@suse.de>
3584 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3586 (forward_propagate_into_comparison_1): ... this.
3587 (forward_propagate_comparison): Rename to ...
3588 (forward_propagate_into_comparison): ... this. Split out
3589 real forward propagation code to ...
3590 (forward_propagate_comparison): ... this.
3591 (forward_propagate_into_gimple_cond): Remove looping.
3592 (forward_propagate_into_cond): Likewise.
3593 (simplify_not_neg_expr): Return whether we have done something.
3594 (simplify_gimple_switch): Likewise.
3595 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3596 (ssa_forward_propagate_and_combine): ... this. Re-structure
3597 to do a forward forward-propagation walk on BBs and a backward
3598 stmt combining walk on BBs. Consistently re-scan changed statements.
3599 (pass_forwprop): Adjust.
3601 2011-05-30 Ian Lance Taylor <iant@google.com>
3603 * godump.c (go_format_type): Correct length of name added to
3604 obstack for anonymous field.
3606 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3609 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3610 part of the second operand is 0.
3612 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
3614 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3615 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3616 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3617 (*movdf_internal_rex64): Do not penalize F->r alternative.
3618 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3619 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3620 when optimizing function for size. Do not move CONST_DOUBLEs
3621 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3622 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3623 SUBREGs. Do not check for MEM_P operands in the insn condition,
3624 check for ANY_FP_REGNO_P instead.
3625 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3626 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3628 * config/i386/i386.c (ix86_option_override_internal): Do not
3629 set TARGET_INTEGER_DFMODE_MOVES here.
3631 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3634 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3636 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3638 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3639 DW_TAG_rvalue_reference_type even for
3640 -gdwarf-4 -fno-debug-types-section.
3642 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3644 PR tree-optimization/46728
3645 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3646 (build_and_insert_binop): New.
3647 (gimple_expand_builtin_pow): Reorder args for
3648 build_and_insert_call; use build_and_insert_binop; add more
3649 optimizations for fractional exponents.
3651 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3656 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3658 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3660 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3661 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3662 TS_BASE instead of TS_COMMON.
3663 * varasm.c (assemble_name): Remove assert.
3665 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3667 * config.gcc: Keep obselete list sorted.
3669 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3670 Eric Botcazou <ebotcazou@adacore.com>
3672 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3673 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3674 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3675 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3676 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3678 2011-05-30 Richard Guenther <rguenther@suse.de>
3680 * gimple.c (gimple_types_compatible_p_1): Compare record
3681 and union type members properly.
3683 2011-05-30 Richard Guenther <rguenther@suse.de>
3685 PR tree-optimization/49210
3686 * ipa-split.c (split_function): Care for the case where the call
3687 result is not trivially convertible to the result holding variable.
3689 2011-05-30 Richard Guenther <rguenther@suse.de>
3691 PR tree-optimization/49218
3692 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3695 2011-05-30 Richard Guenther <rguenther@suse.de>
3697 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3698 New function split out from ...
3699 (forward_propagate_into_gimple_cond): ... here. Adjust.
3700 (forward_propagate_into_cond): Likewise.
3701 (forward_propagate_comparison): Also propagate into
3702 comparisons on assignment RHS. Change return value to
3703 behave similar to forward_propagate_into_cond.
3704 (tree_ssa_forward_propagate_single_use_vars): Handle
3705 strict-overflow warnings properly for forward_propagate_comparison.
3707 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3709 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3711 * configure: Regenerate.
3713 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3715 PR tree-optimization/49199
3716 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3717 non-reduction operands are either defined in the loop or by induction.
3719 2011-05-29 Xinliang David Li <davidxl@google.com>
3721 * opts-global.c (handle_common_deferred_options): Handle new options.
3722 * passes.c (register_one_dump_file): Call register_pass_name.
3723 (execute_one_pass): Check explicit enable/disable flag.
3724 (passr_hash): New function.
3726 (register_pass_name): Ditto.
3727 (get_pass_by_name): Ditto.
3730 (enable_pass): Ditto.
3731 (disable_pass): Ditto.
3732 (is_pass_explicitly_enabled_or_disabled): Ditto.
3734 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
3736 * config/i386/i386.md (*movoi_internal_avx): Use
3737 standard_sse_constant_opcode for alternative 0.
3738 (*movti_internal_sse): Ditto.
3739 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3741 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3743 (*movsi_internal): Ditto.
3744 (*movdi_internal): Ditto. Add ssecvt type moves.
3746 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3749 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3751 2011-05-29 Jakub Jelinek <jakub@redhat.com>
3753 PR rtl-optimization/49095
3754 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3755 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3757 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3760 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3761 recurse_p argument. Only follow register copies if it is set,
3762 and prevent mips_find_pic_call_symbol from recursing.
3763 (mips_find_pic_call_symbol): Add a recurse_p argument.
3764 Pass it to mips_pic_call_symbol_from_set.
3765 (mips_annotate_pic_calls): Update accordingly.
3767 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3769 * emit-rtl.c (try_split): Use a loop to search for
3770 NOTE_INSN_CALL_ARG_LOCATIONs.
3772 2011-05-29 Richard Guenther <rguenther@suse.de>
3774 PR tree-optimization/49217
3775 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3777 2011-05-28 Jan Hubicka <jh@suse.cz>
3779 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3781 (string_slot_free): Remove
3782 (create_output_block): Initialize obstack.
3783 (destroy_output_block): Free obstack.
3784 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3785 the string unless it needs to be added into the hash.
3786 (lto_output_string_with_length): Add persistent attribute;
3787 handle NULL strings.
3788 (lto_output_string): Add PERSISTENT parameter.
3789 (output_string_cst, output_identifier): Simplify.
3790 (lto_output_location_bitpack): Update.
3791 (lto_output_builtin_tree): Update.
3792 * lto-streamer.h (struct output_block): Add obstack.
3793 (lto_output_string, lto_output_string_with_length): Remove
3794 declarations; functions are static now.
3796 2011-05-28 Jan Hubicka <jh@suse.cz>
3798 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3799 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3800 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3801 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3802 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3803 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3804 unpack_ts_decl_with_vis_value_fields,
3805 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3806 lto_get_builtin_tree): Use enum and variable length i/o.
3807 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3808 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3810 (bp_pack_enum, bp_unpack_enum): New macros.
3812 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3814 * genrecog.c: Remove redundant forward declarations.
3816 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3818 * config.gcc: Deprecate mips*-*-openbsd*.
3820 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3823 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3826 2011-05-27 Andrew Pinski <pinskia@gmail.com>
3829 * gengtype.c (vec_prefix_type): New function.
3830 (note_def_vec): Use vec_prefix_type and change the length
3831 attribute to be based on the prefix.
3832 * vec.c: Include coretypes.h before vec.h.
3833 (struct vec_prefix): Remove.
3834 (vec_gc_p_reserve): Change the offsetof to sizeof.
3835 (vec_gc_p_reserve_exact): Likewise.
3836 (vec_heap_p_reserve): Likewise.
3837 (vec_heap_p_reserve_exact): Likewise.
3838 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3839 (vec_stack_p_reserve): Change the offsetof to sizeof.
3840 (vec_stack_p_reserve_exact): Likewise.
3841 * vec.h (struct vec_prefix): New struct definition.
3842 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3843 (VEC_T_GTY(T,B)): Likewise.
3844 (DEF_VEC_FUNC_P(T)): Use prefix field.
3845 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3846 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3848 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3850 PR tree-optimization/46728
3851 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3852 (powi_as_mults): Add gimple_set_location.
3853 (build_and_insert_call): New.
3854 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3855 0.5, 0.25, 0.75, 1./3., or 1./6.
3857 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
3859 * doc/contrib.texi: Update copyright years.
3860 (Contributors): Add Zdenek Sojka.
3862 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3864 * c-decl.c (c_push_function_context): Copy the current statement
3866 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3867 (finish_struct): Call building_stmt_list_p instead of checking
3869 * c-parser.c (c_parser_postfix_expression): Likewise.
3870 * c-typeck.c (c_end_compound_stmt): Likewise.
3871 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3872 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3873 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3874 (free_stmt_list): Likewise.
3875 * tree.h (struct tree_statement_list): Include typed_tree instead
3877 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3878 as TS_TYPED instead of TS_COMMON.
3880 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3881 Uros Bizjak <ubizjak@gmail.com>
3883 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3884 (HAVE_AS_IX86_TLSGDPTL): Define.
3885 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3886 (HAVE_AS_IX86_TLSLDMPLT): Define.
3887 * configure: Regenerate.
3888 * config.in: Regenerate.
3889 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3890 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3891 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3892 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3893 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3895 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3897 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3899 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3901 (INSN_COND, INSN_REVERSE_COND): New macros.
3902 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3904 (sched_get_condition_with_rev): Cache the results, and look them up
3906 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3907 are clobbered by the current insn.
3908 * target.def (exposed_pipline): New sched data hook.
3909 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3910 * doc/tm.texi: Regenerate.
3912 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3914 PR tree-optimization/49170
3915 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3918 2011-05-27 Richard Guenther <rguenther@suse.de>
3921 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3924 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3926 * haifa-sched.c (sched_scan_info): Remove.
3927 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3929 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3931 (sched_scan): Remove.
3932 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3933 static. All callers changed.
3934 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3935 static. All callers changed.
3936 (sched_init_luids): Remove all arguments except the first. All
3937 callers changed. Don't use sched_scan.
3938 (haifa_init_h_i_d): Likewise.
3939 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3940 manually rather than using sched_init_luids. Likewise with
3941 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3942 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3943 rather than sched_init_luids with NULL args.
3944 * sel-sched-ir.c (new_insns): Remove variable.
3945 (sched_scan): New static function, previously in haifa-sched.c. Remove
3946 all arguments but the first two; all callers changed.
3947 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3948 rather than sched_init_luids.
3949 (sel_init_bbs): Remove second argument. All callers changed.
3950 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3951 with NULL arguments.
3952 (create_insn_rtx_from_pattern): Likewise.
3953 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3954 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3955 (sched_init_insn_luid, sched_extend_luids): Declare.
3956 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3959 2011-05-27 Richard Guenther <rguenther@suse.de>
3962 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3963 A CMP B ? (T) true : (T) false for non-integral types T again.
3965 2011-05-27 Jan Hubicka <jh@suse.cz>
3967 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3968 so 0 means NULL string.
3969 (lto_output_string_with_length): ... here.
3970 (lto_output_string, output_string_cst, output_identifier): Update
3971 handling of NULL strings.
3972 (lto_output_location_bitpack): New function.
3973 (lto_output_location): Use it.
3974 (lto_output_tree_ref): Use output_record_start.
3975 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3977 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3979 (input_string_internal): ... here;
3980 (input_string_cst, input_identifier, lto_input_string): Update handling
3982 (lto_input_location_bitpack): New function
3983 (lto_input_location): Use it.
3984 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3986 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3987 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3988 (bp_pack_value): Sanity check the value range.
3989 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3991 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3994 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3996 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3997 call_arg_location instructions down the floor.
3999 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4001 PR rtl-optimization/49154
4002 * ira.c (setup_pressure_classes): Process class without sublcasses
4003 as a candidate for pressure classes.
4005 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4007 PR rtl-optimization/48575
4008 * genrecog.c (position_type): New enum.
4009 (position): New structure.
4010 (decision): Use position structure instead of a string.
4011 (root_pos, peep2_insn_pos_list): New variables.
4012 (next_position, compare_positions): New functions.
4013 (new_decision): Use position structures instead of strings.
4014 (maybe_both_true): Likewise.
4015 (change_state): Likewise.
4016 (write_tree): Likewise.
4017 (make_insn_sequence): Likewise.
4019 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4021 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4022 TS_BASE instead of TS_COMMON.
4023 (find_decls_types_r): Check for TS_TYPED structure before looking at
4025 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4027 (BLOCK_CHAIN): Use new chain field.
4029 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
4031 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4032 moves expensive on Power7 also.
4034 2011-05-26 Richard Guenther <rguenther@suse.de>
4036 * fold-const.c (fold_unary_loc): Remove bogus code.
4038 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4040 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4042 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4043 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4044 TS_BASE instead of TS_COMMON.
4045 * varasm.c (assemble_name): Remove assert.
4047 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4049 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4051 * libgcc-std.ver: Delete file.
4053 2011-05-26 Richard Guenther <rguenther@suse.de>
4055 PR tree-optimization/48702
4056 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4057 only when we know the base address is within bounds.
4058 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4059 assume the base address of TARGET_MEM_REFs is in bounds.
4061 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4064 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4065 declaration in TARGET_SOLARIS.
4067 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
4069 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4070 The instruction is then expanded explicitly.
4071 (supported_compare): Callable instruction.
4072 (compare): Likewise.
4074 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4077 * gimplify.c (shortcut_cond_r): Don't special case
4078 COND_EXPRs if they have void type on one of their arms.
4080 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4082 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4083 to reduce duplication, and to achieve a slightly more logical order
4086 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4088 PR tree-optimization/49161
4089 * tree-vrp.c (struct case_info): New type.
4090 (compare_case_labels): Sort case_info structs instead of
4091 trees, and not primarily by CASE_LABEL uids but by
4092 label_for_block indexes.
4093 (find_switch_asserts): Put case labels into struct case_info
4094 array instead of TREE_VEC, adjust sorting, compare label_for_block
4095 values instead of CASE_LABELs.
4097 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4099 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4100 ("orndi3_neon"): Likewise.
4101 ("bic<mode>3_neon"): Likewise.
4103 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
4105 PR tree-optimization/49038
4106 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4107 Ensure at least one epilogue iteration if required by data
4109 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4110 to mark loops that require peeling for gaps.
4111 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4112 (vect_get_known_peeling_cost): Take peeling for gaps into
4114 (vect_transform_loop): Generate epilogue if required by data
4116 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4117 loop as requiring an epilogue if there are gaps in the end of
4120 2011-05-25 Ian Lance Taylor <iant@google.com>
4122 * godump.c (go_format_type): Output the first field with a usable
4125 2011-05-25 Ian Lance Taylor <iant@google.com>
4127 * godump.c (go_format_type): Check for invalid type names, pointer
4128 target types, and struct field types.
4130 2011-05-25 Jason Merrill <jason@redhat.com>
4132 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4134 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4136 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4138 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4140 * config/i386/i386.md (*movqi_extv_1)): Put back
4141 "register_operand" check in "type" calculation.
4142 (*movqi_extzv_2): Likewise.
4144 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4146 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4148 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4151 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4152 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4153 __divxc3, __divtc3): Wrap definitions in #ifndef.
4155 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4158 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4159 "register_operand" check and replace q_regs_operand with
4160 QIreg_operand in "type" calculation.
4161 (*movqi_extv_1): Likewise.
4162 (*movqi_extzv_2_rex64): Likewise.
4163 (*movqi_extzv_2): Likewise.
4165 * config/i386/predicates.md (QIreg_operand): New.
4167 2011-05-25 Richard Guenther <rguenther@suse.de>
4169 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4170 type-based offset disambiguation, streamline MEM_REF and
4171 TARGET_MEM_REF handling.
4173 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4175 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4176 (bdesc_special_args): Add pause intrinsic.
4178 * config/i386/i386.md (UNSPEC_PAUSE): New.
4181 * config/i386/ia32intrin.h (__pause): Likewise.
4183 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4186 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4188 PR tree-optimization/46728
4189 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4190 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4192 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4194 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4195 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4196 instead of TS_COMMON.
4198 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4200 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4201 LIBGCC2_GNU_PREFIX is defined.
4203 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4204 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4205 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4206 __clz_tab): Define using __N.
4207 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4208 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4209 * target.def (libfunc_gnu_prefix): New hook.
4210 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4211 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4212 * doc/tm.texi: Regenerate.
4213 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4214 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4216 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4217 (init_optabs): Likewise for the bswap libfuncs.
4218 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4220 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4221 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4222 * libgcc-std.ver: Remove.
4223 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4224 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4226 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4227 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4228 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4229 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4230 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4231 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4232 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4233 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4234 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4235 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4237 2011-05-25 Jan Hubicka <jh@suse.cz>
4239 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4240 (lto_output_tree): Use output_record_start.
4241 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4242 (lto_get_pickled_tree): Use input_record_start.
4243 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4244 (lto_value_range_error): New function.
4245 * lto-streamer.h (lto_value_range_error): Declare.
4246 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4247 (lto_output_enum, lto_input_enum): New macros.
4249 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4251 * common.opt (flag_stack_usage_info): New variable.
4252 (-Wstack-usage): New option.
4253 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4254 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4255 <OPT_fstack_usage>: Likewise.
4256 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4257 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4258 of flag_stack_usage.
4259 (emit_library_call_value_1): Likewise.
4260 * explow.c (allocate_dynamic_stack_space): Likewise.
4261 * function.c (instantiate_virtual_regs ): Likewise.
4262 (prepare_function_start): Likewise.
4263 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4264 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4265 * config/arm/arm.c (arm_expand_prologue): Likewise.
4266 (thumb1_expand_prologue): Likewise.
4267 * config/avr/avr.c (expand_prologue): Likewise.
4268 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4269 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4270 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4271 * config/mips/mips.c (mips_expand_prologue): Likewise.
4272 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4273 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4274 * config/s390/s390.c (s390_emit_prologue): Likewise.
4275 * config/sh/sh.c (sh_expand_prologue): Likewise.
4276 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4277 * config/spu/spu.c (spu_expand_prologue): Likewise.
4279 2011-05-25 Richard Guenther <rguenther@suse.de>
4281 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4282 (gimple_canonical_types_compatible_p): Likewise.
4284 2011-05-25 Jan Hubicka <jh@suse.cz>
4287 * ipa.c (function_and_variable_visibility): Only add to same
4288 comdat group list if DECL_ONE_ONLY.
4290 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4292 PR rtl-optimization/49014
4293 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4295 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4298 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4300 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4302 PR rtl-optimization/48757
4303 * ira-build.c (loop_with_eh_edge_p): Rename to
4304 loop_with_complex_edge_p, check edges on complexity, make function
4306 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4309 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4311 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4312 force flag_ira_share_save_slots to 0.
4314 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4316 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4317 (vt_initialize): Set PROLOGUE_BB unconditionally.
4318 Add block comment about CFA_BASE_RTX machinery.
4319 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4320 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4322 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4325 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4326 parsing of syntax error in ObjC instance variable lists. In
4327 particular, avoid an infinite loop if there is a stray ']'.
4328 Updated error message.
4330 2011-05-24 Ian Lance Taylor <iant@google.com>
4332 * godump.c (go_define): Don't accept a string immediately after
4335 2011-05-24 Ian Lance Taylor <iant@google.com>
4337 * godump.c (struct godump_container): Add invalid_hash field.
4338 (go_format_type): Return false if type is found in invalid_hash.
4339 (go_output_typedef): Add invalid type to invalid_hash.
4340 (go_finish): Create and delete invalid_hash.
4342 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4344 PR tree-optimization/46728
4345 * tree-ssa-math-opts.c (powi_table): New.
4346 (powi_lookup_cost): New.
4348 (powi_as_mults_1): New.
4349 (powi_as_mults): New.
4350 (gimple_expand_builtin_powi): New.
4351 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4352 (gate_cse_sincos): Remove sincos/cexp restriction.
4354 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4357 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4359 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4360 * mips-tdump.c: Likewise.
4362 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4365 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4366 add -mno-XXX. Handle FMA.
4368 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4370 PR rtl-optimization/48633
4371 * ira-build.c (loop_with_eh_edge_p): New function.
4372 (mark_loops_for_removal): Use it.
4374 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4376 PR rtl-optimization/48971
4377 * ira.c (setup_pressure_classes): Don't check register move cost
4378 for classes with one registers. Don't add pressure class if there
4379 is a pressure class with the same available hard registers.
4380 Check contains_reg_of_mode. Fix a typo in collecting
4381 temp_hard_regset. Ignore hard registers not belonging to a class.
4383 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4386 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4388 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4389 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4391 PR gcov-profile/48845
4392 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4394 2011-05-24 Richard Guenther <rguenther@suse.de>
4396 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4397 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4398 (gimple_types_compatible_p_1): Adjust.
4399 (iterative_hash_canonical_type): Do not bother about complete vs.
4401 (gimple_canonical_types_compatible_p): Likewise.
4403 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4405 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4407 2011-05-24 Richard Guenther <rguenther@suse.de>
4410 * gimple.c (gimple_register_canonical_type): Revert
4412 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4413 does not for a tree for the case where it matters. Cache
4414 pointer-type alias-sets.
4416 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4418 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4419 (OBJS): Remove options.o, opts-common.o and prefix.o.
4420 (OBJS-libcommon-target): New.
4421 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4422 (BACKEND): Include libcommon-target.a.
4423 (MOSTLYCLEANFILES): Include libcommon-target.a.
4424 (libcommon-target.a): New.
4425 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4428 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4430 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4431 parts of output shared with the driver.
4432 * optc-gen.awk: Don't generate parts of output not shared with the
4434 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4435 * doc/options.texi (SourcerInclude): Mention options-save.c.
4436 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4437 (OBJS): Add options-save.o.
4438 (options-save.c, options-save.o): New.
4439 (options.o): Update dependencies.
4440 (gcc-options.o): Remove.
4441 (mostlyclean): Remove options-save.c.
4443 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4446 * dbxout.c: Include cgraph.h.
4447 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4448 and without value expr, return NULL if no varpool node exists for
4449 it or if it is not needed.
4450 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4453 * c-decl.c (start_decl): Convert expr to void_type_node.
4455 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4457 PR rtl-optimization/48826
4458 * emit-rtl.c (try_split): When splitting a call that is followed
4459 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4461 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4463 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4464 parameters passed in memory prefer using DECL_INCOMING_RTL over
4465 the pseudos it will be copied into.
4467 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4470 * config/i386/i386.c (ix86_option_override_internal): Save the
4471 initial options after checking vzeroupper.
4473 2011-05-23 David Li <davidxl@google.com>
4475 PR tree-optimization/48988
4476 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4477 Initialize has_valid_pred for each pred chain.
4479 2011-05-23 Richard Guenther <rguenther@suse.de>
4481 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4482 (iterative_hash_gimple_type): Always hash type names.
4484 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4486 * c-typeck.c (build_function_call_vec): Tweak call to
4487 check_function_arguments.
4489 2011-05-23 Richard Guenther <rguenther@suse.de>
4491 PR tree-optimization/49115
4492 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4493 is not necessarily carried out, do not claim it kills the ref.
4494 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4496 2011-05-23 Richard Guenther <rguenther@suse.de>
4499 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4500 what pointer types we accept for folding.
4502 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4504 * gthr-gnat.c: Remove.
4505 * gthr-gnat.h: Remove.
4506 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4507 * config/t-freebsd (LIB2ADDEH): Likewise.
4508 * config/t-linux (LIB2ADDEH): Likewise.
4509 * config/t-sol2 (LIB2ADDEH): Likewise.
4510 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4511 * configure.ac (target_thread_file): Remove gnat handling.
4512 * configure: Regenerate.
4513 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4515 2011-05-23 Tristan Gingold <gingold@adacore.com>
4516 Eric Botcazou <ebotcazou@adacore.com>
4518 * gcov.c (create_file_names): If no object directory is specified,
4519 keep the directory of the file.
4521 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4523 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4524 * configure: Regenerate.
4526 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4529 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4530 failed and the comparison has a single bit signed type, use
4531 constm1_rtx instead of const1_rtx for true value.
4532 (do_store_flag): If ops->type is single bit signed type, disable
4533 signel bit test optimization and pass -1 instead of 1 as last
4534 parameter to emit_store_flag_force.
4536 2011-05-23 Tom de Vries <tom@codesourcery.com>
4539 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4541 (infer_loop_bounds_from_undefined): Use new function.
4543 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4545 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4546 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4547 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4549 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4551 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4553 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4554 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4557 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4559 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4561 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4563 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4564 UNSPEC_MOVE_PIC pattern.
4566 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4568 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4569 (sparc-*-rtems*): Likewise.
4570 (sparc64-*-elf*): Likewise.
4571 (sparc64-*-rtems*): Likewise.
4572 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4573 * config/sparc/t-crtin: New file.
4574 * config/sparc/t-sol2 (crti.o): Delete rule.
4576 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4577 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4578 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4579 (ENDFILE_SPEC): Add crtn.o.
4581 2011-05-22 Tom de Vries <tom@codesourcery.com>
4584 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4585 CODE_CONTAINS_STRUCT (TS_COMMON).
4587 2011-05-22 Jakub Jelinek <jakub@redhat.com>
4590 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4591 only after deciding which mode to use.
4593 2011-05-22 Tom de Vries <tom@codesourcery.com>
4596 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4597 for call to get_shiftadd_cost.
4599 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
4602 * config/i386/cpuid.h (bit_MMXEXT): New define.
4604 2011-05-22 Nick Clifton <nickc@redhat.com>
4606 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4607 initialisation of non-existant args[2] element. Use args[] array
4608 not arg[] array to pass arguments to build_function_type_list.
4610 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
4612 PR tree-optimization/49087
4613 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4615 2011-05-21 Jason Merrill <jason@redhat.com>
4618 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4619 static storage duration.
4621 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4623 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4626 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4628 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4629 false if there are call-saved registers here...
4630 (sparc_can_use_return_insn_p): ...but here instead.
4631 (save_or_restore_regs): Fix thinko.
4632 (sparc_expand_prologue): Use current_function_is_leaf.
4633 (sparc_frame_pointer_required): Likewise.
4635 2011-05-21 Nick Clifton <nickc@redhat.com>
4638 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4640 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4642 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4643 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4645 2011-05-21 Joseph Myers <joseph@codesourcery.com>
4647 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4648 * optc-gen.awk: Move common code to opt-read.awk.
4649 * opth-gen.awk: Likewise.
4650 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4652 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4654 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4656 2011-05-20 Tom de Vries <tom@codesourcery.com>
4659 * tree-ssa-loop-ivopts.c: Include expmed.h.
4660 (get_shiftadd_cost): New function.
4661 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4663 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4666 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4667 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4669 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4671 * Makefile.in: Update comment referring to $(OBJS-common).
4673 2011-05-20 Ian Lance Taylor <iant@google.com>
4675 * godump.c (go_output_typedef): Put enum constants in the macro
4676 hash table to avoid duplicate Go const definitions.
4678 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4680 * Makefile.in (LIBDEPS): Add libcommon.a.
4682 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4683 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4684 pretty-print.o and version.o.
4685 (OBJS-libcommon): New.
4686 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4687 (BACKEND): Add libcommon.a.
4688 (MOSTLYCLEANFILES): Likewise.
4690 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4691 (cpp$(exeext)): Likewise.
4692 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4693 pretty-print.o and input.o.
4694 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4695 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4697 (mips-tfile): Don't explicitly use version.o.
4698 (mips-tdump): Likewise.
4699 (gcov.o): Depend on $(DIAGNOSTIC_H).
4700 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4701 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4702 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4703 * gcov-dump.c: Include intl.h and diagnostic.h.
4704 (main): Initialize diagnostics.
4705 * gcov.c: Include diagnostic.h.
4707 (main): Initialize diagnostics.
4708 * lto-wrapper.c: Include diagnostic.h.
4709 (main): Initialize diagnostics.
4711 2011-05-20 Michael Matz <matz@suse.de>
4713 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4715 2011-05-20 Michael Matz <matz@suse.de>
4716 Richard Guenther <rguenther@suse.de>
4718 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4719 use lto_streamer_cache_append directly instead of returning a VEC.
4720 (preload_common_node): Remove.
4721 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4723 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4725 2011-05-20 Richard Guenther <rguenther@suse.de>
4727 PR tree-optimization/49079
4728 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4729 MEM_REFs correctly for the trailing array access detection.
4730 Special case constants the same way as decls for overall size
4733 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
4735 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4738 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4740 PR tree-optimization/49073
4741 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4742 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4743 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4745 2011-05-20 Richard Guenther <rguenther@suse.de>
4748 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4749 of pointer types the same way the middle-end does.
4751 2011-05-20 Richard Guenther <rguenther@suse.de>
4753 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4754 or pointer-to chains. Delay all fixup to uniquify_nodes.
4756 2011-05-19 Quentin Neill <quentin.neill@amd.com>
4758 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4759 (fma4_fmaddsub): Likewise
4761 2011-05-19 Jan Hubicka <jh@suse.cz>
4763 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4764 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4765 (type_pair_cache): New static var.
4766 (lookup_type_pair): Use fixed sized custom hash; make inline.
4767 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4768 calls of lookup_type_pair.
4769 (print_gimple_types_stats): Remove cache stats.
4770 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4773 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
4775 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4776 when TARGET_RDRND is active.
4777 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4778 Generate dummy SImode target register when target is NULL.
4780 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4782 * config/arm/arm-fpus.def: New.
4783 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4785 * config/arm/arm-tables.opt: Regenerate.
4786 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4787 (arm_option_override): Don't decode FPU name to string here.
4788 * config/arm/arm.opt (mfpu=): Use Enum.
4789 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4790 Update dependencies.
4792 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4794 * collect2.c: Include diagnostic.h.
4795 (fatal_perror, fatal, error, fancy_abort): Remove.
4796 (main): Set progname. Call xmalloc_set_program_name and
4797 diagnostic_initialize.
4798 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4799 scan_libraries, resolve_lib_name): Call fatal_error instead of
4800 fatal and fatal_perror.
4801 * collect2.h (error, fatal, fatal_perror): Don't declare.
4802 * tlink.c: Include diagnostic-core.h.
4803 (recompile_files): Call fatal_error instead of fatal_perror.
4804 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4805 pretty-print.o and input.o.
4806 (collect2.o, tlink.o): Update dependencies.
4808 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4810 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4812 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4815 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4816 COMDAT group syntax, both SPARC and x86 variants.
4817 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4818 * configure: Regenerate.
4819 * config/sol2.h (TARGET_SOLARIS): Define.
4820 (PUSHSECTION_FORMAT): Remove.
4821 (SECTION_NAME_FORMAT): Define.
4822 * config/sol2.c: Include hashtab.h.
4823 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4824 expansion, using SECTION_NAME_FORMAT.
4825 (solaris_comdat_htab): New variable.
4826 (struct comdat_entry): Define.
4827 (comdat_hash): New function.
4828 (comdat_eq): New function.
4829 (solaris_elf_asm_comdat_section): New function.
4830 (solaris_define_comdat_signature): New function.
4831 (solaris_code_end): New function.
4832 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4833 (solaris_code_end): Declare.
4834 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4835 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4837 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4838 Remove ATTRIBUTE_UNUSED.
4839 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4840 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4841 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4842 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4843 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4844 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4845 (PUSHSECTION_FORMAT): Remove.
4846 (SECTION_NAME_FORMAT): Redefine.
4848 2011-05-19 Kai Tietz <ktietz@redhat.com>
4850 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4851 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4852 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4854 2011-05-19 Anatoly Sokolov <aesok@post.ru>
4855 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4857 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4859 2011-05-19 Richard Guenther <rguenther@suse.de>
4862 * tree-object-size.c (addr_object_size): If the pointed-to
4863 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4865 2011-05-19 Richard Guenther <rguenther@suse.de>
4867 * gimple.c (gimple_types_compatible_p_1): Compare names of
4868 the types themselves.
4869 (iterative_hash_gimple_type): And hash them that way.
4870 (gimple_register_type_1): If we register a main variant properly
4871 initialize the leader to ourselves.
4873 2011-05-19 Tom de Vries <tom@codesourcery.com>
4876 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4877 get_loop_invariant_expr_id.
4878 (get_loop_invariant_expr_id): Use get_expr_id.
4879 (parm_decl_cost): New function.
4880 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4881 Improve bound cost estimation. Use different inv_expr_id for elim and
4884 2011-05-19 Tom de Vries <tom@codesourcery.com>
4887 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4888 cost_base.cost == 0.
4890 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4893 * config/i386/sse.md
4894 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4897 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4899 PR tree-optimization/49039
4900 * tree-vrp.c (extract_range_from_binary_expr): For
4901 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4902 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4904 2011-05-18 Tom de Vries <tom@codesourcery.com>
4907 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4909 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4911 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4912 (*tls_global_dynamic_64): Ditto.
4913 (*tls_local_dynamic_base_32_gnu): Ditto.
4914 (*tls_local_dynamic_base_64): Ditto.
4915 (tls_initial_exec_64_sun): Ditto.
4917 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4919 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4920 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4922 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4923 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4924 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4925 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4926 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4927 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4928 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4930 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4932 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4933 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4934 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4935 target_thread_pointer, arm_structure_size_boundary, struct
4936 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4937 struct abi_name, arm_all_abis): Remove.
4938 (arm_option_override) Don't process most enumerated option values here.
4939 Don't process target_fpe_name here. Work with integer not string for
4940 structure size boundary; use separate diagnostics for each case.
4941 * config/arm/arm.h (enum float_abi_type, enum
4942 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4944 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4945 arm_structure_size_boundary): Remove.
4946 * config/arm/arm.opt (mabi=): Use Enum and Init.
4947 (arm_abi_type): New Enum and EnumValue entries.
4948 (mfloat-abi=): Use Enum and Init.
4949 (float_abi_type): New Enum and EnumValue entries.
4950 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4951 (mfp16-format=): Use Enum and Init.
4952 (arm_fp16_format_type): New Enum and EnumValue entries.
4953 (mstructure-size-boundary=): Use UInteger and Init.
4954 (mtp=): Use Enum and Init.
4955 (arm_tp_type): New Enum and EnumValue entries.
4957 2011-05-18 Richard Guenther <rguenther@suse.de>
4959 PR tree-optimization/49018
4960 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4961 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4962 gimple_has_side_effects.
4964 2011-05-18 Richard Guenther <rguenther@suse.de>
4966 * gimple.c (gimple_register_type_1): New function, split out from ...
4967 (gimple_register_type): ... here. Avoid infinite recursion.
4969 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4971 PR tree-optimization/41881
4972 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4973 reduction_chains along with a macro for its access.
4974 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4975 (destroy_loop_vec_info): Free reduction chains.
4976 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4977 (vect_is_slp_reduction): New function.
4978 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4979 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4980 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4981 definition types for reduction chains.
4982 (vect_supported_load_permutation_p): Don't allow permutations for
4984 (vect_analyze_slp_instance): Support reduction chains.
4985 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4986 (vect_get_constant_vectors): Handle reduction chains.
4987 (vect_schedule_slp_instance): Mark the first statement of the
4988 reduction chain as reduction.
4990 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4992 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4993 names for group elements access.
4994 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4995 reduction chains as well. Remove data reference and interleaving
4996 related words from the fields names.
4997 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4999 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5000 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5001 vect_update_interleaving_chain, vect_same_range_drs,
5002 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5003 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5004 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5005 vect_analyze_group_access, vect_analyze_data_ref_access,
5006 vect_create_data_ref_ptr, vect_transform_strided_load,
5007 vect_record_strided_load_vectors): Likewise.
5008 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5009 vect_model_load_cost, vectorizable_store, vectorizable_load,
5010 vect_remove_stores, new_stmt_vec_info): Likewise.
5011 * tree-vect-slp.c (vect_build_slp_tree,
5012 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5014 2011-05-18 Richard Guenther <rguenther@suse.de>
5017 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5018 operand verification.
5019 (verify_gimple_assign_binary): Likewise.
5020 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5021 to non-1-precision BOOLEAN_TYPEs.
5023 2011-05-18 Tom de Vries <tom@codesourcery.com>
5026 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5028 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5030 PR tree-optimization/49000
5031 * tree-ssa.c (execute_update_addresses_taken): Call
5032 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5033 be rewritten and decl has been marked for renaming, reset
5036 2011-05-17 Joseph Myers <joseph@codesourcery.com>
5038 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5039 enum_opts_set when testing if attributes have set -mfpmath=.
5041 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5043 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5045 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5047 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5049 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5050 id.transform_lang_insert_block with NULL.
5052 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5054 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5055 (output_fp_compare): Change args 3 and 4 to bool.
5056 (ix86_expand_call): Change arg 6 to bool.
5057 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5058 (ix86_attr_length_vex_default): Change arg 3 to bool.
5059 * config/i386/i386.md: Update all uses.
5060 * config/i386/i386.c: Ditto.
5061 (ix86_flags_dependent): Change return type to bool.
5063 2011-05-17 Richard Guenther <rguenther@suse.de>
5065 * gimple.c (type_hash_pair_compare): Fix comparison.
5067 2011-05-17 Richard Guenther <rguenther@suse.de>
5069 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5070 case some more, fix final hash value of the non-singleton case.
5072 2011-05-17 Richard Guenther <rguenther@suse.de>
5076 2011-05-16 Richard Guenther <rguenther@suse.de>
5078 * gimple.c (gimple_types_compatible_p_1): Use names of the
5079 type itself, not its main variant.
5080 (iterative_hash_gimple_type): Likewise.
5082 2011-05-17 Richard Guenther <rguenther@suse.de>
5084 * gimple.c (gimple_register_canonical_type): Use the main-variant
5085 leader for computing the canonical type.
5087 2011-05-17 Nick Clifton <nickc@redhat.com>
5089 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5092 * config/rx/rx.md: Add peephole to remove redundant extensions
5094 (bitset_in_memory): Use rx_restricted_mem_operand.
5095 (bitinvert_in_memory): Likewise.
5096 (bitclr_in_memory): Likewise.
5098 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5099 Nick Clifton <nickc@redhat.com>
5101 * config/rx/rx.md: Add peepholes to match a register move followed
5102 by a comparison of the moved register. Replace these with an
5103 addition of zero that does both actions in one instruction.
5105 2011-05-17 Jakub Jelinek <jakub@redhat.com>
5108 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5109 predicate to allow CONST_INT.
5110 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5112 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5114 * opts-common.c (opt_enum_arg_to_value): New.
5115 * opts.h (opt_enum_arg_to_value): Declare.
5116 * config/i386/i386.opt (fpmath): Remove.
5117 (mfpmath=): Use Enum, Init and Save.
5118 (fpmath_unit): New Enum and EnumValue entries.
5119 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5120 name for function fpmath state.
5121 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5122 * config/i386/i386.c: Include diagnostic.h.
5123 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5124 (ix86_target_string): Take enum fpmath_unit value instead of string.
5125 (ix86_debug_options): Update call to ix86_target_string.
5126 (ix86_option_override_internal): Don't process fpmath strings here.
5127 (x86_function_specific_save, ix86_function_specific_restore):
5128 Don't handle fpmath state specially.
5129 (ix86_function_specific_print): Pass fpmath state to
5130 ix86_target_string instead of printing in this function.
5131 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5132 Handle enum attributes.
5133 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5134 (ix86_valid_target_attribute_tree): Update option_strings
5135 handling. Handle fpmath as enum option.
5136 (ix86_can_inline_p): Update field names for function fpmath state.
5137 (ix86_expand_builtin): Update call to ix86_target_string.
5138 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5139 (ix86_fpmath): Remove.
5140 * config/i386/t-i386 (i386.o): Update dependencies.
5142 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5144 PR preprocessor/48677
5145 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5146 from decoded_options[0], not from itself.
5148 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5150 * config/i386/constraints.md (z): New constraint.
5151 * config/i386/i386.c (c): New mode attribute.
5152 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5153 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5154 constraint for operand 0.
5155 (*call_vzeroupper): Ditto.
5156 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5157 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5158 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5159 Use "lzm" constraint for operand 0.
5160 (*call_pop_vzeroupper): Ditto.
5161 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5162 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5163 constraint for operand 0.
5164 (*sibcall_vzeroupper): Ditto.
5165 (*sibcall_rex64_ms_sysv): Ditto.
5166 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5167 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5168 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5169 (*sibcall_pop_vzeroupper): Ditto.
5170 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5171 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5172 mode iterator. Use "<c>zm" constraint for operand 1.
5173 (*call_value_vzeroupper): Ditto.
5174 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5176 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5177 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5178 *call_value_pop_1. Use "lzm" constraint for operand 1.
5179 (*call_value_pop_vzeroupper): Ditto.
5180 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5181 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5182 mode iterator. Use "Uz" constraint for operand 1.
5183 (*sibcall_value_vzeroupper): Ditto.
5184 (*sibcall_value_rex64_ms_sysv): Ditto.
5185 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5186 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5187 constraint for operand 1.
5188 (*sibcall_value_pop_vzeroupper): Ditto.
5189 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5190 and "z" constraint for operand 2.
5191 (*tls_global_dynamic_32_gnu): Ditto.
5192 (*tls_local_dynamic_base_32_gnu): Ditto.
5193 (*tls_local_dynamic_base_64): Ditto.
5194 (*tls_local_dynamic_32_once): Ditto.
5195 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5197 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5199 2011-05-16 Richard Guenther <rguenther@suse.de>
5201 * gimple.c (gimple_types_compatible_p_1): Use names of the
5202 type itself, not its main variant.
5203 (iterative_hash_gimple_type): Likewise.
5205 2011-05-16 Richard Guenther <rguenther@suse.de>
5207 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5208 always visit pointer target and function result and argument types.
5210 2011-05-16 Jason Merrill <jason@redhat.com>
5213 * tree-inline.c (copy_statement_list): Put back recursion.
5215 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5219 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5220 * config/avr/avr.md ("*ior<mode>qi.byte0",
5221 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5223 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5226 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5227 register is needed for a function argument.
5229 2011-05-16 Richard Guenther <rguenther@suse.de>
5231 * gimple.c (struct type_hash_pair): New type.
5232 (type_hash_pair_compare): New function.
5233 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5235 2011-05-16 Revital Eres <revital.eres@linaro.org>
5237 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5239 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5241 * config/i386/i386.md (floating point move splitters): Fix
5242 usage of standard_80387_constant_p.
5243 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5245 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5247 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5249 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5251 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5252 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5253 (tree_ssa_lim_finalize): Likewise.
5255 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5257 * config/i386/constraint.md (Yd, Yx): New register constraints.
5258 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5259 Yd conditional register constraint.
5260 (*movtf_internal): Use standard_sse_constant_opcode.
5261 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5262 Yx conditional register constraint.
5263 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5264 Yd conditional register constraint. Use standard_sse_constant_p to
5265 check for valid SSE constants and call standard_sse_constant_opcode to
5267 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5268 constants and call standard_sse_constant_opcode to output SSE insn.
5269 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5270 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5271 optimize_size is set.
5272 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5274 2011-05-14 Tobias Burnus <burnus@net-b.de>
5276 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5278 2011-05-13 Martin Jambor <mjambor@suse.cz>
5280 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5281 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5282 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5283 (evaluate_conditions_for_ipcp_clone): Removed.
5284 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5285 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5286 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5288 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5290 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5291 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5292 lieu of MAY_HAVE_DEBUG_STMTS.
5293 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5294 debug statements if !MAY_HAVE_DEBUG_STMTS.
5296 2011-05-13 Martin Thuresson <martint@google.com>
5298 PR gcov-profile/47793
5299 * libgcov.c (gcov_exit): Support relative profile paths.
5300 * doc/invoke.texi (-fprofile-dir): Update for above change.
5302 2011-05-13 Richard Guenther <rguenther@suse.de>
5304 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5305 type-pair caching, do not compare hashes.
5307 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5310 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5311 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5313 2011-05-13 Kai Tietz <ktietz@redhat.com>
5315 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5316 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5317 compatible type for TRUTH_NOT_EXPR.
5319 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5321 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5322 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5323 can_create_pseudo_p ().
5325 2011-05-13 Richard Guenther <rguenther@suse.de>
5328 * gimple.c (iterative_hash_gimple_type): Revert change in
5329 pointer target and function result and argument hashing.
5331 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5333 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5334 (*movxf_internal_nointeger): Ditto.
5335 (*movdf_internal_rex64): Ditto.
5336 (*movdf_internal): Ditto.
5337 (*movdf_internal_nointeger): Ditto.
5338 (*movsf_internal): Ditto.
5339 (sincos splitters): Use can_create_pseudo ().
5341 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5343 * config/i386/i386-opts.h: New.
5344 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5345 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5346 ix86_section_threshold): Remove.
5347 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5348 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5350 (ix86_option_override_internal): Don't decode strings for options
5351 other than -march=, -mtune= and -mfpmath=. Don't allow for
5352 __attribute__ uses in remaining diagnostics for options with
5353 string arguments. Don't check for integer arguments being negative.
5354 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5355 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5356 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5357 ix86_branch_cost, ix86_section_threshold): Remove.
5358 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5360 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5362 (masm=): Use Enum and Init.
5363 (asm_dialect): New Enum and EnumValue entries.
5364 (mbranch-cost=): Use UInteger.
5365 (mlarge-data-threshold=): Use UInteger and Init.
5366 (mcmodel=): Use Enum and Init.
5367 (cmodel): New Enum and EnumValue entries.
5368 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5369 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5370 mregparm=): Use UInteger.
5371 (mstringop-strategy=): Use Enum and Init.
5372 (stringop_alg): New Enum and EnumValue entries.
5373 (mtls-dialect=): Use Enum and Init.
5374 (tls_dialect): New Enum and EnumValue entries.
5375 (mabi=): Use Enum and Init.
5376 (calling_abi): New Enum and EnumValue entries.
5377 (mveclibabi=): Use Enum and Init.
5378 (ix86_veclibabi): New Enum and EnumValue entries.
5380 2011-05-13 Nick Clifton <nickc@redhat.com>
5382 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5383 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5385 2011-05-13 Kai Tietz <ktietz@redhat.com>
5388 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5389 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5390 (gimple_boolify): Check for cast for boolean_type_node instead for
5393 2011-05-13 Richard Guenther <rguenther@suse.de>
5395 PR tree-optimization/48172
5396 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5397 multiplying by number of iterations for equal step.
5398 (vect_create_cond_for_alias_checks): Likewise.
5400 2011-05-13 Andreas Schwab <schwab@redhat.com>
5402 * configure.ac: Use AS_HELP_STRING throughout.
5403 * configure: Regenerate.
5405 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5407 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5408 (ix86_emit_restore_regs_using_mov): Likewise.
5409 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5411 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5413 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5414 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5415 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5416 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5417 RTX_OK_FOR_OLO10_P): ...here.
5418 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5421 2011-05-12 Kai Tietz <ktietz@redhat.com>
5423 * gimplify.c (gimple_boolify): Re-boolify expression
5424 arguments even if expression type is of kind BOOLEAN_TYPE.
5425 (gimplify_boolean_expr): Removed.
5426 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5427 and XOR. Additional take care that we keep expression's type.
5428 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5429 of TRUTH_AND|OR|XOR_EXPR.
5431 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5433 PR tree-optimization/48975
5434 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5435 on all bbs here and free and clear ifc_bbs at the end.
5437 2011-05-12 Richard Guenther <rguenther@suse.de>
5439 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5440 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5441 until after simple checks.
5442 (gimple_types_compatible_p): Likewise.
5443 (iterative_hash_gimple_type): Always hash pointer targets
5444 and function return and argument types.
5445 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5446 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5447 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5448 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5449 completely in the simple compare section.
5450 (gimple_register_canonical_type): Query the cache again after
5453 2011-05-12 Richard Guenther <rguenther@suse.de>
5455 PR tree-optimization/48172
5456 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5457 the number of iterations from the segment size calculation.
5458 (vect_create_cond_for_alias_checks): Adjust.
5460 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5463 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5464 if validate_subreg fails.
5466 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5468 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5469 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5472 2011-05-12 DJ Delorie <dj@redhat.com>
5474 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5475 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5476 created builtin into rx_builtins array.
5477 (rx_builtin_decl): New function.
5478 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5480 2011-05-12 DJ Delorie <dj@redhat.com>
5481 Nick Clifton <nickc@redhat.com>
5483 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5484 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5485 (rx_is_legitimate_address): Add pre-decrement and post-increment
5486 addressing in HImode and QImode. Fix test for out of range
5488 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5489 (rx_align_for_label): Test label before extracting its usage count.
5490 (rx_adjust_insn_lengths): Fix selection of insn codes.
5491 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5493 2011-05-11 Jason Merrill <jason@redhat.com>
5495 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5497 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5499 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5500 reindent the subsequent block.
5502 2011-05-11 Satoru Takabayashi <satorux@google.com>
5503 Paul Pluzhnikov <ppluzhnikov@google.com>
5505 * doc/install.texi (Configuration): Document --with-linker-hash-style.
5506 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5507 * config.in: Add LINKER_HASH_STYLE.
5508 * configure.ac: Add --with-linker-hash-style.
5509 * configure: Regenerate.
5511 2011-05-11 Richard Guenther <rguenther@suse.de>
5514 * gimple.c (iterative_hash_canonical_type): Fix typo.
5516 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
5518 * config/i386/i386.c (legitimize_tls_address)
5519 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5520 expanders directly for TARGET_GNU2_TLS. Determine pic and
5521 __tls_get_addr symbol reference here. Update call to
5522 gen_tls_global_dynamic_{32,64} for added arguments.
5523 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5524 expanders directly for TARGET_GNU2_TLS. Determine
5525 __tls_get_addr symbol reference here. Update call to
5526 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5527 unique UNSPEC REG_EQUIV to libcall block.
5528 (ix86_tls_get_addr): Declare static.
5529 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5530 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5531 Do not determine pic and __tls_get_addr symbol reference here. Do not
5532 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5533 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5534 (tls_global_dynamic_64): Add operand 2. Do not determine
5535 __tls_get_addr symbol reference here. Do not call
5536 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5537 (tls_local_dynamic_base64): Ditto for operand 1.
5539 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5541 * function.c (expand_function_start): Initialize stack_check_probe_note
5542 only if the generic stack checking mechanism is used.
5544 2011-05-11 Richard Guenther <rguenther@suse.de>
5546 PR tree-optimization/15256
5547 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5548 (A & B) | C, combine (A op CST1) op CST2.
5549 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5550 visit assigns that have uses.
5552 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5554 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5555 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5556 (unpack_ts_type_common_value_fields): ...this. Update comment.
5557 (unpack_value_fields): Adjust for renaming.
5558 (lto_input_ts_type_tree_pointers): Split into...
5559 (lto_input_ts_type_common_tree_pointer): ...this and...
5560 (lto_input_ts_type_non_common_tree_pointers): ...this.
5561 (lto_input_tree_pointers): Adjust for above split.
5562 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5563 (pack_ts_type_common_value_fields): ...this. Update comment.
5564 (lto_output_ts_type_tree_pointers): Split into...
5565 (lto_output_ts_type_common_tree_pointers): ...this and...
5566 (lto_output_ts_type_non_common_tree_pointers): ...this.
5567 (lto_output_tree_pointers): Adjust for above split.
5568 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5569 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5570 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5571 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5573 (struct tree_type): Split into...
5574 (struct tree_type_common: ...this and...
5575 (struct tree_type_with_lang_specific): ...this and...
5576 (struct tree_type_non_common): ...this. Adjust accessor macros
5578 (TYPE_VALUES_RAW): Define.
5579 (union tree_node): Update for above changes.
5580 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5582 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5583 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5584 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5585 * treestructu.def (TS_TYPE): Remove.
5586 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5589 2011-05-11 Jakub Jelinek <jakub@redhat.com>
5592 * tree-ssa.c (reset_debug_uses): New function.
5593 * tree-flow.h (reset_debug_uses): New prototype.
5594 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5595 * tree-loop-distribution.c (generate_loops_for_partition): Call
5596 reset_debug_uses on the stmts that will be removed. Keep around
5597 all debug stmts, don't count them as bits in partition bitmap.
5598 (generate_builtin): Don't count debug stmts or labels as bits in
5601 2011-05-11 Richard Guenther <rguenther@suse.de>
5603 * gimple.c (gimple_type_hash_1): Merge with ...
5604 (gimple_type_hash): ... this.
5605 (gtc_visit): Remove mode parameter and simplify accordingly.
5606 (gimple_types_compatible_p_1): Likewise.
5607 (gimple_types_compatible_p): Likewise.
5608 (iterative_hash_gimple_type): Likewise.
5610 (gimple_type_eq): Adjust.
5612 2011-05-11 Revital Eres <revital.eres@linaro.org>
5614 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5615 enters the branch create an anti edge in the opposite direction
5616 to prevent the creation of reg-moves.
5617 * modulo-sched.c: Adjust comment to reflect the fact we are
5618 scheduling closing branch.
5619 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5620 (stage_count): New field in struct partial_schedule.
5621 (calculate_stage_count): New function.
5622 (normalize_sched_times): Rename to reset_sched_times and handle
5623 incrementing the sched time of the nodes by a constant value
5624 passed as parameter.
5625 (duplicate_insns_of_cycles): Skip closing branch.
5626 (sms_schedule_by_order): Schedule closing branch.
5627 (ps_insn_find_column): Handle closing branch.
5628 (sms_schedule): Call reset_sched_times and adjust the code to
5629 support scheduling of the closing branch.
5630 (ps_insert_empty_row): Update calls to normalize_sched_times
5631 and rotate_partial_schedule functions.
5633 2011-05-11 Richard Guenther <rguenther@suse.de>
5636 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5638 2011-05-11 Joseph Myers <joseph@codesourcery.com>
5640 * opts.c (finish_options): Move warning settings from process_options.
5641 * toplev.c (process_options): Move warning settings to finish_options.
5643 2011-05-11 Richard Guenther <rguenther@suse.de>
5645 PR tree-optimization/18041
5646 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5647 (simplify_bitwise_binary): ... this. Handle operand conversions
5648 by applying them to the result instead.
5649 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5651 2011-05-11 Richard Guenther <rguenther@suse.de>
5653 * gimple.c (gimple_canonical_types_compatible_p): Split out
5654 from gimple_types_compatible_p and friends. Do not recurse
5655 to pointed-to types.
5656 (gimple_canonical_type_eq): Use it.
5657 (iterative_hash_canonical_type): Split out from
5658 iterative_hash_gimple_type and friends. Do not recurse
5659 to pointed-to types.
5660 (gimple_canonical_type_hash): Use it, allocate the hash here.
5662 2011-05-11 Revital Eres <revital.eres@linaro.org>
5664 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5667 2011-05-11 Revital Eres <revital.eres@linaro.org>
5669 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5670 instead of PREV_INSN.
5672 2011-05-11 Revital Eres <revital.eres@linaro.org>
5674 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5675 * loop-doloop.c (doloop_condition_get): Likewise.
5676 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5678 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5680 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5682 * tree.def (CASE_LABEL_EXPR): Add an operand.
5683 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5685 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5687 * c-decl.c (c_override_global_bindings_to_false): Remove.
5688 (global_bindings_p): Don't check
5689 c_override_global_bindings_to_false.
5690 * c-tree.h (c_override_global_bindings_to_false): Remove.
5691 * c-typeck.c (composite_type): Don't set
5692 c_override_global_bindings_to_false.
5694 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5696 PR target/48857, 48495
5697 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5699 (VSX_MOVE_MODE): Ditto.
5700 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5701 VSX vector types. Add V2DImode.
5702 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5703 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5704 (MODES_TIEABLE_P): Ditto.
5706 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5707 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5709 (init_cumulative_args): Ditto.
5710 (rs6000_function_arg_boundary): Ditto.
5711 (rs6000_function_arg_advance_1): Ditto.
5712 (rs6000_function_arg): Ditto.
5713 (rs6000_function_ok_for_sibcall): Ditto.
5714 (emit_frame_save): Ditto.
5715 (rs6000_function_value): Ditto.
5716 (rs6000_libcall_value): Ditto.
5718 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5720 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5721 i386/darwin-lib.h to $libgcc_tm_file.
5722 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5724 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5726 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5728 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5730 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5731 * config/rs6000/rs6000-tables.opt: New file (generated).
5732 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5733 rs6000/rs6000-tables.opt to extra_options.
5734 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5735 * config/rs6000/rs6000.c (rs6000_select): Remove.
5736 (processor_target_table): Move contents to rs6000-cpus.def.
5737 (darwin_rs6000_override_options): Check
5738 global_options_set.x_rs6000_cpu_index instead of
5739 rs6000_select[1].string.
5740 (rs6000_option_override_internal): Likewise.
5741 (rs6000_handle_option): Don't assert that global structures are in
5742 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5743 (rs6000_default_cpu): New variable.
5744 (rs6000_file_start): Set it instead of local default_cpu. Check
5745 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5746 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5747 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5748 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5749 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5750 rs6000_select): Remove.
5751 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5753 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5754 * config/rs6000/t-rs6000
5755 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5756 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5757 global_options_set.x_rs6000_cpu_index instead of
5758 rs6000_select[1].string.
5759 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5760 global_options_set.x_rs6000_cpu_index instead of
5761 rs6000_select[1].string.
5763 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5765 * config.gcc (libgcc_tm_file): Define instead of including files
5766 from ../../libgcc/config/ in tm_file.
5767 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5768 * configure: Regenerate.
5769 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5770 libgcc_tm.h, cs-libgcc_tm.h): New.
5771 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5772 (clean): Remove libgcc_tm.h.
5773 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5774 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5775 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5777 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
5780 * config/avr/avr.c (avr_ret_register): Return unsigned int
5782 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5783 it to avr_libcall_value.
5784 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5786 (avr_expand_binop_builtin): Ditto.
5787 (avr_expand_unop_builtin): Ditto.
5789 2011-05-10 DJ Delorie <dj@redhat.com>
5791 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5792 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5793 * config/rx/rx.c (rx_align_for_label): Add label and
5794 uses_threshold parameters. Do not align when the label is not
5796 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5798 2011-05-10 Richard Guenther <rguenther@suse.de>
5800 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5801 a series of conversions and apply foldings similar to what
5803 (tree_ssa_forward_propagate_single_use_vars): Call it.
5805 2011-05-10 Jakub Jelinek <jakub@redhat.com>
5807 PR tree-optimization/48611
5808 PR tree-optimization/48794
5809 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5810 referenced from RESX or EH_DISPATCH arguments.
5813 * dfp.c (decimal_to_decnumber): Handle conversion from
5814 dconst{1,2,m1,half}.
5816 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5818 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5819 for !flag_prefer_avx128.
5820 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5822 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5824 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5825 (fold_ternary_loc): Use expr_location_or.
5827 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5830 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5831 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5832 Pmode and mem_mode is not VOIDmode.
5834 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
5836 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5837 TYPE_QUAL_RESTRICT): Convert to enum.
5839 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5841 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5842 (const_pow2_1_to_8_operand): Ditto.
5843 (const_pow2_1_to_128_operand): Ditto.
5844 (const_pow2_1_to_32768_operand): Ditto.
5845 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5846 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5847 in insn constraint to check integer value of operand 3.
5848 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5850 (PINSR_MODE): New mode iterator.
5851 (sse2p4_1): New mode attribute.
5852 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5853 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5854 iterator. Use const_int_operand instead of
5855 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5856 exact_log2 in insn constraint to check integer value of operand 3.
5858 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5860 * config/i386/sse.md (blendbits): Remove mode attribute.
5861 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5862 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5863 Check integer value of operand 3 in insn constraint.
5865 2011-05-09 Richard Guenther <rguenther@suse.de>
5867 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5869 (lto_symtab_merge): Likewise. Do not register types here.
5870 (lto_symtab_merge_decls_2): Likewise.
5871 (lto_symtab_merge_decls_1): Likewise.
5872 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5873 * gimple.c (enum gtc_mode): Declare.
5874 (gimple_types_compatible_p): Make static.
5876 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5878 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5879 temporary register to match Pmode.
5881 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5883 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5884 and *vec_concatv4si_1_avx.
5886 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5888 PR rtl-optimization/48927
5889 * ira-conflicts.c (commutative_constraint_p): Use
5890 recog_data.alternative_enabled_p to disable alternatives where
5891 "enabled" attribute is false.
5892 (get_dup_num): Ditto.
5893 * ira-lives.c (single_reg_class): Ditto.
5894 (ira_implicitly_set_insn_hard_regs): Ditto.
5896 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5898 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5899 (dataflow_set_preserve_mem_locs): Likewise.
5901 2011-05-09 Philipp Thomas <pth@suse.de>
5903 * config/mep/mep.c (mep_validate_vliw): Syntax description
5904 should not be translated.
5906 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5908 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5909 * config/mips/mips-tables.opt: New file (generated).
5910 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5911 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5912 MIPS_ARCH_OPTION_NATIVE): Define.
5913 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5915 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5916 mips_parse_cpu): Remove.
5917 (mips_cpu_info_from_opt, mips_default_arch): New.
5918 (mips_handle_option): Don't assert that global structures are in
5919 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5920 (mips_option_override): Use new variables and functions to set
5921 state of these options. Use strcmp to check for individual CPU names.
5922 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5924 * config/mips/mips.opt (march=): Use ToLower and Enum.
5925 (mips): Use ToLower, Enum and Var.
5926 (mtune=): Use ToLower and Enum.
5927 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5929 2011-05-08 Jan Hubicka <jh@suse.cz>
5931 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5932 Arrange type pairs to be UID ordered.
5933 (gimple_lookup_type_leader): Make inline.
5935 2011-05-09 Nick Clifton <nickc@redhat.com>
5938 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5942 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5945 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5947 * combine.c (simplify_comparison): Abstract out parts into...
5948 (simplify_compare_const): ... new function.
5949 (try_combine): Generalize parallel arithmetic/compare combining
5950 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5952 2011-05-08 Jan Hubicka <jh@suse.cz>
5954 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5955 (cgraph_create_virtual_clone): Call hooks once virtual clone
5957 * cgraph.h (cgraph_clone_node): Update prototype.
5958 * ipa-cp.c (ipcp_estimate_growth): Use
5959 estimate_ipcp_clone_size_and_time.
5960 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5961 * lto-cgraph.c (input_node): Update.
5962 * ipa-inline.c (recursive_inlining): Update.
5963 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5964 (evaluate_conditions_for_known_args): Break out from ...
5965 (evaluate_conditions_for_edge): ... here.
5966 (evaluate_conditions_for_ipcp_clone): New function.
5967 (inline_node_duplication_hook): Update clone summary based
5969 (estimate_callee_size_and_time): Rename to ...
5970 (estimate_node_size_and_time): take NODE instead of EDGE;
5971 take POSSIBLE_TRUTHS as argument.
5972 (estimate_callee_size_and_time): Update.
5973 (estimate_ipcp_clone_size_and_time): New function.
5974 (do_estimate_edge_time): Update.
5976 2011-05-08 Richard Guenther <rguenther@suse.de>
5980 * expmed.c (expand_shift_1): Compute adjusted constant shift
5983 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5985 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5987 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5989 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5991 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5993 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5995 2011-05-07 Jan Hubicka <jh@suse.cz>
5997 * ipa-inline-transform.c (inline_call): Account when program size
5999 * ipa-inline.c (relative_time_benefit): New function.
6000 (edge_badness): Reorganize to be power 2 based; fix thinko when
6001 computing badness for negative growth; update comments to match
6002 reality; better dumps.
6004 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6006 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6007 type to bool and adjust comment.
6008 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6009 (fold_mathfn_compare): Remove calls to global_bindings_p.
6010 (fold_inf_compare): Likewise.
6011 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6012 * c-tree.h (global_bindings_p): Adjust prototype.
6013 * c-decl.c (global_bindings_p): Return bool and simplify.
6015 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
6017 PR tree-optimization/48837
6018 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6019 when accumulator transformation is performed.
6021 2011-05-06 Jan Hubicka <jh@suse.cz>
6023 * i386.h (ix86_tune_indices): Add
6024 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6025 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6026 * i386.c (initial_ix86_tune_features): Add
6027 X86_SOFTARE_PREFETCHING_BENEFICIAL.
6028 (software_prefetching_beneficial_p): Remove predicate.
6029 (ix86_option_override_internal): Use new macro.
6031 2011-05-06 Jan Hubicka <jh@suse.cz>
6033 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6035 2011-05-06 Jan Hubicka <jh@suse.cz>
6037 * cgraph.c (cgraph_add_thunk): Create real function node instead
6038 of alias node; finalize it and mark needed/reachale; arrange visibility
6039 to be right and add it into the corresponding same comdat group list.
6040 (dump_cgraph_node): Dump thunks.
6041 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6042 cgraph_function_with_gimple_body_p,
6043 cgraph_first_function_with_gimple_body,
6044 cgraph_next_function_with_gimple_body): New functions.
6045 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6047 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6048 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6049 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6050 devirtualization when optimizing.
6051 (verify_cgraph_node): Verify thunks.
6052 (cgraph_analyze_function): Analyze thunks.
6053 (cgraph_mark_functions_to_output): Output thunks only in combination
6054 with function they are assigned to.
6055 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6056 alias into normal node.
6057 (assemble_thunks): New functoin.
6058 (cgraph_expand_function): Use it.
6059 * lto-cgraph.c (lto_output_node): Stream thunks.
6060 (input_overwrite_node): Stream in thunks.
6061 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6062 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6063 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6064 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6065 (inline_analyze_function): Do not care about thunk jump functions.
6066 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6067 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6068 cgraph_function_with_gimple_body_p.
6069 * passes.c (do_per_function_toporder): Use
6070 cgraph_function_with_gimple_body_p.
6071 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6072 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6073 (function_called_by_processed_nodes_p): Likewise.
6075 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6077 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6078 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6080 (mabi=): Replace with separate entries for mabi=altivec,
6081 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6082 mabi=ieeelongdouble and mabi=ibmlongdouble.
6083 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6084 check for -mabi=spe without SPE ABI support here.
6085 (rs6000_handle_option): Replace OPT_mabi_ handling with
6086 OPT_mabi_altivec and OPT_mabi_spe handling.
6088 2011-05-06 Cary Coutant <ccoutant@google.com>
6090 * dwarf2out.c (contains_subprogram_definition): New function.
6091 (should_move_die_to_comdat): Call it.
6093 2011-05-06 Jeff Law <law@redhat.com>
6095 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6096 remove_ctrl_stmt_and_useless_edges.
6097 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6098 (fixup_template_block, thread_single_edge): Likewise.
6099 (mark_threaded_blocks): Use THREAD_TARGET.
6101 2011-05-06 Alan Modra <amodra@gmail.com>
6104 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6105 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6107 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6109 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6110 constraint modifier to "r".
6112 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6114 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6115 fall through for OPT_mcmodel_.
6117 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6119 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6121 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6123 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6126 * config/arm/arm.opt (marm): Document it.
6127 (mthumb): Reject negative variant.
6129 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6132 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6133 Fix typo in "ccvt" variable name.
6135 2011-05-06 Tristan Gingold <gingold@adacore.com>
6138 * config/vms/vms-ar.c (main): Remove cwd variable.
6140 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6143 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6145 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6147 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6148 * gimplify.c (gimplify_switch_expr): Likewise.
6149 * omp-low.c (expand_omp_sections): Likewise.
6150 * tree-eh.c (lower_try_finally_switch): Likewise.
6151 (lower_eh_dispatch): Likewise.
6152 * tree.h (build_case_label): Declare.
6153 * tree.c (build_case_label): Define.
6155 2011-05-05 Jason Merrill <jason@redhat.com>
6158 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6159 (copy_statement_list): Don't recurse.
6160 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6163 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6165 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6166 through from -mfpu= handling.
6167 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6169 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6171 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6174 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6176 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6178 (hppa[12]*-*-hpux11*): Ditto.
6179 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6180 * config/ia64/hpux-unix2003.h: New.
6181 * config/pa/pa-hpux1131.opt: New.
6182 * config/pa/pa-hpux1131.h: New.
6183 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6184 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6185 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6187 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6190 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6191 instead of mode as 3rd argument to recursive call.
6192 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6193 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6195 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6196 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6197 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6198 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6200 2011-05-05 Julian Brown <julian@codesourcery.com>
6202 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6203 parenthesis in D-register case.
6205 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6207 * opt-functions.awk (var_type_struct): Handle Enum options.
6208 * optc-gen.awk: Don't check range of variables of character type.
6209 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6210 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6211 rs6000_sdata_name, rs6000_explicit_options): Remove.
6212 (rs6000_option_override_internal): Check for -malign-power here.
6213 Use global_options_set instead of rs6000_explicit_options.
6214 (rs6000_parse_fpu_option): Remove.
6215 (rs6000_handle_option): Access variables via opts and opts_set
6216 pointers. Use error_at and warning_at. Add fall-through
6217 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6218 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6219 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6220 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6221 here. Don't use rs6000_parse_fpu_option.
6222 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6223 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6224 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6226 (mspe): Use Var and Save.
6227 (mtraceback=): Use Enum and Var.
6228 (rs6000_traceback_type): New Enum and EnumValue entries.
6229 (mfloat-gprs=): Use Enum, Var and Save.
6230 (rs6000_float_gprs): New Enum and EnumValue entries.
6231 (mlong-double-): use Var and Save.
6232 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6233 (malign-): Use Enum and Var.
6234 (rs6000_alignment_flags): New Enum and EnumValue entries.
6236 (fpu_type_t): New Enum and EnumValue entries.
6237 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6238 global_options_set instead of rs6000_explicit_options.
6239 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6240 global_options_set instead of rs6000_explicit_options.
6241 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6242 global_options_set instead of rs6000_explicit_options.
6243 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6244 global_options_set instead of rs6000_explicit_options.
6245 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6246 global_options_set instead of rs6000_explicit_options.
6247 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6248 global_options_set instead of rs6000_explicit_options.
6249 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6251 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6252 global_options_set instead of rs6000_explicit_options.
6253 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6254 (rs6000_cmodel): New Enum and EnumValue entries.
6255 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6256 global_options_set instead of rs6000_explicit_options.
6257 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6258 (mtls-size=): Use Enum and Var.
6259 (rs6000_tls_size): New Enum and EnumValue entries.
6261 2011-05-05 Michael Matz <matz@suse.de>
6263 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6264 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6265 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6266 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6267 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6268 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6269 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6270 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6271 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6272 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6273 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6274 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6275 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6276 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6277 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6278 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6280 2011-05-05 Richard Guenther <rguenther@suse.de>
6282 * expmed.c (expand_variable_shift): Rename to ...
6283 (expand_shift_1): ... this. Take an expanded shift amount.
6284 For rotates recurse directly not building trees for the shift amount.
6285 (expand_variable_shift): Wrap around expand_shift_1.
6286 (expand_shift): Adjust.
6288 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6290 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6292 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6294 * tree.h (get_pending_sizes): Remove prototype.
6295 (put_pending_size): Likewise.
6296 (put_pending_sizes): Likewise.
6297 * stor-layout.c (pending_sizes): Delete.
6298 (get_pending_sizes): Likewise.
6299 (put_pending_size): Likewise.
6300 (put_pending_sizes): Likewise.
6301 (variable_size): Do not call put_pending_size and tidy up.
6302 * function.h (struct function): Remove dont_save_pending_sizes_p.
6303 * lto-streamer-in.c (input_function): Do not stream it.
6304 * lto-streamer-out.c (output_function): Likewise.
6305 * tree-inline.c (initialize_cfun): Do not copy it.
6306 * c-decl.c (store_parm_decls): Do not set it.
6307 * omp-low.c (create_task_copyfn): Likewise.
6308 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6310 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6312 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6314 (*movdf_internal): Ditto.
6315 (*movdf_internal_nointeger): Ditto.
6316 (*movsf_internal): Ditto.
6318 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6320 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6321 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6322 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6323 (c_variable_size): Remove.
6324 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6325 call put_pending_sizes.
6326 (get_parm_info): Add parameter expr. Use it to set
6327 arg_info->pending_sizes.
6328 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6330 * c-parser.c (c_parser_parms_declarator): Update call to
6331 c_parser_parms_list_declarator.
6332 (c_parser_parms_list_declarator): Take parameter expr. Update
6333 call to push_parm_decl. Update recursive call. Don't call
6334 get_pending_sizes. Update calls to get_parm_info.
6335 (c_parser_objc_method_definition): Update calls to
6336 c_parser_objc_method_decl and objc_start_method_definition.
6337 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6338 (c_parser_objc_method_decl): Add parameter expr. Update call to
6340 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6341 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6342 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6344 2011-05-05 Michael Hope <michael.hope@linaro.org>
6347 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6350 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6352 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6353 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6354 (spu_output_mi_thunk): New function.
6356 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6358 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6359 targetm.asm_out.print_operand.
6360 * config/sol2.c: Include target.h.
6362 2011-05-04 Jan Hubicka <jh@suse.cz>
6364 * ipa-inline.c (reset_edge_caches): New function.
6365 (update_caller_keys): Add check_inlinablity_for; do not
6366 reset edge caches; remove now unnecesary loop.
6367 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6368 (update_all_callee_keys): Likewise.
6369 (inline_small_functions): Sanity check cache; update code
6372 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6374 PR rtl-optimization/47612
6375 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6376 as the last insn of the sequence to be moved.
6378 2011-05-04 Tobias Burnus <burnus@net-b.de>
6381 * doc/invoke.texi (Ofast): Document that it
6382 enables Fortran's -fno-protect-parens.
6384 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6386 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6388 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6390 * stor-layout.c (variable_size): Do not issue errors.
6392 2011-05-04 Richard Guenther <rguenther@suse.de>
6394 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6395 for array-ref indices.
6396 (tree_coverage_counter_addr): Likewise.
6397 (build_fn_info_type): Use size_int for index types.
6398 (build_gcov_info): Likewise.
6400 2011-05-04 Richard Guenther <rguenther@suse.de>
6402 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6404 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6405 for constructor indices.
6406 (push_init_level): Likewise.
6408 2011-05-04 Richard Guenther <rguenther@suse.de>
6410 * explow.c (promote_mode): Move variable declarations before code.
6412 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6414 * tree.h (build_function_type_array): Declare.
6415 (build_varargs_function_type_array): Declare.
6416 (build_function_type_vec, build_varargs_function_type_vec): Define.
6417 * tree.c (build_function_type_array_1): New function.
6418 (build_function_type_array): New function.
6419 (build_varargs_function_type_array): New function.
6421 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6423 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6424 before setting STMT_VINFO_TYPE.
6426 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6428 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6429 instead of spu_pass_by_reference.
6431 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6433 * calls.c (emit_library_call_value_1): Invoke
6434 promote_function_mode hook on libcall arguments.
6435 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6436 argument being NULL.
6437 * targhooks.c (default_promote_function_mode): Lisewise.
6438 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6439 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6441 * doc/tm.texi: Document that TYPE argument might be NULL.
6443 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6445 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6447 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6450 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6452 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6454 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6455 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6457 * mips-tfile.c: ... here.
6458 Don't include coretypes.h, tm.h, filenames.h.
6459 (saber_stop): Remove definition and all calls.
6460 [__SABER__]: Remove.
6461 (__LINE__): Remove default.
6462 (Size_t, Ptrdiff_t): Remove definitions.
6463 Replace by size_t, ptrdiff_t.
6464 [!MIPS_DEBUGGING_INFO]: Remove.
6465 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6466 (progname): Add const.
6468 Replace all uses by static.
6469 (ALIGN_SYMTABLE_OFFSET): Remove default.
6470 * mips-tdump.c: Don't include coretypes.h, tm.h.
6471 Remove !MIPS_IS_STAB guard.
6472 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6473 $(TM_H), filenames.h dependencies.
6474 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6476 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6479 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6480 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6482 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6485 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6486 account and save/restore RETS.
6487 (PROFILE_BEFORE_PROLOGUE): Define.
6488 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6489 the push insn to use predecrement.
6491 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6494 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6496 2011-05-04 Nick Clifton <nickc@redhat.com>
6498 * config/mn10300/mn10300.c: Include cfgloop.h.
6500 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6501 Lcc or a FLcc insn into the instruction stream.
6502 (mn10300_block_contains_call): New function. Returns true if the
6503 given basic block contains a CALL insn.
6504 (mn10300_loop_contains_call_insn): New function. Returns true if
6505 the given loop contains a CALL insn.
6506 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6507 to use the SETLB and Lcc or FLcc insns.
6508 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6509 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6510 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6511 disable the SETLB optimization.
6512 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6513 __SETLB__ or __NO_SETLB__.
6514 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6515 (movsf_internal): Handle MDR register.
6516 (cmpsi): Make visible.
6517 (setlb): New pattern.
6519 (FLcc): New pattern.
6521 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6524 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6525 for reg<->xmm moves.
6526 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6527 (vec_concatv2di_rex64_sse): Ditto.
6528 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6529 (*vec_extractv2di_1_rex64): Ditto.
6532 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6534 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6536 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6538 2011-05-04 Richard Guenther <rguenther@suse.de>
6540 * tree.h (int_const_binop): Remove notrunc argument.
6541 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6542 create integer constants that are properly truncated.
6543 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6544 (const_binop): Remove zero notrunc argument to int_const_binop.
6545 (size_binop_loc): Likewise.
6546 (fold_div_compare): Likewise.
6547 (maybe_canonicalize_comparison_1): Likewise.
6548 (fold_comparison): Likewise.
6549 (fold_binary_loc): Likewise.
6550 (multiple_of_p): Likewise.
6551 * expr.c (store_constructor): Likewise.
6552 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6553 (maybe_fold_stmt_addition): Likewise.
6554 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6555 * stor-layout.c (layout_type): Likewise.
6556 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6557 * tree-sra.c (build_ref_for_offset): Likewise.
6558 (build_user_friendly_ref_for_offset): Likewise.
6559 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6560 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6561 * tree-ssa-loop-niter.c (inverse): Likewise.
6562 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6563 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6564 * tree-switch-conversion.c (check_range): Likewise.
6565 (build_constructors): Likewise.
6566 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6567 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6568 (extract_range_from_assert): Likewise.
6569 (vrp_int_const_binop): Likewise.
6570 (extract_range_from_binary_expr): Likewise.
6571 (extract_range_from_unary_expr): Likewise.
6572 (check_array_ref): Likewise.
6573 (find_case_label_range): Likewise.
6574 (simplify_div_or_mod_using_ranges): Likewise.
6575 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6576 comparing case labels for merging.
6578 2011-05-03 Mark Wielaard <mjw@redhat.com>
6580 * dwarf2out.c (debug_str_hash_forced): Removed.
6581 (gen_label_for_indirect_string): Removed.
6582 (get_debug_string_label): Removed.
6583 (AT_string_form): Generate label directly.
6584 (output_indirect_string): Test indirect_string_node for
6585 DW_FORM_strp instead of checking label and refcount.
6586 (prune_indirect_string): Removed.
6587 (prune_unused_types): Don't check debug_str_hash_forced or
6588 call prune_indirect_string.
6590 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6593 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6595 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6599 * combine.c (try_combine): Skip debug insns at m_split tests.
6601 2011-04-26 Mark Wielaard <mjw@redhat.com>
6604 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6605 when info_section_emitted.
6607 2011-05-03 Joseph Myers <joseph@codesourcery.com>
6609 * config/mips/mips-opts.h: New.
6610 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6612 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6613 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6614 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6616 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6618 (mips_abi, mips_code_readable): Don't declare.
6619 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6620 (mabi=): Use Enum and Var.
6621 (mips_abi): New Enum and EnumValue entries.
6622 (mcode-readable=): Use Enum and Var.
6623 (mips_code_readable_setting): New Enum and EnumValue entries.
6624 (mr10k-cache-barrier=): Use Enum and Var.
6625 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6627 2011-05-03 Jan Hubicka <jh@suse.cz>
6629 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6630 replace hash by pointer map.
6631 (cgraph_node_set_element_def, cgraph_node_set_element,
6632 const_cgraph_node_set_element, varpool_node_set_element_def,
6633 varpool_node_set_element, const_varpool_node_set_element): Remove.
6634 (free_cgraph_node_set, free_varpool_node_set): New function.
6635 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6636 * tree-emutls.c: Free varpool node set.
6637 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6638 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6639 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6640 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6641 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6642 Move here from ipa.c; implement using pointer_map
6643 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6644 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6645 debug_cgraph_node_set, varpool_node_set_new,
6646 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6647 dump_varpool_node_set, debug_varpool_node_set):
6648 Move to ipa-uitls.c.
6649 * passes.c (ipa_write_summaries): Update.
6651 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6653 From Mike Frysinger:
6654 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6655 bf542/bf544/bf547/bf548/bf549.
6657 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6659 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6661 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6664 * config/bfin/bfin.md (MOVCC): New mode_macro.
6665 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6666 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6667 comments from generated assembly.
6669 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6672 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6673 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6674 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6675 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6676 * config/bfin/lib1funcs.asm (___muldi3): New function.
6678 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6680 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6681 build_function_type_list instead of build_function_type.
6682 Rearrange initialization of `args' to do so.
6684 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6686 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6687 instead of build_function_type.
6689 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6691 * config/rs6000/rs6000.c (spe_init_builtins): Call
6692 build_function_type_list instead of build_function_type.
6693 (paired_init_builtins, altivec_init_builtins): Likewise.
6694 (builtin_function_type): Likewise.
6696 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6698 * config/sh/sh.c (sh_media_init_builtins): Call
6699 build_function_type_list instead of build_function_type.
6701 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6703 * config/sparc/sparc.c (sparc_file_end): Call
6704 build_function_type_list instead of build_function_type.
6706 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6708 * config/alpha/alpha.c (alpha_init_builtins): Call
6709 build_function_type_list instead of build_function_type.
6711 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6713 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6714 build_function_type_list instead of build_function_type.
6716 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6718 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6719 build_function_type_list instead of build_function_type.
6720 Delete `endlink' variable.
6722 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6724 * config/avr/avr.c (avr_init_builtins): Call
6725 build_function_type_list instead of build_function_type.
6727 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6729 * config/picochip/picochip.c (picochip_init_builtins): Call
6730 build_function_type_list instead of build_function_type.
6731 Delete `endlink' variable.
6733 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6735 * config/bfin/bfin.c (bfin_init_builtins): Call
6736 build_function_type_list instead of build_function_type.
6738 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6741 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6742 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6744 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6747 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6748 libbffastfp overrides libgcc when -mfast-fp.
6750 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6752 Originally from Bernd Schmidt
6753 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6754 * config/bfin/bfin.c (override_options): Test it and error if
6757 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6759 Originally From Bernd Schmidt
6760 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6763 2011-05-03 Jeff Law <law@redhat.com>
6765 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6766 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6767 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6768 than accessing AUX field directly. Free the AUX field before
6770 (thread_block, thread_through_loop_header): Likewise.
6771 (thread_single_edge, mark_threaded_blocks): Likewise.
6772 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6773 (register_jump_thread): Do not attempt to thread to a NULL edge.
6775 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6777 * function.c (init_function_start): Call decide_function_section.
6778 * varasm.c (decide_function_section): New function.
6779 (assemble_start_function): When not using
6780 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6781 or first_function_block_is_cold.
6782 * rtl.h (decide_function_section): Declare.
6784 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6785 Jakub Jelinek <jakub@redhat.com>
6788 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6789 only succeed if req_mode is the same as set_mode.
6791 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6793 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6794 * genemit.c (gen_exp): Handle RETURN.
6795 * emit-rtl.c (verify_rtx_sharing): Likewise.
6796 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6797 * rtl.c (copy_rtx): RETURN is shared.
6798 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6800 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6801 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6802 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6803 * config/cris/cris.c (cris_expand_return): Likewise.
6804 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6805 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6806 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6807 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6808 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6810 * config/v850/v850.c (expand_epilogue): Likewise.
6811 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6812 * config/arm/arm.md (epilogue): Likewise.
6813 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6814 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6815 variable to ret_reg.
6817 2011-05-03 Richard Guenther <rguenther@suse.de>
6820 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6821 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6822 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6824 2011-05-03 Richard Guenther <rguenther@suse.de>
6826 * c-decl.c (grokdeclarator): Instead of looking at
6827 TREE_OVERFLOW check if the constant fits in the index type.
6829 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6831 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6832 (vec_store_lanes<mode><mode>): Likewise.
6834 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6836 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6837 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6838 convert_optab_index values.
6839 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6840 * genopinit.c (optabs): Initialize the new optabs.
6841 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6842 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6843 (expand_STORE_LANES): New functions.
6844 * tree.h (build_array_type_nelts): Declare.
6845 * tree.c (build_array_type_nelts): New function.
6846 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6847 (vect_model_load_cost): Likewise.
6848 (vect_store_lanes_supported, vect_load_lanes_supported)
6849 (vect_record_strided_load_vectors): Declare.
6850 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6851 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6852 (vect_transform_strided_load): Split out statement recording into...
6853 (vect_record_strided_load_vectors): ...this new function.
6854 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6855 (write_vector_array, create_array_ref): New functions.
6856 (vect_model_store_cost): Add store_lanes_p argument.
6857 (vect_model_load_cost): Add load_lanes_p argument.
6858 (vectorizable_store): Try to use store-lanes functions for
6860 (vectorizable_load): Likewise load-lanes and loads.
6861 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6862 to vect_model_store_cost.
6863 (vect_build_slp_tree): Likewise vect_model_load_cost.
6865 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6867 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6868 * hooks.c (hook_bool_mode_uhwi_false): New function.
6869 * target.def (array_mode_supported_p): New hook.
6870 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6871 * doc/tm.texi: Regenerate.
6872 * stor-layout.c (mode_for_array): New function.
6873 (layout_type): Use it.
6874 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6875 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6877 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6880 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6881 for -fstack-check if the size to allocate is negative.
6883 2011-05-02 Lawrence Crowl <crowl@google.com>
6885 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6886 (timevar_cond_start): New for starting a timer only when it is not
6888 (timevar_cond_stop): New for stopping a timer when it was not already
6891 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6892 (timevar_cond_start): New as above.
6893 (timevar_cond_stop): New as above.
6895 * timevar.def: Add start/stop timers for compiler phases,
6896 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6897 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6898 and TV_PHASE_FINALIZE.
6899 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6900 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6901 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6902 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6903 Make unused TV_OVERLOAD into a start/stop timer.
6905 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6906 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6907 to indicate that they are start/stop timers.
6909 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6910 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6911 Move initialization to do_compile.
6912 (do_compile): Add initialization from above.
6913 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6915 * c-decl.c (c_write_global_declarations): Add start/stop of
6916 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6918 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6919 or TV_PARSE_INLINE, as appropriate.
6920 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6921 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6923 2011-05-02 Jason Merrill <jason@redhat.com>
6926 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6928 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6931 * c-decl.c (finish_decl): Only create a composite if the types are
6934 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6936 * config/fr30/fr30-protos.h (Mmode): Don't define.
6937 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6938 definition where used.
6939 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6940 define. Expand definitions where used.
6941 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6942 Expand definitions where used.
6943 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6944 rx_function_arg, rx_function_arg_advance,
6945 rx_function_arg_boundary): Expand definitions of those macros.
6946 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6947 definition where used.
6949 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6951 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6953 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6954 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6955 with *movv2sf_internal_rex64_avx.
6956 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6957 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6958 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6959 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6960 "vex" in "prefix" attribute calculation.
6961 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6963 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6966 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6967 inputs match the output.
6969 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6972 * config/m68k/m68k.c (m68k_expand_prologue): Set
6973 current_function_static_stack_size.
6975 2011-05-02 Jan Hubicka <jh@suse.cz>
6977 * lto-streamer.c (lto_streamer_cache_insert_1,
6978 lto_streamer_cache_lookup, lto_streamer_cache_create,
6979 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6980 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6982 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6984 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6985 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6986 config/m68k/t-opts: New files.
6987 * config/m68k/m68k-tables.opt: New file (generated).
6988 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6989 extra_options and m68k/t-opts to tmake_file.
6990 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6991 (all_isas): Initialize using m68k-isas.def.
6992 (all_microarchs): Initialize using m68k-microarchs.def.
6993 (m68k_find_selection): Remove.
6994 (m68k_handle_option): Don't assert that global structures are in
6995 use. Use error_at. Access variables via opts pointer. Don't
6996 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6997 directly for -m68020-40 and -m68020-60.
6998 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6999 m68k_tune_entry here.
7000 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7002 (m68k_library_id_string): Remove declaration.
7003 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7004 (m68k_library_id_string): New Variable.
7005 (march=, mcpu=, mtune=): Use Enum and Var.
7007 2011-05-02 Richard Guenther <rguenther@suse.de>
7009 * varasm.c (output_constructor_regular_field): Compute zero-based
7010 index with double-ints. Make sure to ICE instead of producing
7012 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7013 in asserts. Properly use a signed type.
7015 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7017 * config/i386/sse.md (V): New mode iterator.
7018 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7020 (V_256): Rename from AVX256MODE.
7021 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7022 condition to all users.
7024 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7025 condition to all users.
7026 (VF_128): Make V4SF mode unconditional.
7027 (VF_256): Rename from AVX256MODEF2P.
7028 (VI4F_128): Rename from SSEMODE4S.
7029 (VI8F_128): Rename from SSEMODE2D.
7030 (VI4F_256): Rename from AVX256MODE8P.
7031 (VI8F_256): Rename from AVX256MODE4P.
7032 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7033 (ssescalarmodesuffix): Remove SF and DF modes.
7034 (SSEMODE124): Remove.
7035 (SSEMODE1248): Ditto.
7036 (SSEMODEF2P): Ditto.
7037 (AVXMODEF2P): Ditto.
7038 (AVXMODEFDP): Ditto.
7039 (AVXMODEFSP): Ditto.
7040 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7042 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7044 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7045 xop_pcmov_<mode>256. Use V mode iterator.
7047 Adjust RTX patterns globally for renamed mode attributes.
7049 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7051 * haifa-sched.c (sched_emit_insn): Emit insn before first
7052 non-scheduled insn. Inform back-end about new insn. Add
7053 new insn to scheduled_insns list.
7055 2011-05-02 Richard Guenther <rguenther@suse.de>
7057 PR tree-optimization/48822
7058 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7059 (process_scc): Indicate which iteration we start.
7061 2011-05-02 Jan Hubicka <jh@suse.cz>
7063 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7064 (lto_section_overrun): New.
7065 * lto-section-out.c (append_block): Rename to ...
7066 (lto_append_block): ... this one; export.
7067 (lto_output_1_stream): Move lto lto-streamer.h
7068 (lto_output_data_stream): Update.
7069 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7070 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7073 2011-05-02 Richard Guenther <rguenther@suse.de>
7075 * tree.c (tree_code_counts): New global array.
7076 (record_node_allocation_statistics): Count individual tree codes.
7077 (dump_tree_statistics): Dump individual code stats.
7079 2011-05-01 Jan Hubicka <jh@suse.cz>
7081 * ipa-inline.c (caller_growth_limits): Fix thinko when
7082 looking for largest stack frame.
7083 * ipa-inline.h (dump_inline_summary): Declare.
7084 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7086 (dump_inline_summary): Export.
7087 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7089 2011-05-01 Anatoly Sokolov <aesok@post.ru>
7091 * reginfo.c (memory_move_cost): Change rclass argument type form
7092 'enum reg_class' to reg_class_t.
7093 * reload.h (memory_move_cost): Update prototype.
7094 * postreload.c reload_cse_simplify_set): Change type dclass var to
7096 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7098 (ira_allocate_and_set_costs): Change aclass argument type form
7099 'enum reg_class' to reg_class_t.
7100 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7101 Change aclass argument type to reg_class_t.
7102 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7104 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7105 memory_move_cost call.
7107 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7108 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7109 Change type tmp var to reg_class_t.
7111 2011-04-30 Jan Hubicka <jh@suse.cz>
7113 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7114 inlining into function with flatten attribute.
7115 (want_inline_small_function_p): Be more realistic about inlining
7116 cold calls where callee size grows.
7118 2011-04-30 Jan Hubicka <jh@suse.cz>
7120 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7123 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7125 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7126 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7127 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7128 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7129 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7130 (print_operand): Rename to...
7131 (sparc_print_operand): ...this. Make static. Adjust
7132 sparc_print_operand function call.
7133 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7136 2011-04-30 Jan Hubicka <jh@suse.cz>
7139 * ipa-inline.c (early_inliner): Disable when doing late
7140 addition of function.
7142 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7144 * dwarf2out.c (get_address_mode): New inline.
7145 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7146 if not dwarf_strict emit
7147 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7148 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7149 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7150 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7151 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7152 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7153 mem_loc_descriptor callers.
7154 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7155 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7156 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7157 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7158 (base_types): New variable.
7159 (get_base_type_offset, calc_base_type_die_sizes,
7160 base_type_for_mode, mark_base_types, base_type_cmp,
7161 move_marked_base_types): New functions.
7162 (calc_die_sizes): Assert that die_offset is 0 or equal to
7164 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7165 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7166 callers. If not dwarf_strict, call mem_loc_descriptor even for
7167 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7168 (gen_subprogram_die): Don't give up on call site parameters
7169 with non-integral or large integral modes. Adjust
7170 mem_loc_descriptor callers.
7171 (prune_unused_types): Call prune_unused_types_mark on base_types
7173 (resolve_addr): Call mark_base_types.
7174 (dwarf2out_finish): Call move_marked_base_types.
7176 PR tree-optimization/48809
7177 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7179 (gen_inbound_check): Don't compute index_expr - range_min in utype
7180 again, instead reuse SSA_NAME initialized in build_arrays.
7181 Remove two useless gsi_for_stmt calls.
7183 2011-04-29 Jeff Law <law@redhat.com>
7185 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7187 2011-04-29 Martin Jambor <mjambor@suse.cz>
7189 * cgraph.h (cgraph_postorder): Remove declaration.
7190 * ipa-utils.h (ipa_free_postorder_info): Declare.
7191 (ipa_reverse_postorder): Likewise.
7192 * cgraphunit.c: Include ipa-utils.h.
7193 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7194 * ipa-inline.c: Include ipa-utils.h.
7195 (ipa_inline): Update call to ipa_reverse_postorder.
7196 * ipa-pure-const.c (propagate_pure_const): Update call to
7197 ipa_reduced_postorder and ipa_print_order. Call
7198 ipa_free_postorder_info to clean up.
7199 (propagate_nothrow): Likewise.
7200 * ipa-reference.c (propagate): Removed a useless call to
7201 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7202 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7203 * ipa.c: Include ipa-utils.h.
7204 (ipa_profile): Update call to ipa_reverse_postorder.
7205 (cgraph_postorder): Moved to...
7206 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7207 (ipa_utils_print_order): Renamed to ipa_print_order.
7208 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7210 (ipa_free_postorder_info): New function.
7211 * passes.c: Include ipa-utils.h.
7212 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7213 (ipa_write_summaries): Likewise.
7214 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7215 (cgraphunit.o): Likewise.
7217 (ipa-inline.o): Likewise.
7219 2011-04-29 Jan Hubicka <jh@suse.cz>
7221 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7222 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7223 * ipa-inline.h (clause_t): Turn into unsigned int.
7224 * ipa-inline-analysis.c (add_clause): Do more simplification.
7225 (and_predicates): Shortcut more cases.
7226 (predicates_equal_p): Move forward; check that clauses are properly
7228 (or_predicates): Shortcut more cases.
7229 (edge_execution_predicate): Rewrite as...
7230 (set_cond_stmt_execution_predicate): ... this function; handle
7231 __builtin_constant_p.
7232 (set_switch_stmt_execution_predicate): New .
7233 (compute_bb_predicates): New.
7234 (will_be_nonconstant_predicate): Update TODO.
7235 (estimate_function_body_sizes): Use compute_bb_predicates
7236 and free them later, always try to estimate if stmt is constant.
7237 (estimate_time_after_inlining, estimate_size_after_inlining):
7238 Gracefully handle optimized out edges.
7239 (read_predicate): Fix off by one error.
7241 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7243 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7245 2011-04-27 Xinliang David Li <davidxl@google.com>
7247 * tree-profile.c (init_ic_make_global_vars): Set
7248 tls attribute on ic vars.
7249 * coverage.c (coverage_end_function): Initialize
7250 function_list with zero.
7252 2011-04-29 Richard Guenther <rguenther@suse.de>
7254 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7255 for the type of the result.
7256 (fold_builtin_isascii): Likewise.
7257 (fold_builtin_toascii): Use integer_type_node where appropriate.
7258 (fold_builtin_logb): Likewise.
7259 (fold_builtin_frexp): Likewise.
7260 (fold_builtin_strstr): Likewise.
7261 (fold_builtin_strpbrk): Likewise.
7262 (fold_builtin_fputs): Likewise.
7263 (fold_builtin_sprintf): Likewise.
7264 (fold_builtin_snprintf): Likewise.
7265 (fold_builtin_printf): Likewise.
7266 (do_mpfr_remquo): Use a proper type for the assigned constant.
7267 (do_mpfr_lgamma_r): Likewise.
7268 * dwarf2out.c (resolve_one_addr): Use size_int.
7269 * except.c (init_eh): Likewise.
7270 (assign_filter_values): Use integer_type_node for filter values.
7271 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7273 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7274 for EH region numbers.
7275 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7276 for the shift amount.
7278 2011-04-29 Richard Guenther <rguenther@suse.de>
7280 * expr.h (expand_shift): Rename to ...
7281 (expand_variable_shift): ... this.
7282 (expand_shift): Take a constant shift amount.
7283 * expmed.c (expand_shift): Rename to ...
7284 (expand_variable_shift): ... this.
7285 (expand_shift): New wrapper around expand_variable_shift.
7286 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7287 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7288 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7289 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7290 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7291 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7292 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7293 emit_store_flag_1, emit_store_flag): Likewise.
7294 * builtins.c (expand_builtin_signbit): Likewise.
7295 * calls.c (load_register_parameters): Likewise.
7296 * function.c (assign_parm_setup_block): Likewise.
7297 * lower-subreg.c (resolve_shift_zext): Likewise.
7298 * optabs.c (widen_bswap, expand_abs_nojump,
7299 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7300 * spu/spu.c (spu_expand_extv): Likewise.
7301 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7303 2011-04-29 Richard Guenther <rguenther@suse.de>
7305 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7306 for the remapped region number.
7307 * predict.c (build_predict_expr): Use integer_type_node for the
7309 * fold-const.c (fold_binary_loc): Use integer_type_node for
7310 the shift amount. Use a proper type for the PLUS_EXPR operand.
7312 2011-04-29 Michael Matz <matz@suse.de>
7314 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7315 other trees that just builtins.
7316 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7318 2011-04-29 Richard Guenther <rguenther@suse.de>
7320 * tree-nested.c (get_trampoline_type): Use size_int.
7321 (get_nl_goto_field): Likewise.
7322 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7324 (lower_eh_constructs_2): Likewise.
7325 (lower_resx): Likewise.
7326 (lower_eh_dispatch): Likewise.
7327 * tree-mudflap.c (mf_build_string): Use size_int.
7328 (mudflap_register_call): Use integer_type_node for the flag.
7329 (mudflap_enqueue_constant): Use size_int.
7330 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7331 instead of rebuilding it.
7333 2011-04-29 Richard Guenther <rguenther@suse.de>
7335 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7336 Handle OBJ_TYPE_REF.
7337 (find_func_aliases_for_call): Use it more consistently.
7339 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7341 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7342 (rank_for_schedule): Use it.
7343 (schedule_block): Set it.
7345 2011-04-28 David Li <davidxl@google.com>
7347 * tree.c (crc32_string): Use crc32_byte.
7348 (crc32_byte): New function.
7349 * tree.h (crc32_byte): New function.
7350 * gcov.c (read_graph_file): Handle new cfg_cksum.
7351 (read_count_file): Ditto.
7352 * profile.c (instrument_values): Ditto.
7353 (get_exec_counts): Ditto.
7354 (read_profile_edge_counts): Ditto.
7355 (compute_branch_probabilities): Ditto.
7356 (compute_value_histograms): Ditto.
7357 (branch_prob): Ditto.
7358 (end_branch_prob): Ditto.
7359 * coverage.c (read_counts_file): Ditto.
7360 (get_coverage_counts): Ditto.
7361 (tree_coverage_counter_addr): Ditto.
7362 (coverage_checksum_string): Ditto.
7363 (coverage_begin_output): Ditto.
7364 (coverage_end_function): Ditto.
7365 (build_fn_info_type): Ditto.
7366 (build_fn_info_value): Ditto.
7367 * libgcov.c (gcov_exit): Ditto.
7368 * gcov-dump.c (tag_function): Ditto.
7369 (compute_checksum): Remove.
7371 2011-04-29 Alan Modra <amodra@gmail.com>
7373 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7374 unspec plus offset. Tidy macho code.
7376 2011-04-29 Martin Jambor <mjambor@suse.cz>
7378 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7379 node instead of a decl. Update all callers.
7380 * cgraph.h: Update declaration.
7382 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7384 PR tree-optimization/48765
7385 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7386 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7387 to indicate if loop aware SLP is being used. Scan the statements
7388 and update the vectorization factor according to the type of
7389 vectorization before statement analysis.
7390 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7391 pass it to vect_analyze_loop_operations.
7392 (vectorizable_reduction): Set number of copies to 1 in case of pure
7394 * tree-vect-stmts.c (vectorizable_conversion,
7395 vectorizable_assignment, vectorizable_shift,
7396 vectorizable_operation, vectorizable_type_demotion,
7397 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7399 (vectorizable_condition): Move the check that it is not SLP
7400 vectorization before the number of copies check.
7401 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7402 to vectorize the loop using SLP.
7404 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7407 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7410 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7412 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7413 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7414 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7415 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7416 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7418 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7419 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7420 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7421 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7422 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7423 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7425 * config/i386/linux.h (REG_NAME): Don't define.
7426 * config/i386/linux64.h (REG_NAME): Don't define.
7427 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7428 Undefine before defining.
7430 2011-04-28 Jan Hubicka <jh@suse.cz>
7432 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7433 nonconstant_names array.
7434 (estimate_function_body_sizes): Build nonconstant_names array; handle
7435 BUILT_IN_CONSTANT_P.
7437 2011-04-28 Richard Guenther <rguenther@suse.de>
7441 2011-04-28 Richard Guenther <rguenther@suse.de>
7443 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7444 as late as possible.
7446 2011-04-28 Richard Guenther <rguenther@suse.de>
7448 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7449 (debug_constraint): Do it here.
7450 (dump_constraints): And here.
7451 (rewrite_constraints): And here.
7452 (dump_constraint_edge): Remove.
7453 (dump_constraint_graph): Rewrite to produce DOT output.
7454 (solve_constraints): Build succ graph as late as possible.
7455 Dump constraint graphs before and after solving.
7457 2011-04-28 Richard Guenther <rguenther@suse.de>
7459 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7460 New function split out from ...
7461 (find_func_aliases): ... here. Call it.
7462 (find_func_aliases_for_call): Likewise.
7464 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7466 * internal-fn.h (internal_fn_name_array): Declare.
7467 (internal_fn_flags_array): Likewise.
7469 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7471 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7472 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7474 (ssemodefsuffix): Remove.
7475 (ssevecmodesuffix): New mode attribute.
7476 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7477 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7478 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7479 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7480 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7481 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7482 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7483 ssemodesuffix mode attribute.
7484 (float splitters): Use ssevecmodesuffix mode attribute.
7485 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7486 (sseinsmode): Rename from avxvecmode.
7487 (avxsizesuffix): Rename from avxmodesuffix.
7488 (sseintvecmode): Rename from avxpermvecmode.
7489 (ssedoublevecmode): Rename from ssedoublesizemode.
7490 (ssehalfvecmode): Rename from avxhalfvecmode.
7491 (ssescalarmode): Rename from avxscalarmode.
7492 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7493 templates for ssemodesuffix mode attribute.
7494 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7497 Adjust RTX patterns globally for renamed mode attributes.
7499 2011-04-27 Jan Hubcika <jh@suse.cz>
7501 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7502 * ipa-inline-analysis.c: Include alloc-pool.h.
7503 (edge_predicate_pool): New.
7504 (trye_predicate_p): New function
7505 (false_predicate_p): New function.
7506 (add_clause): Sanity check that false clauses are "optimized";
7507 never add clauses to predicate that is already known to be false.
7508 (and_predicate): Use flase_predicate_p.
7509 (evaulate_predicate): Rename to ...
7510 (evaluate_predicate): ... this one; update all callers; assert
7511 that false is not listed among possible truths.
7512 (dump_predicate): Use true_predicate_p.
7513 (account_size_time): Use false_predicate_p.
7514 (evaulate_conditions_for_edge): Rename to ...
7515 (evaluate_conditions_for_edge) ... this one.
7516 (edge_set_predicate): New function.
7517 (inline_edge_duplication_hook): Duplicate edge predicates.
7518 (inline_edge_removal_hook): Free edge predicates.
7519 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7520 (dump_inline_summary): Update.
7521 (estimate_function_body_sizes): Set edge predicates.
7522 (estimate_calls_size_and_time): Handle predicates.
7523 (estimate_callee_size_and_time): Update.
7524 (remap_predicate): Add toplev_predicate; update comment.
7525 (remap_edge_predicates): New function.
7526 (inline_merge_summary): Compute toplev predicate; update.
7527 (read_predicate): New function.
7528 (read_inline_edge_summary): Use it.
7529 (inline_read_section): Likewise.
7530 (write_predicate): New function.
7531 (write_inline_edge_summary): Use it.
7532 (inline_write_summary): Likewise.
7533 (inline_free_summary): Free alloc pool and edge summary vec.
7535 2011-04-27 Richard Guenther <rguenther@suse.de>
7537 * tree-ssa-structalias.c (changed_count): Remove.
7538 (changed): Use a bitmap.
7539 (unify_nodes): Adjust.
7540 (do_sd_constraint): Likewise.
7541 (do_ds_constraint): Likewise.
7542 (do_complex_constraint): Likewise.
7543 (solve_graph): Likewise.
7545 2011-04-27 Jan Hubicka <jh@suse.cz>
7547 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7549 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7551 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7552 (avx_vperm2f128_*_operand): Ditto.
7553 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7554 Use avx_vpermilp_parallel in insn condition.
7555 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7556 Use avx_vperm2f128_parallel in insn condition.
7558 2011-04-27 Richard Guenther <rguenther@suse.de>
7560 * Makefile.in (tree-ssa-structalias.o): Remove
7561 gt-tree-ssa-structalias.h dependency.
7562 (GTFILES): Remove tree-ssa-structalias.c.
7563 * tree.c (allocate_decl_uid): New function.
7564 (make_node_stat): Use it.
7565 (copy_node_stat): Likewise.
7566 * tree.h (allocate_decl_uid): Declare.
7567 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7568 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7569 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7570 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7571 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7572 (struct heapvar_map): Likewise.
7573 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7574 heapvar_insert): Likewise.
7575 (make_heapvar_for): Rename to ...
7576 (make_heapvar): ... this. Simplify.
7577 (fake_var_decl_obstack): New global var.
7578 (build_fake_var_decl): New function.
7579 (make_constraint_from_heapvar): Adjust.
7580 (handle_lhs_call): Likewise.
7581 (create_function_info_for): Likewise.
7582 (intra_create_variable_infos): Likewise.
7583 (init_alias_vars): Allocate fake_var_decl_obstack.
7584 (init_alias_heapvars, delete_alias_heapvars): Remove.
7585 (compute_points_to_sets): Do not call init_alias_heapvars.
7586 (ipa_pta_execute): Likewise.
7587 (delete_points_to_sets): Free fake_var_decl_obstack.
7589 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7591 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7592 (si_from_UTItype, si_to_UTItype): New functions.
7593 (__udivmodti4): Use them to implement type-punning.
7594 * config/spu/multi3.c (union qword_TItype): New data type.
7595 (si_from_TItype, si_to_TItype): New functions.
7596 (__multi3): Use them to implement type-punning.
7598 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7600 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7602 2011-04-27 Jan Hubicka <jh@suse.cz>
7604 * ipa-prop.c (function_insertion_hook_holder): New holder.
7605 (ipa_add_new_function): New function.
7606 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7607 Register/deregister holder.
7609 2011-04-27 Richard Guenther <rguenther@suse.de>
7611 PR tree-optimization/48772
7612 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7614 2011-04-27 Richard Guenther <rguenther@suse.de>
7616 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7617 TARGET_MEM_REF handling.
7619 2011-04-27 Nick Clifton <nickc@redhat.com>
7621 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7622 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7623 (REG_CLASS_NAMES): Likewise.
7624 (REG_CLASS_CONTENTS): Likewise.
7625 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7626 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7627 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7628 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7629 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7630 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7631 duplicate register classes.
7632 (frv_class_likely_spilled_p): Likewise.
7633 (frv_register_move_cost): Likewise.
7635 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7636 end of the regno_reg_class array.
7638 2011-04-27 Jakub Jelinek <jakub@redhat.com>
7641 * c-typeck.c (build_binary_op): Don't wrap arguments if
7642 int_operands is true.
7644 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7647 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7648 targetm.calls.must_pass_in_stack for void type.
7650 2011-04-26 Jan Hubicka <jh@suse.cz>
7652 * cgraphbuild.c (build_cgraph_edges): Update call
7653 of cgraph_create_edge and cgraph_create_indirect_edge.
7654 * cgraph.c (cgraph_create_edge_including_clones,
7655 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7656 cgraph_update_edges_for_call_stmt_node): Do not take nest
7657 argument; do not initialize call_stmt_size/time.
7658 (dump_cgraph_node): Do not dump nest.
7659 (cgraph_clone_edge): Do not take loop_nest argument;
7660 do not propagate it; do not clone call_stmt_size/time.
7661 (cgraph_clone_node): Likewise.
7662 (cgraph_create_virtual_clone): Update.
7663 * cgraph.h (struct cgraph_edge): Remove
7664 call_stmt_size/call_stmt_time/loop_nest.
7665 (cgraph_create_edge, cgraph_create_indirect_edge,
7666 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7668 * tree-emutls.c (gen_emutls_addr): Update.
7669 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7670 loop_nest; handle indirect calls, too.
7671 (clone_inlined_nodes): Do not care about updating inline summaries.
7672 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7673 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7674 stream call_stmt_size/call_stmt_time/loop_nest.
7675 * ipa-inline.c (edge_badness): Update.
7676 (ipa_inline): dump summaries after inlining.
7677 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7679 (inline_edge_summary): New function.
7680 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7681 (inline_edge_removal_hook): Handle edge summaries.
7682 (inline_edge_duplication_hook): New hook.
7683 (inline_summary_alloc): Alloc hooks.
7684 (initialize_growth_caches): Do not register removal hooks.
7685 (free_growth_caches); Do not free removal hook.
7686 (dump_inline_edge_summary): New function.
7687 (dump_inline_summary): Use it.
7688 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7689 (inline_update_callee_summaries): New function.
7690 (inline_merge_summary): Use it.
7691 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7692 (read_inline_edge_summary): New function.
7693 (inline_read_section): Use it.
7694 (write_inline_edge_summary): New function.
7695 (inline_write_summary): Use it.
7696 (inline_free_summary): Free edge new holders.
7697 * tree-inline.c (copy_bb): Update.
7699 2011-04-26 Jason Merrill <jason@redhat.com>
7701 * tree-eh.c (lower_try_finally_switch): Create the label along with
7702 the CASE_LABEL_EXPR.
7704 2011-04-26 David S. Miller <davem@davemloft.net>
7705 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7707 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7708 * configure: Regenerate.
7710 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7713 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7715 (VEC_reduc): New code iterator and splitters for vector reduction.
7716 (VEC_reduc_name): Ditto.
7717 (VEC_reduc_rtx): Ditto.
7718 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7719 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7721 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7722 support for extracting SF on VSX.
7724 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7725 generating xscvspdp.
7726 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7727 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7728 double add, minimum, maximum vector reduction.
7729 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7730 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7731 optimize double vector reduction.
7732 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7734 2011-04-26 Joseph Myers <joseph@codesourcery.com>
7736 * config/fr30/fr30.h (inhibit_libc): Don't define.
7737 * config/m32r/m32r-protos.h: Correct comment.
7738 * config/v850/v850.h (GHS_default_section_names,
7739 GHS_current_section_names): Use tree, not union tree_node *.
7741 2011-04-26 Xinliang David Li <davidxl@google.com>
7743 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7744 * c-family/c-opts.c (c_common_handle_option): Set
7745 warn_maybe_uninitialized.
7746 * opts.c (common_handle_option): Ditto.
7747 * common.opt: New option.
7748 * tree-ssa.c (warn_uninit): Add one more parameter.
7749 (warn_uninitialized_var): Pass warning code.
7750 * tree-flow.h: Interface change.
7752 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7754 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7755 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7756 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7758 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7760 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7761 * config/mips/mips.opt (mmips-tfile): Remove.
7763 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7764 mips-tdump reference to ...
7765 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
7766 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7767 reference by Tru64 UNIX.
7769 2011-04-26 Jakub Jelinek <jakub@redhat.com>
7772 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7773 is error_mark_node, set value to NULL.
7775 PR tree-optimization/48734
7776 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7777 if return value from maybe_fold_*_comparsions isn't something
7778 the code is prepared to handle.
7780 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
7782 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7784 (ext_QIreg_nomode_operands): Remove.
7785 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7789 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
7791 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7793 2011-04-26 Richard Guenther <rguenther@suse.de>
7795 * c-typeck.c (build_unary_op): Do not expand array-refs via
7796 pointer arithmetic. Only adjust qualifiers for function types.
7798 2011-04-26 Richard Guenther <rguenther@suse.de>
7801 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7802 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7803 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7804 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7806 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7808 * doc/extend.texi: Document __underlying_type.
7810 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7812 * config/rs6000/titan.md (automata_option "progress"): Remove.
7814 2011-04-25 Jeff Law <law@redhat.com>
7816 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7818 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7820 * system.h (ENUM_BITFIELD): Remove.
7822 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
7823 Eric Botcazou <ebotcazou@adacore.com>
7825 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7826 for STORE_FLAG_VALUE==-1 case.
7828 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7831 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7832 LEGITIMATE_PIC_OPERAND_P.
7834 2011-04-24 Jan Hubicka <jh@suse.cz>
7836 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7838 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7839 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7840 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7841 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7842 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7843 Sanity check predicate length.
7844 (remap_predicate): Likewise; sanity check jump functions.
7845 (inline_read_section, inline_write_summary): Sanity check
7848 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7851 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7852 __is_literal_type, and __is_trivial; update throughout about
7853 possibly cv-qualified void types.
7855 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7857 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7858 testsuite and make it version agnostic.
7860 2011-04-22 Jan Hubicka <jh@suse.cz>
7862 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7864 2011-04-23 Jakub Jelinek <jakub@redhat.com>
7867 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7868 to VOID_TYPE even around MODIFY_EXPR.
7870 2011-04-22 Mike Stump <mikestump@comcast.net>
7872 * gensupport.c (read_md_rtx): Fix typo in comment.
7873 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7876 2011-04-22 Jan Hubicka <jh@suse.cz>
7878 * gengtype.c (open_base_files): Add ipa-inline.h include.
7879 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7880 ipa-prop.c; update all uses.
7881 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7882 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7883 merge summary of inlined function into former caller.
7884 * ipa-inline.c (max_benefit): Remove.
7885 (edge_badness): Compensate for removal of benefits.
7886 (update_caller_keys): Use
7887 reset_node_growth_cache/reset_edge_growth_cache.
7888 (update_callee_keys): Likewise.
7889 (update_all_callee_keys): Likewise.
7890 (inline_small_functions): Do not collect max_benefit; do not reset
7891 estimated_growth; call free_growth_caches and initialize_growth_caches.
7892 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7893 struct size_time_entry): New structures.
7894 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7895 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7896 and estimated_growth.
7897 (edge_growth_cache_entry): New structure.
7898 (node_growth_cache, edge_growth_cache): New global vars.
7899 (estimate_growth): Turn into inline.
7900 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7901 initialize_growth_caches, free_growth_caches): Declare.
7902 (estimate_edge_growth): Rewrite.
7903 (estimate_edge_time): Implement as inline cache lookup.
7904 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7906 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7907 (NUM_CONDITIONS): New constant.
7908 (predicate_conditions): New enum.
7909 (IS_NOT_CONSTANT): New constant.
7910 (edge_removal_hook_holder): New var.
7911 (node_growth_cache, edge_growth_cache): New global vars.
7912 (true_predicate, single_cond_predicate, false_predicate,
7913 not_inlined_predicate, add_condition, add_clause, and_predicates,
7914 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7915 dump_clause, dump_predicate, account_size_time,
7916 evaulate_conditions_for_edge): New functions.
7917 (inline_summary_alloc): Move to heap.
7918 (inline_node_removal_hook): Clear condition and entry vectors.
7919 (inline_edge_removal_hook): New function.
7920 (initialize_growth_caches, free_growth_caches): New function.
7921 (dump_inline_summary): Update.
7922 (edge_execution_predicate): New function.
7923 (will_be_nonconstant_predicate): New function.
7924 (estimate_function_body_sizes): Compute BB and constantness predicates.
7925 (compute_inline_parameters): Do not clear estimated_growth.
7926 (estimate_edge_size_and_time): New function.
7927 (estimate_calls_size_and_time): New function.
7928 (estimate_callee_size_and_time): New function.
7929 (remap_predicate): New function.
7930 (inline_merge_summary): New function.
7931 (do_estimate_edge_time): New function based on...
7932 (estimate_edge_time): ... this one.
7933 (do_estimate_edge_growth): New function.
7934 (do_estimate_growth): New function based on....
7935 (estimate_growth): ... this one.
7936 (inline_analyze_function): Analyze after deciding on jump functions.
7937 (inline_read_section): New function.
7938 (inline_read_summary): Use it.
7939 (inline_write_summary): Write all the new data.
7940 * ipa-prop.c (ipa_get_param_decl_index): Export.
7941 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7942 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7944 (ipa_get_lattice): Move here from ipa-cp.c
7945 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7946 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7947 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7948 cgraph_edge_inlinable_p): Remove.
7949 * cgraphunit.c: Include ipainline.h
7950 (cgraph_process_new_functions): Update call of
7951 compute_inline_parameters.
7953 2011-04-22 Richard Guenther <rguenther@suse.de>
7955 * tree.c (build_int_cst): Properly create canonicalized integer
7957 (build_int_cst_type): Remove scary comments.
7959 2011-04-22 Xinliang David Li <davidxl@google.com>
7961 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7962 by default when -Wno-error is not specified.
7963 * opts-global.c (decode_options): Remove call to
7964 control_warning_options.
7966 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7968 PR tree-optimization/48717
7969 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7970 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7972 2011-04-22 Joseph Myers <joseph@codesourcery.com>
7974 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7975 definition where used.
7977 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7980 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7981 TREE_STATIC variables declared inside of some OpenMP construct.
7983 2011-04-22 Martin Jambor <mjambor@suse.cz>
7986 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7988 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7991 * c-typeck.c (pop_init_level): Do not warn about initializing
7994 2011-04-22 Alan Modra <amodra@gmail.com>
7996 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7997 when returning call_cookie.
7998 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7999 pointers, to functions with no more vector args than the current
8000 function, and some non-local calls for ABI_V4.
8001 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8002 sibcall_nonlocal_aix64): Combine to ..
8003 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8004 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8005 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8006 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8007 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8009 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8010 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8011 sibcall_value_symbolic_64): Delete.
8013 2011-04-21 Xinliang David Li <davidxl@google.com>
8015 * cgraph.h: Remove pid.
8016 * cgraph.c: Remove pid.
8017 * value-prof.c (init_node_map): New function.
8018 (del_node_map): New function.
8019 (find_func_by_funcdef_no): New function.
8020 (gimple_ic_transform): Call new function.
8021 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8022 * function.c (get_last_funcdef_no): New function.
8023 * function.h (get_last_funcdef_no): New function.
8024 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8025 to libgcov function.
8026 (tree-profiling): Call node map init and delete function.
8028 2011-04-21 Ian Lance Taylor <iant@google.com>
8030 * godump.c (go_format_type): Use exported Go name for anonymous
8033 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8035 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8036 Call builtin_function_type_list instead of builtin_function_type.
8037 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8039 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8041 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8042 build_function_type_list instead of build_function_type.
8043 Delete variable `endlink'.
8045 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8047 * config/s390/s390.c (s390_init_builtins): Call
8048 build_function_type_list instead of build_function_type.
8050 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8052 * config/ia64/ia64.c (ia64_init_builtins): Call
8053 build_function_type_list instead of builtin_function_type.
8055 2011-04-21 Easwaran Raman <eraman@google.com>
8057 * cfgexpand.c (stack_var): Remove OFFSET...
8058 (add_stack_var): ...and its reference here...
8059 (expand_stack_vars): ...and here.
8060 (stack_var_cmp): Sort by descending order of size.
8061 (partition_stack_vars): Change heuristic.
8062 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8063 (dump_stack_var_partition): Add newline after each partition.
8065 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8066 Jeff Law <law@redhat.com>
8068 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8069 * gengtype.c (matching_file_name_substitute): Likewise.
8071 2011-04-21 Richard Guenther <rguenther@suse.de>
8074 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8076 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8078 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8080 2011-04-21 Richard Guenther <rguenther@suse.de>
8082 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8085 2011-04-21 Richard Guenther <rguenther@suse.de>
8087 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8088 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8089 Use DECL_P, not SSA_VAR_P.
8090 (ptr_derefs_may_alias_p): Likewise.
8091 (ptr_deref_may_alias_ref_p_1): Likewise.
8092 (decl_refs_may_alias_p): Likewise.
8093 (refs_may_alias_p_1): Likewise.
8094 (ref_maybe_used_by_call_p_1): Likewise.
8095 (call_may_clobber_ref_p_1): Likewise.
8096 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8097 are either MEM_REF or TARGET_MEM_REF.
8098 (indirect_refs_may_alias_p): Likewise.
8099 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8100 for MEM_EXPR of indirect calls.
8102 2011-04-21 Tristan Gingold <gingold@adacore.com>
8104 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8105 (dst_file_info_struct): Remove flen field.
8106 (lookup_filename): Remove code that set flen field.
8108 2011-04-21 Tristan Gingold <gingold@adacore.com>
8110 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8112 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8115 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8116 vec_extract and vec_concat for non-SSE4_1 targets.
8118 2011-04-21 Richard Guenther <rguenther@suse.de>
8120 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8123 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8125 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8127 (FILE): Don't undefine.
8129 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8131 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8133 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8135 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8136 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8137 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8139 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8140 definitions where used.
8141 * config/microblaze/microblaze.h (struct microblaze_args): Use
8142 rtx, not struct rtx_def *.
8143 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8145 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8146 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8147 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8148 not struct rtx_def *.
8149 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8151 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8153 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8155 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8157 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8158 operand_equal_p to compare DR_BASE_ADDRESSes.
8159 (vect_check_interleaving): Likewise.
8161 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8164 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8165 for all Neon struct constants.
8167 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8169 * target.def (legitimate_constant_p): New hook.
8170 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8171 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8172 * doc/tm.texi: Regenerate.
8173 * hooks.h (hook_bool_mode_rtx_true): Declare.
8174 * hooks.c (hook_bool_mode_rtx_true): Define.
8175 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8176 * calls.c (precompute_register_parameters): Replace uses of
8177 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8178 (emit_library_call_value_1): Likewise.
8179 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8180 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8181 * ira-costs.c (scan_one_insn): Likewise.
8182 * recog.c (general_operand, immediate_operand): Likewise.
8183 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8184 * reload1.c (init_eliminable_invariants): Likewise.
8186 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8188 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8189 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8191 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8192 * config/alpha/predicates.md (input_operand): Update call to
8193 alpha_legitimate_constant_p.
8195 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8196 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8197 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8198 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8199 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8200 (arm_legitimate_constant_p): New functions.
8201 (arm_cannot_force_const_mem): Make static.
8203 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8205 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8206 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8207 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8208 instead of bfin_legitimate_constant_p.
8209 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8210 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8212 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8214 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8216 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8217 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8218 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8219 (frv_legitimate_constant_p): Make static. Add a mode argument.
8221 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8222 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8223 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8225 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8226 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8227 * config/i386/i386.c (legitimate_constant_p): Rename to...
8228 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8230 (ix86_cannot_force_const_mem): Update accordingly.
8231 (ix86_legitimate_address_p): Likewise.
8232 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8233 * config/i386/i386.md: Update commentary.
8235 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8236 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8237 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8238 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8240 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8242 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8243 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8244 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8245 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8247 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8248 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8249 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8251 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8252 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8253 (m32r_legitimate_constant_p): New function.
8255 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8256 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8257 LEGITIMATE_CONSTANT_P.
8258 (LEGITIMATE_CONSTANT_P): Delete.
8259 * config/m68k/m68k.c (m68k_expand_prologue): Call
8260 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8261 (m68k_legitimate_constant_p): New function.
8262 * config/m68k/m68k.md: Update comments.
8264 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8265 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8266 (mcore_legitimate_constant_p): New function.
8268 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8269 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8270 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8271 Add a mode argument.
8272 (mep_legitimate_address): Update accordingly.
8273 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8275 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8277 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8278 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8279 static. Check OP's mode for VOIDmode.
8280 (microblaze_legitimate_constant_p): New function.
8281 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8283 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8284 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8285 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8286 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8287 * config/mips/predicates.md: Update comments.
8289 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8290 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8291 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8292 (mmix_legitimate_constant_p): Make static, return a bool, and take
8294 (mmix_print_operand_address): Update accordingly.
8296 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8298 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8299 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8300 static. Add a mode argument.
8301 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8303 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8305 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8306 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8307 (pa_legitimate_constant_p): New function.
8309 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8311 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8312 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8313 (pdp11_legitimate_constant_p): New function.
8315 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8316 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8317 (rs6000_legitimate_constant_p): New function.
8319 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8320 (rx_legitimate_constant_p): ...this.
8321 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8322 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8323 (rx_legitimate_constant_p): ...this.
8324 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8325 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8327 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8328 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8329 * config/s390/s390.c (legitimate_constant_p): Rename to...
8330 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8331 and add a mode argument.
8332 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8334 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8336 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8337 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8338 (sh_legitimate_constant_p): New function.
8340 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8341 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8342 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8343 (legitimate_constant_p): Rename to...
8344 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8346 (constant_address_p): Update accordingly.
8348 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8349 argument and return a bool.
8350 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8351 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8352 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8353 (spu_rtx_costs): Update accordingly.
8354 * config/spu/predicates.md (vec_imm_operand): Likewise.
8356 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8358 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8359 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8360 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8362 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8363 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8364 * config/vax/vax.c (legitimate_constant_p): Likewise.
8366 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8367 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8368 (xtensa_legitimate_constant_p): New function.
8370 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8372 * target.def (cannot_force_const_mem): Add a mode argument.
8373 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8374 * doc/tm.texi: Regenerate.
8375 * hooks.h (hook_bool_mode_rtx_false): Declare.
8376 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8377 (hook_bool_mode_const_rtx_true): Likewise.
8378 (hook_bool_mode_rtx_false): New function.
8379 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8380 to be non-VOID. Update call to cannot_force_const_mem.
8381 (find_reloads): Update accordingly.
8382 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8383 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8385 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8386 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8387 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8388 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8389 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8390 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8391 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8392 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8393 (m68k_cannot_force_const_mem): ...this new function.
8394 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8396 (mips_const_insns, mips_legitimize_const_move): Update calls.
8397 (mips_secondary_reload_class): Likewise.
8398 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8399 (pa_cannot_force_const_mem): ...this new function.
8400 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8401 (rs6000_cannot_force_const_mem): ...this new function.
8402 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8404 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8405 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8407 (xtensa_cannot_force_const_mem): ...this new function.
8409 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8411 * config/mips/mips.c (mips16_build_function_stub): Call
8412 build_function_type_list instead of build_function_type.
8413 (mips16_build_call_stub): Likewise.
8415 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8417 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8418 instead of build_function_type.
8420 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8422 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8423 instead of build_function_type.
8425 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8428 * config/i386/i386.md (insv): Change operand 0 constraint to
8429 "register_operand". Change operand 1 and 2 constraint to
8430 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8431 * config/i386/sse.md (sse4_1_pinsrb): Export.
8432 (sse2_pinsrw): Ditto.
8433 (sse4_1_pinsrd): Ditto.
8434 (sse4_1_pinsrq): Ditto.
8435 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8436 * config/i386/i386.c (ix86_expand_pinsr): New.
8438 2011-04-20 Easwaran Raman <eraman@google.com>
8440 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8441 containing union type only with -fstrict-aliasing.
8443 2011-04-20 Jim Meyering <meyering@redhat.com>
8445 Remove useless if-before-free tests.
8446 * calls.c (expand_call, save_area): Likewise.
8447 * cfgcleanup.c (try_forward_edges): Likewise.
8448 * collect2.c (collect_execute): Likewise.
8449 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8450 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8451 * coverage.c (coverage_checksum_string): Likewise.
8452 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8453 * cselib.c (cselib_init): Likewise.
8454 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8455 (df_set_clean_cfg): Likewise.
8456 * function.c (free_after_compilation): Likewise.
8457 * gcc.c (do_spec_1, main): Likewise.
8458 * gcov.c (create_file_names): Likewise.
8459 * gensupport.c (identify_predicable_attribute): Likewise.
8460 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8461 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8462 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8463 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8464 * ipa-pure-const.c (local_pure_const): Likewise.
8465 * ipa-reference.c (propagate): Likewise.
8466 * ira-costs.c (free_ira_costs): Likewise.
8467 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8468 * matrix-reorg.c (mat_free): Likewise.
8469 * prefix.c (get_key_value): Likewise.
8470 * profile.c (compute_value_histograms): Likewise.
8471 * reload1.c (free_reg_equiv): Likewise.
8472 * sched-deps.c (free_deps): Likewise.
8473 * sel-sched-ir.c (fence_clear): Likewise.
8474 * sese.c (set_rename, if_region_set_false_region): Likewise.
8475 * tree-data-ref.c (free_rdg): Likewise.
8476 * tree-eh.c (lower_try_finally): Likewise.
8477 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8478 * tree-ssa-live.c (delete_var_map): Likewise.
8479 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8480 * tree-ssa-pre.c (phi_trans_add): Likewise.
8482 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8484 PR tree-optimization/48611
8485 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8486 beyond ERT_MUST_NOT_THROW region.
8488 2011-04-20 Catherine Moore <clm@codesourcery.com>
8490 * config/mips/mips.opt (mfix-24k): New.
8491 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8492 * config/mips/mips.md (length): Increase by 4 for stores if
8494 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8495 all noreorder if fixing 24K errata.
8496 * doc/invoke.texi: Document mfix-24k.
8498 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8500 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8501 quad-word modes, reduce to 9-bit index range when above 1016 limit.
8503 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8505 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8506 (const_ok_for_op): ... to here.
8508 2011-04-20 Kai Tietz <ktietz@redhat.com>
8510 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8511 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8513 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8515 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8517 2011-04-20 Richard Guenther <rguenther@suse.de>
8519 PR tree-optimization/47892
8520 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8523 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8525 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8527 2011-04-20 Tristan Gingold <gingold@adacore.com>
8529 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8531 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
8535 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8536 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8537 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8538 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8539 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8541 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8544 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8545 (avr_asm_named_section, avr_asm_output_aligned_common,
8546 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8547 New functions to update...
8548 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8549 (avr_asm_init_sections): Overwrite section callbacks for
8550 data_section, bss_section.
8551 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8553 (avr_file_end): ...here.
8555 2011-04-20 Richard Guenther <rguenther@suse.de>
8558 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8559 objects and types here. Adjust for their offset before comparing.
8561 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8563 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8566 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8568 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8569 (GIMPLE_H): Include $(INTERNAL_FN_H).
8570 (OBJS-common): Add internal-fn.o.
8571 (internal-fn.o): New rule.
8572 * internal-fn.def: New file.
8573 * internal-fn.h: Likewise.
8574 * internal-fn.c: Likewise.
8575 * gimple.h: Include internal-fn.h.
8576 (GF_CALL_INTERNAL): New gf_mask.
8577 (gimple_statement_call): Put fntype into a union with a new
8579 (gimple_build_call_internal): Declare.
8580 (gimple_build_call_internal_vec): Likewise.
8581 (gimple_call_same_target_p): Likewise.
8582 (gimple_call_internal_p): New function.
8583 (gimple_call_internal_fn): Likewise.
8584 (gimple_call_fntype): Return null for internal calls.
8585 (gimple_call_set_fntype): Assert that the function is not internal.
8586 (gimple_call_set_fn): Likewise.
8587 (gimple_call_set_fndecl): Likewise.
8588 (gimple_call_set_internal_fn): New function.
8589 (gimple_call_addr_fndecl): Handle null functions.
8590 (gimple_call_return_type): Likewise null types.
8591 * gimple.c (gimple_build_call_internal_1): New function.
8592 (gimple_build_call_internal): Likewise.
8593 (gimple_build_call_internal_vec): Likewise.
8594 (gimple_call_same_target_p): Likewise.
8595 (gimple_call_flags): Handle calls to internal functions.
8596 (gimple_call_fnspec): New function.
8597 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8598 (gimple_has_side_effects): Handle null functions.
8599 (gimple_rhs_has_side_effects): Likewise.
8600 (gimple_call_copy_skip_args): Handle calls to internal functions.
8601 * cfgexpand.c (expand_call_stmt): Likewise.
8602 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8603 * gimple-fold.c (gimple_fold_call): Handle null functions.
8604 (gimple_fold_stmt_to_constant_1): Don't fold
8605 calls to internal functions.
8606 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8608 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8609 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8610 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8611 (do_warn_unused_result): Likewise.
8612 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8613 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8614 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8615 the target of a call.
8616 (initialize_hash_element): Update accordingly.
8617 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8618 (iterative_hash_hashable_expr): Handle calls to internal functions.
8619 (print_expr_hash_elt): Likewise.
8620 * tree-ssa-pre.c (can_value_number_call): Likewise.
8621 (eliminate): Handle null functions.
8622 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8623 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8624 (find_func_aliases): Likewise.
8625 * value-prof.c (gimple_ic_transform): Likewise.
8626 (gimple_indirect_call_to_profile): Likewise.
8627 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8628 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8630 2011-04-19 Jan Hubicka <jh@suse.cz>
8632 * ipa-inline-transform.c (save_inline_function_body): Add comments.
8633 * ipa-inline.c (inline_small_functions): Compute summaries first,
8634 populate heap later.
8636 2011-04-19 Jan Hubicka <jh@suse.cz>
8638 * cgraph.h (save_inline_function_body): Remove.
8639 * ipa-inline-transform.c: New file, broke out of...
8640 * ipa-inline.c: ... this one; Update toplevel comment.
8641 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8643 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8644 (cgraph_mark_inline_edge): Rename to inline_call; move to
8645 ipa-inline-transform.c.
8646 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8647 move to ipa-inline-transform.c
8648 (recursive_inlining, inline_small_functions, flatten_function,
8649 ipa_inline, inline_always_inline_functions,
8650 early_inline_small_functions): Update.
8651 (inline_transform): Move to ipa-inline-transform.c.
8652 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8654 * Makefile.in (ipa-inline-transform.o): New file.
8655 * cgraphunit.c (save_inline_function_body): Move to
8656 ipa-inline-transform.c
8658 2011-04-19 DJ Delorie <dj@redhat.com>
8660 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8661 registers if we already know there aren't any.
8662 (m32c_emit_epilogue): Don't emit a barrier here.
8663 (m32c_emit_eh_epilogue): Likewise.
8664 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8665 operands at expand time.
8666 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8668 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8669 duplicates. Provide aliases instead.
8670 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8671 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8674 2011-04-19 Anatoly Sokolov <aesok@post.ru>
8676 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8677 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8678 (general_or_i64_p, sparc_register_move_cost): New function.
8680 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8682 * doc/install.texi (Configuration, --enable-threads): Remove mach.
8683 Add lynx, mipssde. Sort table.
8685 2011-04-19 Xinliang David Li <davidxl@google.com>
8687 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8690 2011-04-19 Jakub Jelinek <jakub@redhat.com>
8693 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8694 is a SUBREG with non-MODE_INT mode inside of it.
8696 2011-04-19 Martin Jambor <mjambor@suse.cz>
8698 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8699 also according to actual contants.
8700 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8701 (gimple_fold_call): Use it.
8702 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8704 2011-04-19 Martin Jambor <mjambor@suse.cz>
8706 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8707 non-pointer assignments.
8709 2011-04-19 Martin Jambor <mjambor@suse.cz>
8711 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8712 account anc_offset and otr_type from the indirect edge info.
8713 * ipa-prop.c (get_ancestor_addr_info): New function.
8714 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8715 get_ancestor_addr_info, call it.
8716 (ipa_note_param_call): Do not initialize information about polymorphic
8717 calls, return the indirect call graph edge. Remove the last
8718 parameter, adjust all callers.
8719 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8720 parameters. Initialize polymorphic information in the indirect edge.
8722 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8725 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8726 the types if they have different enumeration identifiers.
8728 2011-04-19 Jan Hubicka <jh@suse.cz>
8730 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8731 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8732 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8733 (optimize_function_for_size_p) ... here.
8735 2011-04-19 Richard Guenther <rguenther@suse.de>
8738 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8741 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8743 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8744 if DECL_NO_INLINE_WARNING_P is set on the function.
8746 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8749 * reload1.c (inc_for_reload): Return void. All callers changed.
8750 (emit_input_reload_insns): Don't try to delete previous output
8751 reloads to a register, or record spill_reg_store for autoincs.
8753 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8755 * gengtype.h: Updated copyright year.
8756 (struct input_file_st): Add inpisplugin field.
8757 (type_fileloc): New function.
8759 (write_typed_struct_alloc_def): Add gcc_assert.
8760 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8761 (write_typed_alloc_defns): Don't output for plugin files.
8762 (input_file_by_name): Clear inpisplugin field.
8763 (main): Set inpisplugin field for plugin files.
8765 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8767 * gengtype-state.c (string_eq): New.
8768 (read_state): Use string_eq instead of strcmp when creating the
8771 2011-04-19 Wei Guozhi <carrot@google.com>
8774 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8775 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8777 * config/arm/constraints.md (Uu): New constraint.
8778 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8780 2011-04-19 Tristan Gingold <gingold@adacore.com>
8782 * config.gcc (-*-*-*vms): Added.
8783 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8785 * config/vms/vms-ld.c: New file.
8786 * config/vms/vms-ar.c: New file.
8787 * config/vms/t-vmsnative: New file.
8789 2011-04-18 Xinliang David Li <davidxl@google.com>
8791 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8793 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8796 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8797 if TREE_TYPE (v) is non-NULL.
8799 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8800 gimple_get_virt_mehtod_for_binfo.
8801 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8802 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8804 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8806 2011-04-18 Michael Matz <matz@suse.de>
8807 Steve Ellcey <sje@cup.hp.com>
8809 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8810 use its mode as source mode if it isn't VOIDmode.
8812 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8814 * doc/passes.texi: Fill crossref nodes.
8816 2011-04-18 Jim Meyering <meyering@redhat.com>
8818 Fix doubled-word typos in comments and strings
8819 * config/alpha/vms-unwind.h: s/for for/for/
8820 * config/arm/unwind-arm.h: Likewise.
8821 * config/microblaze/microblaze.c: Likewise.
8822 * config/sh/constraints.md: s/in in/in/
8823 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8825 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
8827 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8828 (AVX_FLOAT_MODE_P): Ditto.
8829 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8830 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8831 (AVX_VEC_FLOAT_MODE_P): Ditto.
8832 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8833 (UNSPEC_MASKSTORE): Ditto.
8834 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8835 Merge from <sse>_movmsk<ssemodesuffix> and
8836 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8837 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8839 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8840 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8841 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8843 2011-04-18 Jan Hubicka <jh@suse.cz>
8845 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8847 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8848 (want_inline_function_called_once_p): Break out the logic from
8850 (edge_badness): Ensure that profile is not misupdated.
8851 (lookup_recursive_calls): Prioritize by call frequencies.
8852 (inline_small_functions): Move program size estimates here;
8853 actually process whole queue even when unit growth has been
8854 met. (to properly compute inline_failed reasons and for the
8855 case unit size decrease.) Revisit comments on recursive inlining.
8856 (ipa_inline): Remove unit summary code; first inline hot calls
8857 of functions called once, cold calls next.
8858 (order, nnodes): Remove unused variables.
8859 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8860 (GTFILES): Remove ipa-inline.c
8861 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8863 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8865 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8867 2011-04-18 Jie Zhang <jie@codesourcery.com>
8868 Richard Earnshaw <rearnsha@arm.com>
8870 * arm.c (neon_builtin_type_bits): Remove.
8871 (typedef enum neon_builtin_mode): New.
8872 (T_MAX): Don't define.
8873 (typedef enum neon_builtin_datum): Remove bits, codes[],
8874 num_vars and base_fcode. Add mode, code and fcode.
8875 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8876 VAR10): Change accordingly.
8877 (neon_builtin_data[]): Change accordingly
8878 (arm_init_neon_builtins): Change accordingly.
8879 (neon_builtin_compare): Remove.
8880 (locate_neon_builtin_icode): Remove.
8881 (arm_expand_neon_builtin): Change accordingly.
8883 * arm.h (enum arm_builtins): Move to ...
8884 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8886 * arm.c (arm_builtin_decl): Declare.
8887 (TARGET_BUILTIN_DECL): Define.
8888 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8889 (arm_builtin_decls[]): New.
8890 (arm_init_neon_builtins): Store builtin declarations in
8891 arm_builtin_decls[].
8892 (arm_init_tls_builtins): Likewise.
8893 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8894 (arm_builtin_decl): New.
8896 2011-04-18 Richard Guenther <rguenther@suse.de>
8898 * tree.c (upper_bound_in_type): Build properly canonicalized
8900 (lower_bound_in_type): Likewise.
8902 2011-04-18 Richard Guenther <rguenther@suse.de>
8904 * gimple.h (gimple_call_addr_fndecl): New function.
8905 (gimple_call_fndecl): Use it.
8906 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8908 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8909 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8911 2011-04-18 Richard Guenther <rguenther@suse.de>
8914 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8916 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8919 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8920 DECL_IN_CONSTANT_POOL without RTL.
8922 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8923 Ira Rosen <ira.rosen@linaro.org>
8926 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8927 to match neon_vzip/vuzp/vtrn_internal.
8928 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8929 outputs explicitly dependent on both inputs.
8930 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8932 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8934 PR tree-optimization/48616
8935 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8936 whether the shift is by scalar or vector based on whether all SLP
8937 scalar stmts have the same rhs.
8939 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8941 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8944 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8947 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8950 2011-04-17 Jan Hubicka <jh@suse.cz>
8952 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8953 * cgrpahunit.c (cgraph_finalize_function): Do not set
8954 finalized_by_frontend.
8955 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8956 finalized_by_frontend.
8958 2011-04-17 Jan Hubicka <jh@suse.cz>
8960 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8961 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8962 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8963 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8965 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8967 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8969 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8972 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8973 is non-null before accessing it.
8974 (input_cgraph): Remove trailing spaces.
8976 2011-04-17 Revital Eres <revital.eres@linaro.org>
8978 * params.def (sms-min-sc): New param flag.
8979 * modulo-sched.c (sms_schedule): Use it.
8980 * doc/invoke.texi (sms-min-sc): Document it.
8982 2011-04-17 Jan Hubicka <jh@suse.cz>
8984 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8985 present, also set gimple_call_set_cannot_inline.
8986 * ipa-inline.c: Update toplevel comment.
8988 (cgraph_clone_inlined_nodes): Fix linebreaks.
8989 (cgraph_check_inline_limits): Restructure to ...
8990 (caller_growth_limits): ... this one; be more tolerant
8991 on growth in nested inline chains; add explanatory comment;
8992 fix stack accounting thinko introduced by previous patch.
8993 (cgraph_default_inline_p): Remove.
8994 (report_inline_failed_reason): New function.
8995 (can_inline_edge_p): New function.
8996 (can_early_inline_edge_p): New function.
8997 (leaf_node_p): Move upwards in file.
8998 (want_early_inline_function_p): New function.
8999 (want_inline_small_function_p): New function.
9000 (want_inline_self_recursive_call_p): New function.
9001 (cgraph_edge_badness): Rename to ...
9002 (edge_badness) ... this one; fix linebreaks.
9003 (update_edge_key): Update call of edge_baddness; add
9004 detailed dump about queue updates.
9005 (update_caller_keys): Use can_inline_edge_p and
9006 want_inline_small_function_p.
9007 (cgraph_decide_recursive_inlining): Rename to...
9008 (recursive_inlining): Use can_inline_edge_p and
9009 want_inline_self_recursive_call_p; simplify and remove no longer
9011 (cgraph_set_inline_failed): Remove.
9012 (add_new_edges_to_heap): Use can_inline_edge_p and
9013 want_inline_small_function_p.
9014 (cgraph_decide_inlining_of_small_functions): Rename to ...
9015 (inline_small_functions): ... this one; cleanup; use
9016 can/want predicates; cleanup debug ouput; work edges till fibheap
9017 is exhausted and do not stop once unit growth is reached; remove
9018 later loop processing remaining edges.
9019 (cgraph_flatten): Rename to ...
9020 (flatten_function): ... this one; use can_inline_edge_p
9021 and can_early_inline_edge_p predicates.
9022 (cgraph_decide_inlining): Rename to ...
9023 (ipa_inline): ... this one; remove unreachable nodes before
9024 inlining functions called once; simplify the pass.
9025 (cgraph_perform_always_inlining): Rename to ...
9026 (inline_always_inline_functions): ... this one; use
9027 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9028 (cgraph_decide_inlining_incrementally): Rename to ...
9029 (early_inline_small_functions): ... this one; simplify
9030 using new predicates; cleanup; make dumps prettier.
9031 (cgraph_early_inlining): Rename to ...
9032 (early_inliner): newer inline regular functions into always-inlines;
9033 fix updating of call stmt summaries.
9034 (pass_early_inline): Update for new names.
9035 (inline_transform): Fix formating.
9036 (gate_cgraph_decide_inlining): Rename to ...
9037 (pass_ipa_inline): ... this one.
9038 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9039 * ipa-inline-analysis.c (dump_inline_summary): Update.
9040 (compute_inline_parameters): Do not compute disregard_inline_limits;
9041 look for mismatching arguments.
9042 (estimate_growth): Fix handlig of non-trivial self recursion.
9043 (inline_read_summary): Do not read info->disregard_inline_limits.
9044 (inline_write_summary): Do not write info->disregard_inline_limits.
9045 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9046 and move all checks into can_inline_edge_p predicate; re-enable code
9047 comparing optimization levels.
9048 (expand_call_inline): Do not test inline_forbidden_into_p.
9049 * Makefile.in (ipa-inline.o): Update arguments.
9051 2011-04-17 Revital Eres <revital.eres@linaro.org>
9053 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9055 2011-04-17 Revital Eres <revital.eres@linaro.org>
9057 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9059 2011-04-17 Michael Matz <matz@suse.de>
9061 PR tree-optimization/48622
9063 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9064 in same order as they're written.
9066 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9068 * config/pa/predicates.md: Reorganize and simplify predicates.
9069 Eliminate duplicate code checks.
9070 (arith_operand): Rename to arith14_operand
9071 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9072 * config/pa/pa.md: Use renamed operands.
9073 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9074 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9075 arith11_operand, adddi3_operand, indexed_memory_operand,
9076 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9077 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9078 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9079 move_dest_operand, move_src_operand, prefetch_cc_operand,
9080 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9081 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9082 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9083 div_operand, int5_operand, movb_comparison_operator,
9084 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9085 arith_double_operand, ireg_operand, lhs_lshift_operand,
9086 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9087 integer_store_memory_operand): Likewise.
9088 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9089 (integer_store_memory_operand, read_only_operand,
9090 function_label_operand, borx_reg_operand,
9091 non_hard_reg_operand): Likewise.
9092 (eq_neq_comparison_operator): Delete unused operator.
9093 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9094 function_label_operand.
9095 (emit_move_sequence): Likewise.
9097 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9099 * config/i386/sse.md (sseunpackmode): New mode attribute.
9100 (ssepackmode): Ditto.
9101 (vec_pack_trunc_<mode>): Macroize expander from
9102 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9103 (vec_unpacks_lo_<mode>): Macroize expander from
9104 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9105 (vec_unpacks_hi_<mode>): Macroize expander from
9106 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9107 (vec_unpacku_lo_<mode>): Macroize expander from
9108 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9109 (vec_unpacku_hi_<mode>): Macroize expander from
9110 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9111 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9112 ix86_expand_sse4_unpack.
9113 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9115 2011-04-16 Jan Hubicka <jh@suse.cz>
9117 * cgraphbuild.c: Include ipa-inline.h.
9118 (reset_inline_failed): Use initialize_inline_failed.
9119 * cgraph.c: Include ipa-inline.h.
9120 (cgraph_create_node_1): Do not initialize estimated_growth.
9121 (initialize_inline_failed): More to ipa-inline-analysis.c
9122 (dump_cgraph_node): Do not dump inline flags.
9123 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9124 and disregard_inline_limits flags.
9125 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9126 time, size, estimated_growth.
9127 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9129 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9130 DECL_DISREGARD_INLINE_LIMITS.
9131 (cgraph_analyze_function): Do not initialize
9132 node->local.disregard_inline_limits.
9133 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9134 inlinable, versionable and disregard_inline_limits.
9135 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9136 cgraph_check_inline_limits, cgraph_default_inline_p,
9137 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9138 add_new_edges_to_heap): Update.
9139 (cgraph_decide_inlining_of_small_function): Update; set
9140 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9141 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9142 cgraph_decide_inlining_incrementally): Update.
9143 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9144 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9145 time, size and estimated_growth parameters.
9146 (estimate_edge_growth): Update.
9147 (initialize_inline_failed): Declare.
9148 * ipa-split.c: Include ipa-inline.h
9149 (execute_split_functions): Update.
9150 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9151 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9152 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9153 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9154 estimated_growth to INT_MIN.
9155 (inline_node_duplication_hook): Likewise.
9156 (dump_inline_summary): Dump new fields.
9157 (compute_inline_parameters): Update.
9158 (estimate_edge_time, estimate_time_after_inlining,
9159 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9160 inline_write_summary):
9161 (initialize_inline_failed): Move here from cgraph.c.
9162 * tree-sra.c: Include ipa-inline.h.
9163 (ipa_sra_preliminary_function_checks): Update.
9164 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9167 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9169 * config/i386/sse.md (V16): New mode iterator.
9171 (AVXMODEQI, AVXMODEDI): Remove.
9172 (sse2, sse3): New mode attribute.
9173 (mov<mode>): Use V16 mode iterator.
9174 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9175 (push<mode>1): Use V16 mode iterator.
9176 (movmisalign<mode>): Ditto.
9177 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9178 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9179 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9180 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9181 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9182 avx_movdqu<avxmodesuffix>.
9183 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9184 *avx_movdqu<avxmodesuffix>.
9185 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9186 avx_lddqu<avxmodesuffix>.
9187 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9188 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9189 avx_movnt<AVXMODEDI:mode>.
9190 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9191 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9193 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9196 * haifa-sched.c (prune_ready_list, schedule_block): Use
9197 sched_pressure_p rather than flag_sched_pressure.
9199 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9201 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9202 cgraph_get_node instead of cgraph_get_create_node.
9204 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9206 * cfgexpand.c (expand_debug_expr): Use
9207 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9209 2011-04-15 Michael Matz <matz@suse.de>
9211 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9212 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9213 * function.c (gimplify_parameters): Ditto.
9214 * gimplify.c (gimplify_vla_decl): Ditto.
9216 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9217 (gimple_call_set_alloca_for_var): New inline function.
9218 (gimple_call_alloca_for_var_p): Ditto.
9219 * gimple.c (gimple_build_call_from_tree): Remember
9220 CALL_ALLOCA_FOR_VAR_P state.
9221 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9223 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9224 calls if they were for VLA objects.
9226 2011-04-15 Martin Jambor <mjambor@suse.cz>
9228 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9231 2011-04-15 Martin Jambor <mjambor@suse.cz>
9234 * tree-emutls.c (lower_emutls_function_body): Call
9235 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9238 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9240 * c-decl.c (detect_field_duplicates): Call
9241 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9243 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9245 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9246 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9247 * ipa-pure-const.c (check_stmt): Call it.
9248 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9250 2011-04-15 Richard Guenther <rguenther@suse.de>
9252 PR tree-optimization/48290
9253 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9254 Properly decide inhibiting propagation based on the valueized
9255 operand. Do loop-closed SSA form preserving here ...
9256 (init_copy_prop): ... not here.
9258 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9261 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9262 (*ieee_smax<mode>3): Likewise.
9264 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9266 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9267 Replace match_operand with match_dup for the third operand in
9270 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9272 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9273 to track processing of conditionals. Update all callers.
9274 (try_combine, simplify_if_then_else): Update.
9276 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9278 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9281 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9283 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9284 instead of match_operand for operand 3.
9286 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9288 * recog.h (insn_operand_data): Add an "allows_mem" field.
9289 * genoutput.c (output_operand_data): Initialize it.
9290 * optabs.c (maybe_legitimize_operand_same_code): New function.
9291 (maybe_legitimize_operand): Use it when matching the original
9294 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9296 * gimplify.c: Fix issues in comments throughout.
9297 (voidify_wrapper_expr): Fix long line.
9298 (build_stack_save_restore): Likewise.
9299 (gimplify_loop_expr): Likewise.
9300 (gimplify_compound_lval): Likewise.
9301 (gimplify_init_ctor_eval): Likewise.
9302 (gimplify_modify_expr_rhs): Likewise.
9303 (omp_notice_threadprivate_variable): Likewise.
9305 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9307 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9308 original one if this is not a builtin function.
9310 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9313 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9314 offset it as needed based on top 2 bits in operands[3], change
9315 MEM mode to SFmode and mask those 2 bits away from operands[3].
9317 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9319 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9320 change from objc_declare_protocols() to objc_declare_protocol().
9322 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9324 * config/i386/sse.md (sse4_1): New mode attribute.
9325 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9326 avx_blend<ssemodesuffix><avxmodesuffix> and
9327 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9328 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9329 avx_blendv<ssemodesuffix><avxmodesuffix> and
9330 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9331 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9332 avx_dp<ssemodesuffix><avxmodesuffix> and
9333 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9334 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9335 (sse4_1_packusdw): Merge with *avx_packusdw.
9336 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9337 (sse4_1_pblendw): Merge with *avx_pblendw.
9338 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9339 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9340 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9342 (sse4_1_round<ssescalarmodesuffix>): Merge with
9343 *avx_round<ssescalarmodesuffix>.
9344 (aesenc): Merge with *avx_aesenc.
9345 (aesenclast): Merge with *avx_aesenclast.
9346 (aesdec): Merge with *avx_aesdec.
9347 (aesdeclast): Merge with *avx_aesdeclast.
9348 (pclmulqdq): Merge with *pclmulqdq.
9349 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9351 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9353 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9356 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9357 (align_local_variable): This. Update DECL_ALIGN.
9358 (add_stack_var): Updated.
9359 (expand_one_stack_var): Likewise.
9361 2011-04-14 Richard Guenther <rguenther@suse.de>
9363 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9365 (dse_initialize_block_local_data, dse_leave_block,
9366 record_voperand_set, get_stmt_uid): Likewise.
9367 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9368 (dse_optimize_stmt): Remove voperand set handling code.
9369 Simplify and improve to handle any kind of killing stmt.
9370 (dse_record_phi): Remove.
9371 (dse_enter_block): Simplify.
9372 (tree_ssa_dse): Likewise.
9373 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9375 2011-04-14 Jan Hubicka <jh@suse.cz>
9377 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9378 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9379 (cgraph_local_info): Remove inline_summary.
9380 * ipa-cp.c: Include ipa-inline.h.
9381 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9382 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9384 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9385 (input_overwrite_node): Do not set inline summary.
9386 (input_node): Do not stream inline summary.
9387 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9388 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9389 growth; we do not have inline parameters computed for that anyway.
9390 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9391 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9392 (inline_summary_t): New type and VECtor.
9393 (debug_inline_summary, dump_inline_summaries): Declare.
9394 (inline_summary): Use VOCtor.
9395 (estimate_edge_growth): Kill hack computing call stmt size directly.
9396 * lto-section-in.c (lto_section_name): Add inline section.
9397 * ipa-inline-analysis.c: Include lto-streamer.h
9398 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9399 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9400 (inline_summary_vec): Define.
9401 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9402 dump_inline_summaries): New functions.
9403 (estimate_function_body_sizes): Properly compute size/time of outgoing
9405 (compute_inline_parameters): Alloc inline_summary; do not compute
9406 size/time of incomming calls.
9407 (estimate_edge_time): Avoid missing time summary hack.
9408 (inline_read_summary): Read inline summary info.
9409 (inline_write_summary): Write inline summary info.
9410 (inline_free_summary): Free all hooks and inline summary vector.
9411 * lto-streamer.h: Add LTO_section_inline_summary section.
9412 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9413 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9415 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9417 * tree-vectorizer.h (vect_strided_store_supported): Add a
9418 HOST_WIDE_INT argument.
9419 (vect_strided_load_supported): Likewise.
9420 (vect_permute_store_chain): Return void.
9421 (vect_transform_strided_load): Likewise.
9422 (vect_permute_load_chain): Delete.
9423 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9424 count argument. Check that the count is a power of two.
9425 (vect_strided_load_supported): Likewise.
9426 (vect_permute_store_chain): Return void. Update after above changes.
9427 Assert that the access is supported.
9428 (vect_permute_load_chain): Likewise.
9429 (vect_transform_strided_load): Return void.
9430 * tree-vect-stmts.c (vectorizable_store): Update calls after
9431 above interface changes.
9432 (vectorizable_load): Likewise.
9433 (vect_analyze_stmt): Don't check for strided powers of two here.
9435 2011-04-14 Richard Guenther <rguenther@suse.de>
9437 PR tree-optimization/48590
9438 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9439 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9440 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9441 BUILT_IN_STACK_SAVE.
9442 * tree-ssa-dce.c (propagate_necessity): Handle
9443 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9445 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9447 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9450 2011-04-14 Richard Guenther <rguenther@suse.de>
9452 * tree.h (get_object_alignment_1): Declare.
9453 * builtins.c (get_object_alignment_1): Split out worker from ...
9454 (get_object_alignment): ... here.
9455 * fold-const.c (get_pointer_modulus_and_residue): Use
9456 get_object_alignment_1.
9458 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9460 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9462 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9463 parameter. Generalise code to handle arrays as well as vectors.
9464 (vect_setup_realignment): Update accordingly.
9465 * tree-vect-stmts.c (vectorizable_store): Likewise.
9466 (vectorizable_load): Likewise.
9468 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9470 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9471 within the per-copy loop.
9473 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9475 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9478 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9480 * doc/options.texi (Negative): Explicitly mention that the
9481 Negative chain must be circular.
9483 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9485 * function.h (block_chainon): Declare.
9486 * function.c (block_chainon): Define.
9488 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9489 Eric Weddington <eric.weddington@atmel.com>
9490 Georg-Johann Lay <avr@gjlay.de>
9492 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9494 (avr_init_builtins, avr_expand_builtin,
9495 avr_expand_delay_cycles, avr_expand_unop_builtin,
9496 avr_expand_binop_builtin ): New functions.
9497 (avr_builtin_id): New enum
9498 (struct avr_builtin_description): New struct
9499 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9500 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9502 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9503 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9504 UNSPECV_DELAY_CYCLES): new enumeration values
9505 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9506 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9507 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9508 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9509 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9510 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9511 "fmulsu"): New insns
9513 * config/avr/avr-c.c: fix line endings
9514 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9515 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9516 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9517 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9518 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9520 * doc/extend.texi (AVR Built-in Functions): New node
9521 (Target Builtins): Add documentation of AVR
9524 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
9527 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9528 alone. Error if non-const data has attribute progmem.
9530 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9532 * tree.h (struct tree_constructor): Include tree_typed instead of
9534 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9535 TS_TYPED instead of TS_COMMON.
9537 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9539 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9540 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9541 (sse2_psadbw): Merge with *avx_psadbw.
9542 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9543 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9544 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9545 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9546 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9547 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9548 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9549 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9550 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9551 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9552 (ssse3_palignrti): Merge with *avx_palignrti.
9554 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9556 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9557 * tree-ssanames.c (fini_ssanames): VEC_free it.
9558 (make_ssa_name_fn): Update for VECness of free_ssanames.
9559 (release_ssa_name, release_dead_ssa_names): Likewise.
9560 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9562 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9563 TS_TYPED instead of TS_COMMON.
9565 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9567 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9568 statistics_counter_event.
9569 * tree-ssa-copyrename.c (stats): Define.
9570 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9571 statistics_counter_event.
9572 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9573 (bswap_stats, widen_mul_stats): Define.
9574 (insert_reciprocals): Increment rdivs_inserted.
9575 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9576 rfuncs_inserted. Add calls to statistics_counter_event.
9577 (execute_cse_sincos_1): Increment inserted.
9578 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9579 statistics_counter_event.
9580 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9581 of bswap_stats. Add calls to statistics_counter_event.
9582 (convert_mult_to_widen): Increment widen_mults_inserted.
9583 (convert_plusminus_to_widen): Increment maccs_inserted.
9584 (convert_mult_to_fma): Increment fmas_inserted.
9585 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9586 calls to statistics_counter_event.
9588 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9590 PR rtl-optimization/48455
9591 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9592 `temp_costs->mem_cost'.
9594 2011-04-13 Jan Hubicka <jh@suse.cz>
9596 * ipa-inline.h: New file.
9597 * ipa-inline-analysis.c: New file. Broken out of ...
9598 * ipa-inline.c: ... this file; update toplevel comment;
9599 include ipa-inline.h
9600 (inline_summary): Move to ipa-inline.h
9601 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9602 ipa-inline-analysis.c.
9603 (cgraph_estimate_time_after_inlining): Rename to
9604 estiamte_time_after_inlining; move to ipa-inline-analysis.c
9605 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9606 to estimate_edge_growth.
9607 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9608 rename to estimate_size_after_inlining.
9609 (cgraph_mark_inline_edge): Update for new naming convention.
9610 (cgraph_check_inline_limits): Likewise.
9611 (cgraph_edge_badness): Likewise.
9612 (cgraph_decide_recursive_inlining): Likewise.
9613 (cgraph_decide_inlining_of_small_functions): Likewise.
9614 (cgraph_decide_inlining_incrementally): Likewise.
9615 (cgraph_estimate_growth): Rename to estimate_growth; move to
9616 ipa-inline-analysis.c.
9617 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9618 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9619 (compute_inline_parameters): Likewise.
9620 (compute_inline_parameters_for_current): Likewise.
9621 (pass_inline_parameters): Likewise.
9622 (inline_indirect_intraprocedural_analysis): Likewise.
9623 (analyze_function): Rename to inline_analyze_function; likewise.
9624 (add_new_function): Move to ipa-inline-analysis.c.
9625 (inline_generate_summary): Likewise.
9626 (inline_read_summary): Likewise.
9627 (inline_write_summary): Likewise.
9628 * Makefile.in (ipa-inline-analysis.c): New file.
9630 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9632 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9633 * configure: Regenerate.
9635 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9637 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9638 instead of tree_common.
9639 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9641 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9642 TS_TYPED rather than TS_COMMON.
9643 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9645 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
9648 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9649 r20 around calls of __tablejump_elpm__
9651 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9654 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9656 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9658 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9660 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9661 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9662 (cfi_vec): New typedef.
9663 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9664 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9665 (cie_cfi_vec): New static variable.
9666 (cie_cfi_head): Delete.
9667 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9668 declaration changed. Use vector rather than list operations.
9669 (new_cfi): Don't initialize the dw_cfi_next field.
9670 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9671 rather than list operations.
9672 (lookup_cfa): Use vector rather than list operations.
9673 (output_cfis): New argument upto. Accept a cfi_vec rather than
9674 a dw_cfi_ref list head as argument. All callers changed.
9675 Iterate over the vector using upto as a maximum index.
9676 (output_all_cfis): New static function.
9677 (output_fde): Use vector rather than list operations. Use the
9678 new upto argument for output_cfis rather than manipulating a
9680 (dwarf2out_begin_prologue): Change initializations to match
9682 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9683 from the vector length rather than searching for the end of a list.
9684 Use output_all_cfis.
9685 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9687 2011-04-13 Nick Clifton <nickc@redhat.com>
9689 * config/rx/rx.md (movmemsi): Do not use this pattern when
9690 volatile pointers are involved.
9692 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9694 * config/i386/sse.md (pinsrbits): Remove.
9695 (sse2_packsswb): Merge with *avx_packsswb.
9696 (sse2_packssdw): Merge with *avx_packssdw.
9697 (sse2_packuswb): Merge with *avx_packuswb.
9698 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9699 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9700 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9701 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9702 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9703 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9704 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9705 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9706 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9707 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9708 (sse2_loadld): Merge with *avx_loadld.
9709 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9710 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9711 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9712 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9713 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9715 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9717 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9719 * print-tree.c (print_node): Likewise.
9720 * tree-inline.c (copy_tree_r): Likewise.
9721 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9722 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9723 instead of TS_COMMON.
9724 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9725 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9726 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9727 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9728 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9730 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9732 (TREE_CHAIN): Check for a TS_COMMON structure.
9733 (TREE_TYPE): Check for a TS_TYPED structure.
9735 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
9737 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9738 cgraph_get_create_node instead of cgraph_node.
9740 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9742 * c-parser.c (c_parser_initelt): Updated call to
9743 objc_build_message_expr.
9744 (c_parser_postfix_expression): Likewise.
9746 2011-04-12 Kai Tietz <ktietz@redhat.com>
9748 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9749 MASK_MS_BITFIELD_LAYOUT bit.
9751 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9753 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9754 assert it is always true.
9755 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9758 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9760 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9761 compiling Objective-C to be more efficient.
9763 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
9765 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9768 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9770 * recog.h, genoutput.c, optabs.c: Revert last patch.
9772 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9775 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9777 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9779 * recog.h (insn_operand_data): Add an "allows_mem" field.
9780 * genoutput.c (output_operand_data): Initialize it.
9781 * optabs.c (maybe_legitimize_operand_same_code): New function.
9782 (maybe_legitimize_operand): Use it when matching the original
9785 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9787 * genpreds.c (process_define_predicate): Move most processing
9788 to gensupport.c. Continue to validate the expression.
9789 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9790 (process_define_predicate): Move processing to gensupport.c.
9791 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9792 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9793 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9795 (valid_predicate_name_p): New function, split out from old
9796 genpreds.c:process_define_predicate.
9797 (process_define_predicate): New function, combining code from
9798 old genpreds.c and genrecog.c functions.
9799 (process_rtx): Call it for DEFINE_PREDICATE and
9800 DEFINE_SPECIAL_PREDICATE.
9802 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9804 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9805 size of a '%A' memory reference.
9806 (T_DREG, T_QREG): New neon_builtin_type_bits.
9807 (arm_init_neon_builtins): Assert that the load and store operands
9808 are neon_struct_operands.
9809 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9810 (NEON_ARG_MEMORY): New builtin_arg.
9811 (neon_dereference_pointer): New function.
9812 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9813 Handle NEON_ARG_MEMORY.
9814 (arm_expand_neon_builtin): Update after above interface changes.
9815 Use NEON_ARG_MEMORY for loads and stores.
9816 * config/arm/predicates.md (neon_struct_operand): New predicate.
9817 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9818 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9819 (V_four_elem): Tweak formatting.
9820 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9821 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9822 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9823 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9824 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9825 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9826 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9827 Use %A in the output template.
9828 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9829 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9830 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9831 the width of the memory access. Remove post-increment.
9832 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9834 2011-04-12 Nick Clifton <nickc@redhat.com>
9836 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9837 instruction for interrupt handlers if the target is the basic V850
9839 (expand_epilogue): Likewise.
9841 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9843 PR rtl-optimization/48549
9844 * combine.c (propagate_for_debug): Also stop after BB_END of
9845 this_basic_block. Process LAST and just stop processing after it.
9846 (combine_instructions): If last_combined_insn has been deleted,
9847 set last_combined_insn to its PREV_INSN.
9849 2011-04-12 Richard Guenther <rguenther@suse.de>
9851 PR tree-optimization/46076
9852 * gimple.h (struct gimple_statement_call): Add fntype field.
9853 (gimple_call_fntype): Adjust.
9854 (gimple_call_set_fntype): New function.
9855 * gimple.c (gimple_build_call_1): Set the call function type.
9856 * gimplify.c (gimplify_call_expr): Preserve the function
9857 type the frontend used for the call.
9858 (gimplify_modify_expr): Likewise.
9859 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9861 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9863 * tree-ssa.c (useless_type_conversion_p): Function pointer
9864 conversions are useless.
9866 2011-04-12 Martin Jambor <mjambor@suse.cz>
9868 * cgraph.h (cgraph_node): Remove function declaration.
9869 (cgraph_create_node): Declare.
9870 (cgraph_get_create_node): Likewise.
9871 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9872 Updated all callers.
9873 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9874 the decl does not already exist. Call cgraph_get_create_node instead
9876 (cgraph_get_create_node): New function.
9877 (cgraph_same_body_alias): Update comment.
9878 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9879 assert it does not return NULL.
9880 (cgraph_update_edges_for_call_stmt): Likewise.
9881 (cgraph_clone_edge): Likewise.
9882 (cgraph_create_virtual_clone): Likewise.
9883 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9884 instead of cgraph_node.
9885 (cgraph_add_new_function): Call cgraph_create_node or
9886 cgraph_get_create_node instead of cgraph_node.
9887 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9888 instead of cgraph_node.
9889 (record_eh_tables): Likewise.
9890 (mark_address): Likewise.
9891 (mark_load): Likewise.
9892 (build_cgraph_edges): Call cgraph_get_create_node instead
9894 (rebuild_cgraph_edges): Likewise.
9895 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9896 instead of cgraph_node.
9897 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9899 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9900 cgraph_create_node instead of cgraph_node.
9901 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9903 * lto-cgraph.c (input_node): Likewise.
9904 * lto-streamer-in.c (input_function): Likewise.
9905 * varasm.c (mark_decl_referenced): Likewise.
9906 (assemble_alias): Likewise.
9908 2011-04-12 Martin Jambor <mjambor@suse.cz>
9910 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9911 instead of cgraph_node and assert it does not return NULL.
9912 * lto-streamer-in.c (lto_read_body): Likewise.
9913 * omp-low.c (new_omp_context): Likewise.
9914 (create_task_copyfn): Likewise.
9915 * tree-emutls.c (lower_emutls_function_body): Likewise.
9916 * matrix-reorg.c (transform_allocation_sites): Likewise.
9918 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9921 * c-typeck.c (build_asm_expr): Error out on attempts to use
9922 void type outputs or inputs for constraints that allow reg or
9925 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9926 Richard Earnshaw <rearnsha@arm.com>
9929 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9930 to use sign-magnitude offsets. Reject unsupported unaligned
9931 cases. Add detailed description in comments.
9932 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9933 condition from TARGET_32BIT to TARGET_ARM.
9935 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9937 * tree.h (struct typed_tree): New.
9938 (struct tree_common): Include it instead of tree_base.
9939 (TREE_TYPE): Update for new location of type field.
9940 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9941 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9942 (union tree_node): Add typed field.
9943 * treestruct.def (TS_TYPED): New.
9944 * lto-streamer.c (check_handled_ts_structures): Handle it.
9945 * tree.c (MARK_TS_TYPED): New macro.
9946 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9948 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9950 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9951 (force_nonfallthru): Do not alter the loop nest if no basic block
9954 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9956 * config/i386/sse.md (VI): New mode iterator.
9958 (AVX256MODEI): Ditto.
9959 (AVXMODEF4P): Ditto.
9960 (avxvecpsmode): Ditto.
9961 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9962 (sse2_andnot<mode>3): New expander.
9963 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9964 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9965 (<any_logic:code><mode>3): Use VI mode iterator.
9966 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9967 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9968 (*andnottf3): Handle AVX three-operand constraints.
9969 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9971 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9972 Robert Millan <rmh@gnu.org>
9974 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9975 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9976 GNU_USER_DYNAMIC_LINKER64): Define.
9977 (REG_NAME): Don't undefine.
9978 (MD_UNWIND_SUPPORT): Undefine.
9979 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9980 (REG_NAME): Don't undefine.
9981 (MD_UNWIND_SUPPORT): Undefine.
9982 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9984 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9986 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9987 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9989 2011-04-11 Xinliang David Li <davidxl@google.com>
9991 * value-profile.c (check_ic_target): New function.
9992 (gimple_ic_transform): Sanity check indirect call target.
9993 * gimple-low.c (gimple_check_call_args): Interface change.
9994 (gimple_check_call_matching_types): New function.
9995 * tree-inline.c (tree_can_inline_p): Call new function.
9997 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9999 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10000 tree-pretty-print.h & realmpfr.h.
10002 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10004 PR middle-end/48464
10005 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10006 (setup_allocno_and_important_classes): Ditto.
10008 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10010 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10011 GNU_USER_DYNAMIC_LINKER.
10012 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10013 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10014 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10015 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10016 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10017 GNU_USER_TARGET_OS_CPP_BUILTINS.
10018 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10019 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10020 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10021 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10022 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10023 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10024 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10025 GNU_USER_TARGET_OS_CPP_BUILTINS.
10026 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10027 GNU_USER_DYNAMIC_LINKER.
10028 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10029 GNU_USER_TARGET_OS_CPP_BUILTINS.
10030 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10031 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10032 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10033 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10034 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10035 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10036 GNU_USER_DYNAMIC_LINKER64): Remove.
10037 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10038 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10039 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10040 GNU_USER_DYNAMIC_LINKER.
10041 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10042 GNU_USER_TARGET_OS_CPP_BUILTINS.
10043 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10044 GNU_USER_TARGET_OS_CPP_BUILTINS.
10045 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10046 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10047 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10048 GNU_USER_TARGET_OS_CPP_BUILTINS.
10049 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10050 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10051 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10052 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10053 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10054 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10055 GNU_USER_DYNAMIC_LINKER.
10056 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10057 GNU_USER_TARGET_OS_CPP_BUILTINS.
10058 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10059 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10060 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10061 GNU_USER_DYNAMIC_LINKER.
10062 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10063 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10064 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10065 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10066 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10067 GNU_USER_DYNAMIC_LINKER.
10068 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10069 GNU_USER_DYNAMIC_LINKERN32.
10070 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10071 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10072 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10073 GNU_USER_DYNAMIC_LINKER32.
10074 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10075 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10076 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10077 GNU_USER_DYNAMIC_LINKER.
10078 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10079 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10080 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10081 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10082 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10083 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10084 GNU_USER_DYNAMIC_LINKER32.
10085 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10086 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10087 GNU_USER_DYNAMIC_LINKER.
10088 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10089 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10090 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10091 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10092 GNU_USER_DYNAMIC_LINKER64.
10093 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10094 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10095 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10096 GNU_USER_DYNAMIC_LINKER.
10097 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10098 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10099 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10100 GNU_USER_DYNAMIC_LINKER.
10101 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10102 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10103 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10104 GNU_USER_DYNAMIC_LINKER32.
10105 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10106 GNU_USER_DYNAMIC_LINKER64.
10107 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10108 GNU_USER_DYNAMIC_LINKER64.
10109 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10110 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10111 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10112 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10113 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10115 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10117 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10118 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10119 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10120 GNU_USER_DYNAMIC_LINKER.
10121 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10122 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10123 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10124 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10125 GNU_USER_DYNAMIC_LINKER64.
10126 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10127 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10128 GNU_USER_LINK_EMULATION.
10129 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10130 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10131 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10132 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10133 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10134 CPP_SPEC, CC1_SPEC): Remove.
10135 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10136 (GNU_USER_DYNAMIC_LINKER): Define.
10137 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10138 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10139 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10140 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10141 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10142 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10143 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10144 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10145 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10146 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10147 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10148 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10149 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10150 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10151 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10152 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10153 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10154 GNU_USER_DYNAMIC_LINKER.
10155 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10156 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10157 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10158 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10159 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10160 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10161 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10162 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10163 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10164 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10166 2011-04-11 Kai Tietz <ktietz@redhat.com>
10170 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10171 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10173 (ix86_is_msabi_thiscall): Removed.
10174 (ix86_is_type_thiscall): Likewise.
10175 (ix86_get_callcvt): New function.
10176 (ix86_comp_type_attributes): Simplify check.
10177 (ix86_function_regparm): Use ix86_get_callcvt for calling
10178 convention attribute checks.
10179 (ix86_return_pops_args): Likewise.
10180 (ix86_static_chain): Likewise.
10181 (x86_this_parameter): Likewise.
10182 (x86_output_mi_thunk): Likewise.
10183 (ix86_function_type_abi): Optimize check for types without attributes.
10184 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10185 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10186 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10188 (IX86_BASE_CALLCVT): Helper macro.
10189 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10190 Use ix86_get_callcvt for calling convention attribute checks and avoid
10191 symbol-decoration for stdcall in TARGET_RTD case.
10192 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10194 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10197 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10199 * config/i386/sse.md (VI_128): New mode iterator.
10200 (VI12_128): Rename from SSEMODE12.
10201 (VI14_128): Rename from SSEMODE14.
10202 (VI124_128): New mode iterator.
10203 (VI24_128): Rename from SSEMODE248.
10204 (VI248_128): Rename from SSEMODE248.
10205 (SSEMODE124C8): Remove.
10206 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10207 (*sse2_<plusminus_insn><mode>3): Merge with
10208 *avx_<plusminus_insn><mode>3.
10209 (*mulv8hi3): Merge with *avx_mulv8hi3.
10210 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10211 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10212 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10213 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10214 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10215 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10216 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10217 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10218 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10219 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10220 (*<smaxmin:code>v8hi3): Ditto.
10221 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10222 (*<smaxmin:code>v16qi3): Ditto.
10223 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10224 (*sse2_eq<mode>3): Ditto.
10225 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10226 (*sse2_gt<mode>3): Ditto.
10227 (vcondv2di): Split out of vcond<mode>.
10228 (vconduv2di): Split out of vcondu<mode>.
10230 2011-04-11 Richard Guenther <rguenther@suse.de>
10232 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10233 before calling tree_low_cst.
10235 2011-04-11 Richard Guenther <rguenther@suse.de>
10237 * stor-layout.c (layout_type): Compute all array index size operations
10238 in the original type.
10239 (initialize_sizetypes): Add comment.
10240 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10242 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10244 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10246 2011-04-11 Martin Jambor <mjambor@suse.cz>
10248 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10249 of cgraph_node, handle NULL return value.
10250 (cgraph_global_info): Likewise.
10251 (cgraph_rtl_info): Likewise.
10252 * tree-inline.c (estimate_num_insns): Likewise.
10253 * gimplify.c (unshare_body): Likewise.
10254 (unvisit_body): Likewise.
10255 (gimplify_body): Likewise.
10256 * predict.c (optimize_function_for_size_p): Likewise.
10257 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10258 (call_may_clobber_ref_p_1): Likewise.
10259 * varasm.c (function_section_1): Likewise.
10260 (assemble_start_function): Likewise.
10262 2011-04-11 Martin Jambor <mjambor@suse.cz>
10264 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10266 * final.c (rest_of_clean_state): Likewise.
10267 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10268 * passes.c (pass_init_dump_file): Likewise.
10269 (execute_all_ipa_transforms): Likewise.
10270 (function_called_by_processed_nodes_p): Likewise.
10271 * predict.c (maybe_hot_frequency_p): Likewise.
10272 (probably_never_executed_bb_p): Likewise.
10273 (compute_function_frequency): Likewise.
10274 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10275 (unnest_nesting_tree_1): Likewise.
10276 (lower_nested_functions): Likewise.
10277 * tree-optimize.c (execute_fixup_cfg): Likewise.
10278 (tree_rest_of_compilation): Likewise.
10279 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10280 * tree-sra.c (ipa_early_sra): Likewise.
10281 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10282 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10283 * ipa.c (record_cdtor_fn): Likewise.
10284 * ipa-inline.c (cgraph_early_inlining): Likewise.
10285 (compute_inline_parameters_for_current): Likewise.
10286 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10287 * ipa-pure-const.c (local_pure_const): Likewise.
10288 * ipa-split.c (split_function): Likewise.
10289 (execute_split_functions): Likewise.
10290 * cgraphbuild.c (build_cgraph_edges): Likewise.
10291 (rebuild_cgraph_edges): Likewise.
10292 (cgraph_rebuild_references): Likewise.
10293 (remove_cgraph_callee_edges): Likewise.
10294 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10295 (verify_cgraph_node): Likewise.
10296 (cgraph_analyze_functions): Likewise.
10297 (cgraph_preserve_function_body_p): Likewise.
10298 (save_inline_function_body): Likewise.
10299 (save_inline_function_body): Likewise.
10300 * tree-inline.c (copy_bb): Likewise.
10301 (optimize_inline_calls): Likewise.
10303 2011-04-11 Martin Jambor <mjambor@suse.cz>
10305 PR tree-optimization/48195
10306 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10307 ipa_check_create_edge_args.
10308 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10309 ipa_check_create_edge_args.
10310 * ipa-inline.c (inline_generate_summary): Do not call
10311 ipa_check_create_node_params and ipa_check_create_edge_args.
10312 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10313 ipa_check_create_edge_args.
10315 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10317 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10319 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10320 * function.c (record_hard_reg_sets): Likewise.
10321 * ira.c (compute_regs_asm_clobbered): Likewise.
10322 * sched-deps.c (sched_analyze_1): Likewise.
10323 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10325 2011-04-09 Xinliang David Li <davidxl@google.com>
10327 PR tree-optimization/PR48484
10328 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10329 has_valid_pred lazily
10331 2011-04-09 Duncan Sands <baldrick@free.fr>
10333 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10335 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10337 * combine.c (combine_validate_cost): Adjust comments. Set registered
10338 cost of I0 to zero at the end, if any.
10340 2011-04-08 Xinliang David Li <davidxl@google.com>
10342 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10343 to insane profile data.
10345 2011-04-08 Xinliang David Li <davidxl@google.com>
10347 * ipa-cp.c (ipcp_update_profiling): Correct
10348 negative scale factor due to insane profile data.
10350 2011-04-08 Xinliang David Li <davidxl@google.com>
10352 * final.c (dump_basic_block_info): New function.
10353 (final): Dump basic block.
10354 (final_scan_insn): Remove old dump.
10356 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10359 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10362 2011-04-08 Michael Matz <matz@suse.de>
10364 PR middle-end/48389
10365 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10367 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10368 * rtl.h (rebuild_jump_labels_chain): Declare.
10369 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10370 insns inserted on edges.
10372 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10374 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10375 * config/arm/arm-arches.def: New.
10376 * config/arm/arm-opts.h: New.
10377 * config/arm/genopt.sh: New.
10378 * config/arm/arm-tables.opt: New (generated).
10379 * config/arm/arm.c (arm_handle_option, arm_target_help,
10380 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10381 (all_architectures): Get most table contents from arm-arches.def.
10382 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10383 arm_selected_tune here.
10384 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10385 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10386 (march=, mcpu=, mtune=): Use Enum and Var.
10387 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10388 (arm.o): Update dependencies.
10390 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10392 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10394 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10395 (write_typed_alloc_defns): Likewise.
10396 (main): Calls write_typed_alloc_defns with output_header.
10398 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10400 PR inline-asm/48435
10401 * ira-color.c (setup_profitable_hard_regs): Add comments.
10402 Don't take prohibited hard regs into account.
10403 (setup_conflict_profitable_regs): Rename to
10404 get_conflict_profitable_regs.
10405 (check_hard_reg_p): Check prohibited hard regs.
10407 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10409 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10410 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10411 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10413 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10416 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10417 move from floating point to shift amount register.
10418 (emit_move_sequence): Remove secondary reload support for floating
10419 point to shift amount amount register copies.
10420 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10421 amount register copies.
10422 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10423 register, return false if mode isn't a scalar integer mode.
10424 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10426 2011-04-08 Richard Guenther <rguenther@suse.de>
10428 * gimple.c (gimple_call_flags): Remove kludge.
10430 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10432 * sel-sched.c (sel_region_init): Move call to
10433 sel_setup_region_sched_flags after setup_current_loop_nest.
10435 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10437 PR rtl-optimization/48272
10438 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10439 init_insn_reg_pressure_info. Adjust a caller.
10440 * sched-int.h (init_insn_reg_pressure_info): Declare.
10441 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10442 when sched-pressure is enabled.
10444 2011-04-08 Richard Guenther <rguenther@suse.de>
10446 * gimple.c (gimple_set_modified): Do not queue calls to
10447 MODIFIED_NORETURN_CALLS here ...
10448 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10450 2011-04-08 Richard Guenther <rguenther@suse.de>
10453 * toplev.c (lang_dependent_init): Do not open asm_out_file
10454 in WPA mode, nor perform debug machinery initialization.
10455 (finalize): Do not unlink asm_out_file in WPA mode.
10457 2011-04-08 Richard Guenther <rguenther@suse.de>
10459 * gimple.h (gimple_call_fntype): New function.
10460 (gimple_call_return_type): Use it.
10461 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10462 * gimple-low.c (gimple_check_call_args): Likewise.
10463 * gimple.c (gimple_call_flags): Likewise.
10464 (gimple_call_arg_flags): Likewise.
10465 (gimple_call_return_flags): Likewise.
10466 * tree-cfg.c (verify_gimple_call): Likewise.
10467 (do_warn_unused_result): Likewise.
10468 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10469 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10471 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10473 PR rtl-optimization/48235
10474 * sel-sched.c (code_motion_process_successors): Recompute the last
10475 insn in basic block if control flow changed.
10476 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10477 Update condition for ilist_remove.
10479 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10481 PR rtl-optimization/48302
10482 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10483 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10484 it to record added preheader blocks.
10485 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10486 on to sel_add_loop_preheaders.
10487 (sel_region_init): Move call to setup_current_loop_nest after
10490 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10493 * cfgloop.h (loop_has_exit_edges): New helper.
10494 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10496 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10497 that have no exit edges.
10499 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10501 PR rtl-optimization/48442
10502 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10503 all callers. Adjust assert.
10505 2011-04-08 Jakub Jelinek <jakub@redhat.com>
10507 PR tree-optimization/48377
10508 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10509 is_packed to true even for types with smaller TYPE_ALIGN than
10512 2011-04-08 Richard Guenther <rguenther@suse.de>
10515 * doc/tm.texi: Re-generate.
10517 2011-04-08 Wei Guozhi <carrot@google.com>
10520 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10521 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10522 * config/arm/arm.md (*push_multi): Change the length computation to
10525 2011-04-08 Anatoly Sokolov <aesok@post.ru>
10527 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10528 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10529 * doc/tm.texi: Regenerate.
10530 * system.h (ASM_OUTPUT_BSS): Poison.
10531 * varasm.c (asm_output_bss): Remove function.
10532 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10534 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10535 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10536 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10537 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10539 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10541 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10543 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10545 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10547 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10550 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10552 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10553 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10554 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10556 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10557 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10558 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10559 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10560 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10561 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10562 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10563 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10564 options. Don't map other m68k options manually. Don't handle
10565 old-style options as canonical.
10566 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10567 * doc/install.texi (m68k-*-*): Document binutils version requirement.
10569 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10571 * basic-block.h (force_nonfallthru): Move to...
10572 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10573 (force_nonfallthru): ...here.
10574 * cfghooks.c (force_nonfallthru): New function.
10575 * cfgrtl.c (force_nonfallthru): Rename into...
10576 (rtl_force_nonfallthru): ...this.
10577 (commit_one_edge_insertion): Do not set AUX field.
10578 (commit_edge_insertions): Do not discover new basic blocks.
10579 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10580 (cfg_layout_rtl_cfg_hooks): Likewise.
10581 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10582 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10583 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10585 2011-04-07 Anatoly Sokolov <aesok@post.ru>
10587 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10590 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
10592 * config/i386/sse.md: Update copyright year.
10593 (avxcvtvecmode): Remove.
10594 (sse_movhlps): Merge with *avx_movhlps.
10595 (sse_movlhps): Merge with *avx_movlhps.
10596 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10597 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10598 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10599 (sse_loadhps): Merge with *avx_loadhps.
10600 (sse_storelps): Merge with *avx_storelps.
10601 (sse_loadlps): Merge with *avx_loadlps.
10602 (sse_movss): Merge with *avx_movss.
10603 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10604 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10605 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10606 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10607 (vec_set<mode>_0): Ditto.
10608 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10609 (sse4_1_insertps): Merge with *avx_insertps.
10610 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10611 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10612 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10613 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10614 (sse2_storehpd): Merge with *avx_storehpd.
10615 (sse2_loadhpd): Merge with *avx_loadhpd.
10616 (sse2_loadlpd): Merge with *avx_loadlpd.
10617 (sse2_movsd): Merge with *avx_movsd.
10618 (*vec_concatv2df): Merge with *vec_concatv2df.
10620 2011-04-07 Jakub Jelinek <jakub@redhat.com>
10623 * combine.c (combine_instructions): Add last_combined_insn,
10624 update it if insn is after it, pass it to all try_combine calls.
10625 (try_combine): Add last_combined_insn parameter, pass it instead of
10626 i3 to propagate_for_debug.
10628 2011-04-07 Nick Clifton <nickc@redhat.com>
10630 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10631 to handle MDR <-> data register transfers.
10632 (movhi_internal): Likewise.
10634 2011-04-07 Alan Modra <amodra@gmail.com>
10636 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10637 previous stack info.
10639 2011-04-07 Tom de Vries <tom@codesourcery.com>
10642 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10643 flow_find_cross_jump. Swap variables to implement backward replacement.
10644 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10646 2011-04-07 Tom de Vries <tom@codesourcery.com>
10649 * cfgcleanup.c (walk_to_nondebug_insn): New function.
10650 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10652 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10653 src1 or src2. Redirect edges to the last basic block. Update
10654 frequency and count on multiple basic blocks in case of fallthru.
10656 2011-04-07 Tom de Vries <tom@codesourcery.com>
10659 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10661 (old_insns_match_p): Change return type. Replace return false/true
10662 with return dir_none/dir_both. Use can_replace_by.
10663 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10664 direction from dir_p. Register replacement direction in dir, last_dir
10665 and afterlast_dir. Handle new return type of old_insns_match_p using
10666 merge_dir. Return replacement direction in dir_p.
10667 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10668 return type of old_insns_match_p.
10669 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10670 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10671 flow_find_cross_jump.
10672 * basic-block.h (enum replace_direction): New type.
10673 (flow_find_cross_jump): Add parameter to declaration.
10675 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10677 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10678 (AVXMODEDCVTPS2DQ): Ditto.
10679 (VEC_FLOAT_MODE): Ditto.
10680 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10681 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10682 (<any_logic:code><mode>3): Use VF mode iterator.
10683 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10684 Use VF mode iterator.
10685 (copysign<mode>3): Use VF mode iterator.
10686 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10687 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10688 (*<any_logic:code><MODEF:mode>3): Merge with
10689 *avx_<any_logic:code><MODEF:mode>3.
10690 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10691 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10692 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10693 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10694 (sse2_cvtdq2ps): Use %v modifier.
10695 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10696 (avx_cvtps2dq<avxmodesuffix>): Remove.
10697 (sse2_cvtps2dq): Use %v modifier.
10698 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10699 (avx_cvttps2dq<avxmodesuffix>): Remove.
10700 (sse2_cvttps2dq): Use %v modifier.
10701 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10702 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10703 (sse2_cvtsd2siq): Fix insn template.
10704 (sse2_cvtsd2siq_2): Ditto.
10705 (sse2_cvttsd2siq): Ditto.
10706 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10707 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10709 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10711 * gcov-io.c: Use GCC Runtime Library Exception.
10713 2011-04-06 Jakub Jelinek <jakub@redhat.com>
10716 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10717 as base_reg whatever register reg has been eliminated to, instead
10718 of hardcoding STACK_POINTER_REGNUM.
10720 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10722 * doc/tm.texi.in: Document C target hooks as separate from general
10724 * doc/tm.texi: Regenerate.
10725 * genhooks.c (struct hook_desc): Add docname field.
10726 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10728 (hook_array): Include c-target.def.
10729 (emit_documentation): Use docname field in output.
10730 (emit_init_macros): Take docname argument. Only emit definitions
10731 for hooks matching docname.
10732 (main): Expect additional arguments in all cases. Pass argument
10733 to emit_init_macros.
10734 * target.def: Move initial macro definitions and comments to
10735 target-hooks-macros.h.
10736 (gcc_targetcm): Move to c-family/c-target.def.
10737 * target.h (targetcm): Move declaration to c-family/c-target.h.
10738 * targhooks.c (default_handle_c_option): Move to
10740 * targhooks.h (default_handle_c_option): Move declaration to
10741 c-family/c-common.h.
10742 * target-hooks-macros.h: New file.
10743 * config.gcc (target_has_targetcm): Define and use to add to
10744 c_target_objs and cxx_target_objs.
10745 * config/default-c.c: New file.
10746 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10747 of target.h and target-def.h.
10748 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10749 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10750 darwin_check_cfstring_format_arg): Make static.
10751 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10752 TARGET_STRING_OBJECT_REF_TYPE_P,
10753 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10754 * config/darwin-protos.h (darwin_objc_construct_string,
10755 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10757 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10758 TARGET_STRING_OBJECT_REF_TYPE_P,
10759 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10760 * config/t-darwin (darwin-c.o): Update dependencies.
10761 * system.h (TARGET_HAS_TARGETCM): Poison.
10762 * Makefile.in (TARGET_H): Update.
10763 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10764 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10765 (default-c.o): New target.
10766 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10767 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10768 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10770 (build/genhooks.o): Update dependencies.
10772 2011-04-06 Richard Guenther <rguenther@suse.de>
10774 * ipa-inline.c (enum inlining_mode): Remove.
10775 (cgraph_flatten): Use some other token.
10776 (cgraph_edge_early_inlinable_p): New function, split out from ...
10777 (cgraph_perform_always_inlining): New function, split out from ...
10778 (cgraph_decide_inlining_incrementally): ... here.
10779 (cgraph_mark_inline_edge): Adjust.
10780 (cgraph_early_inlining): Re-structure.
10781 (pass_early_inline): Require SSA form.
10783 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
10784 Julian Brown <julian@codesourcery.com>
10785 Mark Shinwell <shinwell@codesourcery.com>
10787 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10788 LO_REGS only for Thumb-1.
10789 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10790 be used in short instructions when optimising for size on Thumb-2.
10792 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10794 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10795 associated with user returns to be preserved.
10797 2011-04-06 Tristan Gingold <gingold@adacore.com>
10799 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10800 symbol_queue_size, DBXOUT_DECR_NESTING,
10801 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10802 if XCOFF_DEBUGGING_INFO.
10804 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10806 * config/i386/i386.md (attribute isa): New.
10807 (attribute enabled): New.
10808 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10809 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10810 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10811 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10812 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10813 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10814 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10815 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10817 * config/i386/sse.md (VF): New mode iterator.
10821 (SSEMODEF4): Remove.
10822 (attribute sse): Handle V8SF and V4DF modes.
10823 (<absneg:code><mode>2): Use VF mode iterator.
10824 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10826 (<plusminus_insn><mode>3): Use VF mode iterator.
10827 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10828 Use VF mode iterator.
10829 (<sse>_vm<plusminus_insn><mode>3): Merge with
10830 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10831 (mul<mode>3): Use VF mode iterator.
10832 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10833 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10835 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10836 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10837 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10838 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10840 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10841 Use VF1 mode iterator.
10842 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10843 (sqrt<VF2:mode>2): New expander.
10844 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10845 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10846 and sqrtv2df2. Use VF mode iterator.
10847 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10849 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10850 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10851 Use VF1 mode iterator.
10852 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10853 (<smaxmin:code><mode>3): Use VF mode iterator.
10854 (*<smaxmin:code><mode>3_finite): Merge with
10855 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10856 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10857 (<sse>_vm<smaxmin:code><mode>2): Merge with
10858 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10859 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10861 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10863 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10864 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10865 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10866 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10867 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10869 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10870 Use VF_128 mode iterator.
10871 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10873 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10874 VF_128 mode iterator.
10875 (vcond<mode>): Use VF mode iterator.
10876 * config/i386/predicates.md (sse_comparison_operator): Merge with
10877 avx_comparison_float_operator. Do not declare as special_predicate.
10878 * config/i386/i386.c (struct builtin_description): Update for renamed
10880 (ix86_expand_args_builtin): Ditto.
10881 (ix86_expand_sse_compare_mask): Ditto.
10883 2011-04-06 Richard Guenther <rguenther@suse.de>
10885 * tree-inline.c (estimate_num_insns): For calls simply account
10886 for all passed arguments and a used return value.
10888 2011-04-06 Richard Guenther <rguenther@suse.de>
10890 PR tree-optimization/47663
10891 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10892 call_stmt_time fields.
10893 (cgraph_edge_inlinable_p): Declare.
10894 (cgraph_edge_recursive_p): New inline function.
10895 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10896 (cgraph_clone_edge): Copy it.
10897 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10898 Account for call stmt time.
10899 (cgraph_estimate_time_after_inlining): Take edge argument.
10900 (cgraph_estimate_edge_growth): Account call stmt size.
10901 (cgraph_estimate_size_after_inlining): Take edge argument.
10902 (cgraph_mark_inline_edge): Adjust.
10903 (cgraph_check_inline_limits): Likewise.
10904 (cgraph_recursive_inlining_p): Remove.
10905 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10906 (cgraph_decide_recursive_inlining): Take edge argument and
10908 (cgraph_decide_inlining_of_small_functions): Do not avoid
10909 diags for recursive inlining here.
10910 (cgraph_flatten): Adjust.
10911 (cgraph_decide_inlining_incrementally): Likewise.
10912 (estimate_function_body_sizes): Remove call cost handling.
10913 (compute_inline_parameters): Initialize caller edge call costs.
10914 (cgraph_estimate_edge_growth): New function.
10915 (cgraph_estimate_growth): Use it.
10916 (cgraph_edge_badness): Likewise.
10917 (cgraph_check_inline_limits): Take an edge argument.
10918 (cgraph_decide_inlining_of_small_functions): Adjust.
10919 (cgraph_decide_inlining): Likewise.
10920 * tree-inline.c (estimate_num_insns): Only account for call
10921 return value if it is used.
10922 (expand_call_inline): Avoid diagnostics on recursive inline
10924 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10925 (input_edge): Input edge call costs.
10927 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10929 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10931 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10933 * doc/invoke.texi (Spec Files): Fix typo.
10935 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10937 * profile.c (branch_prob): Move declaration of local variable. Remove
10938 obsolete ??? comment. Expand the location explicitly instead of using
10939 the LOCATION_FILE and LOCATION_LINE macros.
10941 2011-04-06 Wei Guozhi <carrot@google.com>
10944 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10945 (arm_cond_branch): Likewise.
10946 (arm_cond_branch_reversed): Likewise.
10947 (arm_jump): Likewise.
10948 (push_multi): Likewise.
10949 * config/arm/constraints.md (Py): New constraint.
10951 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10954 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10956 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10957 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10958 #ifdef DBX_DEBUGGING_INFO.
10960 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10963 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10964 if old and new states differ.
10966 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10968 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10969 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10970 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10971 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10972 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10973 mcfv4e): Use Alias.
10974 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10975 ColdFire options to -mcpu= options.
10977 2011-04-05 Jeff Law <law@redhat.com>
10979 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10980 check if BB is a successor of LOOP->header and return
10981 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10983 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10985 * cprop.c (struct reg_use): Remove.
10986 (reg_use_table): Make an array of RTX.
10987 (find_used_regs, constprop_register, local_cprop_pass,
10988 bypass_block): Simplify users of reg_use_table.
10989 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10990 on one of the uses found by find_used_regs.
10992 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10995 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10998 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11000 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11002 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11004 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11006 PR middle-end/48441
11007 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11009 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11011 * combine.c: Include obstack.h.
11012 (struct insn_link): Define.
11013 (uid_log_links): Adjust type.
11014 (FOR_EACH_LOG_LINK): New macro.
11015 (insn_link_obstack): Declare.
11016 (alloc_insn_link): Define.
11017 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11018 type of link variables.
11019 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11020 (try_combine, record_promoted_values, distribute_notes): Likewise.
11021 (distribute_links): Likewise. Tweak prototype.
11022 (clear_log_links): Delete.
11023 (adjust_for_new_dest): Call alloc_insn_link.
11024 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11026 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11028 * gcse.c (modify_mem_list): Convert to an array of VECs.
11029 (canon_modify_mem_list, compute_transp): Tweak formatting.
11030 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11031 (load_killed_in_block_p): Likewise.
11032 (record_last_mem_set_info): Likewise.
11033 (clear_modify_mem_tables): Likewise.
11035 2011-04-05 Tom de Vries <tom@codesourcery.com>
11037 PR middle-end/48461
11038 * function.c (emit_use_return_register_into_block): Only define if
11041 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11043 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11045 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11047 * config/rx/rx-opts.h: New.
11048 * config/rx/rx.c (rx_cpu_type): Remove.
11049 (rx_handle_option): Don't assert that global structures are in
11050 use. Access variables via opts pointer. Defer most handling of
11051 OPT_mint_register_. Use error_at.
11052 (rx_option_override): Handle deferred OPT_mint_register_ here.
11053 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11054 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11055 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11056 (rx_cpu_types): New Enum and EnumValue entries.
11057 (mint-register=): Use Defer and use Var accordingly.
11059 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11061 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11062 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11063 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11065 (debug_free_queue, debug_nesting, symbol_queue_index):
11067 * dbxout.c: ...to here. Make static.
11069 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11071 * gcse.c (modify_pair): Define. Define a VEC of it.
11072 (canon_modify_mem_list): Convert to an array of VECs.
11073 (free_insn_expr_list_list): Delete.
11074 (clear_modify_mem_tables): Call VEC_free instead.
11075 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11076 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11077 (canon_list_insert, compute_transp): Likewise.
11079 2011-04-05 Tom de Vries <tom@codesourcery.com>
11082 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11085 2011-04-05 Tom de Vries <tom@codesourcery.com>
11088 * function.c (emit_use_return_register_into_block): New function.
11089 (thread_prologue_and_epilogue_insns): Use
11090 emit_use_return_register_into_block.
11092 2011-04-05 Tom de Vries <tom@codesourcery.com>
11095 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11098 2011-04-05 Tom de Vries <tom@codesourcery.com>
11100 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11102 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11104 * config/arm/arm.md (define_constants for unspec): Replace with
11106 (define_constants for unspecv): Replace with define_c_enum.
11107 * config/arm/neon.md (define_constants for unspec): Replace with
11110 2011-04-04 Richard Henderson <rth@redhat.com>
11113 * dwarf2out.c (output_line_info): Always emit line info from
11114 at least one section.
11115 (dwarf2out_init): Create text_section_line_info here ...
11116 (set_cur_line_info_table): ... not here.
11118 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11121 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11124 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11126 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11128 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11129 (expr_equiv_p): Remove.
11130 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11131 (hash_scan_set): Update call to insert_set_in_table.
11132 (dump_hash_table): Dump <dest, src> pair.
11133 (lookup_set): Simplify. Lookup <dest, src> pair.
11134 (compute_transp): Remove, fold heavily simplified code into...
11135 (compute_local_properties): ...here. Expect COMP and TRANSP
11137 (find_avail_set): Take set directly from struct expr.
11138 (find_bypass-set): Likewise.
11139 (bypass_block): Likewise.
11140 (cprop_insn): Likewise. Remove redundant INSN_P test.
11142 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11143 checks on form of COND from find_implicit_sets to here.
11144 (find_implicit_sets): Cleanup control flow. Split critical edges
11145 if it exposes implicit sets. Allocate/resize implicit_sets as
11147 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11148 changed something. Run df_analyze after find_implicit_sets if any
11149 edges were split. Do not allocate implicit_sets here.
11151 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11152 (gcse_obstack): Renamed to cprop_obstack.
11153 (GNEW, GNEWVEC, GNEWVAR): Remove.
11155 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11156 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11157 (gcse_alloc): Likewise, and rename to cprop_alloc.
11158 (alloc_gcse_men, free_gcse_mem): Remove.
11159 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11160 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11161 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11163 * cprop.c (oprs_not_set_p): Remove.
11164 (mark_set, mark_clobber): Remove.
11165 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11166 (reg_not_set_p): New function.
11167 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11168 (cprop_insn): Likewise.
11169 (cprop_jump): Use FOR_EACH_EDGE.
11171 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11174 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11175 (rank_for_schedule): Use scheduled_insns vector instead of
11176 last_scheduled_insn.
11177 (ok_for_early_queue_removal): Likewise.
11178 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11180 (choose_ready): Likewise.
11181 (commit_schedule): Use VEC_iterate.
11182 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11183 a dbg_cnt, use it and ensure the first insn is in the ready list.
11184 (haifa_sched_init): Allocate scheduled_insns.
11185 (sched_extend_ready_list): Don't allocate it; reserve space.
11186 (haifa_sched_finish): Free it.
11188 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11190 * optc-gen.awk: Always remove type from Variable entry before
11191 recording in var_seen.
11193 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11195 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11196 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11197 call to tidy_fallthru_edges.
11199 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11201 * doc/options.texi (ToLower): Document.
11202 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11203 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11204 * opts.h (cl_option): Add cl_tolower field.
11205 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11206 arguments with lowercase strings.
11207 * config/rx/rx.opt (mcpu=): Add ToLower.
11208 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11211 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11213 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11215 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11217 * config/vax/vax.c: Include reload.h.
11219 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11221 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11222 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11223 (sparc_preferred_reload_class): New function.
11225 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11228 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11229 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11231 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11233 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11234 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11236 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11238 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11239 (ASM_OUTPUT_ALIGNED_BSS): Define.
11241 2011-04-03 Michael Matz <matz@suse.de>
11243 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11244 and next_slot members.
11245 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11246 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11247 (lto_streamer_cache_append): Declare.
11248 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11249 unsigned index, remove offset parameter, ensure that we append
11250 or update existing entries.
11251 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11252 parameter, update next_slot for append.
11253 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11255 (lto_streamer_cache_insert_at): Likewise.
11256 (lto_streamer_cache_append): New function.
11257 (lto_streamer_cache_lookup): Use unsigned index.
11258 (lto_streamer_cache_get): Likewise.
11259 (lto_record_common_node): Don't test tree_node_can_be_shared.
11260 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11261 (lto_streamer_cache_delete): Don't free offsets member.
11262 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11263 (lto_output_string_with_length): Use lto_output_data_stream.
11264 (lto_output_tree_header): Remove ix parameter, don't write it.
11265 (lto_output_builtin_tree): Likewise.
11266 (lto_write_tree): Adjust callers to above, don't track and write
11267 offset, write unsigned index.
11268 (output_unreferenced_globals): Don't emit all global vars.
11269 (write_global_references): Use unsigned indices.
11270 (lto_output_decl_state_refs): Likewise.
11271 (write_symbol): Likewise.
11272 * lto-streamer-in.c (lto_input_chain): Move earlier.
11273 (input_function): Use unsigned index.
11274 (input_alias_pairs): Don't read and then ignore all global vars.
11275 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11276 don't pass it back, use lto_streamer_cache_append.
11277 (lto_register_var_decl_in_symtab): Use unsigned index.
11278 (lto_register_function_decl_in_symtab): Likewise.
11279 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11281 (lto_get_builtin_tree): Don't read index, use
11282 lto_streamer_cache_append.
11283 (lto_read_tree): Adjust call to lto_materialize_tree.
11285 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11286 don't use function calls in arguments to MIN.
11288 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11291 * gimple.c (gimple_type_leader_entry): Mark deletable.
11293 2011-04-03 Alan Modra <amodra@gmail.com>
11295 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11297 2011-04-03 Michael Matz <matz@suse.de>
11299 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11301 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11303 2011-04-03 Michael Matz <matz@suse.de>
11305 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11306 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11307 without function context.
11308 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11309 current_function_decl and cfun.
11311 2011-04-03 Michael Matz <matz@suse.de>
11313 * tree.c (decl_init_priority_insert): Don't create entry for
11315 (decl_fini_priority_insert): Ditto.
11316 (fields_compatible_p, find_compatible_field): Remove.
11317 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11318 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11320 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11322 * combine.c (try_combine): Remove useless local variable.
11324 2011-04-03 Richard Guenther <rguenther@suse.de>
11325 Ira Rosen <ira.rosen@linaro.org>
11327 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11328 non-variable offsets and compare the remaining bases of the two
11329 accesses instead of looking for exact same data-ref.
11331 2011-04-02 Kai Tietz <ktietz@redhat.com>
11334 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11336 * i386.c (ix86_is_msabi_thiscall): New helper function.
11337 (ix86_is_type_thiscall): New helper function.
11338 (ix86_comp_type_attributes): Handle thiscall for method-functions
11340 (init_cumulative_args): Likewise.
11341 (find_drap_reg): Likewise.
11342 (ix86_static_chain): Likewise.
11343 (x86_this_parameter): Likewise.
11344 (x86_output_mi_thunk): Likewise.
11346 2011-04-01 Olivier Hainque <hainque@adacore.com>
11347 Nicolas Setton <setton@adacore.com>
11348 Eric Botcazou <ebotcazou@adacore.com>
11350 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11351 (add_gnat_descriptive_type_attribute): New function.
11352 (gen_array_type_die): Call it.
11353 (gen_enumeration_type_die): Likewise.
11354 (gen_struct_or_union_type_die): Likewise.
11355 (modified_type_die): Likewise.
11356 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11357 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11358 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11360 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11363 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11364 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11367 2011-03-17 Richard Guenther <rguenther@suse.de>
11370 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11371 origin for decls in other ltrans units.
11372 (input_varpool_node): Likewise.
11374 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11376 PR middle-end/48335
11377 * expr.c (expand_assignment): Handle all possibilities
11378 if TO_RTX is CONCAT.
11379 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11380 (store_split_bit_field): If SUBREG_REG (op0) or
11381 op0 itself has smaller mode than word, return it
11382 for offset 0 and const0_rtx for out-of-bounds stores.
11383 If word is const0_rtx, skip it.
11385 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11387 * config/h8300/h8300.c (print_operand_address): Rename to...
11388 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11389 Call h8300_print_operand and h8300_print_operand_address instead of
11390 print_operand and print_operand_address. Declare.
11391 (print_operand): Renake to...
11392 (h8300_print_operand): ...this. Make static. Adjust comments.
11393 Call h8300_print_operand instead of print_operand. Declare.
11394 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11395 (h8300_register_move_cost): Likewise.
11396 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11397 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11398 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11399 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11400 * config/h8300/h8300-protos.h (print_operand): Delete.
11401 (print_operand_address): Delete.
11403 2011-04-01 Richard Henderson <rth@redhat.com>
11406 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11407 in strict mode before dwarf4. Re-order tests to early out
11408 before switching sections.
11410 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11412 * config/h8300/constraints.md: New file.
11413 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11414 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11415 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11416 * config/h8300/predicates.md (bit_operand): Likewise.
11417 (incdec_operand): Use satisfies_constraint_M and
11418 satisfies_constraint_O. Don't use C code block.
11419 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11420 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11421 (compute_mov_length): Use satisfies_constraint_G.
11422 (fix_bit_operand): Use satisfies_constraint_U.
11423 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11424 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11425 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11426 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11427 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11428 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11429 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11430 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11431 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11432 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11433 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11434 (EXTRA_MEMORY_CONSTRAINT): Delete.
11436 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11437 Michael Meissner <meissner@linux.vnet.ibm.com>
11440 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11441 operands, as per the specifications.
11443 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11444 (vec_extract_evenv4sf): Ditto.
11445 (vec_extract_evenv8hi): Ditto.
11446 (vec_extract_evenv16qi): Ditto.
11447 (vec_extract_oddv4si): Ditto.
11449 2011-03-31 Mark Wielaard <mjw@redhat.com>
11451 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11452 high_pc attribute if the CU has no associated code. Only output
11453 DW_AT_entry_pc for CU if not generating strict dwarf and
11456 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11458 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11459 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11461 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11462 * final.c (final_start_function): Call the new function rather
11463 than using a NULL argument for dwarf2out_frame_debug.
11465 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11466 that contains the prologue.
11468 * haifa-sched.c (queue_insn): New arg REASON. All callers
11469 changed. Print it in debugging output.
11471 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11473 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11474 Split most of the code into...
11475 (begin_move_insn): ... here. New function.
11476 (ebb_sched_info): Add a pointer to it.
11477 * haifa-sched.c (scheduled_insns): New static variable.
11478 (sched_extend_ready_list): Allocate it.
11479 (schedule_block): Use it to record the order of scheduled insns.
11480 Perform RTL changes to move insns only after all scheduling
11481 decisions have been made.
11482 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11483 begin_move_insn field.
11484 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11485 * sched-int.h (struct haifa_sched_info): Remove second argument
11486 from begin_schedule_ready hook. Add new member begin_move_insn.
11487 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11488 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11490 * haifa-sched.c (prune_ready_list): New function, broken out of
11492 (schedule_block): Use it.
11494 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11496 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11498 2011-04-01 Kai Tietz <ktietz@redhat.com>
11500 * config.gcc (*-*-mingw*): Allow as option the
11501 posix threading model.
11502 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
11503 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11505 (CPP_SPEC): Add pthread/no-pthread handling.
11506 (LIB_SPEC): Likewise.
11507 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11508 (LIB_SPEC): Likewise.
11509 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11510 flag to pass -pthread option for shared libgcc build.
11511 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11512 for shared libgcc build.
11513 * config/i386/t-mingw-pthread: New file.
11514 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11515 New define to enable use of library pthread by default.
11516 * config/i386/mingw.opt (pthread): New driver option.
11517 (no-pthread): New driver option.
11518 * config/i386/cygming.opt: Make sure trailing empty line is retained.
11519 * config/i386/mingw-w64.opt: Likewise.
11521 2011-04-01 Gary Funck <gary@intrepid.com>
11523 * c-decl.c (grokdeclarator): Fix formatting.
11525 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11527 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11528 instead of n_operands.
11529 (set_storage_via_setmem): Likewise.
11530 * optabs.c (maybe_gen_insn): Likewise.
11531 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11532 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11533 (mips_expand_builtin_direct): Likewise.
11534 * config/spu/spu.c (expand_builtin_args): Likewise.
11536 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11538 * recog.h (insn_data_d): Add n_generator_args.
11539 * genoutput.c (data): Likewise.
11540 (output_insn_data): Print it.
11541 (max_opno, num_dups): Delete.
11542 (scan_operands): Just fill in "d->operand[...]".
11543 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11545 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11547 * gensupport.h (pattern_stats): New structure.
11548 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11549 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11550 (max_operand_1, max_operand_vec): Delete.
11551 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11553 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11555 * emit-rtl.c (emit_pattern_after_setloc): New function.
11556 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11557 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11558 (emit_pattern_after): New function.
11559 (emit_insn_after, emit_jump_insn_after): Call it.
11560 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11561 (emit_pattern_before_setloc): New function.
11562 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11563 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11565 (emit_pattern_before): New function.
11566 (emit_insn_before, emit_jump_insn_before): Call it.
11567 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11569 2011-03-31 Richard Henderson <rth@redhat.com>
11571 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11572 (dw_separate_line_info_entry): Remove.
11573 (enum dw_line_info_opcode): New.
11574 (dw_line_info_entry): Use it.
11575 (dw_line_info_table, dw_line_info_table_p): New.
11576 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11577 (line_info_table, line_info_label_num): Remove.
11578 (line_info_table_in_use): Remove.
11579 (separate_line_info_table): Remove.
11580 (separate_line_info_table_allocated): Remove.
11581 (separate_line_info_table_in_use): Remove.
11582 (LINE_INFO_TABLE_INCREMENT): Remove.
11583 (line_info_label_num): New.
11584 (cur_line_info_table): New.
11585 (text_section_line_info, cold_text_section_line_info): New.
11586 (separate_line_info): New.
11587 (SEPARATE_LINE_CODE_LABEL): Remove.
11588 (print_dwarf_line_table): Remove.
11589 (debug_dwarf): Don't dump it.
11590 (output_one_line_info_table): New.
11591 (output_line_info): Use it.
11592 (new_line_info_table): New.
11593 (set_cur_line_info_table): New.
11594 (dwarf2out_switch_text_section): Use it.
11595 (dwarf2out_begin_function): Likewise.
11596 (push_dw_line_info_entry): New.
11597 (dwarf2out_source_line): Rewrite for new line info tables.
11598 (dwarf2out_init): Remove dead initailizations.
11600 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11602 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11604 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11605 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11606 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11607 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11608 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11609 * opt-functions.awk (flag_init, switch_bit_fields): New.
11610 (switch_flags): Don't handle flags moved to bit-fields. Don't
11611 generate CL_MISSING_OK or CL_SAVE.
11612 * optc-gen.awk: Update to generate bit-field output as well as
11614 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11615 bit-field instead of CL_REJECT_DRIVER flag.
11616 * opts-common.c (generate_canonical_option,
11617 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11618 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11619 instead of CL_REJECT_NEGATIVE flag.
11620 * toplev.c (print_switch_values): Use cl_report bit-field instead
11623 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11625 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11626 a zero minimum index only if it is redundant.
11628 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11630 PR rtl-optimization/48381
11631 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11632 instead of ira_class_hard_reg_index for calculating conflicting
11635 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11637 * cprop.c: Clean up hash table building.
11638 (reg_avail_info): Remove.
11639 (oprs_available_p): Remove.
11640 (record_last_reg_set_info): Remove.
11641 (record_last_set_info): Remove.
11642 (reg_available_p): New function.
11643 (gcse_constant_p): Do not treat unfolded conditions as constants.
11644 (make_set_regs_unavailable): New function.
11645 (hash_scan_set): Simplify with new reg_available_p.
11646 (compute_hash_table_work): Traverse insns stream only once.
11647 Do not compute reg_avail_info. Traverse insns in reverse order.
11648 Record implicit sets after recording explicit sets from the block.
11650 2011-03-31 Michael Matz <matz@suse.de>
11652 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11654 2011-03-31 Anatoly Sokolov <aesok@post.ru>
11656 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11657 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11658 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11659 (h8300_mode_dependent_address_p): New function.
11660 (h8300_get_index): Make static.
11662 2011-03-31 Jeff Law <law@redhat.com>
11664 * reload1.c (elimination_effects): Fix typo in recent change.
11666 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11667 typo potentially leading to null pointer dereference.
11669 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11670 (setup_save_areas): Corresponding changes to avoid useless
11673 * jump.c (reversed_comparison_code_parts): Avoid successive return
11674 statements when REVERSE_CONDITION is defined.
11676 * expr.c (expand_assignment): Avoid useless assignments.
11677 (expand_expr_real_1): Likewise.
11678 (expand_expr_real_2): Avoid useless statements.
11680 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11682 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11684 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11687 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11689 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11692 * doc/tm.texi.in (TARGET_VERSION): Remove.
11693 * doc/tm.texi: Regenerate.
11694 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11695 * collect2.c (main): Don't use TARGET_VERSION.
11696 * mips-tdump.c (main): Don't use TARGET_VERSION.
11697 * mips-tfile.c (main): Don't use TARGET_VERSION.
11698 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11699 * config/rs6000/vxworksae.h: Remove.
11700 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11701 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11702 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11703 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11704 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11705 * config/arm/arm.h (TARGET_VERSION): Remove.
11706 * config/arm/coff.h (TARGET_VERSION): Remove.
11707 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11708 * config/arm/elf.h (TARGET_VERSION): Remove.
11709 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11710 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11711 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11712 * config/arm/pe.h (TARGET_VERSION): Remove.
11713 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11714 * config/arm/semi.h (TARGET_VERSION): Remove.
11715 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11716 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11717 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11718 * config/avr/avr.h (TARGET_VERSION): Remove.
11719 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11720 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11721 * config/frv/frv.h (TARGET_VERSION): Remove.
11722 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11723 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11724 * config/i386/darwin.h (TARGET_VERSION): Remove.
11725 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11726 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11727 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11728 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11729 * config/i386/gnu.h (TARGET_VERSION): Remove.
11730 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11731 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11732 * config/i386/linux.h (TARGET_VERSION): Remove.
11733 * config/i386/linux64.h (TARGET_VERSION): Remove.
11734 * config/i386/lynx.h (TARGET_VERSION): Remove.
11735 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11736 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11737 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11738 * config/i386/netware.h (TARGET_VERSION): Remove.
11739 * config/i386/nto.h (TARGET_VERSION): Remove.
11740 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11741 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11742 * config/ia64/elf.h (TARGET_VERSION): Remove.
11743 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11744 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11745 * config/ia64/linux.h (TARGET_VERSION): Remove.
11746 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11747 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11748 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11749 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11750 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11751 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11752 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11753 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11754 * config/m68k/linux.h (TARGET_VERSION): Remove.
11755 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11756 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11757 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11758 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11759 * config/mep/mep.h (TARGET_VERSION): Remove.
11760 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11761 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11762 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11763 * config/mips/linux.h (TARGET_VERSION): Remove.
11764 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11765 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11766 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11767 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11768 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11769 * config/pa/pa.h (TARGET_VERSION): Remove.
11770 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11771 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11772 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11773 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11774 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11775 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11776 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11777 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11778 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11779 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11780 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11781 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11782 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11783 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11784 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11785 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11786 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11787 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11788 * config/s390/linux.h (TARGET_VERSION): Remove.
11789 * config/s390/s390.h (TARGET_VERSION): Remove.
11790 * config/s390/tpf.h (TARGET_VERSION): Remove.
11791 * config/score/score.h (TARGET_VERSION): Remove.
11792 * config/sh/linux.h (TARGET_VERSION): Remove.
11793 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11794 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11795 * config/sh/sh.h (TARGET_VERSION): Remove.
11796 * config/sh/sh64.h (TARGET_VERSION): Remove.
11797 * config/sh/superh.h (TARGET_VERSION): Remove.
11798 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11799 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11800 * config/sparc/linux.h (TARGET_VERSION): Remove.
11801 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11802 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11803 TARGET_NAME32, TARGET_NAME): Remove.
11804 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11805 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11806 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11807 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11808 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11809 * config/spu/spu.h (TARGET_VERSION): Remove.
11810 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11811 * config/v850/v850.h (TARGET_VERSION): Remove.
11812 * config/vax/linux.h (TARGET_VERSION): Remove.
11813 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11814 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11815 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11817 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11820 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11821 frame-related from frame-unrelated adjustments to the stack pointer.
11823 2011-03-31 Jakub Jelinek <jakub@redhat.com>
11825 * common.opt (fdebug-types-section): Move earlier.
11826 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11828 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
11830 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11833 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11835 * tree.h (CASE_CHAIN): Define.
11836 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11837 (gimple_redirect_edge_and_branch): Likewise.
11839 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11841 PR middle-end/48367
11842 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11845 2011-03-30 Jeff Law <law@redhat.com>
11847 * PR bootstrap/48371
11848 * reload1.c (reload): Fix botch in last change.
11850 * reload.h (struct reload): Fix typo introduced in last change.
11852 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11854 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11855 Undocumented. Remove help text.
11856 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11859 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11861 * doc/options.texi (NegativeAlias): Document.
11862 (Alias): Mention NegativeAlias.
11863 * opt-functions.awk: Handle NegativeAlias.
11864 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11865 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11866 * opts.h (CL_NEGATIVE_ALIAS): Define.
11867 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11868 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11870 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11872 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11873 mno-spe and mno-isel instead of mspe=no and -misel=no.
11875 2011-03-29 Mark Wielaard <mjw@redhat.com>
11877 * common.opt (fdebug-types-section): New flag.
11878 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11879 * dwarf2out.c (use_debug_types): New define.
11880 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11881 (print_die): Guard output of type unit signatures using
11883 (build_abbrev_table): Replace assert of dwarf_version >= 4
11884 with assert on use_debug_types.
11885 (size_of_die): Likewise.
11886 (unmark_dies): Likewise.
11887 (value_format): Decide AT_ref_external form on use_debug_types.
11888 (output_die): Replace dwarf_version version check guard with
11889 use_debug_types where appropriate.
11890 (modified_type_die): Likewise.
11891 (gen_reference_type_die): Likewise.
11892 (dwarf2out_start_source_file): Likewise.
11893 (dwarf2out_end_source_file): Likewise.
11894 (prune_unused_types_walk_attribs): Likewise.
11895 (dwarf2out_finish): Likewise.
11897 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11899 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11901 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11903 PR rtl-optimization/48332
11904 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11905 mode of input operand N and modeN to its actual mode.
11907 2011-03-30 Jeff Law <law@redhat.com>
11909 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11910 define accessor macro.
11911 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11912 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11913 (reg_equiv_init): Likewise.
11914 (reg_equivs_size): New variable.
11915 (reg_equiv_init_size): Remove.
11916 (allocate_initial_values): Move prototype to here from....
11917 * integrate.h (allocate_initial_values): Remove prototype.
11918 * integrate.c: Include reload.h.
11919 (allocate_initial_values): Corresponding changes.
11920 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11921 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11922 (update_equiv_regs): Corresponding changes.
11923 (ira): Corresponding changes.
11924 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11925 (push_secondary_reload): Corresponding changes.
11926 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11927 (make_memloc, find_reloads_address): Corresponding changes.
11928 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11929 (find_reloads_address_1): Corresponding changes.
11930 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11931 (refers_to_regno_for_reload_p): Corresponding changes.
11932 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11933 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11934 * reload1.c: Include ggc.h.
11935 (grow_reg_equivs): New function.
11936 (replace_pseudos_in, reload): Corresponding changes.
11937 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11938 (eliminate_regs_1, elimination_effects): Corresponding changes.
11939 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11940 (delete_output_reload): Likewise.
11941 * caller-save.c (mark_referenced_regs): Corresponding changes.
11942 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11943 * frv/predicates.md (frv_load_operand): Corresponding changes.
11944 * microblaze/microblaze.c (double_memory_operand): Corresponding
11946 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11947 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11948 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11949 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11950 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11952 * pa/pa.c (emit_move_sequence): Corresponding changes.
11953 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11955 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11958 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11959 structure modes. Don't check neon_vector_mem_operand for
11960 vector or structure modes.
11962 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11963 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11966 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11967 operand 1 and reshuffle the operands to match.
11968 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11970 2011-03-30 Christian Schüler <cschueler@gmx.de>
11973 * config/c.opt (F): Added 'Driver' to -F option.
11976 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11978 * config/darwin.opt: Added '-arch' option.
11980 2011-03-30 Nick Clifton <nickc@redhat.com>
11982 * config/rx/rx.md: Add peepholes and patterns to combine
11983 extending loads and simple arithmetic instructions.
11984 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11985 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11986 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11987 modes to use pre-decrement and post-increment addressing.
11988 (rx_is_restricted_memory_address): Add range checking of REG+INT
11990 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11991 (rx_memory_move_cost): Adjust cost of stores.
11992 (rx_adjust_insn_length): New function.
11994 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11997 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11998 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11999 matching arg00/arg01 types.
12001 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12003 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12004 last_location to UNKNOWN_LOCATION.
12006 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12009 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12012 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12013 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12016 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12017 Init(PROCESSOR_V7).
12018 (sparc_cpu): Likewise.
12019 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12022 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12025 PR middle-end/48342
12026 PR rtl-optimization/48345
12027 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12028 hard regs for given mode from profitable regs when doing secondary
12031 2011-03-29 Jeff Law <law@redhat.com>
12034 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12035 do_not_duplicate field.
12036 (lookup_redirection_data): Corresponding changes.
12037 (create_duplicates): Always create a template block.
12038 (redirect_edges): Remove code which reused the original block
12039 when it was going to become unreachable code.
12040 (thread_block): Don't set do_not_duplicate field.
12042 2011-03-29 Joseph Myers <joseph@codesourcery.com>
12044 * lto-opts.c (register_user_option_p, lto_register_user_option):
12045 Make type argument unsigned.
12046 * lto-streamer.h (lto_register_user_option): Make type argument
12048 * opth-gen.awk: Make CL_* macros unsigned.
12049 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12050 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12051 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12052 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12053 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12054 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12055 (find_opt): Make lang_mask argument unsigned.
12057 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12059 PR rtl-optimization/48331
12060 PR rtl-optimization/48334
12061 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12062 for any used algorithm.
12064 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12066 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12069 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
12071 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12072 (alpha_option_override): Don't set alpha_sr_alias_set.
12073 (emit_frame_store_1): Use gen_frame_mem rather than calling
12075 (alpha_expand_epilogue): Ditto.
12077 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
12079 PR tree-optimization/48290
12080 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12081 vectorization, check that relevant phis in the basic block after
12082 the inner loop are really inner loop's exit phis.
12084 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12087 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12088 (cached_dw_loc_list_def): New structure.
12089 (cached_dw_loc_list): New typedef.
12090 (cached_dw_loc_list_table): New variable.
12091 (cached_dw_loc_list_table_hash): New function.
12092 (cached_dw_loc_list_table_eq): Likewise.
12093 (add_location_or_const_value_attribute): Take a bool cache_p.
12094 Cache the list when the parameter is true.
12095 (gen_formal_parameter_die): Update caller.
12096 (gen_variable_die): Likewise.
12097 (dwarf2out_finish): Likewise.
12098 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12099 while generating debug info for the decl.
12100 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12101 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12102 (resolve_addr): Cache the result of resolving a chain of
12105 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12107 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12108 conflict object hard regset nodes have intersecting hard reg sets.
12110 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12111 after regstat_init_n_sets_and_refs.
12113 * ira.c: Add more comments at the top.
12114 (setup_stack_reg_pressure_class, setup_pressure_classes):
12115 Add comments how we compute the register pressure classes.
12116 (setup_allocno_and_important_classes): Add more comments.
12117 (setup_class_translate_array, reorder_important_classes)
12118 (setup_reg_class_relations): Add comments.
12120 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12123 * ira-color.c: Add 2011 to the Copyright line.
12124 (assign_hard_reg): Add more comments.
12125 (improve_allocation): Ditto.
12127 * ira-costs.c: Add 2011 to the Copyright line.
12128 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12130 (setup_regno_cost_classes_by_mode): Ditto.
12132 Initial patches from ira-improv branch:
12134 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12136 * ira-build.c (ira_create_object): Remove initialization of
12137 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12138 (ira_create_allocno): Remove initialization of
12139 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12140 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12141 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12142 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12143 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12144 Initialize ALLOCNO_ADD_DATA.
12145 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12146 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12148 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12149 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12151 * ira.c (ira_reallocate): Remove.
12152 (setup_pressure_classes): Call
12153 ira_init_register_move_cost_if_necessary. Use
12154 ira_register_move_cost instead of ira_get_register_move_cost.
12155 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12156 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12158 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12159 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12160 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12161 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12162 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12163 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12165 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12166 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12167 (struct allocno_color_data): New.
12168 (allocno_color_data_t): New typedef.
12169 (allocno_color_data): New definition.
12170 (ALLOCNO_COLOR_DATA): New macro.
12171 (struct object_color_data): New.
12172 (object_color_data_t): New typedef.
12173 (object_color_data): New definition.
12174 (OBJECT_COLOR_DATA): New macro.
12175 (update_copy_costs, calculate_allocno_spill_cost): Call
12176 ira_init_register_move_cost_if_necessary. Use
12177 ira_register_move_cost instead of ira_get_register_move_cost.
12178 (move_spill_restore, update_curr_costs): Ditto.
12179 (allocno_spill_priority): Make it inline.
12180 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12181 (struct coalesce_data, coalesce_data_t): New.
12182 (allocno_coalesce_data): New definition.
12183 (ALLOCNO_COALESCE_DATA): New macro.
12184 (merge_allocnos, coalesced_allocno_conflict_p): Use
12185 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12186 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12187 (coalesce_allocnos): Ditto.
12188 (setup_coalesced_allocno_costs_and_nums): Ditto.
12189 (collect_spilled_coalesced_allocnos): Ditto.
12190 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12191 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12192 (coalesce_spill_slots): Ditto.
12193 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12194 free allocno_coalesce_data.
12196 * ira-conflicts.c: Fix formatting.
12197 (process_regs_for_copy): Call
12198 ira_init_register_move_cost_if_necessary. Use
12199 ira_register_move_cost instead of ira_get_register_move_cost.
12200 (build_object_conflicts): Optimize.
12202 * ira-costs.c (record_reg_classes): Optimize. Call
12203 ira_init_register_move_cost_if_necessary. Use
12204 ira_register_move_cost, ira_may_move_in_cost, and
12205 ira_may_move_out_cost instead of ira_get_register_move_cost and
12206 ira_get_may_move_cost.
12207 (record_address_regs): Ditto.
12208 (scan_one_insn): Optimize.
12209 (find_costs_and_classes): Optimize.
12210 (process_bb_node_for_hard_reg_moves): Call
12211 ira_init_register_move_cost_if_necessary. Use
12212 ira_register_move_cost instead of ira_get_register_move_cost.
12214 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12215 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12216 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12217 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12219 (ira_initiate_emit_data, ira_finish_emit_data)
12220 (create_new_allocno): New functions.
12221 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12222 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12223 Use ira_register_move_cost instead of ira_get_register_move_cost.
12225 * ira-int.h: Fix some comments.
12226 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12227 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12228 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12229 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12231 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12232 bitfield after mode. Make hard_regno a short int. Make
12233 hard_regno short. Remove first_coalesced_allocno and
12234 next_coalesced_allocno. Move mem_optimized_dest_p,
12235 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12236 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12237 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12238 temp, colorable_p. Add new member add_data.
12239 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12240 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12241 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12242 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12243 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12244 (ALLOCNO_ADD_DATA): New macro.
12245 (ira_emit_data_t): New typedef.
12246 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12247 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12248 from struct ira_allocno.
12249 (ALLOCNO_EMIT_DATA): New macro.
12250 (ira_allocno_emit_data, allocno_emit_reg): New.
12251 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12252 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12253 (OBJECT_ADD_DATA): New macro.
12254 (ira_reallocate): Remove.
12255 (ira_initiate_emit_data, ira_finish_emit_data): New.
12256 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12257 (ira_init_register_move_cost_if_necessary): New.
12258 (ira_object_conflict_iter_next): Merge into
12259 ira_object_conflict_iter_cond.
12260 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12262 * ira-live.c (process_single_reg_class_operands): Call
12263 ira_init_register_move_cost_if_necessary. Use
12264 ira_register_move_cost instead of ira_get_register_move_cost.
12266 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12268 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12270 * ira-costs.c: Fix formatting.
12271 (cost_classes, cost_classes_num): Remove.
12272 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12273 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12274 (cost_classes_del, cost_classes_htab): New.
12275 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12276 (initiate_regno_cost_classes, setup_cost_classes): New.
12277 (setup_regno_cost_classes_by_aclass): New.
12278 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12279 (record_reg_classes): Use regno_cost_classes instead of
12280 cost_classes. Move checking opposite operand up.
12281 (record_address_regs): Use regno_cost_classes
12282 instead of cost_classes.
12283 (scan_one_insn): Ditto. Use always general register.
12284 (print_allocno_costs): Use regno_cost_classes instead of
12286 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12287 (find_costs_and_classes): Set up cost classes for each registers.
12288 Use also their mode for this. Use regno_cost_classes instead of
12290 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12292 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12293 (ira_costs, ira_set_pseudo_classes): Call
12294 initiate_regno_cost_classes and finish_regno_cost_classes.
12296 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12298 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12300 * target.def (ira_cover_classes): Remove.
12302 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12304 * doc/tm.texi.in: Ditto.
12306 * ira-conflicts.c: Remove mentioning cover classes from the file.
12307 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12308 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12310 * targhooks.c (default_ira_cover_classes): Remove.
12312 * targhooks.h (default_ira_cover_classes): Ditto.
12314 * haifa-sched.c: Remove mentioning cover classes from the file.
12315 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12316 ira_pressure_classes and ira_pressure_classes_num instead of
12317 ira_reg_class_cover_size and ira_reg_class_cover. Use
12318 sched_regno_pressure_class instead of sched_regno_cover_class.
12319 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12320 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12322 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12323 classes from the file.
12324 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12325 (struct object_hard_regs, struct object_hard_regs_node): New.
12326 (struct ira_object): New members profitable_hard_regs,
12327 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12328 (struct ira_allocno): Rename cover_class to aclass. Rename
12329 cover_class_cost and updated_cover_class_cost to class_cost and
12330 updated_class_cost. Remove splay_removed_p and
12331 left_conflict_size. Add new members colorable_p.
12332 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12333 (ALLOCNO_COLORABLE_P): New macro.
12334 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12335 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12336 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12337 (OBJECT_...): Rename parameter C to O.
12338 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12339 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12340 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12341 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12342 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12343 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12344 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12345 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12346 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12347 x_ira_reg_class_subunion.
12348 (ira_max_memory_move_cost, ira_max_register_move_cost)
12349 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12350 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12351 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12352 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12353 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12354 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12355 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12356 (ira_tune_allocno_costs_and_cover_classes): Rename to
12357 ira_tune_allocno_costs.
12358 (ira_debug_hard_regs_forest): New.
12359 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12360 (ira_object_conflict_iter_next): Fix comments.
12361 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12362 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12363 cover_class to aclass.
12364 (ira_allocate_and_accumulate_costs): Ditto.
12365 (ira_allocate_and_set_or_copy_costs): Ditto.
12367 * opts.c (decode_options): Remove ira_cover_class check.
12369 * ira-color.c: Remove mentioning cover classes from the file. Use
12370 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12371 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12372 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12373 (splay-tree.h): Remove include.
12374 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12375 before copy_freq_compare_func.
12376 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12377 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12379 (hard_regs_roots, hard_regs_node_vec): Ditto.
12380 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12381 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12382 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12383 (create_new_object_hard_regs_node): Ditto.
12384 (add_new_object_hard_regs_node_to_forest): Ditto.
12385 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12386 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12388 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12389 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12390 (remove_unused_object_hard_regs_nodes): Ditto.
12391 (enumerate_object_hard_regs_nodes): Ditto.
12392 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12393 (object_hard_regs_subnode_t): Ditto.
12394 (struct object_hard_regs_subnode): Ditto.
12395 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12396 (setup_object_hard_regs_subnode_index): Ditto.
12397 (get_object_hard_regs_subnodes_num): Ditto.
12398 (form_object_hard_regs_nodes_forest): Ditto.
12399 (finish_object_hard_regs_nodes_tree): Ditto.
12400 (finish_object_hard_regs_nodes_forest): Ditto.
12401 (allocnos_have_intersected_live_ranges_p): Rename to
12402 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12403 (pseudos_have_intersected_live_ranges_p): Rename to
12404 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12405 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12406 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12407 (update_copy_costs): Remove assert. Skip cost update if the hard
12408 reg does not belong the class.
12409 (assign_hard_reg): Process only profitable hard regs.
12410 (uncolorable_allocnos_num): Make it scalar.
12411 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12412 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12413 and ira_reg_class_max_nregs.
12414 (bucket_allocno_compare_func): Check frequency first.
12415 (sort_bucket): Add compare function as a parameter.
12416 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12417 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12418 (push_allocno_to_stack): Rewrite for checking new allocno
12420 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12421 (push_only_colorable): Pass new parameter to sort_bucket.
12422 (push_allocno_to_spill): Remove.
12423 (allocno_spill_priority_compare): Make it inline and rewrite.
12424 (splay_tree_allocate, splay_tree_free): Remove.
12425 (allocno_spill_sort_compare): New function.
12426 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12427 build and use splay tree. Choose first allocno in uncolorable
12428 allocno bucket to spill. Remove setting spill cost.
12429 (all_conflicting_hard_regs): Remove.
12430 (setup_allocno_available_regs_num): Check only profitable hard
12431 regs. Print info about hard regs nodes.
12432 (setup_allocno_left_conflicts_size): Remove.
12433 (put_allocno_into_bucket): Don't call
12434 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12435 (improve_allocation): New.
12436 (color_allocnos): Call setup_profitable_hard_regs,
12437 form_object_hard_regs_nodes_forest, improve_allocation,
12438 finish_object_hard_regs_nodes_forest. Setup spill cost.
12439 (print_loop_title): Use pressure classes.
12440 (color_allocnso): Ditto.
12441 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12442 and allocnos_for_spilling.
12443 (ira_sort_regnos_for_alter_reg): Don't setup members
12444 {first,next}_coalesced_allocno.
12445 (color): Remove allocating and freeing removed_splay_allocno_vec.
12446 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12447 prohibited_class_mode_regs.
12449 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12451 (update_allocno_pressure_excess_length): Use pressure classes.
12452 (inc_register_pressure, dec_register_pressure): Check for pressure
12454 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12455 pressure class. Use ira_reg_class_nregs instead of
12456 ira_reg_class_max_nregs.
12457 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12458 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12459 (single_reg_class): Use ira_reg_class_nregs instead of
12460 ira_reg_class_max_nregs.
12461 (process_bb_node_lives): Use pressure classes.
12463 * ira-emit.c: Remove mentioning cover classes from the file. Use
12464 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12465 (change_loop): Use pressure classes.
12466 (modify_move_list): Call ira_set_allocno_class instead of
12467 ira_set_allocno_cover_class.
12469 * ira-build.c: Remove mentioning cover classes from the file. Use
12470 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12471 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12472 ALLOCNO_UPDATED_CLASS_COST instead of
12473 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12474 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12475 (ira_create_allocno): Remove initialization of
12476 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12477 ALLOCNO_COLORABLE_P.
12478 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12479 Update conflict regs for the objects.
12480 (create_cap_allocno): Remove assert. Don't propagate
12481 ALLOCNO_AVAILABLE_REGS_NUM.
12482 (ira_free_allocno_costs): New function.
12483 (finish_allocno): Change a part of code into call of
12484 ira_free_allocno_costs.
12485 (low_pressure_loop_node_p): Use pressure classes.
12486 (object_range_compare_func): Don't compare classes.
12487 (setup_min_max_conflict_allocno_ids): Ditto.
12489 * loop-invariant.c: Remove mentioning cover classes from the file.
12490 Use ira_pressure_classes and ira_pressure_classes_num instead of
12491 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
12492 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12493 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12494 Use reg_allocno_class instead of reg_cover_class.
12495 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12496 STACK_REG_COVER_CLASS.
12497 (get_regno_cover_class): Rename to get_regno_pressure_class.
12498 (move_loop_invariants): Initialize and finalize regstat.
12500 * ira.c: Remove mentioning cover classes from the file. Add
12501 comments about coloring without cover classes. Use ALLOCNO_CLASS
12502 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12503 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12504 setup_class_subset_and_memory_move_costs.
12505 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12506 (setup_cover_and_important_classes): Rename to
12507 setup_allocno_and_important_classes.
12508 (setup_class_translate_array): New.
12509 (setup_class_translate): Call it for allocno and pressure classes.
12510 (cover_class_order): Rename to allocno_class_order.
12511 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12512 of ira_class_translate.
12513 (reorder_important_classes): Set up ira_important_class_nums.
12514 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12515 (print_class_cover): Rename to print_classes. Add parameter.
12516 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12517 Print pressure classes too.
12518 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12519 setup_reg_subclasses.
12520 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12521 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12522 (setup_prohibited_class_mode_regs): Use
12523 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12524 (clarify_prohibited_class_mode_regs): New function.
12525 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12526 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12527 (ira_init_once): Initialize them.
12528 (free_register_move_costs): Process them.
12529 (ira_init): Move calls of find_reg_classes and
12530 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12531 Call clarify_prohibited_class_mode_regs.
12532 (ira_no_alloc_reg): Remove.
12533 (too_high_register_pressure_p): Use pressure classes.
12535 * sched-deps.c: Remove mentioning cover classes from the file.
12536 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12537 ira_pressure_classes and ira_pressure_classes_num instead of
12538 ira_reg_class_cover_size and ira_reg_class_cover.
12539 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12540 sched_regno_pressure_class instead of sched_regno_cover_class.
12541 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12542 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12544 * ira.h: Add 2010 to Copyright.
12545 (ira_no_alloc_reg): Remove external.
12546 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12547 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12548 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12549 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12550 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12551 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12552 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12553 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12554 x_ira_no_alloc_regs.
12555 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12556 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12557 ira_allocno_classes_num and ira_allocno_classes.
12558 (ira_class_translate): Rename to ira_allocno_class_translate.
12559 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12560 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12561 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12562 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12563 (ira_no_alloc_regs): New.
12565 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12566 classes from the file. Use ALLOCNO_CLASS instead of
12567 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12568 ALLOCNO_COVER_CLASS_COST.
12569 (regno_cover_class): Rename to regno_aclass.
12570 (record_reg_classes): Use ira_reg_class_subunion instead of
12571 ira_reg_class_union.
12572 (record_address_regs): Check overflow.
12573 (scan_one_insn): Ditto.
12574 (print_allocno_costs): Print total mem cost fore regional allocation.
12575 (print_pseudo_costs): Use REG_N_REFS.
12576 (find_costs_and_classes): Use classes intersected with them on the
12577 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12578 ira_reg_class_union. Use ira_allocno_class_translate and
12579 regno_aclass instead of ira_class_translate and regno_cover_class.
12580 Modify code for finding regno_aclass. Setup preferred classes for
12582 (setup_allocno_cover_class_and_costs): Rename to
12583 setup_allocno_class_and_costs. Use regno_aclass instead of
12584 regno_cover_class. Use ira_set_allocno_class instead of
12585 ira_set_allocno_cover_class.
12586 (init_costs, finish_costs): Use regno_aclass instead of
12588 (ira_costs): Use setup_allocno_class_and_costs instead of
12589 setup_allocno_cover_class_and_costs.
12590 (ira_tune_allocno_costs_and_cover_classes): Rename to
12591 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12592 by processing objects. Use ira_reg_class_max_nregs instead of
12593 ira_reg_class_nregs.
12595 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12597 * sched-int.h: Remove mentioning cover classes from the file.
12598 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12600 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12601 classes from the file.
12602 (struct reg_pref): Rename coverclass into allocnoclass.
12603 (reg_cover_class): Rename to reg_allocno_class.
12605 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12607 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12609 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12611 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12613 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12615 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12617 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12619 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12621 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12623 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12625 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12626 (i386_ira_cover_classes): Ditto.
12628 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12630 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12632 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12634 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12636 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12638 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12640 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12641 (mips_ira_cover_classes): Ditto.
12643 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12645 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12647 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12649 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12651 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12653 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12654 (IRA_COVER_CLASSES_VSX): Ditto.
12656 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12657 (rs6000_ira_cover_classes): Ditto.
12659 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12661 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12663 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12665 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12667 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12669 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12671 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12673 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12675 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12677 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12679 2011-03-29 Jakub Jelinek <jakub@redhat.com>
12682 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12683 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12684 dw_fde_unlikely_section_end_label, cold_in_std_section,
12685 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12686 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12688 (output_fde): Use dw_fde_second_{begin,end} if second is
12689 true, otherwise dw_fde_{begin,end}.
12690 (output_call_frame_info): Test dw_fde_second_begin != NULL
12691 instead of dw_fde_switched_sections.
12692 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12693 fields, initialize new fields. Initialize in_std_section
12694 unconditionally from the first partition.
12695 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12696 dw_fde_second_begin is non-NULL.
12697 (dwarf2out_switch_text_section): Stop initializing removed
12698 dw_fde_struct fields, initialize new fields, initialize
12699 also dw_fde_end here. Set dw_fde_switch_cfi even when
12700 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12701 (struct var_loc_list_def): Add last_before_switch field.
12702 (arange_table, arange_table_allocated, arange_table_in_use,
12703 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12704 (size_of_aranges): Count !in_std_section and !second_in_std_section
12705 hunks in fdes, instead of looking at arange_table_in_use.
12706 (output_aranges): Add aranges_length argument, don't call
12707 size_of_aranges here. Instead of using aranges_table*
12708 emit ranges for fdes when !in_std_section resp.
12709 !second_in_std_section.
12710 (dw_loc_list): Break ranges crossing section switch.
12711 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
12712 use dw_fde_second_end instead of dw_fde_end as end of last range.
12713 (gen_subprogram_die): Don't call add_arange. Use
12714 dw_fde_{begin,end} for first partition and if switched
12715 section dw_fde_second_{begin,end} for the second.
12716 (var_location_switch_text_section_1,
12717 var_location_switch_text_section): New functions.
12718 (dwarf2out_begin_function): Initialize cold_text_section even
12719 when function_section () isn't text_section.
12720 (prune_unused_types): Don't walk arange_table.
12721 (dwarf2out_finish): Don't needlessly test
12722 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12723 If info_section_emitted, call size_of_aranges and if it indicates
12724 non-empty .debug_aranges, call output_aranges with the computed
12725 size. Stop using removed dw_fde_struct fields, use
12726 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12730 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12731 create ENTRY_VALUE if incoming or address of incoming's MEM
12733 * dwarf2out.c (mem_loc_descriptor): Don't emit
12734 DW_OP_GNU_entry_value of DW_OP_fbreg.
12735 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12736 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12737 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12738 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12740 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12741 is a REG_P or MEM_P with REG_P address, compute hash directly
12742 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12743 (preserve_only_constants): Don't clear VALUES forwaring
12744 ENTRY_VALUE to some other VALUE.
12746 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12748 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12749 instead of GEN_INT.
12751 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12753 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12754 block before expanding the statement.
12755 (expand_gimple_stmt_1): Likewise. Set them here...
12756 (expand_gimple_stmt): ...and not here. Tidy.
12757 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12760 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12762 * Makefile.in: New rule for cprop.o.
12763 * gcse.c: Move constant/copy propagation to cprop.c.
12764 (compute_local_properties): Only handle expression tables.
12765 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12766 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12767 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12768 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12769 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12770 compute_cprop_data, find_used_regs, try_replace_reg,
12771 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12772 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12773 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12774 find_bypass_set, reg_killed_on_edge, bypass_block,
12775 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12776 execute_rtl_cprop, pass_rtl_cprop): Move to...
12777 * cprop.c: ...here. New file, constant/copy propagation for RTL
12778 moved from gcse.c to here with minor cleanups in duplicated code.
12780 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12782 * config/i386/i386.c (flag_opts): Fix a typo in
12783 -mavx256-split-unaligned-store.
12785 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12787 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12788 LIBCALL_VALUE): Remove macros.
12789 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12790 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12791 (h8300_function_value, h8300_libcall_value,
12792 h8300_function_value_regno_p): New functions.
12794 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12796 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12798 2011-03-28 Jeff Law <law@redhat.com>
12800 * tree-ssa-threadupdate.c (redirect_edges): Call
12801 create_edge_and_update_destination_phis as needed.
12802 (create_edge_and_update_destination_phis): Accept new BB argument.
12803 All callers updated.
12804 (thread_block): Do not update the profile when threading around
12805 intermediate blocks.
12806 (thread_single_edge): Likewise.
12807 (determine_bb_domination_status): If BB is not a successor of the
12808 loop header, return NONDOMINATING.
12809 (register_jump_thread): Note when we register a jump thread around
12810 an intermediate block.
12811 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12812 (thread_across_edge): Use it.
12814 2011-03-28 Tristan Gingold <gingold@adacore.com>
12816 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12817 when for_return is 2.
12819 2011-03-28 Jeff Law <law@redhat.com>
12821 * var-tracking.c (canonicalize_values_mark): Delete unused
12823 (canonicalize_values_star, set_variable_part): Likewise.
12824 (clobber_variable_part, delete_variable_part): Likewise.
12826 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12828 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12830 2011-03-28 Martin Jambor <mjambor@suse.cz>
12832 * tree-inline.c (expand_call_inline): Do not check that destination
12834 (optimize_inline_calls): Assert that destination node is analyzed.
12835 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12836 not call tree_lowering_passes.
12837 * cgraph.h (cgraph_analyze_function): Declare.
12838 * cgraphunit.c (cgraph_analyze_function): Make public.
12840 2011-03-28 Joseph Myers <joseph@codesourcery.com>
12842 * config/sparc/sparc-opts.h: New.
12843 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12844 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12845 (sparc_option_override): Store processor_type enumeration rather
12846 than string in cpu_default. Remove name and enumeration from
12847 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12848 without using sparc_select. Use target_flags_explicit instead of
12850 * config/sparc/sparc.h (enum processor_type): Move to
12852 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12853 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12854 HeaderInclude entry.
12855 (mcpu=, mtune=): Use Var and Enum.
12856 (sparc_processor_type): New Enum and EnumValue entries.
12858 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12859 Iain Sandoe <iains@gcc.gnu.org>
12862 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12864 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12866 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12867 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12868 Insert new statements at it in lieu of STMT.
12869 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12870 * tree-vect-stmts.c (vectorizable_store): Likewise.
12871 (vectorizable_load): Likewise.
12873 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
12875 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12880 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12882 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12883 unaligned 256bit load/store.
12884 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12885 (*avx_movdqu<avxmodesuffix>): Likewise.
12887 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12890 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12891 * config/pa/pa.md (iordi3): Use new predicate in expander.
12892 (iorsi3): Likewise.
12894 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12896 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12897 FUNCTION_VALUE_REGNO_P): Remove macros.
12898 * config/mips/mips-protos.h (mips_function_value): Remove.
12899 * config/mips/mips.c (mips_function_value): Rename to...
12900 (mips_function_value_1): ... this. Make static. Handle receiving
12901 the function type in 'fn_decl_or_type' argument.
12902 (mips_function_value, mips_libcall_value,
12903 mips_function_value_regno_p): New function.
12904 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12905 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12907 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12909 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12910 and -mavx256-split-unaligned-store.
12911 (ix86_option_override_internal): Split 32-byte AVX unaligned
12912 load/store by default.
12913 (ix86_avx256_split_vector_move_misalign): New.
12914 (ix86_expand_vector_move_misalign): Use it.
12916 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12917 -mavx256-split-unaligned-store.
12919 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12920 256bit load/store. Generate unaligned store on misaligned memory
12922 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12924 (*avx_movdqu<avxmodesuffix>): Likewise.
12926 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12927 -mavx256-split-unaligned-store.
12929 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12932 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12935 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12937 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12938 opno arguments with an expand_operand. Use create_input_operand.
12939 (mips_prepare_builtin_target): Delete.
12940 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12942 (mips_expand_builtin_direct): Use create_output_operand and
12943 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12944 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12945 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12947 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
12949 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12951 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12953 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12955 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12956 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12957 basic blocks and call commit_edge_insertions directly.
12958 (fixup_abnormal_edges): Move from here to...
12959 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12960 on the edges and return whether some have actually been inserted.
12961 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12964 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
12966 PR rtl-optimization/48144
12967 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12968 (merge_expr_data): ... here.
12969 (av_set_intersect): Rename to av_set_code_motion_filter.
12970 Update all callers. Call merge_history_vect when an expression
12971 is found in both sets.
12972 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12974 2011-03-26 Alan Modra <amodra@gmail.com>
12976 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12977 cmodel medium addresses.
12978 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12979 64-bit gpr loads and stores.
12980 (rs6000_secondary_reload_ppc64): New function.
12981 * config/rs6000/rs6000-protos.h: Declare it.
12982 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12984 2011-03-26 Alan Modra <amodra@gmail.com>
12987 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12988 GNU Go in traceback table.
12990 2011-03-25 Richard Henderson <rth@redhat.com>
12992 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12993 if there are exactly 6 operands.
12994 (set_storage_via_setmem): Similarly.
12996 2011-03-25 Kai Tietz <ktietz@redhat.com>
12998 * collect2.c (write_c_file_stat): Handle backslash
12999 as right-hand directory separator.
13000 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13001 checking just for slash.
13002 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13003 instead of checking for trailing slash.
13004 * gcc.c (record_temp_file): Use filename_cmp instead
13006 (do_spec_1): Likewise.
13007 (replace_outfile_spec_function): Likewise.
13008 (is_directory): Use filename_ncmp instead of strncmp.
13009 (print_multilib_info): Likewise.
13010 * gcov.c (find_source): Use filename_cmp instead
13012 (make_gcov_file_name): Fix order of slash/backslash
13014 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13015 (add_standard_paths): Likewise.
13016 * mips-tfile.c (saber_stop): Handle backslash.
13017 * prefix.c (update_path): Use filename_ncmp instead of
13019 * profile.c (output_location): Use filename_cmp instead
13021 * read-md.c (handle_toplevel_file): Handle backslash.
13022 * tlink.c (frob_extension): Likewise.
13023 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13025 * tree-dump.c (dequeue_and_dump): Handle backslash.
13026 * tree.c (get_file_function_name): Likewise.
13027 * gengtype.c (read_input_list): Likewise.
13028 (get_file_realbasename): Likewise.
13029 (get_output_file_with_visibility): Use filename_cmp
13032 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13034 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13037 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13039 * fold-const.c (expr_location_or): New function.
13040 (fold_truth_not_expr): Call it.
13042 2011-03-25 Jeff Law <law@redhat.com>
13044 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13046 * c-family/c-common.c (def_fn_type): Likewise.
13047 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13048 * emit-rtl.c (gen_rtvec): Likewise.
13049 * lto/lto-lang.c (def_fn_type): Likewise.
13051 2011-03-25 Richard Guenther <rguenther@suse.de>
13053 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13054 also generate copies.
13055 (fini_copy_prop): Handle constant values properly.
13057 2011-03-25 Jakub Jelinek <jakub@redhat.com>
13059 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13060 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13061 (hash_loc_operands, compare_loc_operands): Handle
13062 DW_OP_GNU_entry_value.
13064 2011-03-25 Kai Tietz <ktietz@redhat.com>
13066 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13067 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13068 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13069 comment and use macro TARGET_64BIT_MS_ABI instead.
13070 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13071 and change default behavior for 32-bit MS_ABI.
13072 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13073 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13075 (ix86_cfun_abi): Likewise.
13076 (ix86_maybe_switch_abi): Adjust comment.
13077 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13078 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13079 instead of checking for SYSV_ABI.
13080 (ix86_nsaved_sseregs): Likewise.
13081 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13083 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13084 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13085 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13086 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13087 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13089 2011-03-25 Richard Guenther <rguenther@suse.de>
13091 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13092 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13093 (verify_gimple): Remove.
13094 * tree-cfg.c (verify_gimple_call): Merge verification
13096 (verify_gimple_phi): Merge verification from verify_stmts.
13097 (verify_gimple_label): New function.
13098 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13099 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13100 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13101 (verify_stmts): Rename to verify_gimple_in_cfg.
13102 (verify_gimple_in_cfg): New function.
13103 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13104 * tree-ssa.c (verify_ssa): Likewise.
13105 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13107 2011-03-25 Richard Guenther <rguenther@suse.de>
13109 * passes.c (init_optimization_passes): Add FRE pass after
13112 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13113 Andrew Stubbs <ams@codesourcery.com>
13115 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13117 (arm_movdi_vfp_cortexa8): New pattern.
13118 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13119 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13120 instructions when tuning for Cortex-A8. Set attribute "arch".
13121 * config/arm/arm.md: Move include arm-tune.md up a bit.
13122 (define_attr "arch"): Add "onlya8" and "nota8" values.
13123 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13125 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13129 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13131 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13132 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13133 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13134 * passes.c (init_optimization_passes): Move
13135 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13137 2011-03-25 Kai Tietz <ktietz@redhat.com>
13139 * c-typeck.c (comptypes_internal): Replace target
13140 hook call of comp_type_attributes by version in tree.c file.
13141 * gimple.c (gimple_types_compatible_p_1): Likewise.
13142 * tree-ssa.c (useless_type_conversion_p): Likewise.
13143 * tree.c (build_type_attribute_qual_variant): Likewise.
13144 (attribute_value_equal): New static helper function.
13145 (comp_type_attributes): New function.
13146 (merge_attributes): Use attribute_value_equal for comparison.
13147 (attribute_list_contained): Likewise.
13148 * tree.h (comp_type_attributes): New prototype.
13150 2011-03-25 Richard Guenther <rguenther@suse.de>
13152 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13153 of complex types at -O0.
13154 (verify_gimple_assign_binary): Likewise.
13155 (verify_gimple_assign_ternary): Likewise.
13157 2011-03-24 Mark Wielaard <mjw@redhat.com>
13159 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13160 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13162 2011-03-24 Mark Wielaard <mjw@redhat.com>
13165 * dwarf2out.c (output_abbrev_section): Only write table when
13166 abbrev_die_table_in_use > 1.
13168 2011-02-24 Richard Henderson <rth@redhat.com>
13170 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13171 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13172 (alpha_expand_unaligned_load_words): Use extql.
13173 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13174 (emit_insxl): Handle all modes for consistency.
13176 2011-02-24 Richard Henderson <rth@redhat.com>
13178 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13179 (alpha_expand_unaligned_load): Likewise.
13180 (alpha_expand_unaligned_store): Likewise.
13181 (alpha_expand_unaligned_load_words): Likewise.
13182 (alpha_expand_unaligned_store_words): Likewise.
13183 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13184 (alpha_split_lock_test_and_set_12): Likewise.
13185 (print_operand, alpha_fold_builtin_extxx): Likewise.
13186 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13187 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13188 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13189 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13190 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13191 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13192 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13193 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13194 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13195 (extwl, extll, extql): Similarly.
13196 (inswh, inslh, insqh): Similarly.
13197 (mskbl, mskwl, mskll, mskql): Similarly.
13198 (mskwh, msklh, mskqh): Similarly.
13200 2011-02-24 Richard Henderson <rth@redhat.com>
13202 * config/alpha/alpha.md (attribute isa): Add er, ner.
13203 (attribute enabled): Handle them.
13204 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13206 2011-02-24 Richard Henderson <rth@redhat.com>
13208 * config/alpha/alpha.md (attribute isa): Add vms.
13209 (attribute enabled): Handle it.
13210 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13211 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13212 (*movtf): Rename from *movtf_internal for consistency.
13213 (*movsi): Merge with *movsi_nt_vms.
13214 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13215 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13216 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13217 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13219 2011-02-24 Richard Henderson <rth@redhat.com>
13221 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13222 (extendqisi2, extendhisi2): Likewise.
13223 (extendqidi2): Simplify BWX/non-BWX expansions.
13224 (extendhidi2): Similarly.
13226 2011-02-24 Richard Henderson <rth@redhat.com>
13228 * config/alpha/alpha.md (attribute isa): New.
13229 (attribute enabled): New.
13230 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13231 (zero_extendqisi2, zero_extendqidi2): Similarly.
13232 (zero_extendhisi2, zero_extendhidi2): Similarly.
13233 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13235 2011-02-24 Richard Henderson <rth@redhat.com>
13237 * config/alpha/predicates.md (input_operand): Revert last change;
13238 update comment to mention 32-bit VMS rather than Windows.
13240 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13242 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13243 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13244 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13245 * passes.c (init_optimization_passes): Move
13246 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13248 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13250 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13252 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13254 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13257 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13260 * simplify-rtx.c (simplify_const_unary_operation): Call
13261 real_convert when changing mode class with FLOAT_EXTEND.
13263 2011-03-24 Nick Clifton <nickc@redhat.com>
13265 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13266 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13267 * config/rx/rx.c (rx_option_override): Set align_jumps,
13268 align_loops and align_labels if not set by the user.
13269 (rx_align_for_label): New function.
13270 (rx_max_skip_for_label): New function.
13271 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13272 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13273 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13274 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13275 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13277 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13279 PR rtl-optimization/48263
13280 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13281 and original commutative_p handling. Use maybe_gen_insn.
13283 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13285 * reload.c (find_reloads_subreg_address): Add address_reloaded
13286 parameter and return true there if the full address has been
13288 (find_reloads_toplev): Pass address_reloaded flag.
13289 (find_reloads_address_1): Don't use address_reloaded parameter.
13291 2011-03-24 Jeff Law <law@redhat.com>
13293 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13294 unused variable "ann".
13295 (remove_unused_locals): Likewise.
13297 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13300 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13303 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13305 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13306 for invalid symbolic addresses.
13307 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13310 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13312 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13313 the argument in calls to fold_truth_not_expr.
13315 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13317 * tree.c (record_node_allocation_statistics): New function.
13318 (make_node_stat, copy_node_stat, build_string): Call it.
13319 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13320 (build1_stat, build_omp_clause): Likewise.
13322 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13324 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13327 2011-03-24 Richard Guenther <rguenther@suse.de>
13329 PR tree-optimization/48271
13330 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13331 blocks that still exist.
13333 2011-03-24 Richard Guenther <rguenther@suse.de>
13335 PR tree-optimization/48270
13336 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13337 not free datarefs before ddrs.
13339 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13341 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13342 from the address built for a reference with variable offset.
13344 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13347 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13348 alternatives that can be handled with movq or movabsq insn.
13349 (*movdf_internal): Disable for !TARGET_64BIT.
13350 (*movdf_internal_nointeger): Ditto.
13351 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13353 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13355 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13356 (FUNCTION_ARG_ADVANCE): Likewise.
13357 * tm.texi.in: Change references to them to hook references.
13358 * tm.texi: Regenerate.
13359 * targhooks.c (default_function_arg): Eliminate check for target macro.
13360 (default_function_incoming_arg): Likewise.
13361 (default_function_arg_advance): Likewise.
13362 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13363 (function_arg_advance): Likewise.
13364 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13366 2011-03-24 Richard Guenther <rguenther@suse.de>
13368 PR middle-end/48269
13369 * tree-object-size.c (addr_object_size): Do not double-account
13370 for MEM_REF offsets.
13372 2011-03-24 Diego Novillo <dnovillo@google.com>
13374 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13375 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13376 (lto_input_data_block): Move from lto-opts.c. Make extern.
13378 (lto_input_string): Rename from input_string. Make extern.
13380 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13381 output_string_with_length.
13382 Output 0 to indicate a non-NULL string. Update all callers to
13384 (lto_output_string): Rename from output_string. Make extern.
13386 (lto_output_decl_state_streams): Make extern.
13387 (lto_output_decl_state_refs): Make extern.
13388 * lto-streamer.h (lto_input_string): Declare.
13389 (lto_input_data_block): Declare.
13390 (lto_output_string): Declare.
13391 (lto_output_string_with_length): Declare.
13392 (lto_output_decl_state_streams): Declare.
13393 (lto_output_decl_state_refs): Declare.
13395 2011-03-24 Richard Guenther <rguenther@suse.de>
13397 PR tree-optimization/46562
13398 * tree.c (build_invariant_address): New function.
13399 * tree.h (build_invariant_address): Declare.
13400 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13401 a renamed function moved ...
13402 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13403 Take valueization callback parameter.
13404 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13405 * gimple-fold.h: New file.
13406 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13407 (ccp_fold, fold_const_aggregate_ref,
13408 fold_ctor_reference, fold_nonarray_ctor_reference,
13409 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13410 get_base_constructor): Move ...
13411 * gimple-fold.c: ... here.
13412 (gimple_fold_stmt_to_constant_1): New function
13413 split out from ccp_fold. Take a valueization callback parameter.
13414 Valueize all operands.
13415 (gimple_fold_stmt_to_constant): New wrapper function.
13416 (fold_const_aggregate_ref_1): New function split out from
13417 fold_const_aggregate_ref. Take a valueization callback parameter.
13418 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13419 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13420 invariant POINTER_PLUS_EXPRs to invariant form.
13421 (vn_valueize): New function.
13422 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13423 * tree-vrp.c (vrp_valueize): New function.
13424 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13425 to fold statements to constants.
13426 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13427 function declarations.
13428 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13429 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13431 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13433 * config/h8300/predicates.md (jump_address_operand): Fix register
13436 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13438 * doc/invoke.texi (max-stores-to-sink): Document.
13439 * params.h (MAX_STORES_TO_SINK): Define.
13440 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13441 if either vectorization or if-conversion is disabled.
13442 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13443 tree-vect-data-refs.c vect_equal_offsets.
13444 (dr_equal_offsets_p): New function.
13445 (find_data_references_in_bb): Remove static.
13446 * tree-data-ref.h (find_data_references_in_bb): Declare.
13447 (dr_equal_offsets_p): Likewise.
13448 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13449 (vect_drs_dependent_in_basic_block): Update calls to
13450 vect_equal_offsets.
13451 (vect_check_interleaving): Likewise.
13452 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13453 (cond_if_else_store_replacement): Rename to...
13454 (cond_if_else_store_replacement_1): ... this. Change arguments and
13456 (cond_if_else_store_replacement): New function.
13457 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13458 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13460 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13463 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13464 to subtract lower bound instead of GEN_INT().
13466 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13471 * doc/extend.texi (Alignment): Move section to match order in TOC.
13472 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13473 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13475 2011-03-23 Jeff Law <law@redhat.com>
13477 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13478 before removing the edge.
13480 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13481 it may have been freed by redirect_branch_edge or
13482 redirect_edge_succ_nodup.
13484 2011-03-23 Richard Guenther <rguenther@suse.de>
13486 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13487 (check_va_list_escapes): Likewise.
13488 (check_all_va_list_escapes): Likewise.
13490 2011-03-23 Richard Guenther <rguenther@suse.de>
13492 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13493 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13494 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13495 (alias.o): Likewise.
13496 (ipa-type-escape.o): Remove.
13497 (ipa-struct-reorg.o): Likewise.
13498 (GTFILES): Remove ipa-struct-reorg.c.
13499 * alias.c: Do not include ipa-type-escape.h.
13500 * tree-ssa-alias.c: Likewise.
13501 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13502 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13503 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13504 and ipa-type-escape passes.
13505 * tree-pass.h (pass_ipa_type_escape): Remove.
13506 (pass_ipa_struct_reorg): Likewise.
13507 * ipa-struct-reorg.h: Remove.
13508 * ipa-struct-reorg.c: Likewise.
13509 * ipa-type-escape.h: Likewise.
13510 * ipa-type-escape.c: Likewise.
13511 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13512 (--param struct-reorg-cold-struct-ratio): Likewise.
13513 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13514 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13515 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13517 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13519 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13520 cpu attribute value.
13521 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13522 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13523 * config/s390/s390.c (processor_flags_table): New constant array.
13524 (s390_handle_arch_option): Remove.
13525 (s390_handle_option): Remove s390_handle_arch_option invocations
13526 and OPT_mwarn_framesize_ handling.
13527 (s390_option_override): Remove s390_handle_arch_option invocation.
13528 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13530 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13531 * config/s390/s390.opt (s390_tune, s390_arch)
13532 (march=): Replace s390_arch_option enum and values with
13533 processor_type. Set variable name to s390_arch. Set
13534 initialization value.
13535 (mtune=): Replace s390_arch_option with processor_type. Set
13536 variable name to s390_tune. Set initialization value.
13538 2011-03-23 Julian Brown <julian@codesourcery.com>
13540 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13541 accesses which are not naturally aligned.
13543 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13546 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13548 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13550 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13551 parameter from "int" to "enum insn_code".
13552 (expand_operand_type): New enum.
13553 (expand_operand): New structure.
13554 (create_expand_operand): New function.
13555 (create_fixed_operand, create_output_operand): Likewise
13556 (create_input_operand, create_convert_operand_to): Likewise.
13557 (create_convert_operand_from, create_address_operand): Likewise.
13558 (create_integer_operand): Likewise.
13559 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13560 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13561 (expand_insn, expand_jump_insn): Likewise.
13562 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13563 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13564 (expand_movstr, expand_builtin___clear_cache): Likewise.
13565 (expand_builtin_lock_release): Likewise.
13566 * explow.c (allocate_dynamic_stack_space): Likewise.
13567 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13568 and use the default handling in that case.
13569 * expmed.c (check_predicate_volatile_ok): Delete.
13570 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13571 (emit_cstore): Likewise.
13572 * expr.c (emit_block_move_via_movmem): Likewise.
13573 (set_storage_via_setmem, expand_assignment): Likewise.
13574 (emit_storent_insn, try_casesi): Likewise.
13575 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13576 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13577 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13578 (expand_twoval_unop, expand_twoval_binop): Likewise.
13579 (expand_unop_direct, emit_indirect_jump): Likewise.
13580 (emit_conditional_move, vector_compare_rtx): Likewise.
13581 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13582 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13583 (expand_sync_lock_test_and_set): Likewise.
13584 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13585 (emit_unop_insn): Likewise.
13586 (expand_copysign_absneg): Change icode to an insn_code.
13587 (create_convert_operand_from_type): New function.
13588 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13589 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13590 (expand_insn, expand_jump_insn): Likewise.
13591 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13592 than const_int_operand for operand 2.
13594 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13596 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13599 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13601 * emit-rtl.c (emit_pattern_before_noloc): New function.
13602 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13603 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13604 (emit_pattern_after_noloc): New function.
13605 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13606 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13608 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13610 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13611 (__ffsDI2): Likewise.
13613 2011-03-22 Richard Henderson <rth@redhat.com>
13615 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13616 of !TARGET_ABI_OPEN_VMS.
13617 (alpha_trampoline_init, alpha_start_function): Likewise.
13618 (alpha_expand_epilogue, alpha_file_start): Likewise.
13619 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13620 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13621 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13622 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13623 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13625 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13627 * config/s390/s390-opts.h: New.
13628 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13629 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13630 s390_stack_guard): Remove.
13631 (s390_handle_arch_option): Return void. Take enum
13632 s390_arch_option value instead of string and searching array.
13633 (s390_handle_option): Don't assert that global structures are in
13634 use. Access variables via opts pointer. Use error_at. Don't use
13635 sscanf for -mstack-guard= or -mstack-size=. Update call to
13636 s390_handle_arch_option.
13637 (s390_option_override): Update call to s390_handle_arch_option.
13638 (s390_emit_prologue): Use %d format for s390_stack_size in
13639 diagnostic. Use %wd for HOST_WIDE_INT.
13640 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13641 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13642 * config/s390/s390.opt (config/s390/s390-opts.h): New
13643 HeaderInclude entry.
13644 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13645 s390_arch_flags, s390_warn_framesize): New Variable entries.
13646 (s390_arch_option): New Enum and EnumValue entries.
13647 (march=): Use Enum instead of Var.
13648 (mstack-guard=, mstack-size=): Use UInteger and Var.
13649 (mtune=): Use Enum.
13651 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13653 * config/score/score.c (score_handle_option): Don't assert that
13654 global structures are in use. Access target_flags via opts
13655 pointer. Use value of -march= option to determine target_flags
13657 * config/score/score.opt (march=): Use Enum.
13658 (score_arch): New Enum and EnumValue entries.
13660 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13662 * config/mep/mep.c (option_mtiny_specified): Remove.
13663 (mep_option_override): Move register handling for -mivc2 from
13664 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13665 instead of option_mtiny_specified.
13666 (mep_handle_option): Access target_flags via opts pointer. Don't
13667 assert that global structures are in use. Defer part of -mivc2
13668 handling and move it to mep_option_override.
13669 * config/mep/mep.opt (IVC2): New Mask entry.
13670 (mivc2): Use Var and Defer instead of Mask.
13672 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13674 * config/v850/v850-opts.h: New.
13675 * config/v850/v850.c (small_memory): Replace with
13676 small_memory_physical_max array. Make that array static const.
13677 (v850_handle_memory_option): Take integer value of argument. Take
13678 gcc_options pointer, option text and location. Return void.
13679 Update for changes to small memory structures.
13680 (v850_handle_option): Access target_flags via opts pointer. Don't
13681 assert that global structures are in use. Update calls to
13682 v850_handle_memory_option.
13683 (v850_encode_data_area): Update references to small memory settings.
13684 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13685 (enum small_memory_type): Move to v850-opts.h.
13686 * config/v850/v850.opt (config/v850/v850-opts.h): New
13687 HeaderInclude entry.
13688 (small_memory_max): New Variable entry.
13689 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13690 (mtda, mzda): Likewise.
13692 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13694 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13695 pointer. Don't assert that global structures are in use.
13697 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13699 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13700 via opts pointer. Don't assert that global structures are in use.
13702 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13704 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13705 (munix=93): Use Var.
13706 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13707 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13708 * config/pa/pa-opts.h: New.
13709 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13710 (pa_handle_option): Don't assert that global structures are in
13711 use. Access target_flags via opts pointer. Don't handle
13712 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13714 (pa_option_override): Handle deferred OPT_mfixed_range_.
13716 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13718 * config/mn10300/mn10300-opts.h: New.
13719 * config/mn10300/mn10300.c (mn10300_processor,
13720 mn10300_tune_string): Remove.
13721 (mn10300_handle_option): Don't assert that global structures are
13722 in use. Access mn10300_processor via opts pointer. Don't handle
13724 * config/mn10300/mn10300.h (enum processor_type): Move to
13726 (mn10300_processor): Remove.
13727 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13728 HeaderInclude entry.
13729 (mn10300_processor): New Variable entry.
13732 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13734 * config/microblaze/microblaze.c: Don't include opts.h.
13735 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13736 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13737 (mno-clearbss): Use Var and Warn.
13739 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13741 * config/m32r/m32r-opts.h: New.
13742 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13743 (m32r_handle_option): Don't assert that global structures are in
13744 use. Access target_flags and m32r_cache_flush_func via opts
13745 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13746 OPT_mno_flush_trap here.
13747 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13748 include of m32r-opts.h.
13749 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13750 HeaderInclude entry.
13751 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13752 (mmodel=): Use Enum and Var.
13753 (m32r_model): New Enum and EnumValue entries.
13754 (mno-flush-trap): Use Var.
13755 (msdata=): Use Enum and Var.
13756 (m32r_sdata): New Enum and EnumValue entries.
13758 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13760 * config/m32c/m32c.c: Don't include opts.h.
13761 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13762 m32c_handle_option): Remove.
13763 (m32c_option_override): Check global_options_set.x_target_memregs
13764 instead of target_memregs_set.
13765 * config/m32c/m32c.h (target_memregs): Remove.
13766 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13769 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13771 * config/iq2000/iq2000-opts.h: New.
13772 * config/iq2000/iq2000.c: Don't include opts.h.
13773 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13774 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13775 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13776 HeaderInclude entry.
13777 (iq2000_tune): New Variable entry.
13778 (march=): Add comment. Use Enum.
13779 (iq2000_arch): New Enum and EnumValue entries.
13780 (mcpu=): Use Enum and Var.
13781 (iq2000_tune): New Enum and EnumValue entries.
13783 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13785 * config/ia64/ia64-opts.h: New.
13786 * config/ia64/ia64.c (ia64_tune): Remove.
13787 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13788 here. Use error_at.
13789 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13790 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13791 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13792 HeaderInclude entry.
13793 (ia64_tune): New Variable entry.
13794 (mfixed-range=): Use Defer and Var.
13795 (mtune=): Use Enum and Var.
13796 (ia64_tune): New Enum and EnumValue entries.
13798 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13800 * config/frv/frv-opts.h: New.
13801 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13803 (frv_cpu_type): Remove.
13804 * config/frv/frv.c: Don't include opts.h.
13805 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13806 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13807 (frv_cpu_type): New Variable entry.
13808 (frv_cpu): New Enum and EnumValue entries.
13810 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13812 * config/cris/cris.c (cris_handle_option): Access target_flags via
13813 opts pointer. Don't assert that global structures are in use.
13814 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13815 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13817 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13819 * config/bfin/bfin-opts.h: New.
13820 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13821 bfin_si_revision, bfin_workarounds): Remove.
13822 (bfin_cpus): Make static const.
13823 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13824 not bfin_lib_id_given.
13825 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13826 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13827 pointer. Use error_at. Don't assert that global structures are in use.
13828 * config/bfin/bfin.h: Include bfin-opts.h.
13829 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13830 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13831 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13832 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13835 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13837 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13838 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13839 or -msoft-float here.
13840 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13841 -msoft-float and -mhard-float.
13842 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13843 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13845 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13847 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13848 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13850 (LIBGCC_SPEC): Don't handle -msoft-float.
13851 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13853 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13855 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13856 -mfloat-abi=*, not -msoft-float and -mhard-float.
13857 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13859 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13860 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13861 mhard-float and msoft-float.
13862 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13863 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13864 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13865 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13867 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13868 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13870 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13872 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13875 2011-03-22 Richard Henderson <rth@redhat.com>
13877 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13878 TARGET_ABI_WINDOWS_NT.
13879 (alpha_output_function_end_prologue): Likewise.
13880 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13881 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13882 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13883 (trap, *movsi_nt_vms): Likewise.
13884 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13885 (*tablejump_osf_nt_internal): Remove.
13886 * config/alpha/predicates.md (input_operand): Only test Pmode.
13888 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13890 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13891 via opts pointer. Use error_at. Don't assert that global
13892 structures are in use.
13894 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13896 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13897 (ix86_handle_option): Access ix86_isa_flags and
13898 ix86_isa_flags_explicit via opts pointer. Don't assert that
13899 global structures are in use.
13900 (ix86_function_specific_save, ix86_function_specific_restore):
13901 Update ix86_isa_flags_explicit field name.
13902 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13903 (ix86_isa_flags_explicit): Rename TargetSave entry to
13904 x_ix86_isa_flags_explicit.
13906 2011-03-22 Richard Henderson <rth@redhat.com>
13908 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13909 (alpha_option_override, direct_return): Likewise.
13910 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13911 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13912 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13913 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13914 (alpha_expand_epilogue, alpha_end_function): Likewise.
13915 (alpha_init_libfuncs): Likewise.
13916 (struct machine_function): Remove unicosmk members.
13917 (print_operand) ['t']: Remove.
13918 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13919 unicosmk_output_module_name, unicosmk_output_common,
13920 current_section_align, unicosmk_output_text_section_asm_op,
13921 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13922 unicosmk_section_type_flags, unicosmk_unique_section,
13923 unicosmk_asm_named_section, unicosmk_insert_attributes,
13924 unicosmk_output_align, unicosmk_defer_case_vector,
13925 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13926 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13927 unicosmk_output_ssib, unicosmk_add_call_info_word,
13928 unicosmk_extern_head, unicosmk_output_default_externs,
13929 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13930 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13931 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13932 * config/alpha/alpha-protos.h: Update.
13933 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13934 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13935 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13936 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13937 (*mulsi_se, mulvsi3): Likewise.
13938 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13939 (*divmodsi_internal, call, call_value, realign): Likewise.
13940 (moddi3, umoddi3): Likewise; remove duplicate expander.
13941 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13942 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13943 (*movdi_nofix): Remove r/U alternative.
13944 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13945 * config/alpha/constraints.md ("U"): Remove.
13946 * config/alpha/predicates.md (call_operand"): Don't test
13947 TARGET_ABI_UNICOSMK.
13949 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13951 * target.def (handle_option): Take gcc_options and
13952 cl_decoded_option pointers and location_t.
13953 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13954 * doc/tm.texi: Regenerate.
13955 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13956 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13957 * lto-opts.c (lto_reissue_options): Generate option structure for
13958 targetm.handle_option call.
13959 * opts.c (target_handle_option): Update call to
13960 targetm.handle_option. Remove assertions about values now passed
13962 * targhooks.c (default_target_handle_option): New.
13963 * targhooks.h (default_target_handle_option): Declare.
13964 * config/alpha/alpha.c: Include opts.h.
13965 (alpha_handle_option): Update to new hook interface.
13966 * config/arm/arm.c: Include opts.h.
13967 (arm_handle_option): Update to new hook interface.
13968 * config/arm/t-arm (arm.o): Update dependencies.
13969 * config/bfin/bfin.c: Include opts.h.
13970 (bfin_handle_option): Update to new hook interface.
13971 * config/cris/cris.c: Include opts.h.
13972 (cris_handle_option): Update to new hook interface.
13973 * config/frv/frv.c: Include opts.h.
13974 (frv_handle_option): Update to new hook interface.
13975 * config/i386/i386.c: Include opts.h.
13976 (ix86_handle_option): Update to new hook interface.
13977 (ix86_valid_target_attribute_inner_p): Generate option structure
13978 for call to ix86_handle_option.
13979 * config/i386/t-i386 (i386.o): Update dependencies.
13980 * config/ia64/ia64.c: Include opts.h.
13981 (ia64_handle_option): Update to new hook interface.
13982 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13983 * config/iq2000/iq2000.c: Include opts.h.
13984 (iq2000_handle_option): Update to new hook interface.
13985 * config/m32c/m32c.c: Include opts.h.
13986 (m32c_handle_option): Update to new hook interface.
13987 * config/m32r/m32r.c: Include opts.h.
13988 (m32r_handle_option): Update to new hook interface.
13989 * config/m68k/m68k.c: Include opts.h.
13990 (m68k_handle_option): Update to new hook interface.
13991 * config/mep/mep.c: Include opts.h.
13992 (mep_handle_option): Update to new hook interface.
13993 * config/microblaze/microblaze.c: Include opts.h.
13994 (microblaze_handle_option): Update to new hook interface.
13995 * config/mips/mips.c: Include opts.h.
13996 (mips_handle_option): Update to new hook interface.
13997 * config/mn10300/mn10300.c: Include opts.h.
13998 (mn10300_handle_option): Update to new hook interface.
13999 * config/pa/pa.c: Include opts.h.
14000 (pa_handle_option): Update to new hook interface.
14001 * config/pdp11/pdp11.c: Include opts.h.
14002 (pdp11_handle_option): Update to new hook interface.
14003 * config/rs6000/rs6000.c: Include opts.h.
14004 (rs6000_handle_option): Update to new hook interface.
14005 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14006 * config/rx/rx.c: Include opts.h.
14007 (rx_handle_option): Update to new hook interface.
14008 * config/s390/s390.c: Include opts.h.
14009 (s390_handle_option): Update to new hook interface.
14010 * config/score/score.c: Include opts.h.
14011 (score_handle_option): Update to new hook interface.
14012 * config/sh/sh.c: Include opts.h.
14013 (sh_handle_option): Update to new hook interface.
14014 * config/sparc/sparc.c: Include opts.h.
14015 (sparc_handle_option): Update to new hook interface.
14016 * config/v850/v850.c: Include opts.h.
14017 (v850_handle_option): Update to new hook interface.
14019 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14021 * gcc.c (driver_unknown_option_callback): Only permit and save
14022 unknown -Wno- options.
14023 (driver_wrong_lang_callback): Save options directly instead of via
14024 driver_unknown_option_callback.
14026 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14028 * combine.c (simplify_set): Try harder to find the best CC mode when
14029 simplifying a nested COMPARE on the RHS.
14031 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14033 * config/alpha/gnu.h: Remove.
14034 * config/arc: Remove directory.
14035 * config/arm/netbsd.h: Remove.
14036 * config/arm/t-pe: Remove.
14037 * config/crx: Remove directory.
14038 * config/i386/netbsd.h: Remove.
14039 * config/m68hc11: Remove directory.
14040 * config/m68k/uclinux-oldabi.h: Remove.
14041 * config/mcore/mcore-pe.h: Remove.
14042 * config/mcore/t-mcore-pe: Remove.
14043 * config/netbsd-aout.h: Remove.
14044 * config/rs6000/gnu.h: Remove.
14045 * config/sh/sh-symbian.h: Remove.
14046 * config/sh/symbian-base.c: Remove.
14047 * config/sh/symbian-c.c: Remove.
14048 * config/sh/symbian-cxx.c: Remove.
14049 * config/sh/symbian-post.h: Remove.
14050 * config/sh/symbian-pre.h: Remove.
14051 * config/sh/t-symbian: Remove.
14052 * config/svr3.h: Remove.
14053 * config/vax/netbsd.h: Remove.
14054 * config.build: Don't handle i[34567]86-*-pe.
14055 * config.gcc: Remove handling of deprecations for most deprecated
14057 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14058 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14059 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14060 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14061 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14062 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14064 * config.host: Don't handle i[34567]86-*-pe.
14065 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14066 (ASM_SPEC32): Don't handle -mcall-gnu.
14067 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14069 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14070 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14071 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14072 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14073 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14074 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14075 conditional on SYMBIAN.
14076 * configure.ac: Don't handle powerpc*-*-gnu*.
14077 * configure: Regenerate.
14078 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14079 * doc/install-old.texi (m6811, m6812): Don't mention.
14080 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14081 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14082 (m68k-uclinuxoldabi): Don't mention.
14083 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14085 (-mcall-gnu): Remove.
14086 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14087 families): Remove constraint documentation.
14089 2011-03-22 Marius Strobl <marius@FreeBSD.org>
14091 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14092 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14093 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14095 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14098 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14099 vector when peeking at the next token for vector, don't expand the
14102 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
14104 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14105 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14106 * config/avr/avr.c (init_cumulative_args)
14107 (avr_function_arg_advance): Use it.
14108 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14110 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14111 (avr_function_ok_for_sibcall): ...this new function.
14112 (avr_lookup_function_attribute1): New static Function.
14113 (avr_naked_function_p, interrupt_function_p)
14114 (signal_function_p, avr_OS_task_function_p)
14115 (avr_OS_main_function_p): Use it.
14116 * config/avr/avr.md ("sibcall", "sibcall_value")
14117 ("sibcall_epilogue"): New expander.
14118 ("*call_insn", "*call_value_insn"): New insn.
14119 ("call_insn", "call_value_insn"): Remove
14120 ("call", "call_value", "epilogue"): Change expander to handle
14123 2011-03-21 Nick Clifton <nickc@redhat.com>
14125 * doc/invoke.texi (Overall Options): Move closing brace to end of
14127 (Optimization Options): Add missing @gol.
14128 (Directory Options): Likewise.
14129 (i386 and x86-64 Options): Likewise.
14130 (RS6000 and PowerPC Options): Likewise.
14131 (i386 and x86-64 Windows Options): Likewise.
14132 (V850 Options): Add text missing from descriptions.
14134 2011-03-22 Richard Henderson <rth@redhat.com>
14136 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14137 (avr_incoming_return_addr_rtx): New.
14138 (emit_push_byte): New.
14139 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14140 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14141 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14142 (emit_pop_byte): New.
14143 (expand_epilogue): Use it. Pop frame pointer by bytes.
14144 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14145 (INCOMING_RETURN_ADDR_RTX): New.
14146 (INCOMING_FRAME_SP_OFFSET): New.
14147 (ARG_POINTER_CFA_OFFSET): New.
14148 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14149 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14152 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14154 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14156 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14157 (FUNCTION_ARG_ADVANCE): Likewise.
14158 * tm.texi.in: Change references to them to hook references.
14159 * tm.texi: Regenerate.
14160 * targhooks.c (default_function_arg): Eliminate check for target
14162 (default_function_incoming_arg): Likewise.
14163 (default_function_arg_advance): Likewise.
14164 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14165 (function_arg_advance): Likewise.
14166 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14168 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14170 * tree.c (build_call_1): New function.
14171 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14173 2011-03-22 Richard Guenther <rguenther@suse.de>
14175 PR tree-optimization/48228
14176 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14177 for single-arg PHIs.
14179 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14181 PR rtl-optimization/48143
14182 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14183 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14184 sse2_cvtps2pd): Likewise.
14186 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14188 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14190 2011-03-22 Richard Guenther <rguenther@suse.de>
14192 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14193 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14194 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14195 and REALIGN_LOAD_EXPR.
14196 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14197 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14198 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14199 DOT_PROD_EXPR case ...
14200 (expand_expr_real_2): ... here.
14201 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14202 and REALIGN_LOAD_EXPR.
14203 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14204 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14205 (vect_create_epilog_for_reduction): Likewise.
14206 (vectorizable_reduction): Likewise.
14207 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14208 * tree-vect-stmts.c (vectorizable_load): Likewise.
14210 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14212 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14214 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14216 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14217 handling for PLTOFF/GOTOFF.
14219 2011-03-22 Nick Clifton <nickc@redhat.com>
14221 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14222 trailing backslash from the end of the macro definition.
14224 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14226 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14229 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14231 * expr.h (prepare_operand): Move to...
14232 * optabs.h (prepare_operand): ...here and change the insn code
14233 parameter from "int" to "enum insn_code".
14234 (insn_operand_matches): Declare.
14235 * expr.c (init_expr_target): Use insn_operand_matches.
14236 (compress_float_constant): Likewise.
14237 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14238 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14239 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14240 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14242 (gen_cond_trap): Likewise.
14243 (prepare_operand): Likewise. Change icode to an insn_code.
14244 (insn_operand_matches): New function.
14245 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14246 * reload1.c (gen_reload): Likewise.
14247 * targhooks.c (default_secondary_reload): Likewise.
14249 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14251 * config/alpha/alpha.md (unspec): New define_c_enum.
14254 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14257 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14258 between a call and its CALL_ARG_LOCATION note.
14260 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14262 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14264 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14268 * c-common.c (shorten_compare): If primopN is first sign-extended
14269 to opN and then zero-extended to result type, set primopN to opN.
14271 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14273 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14274 for barrier handlers.
14276 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14278 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14279 UNSPEC constants to be in the unspec enumeration, and redefine
14280 all UNSPECV constants to be in the unspecv enumeration, so that
14281 dumps print which unspec/unspec_volatile this is.
14282 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14283 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14284 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14285 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14286 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14288 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14289 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14290 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14291 * config/rs6000/sync.md (isync, lwsync): Ditto.
14293 2011-03-21 Richard Guenther <rguenther@suse.de>
14295 * params.def (lto-min-partition): Fix typo.
14297 2011-03-21 Richard Guenther <rguenther@suse.de>
14300 * c-decl.c (grokdeclarator): Drop to the main variant only
14301 for array types. Drop flag_gen_aux_info check.
14303 2011-03-21 Richard Guenther <rguenther@suse.de>
14305 PR translation/47911
14306 * params.def (lto-partitions): Fix typo.
14307 (lto-min-partition): Fix wording.
14309 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14311 * config/rs6000/t-freebsd: Remove duplication from file.
14313 2011-03-21 Richard Guenther <rguenther@suse.de>
14315 PR middle-end/47661
14316 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14318 2011-03-21 Richard Guenther <rguenther@suse.de>
14321 * params.def (lto-partitions): Require at least 1 partition.
14323 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14325 * gthr-solaris.h: Remove.
14326 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14327 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14328 (LIB_SPEC): Likewise.
14329 * config/sol2.opt (threads): Remove.
14330 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14331 (sparc*-*-solaris2*): Likewise.
14332 * configure.ac (enable_threads): Enable solaris support.
14333 * configure: Regenerate.
14334 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14335 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14338 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14340 * config.gcc: Obsolete *-*-solaris2.8*.
14341 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14343 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14346 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14347 reference. Solaris 8 perl works.
14349 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14352 * doc/install.texi (Prerequisites): Move jar etc. up.
14353 Explain support library version requirements.
14355 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14358 * doc/install.texi (Prerequisites): Move Perl to build
14359 requirements. Always necessary on Solaris 2 with Sun ld.
14361 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14363 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14365 (Specific, i?86-*-solaris2.[89]): Likewise.
14366 (Specific, i?86-*-solaris2.10): Likewise.
14367 (Specific, mips-sgi-irix6): Likewise.
14368 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14369 Update for binutils 2.21.
14371 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14373 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14374 Allow -fuse-linker-plugin for non-default plugin linker.
14375 * configure: Regenerate.
14377 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14380 * gengtype.c (files_rules): Added rule for cp/parser.h.
14382 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14385 * config/s390/s390.c (s390_delegitimize_address): Don't call
14386 lowpart_subreg if orig_x has BLKmode.
14388 2011-03-21 Kai Tietz <ktietz@redhat.com>
14391 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14392 * tree.h (attribute_spec): Add new member affects_type_identity.
14393 * attribs.c (empty_attribute_table): Adjust attribute_spec
14395 * config/alpha/alpha.c: Likewise.
14396 * config/arc/arc.c: Likewise.
14397 * config/arm/arm.c: Likewise.
14398 * config/avr/avr.c: Likewise.
14399 * config/bfin/bfin.c: Likewise.
14400 * config/crx/crx.c: Likewise.
14401 * config/darwin.h: Likewise.
14402 * config/h8300/h8300.c: Likewise.
14403 * config/i386/cygming.h: Likewise.
14404 * config/i386/i386.c: Likewise.
14405 * config/ia64/ia64.c: Likewise.
14406 * config/m32c/m32c.c: Likewise.
14407 * config/m32r/m32r.c: Likewise.
14408 * config/m68hc11/m68hc11.c: Likewise.
14409 * config/m68k/m68k.c: Likewise.
14410 * config/mcore/mcore.c: Likewise.
14411 * config/mep/mep.c: Likewise.
14412 * config/microblaze/microblaze.c: Likewise.
14413 * config/mips/mips.c: Likewise.
14414 * config/rs6000/rs6000.c: Likewise.
14415 * config/rx/rx.c: Likewise.
14416 * config/sh/sh.c: Likewise.
14417 * config/sol2.h: Likewise.
14418 * config/sparc/sparc.c: Likewise.
14419 * config/spu/spu.c: Likewise.
14420 * config/stormy16/stormy16.c: Likewise.
14421 * config/v850/v850.c: Likewise.
14423 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14425 * simplify-rtx.c (simplify_binary_operation_1): Handle
14426 (xor (and A B) C) case when B and C are both constants.
14428 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14430 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14432 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14435 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14437 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14439 PR rtl-optimization/48156
14440 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14441 assume df and df_lr are not NULL.
14443 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14446 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14447 between a call and its CALL_ARG_LOCATION note.
14449 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14452 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14453 between a call and its corresponding CALL_ARG_LOCATION note.
14455 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14457 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14458 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14459 * haifa-sched.c (setup_ref_regs): Ditto.
14460 * caller-save.c (add_used_regs_1): Ditto.
14461 * dse.c (look_for_hardregs): Ditto.
14462 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14463 * sched-rgn.c (check_live_1): Ditto.
14465 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14467 * c-decl.c (diagnose_mismatched_decls): Give an error for
14468 redefining a typedef with variably modified type.
14470 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14472 * c-decl.c (grokfield): Don't allow typedefs for structures or
14473 unions with no tag by default.
14474 * doc/extend.texi (Unnamed Fields): Update.
14476 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14478 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14479 Rewrite using indirect functions.
14480 (lwp_slwpcb): Ditto.
14481 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14482 (avx_vinsertf128<mode>): Ditto.
14484 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14486 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14489 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14491 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14492 splitting between a call and its corresponding CALL_ARG_LOCATION note.
14494 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14496 PR rtl-optimization/48170
14497 * gcse.c (hoist_code): Remove bogus asserts.
14499 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
14501 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14502 computation for prologue/epilogue.
14504 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14506 * Makefile.in (check-consistency): Remove.
14508 2011-03-18 Jakub Jelinek <jakub@redhat.com>
14511 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14512 arange_table_in_use is 0, but either text_section_used or
14513 cold_text_section_used is true. Don't call it if
14514 !info_section_emitted.
14516 2011-03-18 Anatoly Sokolov <aesok@post.ru>
14518 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14519 FUNCTION_VALUE_REGNO_P): Remove.
14520 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14522 * config/avr/avr.c (avr_ret_register): Make static inline.
14523 (avr_function_value_regno_p): New function.
14524 (avr_libcall_value): Make static. Add 'func' argument.
14525 (avr_function_value): Make static. Rename 'func' argument to
14526 'fn_decl_or_type', forward it to avr_libcall_value. Call
14527 avr_ret_register function instead of RET_REGISTER macro.
14528 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14530 2011-03-18 Jason Merrill <jason@redhat.com>
14533 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14535 2011-03-18 Richard Guenther <rguenther@suse.de>
14537 * doc/install.texi (--enable-gold): Remove.
14538 (--with-plugin-ld): Document.
14539 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14541 2011-03-18 Andrew Pinski <pinskia@gmail.com>
14543 PR middle-end/47790
14544 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14545 again after expansion changes.
14547 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14549 * combine.c (try_combine): Do simplification only call of
14550 subst() on i2 even when i1 is present. Update comments.
14552 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14554 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14555 and UNSPEC_PCREL_SYMOFF.
14557 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14559 * config/s390/s390.md: Use define_c_enum for the unspec constant
14562 2011-03-18 Richard Henderson <rth@redhat.com>
14563 Jakub Jelinek <jakub@redhat.com>
14566 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14567 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14569 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14571 PR middle-end/47725
14572 * combine.c (cant_combine_insn_p): Don't check zero/sign
14573 extended hard registers.
14575 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14577 PR middle-end/47725
14578 * combine.c (cant_combine_insn_p): Check zero/sign extended
14581 2011-03-17 Anatoly Sokolov <aesok@post.ru>
14583 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14584 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14585 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14586 Change return type to bool.
14587 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14589 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14592 * var-tracking.c (prepare_call_arguments): If CALL target
14593 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14594 pc instead of looking it up using cselib_lookup and use
14595 Pmode for it if x has VOIDmode.
14596 * dwarf2out.c (gen_subprogram_die): If also both first and
14597 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14600 * function.c (assign_parms): For data.passed_pointer parms
14601 use MEM of data.entry_parm instead of data.entry_parm itself
14602 as DECL_INCOMING_RTL.
14603 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14604 also when passed and declared mode is the same, DECL_RTL
14605 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14608 2011-03-16 Jeff Law <law@redhat.com>
14610 PR rtl-optimization/37273
14611 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14612 handle them like argument loads from stack slots. Do not double
14613 count memory for memory constants and argument loads from stack slots.
14615 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14618 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14620 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14623 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14625 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14628 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14630 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14631 Clear call_arg_locations and call_arg_loc_last always.
14633 PR middle-end/48152
14634 * var-tracking.c (prepare_call_arguments): If argument needs to be
14635 passed by reference, adjust argtype and mode.
14637 2011-03-17 Richard Guenther <rguenther@suse.de>
14639 PR middle-end/48134
14640 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14641 a value make sure to fold the statement.
14643 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14646 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14647 return condition with !cfun->calls_alloca.
14649 2011-03-17 Richard Guenther <rguenther@suse.de>
14652 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14653 origin for decls in other ltrans units.
14654 (input_varpool_node): Likewise.
14656 2011-03-17 Richard Guenther <rguenther@suse.de>
14658 PR middle-end/48165
14659 * tree-object-size.c (compute_object_offset): Properly return
14660 the offset operand of MEM_REFs as sizetype.
14662 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14664 PR rtl-optimization/48141
14665 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14666 * dse.c: Include params.h.
14667 (active_local_stores_len): New variable.
14668 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14670 (record_store, check_mem_read_rtx): Decrease it when removing
14672 (scan_insn): Likewise. Increase it when adding to chain, if it
14673 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14674 set active_local_stores to NULL before the addition.
14675 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14677 PR rtl-optimization/48141
14678 * dse.c (record_store): If no positions are needed in an insn
14679 that cannot be deleted, at least unchain it from active_local_stores.
14681 2011-03-16 Dodji Seketeli <dodji@redhat.com>
14684 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14685 (lookup_type_die_strip_naming_typedef): ... here.
14686 (get_context_die): Use it.
14687 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14688 the anonymous struct named by the naming typedef.
14690 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14693 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14694 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14696 2011-03-16 Jeff Law <law@redhat.com>
14698 * tree-vrp.c (identify_jump_threads): Slightly simplify type
14699 check for operands of conditional. Allow type to be a pointer.
14701 2011-03-16 Richard Guenther <rguenther@suse.de>
14703 PR tree-optimization/48149
14704 * fold-const.c (fold_binary_loc): Fold
14705 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14707 2011-03-16 Richard Guenther <rguenther@suse.de>
14709 PR tree-optimization/26134
14710 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14711 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14712 (non_rewritable_mem_ref_base): Handle complex type component
14713 accesses, constrain offsets for vector and complex extracts
14716 2011-03-16 Richard Guenther <rguenther@suse.de>
14718 PR tree-optimization/48146
14719 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14720 operands avoiding the need for renaming.
14722 2011-03-16 Richard Guenther <rguenther@suse.de>
14724 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14725 constant folding. Move MEM_REF canonicalization first.
14726 Rely on fold_const_aggregate_ref for initializer folding.
14727 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14729 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14731 PR middle-end/48136
14732 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14733 arg0/arg1 or their arguments are always fold converted to matching
14736 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14739 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14742 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14743 Handle in-tree gold.
14744 (ld_vers): Extract binutils version for gold.
14745 (gcc_cv_ld_hidden): Handle gold here.
14746 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14747 * configure: Regenerate.
14748 * config.in: Regenerate.
14749 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14750 -fuse-linker-plugin otherwise.
14751 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14752 (LINK_COMMAND_SPEC): Use it.
14753 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14755 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14757 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14758 * calls.c: Remove debug.h include.
14759 (emit_call_1): Don't call virtual_call_token debug hook.
14760 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14761 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14762 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14763 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14764 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14765 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14766 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14767 dwarf2out_virtual_call): Remove.
14768 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14769 copy_call_info and virtual_call hooks.
14770 (dwarf2out_init): Don't initialize vcall_insn_table,
14771 debug_dcall_section and debug_vcall_section.
14772 (prune_unused_types): Don't mark nodes from dcall_table.
14773 (dwarf2out_finish): Don't output dcall or vcall tables.
14774 * final.c (final_scan_insn): Don't call direct_call or
14775 virtual_call debug hooks.
14776 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14777 virtual_call_token, copy_call_info and virtual_call hooks.
14778 (debug_nothing_uid): Remove prototype.
14779 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14780 copy_call_info and virtual_call hooks.
14781 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14782 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14783 * debug.c (do_nothing_debug_hooks): Likewise.
14784 (debug_nothing_uid): Remove.
14785 * doc/invoke.texi (-fenable-icf-debug): Remove.
14786 * common.opt (-fenable-icf-debug): Likewise.
14788 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14789 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14790 call's MEM. Handle functions returning aggregate through a hidden
14791 first pointer. For virtual calls add clobbered pc to call arguments
14793 * dwarf2out.c (gen_subprogram_die): Emit
14794 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14798 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14799 * rtl.h (ENTRY_VALUE_EXP): Define.
14800 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14801 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14802 * print-rtl.c (print_rtx): Likewise.
14803 * gengtype.c (adjust_field_rtx_def): Likewise.
14804 * var-tracking.c (vt_add_function_parameter): Adjust
14805 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14806 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14807 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14808 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14809 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14811 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14812 Call var_location debug hook even on CALL_INSNs.
14813 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14814 * rtl.def (ENTRY_VALUE): New.
14815 * dwarf2out.c: Include cfglayout.h.
14816 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14817 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14818 (struct call_arg_loc_node): New type.
14819 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14820 tail_call_site_count): New variables.
14821 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14822 DW_TAG_GNU_call_site_parameter.
14823 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14824 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14825 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14826 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14827 and DW_AT_GNU_all_source_call_sites.
14828 (mem_loc_descriptor): Handle ENTRY_VALUE.
14829 (add_src_coords_attributes): Don't add enything if
14830 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14831 (dwarf2out_abstract_function): Save and clear call_arg_location,
14832 call_site_count and tail_call_site_count around dwarf2out_decl call.
14833 (gen_call_site_die): New function.
14834 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14835 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14836 (dwarf2out_function_decl): Clear call_arg_locations,
14837 call_arg_loc_last, set call_site_count and tail_call_site_count
14838 to -1 and free block_map.
14839 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14840 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14841 followed by any real instructions.
14842 (dwarf2out_begin_function): Set call_site_count and
14843 tail_call_site_count to 0.
14844 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14845 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14846 attempt to force a DIE for it and worst case remove the attribute.
14847 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14848 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14850 * var-tracking.c: Include tm_p.h.
14851 (vt_stack_adjustments): For calls call note_register_arguments.
14852 (argument_reg_set): New variable.
14853 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14854 ensure the VALUE is resolved.
14855 (call_arguments): New variable.
14856 (prepare_call_arguments): New function.
14857 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14858 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14859 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14860 always use the best expression.
14861 (vt_expand_loc): Add ignore_cur_loc argument.
14862 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14863 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14864 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14865 note for all calls.
14866 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14867 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14868 argument. Don't call cselib_preserve_only_values and
14869 cselib_reset_table.
14870 (note_register_arguments): New function.
14871 (vt_initialize): Compute argument_reg_set. Call
14872 vt_add_function_parameters before processing basic blocks instead of
14873 afterwards. For calls call prepare_call_arguments before calling
14874 cselib_process_insn.
14875 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14876 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14877 (var-tracking.o): Depend on $(TM_P_H).
14878 * cfglayout.h (insn_scope): New prototype.
14879 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14880 * cfglayout.c (insn_scope): No longer static.
14881 * insn-notes.def (CALL_ARG_LOCATION): New.
14882 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14883 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14884 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14885 nothing for DECL_EXTERNAL BLOCK_VARS.
14887 2011-03-16 Alan Modra <amodra@gmail.com>
14890 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14891 create invalid offset address for vsx splat insn.
14892 * config/rs6000/predicates.md (splat_input_operand): New.
14893 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14895 2011-03-15 Xinliang David Li <davidxl@google.com>
14898 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14899 (normalize_preds): New function.
14900 (is_use_properly_guarded): Normalize def predicates.
14902 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14905 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14906 in the output template.
14908 2011-03-15 Richard Guenther <rguenther@suse.de>
14910 PR middle-end/47650
14911 * tree-pretty-print.c (dump_function_declaration): Properly
14912 dump unprototyped and varargs function types.
14914 2011-03-15 Richard Guenther <rguenther@suse.de>
14916 PR tree-optimization/13954
14917 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14920 2011-03-15 Richard Guenther <rguenther@suse.de>
14922 PR tree-optimization/48037
14923 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14924 selects into BIT_FIELD_REFs.
14925 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14928 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14930 PR tree-optimization/48129
14931 * builtins.c (fold_builtin_snprintf): Convert to type of
14932 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14933 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14935 2011-03-15 Richard Guenther <rguenther@suse.de>
14937 PR tree-optimization/41490
14938 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14939 value but with VUSE.
14940 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14942 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14943 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14944 * tree-tailcall.c (find_tail_calls): Ignore returns.
14946 2011-03-15 Richard Guenther <rguenther@suse.de>
14948 PR middle-end/48031
14949 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14950 or variable-indexed array accesses when in gimple form.
14952 2011-03-15 Richard Guenther <rguenther@suse.de>
14954 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14956 2011-03-15 Alan Modra <amodra@gmail.com>
14959 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14960 presume symbol_refs without a symbol_ref_decl are suitably
14961 aligned, nor other trees we may see here. Handle anchor symbols.
14962 (legitimate_constant_pool_address_p): Comment. Add mode param.
14963 Check cmodel=medium addresses. Adjust all calls.
14964 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14965 creating cmodel=medium optimized access to locals.
14966 * config/rs6000/constraints.md (R): Pass QImode to
14967 legitimate_constant_pool_address_p.
14968 * config/rs6000/predicates.md (input_operand): Pass mode to
14969 legitimate_constant_pool_address_p.
14970 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14973 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14976 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14977 64-bit constants being loaded into registers other than GPRs such
14978 as loading 0 into a VSX register.
14980 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14982 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14984 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14986 PR middle-end/47917
14987 * builtins.c (fold_builtin_snprintf): New function.
14988 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14989 (fold_builtin_4): Likewise.
14991 PR middle-end/38878
14992 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14993 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14994 and C - X == X also strip nops from +/-/p+ operand.
14995 When optimizing -X == C, fold C to arg0's type.
14998 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14999 emit it as add_AT_int instead of add_AT_unsigned.
15001 2011-03-14 Tom Tromey <tromey@redhat.com>
15003 * unwind-dw2.c: Include sys/sdt.h if it exists.
15004 (_Unwind_DebugHook): Use STAP_PROBE2.
15005 * config.in, configure: Rebuild.
15006 * configure.ac: Check for sys/sdt.h.
15008 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
15010 * config/i386/i386.md (ROUND_FLOOR): New constant.
15011 (ROUND_CEIL): Ditto.
15012 (ROUND_TRUNC): Ditto.
15013 (ROUND_MXCSR): Ditto.
15014 (ROUND_NO_EXC): Ditto.
15015 (rint<mode>2): Use new defines instead of numerical constants.
15016 (floor<mode>2): Ditto.
15017 (ceil<mode>2): Ditto.
15018 (btrunc<mode>2): Ditto.
15019 * config/i386/i386-builtin-types.def: Define ROUND function type
15021 * config/i386/i386.c (enum ix86_builtins): Add
15022 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15023 (struct builtin_description): Add
15024 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15025 (ix86_expand_sse_round): New static function.
15026 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15028 (ix86_builtin_vectorized_function): Handle
15029 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15031 2011-03-14 Tom Tromey <tromey@redhat.com>
15033 * c-parser.c (c_parser_asm_string_literal): Clear
15034 warn_overlength_strings.
15036 2011-03-14 Tom Tromey <tromey@redhat.com>
15038 * c-parser.c (disable_extension_diagnostics): Save
15039 warn_overlength_strings.
15040 (restore_extension_diagnostics): Restore warn_overlength_strings.
15042 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15044 * BASE-VER: Change to 4.7.0.
15046 2011-03-14 Richard Guenther <rguenther@suse.de>
15048 PR middle-end/48098
15049 * tree.c (build_vector_from_val): Adjust assert to requirements
15052 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15055 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15057 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
15059 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15060 terms of target_flags_explicit. Adjust copyright year.
15062 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15063 * config/rs6000/t-freebsd: New file. Add override for
15066 2011-03-13 Chris Demetriou <cgd@google.com>
15068 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15069 (-fno-diagnostics-show-option): this, to reflect current default.
15070 (-Werror=): Update text about -fno-diagnostics-show-option.
15072 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15075 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15076 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15077 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15078 mode is not V2DImode or V2DFmode.
15079 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15080 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15081 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15083 (movdi_internal64): Likewise.
15085 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15087 PR tree-optimization/47127
15088 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15090 (set_cloog_options): Same.
15091 (scop_to_clast): Same.
15092 (print_clast_stmt): Do not call cloog_state_malloc and
15094 (print_generated_program): Same.
15096 * graphite-clast-to-gimple.h (cloog_state): Declared.
15097 (scop_to_clast): Adjust declaration.
15098 * graphite.c (cloog_state): Defined here.
15099 (graphite_initialize): Call cloog_state_malloc.
15100 (graphite_finalize): Call cloog_state_free.
15102 2011-03-11 Jason Merrill <jason@redhat.com>
15104 * attribs.c (lookup_attribute_spec): Take const_tree.
15107 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15109 * config/sparc/sparc.c (sparc_option_override): Use
15110 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15112 2011-03-11 Richard Guenther <rguenther@suse.de>
15114 PR tree-optimization/48067
15115 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15116 multiplication result will be only used once on the target
15119 2011-03-11 Richard Guenther <rguenther@suse.de>
15121 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15123 2011-03-11 Richard Guenther <rguenther@suse.de>
15126 * tree.c (find_decls_types_r): Do not walk types only reachable
15127 from IDENTIFIER_NODEs.
15129 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15131 PR middle-end/48044
15132 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15133 all vnode->force_output nodes as needed.
15135 2011-03-11 Jason Merrill <jason@redhat.com>
15138 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15139 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15141 2011-03-11 Martin Jambor <mjambor@suse.cz>
15143 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15146 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15148 PR tree-optimization/48063
15149 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15150 inline functions called once if !tree_can_inline_p (node->callers).
15152 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15154 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15156 * config/score/score3.c: Delete.
15157 * config/score/score3.h: Delete.
15158 * config/score/mul-div.S: Delete.
15159 * config/score/sfp-machine.h: Add new file.
15160 * config/score/constraints.md: Add new file.
15161 * config/score/t-score-softfp: Add new file.
15162 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15163 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15164 (score7_extra_constraint): Delete.
15165 (score7_option_override): Remove unused code.
15166 * config/score/score.c: Remove score3 and score5 define and code.
15167 * config/score/score.h: Remove score3 and score5 define and code.
15168 * config/score/score.md: Remove score3 template and unusual insn.
15169 * config/score/score.opt: Remove score3 and score5 options.
15171 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15173 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15174 when _HPUX_SOURCE is defined.
15175 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15177 2011-03-10 Jason Merrill <jason@redhat.com>
15180 * stor-layout.c (layout_type): Don't set structural equality
15181 on arrays of incomplete type.
15182 * tree.c (type_hash_eq): Handle comparing them properly.
15184 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15187 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15188 result mode matches original rtl mode.
15190 2011-03-10 Nick Clifton <nickc@redhat.com>
15192 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15193 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15195 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15197 PR rtl-optimization/47866
15198 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15199 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15200 if target wasn't scalar.
15201 * function.c (assign_stack_temp_for_type): Assert that neither
15202 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15203 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15205 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15207 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15209 * config/s390/s390-protos.h (s390_label_align): New prototype.
15210 * config/s390/s390.c (s390_label_align): New function.
15211 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15213 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15216 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15217 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15218 (output_vec_const_move): Ditto.
15220 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15222 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15223 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15224 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15225 Change 'rclass' argument and result type to reg_class_t.
15226 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15228 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15230 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15231 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15232 (TARGET_MEMORY_MOVE_COST): Define.
15233 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15235 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15238 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15241 PR tree-optimization/48022
15242 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15245 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15248 * var-tracking.c (find_use_val): Return NULL for
15249 cui->sets && cui->store_p BLKmode MEMs.
15251 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15253 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15255 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15256 xstormy16_print_operand_address): Remove.
15257 * config/stormy16/stormy16.c (xstormy16_print_operand,
15258 xstormy16_print_operand_address): Make static.
15259 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15261 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15264 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15265 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15268 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15271 * cfgloopmanip.c (fix_bb_placements): Return immediately
15272 if FROM is BASE_LOOP's header.
15274 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15276 * gimplify.c (gimplify_function_tree): Fix building calls
15277 to __builtin_return_address.
15279 2011-03-07 Alan Modra <amodra@gmail.com>
15281 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15282 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15283 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15284 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15286 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15287 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15288 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15289 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15290 * config/rs6000/rs6000.c
15291 (rs6000_elf_end_indicate_exec_stack): Rename to..
15292 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15293 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15294 (rs6000_file_start): ..here.
15295 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15296 file scope variables.
15297 (call_ABI_of_interest): New function.
15298 (init_cumulative_args): Set above vars when function return value
15299 is a float, vector, or small struct.
15300 (rs6000_function_arg_advance_1): Likewise for function args.
15301 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15302 references float args.
15304 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15306 * doc/cfg.texi: Remove "See" before @ref.
15307 * doc/invoke.texi: Likewise.
15309 2011-03-05 Jason Merrill <jason@redhat.com>
15311 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15313 2011-03-05 Anthony Green <green@moxielogic.com>
15315 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15317 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15319 PR rtl-optimization/47899
15320 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15321 to flow_loop_nested_p when moving the loop upward.
15323 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15326 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15328 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15330 PR tree-optimization/47967
15331 * ipa-cp.c (build_const_val): Return NULL instead of creating
15332 VIEW_CONVERT_EXPR for mismatching sizes.
15333 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15334 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15335 give up on versioning.
15337 2011-03-05 Alan Modra <amodra@gmail.com>
15340 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15341 full cmodel medium/large lo_sum + high addresses.
15343 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15345 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15346 pool references in UNSPEC_LTREL_OFFSET.
15348 2011-03-04 Jan Hubicka <jh@suse.cz>
15351 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15352 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15353 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15355 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15356 cgraph_add_thunk): Add node pointers.
15357 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15358 associated to right node.
15359 (input_node): Update use of cgraph_same_body_alias
15360 and cgraph_add_thunk.
15362 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15364 * config/i386/i386.opt (mprefer-avx128): New flag.
15365 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15366 modes when the flag -mprefer-avx128 is on.
15368 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15370 * dwarf2out.c (compare_loc_operands): Fix address handling.
15372 2011-03-04 Alan Modra <amodra@gmail.com>
15374 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15376 2011-03-04 Richard Guenther <rguenther@suse.de>
15378 PR middle-end/47968
15379 * expmed.c (extract_bit_field_1): Prefer vector modes that
15380 vec_extract patterns can handle.
15382 2011-03-04 Richard Guenther <rguenther@suse.de>
15384 PR middle-end/47975
15385 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15387 2011-03-04 Richard Henderson <rth@redhat.com>
15389 * explow.c (emit_stack_save): Remove 'after' parameter.
15390 (emit_stack_restore): Likewise.
15391 * expr.h: Update to match.
15392 * builtins.c, calls.c, stmt.c: Likewise.
15393 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15394 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15395 * function.c (expand_function_end): Insert the emit_stack_save
15396 sequence before parm_birth_insn instead of after.
15398 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15400 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15401 (ssse3_pmaddubsw128): Ditto.
15402 (ssse3_pmaddubsw): Ditto.
15404 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15406 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15408 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15411 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15412 on TYPE_SIZE_UNIT if it is a DECL.
15415 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15416 first operand is not is_gimple_mem_ref_addr, try to fold it.
15417 If the operand still isn't is_gimple_mem_ref_addr, clear
15420 2011-03-03 Richard Guenther <rguenther@suse.de>
15422 PR middle-end/47283
15423 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15425 (refs_may_alias_p_1): For release branches return true if
15426 we are confused by our input.
15428 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15430 * config/s390/s390.c (s390_function_value): Rename to ...
15431 (s390_function_and_libcall_value): ... this.
15432 (s390_function_value): New function.
15433 (s390_libcall_value): New function.
15434 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15435 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15436 target macro definitions.
15437 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15439 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15441 * config/i386/freebsd64.h (CC1_SPEC): Define.
15442 * config/i386/linux64.h (CC1_SPEC): Define.
15443 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15445 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15447 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15449 * config/stormy16/stormy16.c: Include reload.h.
15450 (xstormy16_memory_move_cost): New function.
15451 (TARGET_MEMORY_MOVE_COST): Define.
15453 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15455 PR rtl-optimization/47925
15456 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15457 with side effects. Remove the more-specific check for volatile asms.
15459 2011-03-02 Alan Modra <amodra@gmail.com>
15462 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15463 toc relative addresses for valid offsets.
15465 2011-03-01 Richard Guenther <rguenther@suse.de>
15467 PR tree-optimization/47890
15468 * tree-vect-loop.c (get_initial_def_for_induction): Set
15469 related stmt properly.
15471 2011-03-01 Richard Guenther <rguenther@suse.de>
15474 * lto-streamer.c (lto_record_common_node): Also register
15475 the canonical type.
15477 2011-03-01 Richard Guenther <rguenther@suse.de>
15480 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15481 Do not stream DECL_ABSTRACT_ORIGIN.
15482 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15483 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15484 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15485 Do not stream DECL_ABSTRACT_ORIGIN.
15486 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15487 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15489 2011-02-28 Anatoly Sokolov <aesok@post.ru>
15491 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15492 FUNCTION_VALUE_REGNO_P): Remove.
15493 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15494 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15495 Add 'outgoing' argument.
15496 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15498 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15499 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15501 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
15504 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15505 (lookup_filename): Likewise.
15506 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15508 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15509 Jakub Jelinek <jakub@redhat.com>
15511 PR middle-end/47893
15512 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15513 (assign_stack_local_1): Change last argument type to int.
15514 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15515 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
15516 don't record padding space into frame_space_list nor use those areas.
15517 (assign_stack_local): Adjust caller.
15518 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15519 of assign_stack_local, pass 0 as last argument.
15520 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15523 2011-02-28 Jakub Jelinek <jakub@redhat.com>
15526 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15527 Use target address_mode and pointer_mode hooks instead of hardcoded
15528 Pmode and ptr_mode. Handle some simple cases of extending if
15529 POINTERS_EXTEND_UNSIGNED < 0.
15530 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15531 Call convert_debug_memory_address.
15532 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15533 convert_debug_memory_address.
15535 PR middle-end/46790
15536 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15537 * configure: Regenerated.
15538 * config.in: Regenerated.
15539 * varasm.c (default_function_section): Return NULL
15540 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15542 2011-02-28 Martin Jambor <mjambor@suse.cz>
15544 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15545 the description to match the printed values.
15547 2011-02-28 Richard Guenther <rguenther@suse.de>
15549 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15550 of the copied scope tree.
15552 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15554 * doc/extend.texi (Function Attributes): Avoid deeply (and
15555 wrongly) nested tables.
15557 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15559 PR middle-end/47903
15560 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15561 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15562 r isn't op0 nor op1.
15564 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15566 * config/avr/avr.md: Remove magic comment for emacs.
15568 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15571 * config/avr/avr.c (avr_option_override): Use error on bad options.
15572 (avr_help): New function.
15573 (TARGET_HELP): Define.
15575 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
15578 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15579 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15581 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15583 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15584 (ARM Options): Ditto.
15585 (i386 and x86-64 Options): Ditto.
15586 (RX Options): Ditto.
15587 (SPARC Options): Ditto.
15589 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
15591 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15592 FreeBSD 6 and later. Generally use cpu generic.
15594 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15596 * doc/cpp.texi: Update copyright years.
15598 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
15601 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15603 2011-02-25 Jon Beniston <jon@beniston.com>
15606 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15607 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15608 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15609 (lm32_block_move_inline): Add type cast to remove warning.
15610 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15611 (gen_int_relational): Move declarations to start of function.
15613 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15615 PR tree-optimization/45470
15616 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15617 can throw internally only.
15618 * tree-vect-stmts.c (vectorizable_call): Likewise.
15620 2011-02-24 Anatoly Sokolov <aesok@post.ru>
15622 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15623 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15624 * config/stormy16/stormy16-protos.h
15625 (xstormy16_preferred_reload_class): Remove.
15626 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15627 static. Change 'rclass' argument and return type to reg_class_t.
15628 (TARGET_PREFERRED_RELOAD_CLASS,
15629 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15631 2011-02-24 Richard Guenther <rguenther@suse.de>
15633 * lto-streamer-in.c (input_bb): Do not find referenced vars
15634 in debug statements.
15636 2011-02-23 Jason Merrill <jason@redhat.com>
15638 * common.opt (fabi-version): Document v5 and v6.
15640 2011-02-23 Richard Guenther <rguenther@suse.de>
15642 PR tree-optimization/47849
15643 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15645 2011-02-23 Jie Zhang <jie@codesourcery.com>
15647 * opts-common.c (decode_cmdline_option): Print empty string
15648 argument as "" in decoded->orig_option_with_args_text.
15649 * gcc.c (execute): Print empty string argument as ""
15650 in the verbose output.
15651 (do_spec_1): Keep empty string argument.
15653 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15655 * config.gcc: Declare score-* and crx-* obsolete.
15657 2011-02-23 Jie Zhang <jie@codesourcery.com>
15659 PR rtl-optimization/47763
15660 * web.c (web_main): Ignore naked clobber when replacing register.
15662 2011-02-22 Anatoly Sokolov <aesok@post.ru>
15664 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15667 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15670 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15672 2011-02-22 Mike Stump <mikestump@comcast.net>
15674 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15676 * configure: Regenerate.
15678 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15680 PR rtl-optimization/46002
15681 * ira-color.c (update_copy_costs): Change class intersection
15682 test to reg_class_contents[] test of 'hard_regno'.
15684 2011-02-21 Joseph Myers <joseph@codesourcery.com>
15686 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15687 than Driver option.
15688 * config/hpux11.opt (mt): Likewise.
15689 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15690 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15691 * config/vax/elf.opt (mno-asm-pic): Likewise.
15692 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15694 2011-02-21 Mike Stump <mikestump@comcast.net>
15697 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15698 tree so we can get save the type.
15699 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15700 for CFString instead of trying to use past the end of the builtins.
15701 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15702 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15703 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15704 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15705 Rename to darwin_builtin_cfstring.
15706 (darwin_init_cfstring_builtins): Return the built type.
15708 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
15711 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15712 (_mm256_insert_epi64): Use _mm_insert_epi64.
15714 2011-02-21 Anatoly Sokolov <aesok@post.ru>
15716 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15717 * config/stormy16/stormy16-protos.h
15718 (xstormy16_mode_dependent_address_p): Remove.
15719 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15720 Make static. Change return type to bool. Change argument type to
15721 const_rtx. Remove dead code.
15722 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15724 2011-02-21 Richard Guenther <rguenther@suse.de>
15727 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15728 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15729 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15731 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15732 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15734 2011-02-20 Richard Guenther <rguenther@suse.de>
15737 * tree.c (free_lang_data_in_decl): Clean builtins from
15738 the TU decl BLOCK_VARS.
15740 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
15744 * haifa-sched.c (fix_tick_ready): Skip tick computation
15747 2011-02-19 Richard Guenther <rguenther@suse.de>
15750 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15751 Remove lazy BLOCK_VARS streaming.
15752 (lto_input_ts_block_tree_pointers): Likewise.
15753 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15755 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15757 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15759 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15761 * config/i386/biarch32.h, config/i386/mach.h,
15762 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15764 2011-02-19 Jakub Jelinek <jakub@redhat.com>
15767 * config/i386/i386.md (peephole2 for shift and plus): Use
15768 operands[1] original mode in the first insn.
15770 2011-02-18 Mike Stump <mikestump@comcast.net>
15772 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15774 2011-02-18 Jan Hubicka <jh@suse.cz>
15776 PR middle-end/47788
15777 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15778 to zero when the function is not inlinable at all.
15780 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15782 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15783 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15784 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15785 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15786 * config/pa/t-pa64: Likewise.
15787 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15789 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15792 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15794 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15797 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15799 2011-02-18 Anatoly Sokolov <aesok@post.ru>
15801 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15802 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15803 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15804 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15805 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15806 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15807 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15808 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15809 m32r_legitimate_address_p): New functions.
15810 * config/m32r/constraints.md (constraint "S"): Don't use
15811 STORE_PREINC_PREDEC_P.
15812 (constraint "U"): Don't use LOAD_POSTINC_P.
15814 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15816 PR rtl-optimization/46178
15817 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15818 compute ira_hard_regno_cover_class[].
15820 2011-02-18 Richard Guenther <rguenther@suse.de>
15823 * lto-streamer.h (lto_global_var_decls): Declare.
15824 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15825 statics for global var processing.
15827 2011-02-18 Richard Guenther <rguenther@suse.de>
15829 PR tree-optimization/47737
15830 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15831 edge dominance check.
15833 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15836 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15837 avoid invalid rtx sharing.
15839 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15841 * doc/cpp.texi (Obsolete Features): Add background on the
15842 origin of assertions.
15844 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15846 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15848 * config/darwin.c (output_objc_section_asm_op): Added support for
15850 (is_objc_metadata): New.
15851 (darwin_objc2_section): New.
15852 (darwin_objc1_section): New.
15853 (machopic_select_section): Added support for ABI v1 and v2.
15854 (darwin_emit_objc_zeroed): New.
15855 (darwin_output_aligned_bss): Detect objc metadata and treat it
15857 (darwin_asm_output_aligned_decl_common): Same.
15858 (darwin_asm_output_aligned_decl_local): Same.
15859 * config/darwin-sections.def: Updated for ABI v1 and v2.
15860 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15861 compiling Objective-C code for the NeXT runtime, default to using
15862 ABI version 0 for 32-bit, and version 2 for 64-bit.
15864 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15866 * common.opt (optimize_fast): New Variable.
15867 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15868 instead of local variable ofast.
15870 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15872 * doc/invoke.texi (fobjc-abi-version): Documented.
15873 (fobjc-nilcheck): Documented.
15874 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15877 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15880 * common.opt (export-dynamic): New Driver option.
15881 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15883 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15885 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15887 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15888 Jan Hubicka <jh@suse.cz>
15892 * cfgexpand.c (account_used_vars_for_block): Remove.
15893 (estimated_stack_frame_size): Use referenced vars.
15894 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15895 that were referenced in the original function. Test src_fn
15896 rather than cfun. Drop redundant get_var_ann.
15897 (setup_one_parameter): Drop redundant get_var_ann.
15898 (declare_return_variable): Likewise.
15899 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15900 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15901 * ipa-inline.c (compute_inline_parameters): Do not compute
15902 disregard_inline_limits here.
15903 (compute_inlinable_for_current, pass_inlinable): New.
15904 (pass_inline_parameters): Require PROP_referenced_vars.
15905 * cgraphunit.c (cgraph_process_new_functions): Don't run
15906 compute_inline_parameters explicitly unless function is in SSA form.
15907 (cgraph_analyze_function): Set .disregard_inline_limits.
15908 * tree-sra.c (convert_callers): Compute inliner parameters
15909 only for functions already in SSA form.
15911 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15913 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15914 -mlittle-endian-data.
15916 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15918 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15919 -mno-fpu, not -fpu and -no-fpu.
15920 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15921 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15923 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15926 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15927 input reload with PLUS RTX.
15929 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15931 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15932 of InverseVar(MDMX).
15934 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15936 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15939 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15941 * config/mn10300/mn10300.opt (mno-crt0): New.
15943 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15945 * config/m68k/uclinux.opt (static-libc): New Driver option.
15947 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15949 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15951 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15953 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15954 %{muser-extend-enabled}.
15956 2011-02-16 Richard Guenther <rguenther@suse.de>
15958 PR tree-optimization/47738
15959 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15960 the TODO from tree_predictive_commoning.
15962 2011-02-15 Jeff Law <law@redhat.com>
15965 2011-01-25 Jeff Law <law@redhat.com>
15967 PR rtl-optimization/37273
15968 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15969 handle them like argument loads from stack slots. Do not double
15970 count memory for memory constants and argument loads from stack slots.
15972 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15974 PR middle-end/47725
15975 * combine.c (cant_combine_insn_p): Revert the last change.
15977 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15980 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15981 mode for vector constants. Remove code that checks for TImode.
15983 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15987 * cgraph.h (compute_inline_parameters): Return void.
15988 * ipa-inline.c (compute_inline_parameters): Adjust.
15990 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15994 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15996 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15997 * ipa-inline.c (compute_inline_parameters): Adjust.
15999 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16003 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16004 Adjust all users. Pass FN to...
16005 * tree-flow-inline.h (first_referenced_var): ... this. Add
16007 * ipa-struct-reorg.c: Adjust.
16008 * tree-dfa.c: Adjust.
16009 * tree-into-ssa.c: Adjust.
16010 * tree-sra.c: Adjust.
16011 * tree-ssa-alias.c: Adjust.
16012 * tree-ssa-live.c: Adjust.
16013 * tree-ssa.c: Adjust.
16014 * tree-ssanames.c: Adjust.
16015 * tree-tailcall.c: Adjust.
16017 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16021 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16022 Adjust all callers.
16023 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16024 * tree-flow-inline.h: Adjust.
16025 * gimple-pretty-print.c: Adjust.
16026 * tree-into-ssa.c: Adjust.
16027 * tree-ssa.c: Adjust.
16028 * cfgexpand.c: Adjust.
16030 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16032 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16033 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16034 (EXTRA_CONSTRAINT): Delete.
16035 * config/iq2000/constraints.md: New file.
16036 * config/iq2000/iq2000.md: Include it.
16037 (define_insn ""): Delete.
16038 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16039 unsupported constraint letters from patterns.
16040 (call_value, call_value_internal1): Likewise.
16041 (call_value_multiple_internal1): Likewise.
16043 2011-02-15 Nick Clifton <nickc@redhat.com>
16045 * config/mn10300/mn10300.c: Include tm-constrs.h.
16046 (struct liw_data): New data structure describing an LIW candidate
16048 (extract_bundle): Use struct liw_data. Allow small integer
16049 operands for some instructions.
16050 (check_liw_constraints): Use struct liw_data. Remove swapped
16051 parameter. Add comments describing the checks. Fix bug when
16052 assigning the source of liw1 to the source of liw2.
16053 (liw_candidate): Delete. Code moved into extract_bundle.
16054 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16056 * config/mn10300/predicates.md (liw_operand): New predicate.
16057 Allows registers and small integer constants.
16058 * config/mn10300/constraints.md (O): New constraint. Accetps
16059 integers in the range -8 to +7 inclusive.
16060 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16061 for moving a small integer into a register. Give this alternative
16063 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16064 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16065 using the J,K,L and M constraints,
16066 (liw): Remove SI mode on second operands to allow for HI and QI
16068 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16071 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16073 PR middle-end/47725
16074 * combine.c (cant_combine_insn_p): Check zero/sign extended
16077 2011-02-15 Richard Guenther <rguenther@suse.de>
16079 PR tree-optimization/47743
16080 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16081 for a non-type-compatible VN lookup bail out.
16083 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16085 * config/fr30/constraints.md: New file.
16086 * config/fr30/fr30.md: Include it.
16087 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16088 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16089 (EXTRA_CONSTRAINT): Delete.
16091 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16093 * config/frv/constraints.md: New file.
16094 * config/frv/predicates.md: Include it.
16095 * config/frv/frv.c (reg_class_from_letter): Delete.
16096 (frv_option_override): Don't initialize it.
16097 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16098 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16099 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16100 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16101 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16102 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16103 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16104 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16105 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16106 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16107 (REG_CLASS_FROM_CONSTRAINT): Delete.
16109 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16111 PR middle-end/47581
16112 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16113 if frame size is 0 in a leaf function.
16115 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16118 * config/alpha/host-osf.c: New file.
16119 * config/alpha/x-osf: New file.
16120 * config.host (alpha*-dec-osf*): Use it.
16122 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16124 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16125 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16126 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16127 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16129 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16131 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16133 * config/stormy16/constraints.md: New file.
16134 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16135 Use satisfies_constraint_Q and satisfies_constraint_R.
16136 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16138 (xstormy16_legitiamte_address_p): Declare.
16139 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16140 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16141 (EXTRA_CONSTRAINT): Delete.
16142 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16144 (xstormy16_extra_constraint_p): Delete.
16146 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16148 PR tree-optimization/46494
16149 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16150 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16151 (pass_rtl_loop_done): Add TODO_verify_flow.
16152 * fwprop.c (pass_rtl_fwprop): Likewise.
16153 * modulo-sched.c (pass_sms): Likewise.
16154 * tree-ssa-dom.c (pass_dominator): Likewise.
16155 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16156 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16157 (pass_tree_loop_done): Likewise.
16158 * tree-ssa-pre.c (execute_pre): Likewise.
16159 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16160 * tree-ssa-sink.c (pass_sink_code): Likewise.
16161 * tree-vrp.c (pass_vrp): Likewise.
16163 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16165 * config/v850/constraints.md: New file.
16166 * config/v850/v850.md: Include it.
16167 * config/v850/predicates.md (reg_or_0_operand): Use
16168 satisfies_constraint_G.
16169 (special_symbolref_operand): Use satisfies_constraint_K.
16170 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16171 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16172 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16173 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16174 (EXTRA_CONSTRAINT): Delete.
16175 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16176 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16177 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16179 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16182 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16185 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16187 * config/mcore/constraints.md: New file.
16188 * config/mcore/mcore.md: Include it.
16189 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16190 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16191 (REG_CLASS_FROM_LETTER): Delete.
16192 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16193 insn_const_int_ok_for_constraint.
16194 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16195 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16196 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16197 (EXTRA_CONSTRAINT): Delete.
16199 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16202 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16203 (IS_SIGHANDLER): Define.
16204 (sparc64_is_sighandler): New function, split off from
16205 sparc64_fallback_frame_state.
16206 (sparc_is_sighandler): New function, split off from
16207 sparc_fallback_frame_state.
16208 (sparc64_fallback_frame_state): Merge with ...
16209 (sparc_fallback_frame_state): ... this into ...
16210 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16211 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16212 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16213 stack instead of hardcoded offsets.
16215 2011-02-14 Andriy Gapon <avg@freebsd.org>
16218 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16220 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16222 * configure: Regenerate.
16224 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16227 * gcc.c (asm_options): Correct spec matching --target-help.
16229 2011-02-12 Martin Jambor <mjambor@suse.cz>
16231 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16232 to gimple call error.
16234 2011-02-12 Mike Stump <mikestump@comcast.net>
16236 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16237 comments in backslash regions.
16239 2011-02-12 Mike Stump <mikestump@comcast.net>
16240 Jakub Jelinek <jakub@redhat.com>
16241 Iain Sandoe <iains@gcc.gnu.org>
16244 * dwarf2out.c (output_cfa_loc): When required, apply the
16245 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16246 (output_loc_sequence): Likewise.
16247 (output_loc_operands_raw): Likewise.
16248 (output_loc_sequence_raw): Likewise.
16249 (output_cfa_loc): Likewise.
16250 (output_loc_list): Suppress register number adjustment when
16251 calling output_loc_sequence()
16252 (output_die): Likewise.
16254 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16256 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16258 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16259 xtensa_memory_move_cost): New functions.
16260 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16262 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16265 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16266 in the current directory.
16267 * configure: Rebuilt.
16269 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16271 * config/darwin.c (darwin_override_options): Add a hunk missed
16272 from the commit of r168571. Trim comment line lengths and
16273 correct indents of the preceding block.
16275 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16277 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16280 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16282 * common.opt (nostartfiles): New Driver option.
16284 2011-02-11 Xinliang David Li <davidxl@google.com>
16286 PR tree-optimization/47707
16287 * tree-chrec.c (convert_affine_scev): Keep type precision.
16289 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16291 PR tree-optimization/47420
16292 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16294 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16296 PR rtl-optimization/47614
16297 * rtl.h (check_for_inc_dec): Declare.
16298 * dse.c (check_for_inc_dec): Externalize...
16299 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16300 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16302 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16305 * gcc.c (main): Do not compile inputs if there were errors in
16307 * opts-common.c (read_cmdline_option): Check for wrong language
16308 after other error checks.
16310 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16312 * cgraph.c: Fix comment typos.
16313 * cgraph.h: Likewise.
16314 * cgraphunit.c: Likewise.
16315 * ipa-cp.c: Likewise.
16316 * ipa-inline.c: Likewise.
16317 * ipa-prop.c: Likewise.
16318 * ipa-pure-const.c: Likewise.
16319 * ipa-ref.c: Likewise.
16320 * ipa-reference.c: Likewise.
16322 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16325 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16327 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16330 * doc/sourcebuild.texi (Require Support): Document
16331 dg-require-ascii-locale.
16333 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16335 * doc/lto.texi (Write summary): Fix missing parentheses.
16337 2011-02-10 DJ Delorie <dj@redhat.com>
16339 * config/m32c/m32c.c (m32c_option_override): Disable
16340 -fcombine-stack-adjustments until flag value tracking and compare
16341 optimization can be rewritten.
16343 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16345 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16347 (PROCESSOR_DEFAULT64): Likewise.
16349 2011-02-10 Richard Henderson <rth@redhat.com>
16351 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16352 change from 2011-02-03.
16353 * config/rx/rx.c (flags_from_code): Likewise.
16354 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16355 is valid, n/pz otherwise.
16356 (rx_select_cc_mode): Return CCmode if Y is not zero.
16358 2011-02-10 Richard Guenther <rguenther@suse.de>
16360 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16362 2011-02-10 Richard Guenther <rguenther@suse.de>
16364 PR tree-optimization/47677
16365 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16367 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16370 * combine.c (make_compound_operation): Only change shifts into
16371 multiplication for SCALAR_INT_MODE_P.
16373 2011-02-10 Jie Zhang <jie@codesourcery.com>
16377 2011-02-05 Jie Zhang <jie@codesourcery.com>
16379 * web.c (entry_register): Don't clobber the number of the
16380 first uninitialized reference in used[].
16382 2011-02-09 Richard Guenther <rguenther@suse.de>
16384 PR tree-optimization/47664
16385 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16388 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16392 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16394 (PROCESSOR_DEFAULT64): Same.
16395 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16397 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16399 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16401 2011-02-09 Martin Jambor <mjambor@suse.cz>
16403 PR middle-end/45505
16404 * tree-sra.c (struct access): New flags grp_scalar_read and
16405 grp_scalar_write. Changed description of assignment read and write
16407 (dump_access): Dump new flags, reorder all of them.
16408 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16409 to detect multiple scalar reads.
16410 (analyze_access_subtree): Use the new scalar read write flags instead
16411 of the old flags. Adjusted comments.
16413 2011-02-08 DJ Delorie <dj@redhat.com>
16416 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16419 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16421 * config/m68k/uclinux.opt: New.
16422 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16424 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16426 * config/cris/elf.opt (sim): New Driver option.
16428 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16430 * config/xtensa/elf.opt: New.
16431 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16433 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16435 * config/vax/elf.opt: New.
16436 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16438 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16440 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16442 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16444 * config/gnu-user.opt: New.
16445 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16446 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16447 *-*-uclinux*): Use gnu-user.opt.
16449 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16451 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16452 * config/i386/gnu.h (CPP_SPEC): Likewise.
16454 2011-02-08 Ian Lance Taylor <iant@google.com>
16456 * common.opt (fcx-limited-range): Add SetByCombined flag.
16457 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16458 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16459 (fassociative-math, freciprocal-math): Likewise.
16460 (funsafe-math-optimizations): Likewise.
16461 * opth-gen.awk: Handle SetByCombined.
16462 * optc-gen.awk: Likewise.
16463 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16464 (set_unsafe_math_optimizations_flags): Likewise.
16465 * doc/options.texi (Option properties): Document SetByCombined.
16467 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16469 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16470 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16471 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16472 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16473 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16475 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16477 PR tree-optimization/46834
16478 PR tree-optimization/46994
16479 PR tree-optimization/46995
16480 * graphite-sese-to-poly.c (used_outside_reduction): New.
16481 (detect_commutative_reduction): Call used_outside_reduction.
16482 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16483 translate_scalar_reduction_to_array only when at least one
16484 loop-phi/close-phi tuple has been detected.
16486 2011-02-08 Richard Guenther <rguenther@suse.de>
16488 PR middle-end/47639
16489 * tree-vect-generic.c (expand_vector_operations_1): Update
16491 (expand_vector_operations): ... not here. Cleanup EH info
16492 and the CFG if required.
16494 2011-02-08 Richard Guenther <rguenther@suse.de>
16496 PR tree-optimization/47641
16497 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16498 require type compatibility.
16500 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16502 * gimple-low.c (lower_function_body): Don't remove the location of
16503 the return statement here.
16504 (lower_gimple_return): Do it here instead but only if the return
16505 statement is actually used twice.
16507 2011-02-08 Richard Guenther <rguenther@suse.de>
16509 PR tree-optimization/47632
16510 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16511 unused up_to_stmt parameter, return whether cfg-cleanup is
16512 necessary, remove EH info properly.
16513 (forward_propagate_into_gimple_cond): Adjust caller.
16514 (forward_propagate_into_cond): Likewise.
16515 (forward_propagate_comparison): Likewise.
16516 (tree_ssa_forward_propagate_single_use_vars): Make
16517 forward_propagate_comparison case similar to the two others.
16519 2011-02-08 Nick Clifton <nickc@redhat.com>
16521 * config/mn10300/mn10300.opt (mliw): New command line option.
16522 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16523 (liw_bundling): New automaton.
16524 (liw): New attribute.
16525 (liw_op): New attribute.
16526 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16527 (movsi_internal): Add LIW attributes.
16528 (andsi3): Likewise.
16529 (iorsi3): Likewise.
16530 (xorsi3): Likewise.
16531 (addsi3): Separate register and immediate alternatives.
16532 Add LIW attributes.
16533 (subsi3): Likewise.
16535 (aslsi3): Likewise.
16536 (lshrsi3): Likewise.
16537 (ashrsi3): Likewise.
16538 (liw): New pattern.
16539 * config/mn10300/mn10300.c (liw_op_names): New
16540 (mn10300_print_operand): Handle 'W' operand descriptor.
16541 (extract_bundle): New function.
16542 (check_liw_constraints): New function.
16543 (liw_candidate): New function.
16544 (mn10300_bundle_liw): New function.
16545 (mn10300_reorg): New function.
16546 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16547 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16548 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16549 __LIW__ or __NO_LIW__.
16550 * doc/invoke.texi: Describe the -mliw command line option.
16552 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16554 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16555 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16556 pthread_mutex_unlock): Remove.
16557 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16558 * config/pa/t-pa64: Likewise.
16559 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16560 shared libc if not linking against libpthread.
16561 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16563 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16566 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16567 on 10.6 and later to ensure that we always use the unwinder from
16568 the system. Only add -no_compact_unwind when tarteting darwin
16571 2011-02-07 Steve Ellcey <sje@cup.hp.com>
16574 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16575 (vec_interleave_lowv2sf): Ditto.
16576 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16577 (vec_extract_oddv2sf): Ditto.
16579 2011-02-07 Mike Stump <mikestump@comcast.net>
16582 Add __ieee_divdc3 entry point.
16583 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16585 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16586 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16587 * config/darwin.c (darwin_rename_builtins): Add.
16588 * config/darwin-protos.h (darwin_rename_builtins): Add.
16590 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16593 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16596 2011-02-07 Mike Stump <mikestump@comcast.net>
16598 * config/darwin.opt (mmacosx-version-min): Update default OS version.
16600 2011-02-07 Denis Chertykov <chertykov@gmail.com>
16603 * config/avr/libgcc.S (exit): Move .endfunc
16605 2011-02-07 Richard Guenther <rguenther@suse.de>
16607 PR tree-optimization/47615
16608 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16609 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16610 (run_scc_vn): Initialize it.
16611 (visit_reference_op_load): Use it.
16612 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16614 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16616 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16617 DImode trapping arithmetic libfuncs.
16619 2011-02-07 Richard Guenther <rguenther@suse.de>
16621 PR tree-optimization/47621
16622 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16624 (execute_update_addresses_taken): ... here. Make it more
16625 conservative in what we accept.
16627 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16629 * config/sparc/freebsd.h (ASM_SPEC): Define.
16630 * config/sparc/vxworks.h (ASM_SPEC): Define.
16632 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16634 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16636 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16638 * doc/invoke.texi: Remove reference to compiler internals from
16639 user documentation.
16641 * reg-notes.def: Remove REG_VALUE_PROFILE.
16642 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16644 2011-02-05 Jakub Jelinek <jakub@redhat.com>
16646 PR middle-end/47610
16647 * varasm.c (default_section_type_flags): If decl is NULL,
16648 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16650 2011-02-05 Jie Zhang <jie@codesourcery.com>
16653 * web.c (entry_register): Don't clobber the number of the
16654 first uninitialized reference in used[].
16656 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16658 PR tree-optimization/46194
16659 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16660 (build_classic_dist_vector_1): Do not represent classic distance
16661 vectors when the access functions are variating in different loops.
16663 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16665 * config/mips/iris6.opt: New.
16666 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16668 2011-02-04 Richard Henderson <rth@redhat.com>
16669 Steve Ellcey <sje@cup.hp.com>
16672 * config/ia64/predicates.md (mux1_brcst_element): New.
16673 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16674 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16675 (ia64_unpack_sign): New.
16676 (ia64_expand_unpack): Rewrite using new routines.
16677 (ia64_expand_widen_sum): Ditto.
16678 (ia64_expand_dot_prod_v8qi): Ditto.
16679 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16680 routines, add endian check.
16681 (pmpy2_even): Rename from pmpy2_r, add endian check.
16682 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16683 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16684 (vec_widen_smult_hi_v4hi): Ditto.
16685 (vec_widen_umult_lo_v4hi): Ditto.
16686 (vec_widen_umult_hi_v4hi): Ditto.
16687 (mulv2si3): Change endian checks.
16688 (sdot_prodv4hi): Rewrite with new calls.
16689 (udot_prodv4hi): New.
16690 (vec_pack_ssat_v4hi): Add endian check.
16691 (vec_pack_usat_v4hi): Ditto.
16692 (vec_pack_ssat_v2si): Ditto.
16693 (max1_even): Rename from max1_r, add endian check.
16694 (max1_odd): Rename from max1_l, add endian check.
16695 (*mux1_rev): Format change.
16696 (*mux1_mix): Ditto.
16697 (*mux1_shuf): Ditto.
16698 (*mux1_alt): Ditto.
16699 (*mux1_brcst_v8qi): Use new predicate.
16700 (vec_extract_evenv8qi): Remove endian check.
16701 (vec_extract_oddv8qi): Ditto.
16702 (vec_interleave_lowv4hi): Format change.
16703 (vec_interleave_highv4hi): Ditto.
16704 (mix2_even): Rename from mix2_r, add endian check.
16705 (mix2_odd): Rename from mux2_l, add endian check.
16706 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16707 (vec_extract_evenodd_helper): Format change.
16708 (vec_extract_evenv4hi): Remove endian check.
16709 (vec_extract_oddv4hi): Remove endian check.
16710 (vec_interleave_lowv2si): Format change.
16711 (vec_interleave_highv2si): Format change.
16712 (vec_initv2si): Remove endian check.
16713 (vecinit_v2si): Add endian check.
16714 (reduc_splus_v2sf): Add endian check.
16715 (reduc_smax_v2sf): Ditto.
16716 (reduc_smin_v2sf): Ditto.
16717 (vec_initv2sf): Remove endian check.
16718 (fpack): Add endian check.
16719 (fswap): Add endian check.
16720 (vec_interleave_highv2sf): Add endian check.
16721 (vec_interleave_lowv2sf): Add endian check.
16722 (fmix_lr): Add endian check.
16723 (vec_setv2sf): Format change.
16724 (*vec_extractv2sf_0_be): Use shift to extract operand.
16725 (*vec_extractv2sf_1_be): New.
16726 (vec_pack_trunc_v4hi): Add endian check.
16727 (vec_pack_trunc_v2si): Format change.
16729 2011-02-04 Jakub Jelinek <jakub@redhat.com>
16731 PR inline-asm/23200
16732 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
16733 do bb, locus and block comparison and disallow loads if it is not set.
16734 (stmt_is_replaceable_p): New function.
16735 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16737 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16738 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16740 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16742 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16744 * config/rs6000/xilinx.opt: New.
16745 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16747 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16749 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16751 2011-02-03 Anatoly Sokolov <aesok@post.ru>
16753 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16754 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16755 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16756 secondary_reload_info, xtensa_secondary_reload): Remove.
16757 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16758 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16759 (xtensa_preferred_reload_class): Make static. Change return and
16760 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16761 Use CONST_DOUBLE_P predicate.
16762 (xtensa_preferred_output_reload_class): New function.
16763 (xtensa_secondary_reload): Make static.
16765 2011-02-03 Joseph Myers <joseph@codesourcery.com>
16767 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16768 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16769 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16771 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16773 PR middle-end/31490
16774 * output.h (SECTION_RELRO): Define.
16775 (SECTION_MACH_DEP): Adjust.
16776 (get_variable_section): New prototype.
16777 * varpool.c (varpool_finalize_named_section_flags): New function.
16778 (varpool_assemble_pending_decls): Call it.
16779 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16780 * cgraphunit.c (cgraph_output_in_order): Call
16781 varpool_finalize_named_section_flags.
16782 * varasm.c (get_section): Allow section flags conflicts between
16783 relro and read-only sections if the section hasn't been declared yet.
16784 Set SECTION_OVERRIDE after diagnosing section type conflict.
16785 (get_variable_section): No longer static.
16786 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16787 readonly sections that need relocations.
16788 (decl_readonly_section_1): New function.
16789 (decl_readonly_section): Use it.
16792 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
16793 Steve Ellcey <sje@cup.hp.com>
16795 PR middle-end/31490
16796 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16797 if section attribute used.
16799 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16801 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16802 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16803 (darwin_init_sections): Remove assertion.
16805 2011-02-03 Nick Clifton <nickc@redhat.com>
16807 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16809 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16810 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16811 instead of "n" and "pz".
16812 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16815 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16818 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16819 fma, expand FMA_EXPR as fma{,f,l} call.
16822 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16823 copy them into a unsigned char variable and pass address of it to
16824 lto_output_data_stream.
16827 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16828 around backend_init_target and lang_dependent_init_target calls.
16829 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16830 (verify_cgraph_node): Don't call set_cfun here. Use
16831 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16832 Set error_found for incorrectly represented calls to thunks.
16834 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16837 PR rtl-optimization/43494
16838 * rtl.h (for_each_inc_dec_fn): New type.
16839 (for_each_inc_dec): Declare.
16840 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16841 (for_each_inc_dec_find_inc_dec): New fn.
16842 (for_each_inc_dec_find_mem): New fn.
16843 (for_each_inc_dec): New fn.
16844 * dse.c (struct insn_size): Remove.
16845 (replace_inc_dec, replace_inc_dec_mem): Remove.
16846 (emit_inc_dec_insn_before): New fn.
16847 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16848 (canon_address): Pass mem modes to cselib_lookup.
16849 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16850 (cselib_lookup_from_insn): Likewise.
16851 (cselib_subst_to_values): Likewise.
16852 * cselib.c (find_slot_memmode): New var.
16853 (cselib_find_slot): New fn. Use it instead of
16854 htab_find_slot_with_hash everywhere.
16855 (entry_and_rtx_equal_p): Use find_slot_memmode.
16856 (autoinc_split): New fn.
16857 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16858 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16859 Deal with autoinc. Special-case recursion into MEMs.
16860 (cselib_hash_rtx): Likewise.
16861 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16862 address and MEM modes.
16863 (cselib_subst_to_values): Add memmode, pass it on.
16865 (cselib_lookup): Add memmode argument, pass it on.
16866 (cselib_lookup_from_insn): Add memmode.
16867 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16868 (struct cselib_record_autoinc_data): New.
16869 (cselib_record_autoinc_cb): New fn.
16870 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16871 mode to cselib_lookup. Reset autoinced REGs here instead of...
16872 (cselib_process_insn): ... here.
16873 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16875 (add_uses): Likewise, also to cselib_subst_to_values.
16876 (add_stores): Likewise.
16877 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16878 cselib_subst_to_values.
16879 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16880 * gcse.c (do_local_cprop): Adjusted.
16881 * postreload.c (reload_cse_simplify_set): Adjusted.
16882 (reload_cse_simplify_operands): Adjusted.
16883 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16885 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16887 PR tree-optimization/45122
16888 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16889 unsafe assumptions when there's more than one loop exit.
16891 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16894 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16895 Document using vector double with the load/store builtins, and
16896 that the load/store builtins always use Altivec instructions.
16898 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16899 to use altivec memory instructions, even on VSX.
16900 (vector_altivec_store_<mode>): Ditto.
16902 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16905 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16906 V2DF, V2DI support to load/store overloaded builtins.
16908 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16909 altivec load/store builtins for V2DF/V2DI types.
16911 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16912 set avoid indexed addresses on power6 if -maltivec.
16913 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16914 vector_altivec_load/vector_altivec_store builtins.
16915 (altivec_expand_st_builtin): Ditto.
16916 (altivec_expand_builtin): Add VSX memory builtins.
16917 (rs6000_init_builtins): Add V2DI types to internal types.
16918 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16919 load/store builtins.
16920 (rs6000_address_for_altivec): Insure memory address is appropriate
16923 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16924 vec_vsx_ld and vec_vsx_st.
16925 (vsx_store_<mode>): Ditto.
16927 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16928 variables to hold long long types for VSX vector memory builtins.
16929 (RS6000_BTI_unsigned_long_long): Ditto.
16930 (long_long_integer_type_internal_node): Ditti.
16931 (long_long_unsigned_type_internal_node): Ditti.
16933 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16934 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16935 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16937 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16939 (vec_vsx_st): Ditto.
16941 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16943 * config/pa/pa-hpux10.opt: New.
16944 * config/hpux11.opt (pthread): New Driver option.
16945 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16946 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16948 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16950 * config/ia64/vms.opt: New.
16951 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16953 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16956 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16957 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16958 generator functions.
16959 (vsx_floatuns<VSi><mode>2): Ditto.
16960 (vsx_fix_trunc<mode><VSi>2): Ditto.
16961 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16963 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16965 * config/i386/djgpp.opt (posix): New Driver option.
16967 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16969 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16970 Move to the unsupported targets list.
16972 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16974 PR rtl-optimization/47525
16975 * df-scan.c: Update copyright years.
16976 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16977 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16979 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16981 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16982 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16983 (ASM_OUTPUT_ASCII): Remove.
16984 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16986 2011-02-02 Jeff Law <law@redhat.com>
16988 PR middle-end/47543
16989 * reload.c (find_reloads_address): Handle reg+d address where both
16990 components are invalid by reloading the entire address.
16992 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16993 Richard Guenther <rguenther@suse.de>
16995 PR tree-optimization/40979
16997 * passes.c (init_optimization_passes): After LIM call copy_prop
16998 and DCE to clean up.
16999 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17001 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17003 PR tree-optimization/47576
17004 PR tree-optimization/47555
17005 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17006 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17007 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17008 * tree-scalar-evolution.c (follow_ssa_edge): Use
17009 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17011 2011-02-02 Richard Guenther <rguenther@suse.de>
17013 PR tree-optimization/47566
17014 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17016 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17020 * tree-inline.c (declare_return_variable): Remove unused caller
17025 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17026 * cfgexpand.c (account_used_vars_for_block): Use them.
17027 * tree-nrv.c (tree_nrv): Likewise.
17028 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17029 (dump_scope_block): Likewise.
17030 (remove_unused_locals): Likewise.
17034 * tree-inline.c (declare_return_variable): Add result decl to
17035 local decls only once.
17036 * gimple-low.c (record_vars_into): Mark newly-created variables
17039 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17045 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17047 (no_real_insns_p, schedule_block, set_priorities): Drop special
17048 treatment of boundary debug insns.
17049 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17050 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17051 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17052 (BOUNDARY_DEBUG_INSN_P): Likewise.
17053 (SCHEDULE_DEBUG_INSN_P): Likewise.
17054 * sched-rgn.c (init_ready_list): Drop special treatment of
17055 boundary debug insns.
17056 * final.c (rest_of_clean_state): Clear notes' BB.
17058 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17060 * config/openbsd.opt (assert=): New Driver option.
17062 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17064 * config/i386/nto.opt: New.
17065 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17067 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17069 * config/i386/netware.opt: New.
17070 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17072 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17074 * config/interix.opt (posix): New Driver option.
17076 2011-02-01 DJ Delorie <dj@redhat.com>
17078 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17080 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17083 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17085 PR tree-optimization/47561
17086 * toplev.c (process_options): Print the Graphite flags. Add
17087 flag_loop_flatten to the list of options requiring Graphite.
17089 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17091 * config/i386/cygming.opt (posix): New Driver option.
17093 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17095 * config/arm/vxworks.opt: New.
17096 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17098 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17100 * config/alpha/elf.opt: New.
17101 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17102 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17104 2011-02-01 Richard Guenther <rguenther@suse.de>
17106 PR tree-optimization/47559
17107 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17108 store-motion on references that can throw.
17110 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17112 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17113 * tree-pass.h (TDF_CSELIB): New macro.
17114 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17115 cselib_lookup): Check for it rather than for TDF_DETAILS.
17117 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17120 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17121 is HOST_BIT_BUCKET.
17123 * opts.c (finish_options): Don't add x_aux_base_name if it is
17126 2011-02-01 Richard Guenther <rguenther@suse.de>
17128 PR tree-optimization/47555
17130 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17132 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17134 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17137 * config/lm32/t-lm32: Add multilib for all CPU options.
17139 2011-02-01 Richard Guenther <rguenther@suse.de>
17141 PR tree-optimization/47541
17142 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17143 sure to have a field at offset zero.
17145 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17147 * config/arc/arc.opt (EB, EL): New Driver options.
17149 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17151 * config/alpha/osf5.opt: New.
17152 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17154 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17156 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17158 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17160 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17161 -floop-interchange.
17162 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17163 is an alias of -floop-interchange and that it requires the
17164 Graphite infrastructure.
17165 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17166 flag_loop_interchange based on the value of flag_tree_loop_linear.
17168 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17169 Richard Guenther <rguenther@suse.de>
17171 PR tree-optimization/47538
17172 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17173 type instead of r1type, except for comparisons. For right
17174 shifts and comparisons punt if there are mismatches in
17175 sizetype vs. non-sizetype types.
17177 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17179 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17182 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17184 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17186 * configure: Regenerate.
17188 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17190 * configure.ac (gcc_cv_ld_static_option): Define.
17191 (gcc_cv_ld_dynamic_option): Define.
17192 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17194 (HAVE_LD_STATIC_DYNAMIC): Update message.
17195 (LD_STATIC_OPTION): Define.
17196 (LD_DYNAMIC_OPTION): Define.
17197 * configure: Regenerate.
17198 * config.in: Regenerate.
17199 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17200 HAVE_LD_STATIC_DYNAMIC]: Use them.
17202 2011-01-31 Nick Clifton <nickc@redhat.com>
17204 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17205 registers inside interrupt handlers if the handler is not a leaf
17208 2011-01-31 Nick Clifton <nickc@redhat.com>
17210 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17211 reg_renumber returning an INVALID_REGNUM.
17213 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17216 * doc/install.texi: Document host options discarded when cross
17217 configuring target libraries.
17219 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17222 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17225 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17227 (no_real_insns_p, schedule_block, set_priorities): Drop special
17228 treatment of boundary debug insns.
17229 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17230 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17231 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17232 (BOUNDARY_DEBUG_INSN_P): Likewise.
17233 (SCHEDULE_DEBUG_INSN_P): Likewise.
17234 * sched-rgn.c (init_ready_list): Drop special treatment of
17235 boundary debug insns.
17236 * final.c (rest_of_clean-state): Clear notes' BB.
17238 2011-01-31 Alan Modra <amodra@gmail.com>
17240 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17241 toc relative expressions as we do in print_operand_address.
17243 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17245 * doc/extend.texi: Follow spelling conventions.
17246 * doc/invoke.texi: Fix a typo.
17248 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17250 * config/hpux11.opt: New.
17251 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17252 ia64*-*-hpux*): Use hpux11.opt.
17254 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17256 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17259 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17261 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17264 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17266 * doc/install.texi (Binaries): Remove outdated reference for
17267 Motorola 68HC11/68HC12 downloads.
17269 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17271 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17274 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17277 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17280 2011-01-28 Ahmad Sharif <asharif@google.com>
17282 * value-prof.c (check_counter): Corrected error message.
17284 2011-01-29 Jie Zhang <jie@codesourcery.com>
17286 * config/arm/arm.c (arm_legitimize_reload_address): New.
17287 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17288 arm_legitimize_reload_address.
17289 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17291 2011-01-28 Ian Lance Taylor <iant@google.com>
17293 * godump.c (go_define): Ignore macros whose definitions include
17294 two adjacent operands.
17296 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17299 * varasm.c (force_const_mem): Store copy of x in desc->constant
17300 instead of x itself.
17301 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17302 itself into REG_EQUAL note.
17304 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17306 * config/freebsd.opt (posix, rdynamic): New Driver options.
17308 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17310 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17311 -Bstatic/-Bdynamic.
17312 * configure: Regenerate.
17314 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17316 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17317 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17319 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17321 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17322 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17323 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17324 (s390_preferred_reload_class): Make static. Change return and
17325 'rclass' argument type to reg_class_t.
17327 2011-01-27 Jan Hubicka <jh@suse.cz>
17329 PR middle-end/46949
17330 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17331 (process_function_and_variable_attributes): Check defined weakrefs.
17333 2011-01-27 Martin Jambor <mjambor@suse.cz>
17335 PR tree-optimization/47228
17336 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17337 build_ref_for_offset.
17339 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17341 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17343 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17345 PR rtl-optimization/46856
17346 * postreload.c (reload_combine_recognize_const_pattern): Do not
17347 separate cc0 setter and user on cc0 targets.
17349 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17352 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17353 passed a VOID_TYPE expression, immediately emit an error and
17354 return error_mark_node.
17356 2011-01-26 Jeff Law <law@redhat.com>
17358 PR rtl-optimization/47464
17359 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17360 rather than may_trap_p as needed.
17362 2011-01-26 DJ Delorie <dj@redhat.com>
17364 PR rtl-optimization/46878
17365 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17366 setter/user dependency as well.
17368 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17370 PR rtl-optimization/44469
17371 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17372 after removing trivially dead basic blocks.
17374 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17376 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17377 * config/frv/frv.h (LINK_SPEC): Likewise.
17378 * config/i386/netware.h (LINK_SPEC): Likewise.
17379 * config/m68k/linux.h (ASM_SPEC): Likewise.
17380 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17381 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17382 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17383 * config/sparc/linux.h (ASM_SPEC): Likewise.
17384 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17385 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17387 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17389 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17390 * config/frv/frv.h (ASM_SPEC): Likewise.
17391 * config/m68k/linux.h (ASM_SPEC): Likewise.
17392 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17393 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17394 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17395 * config/sparc/linux.h (ASM_SPEC): Likewise.
17396 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17397 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17399 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17401 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17402 * config/frv/frv.h (LINK_SPEC): Likewise.
17403 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17405 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17407 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17408 * config/frv/frv.h (ASM_SPEC): Likewise.
17409 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17410 * config/m68k/linux.h (ASM_SPEC): Likewise.
17411 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17412 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17413 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17414 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17415 * config/sparc/linux.h (ASM_SPEC): Likewise.
17416 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17417 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17418 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17420 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17423 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17425 (vec_extract_evenodd_help): Ditto.
17426 (vec_extract_evenv4hi): Ditto.
17427 (vec_extract_oddv4hi): Ditto.
17428 (vec_interleave_lowv2si): Ditto.
17429 (vec_interleave_highv2si): Ditto.
17430 (vec_extract_evenv2si): Ditto.
17431 (vec_extract_oddv2si: Ditto.
17432 (vec_pack_trunc_v2si): Ditto.
17434 2011-01-22 Jan Hubicka <jh@suse.cz>
17437 * cgraph.h (cgraph_local_info): New field can_change_signature.
17438 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17439 signature can change.
17440 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17442 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17443 (cgraph_function_versioning): We can not change signature of functions
17444 that don't allow that.
17445 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17446 (lto_input_node): Likewise.
17447 * ipa-inline.c (compute_inline_parameters): Compute
17448 local.can_change_signature.
17449 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17450 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17451 functions that can not change signature.
17452 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17453 init_cumulative_args): Do not use local calling conventions
17454 for functions that can not change signature.
17456 2011-01-22 Jan Hubicka <jh@suse.cz>
17458 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17460 2011-01-26 Richard Guenther <rguenther@suse.de>
17462 PR tree-optimization/47190
17463 * cgraphunit.c (process_common_attributes): New function.
17464 (process_function_and_variable_attributes): Use it.
17466 2011-01-26 Richard Guenther <rguenther@suse.de>
17469 * cgraphbuild.c (record_eh_tables): Record reference to personality
17472 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17475 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17476 non-debug insns from moving up.
17478 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17481 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17482 t-dlldir{,-x} fragment for build and add it to tmake_file.
17483 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17484 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17485 * config/i386/t-dlldir: New file.
17486 (SHLIB_DLLDIR): Define.
17487 * config/i386/t-dlldir-x: New file.
17488 (SHLIB_DLLDIR): Define.
17489 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17490 (SHLIB_INSTALL): Use it.
17492 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17495 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17496 lower bound of the allowed Thumb-2 coprocessor load/store
17497 index range to -256. Add explaining comment.
17499 2011-01-25 Ian Lance Taylor <iant@google.com>
17501 * godump.c (go_define): Improve lexing of macro expansion to only
17502 accept expressions which match Go spec.
17504 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17507 * tree.c (handle_dll_attribute): Handle it.
17508 * doc/extend.texi (@item dllexport): Mention it.
17509 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17511 2011-01-25 Ian Lance Taylor <iant@google.com>
17513 PR tree-optimization/26854
17514 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17515 (decl_jump_unsafe): Move higher in file, with no other change.
17516 (bind): Set has_jump_unsafe_decl if appropriate.
17517 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17518 (check_earlier_gotos): Likewise.
17519 (c_check_switch_jump_warnings): Likewise.
17521 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17523 * doc/invoke.texi (Warning Options): Add missing hyphen.
17524 (-fprofile-dir): Minor grammatical fixes.
17525 (-fbranch-probabilities): Likewise.
17527 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17531 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17533 (no_real_insns_p, schedule_block, set_priorities): Drop special
17534 treatment of boundary debug insns.
17535 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17536 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17537 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17538 (BOUNDARY_DEBUG_INSN_P): Likewise.
17539 (SCHEDULE_DEBUG_INSN_P): Likewise.
17540 * sched-rgn.c (init_ready_list): Drop special treatment of
17541 boundary debug insns.
17542 * final.c (rest_of_clean-state): Clear notes' BB.
17544 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17546 * Makefile.in (LAMBDA_H): Removed.
17547 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17548 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17549 lambda-trans.o, and tree-loop-linear.o.
17550 (lto-symtab.o): Remove dependence on LAMBDA_H.
17551 (tree-loop-linear.o): Remove rule.
17552 (lambda-mat.o): Same.
17553 (lambda-trans.o): Same.
17554 (lambda-code.o): Same.
17555 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17556 (tree-vect-slp.o): Same.
17557 * hwint.h (gcd): Moved here.
17558 (least_common_multiple): Same.
17559 * lambda-code.c: Removed.
17560 * lambda-mat.c: Removed.
17561 * lambda-trans.c: Removed.
17562 * lambda.h: Removed.
17563 * tree-loop-linear.c: Removed.
17564 * lto-symtab.c: Do not include lambda.h.
17565 * omega.c (gcd): Removed.
17566 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17567 * tree-data-ref.c (print_lambda_vector): Moved here.
17568 (lambda_vector_copy): Same.
17569 (lambda_matrix_copy): Same.
17570 (lambda_matrix_id): Same.
17571 (lambda_vector_first_nz): Same.
17572 (lambda_matrix_row_add): Same.
17573 (lambda_matrix_row_exchange): Same.
17574 (lambda_vector_mult_const): Same.
17575 (lambda_vector_negate): Same.
17576 (lambda_matrix_row_negate): Same.
17577 (lambda_vector_equal): Same.
17578 (lambda_matrix_right_hermite): Same.
17579 * tree-data-ref.h: Do not include lambda.h.
17580 (lambda_vector): Moved here.
17581 (lambda_matrix): Same.
17582 (dependence_level): Same.
17583 (lambda_transform_legal_p): Removed declaration.
17584 (lambda_collect_parameters): Same.
17585 (lambda_compute_access_matrices): Same.
17586 (lambda_vector_gcd): Same.
17587 (lambda_vector_new): Same.
17588 (lambda_vector_clear): Same.
17589 (lambda_vector_lexico_pos): Same.
17590 (lambda_vector_zerop): Same.
17591 (lambda_matrix_new): Same.
17592 * tree-flow.h (least_common_multiple): Removed declaration.
17593 * tree-parloops.c (lambda_trans_matrix): Moved here.
17594 (LTM_MATRIX): Same.
17595 (LTM_ROWSIZE): Same.
17596 (LTM_COLSIZE): Same.
17597 (LTM_DENOMINATOR): Same.
17598 (lambda_trans_matrix_new): Same.
17599 (lambda_matrix_vector_mult): Same.
17600 (lambda_transform_legal_p): Same.
17601 * tree-pass.h (pass_linear_transform): Removed declaration.
17602 * tree-ssa-loop.c (tree_linear_transform): Removed.
17603 (gate_tree_linear_transform): Removed.
17604 (pass_linear_transform): Removed.
17605 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17606 flag_loop_interchange.
17608 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17610 PR tree-optimization/47265
17611 PR tree-optimization/47443
17612 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17613 if name still has some uses.
17615 2011-01-25 Martin Jambor <mjambor@suse.cz>
17617 PR tree-optimization/47382
17618 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17619 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17621 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
17623 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17624 sjlj_except_unwind_info.
17626 2011-01-25 Richard Guenther <rguenther@suse.de>
17628 PR tree-optimization/47426
17629 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17630 visible functions results escape.
17632 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17635 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17636 (arm_get_frame_offsets): Use it.
17638 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17639 Jakub Jelinek <jakub@redhat.com>
17641 PR tree-optimization/47271
17642 * tree-if-conv.c (bb_postdominates_preds): New.
17643 (if_convertible_bb_p): Call bb_postdominates_preds.
17644 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17645 (predicate_scalar_phi): Call bb_postdominates_preds.
17647 2011-01-25 Nick Clifton <nickc@redhat.com>
17649 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17650 * config/rx/rx.c (rx_function_value): Likewise.
17651 (rx_promote_function_mode): Likewise.
17652 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17653 in order to make it legitimate.
17654 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17655 make sure that the first operand is the same as the result register.
17656 (addsi3_unspec): Delete.
17657 (subdi3): Do not accept immediate operands.
17658 (subdi3_internal): Likewise.
17660 2011-01-25 Jeff Law <law@redhat.com>
17662 PR rtl-optimization/37273
17663 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17664 handle them like argument loads from stack slots. Do not double
17665 count memory for memory constants and argument loads from stack slots.
17667 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17669 PR tree-optimization/47427
17670 PR tree-optimization/47428
17671 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17672 coalesce if the new root var would be TREE_READONLY.
17674 2011-01-25 Richard Guenther <rguenther@suse.de>
17676 PR middle-end/47414
17677 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17678 correct type for TBAA.
17680 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17682 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17683 (close_phi_written_to_memory): Call for_each_index with
17684 dr_indices_valid_in_loop.
17686 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17688 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17689 when it is initialized.
17691 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17693 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17694 call to graphite_find_data_references_in_stmt.
17695 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17696 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17697 call to graphite_find_data_references_in_stmt.
17698 (analyze_drs_in_stmts): Same.
17699 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17700 in which the scalar analysis of indices is performed.
17701 (create_data_ref): Same. Update call to dr_analyze_indices.
17702 (find_data_references_in_stmt): Update call to create_data_ref.
17703 (graphite_find_data_references_in_stmt): Same.
17704 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17706 (create_data_ref): Same.
17707 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17708 call to create_data_ref.
17710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17712 * graphite-sese-to-poly.c (build_poly_scop): Move
17713 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17715 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17717 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17718 VAR_DECL, PARM_DECL, and RESULT_DECL.
17720 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17722 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17723 in a reduction PBB.
17724 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17725 that have already been marked as PBB_IS_REDUCTION.
17727 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17729 * graphite-scop-detection.c (same_close_phi_node): New.
17730 (remove_duplicate_close_phi): New.
17731 (make_close_phi_nodes_unique): New.
17732 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17734 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17736 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17737 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17738 of both data references to be the same.
17740 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17742 * graphite-dependences.c (build_lexicographical_constraint): Remove
17743 the gdim parameter.
17744 (build_lexicographical_constraint): Adjust call to
17745 ppl_powerset_is_empty.
17746 (dependence_polyhedron): Same.
17747 (graphite_legal_transform_dr): Same.
17748 (graphite_carried_dependence_level_k): Same.
17749 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17751 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17753 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17755 * graphite-sese-to-poly.c
17756 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17757 (close_phi_written_to_memory): New.
17758 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17761 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17763 * doc/install.texi: Update the expected version number of PPL to 0.11.
17764 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17765 #if PPL_VERSION_MINOR < 11.
17767 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17769 * graphite-dependences.c: Include graphite-cloog-util.h.
17770 (new_poly_ddr): Inlined into dependence_polyhedron.
17771 (free_poly_ddr): Moved close by new_poly_ddr.
17772 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17773 Early return NULL when ppl_powerset_is_empty returns true.
17774 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17775 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17776 (graphite_legal_transform_dr): Call new_poly_ddr.
17777 (graphite_carried_dependence_level_k): Same.
17778 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17779 (dot_transformed_deps_stmt_1): Removed.
17780 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17781 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17782 (dot_deps_1): Call dot_deps_2.
17783 * Makefile.in (graphite-dependences.o): Add missing dependence on
17784 graphite-cloog-util.h.
17786 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17788 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17789 (build_lexicographical_constraint): Same.
17790 (dependence_polyhedron_1): Same.
17791 (graphite_legal_transform_dr): Same.
17792 (graphite_carried_dependence_level_k): Same.
17793 * graphite-ppl.c (ppl_powerset_is_empty): New.
17794 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17795 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17797 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17799 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17800 the "a followed by b" relation and document it.
17802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17804 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17805 iteration when the bag of constraints is empty.
17807 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17809 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17811 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17813 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17814 nest and two loop depths as parameters.
17815 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17816 lst_perfect_nestify.
17818 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17820 * graphite-dependences.c (print_pddr): Call
17821 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17823 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17825 * graphite-ppl.c (debug_gmp_value): New.
17826 * graphite-ppl.h (debug_gmp_value): Declared.
17828 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17830 * doc/install.texi: Document availability of cloog-0.16.
17832 2011-01-25 Vladimir Kargov <kargov@gmail.com>
17834 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17835 invalid postdominance info.
17837 2011-01-24 Jan Hubicka <jh@suse.cz>
17840 * doc/extend.texi (weak pragma): Drop claim that it must
17841 appear before definition.
17842 * varasm.c (merge_weak, declare_weak): Only sanity check
17843 that DECL is not output at a time it is declared weak.
17845 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17847 * machmode.def: Fixed comments.
17849 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
17851 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17853 2011-01-24 Paul Koning <ni1d@arrl.net>
17855 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17858 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17861 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17862 (block_info): Add scanned and prev.
17863 (move_or_delete_vzeroupper_2): Return if the basic block
17864 has been scanned and the upper 128bit state is unchanged
17865 from the last scan.
17866 (move_or_delete_vzeroupper_1): Return true if the exit
17868 (move_or_delete_vzeroupper): Visit basic blocks using the
17869 work-list based algorithm based on vt_find_locations in
17872 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17874 2011-01-24 Nick Clifton <nickc@redhat.com>
17876 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17877 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17878 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17879 then define __v850e1__.
17880 * doc/invoke.texi: Document -mv850es.
17882 2011-01-24 Richard Henderson <rth@redhat.com>
17884 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17885 compound unordered comparisons.
17886 * config/rx/rx.c (rx_split_fp_compare): Remove.
17887 * config/rx/rx-protos.h: Update.
17888 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17889 (cbranchsf4): Don't call rx_split_fp_compare.
17890 (*cbranchsf4): Use rx_split_cbranch.
17891 (*cmpsf): Don't accept "i" constraint.
17892 (*conditional_branch): Only valid after reload.
17893 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17895 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17898 * config/rs6000/altivec.md (vector constant splitters): Add
17899 support for creating vector single precision constants if -mvsx is
17900 used and we would create the constant using Altivec primitives.
17902 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17903 Richard Sandiford <rdsandiford@googlemail.com>
17905 PR rtl-optimization/47166
17906 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17907 mechanism for PRE_MODIFY and POST_MODIFY.
17908 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17911 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17913 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17915 2011-01-22 Jan Hubicka <jh@suse.cz>
17918 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17920 2011-01-22 Jan Hubicka <jh@suse.cz>
17922 PR tree-optimization/43884
17924 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17925 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17927 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17929 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17930 * config/s390/s390.c (s390_register_move_cost,
17931 s390_memory_move_cost): New.
17932 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17934 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17936 PR middle-end/47401
17937 * except.c (sjlj_assign_call_site_values): Move setting the
17938 crtl->uses_eh_lsda flag to ...
17939 (sjlj_mark_call_sites): ... here.
17940 (sjlj_emit_function_enter): Support NULL dispatch label.
17941 (sjlj_build_landing_pads): In a function with no landing pads
17942 that still has must-not-throw regions, generate code to register
17943 a personality function with empty LSDA.
17945 2011-01-21 Richard Henderson <rth@redhat.com>
17947 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17949 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17951 * compare-elim.c: New file.
17952 * Makefile.in (OBJS-common): Add it.
17953 (compare-elim.o): New.
17954 * common.opt (fcompare-elim): New.
17955 * opts.c (default_options_table): Add OPT_fcompare_elim.
17956 * tree-pass.h (pass_compare_elim_after_reload): New.
17957 * passes.c (init_optimization_passes): Add it.
17958 * recog.h: Protect against re-inclusion.
17959 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17960 * doc/invoke.texi (-fcompare-elim): Document it.
17961 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17962 * doc/tm.texi: Rebuild.
17964 2011-01-22 Nick Clifton <nickc@redhat.com>
17966 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17967 rx_split_fp_compare.
17969 2011-01-22 Nick Clifton <nickc@redhat.com>
17971 * config/rx/rx.md (UNSPEC_CONST): New.
17972 (deallocate_and_return): Wrap the amount popped off the stack in
17973 an UNSPEC_CONST in order to stop it being rejected by
17974 -mmax-constant-size.
17975 (pop_and_return): Add a "(return)" rtx.
17976 (call): Drop the immediate operand.
17977 (call_internal): Likewise.
17978 (call_value): Likewise.
17979 (call_value_internal): Likewise.
17980 (sibcall_internal): Likewise.
17981 (sibcall_value_internal): Likewise.
17982 (sibcall): Likewise. Generate an explicit call using
17984 (sibcall_value): Likewise.
17985 (mov<>): FAIL if a constant operand is not legitimate.
17986 (addsi3_unpsec): New pattern.
17988 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17989 (ok_for_max_constant): New function.
17990 (gen_safe_add): New function.
17991 (rx_expand_prologue): Use gen_safe_add.
17992 (rx_expand_epilogue): Likewise.
17993 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17996 2011-01-21 Jeff Law <law@redhat.com>
17998 PR tree-optimization/47053
17999 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18000 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18001 statements are deleted.
18002 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18003 is nonempty, then purge dead edges and cleanup the CFG.
18005 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18008 Temporarily revert:
18009 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18011 * tree-dfa.c (create_var_ann): Mark variable as used.
18013 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18015 PR middle-end/45566
18016 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18017 notes from other section in hot/cold partitioning even if
18018 last_action is -3. Increment call_site_base.
18020 PR rtl-optimization/47366
18021 * fwprop.c (forward_propagate_into): Return bool. If
18022 any changes are made, -fnon-call-exceptions is used and
18023 REG_EH_REGION note is present, call purge_dead_edges
18024 and return true if it purged anything.
18025 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18026 any EH edges were purged.
18028 2011-01-21 Jeff Law <law@redhat.com>
18030 PR rtl-optimization/41619
18031 * caller-save.c (setup_save_areas): Break out code to determine
18032 which hard regs are live across calls by examining the reload chains
18033 so that it is always used.
18034 Eliminate code which checked REG_N_CALLS_CROSSED.
18036 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18038 PR tree-optimization/47355
18039 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18040 NOP has non-debug uses beyond PHIs in new_bb.
18042 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18045 * cfgexpand.c (account_used_vars_for_block): Only account vars
18046 that are annotated as used.
18047 (estimated_stack_frame_size): Don't set TREE_USED.
18048 * tree-dfa.c (create_var_ann): Mark variable as used.
18050 2011-01-21 Richard Guenther <rguenther@suse.de>
18052 PR middle-end/47395
18053 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18055 2011-01-21 Richard Guenther <rguenther@suse.de>
18057 PR tree-optimization/47365
18058 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18059 (vn_reference_lookup_pieces): Adjust.
18060 (vn_reference_lookup): Likewise.
18061 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18062 (vn_reference_lookup_3): Only look through kills if in
18063 VN_WALKREWRITE mode.
18064 (vn_reference_lookup_pieces): Adjust.
18065 (vn_reference_lookup): Likewise.
18066 (visit_reference_op_load): Likewise.
18067 (visit_reference_op_store): Likewise.
18068 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18069 (compute_avail): Likewise.
18070 (eliminate): Likewise.
18072 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18074 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18075 DECL_IGNORED_P non-reg vars if they are used.
18077 PR tree-optimization/47391
18078 * varpool.c (const_value_known_p): Return false if
18081 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
18084 * config/i386/i386.c (ix86_local_alignment): Handle
18085 case for va_list_type_node is nil.
18086 (ix86_canonical_va_list_type): Likewise.
18088 2011-01-21 Alan Modra <amodra@gmail.com>
18090 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18091 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18093 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18095 * config/arm/arm.md (define_attr type): Rename f_load
18096 and f_store to f_fpa_load and f_fpa_store. Update.
18097 (write_conflict): Deal with rename fallout.
18098 (*push_fp_multi): Likewise.
18099 * config/arm/fpa.md (f_load): Use f_fpa_load.
18100 (f_store): Use f_fpa_store.
18101 (*movsf_fpa): Likewise.
18102 (*movdf_fpa): Likewise.
18103 (*movxf_fpa): Likewise.
18104 (*thumb2_movsf_fpa): Likewise.
18105 (*thumb2_movdf_fpa): Likewise.
18106 (*thumb2_movxf_fpa): Likewise.
18107 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18108 f_loadd and f_stored.
18109 (*thumb2_movdi_vfp): Likewise.
18110 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18111 (*thumb2_movsi_vfp): Likewise.
18112 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18113 Use f_loads instead of f_load.
18114 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18116 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18118 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18119 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18120 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18121 (xtensa_mode_dependent_address_p): New function.
18122 (constantpool_address_p): Make static. Change return type to bool.
18123 Change argument type to const_rtx. Use CONST_INT_P predicate.
18125 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18128 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18130 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18133 * cfgexpand.c (expand_debug_expr): Instead of generating
18134 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18137 2011-01-20 Richard Guenther <rguenther@suse.de>
18139 PR middle-end/47370
18140 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18141 the pointer operand of MEM_REFs.
18143 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18145 PR tree-optimization/46130
18146 * ipa-split.c (consider_split): If return_bb contains non-virtual
18147 PHIs other than for retval or if split_function would not adjust it,
18150 2011-01-20 Richard Guenther <rguenther@suse.de>
18152 PR tree-optimization/47167
18153 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18154 Revert previous change, only avoid enumeral type changes.
18156 2011-01-19 Mike Stump <mikestump@comcast.net>
18158 * doc/tm.texi.in (BRANCH_COST): Englishify.
18159 * doc/tm.texi (BRANCH_COST): Likewise.
18161 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18164 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18165 (gen_scheduled_generic_parms_dies): New functions.
18166 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18167 generation for the end of CU compilation.
18168 (dwarf2out_finish): Generate template parameters DIEs here.
18170 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18173 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18174 debug bind stmt on merge edges.
18176 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18180 * function.c (instantiate_expr): Instantiate incoming rtl of
18181 implicit arguments, and recurse on VALUE_EXPRs.
18182 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18183 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18185 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18187 * c-parser.c (c_parser_for_statement): Initialize
18188 collection_expression.
18190 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18192 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18194 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18196 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18197 (LINK_SHLIB_SPEC): Don't use %(link_path).
18198 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18200 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18202 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18203 (NO_SHARED_LIB_SUPPORT): Remove.
18204 (LINK_SHLIB_SPEC): Remove one conditional definition.
18206 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18208 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18210 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18211 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18212 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18213 %{call_shared} and conditionals on these options not being passed.
18214 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18217 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18219 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18222 * ipa-split.c: Spelling fixes.
18224 2011-01-19 Richard Henderson <rth@redhat.com>
18226 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18227 (*mulsi3): Likewise.
18229 * longlong.h [__mn10300__] (count_leading_zeros): New.
18230 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18231 [__mn10300__] (add_ssaaaa, subddmmss): New.
18232 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18233 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18235 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18237 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18239 2011-01-19 Richard Henderson <rth@redhat.com>
18241 * config/mn10300/mn10300.md (addsi3_flags): New.
18242 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18243 (subsi3_flags, subc_internal, subdi3): New.
18244 (subdi3_internal, *subdi3_degenerate): New.
18245 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18247 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18248 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18249 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18250 * config/mn10300/mn10300-protos.h: Update.
18251 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18252 (return_ret): Likewise. Rename from return_internal_regs.
18253 (return_internal): Remove.
18255 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18256 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18257 (mn10300_legitimate_constant_p): Likewise.
18258 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18259 (mn10300_frame_size): New.
18260 (mn10300_expand_prologue): Use it.
18261 (mn10300_expand_epilogue): Likewise.
18262 (mn10300_initial_offset): Likewise.
18263 * config/mn10300/mn10300-protos.h: Update.
18264 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18265 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18266 (prologue, epilogue, return_internal): Tidy output code.
18267 (mn10300_store_multiple_operation, return): Likewise.
18268 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18269 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18270 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18271 (load_pic, am33_load_pic): New.
18272 (mn10300_load_pic0, mn10300_load_pic1): New.
18274 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18275 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18276 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18277 (cc_flags_for_mode, cc_flags_for_code): New.
18278 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18279 overflow flag is not valid. Validate that the flags we need
18280 for the comparison are valid.
18281 (mn10300_output_cmp): Remove.
18282 (mn10300_output_add): New.
18283 (mn10300_select_cc_mode): Use cc_flags_for_code.
18284 (mn10300_split_cbranch): New.
18285 (mn10300_match_ccmode): New.
18286 (mn10300_split_and_operand_count): New.
18287 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18289 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18290 (addsi3): ... here. Use mn10300_output_add.
18291 (*addsi3_flags): New.
18292 (*am33_subsi3, *mn10300_subsi3): Merge...
18293 (subsi3): ... here. Use attribute isa.
18294 (*subsi3_flags): New.
18295 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18297 (*am33_andsi3, *mn10300_andsi3): Merge...
18298 (andsi3): ... here.
18299 (*andsi3_flags): New.
18300 (andsi3 splitters): New.
18301 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18302 (iorsi3): ... here.
18303 (*iorsi3_flags): New.
18304 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18305 (xorsi3): ... here.
18306 (*xorsi3_flags): New.
18307 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18308 (one_cmplsi2): ... here.
18309 (*one_cmplsi2_flags): New.
18310 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18311 instead of "dax" in constraints. Use mn10300_split_cbranch.
18312 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18313 use matching constraints to eliminate a self-comparison.
18314 (*integer_conditional_branch): Rename from integer_conditional_branch.
18315 Use int_mode_flags to match CC_REG.
18316 (*cbranchsi4_btst, *btstsi): New.
18317 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18318 mn10300_split_cbranch.
18319 (*am33_cmpsf): Rename from am33_cmpsf.
18320 (*float_conditional_branch): Rename from float_conditional_branch.
18321 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18322 (zero_extendqisi2): ... here.
18323 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18324 (zero_extendhisi2): ... here.
18325 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18326 (extendqisi2): ... here.
18327 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18328 (extendhisi2): ... here.
18329 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18330 (ashlsi3): ... here.
18331 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18332 (lshrsi3): ... here.
18333 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18334 (ashrsi3): ... here.
18335 (consecutive add peephole): Remove.
18336 * config/mn10300/predicates.md (label_ref_operand): New.
18337 (int_mode_flags): New.
18338 (CCZN_comparison_operator): New.
18340 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18341 (throughput_42_latency_43): New reservation.
18342 (mulsidi3, umulsidi3): New expanders.
18343 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18344 the MDR register to allocation; separately allocate the low and
18345 high parts of the DImode result.
18346 (umulsidi3_internal): Similarly.
18347 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18348 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18349 (udivsi3, umodsi3): Remove.
18350 (udivmodsi4, divmodsi4): New expanders.
18351 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18352 (*divmodsi4): Simiarly.
18353 (ext_internal): New.
18355 * config/mn10300/constraints.md ("z"): New constraint.
18356 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18357 (FIXED_REGISTERS): Don't fix MDR.
18358 (CALL_USED_REGSITERS): Reformat nicely.
18359 (REG_ALLOC_ORDER): Add MDR.
18360 (enum regclass): Add MDR_REGS.
18361 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18362 (IRA_COVER_CLASSES): Add MDR_REGS.
18363 (REGNO_REG_CLASS): Handle MDR_REG.
18364 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18365 (mn10300_register_move_cost): Likewise.
18366 * config/mn10300/mn10300.md (MDR_REG): New.
18367 (*movsi_internal): Handle moves to/from MDR_REGS.
18369 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18371 (mn10300_secondary_reload): Tidy combination reload classes.
18372 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18373 addresses for AM33. Allow symbolic offsets for reg+imm.
18374 (mn10300_regno_in_class_p): New.
18375 (mn10300_legitimize_reload_address): New.
18376 * config/mn10300/mn10300.h (enum reg_class): Remove
18377 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18378 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18379 SP_OR_GENERAL_REGS.
18380 (REG_CLASS_NAMES): Update to match.
18381 (REG_CLASS_CONTENTS): Likewise.
18382 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18383 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18384 (REGNO_IN_RANGE_P): Remove.
18385 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18386 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18387 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18388 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18389 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18390 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18391 (REGNO_GENERAL_P): New.
18392 (HAVE_POST_MODIFY_DISP): New.
18393 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18394 (LEGITIMIZE_RELOAD_ADDRESS): New.
18395 * config/mn10300/mn10300-protos.h: Update.
18397 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18398 DATA_REGS for AM33 stack-pointer destination.
18399 (mn10300_preferred_output_reload_class): Likewise.
18400 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18401 into a form appropriate for ...
18402 (TARGET_SECONDARY_RELOAD): New.
18403 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18404 * config/mn10300/mn10300-protos.h: Update.
18405 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18406 reload_insi; use the "A" constraint for the scratch; handle AM33
18407 moves of sp to non-address registers.
18409 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18410 (*movqi_internal): ... here.
18411 (*am33_movhi, *mn10300_movhi): Merge into...
18412 (*movhi_internal): ... here.
18413 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18414 as the source/destination of moves from/to SP.
18415 (movsf): Only allow for AM33-2.
18416 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18417 any integer constant constraint. Only allow for AM33-2. Tidy
18418 all of the alternative outputs.
18419 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18420 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18422 (udivsi3, umodsi3): New patterns for MN103 only.
18424 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18426 * doc/tm.texi.in: Spell out that a lack of register class unions
18428 * doc/tm.texi: Regenerate.
18430 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18432 PR rtl-optimization/47337
18433 * dce.c (check_argument_store): New function.
18434 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18436 PR tree-optimization/47290
18437 * tree-eh.c (infinite_empty_loop_p): New function.
18438 (cleanup_empty_eh): Use it.
18440 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18443 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18444 (a64_expand_widen_sum): Ditto.
18445 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18446 (vec_extract_evenodd_help): Ditto.
18447 (vec_extract_evenv4hi): Ditto.
18448 (vec_extract_oddv4hi): Ditto.
18449 (vec_extract_evenv2si): Ditto.
18450 (vec_extract_oddv2si): Ditto.
18451 (vec_extract_evenv2sf): Ditto.
18452 (vec_extract_oddv2sf): Ditto.
18453 (vec_pack_trunc_v4hi: Ditto.
18454 (vec_pack_trunc_v2si): Ditto.
18455 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18456 (vec_interleave_highv8qi): Ditto.
18458 (vec_extract_oddv8qi): Ditto.
18459 (vec_interleave_lowv4hi): Ditto.
18460 (vec_interleave_highv4hi): Ditto.
18461 (vec_interleave_lowv2si): Ditto.
18462 (vec_interleave_highv2si): Ditto.
18464 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18466 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18467 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18468 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18469 (pa_c_mode_for_suffix): New.
18470 (TARGET_EXPAND_BUILTIN): Define.
18471 (TARGET_C_MODE_FOR_SUFFIX): Define.
18472 (pa_builtins): Define.
18473 (pa_init_builtins): Register __float128 type and init new support
18475 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18476 * config/pa/quadlib.c (_U_Qfcopysign): New.
18478 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18480 PR middle-end/46894
18481 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18482 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18485 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18487 PR tree-optimization/47179
18488 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18489 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18491 2011-01-18 Richard Guenther <rguenther@suse.de>
18493 PR rtl-optimization/47216
18494 * emit-rtl.c: Include tree-flow.h.
18495 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18496 of replicating it with different semantics.
18497 * Makefile.in (emit-rtl.o): Adjust.
18499 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18501 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18502 (cortex_a9_dp): Handle neon types correctly.
18504 2011-01-18 Jakub Jelinek <jakub@redhat.com>
18506 PR rtl-optimization/47299
18507 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18508 subtarget. Use normal multiplication if both operands are constants.
18509 * expmed.c (expand_widening_mult): Don't try to optimize constant
18510 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18513 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18515 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18516 spacing after 'e.g.', typos, comma, hyphenation.
18518 2011-01-17 Richard Henderson <rth@redhat.com>
18520 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18521 (rx_restricted_mem_operand): New.
18522 (rx_shift_operand): Use register_operand.
18523 (rx_source_operand, rx_compare_operand): Likewise.
18524 * config/rx/rx.md (addsi3_flags): New expander.
18525 (adddi3): Rewrite as expander.
18526 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18527 (subsi3_flags): New expander.
18528 (subdi3): Rewrite as expander.
18529 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18531 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18532 (rx_init_builtins): Remove sat builtin.
18533 (rx_expand_builtin): Likewise.
18534 * config/rx/rx.md (ssaddsi3): New.
18535 (*sat): Rename from sat. Represent the CC_REG input.
18537 * config/rx/predicates.md (rshift_operator): New.
18538 * config/rx/rx.c (rx_expand_insv): Remove.
18539 * config/rx/rx-protos.h: Update.
18540 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18541 operand to the canonical position.
18542 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18543 (*bitclr, *bitclr_in_memory): Similarly.
18544 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18545 (insv): Retain the zero_extract in the expansion.
18547 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18548 (bswaphi2, bitinvert, revw): Likewise.
18550 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18551 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18552 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18553 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18554 (bitset, bitset_in_memory): Likewise.
18555 (bitinvert, bitinvert_in_memory): Likewise.
18556 (bitclr, bitclr_in_memory): Likewise.
18557 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18558 (rx_strend, rx_cmpstrn): Likewise.
18559 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18560 (bitop peep2 patterns): Remove.
18562 * config/rx/rx.c (rx_match_ccmode): New.
18563 * config/rx/rx-protos.h: Update.
18564 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18565 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18566 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18567 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18568 (fix_truncsfsi2, floatsisf2): Likewise.
18569 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18570 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18571 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18572 (*subsi3_flags, *xorsi3_flags): New.
18574 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18576 * config/rx/rx.c (rx_print_operand): Remove workaround for
18577 unsplit comparison operations.
18579 * config/rx/rx.md (movsicc): Split after reload.
18580 (*movsicc): Merge *movsieq and *movsine via match_operator.
18581 (*stcc): New pattern.
18583 * config/rx/rx.c (rx_float_compare_mode): Remove.
18584 * config/rx/rx.h (rx_float_compare_mode): Remove.
18585 * config/rx/rx.md (cstoresi4): Split after reload.
18586 (*sccc): New pattern.
18588 * config/rx/predicates.md (label_ref_operand): New.
18589 (rx_z_comparison_operator): New.
18590 (rx_zs_comparison_operator): New.
18591 (rx_fp_comparison_operator): New.
18592 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18593 Validate that the flags are set properly for the comparison.
18594 (rx_gen_cond_branch_template): Remove.
18595 (rx_cc_modes_compatible): Remove.
18596 (mode_from_flags): New.
18597 (flags_from_code): Rename from flags_needed_for_conditional.
18598 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18599 (rx_select_cc_mode): Likewise.
18600 (rx_split_fp_compare): New.
18601 (rx_split_cbranch): New.
18602 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18603 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18604 (*cbranchsf4): Similarly.
18605 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18606 match_operator and rx_split_cbranch.
18607 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18608 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18609 (*cmpsi): Rename from cmpsi.
18610 (*tstsi): Rename from tstsi.
18611 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18612 (*conditional_branch): Rename from conditional_branch.
18613 (*reveresed_conditional_branch): Remove.
18614 (b<code>): Remove expander.
18615 * config/rx/rx-protos.h: Update.
18617 * config/rx/rx.c (rx_compare_redundant): Remove.
18618 * config/rx/rx.md (cmpsi): Don't use it.
18619 * config/rx/rx-protos.h: Update.
18621 * config/rx/rx-modes.def (CC_F): New mode.
18622 * config/rx/rx.c (rx_select_cc_mode): New.
18623 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18624 * config/rx/rx-protos.h: Update.
18626 2011-01-17 Richard Henderson <rth@redhat.com>
18628 * except.c (dump_eh_tree): Fix stray ; after for statement.
18630 2011-01-17 Richard Guenther <rguenther@suse.de>
18632 PR tree-optimization/47313
18633 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18634 handling before copying the body. Properly deal with
18635 by-reference result in SSA form.
18637 2011-01-17 Ian Lance Taylor <iant@google.com>
18640 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18641 (struct_value_alias_set): Don't define.
18642 (sparc_option_override): Don't set sparc_sr_alias_set and
18643 struct_value_alias_set.
18644 (save_or_restore_regs): Use gen_frame_mem rather than calling
18646 (sparc_struct_value_rtx): Likewise.
18648 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18651 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18652 (_mm_maskstore_pd): Likewise.
18653 (_mm_maskload_ps): Likewise.
18654 (_mm_maskstore_ps): Likewise.
18655 (_mm256_maskload_pd): Change mask to __m256i.
18656 (_mm256_maskstore_pd): Likewise.
18657 (_mm256_maskload_ps): Likewise.
18658 (_mm256_maskstore_ps): Likewise.
18660 * config/i386/i386-builtin-types.def: Updated.
18661 (ix86_expand_special_args_builtin): Likewise.
18663 * config/i386/i386.c (bdesc_special_args): Update
18664 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18665 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18666 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18667 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18669 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18670 Use <avxpermvecmode> on mask register.
18671 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18673 2011-01-17 Olivier Hainque <hainque@adacore.com>
18674 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18675 Eric Botcazou <ebotcazou@adacore.com>
18678 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18679 if <= USHRT_MAX in 32-bit mode.
18681 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18683 * doc/install.texi (Configuration, Specific): Wrap long
18684 lines in examples. Allow line wrapping in long options
18685 and URLs where beneficial for PDF output.
18687 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18689 * config/mips/mips.c (mips_classify_symbol): Don't return
18690 SYMBOL_PC_RELATIVE for nonlocal labels.
18692 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
18694 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18696 2011-01-15 Jan Hubicka <jh@suse.cz>
18698 PR tree-optimization/47276
18699 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18700 declarations as needed.
18702 2011-01-15 Martin Jambor <mjambor@suse.cz>
18704 * common.opt (fdevirtualize): New flag.
18705 * doc/invoke.texi (Option Summary): Document it.
18706 * opts.c (default_options_table): Add devirtualize flag.
18707 * ipa-prop.c (detect_type_change): Return immediately if
18708 devirtualize flag is not set.
18709 (detect_type_change_ssa): Likewise.
18710 (compute_known_type_jump_func): Likewise.
18711 (ipa_analyze_virtual_call_uses): Likewise.
18713 2011-01-14 Martin Jambor <mjambor@suse.cz>
18715 PR tree-optimization/45934
18716 PR tree-optimization/46302
18717 * ipa-prop.c (type_change_info): New type.
18718 (stmt_may_be_vtbl_ptr_store): New function.
18719 (check_stmt_for_type_change): Likewise.
18720 (detect_type_change): Likewise.
18721 (detect_type_change_ssa): Likewise.
18722 (compute_complex_assign_jump_func): Check for dynamic type change.
18723 (compute_complex_ancestor_jump_func): Likewise.
18724 (compute_known_type_jump_func): Likewise.
18725 (compute_scalar_jump_functions): Likewise.
18726 (ipa_analyze_virtual_call_uses): Likewise.
18727 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18729 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18731 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18732 * config/i386/i386.opt (msse5): New Alias.
18734 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18736 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18737 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18738 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18739 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18741 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18743 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18745 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18746 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18747 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18748 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18750 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18752 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18754 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18756 2011-01-14 Mike Stump <mikestump@comcast.net>
18758 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18759 * config/fr30/fr30.md: Likweise
18760 (movsi_push): Likewise.
18761 (movsi_pop): Likewise.
18762 (enter_func): Likewise.
18763 * config/moxie/moxie.md (movsi_push): Likewise.
18764 (movsi_pop): Likewise.
18766 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18768 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18769 %{no_archive} %{exact_version}.
18770 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18771 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18772 %{no_archive} %{exact_version}.
18773 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18774 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18775 * config/mips/vxworks.h: Likewise.
18777 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18779 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18781 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18783 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18784 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18786 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18788 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18791 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18793 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18795 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18796 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18798 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18799 Don't handle -shlib.
18801 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18803 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18804 (CC1_SPEC): Don't handle -profile.
18806 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18808 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18809 * config/mips/mips.h (CC1_SPEC): Likewise.
18811 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18813 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18814 * config/mips/mips.h (CC1_SPEC): Likewise.
18816 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18818 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18819 * config/m32r/linux.h (LINK_SPEC): Likewise.
18820 * config/mips/linux.h (LINK_SPEC): Likewise.
18821 * config/mips/linux64.h (LINK_SPEC): Likewise.
18822 * config/sparc/linux.h (LINK_SPEC): Likewise.
18823 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18824 LINK_SPEC): Likewise.
18825 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18827 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18829 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18831 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18835 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18836 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18838 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18840 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18842 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18844 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18845 supports -Bstatic/-Bdynamic.
18846 * configure: Regenerate.
18848 2011-01-14 Jan Hubicka <jh@suse.cz>
18849 Jack Howarth <howarth@bromo.med.uc.edu>
18852 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18853 when checking debug_info_level. Test write_symbols instead of
18854 debug_hooks->var_location when setting flag_var_tracking_uninit.
18856 2011-01-14 Richard Guenther <rguenther@suse.de>
18858 PR tree-optimization/47179
18859 * target.def (ref_may_alias_errno): New target hook.
18860 * targhooks.h (default_ref_may_alias_errno): Declare.
18861 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18862 (default_ref_may_alias_errno): New function.
18863 * target.h (struct ao_ref_s): Declare.
18864 * tree-ssa-alias.c: Include target.h.
18865 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18866 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18867 (targhooks.o): Likewise.
18868 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18869 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18871 2011-01-14 Richard Guenther <rguenther@suse.de>
18873 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18875 2011-01-14 Richard Guenther <rguenther@suse.de>
18877 PR tree-optimization/47280
18878 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18879 return CFG changes.
18880 (tree_ssa_forward_propagate_single_use_vars): Deal with
18881 CFG changes from associate_plusminus.
18883 2011-01-14 Richard Guenther <rguenther@suse.de>
18885 PR middle-end/47281
18887 2011-01-11 Richard Guenther <rguenther@suse.de>
18889 PR tree-optimization/46076
18890 * tree-ssa.c (useless_type_conversion_p): Conversions from
18891 unprototyped to empty argument list function types are useless.
18893 2011-01-14 Richard Guenther <rguenther@suse.de>
18895 PR tree-optimization/47286
18896 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18898 2011-01-14 Martin Jambor <mjambor@suse.cz>
18900 PR middle-end/46823
18901 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18903 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18905 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18906 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18907 * config/xtensa/xtensa.c (xtensa_libcall_value,
18908 xtensa_function_value_regno_p): New functions.
18909 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18911 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18914 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18916 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18917 New function prototype.
18918 * config/i386/winnt.c (i386_pe_assemble_visibility):
18919 Warn only if attribute was specified by user.
18921 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18924 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18926 (floatunsdidf2_fcfidu): Ditto.
18928 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18930 * config/s390/s390.c (print_operand_address): Replace 'error' with
18931 'output_operand_lossage'.
18932 (print_operand): Likewise.
18934 2011-01-13 Jeff Law <law@redhat.com>
18936 PR rtl-optimization/39077
18937 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18938 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18939 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18940 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18941 * gcse.c (prune_insertions_deletions): New function.
18942 (compute_pre_data): Use it.
18944 2011-01-13 Dodji Seketeli <dodji@redhat.com>
18947 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18949 (prune_unused_types_mark): Use it.
18951 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
18953 PR rtl-optimization/45352
18954 * sel-sched.c: Update copyright years.
18955 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18956 in the advancing loop when we have issued issue_rate insns.
18958 2011-01-12 Richard Henderson <rth@redhat.com>
18960 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18961 (TARGET_MD_ASM_CLOBBERS): New.
18963 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18964 (TARGET_DELEGITIMIZE_ADDRESS): New.
18966 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18967 (clzsi2, *bsch): New patterns.
18969 * config/mn10300/mn10300.md (INT): New mode iterator.
18970 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18972 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18973 flag_split_wide_types.
18975 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18976 (mn10300_trampoline_init): Rewrite without a template, an immediate
18977 load and a direct branch.
18978 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18980 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18982 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18983 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18984 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18985 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18987 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18990 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18993 2011-01-12 Jan Hubicka <jh@suse.cz>
18996 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18997 (PLUGIN_COND_CLOSE): New macro.
18998 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19000 2011-01-12 Richard Guenther <rguenther@suse.de>
19003 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19004 register variables in a MEM_REF.
19006 2011-01-12 Joseph Myers <joseph@codesourcery.com>
19008 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19009 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19010 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19011 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19012 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19013 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19014 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19015 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19016 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19017 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19018 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19019 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19020 * config/gnu-user.h: New. Copied from linux.h.
19021 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19022 GNU_USER_TARGET_STARTFILE_SPEC.
19023 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19024 GNU_USER_TARGET_ENDFILE_SPEC.
19025 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19026 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19027 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19028 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19029 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19030 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19031 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19032 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19033 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19034 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19035 * config/arm/linux-eabi.h (CC1_SPEC): Use
19036 GNU_USER_TARGET_CC1_SPEC.
19037 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19038 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19039 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19040 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19041 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19042 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19043 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19044 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19046 2011-01-12 Richard Guenther <rguenther@suse.de>
19049 * doc/invoke.texi (ffast-math): Document it is turned on
19052 2011-01-12 Jan Hubicka <jh@suse.cz>
19054 PR tree-optimization/47233
19055 * opts.c (common_handle_option): Disable ipa-reference with profile
19058 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19060 * c-parser.c (c_parser_objc_at_property_declaration): Improved
19063 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19065 * c-parser.c (c_lex_one_token): Updated and reindented some
19066 comments. No changes in code.
19068 2011-01-11 Ian Lance Taylor <iant@google.com>
19070 * godump.c (go_output_var): Don't output the variable if there is
19071 already a type with the same name.
19073 2011-01-11 Ian Lance Taylor <iant@google.com>
19075 * godump.c (go_format_type): Don't generate float80.
19077 2011-01-11 Richard Henderson <rth@redhat.com>
19079 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19080 declaration. Rewrite for both speed and size.
19081 (mn10300_address_cost_1): Remove.
19082 (mn10300_register_move_cost): New.
19083 (mn10300_memory_move_cost): New.
19084 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19085 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19086 extensions, shifts, BSWAP, CLZ.
19087 (mn10300_wide_const_load_uses_clr): Remove.
19088 (TARGET_REGISTER_MOVE_COST): New.
19089 (TARGET_MEMORY_MOVE_COST): New.
19090 * config/mn10300/mn10300-protos.h: Update.
19091 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19093 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19094 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19095 * config/mn10300/mn10300-protos.h: Update.
19096 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19097 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19098 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19099 (*test_int_bitfield, *test_byte_bitfield): Remove.
19100 (*bit_test, *subreg_bit_test): Remove.
19101 * config/mn10300/predicates.md (const_8bit_operand): Remove.
19103 * config/mn10300/constraints.md ("c"): Rename from "A".
19104 ("A", "D"): New constraint letters.
19105 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19106 (fmssf4, fnmasf4, fnmssf4): Likewise.
19108 * config/mn10300/mn10300.md (isa): New attribute.
19109 (enabled): New attribute.
19111 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19112 (abssf2, negsf2): Define only for hardware fp.
19113 (sqrtsf2): Reformat.
19114 (addsf3, subsf3, mulsf3): Merge expander and insn.
19116 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19117 (DEBUGGER_AUTO_OFFSET): Remove.
19118 (DEBUGGER_ARG_OFFSET): Remove.
19120 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19121 Emit register stores with the same offsets as the hardware.
19122 (mn10300_store_multiple_operation): Don't check that the register
19123 save offsets are monotonic.
19124 * config/mn10300/mn10300-protos.h: Update.
19126 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19128 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19129 in terms of the value on the stack, not the MDR register.
19131 2011-01-11 Jan Hubicka <jh@suse.cz>
19135 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19136 (symbol_alias_set_destroy, symbol_alias_set_contains,
19137 propagate_aliases_backward): Declare.
19138 * lto-streamer-out.c (struct sets): New sturcture.
19139 (trivally_defined_alias): New function.
19140 (output_alias_pair_p): Rewrite.
19141 (output_unreferenced_globals): Fix output of alias pairs.
19142 (produce_symtab): Likewise.
19143 * ipa.c (function_and_variable_visibility): Set weak alias destination
19145 * varasm.c (symbol_alias_set_t): Remove.
19146 (symbol_alias_set_destroy): Export.
19147 (propagate_aliases_forward, propagate_aliases_backward): New functions
19149 (compute_visible_aliases): ... this one; remove.
19150 (trivially_visible_alias): New
19151 (trivially_defined_alias): New.
19152 (remove_unreachable_alias_pairs): Rewrite.
19153 (finish_aliases_1): Reorganize code checking if alias is defined.
19154 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19157 2011-01-11 Richard Guenther <rguenther@suse.de>
19159 PR tree-optimization/46076
19160 * tree-ssa.c (useless_type_conversion_p): Conversions from
19161 unprototyped to empty argument list function types are useless.
19163 2011-01-11 Richard Guenther <rguenther@suse.de>
19165 PR middle-end/45235
19166 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19167 volatile MEMs as MEM_READONLY_P.
19169 2011-01-11 Richard Guenther <rguenther@suse.de>
19171 PR tree-optimization/47239
19172 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19174 2011-01-11 Jeff Law <law@redhat.com>
19176 PR tree-optimization/47086
19177 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19178 IVs from statements that might throw.
19180 2011-01-10 Jan Hubicka <jh@suse.cz>
19183 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19185 2011-01-10 Jan Hubicka <jh@suse.cz>
19188 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19189 when correcting profile.
19191 2011-01-10 Jan Hubicka <jh@suse.cz>
19194 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19195 DECL_FINI_PRIORITY.
19196 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19197 Restore DECL_FINI_PRIORITY.
19199 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19201 * doc/gimple.texi: Fix quoting of multi-word return values in
19202 @deftypefn statements. Ensure presence of return value. Wrap
19203 overlong @deftypefn lines.
19204 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19205 descriptions of removed functions.
19206 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19207 of multi-word return value in @deftypefn statement.
19209 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19211 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19212 (Conditional Expressions, Logical Operators)
19213 (Statement and operand traversals): Do not indent smallexample
19214 code. Fix duplicate function argument in example.
19216 2011-01-10 Jeff Law <law@redhat.com>
19218 PR tree-optimization/47141
19219 * ipa-split.c (split_function): Handle case where we are
19220 returning a value and the return block has a virtual operand phi.
19222 2011-01-10 Jan Hubicka <jh@suse.cz>
19224 PR tree-optimization/47234
19225 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19226 (pass_feedback_split_functions): Declare.
19227 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19229 * ipa-split.c (gate_split_functions): Update comments; disable
19230 split-functions for profile_arc_flag and branch_probabilities.
19231 (gate_feedback_split_functions): New function.
19232 (execute_feedback_split_functions): New function.
19233 (pass_feedback_split_functions): New global var.
19235 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19238 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19239 calling gimple_call_set_cannot_inline.
19241 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19243 * config/darwin-sections.def: Remove unused section.
19245 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19248 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19250 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19253 * c-parser.c (c_parser_declaration_or_fndef): Improved
19256 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19258 * config/i386/winnt.c (i386_pe_start_function): Make sure
19259 to switch back to function's section.
19261 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19265 * plugin.c: Move include of dlfcn.h from here...
19266 * system.h: ... to here.
19268 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19270 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19272 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19273 two extra empty pages in PDF output.
19275 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19278 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19279 for error recovery purposes behave as if it was not specified so
19280 that the default type is usd.
19282 2011-01-07 Jan Hubicka <jh@suse.cz>
19284 PR tree-optmization/46469
19285 * ipa.c (function_and_variable_visibility): Clear needed flags on
19286 nodes with external decls; handle weakrefs merging correctly.
19288 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19290 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19293 2011-01-07 Jan Hubicka <jh@suse.cz>
19295 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19296 and no longer claim that gold is required for linker plugin.
19297 * configure: Regenerate.
19298 * gcc.c (PLUGIN_COND): New macro.
19299 (LINK_COMMAND_SPEC): Use it.
19300 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19301 * config.in (HAVE_LTO_PLUGIN): New.
19302 * configure.ac (--with-lto-plugin): New parameter; autodetect
19305 2011-01-07 Jan Hubicka <jh@suse.cz>
19307 PR tree-optimization/46367
19308 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19309 when we can update original.
19310 (cgraph_mark_inline_edge): Sanity check.
19311 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19313 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19315 * config/spu/spu.h (ASM_COMMENT_START): Define.
19317 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19320 * gcc.c (%>S): New.
19321 (SWITCH_KEEP_FOR_GCC): Likewise.
19322 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19323 (do_spec_1): Handle "%>".
19325 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19327 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19330 * config/i386/i386.c (ix86_delegitimize_address): If
19331 simplify_gen_subreg fails, return orig_x.
19334 * value-prof.c (gimple_stringop_fixed_value): Handle
19335 lhs of the call properly.
19337 2011-01-07 Jan Hubicka <jh@suse.cz>
19340 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19342 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19344 * target.def (function_switched_text_sections): New hook.
19345 * doc/tm.texi: Regenerated.
19346 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19347 * final.c (default_function_switched_text_sections): New.
19348 (final_scan_insn): Call function_switched_text_sections when a
19349 mid-function section change occurs.
19350 * output.h (default_function_switched_text_sections): Declare.
19351 * config/darwin-protos.h (darwin_function_switched_text_sections):
19353 * config/darwin.c (darwin_function_switched_text_sections): New.
19354 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19356 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19358 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19359 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19360 the secondary code fragment when outputting for DWARF == 2.
19362 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19364 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19365 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19367 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19368 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19370 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19373 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19374 when it is not empty.
19376 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19379 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19380 (case ${target}): Add btver1.
19381 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19382 -march=native recognize btver1 processors.
19383 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19384 btver1 def_and_undef
19385 * config/i386/i386.c (struct processor_costs btver1_cost): New
19387 (m_BTVER1): New definition.
19388 (m_AMD_MULTIPLE): Includes m_BTVER1.
19389 (initial_ix86_tune_features): Add btver1 tune.
19390 (processor_target_table): Add btver1 entry.
19391 (static const char *const cpu_names): Add btver1 entry.
19392 (software_prefetching_beneficial_p): Add btver1.
19393 (ix86_option_override_internal): Add btver1 instruction sets.
19394 (ix86_issue_rate): Add btver1.
19395 (ix86_adjust_cost): Add btver1.
19396 * config/i386/i386.h (TARGET_BTVER1): New definition.
19397 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19398 (enum processor_type): Add PROCESSOR_BTVER1.
19399 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19401 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19404 * config/i386/i386.c (legitimize_tls_address)
19405 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19406 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19407 (tls_initial_exec_64_sun): New pattern.
19409 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19411 * doc/invoke.texi (Overall Options): Improve wording and markup
19412 of the description of -wrapper.
19414 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19416 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19417 rdynamic, threads): New Driver options.
19419 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19422 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19423 if coming from .tdata.
19424 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19426 2011-01-06 Jan Hubicka <jh@suse.cz>
19429 * collect2.c (main): Do not enable LTOmode when plugin is active.
19431 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19434 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19435 --version output if supported.
19436 * configure: Regenerate.
19438 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19440 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19443 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19446 * c-convert.c (convert): When converting a complex expression
19447 other than COMPLEX_EXPR to a different complex type, ensure
19448 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19449 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19450 when converting COMPLEX_TYPE.
19452 2011-01-06 Ira Rosen <irar@il.ibm.com>
19454 PR tree-optimization/47139
19455 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19456 only the last reduction value is used outside the loop. Update
19459 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19461 * config/rtems.opt: New.
19462 * config.gcc (*-*-rtems*): Use rtems.opt.
19464 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19466 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19467 processors do not support 3DNow instructions.
19469 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19471 * config/spu/spu.c (spu_option_override): Set parameter
19472 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19474 2011-01-05 Jan Hubicka <jh@suse.cz>
19476 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19477 at the command line.
19479 2011-01-05 Martin Jambor <mjambor@suse.cz>
19482 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19483 deltas on streamed outgoing edges.
19484 (output_node_opt_summary): Output info for outgoing edges only when
19485 the node is in new parameter set.
19486 (output_cgraph_opt_summary): New parameter set, passed to the two
19487 aforementioned functions. Update its forward declaration and its
19490 2011-01-05 Tom Tromey <tromey@redhat.com>
19492 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19493 operator to c_finish_omp_atomic.
19494 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19495 (build_unary_op): Update.
19496 (build_modify_expr): Update.
19497 (build_asm_expr): Update.
19499 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19501 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19502 newly inserted insns.
19503 (pad_bb): Likewise.
19504 (spu_emit_branch_hint): Likewise.
19505 (insert_hbrp_for_ilb_runout): Likewise.
19506 (spu_machine_dependent_reorg): Call df_finish_pass after
19507 schedule_insns returns.
19509 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19511 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19513 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19515 PR tree-optimization/47005
19516 * tree-sra.c (struct access): Add 'non_addressable' bit.
19517 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19518 (decide_one_param_reduction): Return 0 if the parameter is passed by
19519 reference and one of the accesses in the group is non_addressable.
19521 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19523 PR tree-optimization/47056
19524 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19525 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19526 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19528 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19530 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19531 initializer. Skip view conversions from aggregate types.
19533 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
19536 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19538 2011-01-04 Philipp Thomas <pth@suse.de>
19540 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19543 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19545 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19546 on empty epilogue sequences.
19548 2011-01-04 Joseph Myers <joseph@codesourcery.com>
19550 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19551 non-static): New Driver options.
19553 2011-01-04 Jie Zhang <jie@codesourcery.com>
19556 * gcc.c (default_compilers[]): Set combinable field to 0
19557 for all assembly languages.
19559 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19561 * config/mips/loongson3a.md: New file.
19562 * config/mips/mips.md: Include loongson3a.md.
19563 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19566 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19568 PR middle-end/47017
19569 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19570 instead of convert_memory_address_addr_space on the base expression.
19572 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19574 * config/spu/spu.c (spu_option_override): Update error text
19575 for bad -march= / -mtune= values.
19577 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19579 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19580 if branch-hint optimization will be performed.
19582 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19584 PR tree-optimization/47148
19585 * ipa-split.c (split_function): Convert arguments to
19586 DECL_ARG_TYPE if possible.
19588 PR tree-optimization/47155
19589 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19590 when computing uns.
19592 PR rtl-optimization/47157
19593 * combine.c (try_combine): If undobuf.other_insn becomes
19594 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19595 and set *new_direct_jump_p too.
19597 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19599 PR tree-optimization/47021
19600 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19602 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19604 * gcc.c (process_command): Update copyright notice dates.
19605 * gcov.c (print_version): Likewise.
19606 * gcov-dump.c (print_version): Likewise.
19607 * mips-tfile.c (main): Likewise.
19608 * mips-tdump.c (main): Likewise.
19610 2011-01-03 Martin Jambor <mjambor@suse.cz>
19612 PR tree-optimization/46801
19613 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19614 aggregate fields start at byte boundary instead of the bit-field flag.
19616 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19619 * gcc.c (main): Revert revision 168407.
19621 2011-01-03 Martin Jambor <mjambor@suse.cz>
19623 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19625 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19627 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19628 vector optab to expand vector/scalar shift, update gimple to vector.
19630 2011-01-03 Martin Jambor <mjambor@suse.cz>
19632 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19635 2011-01-03 Martin Jambor <mjambor@suse.cz>
19637 PR tree-optimization/46984
19638 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19640 (cgraph_create_indirect_edge): Fixed line length.
19641 (cgraph_indirect_call_info): Declare.
19642 (cgraph_make_edge_direct) Update declaration.
19643 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19644 (cgraph_create_indirect_edge): Use it.
19645 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19647 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19648 the new thunk_delta representation.
19649 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19651 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19652 (ipa_read_indirect_edge_info): Likewise.
19653 * lto-cgraph.c (output_edge_opt_summary): New function.
19654 (output_node_opt_summary): Call it on all outgoing edges.
19655 (input_edge_opt_summary): New function.
19656 (input_node_opt_summary): Call it on all outgoing edges.
19658 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19661 * gcc.c (main): Don't check have_o when settting combine_inputs.
19663 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19665 * regrename.c: Add general comment describing the pass.
19666 (struct du_head): Remove 'length' field.
19667 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19668 (regrename_optimize): Do not sort chains. Rework comments, add others.
19669 Force renaming to the preferred class (if any) in the first pass and do
19670 not consider registers that belong to it in the second pass.
19671 (create_new_chain): Do not set 'length' field.
19672 (scan_rtx_reg): Likewise.
19674 2011-01-02 Jakub Jelinek <jakub@redhat.com>
19676 PR tree-optimization/47140
19677 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19678 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19679 to bit_value_binop.
19681 PR rtl-optimization/47028
19682 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19683 parm_birth_insn instead of at the beginning of first bb.
19685 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
19687 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19688 Remove the word "see" before "@pxref".
19689 * doc/rtl.texi: Remove the word "see" before "@pxref".
19691 2011-01-01 Jan Hubicka <jh@suse.cz>
19693 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19696 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
19699 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19702 Copyright (C) 2011 Free Software Foundation, Inc.
19704 Copying and distribution of this file, with or without modification,
19705 are permitted in any medium without royalty provided the copyright
19706 notice and this notice are preserved.