1 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
3 * fold-const.c (expr_location_or): New function.
4 (fold_truth_not_expr): Call it.
6 2011-03-25 Jeff Law <law@redhat.com>
8 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10 * c-family/c-common.c (def_fn_type): Likewise.
11 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12 * emit-rtl.c (gen_rtvec): Likewise.
13 * lto/lto-lang.c (def_fn_type): Likewise.
15 2011-03-25 Richard Guenther <rguenther@suse.de>
17 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
19 (fini_copy_prop): Handle constant values properly.
21 2011-03-25 Jakub Jelinek <jakub@redhat.com>
23 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
24 mode size instead of bitsize with DWARF2_ADDR_SIZE.
25 (hash_loc_operands, compare_loc_operands): Handle
26 DW_OP_GNU_entry_value.
28 2011-03-25 Kai Tietz <ktietz@redhat.com>
30 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
31 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
32 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
33 comment and use macro TARGET_64BIT_MS_ABI instead.
34 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
35 and change default behavior for 32-bit MS_ABI.
36 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
37 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
39 (ix86_cfun_abi): Likewise.
40 (ix86_maybe_switch_abi): Adjust comment.
41 (init_cumulative_args): Check for bit-ness in MS_ABI case.
42 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
43 instead of checking for SYSV_ABI.
44 (ix86_nsaved_sseregs): Likewise.
45 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
47 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
48 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
49 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
50 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
51 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
53 2011-03-25 Richard Guenther <rguenther@suse.de>
55 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
56 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
57 (verify_gimple): Remove.
58 * tree-cfg.c (verify_gimple_call): Merge verification
60 (verify_gimple_phi): Merge verification from verify_stmts.
61 (verify_gimple_label): New function.
62 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
63 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
64 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
65 (verify_stmts): Rename to verify_gimple_in_cfg.
66 (verify_gimple_in_cfg): New function.
67 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
68 * tree-ssa.c (verify_ssa): Likewise.
69 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
71 2011-03-25 Richard Guenther <rguenther@suse.de>
73 * passes.c (init_optimization_passes): Add FRE pass after
76 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
77 Andrew Stubbs <ams@codesourcery.com>
79 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
81 (arm_movdi_vfp_cortexa8): New pattern.
82 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
83 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
84 instructions when tuning for Cortex-A8. Set attribute "arch".
85 * config/arm/arm.md: Move include arm-tune.md up a bit.
86 (define_attr "arch"): Add "onlya8" and "nota8" values.
87 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
89 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
93 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
95 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
96 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
97 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
98 * passes.c (init_optimization_passes): Move
99 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
101 2011-03-25 Kai Tietz <ktietz@redhat.com>
103 * c-typeck.c (comptypes_internal): Replace target
104 hook call of comp_type_attributes by version in tree.c file.
105 * gimple.c (gimple_types_compatible_p_1): Likewise.
106 * tree-ssa.c (useless_type_conversion_p): Likewise.
107 * tree.c (build_type_attribute_qual_variant): Likewise.
108 (attribute_value_equal): New static helper function.
109 (comp_type_attributes): New function.
110 (merge_attributes): Use attribute_value_equal for comparison.
111 (attribute_list_contained): Likewise.
112 * tree.h (comp_type_attributes): New prototype.
114 2011-03-25 Richard Guenther <rguenther@suse.de>
116 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
117 of complex types at -O0.
118 (verify_gimple_assign_binary): Likewise.
119 (verify_gimple_assign_ternary): Likewise.
121 2011-03-24 Mark Wielaard <mjw@redhat.com>
123 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
124 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
126 2011-03-24 Mark Wielaard <mjw@redhat.com>
129 * dwarf2out.c (output_abbrev_section): Only write table when
130 abbrev_die_table_in_use > 1.
132 2011-02-24 Richard Henderson <rth@redhat.com>
134 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
135 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
136 (alpha_expand_unaligned_load_words): Use extql.
137 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
138 (emit_insxl): Handle all modes for consistency.
140 2011-02-24 Richard Henderson <rth@redhat.com>
142 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
143 (alpha_expand_unaligned_load): Likewise.
144 (alpha_expand_unaligned_store): Likewise.
145 (alpha_expand_unaligned_load_words): Likewise.
146 (alpha_expand_unaligned_store_words): Likewise.
147 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
148 (alpha_split_lock_test_and_set_12): Likewise.
149 (print_operand, alpha_fold_builtin_extxx): Likewise.
150 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
151 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
152 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
153 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
154 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
155 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
156 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
157 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
158 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
159 (extwl, extll, extql): Similarly.
160 (inswh, inslh, insqh): Similarly.
161 (mskbl, mskwl, mskll, mskql): Similarly.
162 (mskwh, msklh, mskqh): Similarly.
164 2011-02-24 Richard Henderson <rth@redhat.com>
166 * config/alpha/alpha.md (attribute isa): Add er, ner.
167 (attribute enabled): Handle them.
168 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
170 2011-02-24 Richard Henderson <rth@redhat.com>
172 * config/alpha/alpha.md (attribute isa): Add vms.
173 (attribute enabled): Handle it.
174 (*movsf): Merge *movsf_{nofix,fix,nofp}.
175 (*movdf): Merge *movdf_{nofix,fix,nofp}.
176 (*movtf): Rename from *movtf_internal for consistency.
177 (*movsi): Merge with *movsi_nt_vms.
178 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
179 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
180 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
181 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
183 2011-02-24 Richard Henderson <rth@redhat.com>
185 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
186 (extendqisi2, extendhisi2): Likewise.
187 (extendqidi2): Simplify BWX/non-BWX expansions.
188 (extendhidi2): Similarly.
190 2011-02-24 Richard Henderson <rth@redhat.com>
192 * config/alpha/alpha.md (attribute isa): New.
193 (attribute enabled): New.
194 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
195 (zero_extendqisi2, zero_extendqidi2): Similarly.
196 (zero_extendhisi2, zero_extendhidi2): Similarly.
197 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
199 2011-02-24 Richard Henderson <rth@redhat.com>
201 * config/alpha/predicates.md (input_operand): Revert last change;
202 update comment to mention 32-bit VMS rather than Windows.
204 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
206 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
207 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
208 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
209 * passes.c (init_optimization_passes): Move
210 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
212 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
214 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
216 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
218 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
221 2011-03-24 Jakub Jelinek <jakub@redhat.com>
224 * simplify-rtx.c (simplify_const_unary_operation): Call
225 real_convert when changing mode class with FLOAT_EXTEND.
227 2011-03-24 Nick Clifton <nickc@redhat.com>
229 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
230 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
231 * config/rx/rx.c (rx_option_override): Set align_jumps,
232 align_loops and align_labels if not set by the user.
233 (rx_align_for_label): New function.
234 (rx_max_skip_for_label): New function.
235 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
236 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
237 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
238 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
239 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
241 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
243 PR rtl-optimization/48263
244 * optabs.c (expand_binop_directly): Reinstate convert_modes code
245 and original commutative_p handling. Use maybe_gen_insn.
247 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
249 * reload.c (find_reloads_subreg_address): Add address_reloaded
250 parameter and return true there if the full address has been
252 (find_reloads_toplev): Pass address_reloaded flag.
253 (find_reloads_address_1): Don't use address_reloaded parameter.
255 2011-03-24 Jeff Law <law@redhat.com>
257 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
258 unused variable "ann".
259 (remove_unused_locals): Likewise.
261 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
264 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
267 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
269 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
270 for invalid symbolic addresses.
271 (s390_secondary_reload): Don't use s390_check_symref_alignment for
274 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
276 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
277 the argument in calls to fold_truth_not_expr.
279 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
281 * tree.c (record_node_allocation_statistics): New function.
282 (make_node_stat, copy_node_stat, build_string): Call it.
283 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
284 (build1_stat, build_omp_clause): Likewise.
286 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
288 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
291 2011-03-24 Richard Guenther <rguenther@suse.de>
293 PR tree-optimization/48271
294 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
295 blocks that still exist.
297 2011-03-24 Richard Guenther <rguenther@suse.de>
299 PR tree-optimization/48270
300 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
301 not free datarefs before ddrs.
303 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
305 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
306 from the address built for a reference with variable offset.
308 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
311 * config/i386/i386.md (*movdf_internal_rex64): Do not split
312 alternatives that can be handled with movq or movabsq insn.
313 (*movdf_internal): Disable for !TARGET_64BIT.
314 (*movdf_internal_nointeger): Ditto.
315 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
317 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
319 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
320 (FUNCTION_ARG_ADVANCE): Likewise.
321 * tm.texi.in: Change references to them to hook references.
322 * tm.texi: Regenerate.
323 * targhooks.c (default_function_arg): Eliminate check for target macro.
324 (default_function_incoming_arg): Likewise.
325 (default_function_arg_advance): Likewise.
326 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
327 (function_arg_advance): Likewise.
328 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
330 2011-03-24 Richard Guenther <rguenther@suse.de>
333 * tree-object-size.c (addr_object_size): Do not double-account
336 2011-03-24 Diego Novillo <dnovillo@google.com>
338 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
339 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
340 (lto_input_data_block): Move from lto-opts.c. Make extern.
342 (lto_input_string): Rename from input_string. Make extern.
344 * lto-streamer-out.c (lto_output_string_with_length): Rename from
345 output_string_with_length.
346 Output 0 to indicate a non-NULL string. Update all callers to
348 (lto_output_string): Rename from output_string. Make extern.
350 (lto_output_decl_state_streams): Make extern.
351 (lto_output_decl_state_refs): Make extern.
352 * lto-streamer.h (lto_input_string): Declare.
353 (lto_input_data_block): Declare.
354 (lto_output_string): Declare.
355 (lto_output_string_with_length): Declare.
356 (lto_output_decl_state_streams): Declare.
357 (lto_output_decl_state_refs): Declare.
359 2011-03-24 Richard Guenther <rguenther@suse.de>
361 PR tree-optimization/46562
362 * tree.c (build_invariant_address): New function.
363 * tree.h (build_invariant_address): Declare.
364 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
365 a renamed function moved ...
366 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
367 Take valueization callback parameter.
368 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
369 * gimple-fold.h: New file.
370 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
371 (ccp_fold, fold_const_aggregate_ref,
372 fold_ctor_reference, fold_nonarray_ctor_reference,
373 fold_array_ctor_reference, fold_string_cst_ctor_reference,
374 get_base_constructor): Move ...
375 * gimple-fold.c: ... here.
376 (gimple_fold_stmt_to_constant_1): New function
377 split out from ccp_fold. Take a valueization callback parameter.
378 Valueize all operands.
379 (gimple_fold_stmt_to_constant): New wrapper function.
380 (fold_const_aggregate_ref_1): New function split out from
381 fold_const_aggregate_ref. Take a valueization callback parameter.
382 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
383 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
384 invariant POINTER_PLUS_EXPRs to invariant form.
385 (vn_valueize): New function.
386 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
387 * tree-vrp.c (vrp_valueize): New function.
388 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
389 to fold statements to constants.
390 * tree-ssa-pre.c (eliminate): Properly guard propagation of
391 function declarations.
392 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
393 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
395 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
397 * config/h8300/predicates.md (jump_address_operand): Fix register
400 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
402 * doc/invoke.texi (max-stores-to-sink): Document.
403 * params.h (MAX_STORES_TO_SINK): Define.
404 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
405 if either vectorization or if-conversion is disabled.
406 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
407 tree-vect-data-refs.c vect_equal_offsets.
408 (dr_equal_offsets_p): New function.
409 (find_data_references_in_bb): Remove static.
410 * tree-data-ref.h (find_data_references_in_bb): Declare.
411 (dr_equal_offsets_p): Likewise.
412 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
413 (vect_drs_dependent_in_basic_block): Update calls to
415 (vect_check_interleaving): Likewise.
416 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
417 (cond_if_else_store_replacement): Rename to...
418 (cond_if_else_store_replacement_1): ... this. Change arguments and
420 (cond_if_else_store_replacement): New function.
421 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
422 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
424 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
427 * config/arm/arm.md (casesi): Use the gen_int_mode() function
428 to subtract lower bound instead of GEN_INT().
430 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
435 * doc/extend.texi (Alignment): Move section to match order in TOC.
436 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
437 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
439 2011-03-23 Jeff Law <law@redhat.com>
441 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
442 before removing the edge.
444 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
445 it may have been freed by redirect_branch_edge or
446 redirect_edge_succ_nodup.
448 2011-03-23 Richard Guenther <rguenther@suse.de>
450 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
451 (check_va_list_escapes): Likewise.
452 (check_all_va_list_escapes): Likewise.
454 2011-03-23 Richard Guenther <rguenther@suse.de>
456 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
457 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
458 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
460 (ipa-type-escape.o): Remove.
461 (ipa-struct-reorg.o): Likewise.
462 (GTFILES): Remove ipa-struct-reorg.c.
463 * alias.c: Do not include ipa-type-escape.h.
464 * tree-ssa-alias.c: Likewise.
465 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
466 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
467 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
468 and ipa-type-escape passes.
469 * tree-pass.h (pass_ipa_type_escape): Remove.
470 (pass_ipa_struct_reorg): Likewise.
471 * ipa-struct-reorg.h: Remove.
472 * ipa-struct-reorg.c: Likewise.
473 * ipa-type-escape.h: Likewise.
474 * ipa-type-escape.c: Likewise.
475 * doc/invoke.texi (-fipa-struct-reorg): Remove.
476 (--param struct-reorg-cold-struct-ratio): Likewise.
477 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
478 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
479 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
481 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
483 * config/s390/2084.md: Enable all insn reservations also for z9_ec
485 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
486 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
487 * config/s390/s390.c (processor_flags_table): New constant array.
488 (s390_handle_arch_option): Remove.
489 (s390_handle_option): Remove s390_handle_arch_option invocations
490 and OPT_mwarn_framesize_ handling.
491 (s390_option_override): Remove s390_handle_arch_option invocation.
492 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
494 * config/s390/s390.md (cpu attribute): Add z9_ec value.
495 * config/s390/s390.opt (s390_tune, s390_arch)
496 (march=): Replace s390_arch_option enum and values with
497 processor_type. Set variable name to s390_arch. Set
498 initialization value.
499 (mtune=): Replace s390_arch_option with processor_type. Set
500 variable name to s390_tune. Set initialization value.
502 2011-03-23 Julian Brown <julian@codesourcery.com>
504 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
505 accesses which are not naturally aligned.
507 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
510 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
512 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
514 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
515 parameter from "int" to "enum insn_code".
516 (expand_operand_type): New enum.
517 (expand_operand): New structure.
518 (create_expand_operand): New function.
519 (create_fixed_operand, create_output_operand): Likewise
520 (create_input_operand, create_convert_operand_to): Likewise.
521 (create_convert_operand_from, create_address_operand): Likewise.
522 (create_integer_operand): Likewise.
523 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
524 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
525 (expand_insn, expand_jump_insn): Likewise.
526 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
527 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
528 (expand_movstr, expand_builtin___clear_cache): Likewise.
529 (expand_builtin_lock_release): Likewise.
530 * explow.c (allocate_dynamic_stack_space): Likewise.
531 (probe_stack_range): Likewise. Allow check_stack to FAIL,
532 and use the default handling in that case.
533 * expmed.c (check_predicate_volatile_ok): Delete.
534 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
535 (emit_cstore): Likewise.
536 * expr.c (emit_block_move_via_movmem): Likewise.
537 (set_storage_via_setmem, expand_assignment): Likewise.
538 (emit_storent_insn, try_casesi): Likewise.
539 (emit_single_push_insn): Likewise. Allow the expansion to fail.
540 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
541 (expand_vec_shift_expr, expand_binop_directly): Likewise.
542 (expand_twoval_unop, expand_twoval_binop): Likewise.
543 (expand_unop_direct, emit_indirect_jump): Likewise.
544 (emit_conditional_move, vector_compare_rtx): Likewise.
545 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
546 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
547 (expand_sync_lock_test_and_set): Likewise.
548 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
549 (emit_unop_insn): Likewise.
550 (expand_copysign_absneg): Change icode to an insn_code.
551 (create_convert_operand_from_type): New function.
552 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
553 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
554 (expand_insn, expand_jump_insn): Likewise.
555 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
556 than const_int_operand for operand 2.
558 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
560 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
563 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
565 * emit-rtl.c (emit_pattern_before_noloc): New function.
566 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
567 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
568 (emit_pattern_after_noloc): New function.
569 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
570 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
572 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
574 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
575 (__ffsDI2): Likewise.
577 2011-03-22 Richard Henderson <rth@redhat.com>
579 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
580 of !TARGET_ABI_OPEN_VMS.
581 (alpha_trampoline_init, alpha_start_function): Likewise.
582 (alpha_expand_epilogue, alpha_file_start): Likewise.
583 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
584 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
585 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
586 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
587 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
589 2011-03-22 Joseph Myers <joseph@codesourcery.com>
591 * config/s390/s390-opts.h: New.
592 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
593 s390_arch_flags, s390_warn_framesize, s390_stack_size,
594 s390_stack_guard): Remove.
595 (s390_handle_arch_option): Return void. Take enum
596 s390_arch_option value instead of string and searching array.
597 (s390_handle_option): Don't assert that global structures are in
598 use. Access variables via opts pointer. Use error_at. Don't use
599 sscanf for -mstack-guard= or -mstack-size=. Update call to
600 s390_handle_arch_option.
601 (s390_option_override): Update call to s390_handle_arch_option.
602 (s390_emit_prologue): Use %d format for s390_stack_size in
603 diagnostic. Use %wd for HOST_WIDE_INT.
604 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
605 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
606 * config/s390/s390.opt (config/s390/s390-opts.h): New
608 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
609 s390_arch_flags, s390_warn_framesize): New Variable entries.
610 (s390_arch_option): New Enum and EnumValue entries.
611 (march=): Use Enum instead of Var.
612 (mstack-guard=, mstack-size=): Use UInteger and Var.
615 2011-03-22 Joseph Myers <joseph@codesourcery.com>
617 * config/score/score.c (score_handle_option): Don't assert that
618 global structures are in use. Access target_flags via opts
619 pointer. Use value of -march= option to determine target_flags
621 * config/score/score.opt (march=): Use Enum.
622 (score_arch): New Enum and EnumValue entries.
624 2011-03-22 Joseph Myers <joseph@codesourcery.com>
626 * config/mep/mep.c (option_mtiny_specified): Remove.
627 (mep_option_override): Move register handling for -mivc2 from
628 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
629 instead of option_mtiny_specified.
630 (mep_handle_option): Access target_flags via opts pointer. Don't
631 assert that global structures are in use. Defer part of -mivc2
632 handling and move it to mep_option_override.
633 * config/mep/mep.opt (IVC2): New Mask entry.
634 (mivc2): Use Var and Defer instead of Mask.
636 2011-03-22 Joseph Myers <joseph@codesourcery.com>
638 * config/v850/v850-opts.h: New.
639 * config/v850/v850.c (small_memory): Replace with
640 small_memory_physical_max array. Make that array static const.
641 (v850_handle_memory_option): Take integer value of argument. Take
642 gcc_options pointer, option text and location. Return void.
643 Update for changes to small memory structures.
644 (v850_handle_option): Access target_flags via opts pointer. Don't
645 assert that global structures are in use. Update calls to
646 v850_handle_memory_option.
647 (v850_encode_data_area): Update references to small memory settings.
648 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
649 (enum small_memory_type): Move to v850-opts.h.
650 * config/v850/v850.opt (config/v850/v850-opts.h): New
652 (small_memory_max): New Variable entry.
653 (msda): Replace by pair of options msda= and msda-. Use UInteger.
654 (mtda, mzda): Likewise.
656 2011-03-22 Joseph Myers <joseph@codesourcery.com>
658 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
659 pointer. Don't assert that global structures are in use.
661 2011-03-22 Joseph Myers <joseph@codesourcery.com>
663 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
664 via opts pointer. Don't assert that global structures are in use.
666 2011-03-22 Joseph Myers <joseph@codesourcery.com>
668 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
670 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
671 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
672 * config/pa/pa-opts.h: New.
673 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
674 (pa_handle_option): Don't assert that global structures are in
675 use. Access target_flags via opts pointer. Don't handle
676 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
678 (pa_option_override): Handle deferred OPT_mfixed_range_.
680 2011-03-22 Joseph Myers <joseph@codesourcery.com>
682 * config/mn10300/mn10300-opts.h: New.
683 * config/mn10300/mn10300.c (mn10300_processor,
684 mn10300_tune_string): Remove.
685 (mn10300_handle_option): Don't assert that global structures are
686 in use. Access mn10300_processor via opts pointer. Don't handle
688 * config/mn10300/mn10300.h (enum processor_type): Move to
690 (mn10300_processor): Remove.
691 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
693 (mn10300_processor): New Variable entry.
696 2011-03-22 Joseph Myers <joseph@codesourcery.com>
698 * config/microblaze/microblaze.c: Don't include opts.h.
699 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
700 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
701 (mno-clearbss): Use Var and Warn.
703 2011-03-22 Joseph Myers <joseph@codesourcery.com>
705 * config/m32r/m32r-opts.h: New.
706 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
707 (m32r_handle_option): Don't assert that global structures are in
708 use. Access target_flags and m32r_cache_flush_func via opts
709 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
710 OPT_mno_flush_trap here.
711 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
712 include of m32r-opts.h.
713 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
715 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
716 (mmodel=): Use Enum and Var.
717 (m32r_model): New Enum and EnumValue entries.
718 (mno-flush-trap): Use Var.
719 (msdata=): Use Enum and Var.
720 (m32r_sdata): New Enum and EnumValue entries.
722 2011-03-22 Joseph Myers <joseph@codesourcery.com>
724 * config/m32c/m32c.c: Don't include opts.h.
725 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
726 m32c_handle_option): Remove.
727 (m32c_option_override): Check global_options_set.x_target_memregs
728 instead of target_memregs_set.
729 * config/m32c/m32c.h (target_memregs): Remove.
730 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
733 2011-03-22 Joseph Myers <joseph@codesourcery.com>
735 * config/iq2000/iq2000-opts.h: New.
736 * config/iq2000/iq2000.c: Don't include opts.h.
737 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
738 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
739 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
741 (iq2000_tune): New Variable entry.
742 (march=): Add comment. Use Enum.
743 (iq2000_arch): New Enum and EnumValue entries.
744 (mcpu=): Use Enum and Var.
745 (iq2000_tune): New Enum and EnumValue entries.
747 2011-03-22 Joseph Myers <joseph@codesourcery.com>
749 * config/ia64/ia64-opts.h: New.
750 * config/ia64/ia64.c (ia64_tune): Remove.
751 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
753 (ia64_option_override): Handle deferred OPT_mfixed_range_.
754 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
755 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
757 (ia64_tune): New Variable entry.
758 (mfixed-range=): Use Defer and Var.
759 (mtune=): Use Enum and Var.
760 (ia64_tune): New Enum and EnumValue entries.
762 2011-03-22 Joseph Myers <joseph@codesourcery.com>
764 * config/frv/frv-opts.h: New.
765 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
767 (frv_cpu_type): Remove.
768 * config/frv/frv.c: Don't include opts.h.
769 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
770 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
771 (frv_cpu_type): New Variable entry.
772 (frv_cpu): New Enum and EnumValue entries.
774 2011-03-22 Joseph Myers <joseph@codesourcery.com>
776 * config/cris/cris.c (cris_handle_option): Access target_flags via
777 opts pointer. Don't assert that global structures are in use.
778 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
779 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
781 2011-03-22 Joseph Myers <joseph@codesourcery.com>
783 * config/bfin/bfin-opts.h: New.
784 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
785 bfin_si_revision, bfin_workarounds): Remove.
786 (bfin_cpus): Make static const.
787 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
788 not bfin_lib_id_given.
789 (bfin_handle_option): Don't set bfin_lib_id_given. Access
790 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
791 pointer. Use error_at. Don't assert that global structures are in use.
792 * config/bfin/bfin.h: Include bfin-opts.h.
793 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
794 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
795 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
796 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
799 2011-03-22 Joseph Myers <joseph@codesourcery.com>
801 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
802 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
803 or -msoft-float here.
804 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
805 -msoft-float and -mhard-float.
806 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
807 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
809 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
811 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
812 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
814 (LIBGCC_SPEC): Don't handle -msoft-float.
815 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
817 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
819 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
820 -mfloat-abi=*, not -msoft-float and -mhard-float.
821 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
823 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
824 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
825 mhard-float and msoft-float.
826 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
827 mfloat-abi=soft in comments, not mhard-float and msoft-float.
828 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
829 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
831 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
832 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
834 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
836 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
839 2011-03-22 Richard Henderson <rth@redhat.com>
841 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
842 TARGET_ABI_WINDOWS_NT.
843 (alpha_output_function_end_prologue): Likewise.
844 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
845 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
846 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
847 (trap, *movsi_nt_vms): Likewise.
848 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
849 (*tablejump_osf_nt_internal): Remove.
850 * config/alpha/predicates.md (input_operand): Only test Pmode.
852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
854 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
855 via opts pointer. Use error_at. Don't assert that global
856 structures are in use.
858 2011-03-22 Joseph Myers <joseph@codesourcery.com>
860 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
861 (ix86_handle_option): Access ix86_isa_flags and
862 ix86_isa_flags_explicit via opts pointer. Don't assert that
863 global structures are in use.
864 (ix86_function_specific_save, ix86_function_specific_restore):
865 Update ix86_isa_flags_explicit field name.
866 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
867 (ix86_isa_flags_explicit): Rename TargetSave entry to
868 x_ix86_isa_flags_explicit.
870 2011-03-22 Richard Henderson <rth@redhat.com>
872 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
873 (alpha_option_override, direct_return): Likewise.
874 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
875 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
876 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
877 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
878 (alpha_expand_epilogue, alpha_end_function): Likewise.
879 (alpha_init_libfuncs): Likewise.
880 (struct machine_function): Remove unicosmk members.
881 (print_operand) ['t']: Remove.
882 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
883 unicosmk_output_module_name, unicosmk_output_common,
884 current_section_align, unicosmk_output_text_section_asm_op,
885 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
886 unicosmk_section_type_flags, unicosmk_unique_section,
887 unicosmk_asm_named_section, unicosmk_insert_attributes,
888 unicosmk_output_align, unicosmk_defer_case_vector,
889 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
890 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
891 unicosmk_output_ssib, unicosmk_add_call_info_word,
892 unicosmk_extern_head, unicosmk_output_default_externs,
893 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
894 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
895 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
896 * config/alpha/alpha-protos.h: Update.
897 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
898 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
899 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
900 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
901 (*mulsi_se, mulvsi3): Likewise.
902 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
903 (*divmodsi_internal, call, call_value, realign): Likewise.
904 (moddi3, umoddi3): Likewise; remove duplicate expander.
905 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
906 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
907 (*movdi_nofix): Remove r/U alternative.
908 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
909 * config/alpha/constraints.md ("U"): Remove.
910 * config/alpha/predicates.md (call_operand"): Don't test
913 2011-03-22 Joseph Myers <joseph@codesourcery.com>
915 * target.def (handle_option): Take gcc_options and
916 cl_decoded_option pointers and location_t.
917 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
918 * doc/tm.texi: Regenerate.
919 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
920 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
921 * lto-opts.c (lto_reissue_options): Generate option structure for
922 targetm.handle_option call.
923 * opts.c (target_handle_option): Update call to
924 targetm.handle_option. Remove assertions about values now passed
926 * targhooks.c (default_target_handle_option): New.
927 * targhooks.h (default_target_handle_option): Declare.
928 * config/alpha/alpha.c: Include opts.h.
929 (alpha_handle_option): Update to new hook interface.
930 * config/arm/arm.c: Include opts.h.
931 (arm_handle_option): Update to new hook interface.
932 * config/arm/t-arm (arm.o): Update dependencies.
933 * config/bfin/bfin.c: Include opts.h.
934 (bfin_handle_option): Update to new hook interface.
935 * config/cris/cris.c: Include opts.h.
936 (cris_handle_option): Update to new hook interface.
937 * config/frv/frv.c: Include opts.h.
938 (frv_handle_option): Update to new hook interface.
939 * config/i386/i386.c: Include opts.h.
940 (ix86_handle_option): Update to new hook interface.
941 (ix86_valid_target_attribute_inner_p): Generate option structure
942 for call to ix86_handle_option.
943 * config/i386/t-i386 (i386.o): Update dependencies.
944 * config/ia64/ia64.c: Include opts.h.
945 (ia64_handle_option): Update to new hook interface.
946 * config/ia64/t-ia64 (ia64.o): Update dependencies.
947 * config/iq2000/iq2000.c: Include opts.h.
948 (iq2000_handle_option): Update to new hook interface.
949 * config/m32c/m32c.c: Include opts.h.
950 (m32c_handle_option): Update to new hook interface.
951 * config/m32r/m32r.c: Include opts.h.
952 (m32r_handle_option): Update to new hook interface.
953 * config/m68k/m68k.c: Include opts.h.
954 (m68k_handle_option): Update to new hook interface.
955 * config/mep/mep.c: Include opts.h.
956 (mep_handle_option): Update to new hook interface.
957 * config/microblaze/microblaze.c: Include opts.h.
958 (microblaze_handle_option): Update to new hook interface.
959 * config/mips/mips.c: Include opts.h.
960 (mips_handle_option): Update to new hook interface.
961 * config/mn10300/mn10300.c: Include opts.h.
962 (mn10300_handle_option): Update to new hook interface.
963 * config/pa/pa.c: Include opts.h.
964 (pa_handle_option): Update to new hook interface.
965 * config/pdp11/pdp11.c: Include opts.h.
966 (pdp11_handle_option): Update to new hook interface.
967 * config/rs6000/rs6000.c: Include opts.h.
968 (rs6000_handle_option): Update to new hook interface.
969 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
970 * config/rx/rx.c: Include opts.h.
971 (rx_handle_option): Update to new hook interface.
972 * config/s390/s390.c: Include opts.h.
973 (s390_handle_option): Update to new hook interface.
974 * config/score/score.c: Include opts.h.
975 (score_handle_option): Update to new hook interface.
976 * config/sh/sh.c: Include opts.h.
977 (sh_handle_option): Update to new hook interface.
978 * config/sparc/sparc.c: Include opts.h.
979 (sparc_handle_option): Update to new hook interface.
980 * config/v850/v850.c: Include opts.h.
981 (v850_handle_option): Update to new hook interface.
983 2011-03-22 Joseph Myers <joseph@codesourcery.com>
985 * gcc.c (driver_unknown_option_callback): Only permit and save
986 unknown -Wno- options.
987 (driver_wrong_lang_callback): Save options directly instead of via
988 driver_unknown_option_callback.
990 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
992 * combine.c (simplify_set): Try harder to find the best CC mode when
993 simplifying a nested COMPARE on the RHS.
995 2011-03-22 Joseph Myers <joseph@codesourcery.com>
997 * config/alpha/gnu.h: Remove.
998 * config/arc: Remove directory.
999 * config/arm/netbsd.h: Remove.
1000 * config/arm/t-pe: Remove.
1001 * config/crx: Remove directory.
1002 * config/i386/netbsd.h: Remove.
1003 * config/m68hc11: Remove directory.
1004 * config/m68k/uclinux-oldabi.h: Remove.
1005 * config/mcore/mcore-pe.h: Remove.
1006 * config/mcore/t-mcore-pe: Remove.
1007 * config/netbsd-aout.h: Remove.
1008 * config/rs6000/gnu.h: Remove.
1009 * config/sh/sh-symbian.h: Remove.
1010 * config/sh/symbian-base.c: Remove.
1011 * config/sh/symbian-c.c: Remove.
1012 * config/sh/symbian-cxx.c: Remove.
1013 * config/sh/symbian-post.h: Remove.
1014 * config/sh/symbian-pre.h: Remove.
1015 * config/sh/t-symbian: Remove.
1016 * config/svr3.h: Remove.
1017 * config/vax/netbsd.h: Remove.
1018 * config.build: Don't handle i[34567]86-*-pe.
1019 * config.gcc: Remove handling of deprecations for most deprecated
1021 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
1022 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
1023 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
1024 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
1025 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
1026 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
1028 * config.host: Don't handle i[34567]86-*-pe.
1029 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
1030 (ASM_SPEC32): Don't handle -mcall-gnu.
1031 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
1033 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
1034 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
1035 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
1036 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
1037 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
1038 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
1039 conditional on SYMBIAN.
1040 * configure.ac: Don't handle powerpc*-*-gnu*.
1041 * configure: Regenerate.
1042 * doc/extend.texi (interrupt attribute): Don't mention CRX.
1043 * doc/install-old.texi (m6811, m6812): Don't mention.
1044 * doc/install.texi (arc-*-elf*): Don't document multilib option.
1045 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
1046 (m68k-uclinuxoldabi): Don't mention.
1047 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
1049 (-mcall-gnu): Remove.
1050 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
1051 families): Remove constraint documentation.
1053 2011-03-22 Marius Strobl <marius@FreeBSD.org>
1055 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
1056 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
1057 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
1059 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
1061 * config/avr/avr-protos.h (expand_epilogue): Change prototype
1062 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
1063 * config/avr/avr.c (init_cumulative_args)
1064 (avr_function_arg_advance): Use it.
1065 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
1067 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
1068 (avr_function_ok_for_sibcall): ...this new function.
1069 (avr_lookup_function_attribute1): New static Function.
1070 (avr_naked_function_p, interrupt_function_p)
1071 (signal_function_p, avr_OS_task_function_p)
1072 (avr_OS_main_function_p): Use it.
1073 * config/avr/avr.md ("sibcall", "sibcall_value")
1074 ("sibcall_epilogue"): New expander.
1075 ("*call_insn", "*call_value_insn"): New insn.
1076 ("call_insn", "call_value_insn"): Remove
1077 ("call", "call_value", "epilogue"): Change expander to handle
1080 2011-03-21 Nick Clifton <nickc@redhat.com>
1082 * doc/invoke.texi (Overall Options): Move closing brace to end of
1084 (Optimization Options): Add missing @gol.
1085 (Directory Options): Likewise.
1086 (i386 and x86-64 Options): Likewise.
1087 (RS6000 and PowerPC Options): Likewise.
1088 (i386 and x86-64 Windows Options): Likewise.
1089 (V850 Options): Add text missing from descriptions.
1091 2011-03-22 Richard Henderson <rth@redhat.com>
1093 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
1094 (avr_incoming_return_addr_rtx): New.
1095 (emit_push_byte): New.
1096 (expand_prologue): Use it. Remove incorrect dwarf annotation for
1097 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
1098 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
1099 (emit_pop_byte): New.
1100 (expand_epilogue): Use it. Pop frame pointer by bytes.
1101 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
1102 (INCOMING_RETURN_ADDR_RTX): New.
1103 (INCOMING_FRAME_SP_OFFSET): New.
1104 (ARG_POINTER_CFA_OFFSET): New.
1105 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
1106 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
1109 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
1111 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
1113 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
1114 (FUNCTION_ARG_ADVANCE): Likewise.
1115 * tm.texi.in: Change references to them to hook references.
1116 * tm.texi: Regenerate.
1117 * targhooks.c (default_function_arg): Eliminate check for target
1119 (default_function_incoming_arg): Likewise.
1120 (default_function_arg_advance): Likewise.
1121 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
1122 (function_arg_advance): Likewise.
1123 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
1125 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
1127 * tree.c (build_call_1): New function.
1128 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
1130 2011-03-22 Richard Guenther <rguenther@suse.de>
1132 PR tree-optimization/48228
1133 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
1134 for single-arg PHIs.
1136 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
1138 PR rtl-optimization/48143
1139 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
1140 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
1141 sse2_cvtps2pd): Likewise.
1143 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1145 * recog.c (canonicalize_change_group): Use validate_unshare_change.
1147 2011-03-22 Richard Guenther <rguenther@suse.de>
1149 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
1150 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
1151 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
1152 and REALIGN_LOAD_EXPR.
1153 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
1154 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
1155 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
1156 DOT_PROD_EXPR case ...
1157 (expand_expr_real_2): ... here.
1158 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
1159 and REALIGN_LOAD_EXPR.
1160 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
1161 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
1162 (vect_create_epilog_for_reduction): Likewise.
1163 (vectorizable_reduction): Likewise.
1164 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
1165 * tree-vect-stmts.c (vectorizable_load): Likewise.
1167 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1169 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
1171 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1173 * config/s390/s390.c (s390_delegitimize_address): Fix offset
1174 handling for PLTOFF/GOTOFF.
1176 2011-03-22 Nick Clifton <nickc@redhat.com>
1178 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
1179 trailing backslash from the end of the macro definition.
1181 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1183 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
1186 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
1188 * expr.h (prepare_operand): Move to...
1189 * optabs.h (prepare_operand): ...here and change the insn code
1190 parameter from "int" to "enum insn_code".
1191 (insn_operand_matches): Declare.
1192 * expr.c (init_expr_target): Use insn_operand_matches.
1193 (compress_float_constant): Likewise.
1194 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
1195 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
1196 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
1197 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
1199 (gen_cond_trap): Likewise.
1200 (prepare_operand): Likewise. Change icode to an insn_code.
1201 (insn_operand_matches): New function.
1202 * reload.c (find_reloads_address_1): Use insn_operand_matches.
1203 * reload1.c (gen_reload): Likewise.
1204 * targhooks.c (default_secondary_reload): Likewise.
1206 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
1208 * config/alpha/alpha.md (unspec): New define_c_enum.
1211 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
1214 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
1215 between a call and its CALL_ARG_LOCATION note.
1217 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
1219 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
1221 2011-03-21 Jakub Jelinek <jakub@redhat.com>
1225 * c-common.c (shorten_compare): If primopN is first sign-extended
1226 to opN and then zero-extended to result type, set primopN to opN.
1228 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1230 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
1231 for barrier handlers.
1233 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1235 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
1236 UNSPEC constants to be in the unspec enumeration, and redefine
1237 all UNSPECV constants to be in the unspecv enumeration, so that
1238 dumps print which unspec/unspec_volatile this is.
1239 * config/rs6000/vector.md (UNSPEC_*): Ditto.
1240 * config/rs6000/paired.md (UNSPEC_*): Ditto.
1241 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
1242 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
1243 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
1245 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
1246 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
1247 UNSPECV_LWSYNC, since these are used as unspec_volatile.
1248 * config/rs6000/sync.md (isync, lwsync): Ditto.
1250 2011-03-21 Richard Guenther <rguenther@suse.de>
1252 * params.def (lto-min-partition): Fix typo.
1254 2011-03-21 Richard Guenther <rguenther@suse.de>
1257 * c-decl.c (grokdeclarator): Drop to the main variant only
1258 for array types. Drop flag_gen_aux_info check.
1260 2011-03-21 Richard Guenther <rguenther@suse.de>
1262 PR translation/47911
1263 * params.def (lto-partitions): Fix typo.
1264 (lto-min-partition): Fix wording.
1266 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
1268 * config/rs6000/t-freebsd: Remove duplication from file.
1270 2011-03-21 Richard Guenther <rguenther@suse.de>
1273 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
1275 2011-03-21 Richard Guenther <rguenther@suse.de>
1278 * params.def (lto-partitions): Require at least 1 partition.
1280 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1282 * gthr-solaris.h: Remove.
1283 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
1284 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
1285 (LIB_SPEC): Likewise.
1286 * config/sol2.opt (threads): Remove.
1287 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
1288 (sparc*-*-solaris2*): Likewise.
1289 * configure.ac (enable_threads): Enable solaris support.
1290 * configure: Regenerate.
1291 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
1292 * doc/install.texi (Configuration, --enable-threads=lib): Remove
1295 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1297 * config.gcc: Obsolete *-*-solaris2.8*.
1298 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1300 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1303 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
1304 reference. Solaris 8 perl works.
1306 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1309 * doc/install.texi (Prerequisites): Move jar etc. up.
1310 Explain support library version requirements.
1312 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1315 * doc/install.texi (Prerequisites): Move Perl to build
1316 requirements. Always necessary on Solaris 2 with Sun ld.
1318 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1320 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
1322 (Specific, i?86-*-solaris2.[89]): Likewise.
1323 (Specific, i?86-*-solaris2.10): Likewise.
1324 (Specific, mips-sgi-irix6): Likewise.
1325 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
1326 Update for binutils 2.21.
1328 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1330 * configure.ac (gcc_cv_lto_plugin): Fix typo.
1331 Allow -fuse-linker-plugin for non-default plugin linker.
1332 * configure: Regenerate.
1334 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
1337 * gengtype.c (files_rules): Added rule for cp/parser.h.
1339 2011-03-21 Jakub Jelinek <jakub@redhat.com>
1342 * config/s390/s390.c (s390_delegitimize_address): Don't call
1343 lowpart_subreg if orig_x has BLKmode.
1345 2011-03-21 Kai Tietz <ktietz@redhat.com>
1348 * doc/plugins.texi: Adjust documentation for plugin register_callback.
1349 * tree.h (attribute_spec): Add new member affects_type_identity.
1350 * attribs.c (empty_attribute_table): Adjust attribute_spec
1352 * config/alpha/alpha.c: Likewise.
1353 * config/arc/arc.c: Likewise.
1354 * config/arm/arm.c: Likewise.
1355 * config/avr/avr.c: Likewise.
1356 * config/bfin/bfin.c: Likewise.
1357 * config/crx/crx.c: Likewise.
1358 * config/darwin.h: Likewise.
1359 * config/h8300/h8300.c: Likewise.
1360 * config/i386/cygming.h: Likewise.
1361 * config/i386/i386.c: Likewise.
1362 * config/ia64/ia64.c: Likewise.
1363 * config/m32c/m32c.c: Likewise.
1364 * config/m32r/m32r.c: Likewise.
1365 * config/m68hc11/m68hc11.c: Likewise.
1366 * config/m68k/m68k.c: Likewise.
1367 * config/mcore/mcore.c: Likewise.
1368 * config/mep/mep.c: Likewise.
1369 * config/microblaze/microblaze.c: Likewise.
1370 * config/mips/mips.c: Likewise.
1371 * config/rs6000/rs6000.c: Likewise.
1372 * config/rx/rx.c: Likewise.
1373 * config/sh/sh.c: Likewise.
1374 * config/sol2.h: Likewise.
1375 * config/sparc/sparc.c: Likewise.
1376 * config/spu/spu.c: Likewise.
1377 * config/stormy16/stormy16.c: Likewise.
1378 * config/v850/v850.c: Likewise.
1380 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
1382 * simplify-rtx.c (simplify_binary_operation_1): Handle
1383 (xor (and A B) C) case when B and C are both constants.
1385 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
1387 * tree-dfa.c (add_referenced_var): Fix typo in comment.
1389 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
1392 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
1394 2011-03-20 Jakub Jelinek <jakub@redhat.com>
1396 PR rtl-optimization/48156
1397 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
1398 assume df and df_lr are not NULL.
1400 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1403 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
1404 between a call and its CALL_ARG_LOCATION note.
1406 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
1409 * config/sh/sh.c (find_barrier): Don't emit a constant pool
1410 between a call and its corresponding CALL_ARG_LOCATION note.
1412 2011-03-19 Anatoly Sokolov <aesok@post.ru>
1414 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
1415 instead of loop. Use HARD_REGISTER_NUM_P predicate.
1416 * haifa-sched.c (setup_ref_regs): Ditto.
1417 * caller-save.c (add_used_regs_1): Ditto.
1418 * dse.c (look_for_hardregs): Ditto.
1419 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
1420 * sched-rgn.c (check_live_1): Ditto.
1422 2011-03-18 Joseph Myers <joseph@codesourcery.com>
1424 * c-decl.c (diagnose_mismatched_decls): Give an error for
1425 redefining a typedef with variably modified type.
1427 2011-03-18 Joseph Myers <joseph@codesourcery.com>
1429 * c-decl.c (grokfield): Don't allow typedefs for structures or
1430 unions with no tag by default.
1431 * doc/extend.texi (Unnamed Fields): Update.
1433 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
1435 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1436 Rewrite using indirect functions.
1437 (lwp_slwpcb): Ditto.
1438 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
1439 (avx_vinsertf128<mode>): Ditto.
1441 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1443 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
1446 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1448 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
1449 splitting between a call and its corresponding CALL_ARG_LOCATION note.
1451 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
1453 PR rtl-optimization/48170
1454 * gcse.c (hoist_code): Remove bogus asserts.
1456 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
1458 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
1459 computation for prologue/epilogue.
1461 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1463 * Makefile.in (check-consistency): Remove.
1465 2011-03-18 Jakub Jelinek <jakub@redhat.com>
1468 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
1469 arange_table_in_use is 0, but either text_section_used or
1470 cold_text_section_used is true. Don't call it if
1471 !info_section_emitted.
1473 2011-03-18 Anatoly Sokolov <aesok@post.ru>
1475 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
1476 FUNCTION_VALUE_REGNO_P): Remove.
1477 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
1479 * config/avr/avr.c (avr_ret_register): Make static inline.
1480 (avr_function_value_regno_p): New function.
1481 (avr_libcall_value): Make static. Add 'func' argument.
1482 (avr_function_value): Make static. Rename 'func' argument to
1483 'fn_decl_or_type', forward it to avr_libcall_value. Call
1484 avr_ret_register function instead of RET_REGISTER macro.
1485 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1487 2011-03-18 Jason Merrill <jason@redhat.com>
1490 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
1492 2011-03-18 Richard Guenther <rguenther@suse.de>
1494 * doc/install.texi (--enable-gold): Remove.
1495 (--with-plugin-ld): Document.
1496 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
1498 2011-03-18 Andrew Pinski <pinskia@gmail.com>
1501 * expr.c (optimize_bitfield_assignment_op): Revamp to work
1502 again after expansion changes.
1504 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
1506 * combine.c (try_combine): Do simplification only call of
1507 subst() on i2 even when i1 is present. Update comments.
1509 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
1511 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
1512 and UNSPEC_PCREL_SYMOFF.
1514 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1516 * config/s390/s390.md: Use define_c_enum for the unspec constant
1519 2011-03-18 Richard Henderson <rth@redhat.com>
1520 Jakub Jelinek <jakub@redhat.com>
1523 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
1524 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
1526 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1529 * combine.c (cant_combine_insn_p): Don't check zero/sign
1530 extended hard registers.
1532 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1535 * combine.c (cant_combine_insn_p): Check zero/sign extended
1538 2011-03-17 Anatoly Sokolov <aesok@post.ru>
1540 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1541 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
1542 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
1543 Change return type to bool.
1544 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1546 2011-03-17 Jakub Jelinek <jakub@redhat.com>
1549 * var-tracking.c (prepare_call_arguments): If CALL target
1550 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
1551 pc instead of looking it up using cselib_lookup and use
1552 Pmode for it if x has VOIDmode.
1553 * dwarf2out.c (gen_subprogram_die): If also both first and
1554 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
1557 * function.c (assign_parms): For data.passed_pointer parms
1558 use MEM of data.entry_parm instead of data.entry_parm itself
1559 as DECL_INCOMING_RTL.
1560 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
1561 also when passed and declared mode is the same, DECL_RTL
1562 is a MEM with pseudo as address and DECL_INCOMING_RTL is
1565 2011-03-16 Jeff Law <law@redhat.com>
1567 PR rtl-optimization/37273
1568 * ira-costs.c (scan_one_insn): Detect constants living in memory and
1569 handle them like argument loads from stack slots. Do not double
1570 count memory for memory constants and argument loads from stack slots.
1572 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1575 * var-tracking.c (prepare_call_arguments): Check SUBREG.
1577 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1580 * config/i386/i386.opt: Add Save to -mavx and -mfma.
1582 2011-03-17 Jakub Jelinek <jakub@redhat.com>
1585 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
1587 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
1588 Clear call_arg_locations and call_arg_loc_last always.
1591 * var-tracking.c (prepare_call_arguments): If argument needs to be
1592 passed by reference, adjust argtype and mode.
1594 2011-03-17 Richard Guenther <rguenther@suse.de>
1597 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
1598 a value make sure to fold the statement.
1600 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
1603 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
1604 return condition with !cfun->calls_alloca.
1606 2011-03-17 Richard Guenther <rguenther@suse.de>
1609 * lto-cgraph.c (input_overwrite_node): Clear the abstract
1610 origin for decls in other ltrans units.
1611 (input_varpool_node): Likewise.
1613 2011-03-17 Richard Guenther <rguenther@suse.de>
1616 * tree-object-size.c (compute_object_offset): Properly return
1617 the offset operand of MEM_REFs as sizetype.
1619 2011-03-17 Jakub Jelinek <jakub@redhat.com>
1621 PR rtl-optimization/48141
1622 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
1623 * dse.c: Include params.h.
1624 (active_local_stores_len): New variable.
1625 (add_wild_read, dse_step1): Clear it when setting active_local_stores
1627 (record_store, check_mem_read_rtx): Decrease it when removing
1629 (scan_insn): Likewise. Increase it when adding to chain, if it
1630 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
1631 set active_local_stores to NULL before the addition.
1632 * Makefile.in (dse.o): Depend on $(PARAMS_H).
1634 PR rtl-optimization/48141
1635 * dse.c (record_store): If no positions are needed in an insn
1636 that cannot be deleted, at least unchain it from active_local_stores.
1638 2011-03-16 Dodji Seketeli <dodji@redhat.com>
1641 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
1642 (lookup_type_die_strip_naming_typedef): ... here.
1643 (get_context_die): Use it.
1644 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
1645 the anonymous struct named by the naming typedef.
1647 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
1650 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
1651 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
1653 2011-03-16 Jeff Law <law@redhat.com>
1655 * tree-vrp.c (identify_jump_threads): Slightly simplify type
1656 check for operands of conditional. Allow type to be a pointer.
1658 2011-03-16 Richard Guenther <rguenther@suse.de>
1660 PR tree-optimization/48149
1661 * fold-const.c (fold_binary_loc): Fold
1662 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
1664 2011-03-16 Richard Guenther <rguenther@suse.de>
1666 PR tree-optimization/26134
1667 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
1668 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
1669 (non_rewritable_mem_ref_base): Handle complex type component
1670 accesses, constrain offsets for vector and complex extracts
1673 2011-03-16 Richard Guenther <rguenther@suse.de>
1675 PR tree-optimization/48146
1676 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
1677 operands avoiding the need for renaming.
1679 2011-03-16 Richard Guenther <rguenther@suse.de>
1681 * gimple-fold.c (maybe_fold_reference): Open-code relevant
1682 constant folding. Move MEM_REF canonicalization first.
1683 Rely on fold_const_aggregate_ref for initializer folding.
1684 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
1686 2011-03-16 Jakub Jelinek <jakub@redhat.com>
1689 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
1690 arg0/arg1 or their arguments are always fold converted to matching
1693 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
1696 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1699 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
1700 Handle in-tree gold.
1701 (ld_vers): Extract binutils version for gold.
1702 (gcc_cv_ld_hidden): Handle gold here.
1703 (gcc_cv_lto_plugin): Determine level of linker plugin support.
1704 * configure: Regenerate.
1705 * config.in: Regenerate.
1706 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
1707 -fuse-linker-plugin otherwise.
1708 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
1709 (LINK_COMMAND_SPEC): Use it.
1710 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
1712 2011-03-16 Jakub Jelinek <jakub@redhat.com>
1714 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
1715 * calls.c: Remove debug.h include.
1716 (emit_call_1): Don't call virtual_call_token debug hook.
1717 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
1718 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
1719 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
1720 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
1721 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
1722 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
1723 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
1724 dwarf2out_virtual_call): Remove.
1725 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
1726 copy_call_info and virtual_call hooks.
1727 (dwarf2out_init): Don't initialize vcall_insn_table,
1728 debug_dcall_section and debug_vcall_section.
1729 (prune_unused_types): Don't mark nodes from dcall_table.
1730 (dwarf2out_finish): Don't output dcall or vcall tables.
1731 * final.c (final_scan_insn): Don't call direct_call or
1732 virtual_call debug hooks.
1733 * debug.h (struct gcc_debug_hooks): Remove direct_call,
1734 virtual_call_token, copy_call_info and virtual_call hooks.
1735 (debug_nothing_uid): Remove prototype.
1736 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
1737 copy_call_info and virtual_call hooks.
1738 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1739 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1740 * debug.c (do_nothing_debug_hooks): Likewise.
1741 (debug_nothing_uid): Remove.
1742 * doc/invoke.texi (-fenable-icf-debug): Remove.
1743 * common.opt (-fenable-icf-debug): Likewise.
1745 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
1746 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
1747 call's MEM. Handle functions returning aggregate through a hidden
1748 first pointer. For virtual calls add clobbered pc to call arguments
1750 * dwarf2out.c (gen_subprogram_die): Emit
1751 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
1755 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
1756 * rtl.h (ENTRY_VALUE_EXP): Define.
1757 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
1758 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
1759 * print-rtl.c (print_rtx): Likewise.
1760 * gengtype.c (adjust_field_rtx_def): Likewise.
1761 * var-tracking.c (vt_add_function_parameter): Adjust
1762 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
1763 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
1764 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
1765 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
1766 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
1768 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
1769 Call var_location debug hook even on CALL_INSNs.
1770 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
1771 * rtl.def (ENTRY_VALUE): New.
1772 * dwarf2out.c: Include cfglayout.h.
1773 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1774 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
1775 (struct call_arg_loc_node): New type.
1776 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
1777 tail_call_site_count): New variables.
1778 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
1779 DW_TAG_GNU_call_site_parameter.
1780 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
1781 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
1782 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
1783 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
1784 and DW_AT_GNU_all_source_call_sites.
1785 (mem_loc_descriptor): Handle ENTRY_VALUE.
1786 (add_src_coords_attributes): Don't add enything if
1787 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
1788 (dwarf2out_abstract_function): Save and clear call_arg_location,
1789 call_site_count and tail_call_site_count around dwarf2out_decl call.
1790 (gen_call_site_die): New function.
1791 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
1792 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
1793 (dwarf2out_function_decl): Clear call_arg_locations,
1794 call_arg_loc_last, set call_site_count and tail_call_site_count
1795 to -1 and free block_map.
1796 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
1797 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
1798 followed by any real instructions.
1799 (dwarf2out_begin_function): Set call_site_count and
1800 tail_call_site_count to 0.
1801 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
1802 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
1803 attempt to force a DIE for it and worst case remove the attribute.
1804 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
1805 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
1807 * var-tracking.c: Include tm_p.h.
1808 (vt_stack_adjustments): For calls call note_register_arguments.
1809 (argument_reg_set): New variable.
1810 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
1811 ensure the VALUE is resolved.
1812 (call_arguments): New variable.
1813 (prepare_call_arguments): New function.
1814 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
1815 (struct expand_loc_callback_data): Add ignore_cur_loc field.
1816 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
1817 always use the best expression.
1818 (vt_expand_loc): Add ignore_cur_loc argument.
1819 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
1820 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
1821 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
1823 (vt_add_function_parameter): Use cselib_lookup_from_insn.
1824 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
1825 argument. Don't call cselib_preserve_only_values and
1827 (note_register_arguments): New function.
1828 (vt_initialize): Compute argument_reg_set. Call
1829 vt_add_function_parameters before processing basic blocks instead of
1830 afterwards. For calls call prepare_call_arguments before calling
1831 cselib_process_insn.
1832 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
1833 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
1834 (var-tracking.o): Depend on $(TM_P_H).
1835 * cfglayout.h (insn_scope): New prototype.
1836 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
1837 * cfglayout.c (insn_scope): No longer static.
1838 * insn-notes.def (CALL_ARG_LOCATION): New.
1839 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
1840 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
1841 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
1842 nothing for DECL_EXTERNAL BLOCK_VARS.
1844 2011-03-16 Alan Modra <amodra@gmail.com>
1847 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
1848 create invalid offset address for vsx splat insn.
1849 * config/rs6000/predicates.md (splat_input_operand): New.
1850 * config/rs6000/vsx.md (vsx_splat_*): Use it.
1852 2011-03-15 Xinliang David Li <davidxl@google.com>
1855 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
1856 (normalize_preds): New function.
1857 (is_use_properly_guarded): Normalize def predicates.
1859 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1862 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
1863 in the output template.
1865 2011-03-15 Richard Guenther <rguenther@suse.de>
1868 * tree-pretty-print.c (dump_function_declaration): Properly
1869 dump unprototyped and varargs function types.
1871 2011-03-15 Richard Guenther <rguenther@suse.de>
1873 PR tree-optimization/13954
1874 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
1877 2011-03-15 Richard Guenther <rguenther@suse.de>
1879 PR tree-optimization/48037
1880 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
1881 selects into BIT_FIELD_REFs.
1882 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
1885 2011-03-15 Jakub Jelinek <jakub@redhat.com>
1887 PR tree-optimization/48129
1888 * builtins.c (fold_builtin_snprintf): Convert to type of
1889 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
1890 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
1892 2011-03-15 Richard Guenther <rguenther@suse.de>
1894 PR tree-optimization/41490
1895 * tree-ssa-dce.c (propagate_necessity): Handle returns without
1896 value but with VUSE.
1897 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
1899 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
1900 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
1901 * tree-tailcall.c (find_tail_calls): Ignore returns.
1903 2011-03-15 Richard Guenther <rguenther@suse.de>
1906 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
1907 or variable-indexed array accesses when in gimple form.
1909 2011-03-15 Richard Guenther <rguenther@suse.de>
1911 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
1913 2011-03-15 Alan Modra <amodra@gmail.com>
1916 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
1917 presume symbol_refs without a symbol_ref_decl are suitably
1918 aligned, nor other trees we may see here. Handle anchor symbols.
1919 (legitimate_constant_pool_address_p): Comment. Add mode param.
1920 Check cmodel=medium addresses. Adjust all calls.
1921 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
1922 creating cmodel=medium optimized access to locals.
1923 * config/rs6000/constraints.md (R): Pass QImode to
1924 legitimate_constant_pool_address_p.
1925 * config/rs6000/predicates.md (input_operand): Pass mode to
1926 legitimate_constant_pool_address_p.
1927 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
1930 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1933 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
1934 64-bit constants being loaded into registers other than GPRs such
1935 as loading 0 into a VSX register.
1937 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1939 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
1941 2011-03-14 Jakub Jelinek <jakub@redhat.com>
1944 * builtins.c (fold_builtin_snprintf): New function.
1945 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
1946 (fold_builtin_4): Likewise.
1949 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
1950 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
1951 and C - X == X also strip nops from +/-/p+ operand.
1952 When optimizing -X == C, fold C to arg0's type.
1955 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
1956 emit it as add_AT_int instead of add_AT_unsigned.
1958 2011-03-14 Tom Tromey <tromey@redhat.com>
1960 * unwind-dw2.c: Include sys/sdt.h if it exists.
1961 (_Unwind_DebugHook): Use STAP_PROBE2.
1962 * config.in, configure: Rebuild.
1963 * configure.ac: Check for sys/sdt.h.
1965 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
1967 * config/i386/i386.md (ROUND_FLOOR): New constant.
1968 (ROUND_CEIL): Ditto.
1969 (ROUND_TRUNC): Ditto.
1970 (ROUND_MXCSR): Ditto.
1971 (ROUND_NO_EXC): Ditto.
1972 (rint<mode>2): Use new defines instead of numerical constants.
1973 (floor<mode>2): Ditto.
1974 (ceil<mode>2): Ditto.
1975 (btrunc<mode>2): Ditto.
1976 * config/i386/i386-builtin-types.def: Define ROUND function type
1978 * config/i386/i386.c (enum ix86_builtins): Add
1979 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
1980 (struct builtin_description): Add
1981 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
1982 (ix86_expand_sse_round): New static function.
1983 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
1985 (ix86_builtin_vectorized_function): Handle
1986 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
1988 2011-03-14 Tom Tromey <tromey@redhat.com>
1990 * c-parser.c (c_parser_asm_string_literal): Clear
1991 warn_overlength_strings.
1993 2011-03-14 Tom Tromey <tromey@redhat.com>
1995 * c-parser.c (disable_extension_diagnostics): Save
1996 warn_overlength_strings.
1997 (restore_extension_diagnostics): Restore warn_overlength_strings.
1999 2011-03-14 Jakub Jelinek <jakub@redhat.com>
2001 * BASE-VER: Change to 4.7.0.
2003 2011-03-14 Richard Guenther <rguenther@suse.de>
2006 * tree.c (build_vector_from_val): Adjust assert to requirements
2009 2011-03-14 Jakub Jelinek <jakub@redhat.com>
2012 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
2014 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
2016 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
2017 terms of target_flags_explicit. Adjust copyright year.
2019 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
2020 * config/rs6000/t-freebsd: New file. Add override for
2023 2011-03-13 Chris Demetriou <cgd@google.com>
2025 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
2026 (-fno-diagnostics-show-option): this, to reflect current default.
2027 (-Werror=): Update text about -fno-diagnostics-show-option.
2029 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
2032 * config/rs6000/predicates.md (easy_vector_constant_add_self,
2033 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
2034 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
2035 mode is not V2DImode or V2DFmode.
2036 (vspltis_constant): Do not handle V2DImode and V2DFmode.
2037 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
2038 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
2040 (movdi_internal64): Likewise.
2042 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
2044 PR tree-optimization/47127
2045 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
2047 (set_cloog_options): Same.
2048 (scop_to_clast): Same.
2049 (print_clast_stmt): Do not call cloog_state_malloc and
2051 (print_generated_program): Same.
2053 * graphite-clast-to-gimple.h (cloog_state): Declared.
2054 (scop_to_clast): Adjust declaration.
2055 * graphite.c (cloog_state): Defined here.
2056 (graphite_initialize): Call cloog_state_malloc.
2057 (graphite_finalize): Call cloog_state_free.
2059 2011-03-11 Jason Merrill <jason@redhat.com>
2061 * attribs.c (lookup_attribute_spec): Take const_tree.
2064 2011-03-11 Joseph Myers <joseph@codesourcery.com>
2066 * config/sparc/sparc.c (sparc_option_override): Use
2067 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
2069 2011-03-11 Richard Guenther <rguenther@suse.de>
2071 PR tree-optimization/48067
2072 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
2073 multiplication result will be only used once on the target
2076 2011-03-11 Richard Guenther <rguenther@suse.de>
2078 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
2080 2011-03-11 Richard Guenther <rguenther@suse.de>
2083 * tree.c (find_decls_types_r): Do not walk types only reachable
2084 from IDENTIFIER_NODEs.
2086 2011-03-11 Jakub Jelinek <jakub@redhat.com>
2089 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
2090 all vnode->force_output nodes as needed.
2092 2011-03-11 Jason Merrill <jason@redhat.com>
2095 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
2096 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
2098 2011-03-11 Martin Jambor <mjambor@suse.cz>
2100 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
2103 2011-03-11 Jakub Jelinek <jakub@redhat.com>
2105 PR tree-optimization/48063
2106 * ipa-inline.c (cgraph_decide_inlining): Don't try to
2107 inline functions called once if !tree_can_inline_p (node->callers).
2109 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
2111 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
2113 * config/score/score3.c: Delete.
2114 * config/score/score3.h: Delete.
2115 * config/score/mul-div.S: Delete.
2116 * config/score/sfp-machine.h: Add new file.
2117 * config/score/constraints.md: Add new file.
2118 * config/score/t-score-softfp: Add new file.
2119 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
2120 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
2121 (score7_extra_constraint): Delete.
2122 (score7_option_override): Remove unused code.
2123 * config/score/score.c: Remove score3 and score5 define and code.
2124 * config/score/score.h: Remove score3 and score5 define and code.
2125 * config/score/score.md: Remove score3 template and unusual insn.
2126 * config/score/score.opt: Remove score3 and score5 options.
2128 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2130 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2131 when _HPUX_SOURCE is defined.
2132 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
2134 2011-03-10 Jason Merrill <jason@redhat.com>
2137 * stor-layout.c (layout_type): Don't set structural equality
2138 on arrays of incomplete type.
2139 * tree.c (type_hash_eq): Handle comparing them properly.
2141 2011-03-10 Jakub Jelinek <jakub@redhat.com>
2144 * config/s390/s390.c (s390_delegitimize_address): Make sure the
2145 result mode matches original rtl mode.
2147 2011-03-10 Nick Clifton <nickc@redhat.com>
2149 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
2150 (andsi3, andsi3_flags): Fix timings for three operand alternative.
2152 2011-03-09 Jakub Jelinek <jakub@redhat.com>
2154 PR rtl-optimization/47866
2155 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
2156 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
2157 if target wasn't scalar.
2158 * function.c (assign_stack_temp_for_type): Assert that neither
2159 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
2160 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
2162 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
2164 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2166 * config/s390/s390-protos.h (s390_label_align): New prototype.
2167 * config/s390/s390.c (s390_label_align): New function.
2168 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
2170 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2173 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
2174 V2DI/V2DF constants. Only all 0's or all 1's are easy.
2175 (output_vec_const_move): Ditto.
2177 2011-03-08 Anatoly Sokolov <aesok@post.ru>
2179 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
2180 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
2181 * config/mips/mips.c (mips_preferred_reload_class): Make static.
2182 Change 'rclass' argument and result type to reg_class_t.
2183 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2185 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
2187 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2188 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
2189 (TARGET_MEMORY_MOVE_COST): Define.
2190 (avr_register_move_cost, avr_memory_move_cost): New Functions.
2192 2011-03-08 Jakub Jelinek <jakub@redhat.com>
2195 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
2198 PR tree-optimization/48022
2199 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
2202 2011-03-07 Jakub Jelinek <jakub@redhat.com>
2205 * var-tracking.c (find_use_val): Return NULL for
2206 cui->sets && cui->store_p BLKmode MEMs.
2208 2011-03-07 Anatoly Sokolov <aesok@post.ru>
2210 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2212 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
2213 xstormy16_print_operand_address): Remove.
2214 * config/stormy16/stormy16.c (xstormy16_print_operand,
2215 xstormy16_print_operand_address): Make static.
2216 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2218 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
2221 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2222 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
2225 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
2228 * cfgloopmanip.c (fix_bb_placements): Return immediately
2229 if FROM is BASE_LOOP's header.
2231 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
2233 * gimplify.c (gimplify_function_tree): Fix building calls
2234 to __builtin_return_address.
2236 2011-03-07 Alan Modra <amodra@gmail.com>
2238 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
2239 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
2240 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
2241 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
2243 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
2244 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
2245 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
2246 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
2247 * config/rs6000/rs6000.c
2248 (rs6000_elf_end_indicate_exec_stack): Rename to..
2249 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
2250 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
2251 (rs6000_file_start): ..here.
2252 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
2253 file scope variables.
2254 (call_ABI_of_interest): New function.
2255 (init_cumulative_args): Set above vars when function return value
2256 is a float, vector, or small struct.
2257 (rs6000_function_arg_advance_1): Likewise for function args.
2258 (rs6000_va_start): Set rs6000_passes_float if variable arg function
2259 references float args.
2261 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
2263 * doc/cfg.texi: Remove "See" before @ref.
2264 * doc/invoke.texi: Likewise.
2266 2011-03-05 Jason Merrill <jason@redhat.com>
2268 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
2270 2011-03-05 Anthony Green <green@moxielogic.com>
2272 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
2274 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
2276 PR rtl-optimization/47899
2277 * cfgloopmanip.c (fix_bb_placements): Fix first argument
2278 to flow_loop_nested_p when moving the loop upward.
2280 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
2283 * arm.md (movhi_insn_arch4): Accept any immediate constant.
2285 2011-03-05 Jakub Jelinek <jakub@redhat.com>
2287 PR tree-optimization/47967
2288 * ipa-cp.c (build_const_val): Return NULL instead of creating
2289 VIEW_CONVERT_EXPR for mismatching sizes.
2290 (ipcp_create_replace_map): Return NULL if build_const_val failed.
2291 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
2292 give up on versioning.
2294 2011-03-05 Alan Modra <amodra@gmail.com>
2297 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2298 full cmodel medium/large lo_sum + high addresses.
2300 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2302 * config/s390/s390.c (s390_decompose_address): Reject non-literal
2303 pool references in UNSPEC_LTREL_OFFSET.
2305 2011-03-04 Jan Hubicka <jh@suse.cz>
2308 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
2309 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
2310 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
2312 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
2313 cgraph_add_thunk): Add node pointers.
2314 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
2315 associated to right node.
2316 (input_node): Update use of cgraph_same_body_alias
2317 and cgraph_add_thunk.
2319 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
2321 * config/i386/i386.opt (mprefer-avx128): New flag.
2322 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
2323 modes when the flag -mprefer-avx128 is on.
2325 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
2327 * dwarf2out.c (compare_loc_operands): Fix address handling.
2329 2011-03-04 Alan Modra <amodra@gmail.com>
2331 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
2333 2011-03-04 Richard Guenther <rguenther@suse.de>
2336 * expmed.c (extract_bit_field_1): Prefer vector modes that
2337 vec_extract patterns can handle.
2339 2011-03-04 Richard Guenther <rguenther@suse.de>
2342 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
2344 2011-03-04 Richard Henderson <rth@redhat.com>
2346 * explow.c (emit_stack_save): Remove 'after' parameter.
2347 (emit_stack_restore): Likewise.
2348 * expr.h: Update to match.
2349 * builtins.c, calls.c, stmt.c: Likewise.
2350 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
2351 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
2352 * function.c (expand_function_end): Insert the emit_stack_save
2353 sequence before parm_birth_insn instead of after.
2355 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
2357 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
2358 (ssse3_pmaddubsw128): Ditto.
2359 (ssse3_pmaddubsw): Ditto.
2361 2011-03-03 Steve Ellcey <sje@cup.hp.com>
2363 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
2365 2011-03-03 Jakub Jelinek <jakub@redhat.com>
2368 * gimplify.c (omp_add_variable): Only call omp_notice_variable
2369 on TYPE_SIZE_UNIT if it is a DECL.
2372 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
2373 first operand is not is_gimple_mem_ref_addr, try to fold it.
2374 If the operand still isn't is_gimple_mem_ref_addr, clear
2377 2011-03-03 Richard Guenther <rguenther@suse.de>
2380 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
2382 (refs_may_alias_p_1): For release branches return true if
2383 we are confused by our input.
2385 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2387 * config/s390/s390.c (s390_function_value): Rename to ...
2388 (s390_function_and_libcall_value): ... this.
2389 (s390_function_value): New function.
2390 (s390_libcall_value): New function.
2391 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
2392 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
2393 target macro definitions.
2394 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
2396 2011-03-02 Joseph Myers <joseph@codesourcery.com>
2398 * config/i386/freebsd64.h (CC1_SPEC): Define.
2399 * config/i386/linux64.h (CC1_SPEC): Define.
2400 * config/i386/x86-64.h (CC1_SPEC): Don't define.
2402 2011-03-02 Anatoly Sokolov <aesok@post.ru>
2404 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2406 * config/stormy16/stormy16.c: Include reload.h.
2407 (xstormy16_memory_move_cost): New function.
2408 (TARGET_MEMORY_MOVE_COST): Define.
2410 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
2412 PR rtl-optimization/47925
2413 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
2414 with side effects. Remove the more-specific check for volatile asms.
2416 2011-03-02 Alan Modra <amodra@gmail.com>
2419 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
2420 toc relative addresses for valid offsets.
2422 2011-03-01 Richard Guenther <rguenther@suse.de>
2424 PR tree-optimization/47890
2425 * tree-vect-loop.c (get_initial_def_for_induction): Set
2426 related stmt properly.
2428 2011-03-01 Richard Guenther <rguenther@suse.de>
2431 * lto-streamer.c (lto_record_common_node): Also register
2434 2011-03-01 Richard Guenther <rguenther@suse.de>
2437 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2438 Do not stream DECL_ABSTRACT_ORIGIN.
2439 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
2440 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
2441 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2442 Do not stream DECL_ABSTRACT_ORIGIN.
2443 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
2444 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
2446 2011-02-28 Anatoly Sokolov <aesok@post.ru>
2448 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
2449 FUNCTION_VALUE_REGNO_P): Remove.
2450 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
2451 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
2452 Add 'outgoing' argument.
2453 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
2455 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2456 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2458 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
2461 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
2462 (lookup_filename): Likewise.
2463 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
2465 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
2466 Jakub Jelinek <jakub@redhat.com>
2469 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
2470 (assign_stack_local_1): Change last argument type to int.
2471 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
2472 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
2473 don't record padding space into frame_space_list nor use those areas.
2474 (assign_stack_local): Adjust caller.
2475 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
2476 of assign_stack_local, pass 0 as last argument.
2477 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
2480 2011-02-28 Jakub Jelinek <jakub@redhat.com>
2483 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
2484 Use target address_mode and pointer_mode hooks instead of hardcoded
2485 Pmode and ptr_mode. Handle some simple cases of extending if
2486 POINTERS_EXTEND_UNSIGNED < 0.
2487 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
2488 Call convert_debug_memory_address.
2489 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
2490 convert_debug_memory_address.
2493 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
2494 * configure: Regenerated.
2495 * config.in: Regenerated.
2496 * varasm.c (default_function_section): Return NULL
2497 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
2499 2011-02-28 Martin Jambor <mjambor@suse.cz>
2501 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
2502 the description to match the printed values.
2504 2011-02-28 Richard Guenther <rguenther@suse.de>
2506 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
2507 of the copied scope tree.
2509 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2511 * doc/extend.texi (Function Attributes): Avoid deeply (and
2512 wrongly) nested tables.
2514 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2517 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
2518 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
2519 r isn't op0 nor op1.
2521 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
2523 * config/avr/avr.md: Remove magic comment for emacs.
2525 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
2528 * config/avr/avr.c (avr_option_override): Use error on bad options.
2529 (avr_help): New function.
2530 (TARGET_HELP): Define.
2532 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
2535 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
2536 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
2538 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
2540 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
2541 (ARM Options): Ditto.
2542 (i386 and x86-64 Options): Ditto.
2543 (RX Options): Ditto.
2544 (SPARC Options): Ditto.
2546 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
2548 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
2549 FreeBSD 6 and later. Generally use cpu generic.
2551 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
2553 * doc/cpp.texi: Update copyright years.
2555 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
2558 * config/lm32/lm32.md (ashrsi3): Added needed variable.
2560 2011-02-25 Jon Beniston <jon@beniston.com>
2563 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
2564 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
2565 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
2566 (lm32_block_move_inline): Add type cast to remove warning.
2567 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
2568 (gen_int_relational): Move declarations to start of function.
2570 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
2572 PR tree-optimization/45470
2573 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2574 can throw internally only.
2575 * tree-vect-stmts.c (vectorizable_call): Likewise.
2577 2011-02-24 Anatoly Sokolov <aesok@post.ru>
2579 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
2580 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2581 * config/stormy16/stormy16-protos.h
2582 (xstormy16_preferred_reload_class): Remove.
2583 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
2584 static. Change 'rclass' argument and return type to reg_class_t.
2585 (TARGET_PREFERRED_RELOAD_CLASS,
2586 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2588 2011-02-24 Richard Guenther <rguenther@suse.de>
2590 * lto-streamer-in.c (input_bb): Do not find referenced vars
2591 in debug statements.
2593 2011-02-23 Jason Merrill <jason@redhat.com>
2595 * common.opt (fabi-version): Document v5 and v6.
2597 2011-02-23 Richard Guenther <rguenther@suse.de>
2599 PR tree-optimization/47849
2600 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
2602 2011-02-23 Jie Zhang <jie@codesourcery.com>
2604 * opts-common.c (decode_cmdline_option): Print empty string
2605 argument as "" in decoded->orig_option_with_args_text.
2606 * gcc.c (execute): Print empty string argument as ""
2607 in the verbose output.
2608 (do_spec_1): Keep empty string argument.
2610 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
2612 * config.gcc: Declare score-* and crx-* obsolete.
2614 2011-02-23 Jie Zhang <jie@codesourcery.com>
2616 PR rtl-optimization/47763
2617 * web.c (web_main): Ignore naked clobber when replacing register.
2619 2011-02-22 Anatoly Sokolov <aesok@post.ru>
2621 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2624 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
2627 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
2629 2011-02-22 Mike Stump <mikestump@comcast.net>
2631 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
2633 * configure: Regenerate.
2635 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
2637 PR rtl-optimization/46002
2638 * ira-color.c (update_copy_costs): Change class intersection
2639 test to reg_class_contents[] test of 'hard_regno'.
2641 2011-02-21 Joseph Myers <joseph@codesourcery.com>
2643 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
2645 * config/hpux11.opt (mt): Likewise.
2646 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
2647 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
2648 * config/vax/elf.opt (mno-asm-pic): Likewise.
2649 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
2651 2011-02-21 Mike Stump <mikestump@comcast.net>
2654 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
2655 tree so we can get save the type.
2656 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
2657 for CFString instead of trying to use past the end of the builtins.
2658 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
2659 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
2660 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
2661 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
2662 Rename to darwin_builtin_cfstring.
2663 (darwin_init_cfstring_builtins): Return the built type.
2665 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
2668 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
2669 (_mm256_insert_epi64): Use _mm_insert_epi64.
2671 2011-02-21 Anatoly Sokolov <aesok@post.ru>
2673 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2674 * config/stormy16/stormy16-protos.h
2675 (xstormy16_mode_dependent_address_p): Remove.
2676 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
2677 Make static. Change return type to bool. Change argument type to
2678 const_rtx. Remove dead code.
2679 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2681 2011-02-21 Richard Guenther <rguenther@suse.de>
2684 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2685 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
2686 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
2688 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2689 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
2691 2011-02-20 Richard Guenther <rguenther@suse.de>
2694 * tree.c (free_lang_data_in_decl): Clean builtins from
2695 the TU decl BLOCK_VARS.
2697 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
2701 * haifa-sched.c (fix_tick_ready): Skip tick computation
2704 2011-02-19 Richard Guenther <rguenther@suse.de>
2707 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
2708 Remove lazy BLOCK_VARS streaming.
2709 (lto_input_ts_block_tree_pointers): Likewise.
2710 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
2712 2011-02-19 Joseph Myers <joseph@codesourcery.com>
2714 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
2716 2011-02-19 Joseph Myers <joseph@codesourcery.com>
2718 * config/i386/biarch32.h, config/i386/mach.h,
2719 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
2721 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2724 * config/i386/i386.md (peephole2 for shift and plus): Use
2725 operands[1] original mode in the first insn.
2727 2011-02-18 Mike Stump <mikestump@comcast.net>
2729 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
2731 2011-02-18 Jan Hubicka <jh@suse.cz>
2734 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
2735 to zero when the function is not inlinable at all.
2737 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2739 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
2740 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
2741 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
2742 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
2743 * config/pa/t-pa64: Likewise.
2744 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2746 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2749 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
2751 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2754 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
2756 2011-02-18 Anatoly Sokolov <aesok@post.ru>
2758 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2759 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
2760 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
2761 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2762 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
2763 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
2764 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
2765 m32r_load_postinc_p, m32r_store_preinc_predec_p,
2766 m32r_legitimate_address_p): New functions.
2767 * config/m32r/constraints.md (constraint "S"): Don't use
2768 STORE_PREINC_PREDEC_P.
2769 (constraint "U"): Don't use LOAD_POSTINC_P.
2771 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
2773 PR rtl-optimization/46178
2774 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
2775 compute ira_hard_regno_cover_class[].
2777 2011-02-18 Richard Guenther <rguenther@suse.de>
2780 * lto-streamer.h (lto_global_var_decls): Declare.
2781 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
2782 statics for global var processing.
2784 2011-02-18 Richard Guenther <rguenther@suse.de>
2786 PR tree-optimization/47737
2787 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
2788 edge dominance check.
2790 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2793 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
2794 avoid invalid rtx sharing.
2796 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
2798 * doc/cpp.texi (Obsolete Features): Add background on the
2799 origin of assertions.
2801 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2803 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
2805 * config/darwin.c (output_objc_section_asm_op): Added support for
2807 (is_objc_metadata): New.
2808 (darwin_objc2_section): New.
2809 (darwin_objc1_section): New.
2810 (machopic_select_section): Added support for ABI v1 and v2.
2811 (darwin_emit_objc_zeroed): New.
2812 (darwin_output_aligned_bss): Detect objc metadata and treat it
2814 (darwin_asm_output_aligned_decl_common): Same.
2815 (darwin_asm_output_aligned_decl_local): Same.
2816 * config/darwin-sections.def: Updated for ABI v1 and v2.
2817 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
2818 compiling Objective-C code for the NeXT runtime, default to using
2819 ABI version 0 for 32-bit, and version 2 for 64-bit.
2821 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2823 * common.opt (optimize_fast): New Variable.
2824 * opts.c (default_options_optimization): Use opts->x_optimize_fast
2825 instead of local variable ofast.
2827 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
2829 * doc/invoke.texi (fobjc-abi-version): Documented.
2830 (fobjc-nilcheck): Documented.
2831 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
2834 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2837 * common.opt (export-dynamic): New Driver option.
2838 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
2840 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2842 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
2844 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
2845 Jan Hubicka <jh@suse.cz>
2849 * cfgexpand.c (account_used_vars_for_block): Remove.
2850 (estimated_stack_frame_size): Use referenced vars.
2851 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
2852 that were referenced in the original function. Test src_fn
2853 rather than cfun. Drop redundant get_var_ann.
2854 (setup_one_parameter): Drop redundant get_var_ann.
2855 (declare_return_variable): Likewise.
2856 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
2857 (copy_arguments_for_versioning): Drop redundant get_var_ann.
2858 * ipa-inline.c (compute_inline_parameters): Do not compute
2859 disregard_inline_limits here.
2860 (compute_inlinable_for_current, pass_inlinable): New.
2861 (pass_inline_parameters): Require PROP_referenced_vars.
2862 * cgraphunit.c (cgraph_process_new_functions): Don't run
2863 compute_inline_parameters explicitly unless function is in SSA form.
2864 (cgraph_analyze_function): Set .disregard_inline_limits.
2865 * tree-sra.c (convert_callers): Compute inliner parameters
2866 only for functions already in SSA form.
2868 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2870 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
2871 -mlittle-endian-data.
2873 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2875 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
2876 -mno-fpu, not -fpu and -no-fpu.
2877 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
2878 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
2880 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
2883 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
2884 input reload with PLUS RTX.
2886 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2888 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
2889 of InverseVar(MDMX).
2891 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2893 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
2896 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2898 * config/mn10300/mn10300.opt (mno-crt0): New.
2900 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2902 * config/m68k/uclinux.opt (static-libc): New Driver option.
2904 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2906 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
2908 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2910 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
2911 %{muser-extend-enabled}.
2913 2011-02-16 Richard Guenther <rguenther@suse.de>
2915 PR tree-optimization/47738
2916 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
2917 the TODO from tree_predictive_commoning.
2919 2011-02-15 Jeff Law <law@redhat.com>
2922 2011-01-25 Jeff Law <law@redhat.com>
2924 PR rtl-optimization/37273
2925 * ira-costs.c (scan_one_insn): Detect constants living in memory and
2926 handle them like argument loads from stack slots. Do not double
2927 count memory for memory constants and argument loads from stack slots.
2929 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
2932 * combine.c (cant_combine_insn_p): Revert the last change.
2934 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
2937 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
2938 mode for vector constants. Remove code that checks for TImode.
2940 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
2944 * cgraph.h (compute_inline_parameters): Return void.
2945 * ipa-inline.c (compute_inline_parameters): Adjust.
2947 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
2951 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
2953 * cfgexpand.c (estimated_stack_frame_size): Likewise.
2954 * ipa-inline.c (compute_inline_parameters): Adjust.
2956 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
2960 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
2961 Adjust all users. Pass FN to...
2962 * tree-flow-inline.h (first_referenced_var): ... this. Add
2964 * ipa-struct-reorg.c: Adjust.
2965 * tree-dfa.c: Adjust.
2966 * tree-into-ssa.c: Adjust.
2967 * tree-sra.c: Adjust.
2968 * tree-ssa-alias.c: Adjust.
2969 * tree-ssa-live.c: Adjust.
2970 * tree-ssa.c: Adjust.
2971 * tree-ssanames.c: Adjust.
2972 * tree-tailcall.c: Adjust.
2974 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
2978 * tree-flow.h (referenced_var_lookup): Add fn parameter.
2980 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
2981 * tree-flow-inline.h: Adjust.
2982 * gimple-pretty-print.c: Adjust.
2983 * tree-into-ssa.c: Adjust.
2984 * tree-ssa.c: Adjust.
2985 * cfgexpand.c: Adjust.
2987 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
2989 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
2990 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2991 (EXTRA_CONSTRAINT): Delete.
2992 * config/iq2000/constraints.md: New file.
2993 * config/iq2000/iq2000.md: Include it.
2994 (define_insn ""): Delete.
2995 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
2996 unsupported constraint letters from patterns.
2997 (call_value, call_value_internal1): Likewise.
2998 (call_value_multiple_internal1): Likewise.
3000 2011-02-15 Nick Clifton <nickc@redhat.com>
3002 * config/mn10300/mn10300.c: Include tm-constrs.h.
3003 (struct liw_data): New data structure describing an LIW candidate
3005 (extract_bundle): Use struct liw_data. Allow small integer
3006 operands for some instructions.
3007 (check_liw_constraints): Use struct liw_data. Remove swapped
3008 parameter. Add comments describing the checks. Fix bug when
3009 assigning the source of liw1 to the source of liw2.
3010 (liw_candidate): Delete. Code moved into extract_bundle.
3011 (mn10300_bundle_liw): Use struct liw_data. Check constraints
3013 * config/mn10300/predicates.md (liw_operand): New predicate.
3014 Allows registers and small integer constants.
3015 * config/mn10300/constraints.md (O): New constraint. Accetps
3016 integers in the range -8 to +7 inclusive.
3017 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
3018 for moving a small integer into a register. Give this alternative
3020 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
3021 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
3022 using the J,K,L and M constraints,
3023 (liw): Remove SI mode on second operands to allow for HI and QI
3025 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
3028 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
3031 * combine.c (cant_combine_insn_p): Check zero/sign extended
3034 2011-02-15 Richard Guenther <rguenther@suse.de>
3036 PR tree-optimization/47743
3037 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
3038 for a non-type-compatible VN lookup bail out.
3040 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
3042 * config/fr30/constraints.md: New file.
3043 * config/fr30/fr30.md: Include it.
3044 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
3045 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3046 (EXTRA_CONSTRAINT): Delete.
3048 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
3050 * config/frv/constraints.md: New file.
3051 * config/frv/predicates.md: Include it.
3052 * config/frv/frv.c (reg_class_from_letter): Delete.
3053 (frv_option_override): Don't initialize it.
3054 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
3055 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
3056 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
3057 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
3058 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
3059 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3060 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
3061 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
3062 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
3063 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
3064 (REG_CLASS_FROM_CONSTRAINT): Delete.
3066 2011-02-15 Jakub Jelinek <jakub@redhat.com>
3069 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
3070 if frame size is 0 in a leaf function.
3072 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3075 * config/alpha/host-osf.c: New file.
3076 * config/alpha/x-osf: New file.
3077 * config.host (alpha*-dec-osf*): Use it.
3079 2011-02-14 Anatoly Sokolov <aesok@post.ru>
3081 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3082 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
3083 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
3084 (rx_mode_dependent_address_p): ...this. Make static. Change argument
3086 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3088 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
3090 * config/stormy16/constraints.md: New file.
3091 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
3092 Use satisfies_constraint_Q and satisfies_constraint_R.
3093 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
3095 (xstormy16_legitiamte_address_p): Declare.
3096 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
3097 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3098 (EXTRA_CONSTRAINT): Delete.
3099 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
3101 (xstormy16_extra_constraint_p): Delete.
3103 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
3105 PR tree-optimization/46494
3106 * loop-unroll.c (split_edge_and_insert): Adjust comment.
3107 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
3108 (pass_rtl_loop_done): Add TODO_verify_flow.
3109 * fwprop.c (pass_rtl_fwprop): Likewise.
3110 * modulo-sched.c (pass_sms): Likewise.
3111 * tree-ssa-dom.c (pass_dominator): Likewise.
3112 * tree-ssa-loop-ch.c (pass_ch): Likewise.
3113 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
3114 (pass_tree_loop_done): Likewise.
3115 * tree-ssa-pre.c (execute_pre): Likewise.
3116 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
3117 * tree-ssa-sink.c (pass_sink_code): Likewise.
3118 * tree-vrp.c (pass_vrp): Likewise.
3120 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
3122 * config/v850/constraints.md: New file.
3123 * config/v850/v850.md: Include it.
3124 * config/v850/predicates.md (reg_or_0_operand): Use
3125 satisfies_constraint_G.
3126 (special_symbolref_operand): Use satisfies_constraint_K.
3127 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
3128 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
3129 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
3130 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
3131 (EXTRA_CONSTRAINT): Delete.
3132 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
3133 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
3134 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
3136 2011-02-14 Anatoly Sokolov <aesok@post.ru>
3139 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
3142 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
3144 * config/mcore/constraints.md: New file.
3145 * config/mcore/mcore.md: Include it.
3146 * config/mcore/mcore.c (reg_class_from_letter): Delete.
3147 * config/mcore/mcore.h (reg_class_from_letter): Delete.
3148 (REG_CLASS_FROM_LETTER): Delete.
3149 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
3150 insn_const_int_ok_for_constraint.
3151 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
3152 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
3153 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3154 (EXTRA_CONSTRAINT): Delete.
3156 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3159 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
3160 (IS_SIGHANDLER): Define.
3161 (sparc64_is_sighandler): New function, split off from
3162 sparc64_fallback_frame_state.
3163 (sparc_is_sighandler): New function, split off from
3164 sparc_fallback_frame_state.
3165 (sparc64_fallback_frame_state): Merge with ...
3166 (sparc_fallback_frame_state): ... this into ...
3167 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
3168 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
3169 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
3170 stack instead of hardcoded offsets.
3172 2011-02-14 Andriy Gapon <avg@freebsd.org>
3175 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
3177 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3179 * configure: Regenerate.
3181 2011-02-12 Joseph Myers <joseph@codesourcery.com>
3184 * gcc.c (asm_options): Correct spec matching --target-help.
3186 2011-02-12 Martin Jambor <mjambor@suse.cz>
3188 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
3189 to gimple call error.
3191 2011-02-12 Mike Stump <mikestump@comcast.net>
3193 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
3194 comments in backslash regions.
3196 2011-02-12 Mike Stump <mikestump@comcast.net>
3197 Jakub Jelinek <jakub@redhat.com>
3198 Iain Sandoe <iains@gcc.gnu.org>
3201 * dwarf2out.c (output_cfa_loc): When required, apply the
3202 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
3203 (output_loc_sequence): Likewise.
3204 (output_loc_operands_raw): Likewise.
3205 (output_loc_sequence_raw): Likewise.
3206 (output_cfa_loc): Likewise.
3207 (output_loc_list): Suppress register number adjustment when
3208 calling output_loc_sequence()
3209 (output_die): Likewise.
3211 2011-02-12 Anatoly Sokolov <aesok@post.ru>
3213 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3215 * config/xtensa/xtensa.c (xtensa_register_move_cost,
3216 xtensa_memory_move_cost): New functions.
3217 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
3219 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
3222 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
3223 in the current directory.
3224 * configure: Rebuilt.
3226 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
3228 * config/darwin.c (darwin_override_options): Add a hunk missed
3229 from the commit of r168571. Trim comment line lengths and
3230 correct indents of the preceding block.
3232 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
3234 * gcc.c (driver_handle_option): Concatenate the argument to -F with
3237 2011-02-11 Joseph Myers <joseph@codesourcery.com>
3239 * common.opt (nostartfiles): New Driver option.
3241 2011-02-11 Xinliang David Li <davidxl@google.com>
3243 PR tree-optimization/47707
3244 * tree-chrec.c (convert_affine_scev): Keep type precision.
3246 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
3248 PR tree-optimization/47420
3249 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
3251 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3253 PR rtl-optimization/47614
3254 * rtl.h (check_for_inc_dec): Declare.
3255 * dse.c (check_for_inc_dec): Externalize...
3256 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
3257 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
3259 2011-02-11 Joseph Myers <joseph@codesourcery.com>
3262 * gcc.c (main): Do not compile inputs if there were errors in
3264 * opts-common.c (read_cmdline_option): Check for wrong language
3265 after other error checks.
3267 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
3269 * cgraph.c: Fix comment typos.
3270 * cgraph.h: Likewise.
3271 * cgraphunit.c: Likewise.
3272 * ipa-cp.c: Likewise.
3273 * ipa-inline.c: Likewise.
3274 * ipa-prop.c: Likewise.
3275 * ipa-pure-const.c: Likewise.
3276 * ipa-ref.c: Likewise.
3277 * ipa-reference.c: Likewise.
3279 2011-02-11 Jakub Jelinek <jakub@redhat.com>
3282 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
3284 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3287 * doc/sourcebuild.texi (Require Support): Document
3288 dg-require-ascii-locale.
3290 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
3292 * doc/lto.texi (Write summary): Fix missing parentheses.
3294 2011-02-10 DJ Delorie <dj@redhat.com>
3296 * config/m32c/m32c.c (m32c_option_override): Disable
3297 -fcombine-stack-adjustments until flag value tracking and compare
3298 optimization can be rewritten.
3300 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
3302 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
3304 (PROCESSOR_DEFAULT64): Likewise.
3306 2011-02-10 Richard Henderson <rth@redhat.com>
3308 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
3309 change from 2011-02-03.
3310 * config/rx/rx.c (flags_from_code): Likewise.
3311 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
3312 is valid, n/pz otherwise.
3313 (rx_select_cc_mode): Return CCmode if Y is not zero.
3315 2011-02-10 Richard Guenther <rguenther@suse.de>
3317 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
3319 2011-02-10 Richard Guenther <rguenther@suse.de>
3321 PR tree-optimization/47677
3322 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
3324 2011-02-10 Jakub Jelinek <jakub@redhat.com>
3327 * combine.c (make_compound_operation): Only change shifts into
3328 multiplication for SCALAR_INT_MODE_P.
3330 2011-02-10 Jie Zhang <jie@codesourcery.com>
3334 2011-02-05 Jie Zhang <jie@codesourcery.com>
3336 * web.c (entry_register): Don't clobber the number of the
3337 first uninitialized reference in used[].
3339 2011-02-09 Richard Guenther <rguenther@suse.de>
3341 PR tree-optimization/47664
3342 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
3345 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
3349 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
3351 (PROCESSOR_DEFAULT64): Same.
3352 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
3354 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3356 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
3358 2011-02-09 Martin Jambor <mjambor@suse.cz>
3361 * tree-sra.c (struct access): New flags grp_scalar_read and
3362 grp_scalar_write. Changed description of assignment read and write
3364 (dump_access): Dump new flags, reorder all of them.
3365 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
3366 to detect multiple scalar reads.
3367 (analyze_access_subtree): Use the new scalar read write flags instead
3368 of the old flags. Adjusted comments.
3370 2011-02-08 DJ Delorie <dj@redhat.com>
3373 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
3376 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3378 * config/m68k/uclinux.opt: New.
3379 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
3381 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3383 * config/cris/elf.opt (sim): New Driver option.
3385 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3387 * config/xtensa/elf.opt: New.
3388 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
3390 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3392 * config/vax/elf.opt: New.
3393 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
3395 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3397 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
3399 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3401 * config/gnu-user.opt: New.
3402 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
3403 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
3404 *-*-uclinux*): Use gnu-user.opt.
3406 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
3408 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
3409 * config/i386/gnu.h (CPP_SPEC): Likewise.
3411 2011-02-08 Ian Lance Taylor <iant@google.com>
3413 * common.opt (fcx-limited-range): Add SetByCombined flag.
3414 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
3415 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
3416 (fassociative-math, freciprocal-math): Likewise.
3417 (funsafe-math-optimizations): Likewise.
3418 * opth-gen.awk: Handle SetByCombined.
3419 * optc-gen.awk: Likewise.
3420 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
3421 (set_unsafe_math_optimizations_flags): Likewise.
3422 * doc/options.texi (Option properties): Document SetByCombined.
3424 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3426 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
3427 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
3428 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
3429 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
3430 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
3432 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
3434 PR tree-optimization/46834
3435 PR tree-optimization/46994
3436 PR tree-optimization/46995
3437 * graphite-sese-to-poly.c (used_outside_reduction): New.
3438 (detect_commutative_reduction): Call used_outside_reduction.
3439 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
3440 translate_scalar_reduction_to_array only when at least one
3441 loop-phi/close-phi tuple has been detected.
3443 2011-02-08 Richard Guenther <rguenther@suse.de>
3446 * tree-vect-generic.c (expand_vector_operations_1): Update
3448 (expand_vector_operations): ... not here. Cleanup EH info
3449 and the CFG if required.
3451 2011-02-08 Richard Guenther <rguenther@suse.de>
3453 PR tree-optimization/47641
3454 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
3455 require type compatibility.
3457 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3459 * gimple-low.c (lower_function_body): Don't remove the location of
3460 the return statement here.
3461 (lower_gimple_return): Do it here instead but only if the return
3462 statement is actually used twice.
3464 2011-02-08 Richard Guenther <rguenther@suse.de>
3466 PR tree-optimization/47632
3467 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
3468 unused up_to_stmt parameter, return whether cfg-cleanup is
3469 necessary, remove EH info properly.
3470 (forward_propagate_into_gimple_cond): Adjust caller.
3471 (forward_propagate_into_cond): Likewise.
3472 (forward_propagate_comparison): Likewise.
3473 (tree_ssa_forward_propagate_single_use_vars): Make
3474 forward_propagate_comparison case similar to the two others.
3476 2011-02-08 Nick Clifton <nickc@redhat.com>
3478 * config/mn10300/mn10300.opt (mliw): New command line option.
3479 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
3480 (liw_bundling): New automaton.
3481 (liw): New attribute.
3482 (liw_op): New attribute.
3483 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
3484 (movsi_internal): Add LIW attributes.
3488 (addsi3): Separate register and immediate alternatives.
3493 (lshrsi3): Likewise.
3494 (ashrsi3): Likewise.
3496 * config/mn10300/mn10300.c (liw_op_names): New
3497 (mn10300_print_operand): Handle 'W' operand descriptor.
3498 (extract_bundle): New function.
3499 (check_liw_constraints): New function.
3500 (liw_candidate): New function.
3501 (mn10300_bundle_liw): New function.
3502 (mn10300_reorg): New function.
3503 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3504 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
3505 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
3506 __LIW__ or __NO_LIW__.
3507 * doc/invoke.texi: Describe the -mliw command line option.
3509 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3511 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
3512 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3513 pthread_mutex_unlock): Remove.
3514 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
3515 * config/pa/t-pa64: Likewise.
3516 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
3517 shared libc if not linking against libpthread.
3518 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3520 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
3523 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
3524 on 10.6 and later to ensure that we always use the unwinder from
3525 the system. Only add -no_compact_unwind when tarteting darwin
3528 2011-02-07 Steve Ellcey <sje@cup.hp.com>
3531 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
3532 (vec_interleave_lowv2sf): Ditto.
3533 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
3534 (vec_extract_oddv2sf): Ditto.
3536 2011-02-07 Mike Stump <mikestump@comcast.net>
3539 Add __ieee_divdc3 entry point.
3540 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
3542 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
3543 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
3544 * config/darwin.c (darwin_rename_builtins): Add.
3545 * config/darwin-protos.h (darwin_rename_builtins): Add.
3547 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
3550 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
3553 2011-02-07 Mike Stump <mikestump@comcast.net>
3555 * config/darwin.opt (mmacosx-version-min): Update default OS version.
3557 2011-02-07 Denis Chertykov <chertykov@gmail.com>
3560 * config/avr/libgcc.S (exit): Move .endfunc
3562 2011-02-07 Richard Guenther <rguenther@suse.de>
3564 PR tree-optimization/47615
3565 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
3566 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
3567 (run_scc_vn): Initialize it.
3568 (visit_reference_op_load): Use it.
3569 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
3571 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3573 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
3574 DImode trapping arithmetic libfuncs.
3576 2011-02-07 Richard Guenther <rguenther@suse.de>
3578 PR tree-optimization/47621
3579 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
3581 (execute_update_addresses_taken): ... here. Make it more
3582 conservative in what we accept.
3584 2011-02-06 Joseph Myers <joseph@codesourcery.com>
3586 * config/sparc/freebsd.h (ASM_SPEC): Define.
3587 * config/sparc/vxworks.h (ASM_SPEC): Define.
3589 2011-02-06 Joseph Myers <joseph@codesourcery.com>
3591 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
3593 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
3595 * doc/invoke.texi: Remove reference to compiler internals from
3598 * reg-notes.def: Remove REG_VALUE_PROFILE.
3599 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
3601 2011-02-05 Jakub Jelinek <jakub@redhat.com>
3604 * varasm.c (default_section_type_flags): If decl is NULL,
3605 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
3607 2011-02-05 Jie Zhang <jie@codesourcery.com>
3610 * web.c (entry_register): Don't clobber the number of the
3611 first uninitialized reference in used[].
3613 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
3615 PR tree-optimization/46194
3616 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
3617 (build_classic_dist_vector_1): Do not represent classic distance
3618 vectors when the access functions are variating in different loops.
3620 2011-02-04 Joseph Myers <joseph@codesourcery.com>
3622 * config/mips/iris6.opt: New.
3623 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
3625 2011-02-04 Richard Henderson <rth@redhat.com>
3626 Steve Ellcey <sje@cup.hp.com>
3629 * config/ia64/predicates.md (mux1_brcst_element): New.
3630 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
3631 * config/ia64/ia64.c (ia64_unpack_assemble): New.
3632 (ia64_unpack_sign): New.
3633 (ia64_expand_unpack): Rewrite using new routines.
3634 (ia64_expand_widen_sum): Ditto.
3635 (ia64_expand_dot_prod_v8qi): Ditto.
3636 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
3637 routines, add endian check.
3638 (pmpy2_even): Rename from pmpy2_r, add endian check.
3639 (pmpy2_odd): Rename from pmpy2_l, add endian check.
3640 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
3641 (vec_widen_smult_hi_v4hi): Ditto.
3642 (vec_widen_umult_lo_v4hi): Ditto.
3643 (vec_widen_umult_hi_v4hi): Ditto.
3644 (mulv2si3): Change endian checks.
3645 (sdot_prodv4hi): Rewrite with new calls.
3646 (udot_prodv4hi): New.
3647 (vec_pack_ssat_v4hi): Add endian check.
3648 (vec_pack_usat_v4hi): Ditto.
3649 (vec_pack_ssat_v2si): Ditto.
3650 (max1_even): Rename from max1_r, add endian check.
3651 (max1_odd): Rename from max1_l, add endian check.
3652 (*mux1_rev): Format change.
3654 (*mux1_shuf): Ditto.
3656 (*mux1_brcst_v8qi): Use new predicate.
3657 (vec_extract_evenv8qi): Remove endian check.
3658 (vec_extract_oddv8qi): Ditto.
3659 (vec_interleave_lowv4hi): Format change.
3660 (vec_interleave_highv4hi): Ditto.
3661 (mix2_even): Rename from mix2_r, add endian check.
3662 (mix2_odd): Rename from mux2_l, add endian check.
3663 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
3664 (vec_extract_evenodd_helper): Format change.
3665 (vec_extract_evenv4hi): Remove endian check.
3666 (vec_extract_oddv4hi): Remove endian check.
3667 (vec_interleave_lowv2si): Format change.
3668 (vec_interleave_highv2si): Format change.
3669 (vec_initv2si): Remove endian check.
3670 (vecinit_v2si): Add endian check.
3671 (reduc_splus_v2sf): Add endian check.
3672 (reduc_smax_v2sf): Ditto.
3673 (reduc_smin_v2sf): Ditto.
3674 (vec_initv2sf): Remove endian check.
3675 (fpack): Add endian check.
3676 (fswap): Add endian check.
3677 (vec_interleave_highv2sf): Add endian check.
3678 (vec_interleave_lowv2sf): Add endian check.
3679 (fmix_lr): Add endian check.
3680 (vec_setv2sf): Format change.
3681 (*vec_extractv2sf_0_be): Use shift to extract operand.
3682 (*vec_extractv2sf_1_be): New.
3683 (vec_pack_trunc_v4hi): Add endian check.
3684 (vec_pack_trunc_v2si): Format change.
3686 2011-02-04 Jakub Jelinek <jakub@redhat.com>
3689 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
3690 do bb, locus and block comparison and disallow loads if it is not set.
3691 (stmt_is_replaceable_p): New function.
3692 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
3694 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
3695 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
3697 * tree-flow.h (stmt_is_replaceable_p): New prototype.
3699 2011-02-04 Joseph Myers <joseph@codesourcery.com>
3701 * config/rs6000/xilinx.opt: New.
3702 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
3704 2011-02-04 Joseph Myers <joseph@codesourcery.com>
3706 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
3708 2011-02-03 Anatoly Sokolov <aesok@post.ru>
3710 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
3711 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3712 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
3713 secondary_reload_info, xtensa_secondary_reload): Remove.
3714 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
3715 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3716 (xtensa_preferred_reload_class): Make static. Change return and
3717 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
3718 Use CONST_DOUBLE_P predicate.
3719 (xtensa_preferred_output_reload_class): New function.
3720 (xtensa_secondary_reload): Make static.
3722 2011-02-03 Joseph Myers <joseph@codesourcery.com>
3724 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
3725 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
3726 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
3728 2011-02-03 Jakub Jelinek <jakub@redhat.com>
3731 * output.h (SECTION_RELRO): Define.
3732 (SECTION_MACH_DEP): Adjust.
3733 (get_variable_section): New prototype.
3734 * varpool.c (varpool_finalize_named_section_flags): New function.
3735 (varpool_assemble_pending_decls): Call it.
3736 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
3737 * cgraphunit.c (cgraph_output_in_order): Call
3738 varpool_finalize_named_section_flags.
3739 * varasm.c (get_section): Allow section flags conflicts between
3740 relro and read-only sections if the section hasn't been declared yet.
3741 Set SECTION_OVERRIDE after diagnosing section type conflict.
3742 (get_variable_section): No longer static.
3743 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
3744 readonly sections that need relocations.
3745 (decl_readonly_section_1): New function.
3746 (decl_readonly_section): Use it.
3749 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
3750 Steve Ellcey <sje@cup.hp.com>
3753 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3754 if section attribute used.
3756 2011-02-03 Jakub Jelinek <jakub@redhat.com>
3758 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
3759 * config/darwin.c (SECTION_NO_ANCHOR): Define.
3760 (darwin_init_sections): Remove assertion.
3762 2011-02-03 Nick Clifton <nickc@redhat.com>
3764 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
3766 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
3767 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
3768 instead of "n" and "pz".
3769 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
3772 2011-02-03 Jakub Jelinek <jakub@redhat.com>
3775 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
3776 fma, expand FMA_EXPR as fma{,f,l} call.
3779 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
3780 copy them into a unsigned char variable and pass address of it to
3781 lto_output_data_stream.
3784 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
3785 around backend_init_target and lang_dependent_init_target calls.
3786 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
3787 (verify_cgraph_node): Don't call set_cfun here. Use
3788 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
3789 Set error_found for incorrectly represented calls to thunks.
3791 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
3794 PR rtl-optimization/43494
3795 * rtl.h (for_each_inc_dec_fn): New type.
3796 (for_each_inc_dec): Declare.
3797 * rtlanal.c (struct for_each_inc_dec_ops): New type.
3798 (for_each_inc_dec_find_inc_dec): New fn.
3799 (for_each_inc_dec_find_mem): New fn.
3800 (for_each_inc_dec): New fn.
3801 * dse.c (struct insn_size): Remove.
3802 (replace_inc_dec, replace_inc_dec_mem): Remove.
3803 (emit_inc_dec_insn_before): New fn.
3804 (check_for_inc_dec): Use it, along with for_each_inc_dec.
3805 (canon_address): Pass mem modes to cselib_lookup.
3806 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
3807 (cselib_lookup_from_insn): Likewise.
3808 (cselib_subst_to_values): Likewise.
3809 * cselib.c (find_slot_memmode): New var.
3810 (cselib_find_slot): New fn. Use it instead of
3811 htab_find_slot_with_hash everywhere.
3812 (entry_and_rtx_equal_p): Use find_slot_memmode.
3813 (autoinc_split): New fn.
3814 (rtx_equal_for_cselib_p): Rename and implement in terms of...
3815 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
3816 Deal with autoinc. Special-case recursion into MEMs.
3817 (cselib_hash_rtx): Likewise.
3818 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
3819 address and MEM modes.
3820 (cselib_subst_to_values): Add memmode, pass it on.
3822 (cselib_lookup): Add memmode argument, pass it on.
3823 (cselib_lookup_from_insn): Add memmode.
3824 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
3825 (struct cselib_record_autoinc_data): New.
3826 (cselib_record_autoinc_cb): New fn.
3827 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
3828 mode to cselib_lookup. Reset autoinced REGs here instead of...
3829 (cselib_process_insn): ... here.
3830 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
3832 (add_uses): Likewise, also to cselib_subst_to_values.
3833 (add_stores): Likewise.
3834 * sched-deps.c (add_insn_mem_dependence): Pass mode to
3835 cselib_subst_to_values.
3836 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
3837 * gcse.c (do_local_cprop): Adjusted.
3838 * postreload.c (reload_cse_simplify_set): Adjusted.
3839 (reload_cse_simplify_operands): Adjusted.
3840 * sel-sched-dump (debug_mem_addr_value): Pass mode.
3842 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
3844 PR tree-optimization/45122
3845 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
3846 unsafe assumptions when there's more than one loop exit.
3848 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3851 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3852 Document using vector double with the load/store builtins, and
3853 that the load/store builtins always use Altivec instructions.
3855 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
3856 to use altivec memory instructions, even on VSX.
3857 (vector_altivec_store_<mode>): Ditto.
3859 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
3862 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3863 V2DF, V2DI support to load/store overloaded builtins.
3865 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
3866 altivec load/store builtins for V2DF/V2DI types.
3868 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3869 set avoid indexed addresses on power6 if -maltivec.
3870 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
3871 vector_altivec_load/vector_altivec_store builtins.
3872 (altivec_expand_st_builtin): Ditto.
3873 (altivec_expand_builtin): Add VSX memory builtins.
3874 (rs6000_init_builtins): Add V2DI types to internal types.
3875 (altivec_init_builtins): Add support for V2DF/V2DI altivec
3876 load/store builtins.
3877 (rs6000_address_for_altivec): Insure memory address is appropriate
3880 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
3881 vec_vsx_ld and vec_vsx_st.
3882 (vsx_store_<mode>): Ditto.
3884 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
3885 variables to hold long long types for VSX vector memory builtins.
3886 (RS6000_BTI_unsigned_long_long): Ditto.
3887 (long_long_integer_type_internal_node): Ditti.
3888 (long_long_unsigned_type_internal_node): Ditti.
3890 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
3891 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
3892 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
3894 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
3896 (vec_vsx_st): Ditto.
3898 2011-02-02 Joseph Myers <joseph@codesourcery.com>
3900 * config/pa/pa-hpux10.opt: New.
3901 * config/hpux11.opt (pthread): New Driver option.
3902 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
3903 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
3905 2011-02-02 Joseph Myers <joseph@codesourcery.com>
3907 * config/ia64/vms.opt: New.
3908 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
3910 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
3913 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
3914 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
3915 generator functions.
3916 (vsx_floatuns<VSi><mode>2): Ditto.
3917 (vsx_fix_trunc<mode><VSi>2): Ditto.
3918 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
3920 2011-02-02 Joseph Myers <joseph@codesourcery.com>
3922 * config/i386/djgpp.opt (posix): New Driver option.
3924 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
3926 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
3927 Move to the unsupported targets list.
3929 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
3931 PR rtl-optimization/47525
3932 * df-scan.c: Update copyright years.
3933 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
3934 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
3936 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3938 * config/i386/sysv4.h (TARGET_VERSION): Remove.
3939 (SUBTARGET_RETURN_IN_MEMORY): Remove.
3940 (ASM_OUTPUT_ASCII): Remove.
3941 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
3943 2011-02-02 Jeff Law <law@redhat.com>
3946 * reload.c (find_reloads_address): Handle reg+d address where both
3947 components are invalid by reloading the entire address.
3949 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
3950 Richard Guenther <rguenther@suse.de>
3952 PR tree-optimization/40979
3954 * passes.c (init_optimization_passes): After LIM call copy_prop
3955 and DCE to clean up.
3956 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
3958 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
3960 PR tree-optimization/47576
3961 PR tree-optimization/47555
3962 * doc/invoke.texi (scev-max-expr-complexity): Documented.
3963 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
3964 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
3965 * tree-scalar-evolution.c (follow_ssa_edge): Use
3966 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
3968 2011-02-02 Richard Guenther <rguenther@suse.de>
3970 PR tree-optimization/47566
3971 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
3973 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
3977 * tree-inline.c (declare_return_variable): Remove unused caller
3982 * tree-flow-inline.h (clear_is_used, is_used_p): New.
3983 * cfgexpand.c (account_used_vars_for_block): Use them.
3984 * tree-nrv.c (tree_nrv): Likewise.
3985 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
3986 (dump_scope_block): Likewise.
3987 (remove_unused_locals): Likewise.
3991 * tree-inline.c (declare_return_variable): Add result decl to
3992 local decls only once.
3993 * gimple-low.c (record_vars_into): Mark newly-created variables
3996 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
4002 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
4004 (no_real_insns_p, schedule_block, set_priorities): Drop special
4005 treatment of boundary debug insns.
4006 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
4007 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
4008 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
4009 (BOUNDARY_DEBUG_INSN_P): Likewise.
4010 (SCHEDULE_DEBUG_INSN_P): Likewise.
4011 * sched-rgn.c (init_ready_list): Drop special treatment of
4012 boundary debug insns.
4013 * final.c (rest_of_clean_state): Clear notes' BB.
4015 2011-02-01 Joseph Myers <joseph@codesourcery.com>
4017 * config/openbsd.opt (assert=): New Driver option.
4019 2011-02-01 Joseph Myers <joseph@codesourcery.com>
4021 * config/i386/nto.opt: New.
4022 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
4024 2011-02-01 Joseph Myers <joseph@codesourcery.com>
4026 * config/i386/netware.opt: New.
4027 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
4029 2011-02-01 Joseph Myers <joseph@codesourcery.com>
4031 * config/interix.opt (posix): New Driver option.
4033 2011-02-01 DJ Delorie <dj@redhat.com>
4035 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
4037 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
4040 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
4042 PR tree-optimization/47561
4043 * toplev.c (process_options): Print the Graphite flags. Add
4044 flag_loop_flatten to the list of options requiring Graphite.
4046 2011-02-01 Joseph Myers <joseph@codesourcery.com>
4048 * config/i386/cygming.opt (posix): New Driver option.
4050 2011-02-01 Joseph Myers <joseph@codesourcery.com>
4052 * config/arm/vxworks.opt: New.
4053 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
4055 2011-02-01 Joseph Myers <joseph@codesourcery.com>
4057 * config/alpha/elf.opt: New.
4058 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
4059 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
4061 2011-02-01 Richard Guenther <rguenther@suse.de>
4063 PR tree-optimization/47559
4064 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
4065 store-motion on references that can throw.
4067 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
4069 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
4070 * tree-pass.h (TDF_CSELIB): New macro.
4071 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
4072 cselib_lookup): Check for it rather than for TDF_DETAILS.
4074 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
4077 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
4080 * opts.c (finish_options): Don't add x_aux_base_name if it is
4083 2011-02-01 Richard Guenther <rguenther@suse.de>
4085 PR tree-optimization/47555
4087 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
4089 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
4091 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
4094 * config/lm32/t-lm32: Add multilib for all CPU options.
4096 2011-02-01 Richard Guenther <rguenther@suse.de>
4098 PR tree-optimization/47541
4099 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
4100 sure to have a field at offset zero.
4102 2011-01-31 Joseph Myers <joseph@codesourcery.com>
4104 * config/arc/arc.opt (EB, EL): New Driver options.
4106 2011-01-31 Joseph Myers <joseph@codesourcery.com>
4108 * config/alpha/osf5.opt: New.
4109 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
4111 2011-01-31 Joseph Myers <joseph@codesourcery.com>
4113 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
4115 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
4117 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
4119 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
4120 is an alias of -floop-interchange and that it requires the
4121 Graphite infrastructure.
4122 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
4123 flag_loop_interchange based on the value of flag_tree_loop_linear.
4125 2011-01-31 Jakub Jelinek <jakub@redhat.com>
4126 Richard Guenther <rguenther@suse.de>
4128 PR tree-optimization/47538
4129 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
4130 type instead of r1type, except for comparisons. For right
4131 shifts and comparisons punt if there are mismatches in
4132 sizetype vs. non-sizetype types.
4134 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4136 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4139 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4141 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
4143 * configure: Regenerate.
4145 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4147 * configure.ac (gcc_cv_ld_static_option): Define.
4148 (gcc_cv_ld_dynamic_option): Define.
4149 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
4151 (HAVE_LD_STATIC_DYNAMIC): Update message.
4152 (LD_STATIC_OPTION): Define.
4153 (LD_DYNAMIC_OPTION): Define.
4154 * configure: Regenerate.
4155 * config.in: Regenerate.
4156 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
4157 HAVE_LD_STATIC_DYNAMIC]: Use them.
4159 2011-01-31 Nick Clifton <nickc@redhat.com>
4161 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
4162 registers inside interrupt handlers if the handler is not a leaf
4165 2011-01-31 Nick Clifton <nickc@redhat.com>
4167 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
4168 reg_renumber returning an INVALID_REGNUM.
4170 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
4173 * doc/install.texi: Document host options discarded when cross
4174 configuring target libraries.
4176 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
4179 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
4182 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
4184 (no_real_insns_p, schedule_block, set_priorities): Drop special
4185 treatment of boundary debug insns.
4186 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
4187 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
4188 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
4189 (BOUNDARY_DEBUG_INSN_P): Likewise.
4190 (SCHEDULE_DEBUG_INSN_P): Likewise.
4191 * sched-rgn.c (init_ready_list): Drop special treatment of
4192 boundary debug insns.
4193 * final.c (rest_of_clean-state): Clear notes' BB.
4195 2011-01-31 Alan Modra <amodra@gmail.com>
4197 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
4198 toc relative expressions as we do in print_operand_address.
4200 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
4202 * doc/extend.texi: Follow spelling conventions.
4203 * doc/invoke.texi: Fix a typo.
4205 2011-01-30 Joseph Myers <joseph@codesourcery.com>
4207 * config/hpux11.opt: New.
4208 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
4209 ia64*-*-hpux*): Use hpux11.opt.
4211 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
4213 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
4216 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
4218 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
4221 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
4223 * doc/install.texi (Binaries): Remove outdated reference for
4224 Motorola 68HC11/68HC12 downloads.
4226 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
4228 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
4231 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4234 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
4237 2011-01-28 Ahmad Sharif <asharif@google.com>
4239 * value-prof.c (check_counter): Corrected error message.
4241 2011-01-29 Jie Zhang <jie@codesourcery.com>
4243 * config/arm/arm.c (arm_legitimize_reload_address): New.
4244 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4245 arm_legitimize_reload_address.
4246 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
4248 2011-01-28 Ian Lance Taylor <iant@google.com>
4250 * godump.c (go_define): Ignore macros whose definitions include
4251 two adjacent operands.
4253 2011-01-28 Jakub Jelinek <jakub@redhat.com>
4256 * varasm.c (force_const_mem): Store copy of x in desc->constant
4257 instead of x itself.
4258 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
4259 itself into REG_EQUAL note.
4261 2011-01-28 Joseph Myers <joseph@codesourcery.com>
4263 * config/freebsd.opt (posix, rdynamic): New Driver options.
4265 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4267 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
4269 * configure: Regenerate.
4271 2011-01-27 Joseph Myers <joseph@codesourcery.com>
4273 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
4274 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
4276 2011-01-27 Anatoly Sokolov <aesok@post.ru>
4278 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
4279 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
4280 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4281 (s390_preferred_reload_class): Make static. Change return and
4282 'rclass' argument type to reg_class_t.
4284 2011-01-27 Jan Hubicka <jh@suse.cz>
4287 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
4288 (process_function_and_variable_attributes): Check defined weakrefs.
4290 2011-01-27 Martin Jambor <mjambor@suse.cz>
4292 PR tree-optimization/47228
4293 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
4294 build_ref_for_offset.
4296 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4298 * config/spu/spu-elf.h (ASM_SPEC): Remove.
4300 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
4302 PR rtl-optimization/46856
4303 * postreload.c (reload_combine_recognize_const_pattern): Do not
4304 separate cc0 setter and user on cc0 targets.
4306 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
4309 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
4310 passed a VOID_TYPE expression, immediately emit an error and
4311 return error_mark_node.
4313 2011-01-26 Jeff Law <law@redhat.com>
4315 PR rtl-optimization/47464
4316 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
4317 rather than may_trap_p as needed.
4319 2011-01-26 DJ Delorie <dj@redhat.com>
4321 PR rtl-optimization/46878
4322 * combine.c (insn_a_feeds_b): Check for the implicit cc0
4323 setter/user dependency as well.
4325 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
4327 PR rtl-optimization/44469
4328 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
4329 after removing trivially dead basic blocks.
4331 2011-01-26 Joseph Myers <joseph@codesourcery.com>
4333 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
4334 * config/frv/frv.h (LINK_SPEC): Likewise.
4335 * config/i386/netware.h (LINK_SPEC): Likewise.
4336 * config/m68k/linux.h (ASM_SPEC): Likewise.
4337 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
4338 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
4339 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4340 * config/sparc/linux.h (ASM_SPEC): Likewise.
4341 * config/sparc/linux64.h (ASM_SPEC): Likewise.
4342 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4344 2011-01-26 Joseph Myers <joseph@codesourcery.com>
4346 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
4347 * config/frv/frv.h (ASM_SPEC): Likewise.
4348 * config/m68k/linux.h (ASM_SPEC): Likewise.
4349 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
4350 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
4351 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4352 * config/sparc/linux.h (ASM_SPEC): Likewise.
4353 * config/sparc/linux64.h (ASM_SPEC): Likewise.
4354 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4356 2011-01-26 Joseph Myers <joseph@codesourcery.com>
4358 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
4359 * config/frv/frv.h (LINK_SPEC): Likewise.
4360 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
4362 2011-01-26 Joseph Myers <joseph@codesourcery.com>
4364 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
4365 * config/frv/frv.h (ASM_SPEC): Likewise.
4366 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
4367 * config/m68k/linux.h (ASM_SPEC): Likewise.
4368 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
4369 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
4370 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4371 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
4372 * config/sparc/linux.h (ASM_SPEC): Likewise.
4373 * config/sparc/linux64.h (ASM_SPEC): Likewise.
4374 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4375 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
4377 2011-01-26 Steve Ellcey <sje@cup.hp.com>
4380 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
4382 (vec_extract_evenodd_help): Ditto.
4383 (vec_extract_evenv4hi): Ditto.
4384 (vec_extract_oddv4hi): Ditto.
4385 (vec_interleave_lowv2si): Ditto.
4386 (vec_interleave_highv2si): Ditto.
4387 (vec_extract_evenv2si): Ditto.
4388 (vec_extract_oddv2si: Ditto.
4389 (vec_pack_trunc_v2si): Ditto.
4391 2011-01-22 Jan Hubicka <jh@suse.cz>
4394 * cgraph.h (cgraph_local_info): New field can_change_signature.
4395 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
4396 signature can change.
4397 (ipcp_estimate_growth): Call sequence simplify only if calle signature
4399 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
4400 (cgraph_function_versioning): We can not change signature of functions
4401 that don't allow that.
4402 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
4403 (lto_input_node): Likewise.
4404 * ipa-inline.c (compute_inline_parameters): Compute
4405 local.can_change_signature.
4406 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
4407 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
4408 functions that can not change signature.
4409 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
4410 init_cumulative_args): Do not use local calling conventions
4411 for functions that can not change signature.
4413 2011-01-22 Jan Hubicka <jh@suse.cz>
4415 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
4417 2011-01-26 Richard Guenther <rguenther@suse.de>
4419 PR tree-optimization/47190
4420 * cgraphunit.c (process_common_attributes): New function.
4421 (process_function_and_variable_attributes): Use it.
4423 2011-01-26 Richard Guenther <rguenther@suse.de>
4426 * cgraphbuild.c (record_eh_tables): Record reference to personality
4429 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
4432 * sel-sched.c (moveup_expr): Don't let debug insns prevent
4433 non-debug insns from moving up.
4435 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4438 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
4439 t-dlldir{,-x} fragment for build and add it to tmake_file.
4440 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
4441 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
4442 * config/i386/t-dlldir: New file.
4443 (SHLIB_DLLDIR): Define.
4444 * config/i386/t-dlldir-x: New file.
4445 (SHLIB_DLLDIR): Define.
4446 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
4447 (SHLIB_INSTALL): Use it.
4449 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
4452 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
4453 lower bound of the allowed Thumb-2 coprocessor load/store
4454 index range to -256. Add explaining comment.
4456 2011-01-25 Ian Lance Taylor <iant@google.com>
4458 * godump.c (go_define): Improve lexing of macro expansion to only
4459 accept expressions which match Go spec.
4461 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4464 * tree.c (handle_dll_attribute): Handle it.
4465 * doc/extend.texi (@item dllexport): Mention it.
4466 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
4468 2011-01-25 Ian Lance Taylor <iant@google.com>
4470 PR tree-optimization/26854
4471 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
4472 (decl_jump_unsafe): Move higher in file, with no other change.
4473 (bind): Set has_jump_unsafe_decl if appropriate.
4474 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
4475 (check_earlier_gotos): Likewise.
4476 (c_check_switch_jump_warnings): Likewise.
4478 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
4480 * doc/invoke.texi (Warning Options): Add missing hyphen.
4481 (-fprofile-dir): Minor grammatical fixes.
4482 (-fbranch-probabilities): Likewise.
4484 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
4488 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
4490 (no_real_insns_p, schedule_block, set_priorities): Drop special
4491 treatment of boundary debug insns.
4492 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
4493 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
4494 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
4495 (BOUNDARY_DEBUG_INSN_P): Likewise.
4496 (SCHEDULE_DEBUG_INSN_P): Likewise.
4497 * sched-rgn.c (init_ready_list): Drop special treatment of
4498 boundary debug insns.
4499 * final.c (rest_of_clean-state): Clear notes' BB.
4501 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4503 * Makefile.in (LAMBDA_H): Removed.
4504 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
4505 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
4506 lambda-trans.o, and tree-loop-linear.o.
4507 (lto-symtab.o): Remove dependence on LAMBDA_H.
4508 (tree-loop-linear.o): Remove rule.
4509 (lambda-mat.o): Same.
4510 (lambda-trans.o): Same.
4511 (lambda-code.o): Same.
4512 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
4513 (tree-vect-slp.o): Same.
4514 * hwint.h (gcd): Moved here.
4515 (least_common_multiple): Same.
4516 * lambda-code.c: Removed.
4517 * lambda-mat.c: Removed.
4518 * lambda-trans.c: Removed.
4519 * lambda.h: Removed.
4520 * tree-loop-linear.c: Removed.
4521 * lto-symtab.c: Do not include lambda.h.
4522 * omega.c (gcd): Removed.
4523 * passes.c (init_optimization_passes): Remove pass_linear_transform.
4524 * tree-data-ref.c (print_lambda_vector): Moved here.
4525 (lambda_vector_copy): Same.
4526 (lambda_matrix_copy): Same.
4527 (lambda_matrix_id): Same.
4528 (lambda_vector_first_nz): Same.
4529 (lambda_matrix_row_add): Same.
4530 (lambda_matrix_row_exchange): Same.
4531 (lambda_vector_mult_const): Same.
4532 (lambda_vector_negate): Same.
4533 (lambda_matrix_row_negate): Same.
4534 (lambda_vector_equal): Same.
4535 (lambda_matrix_right_hermite): Same.
4536 * tree-data-ref.h: Do not include lambda.h.
4537 (lambda_vector): Moved here.
4538 (lambda_matrix): Same.
4539 (dependence_level): Same.
4540 (lambda_transform_legal_p): Removed declaration.
4541 (lambda_collect_parameters): Same.
4542 (lambda_compute_access_matrices): Same.
4543 (lambda_vector_gcd): Same.
4544 (lambda_vector_new): Same.
4545 (lambda_vector_clear): Same.
4546 (lambda_vector_lexico_pos): Same.
4547 (lambda_vector_zerop): Same.
4548 (lambda_matrix_new): Same.
4549 * tree-flow.h (least_common_multiple): Removed declaration.
4550 * tree-parloops.c (lambda_trans_matrix): Moved here.
4552 (LTM_ROWSIZE): Same.
4553 (LTM_COLSIZE): Same.
4554 (LTM_DENOMINATOR): Same.
4555 (lambda_trans_matrix_new): Same.
4556 (lambda_matrix_vector_mult): Same.
4557 (lambda_transform_legal_p): Same.
4558 * tree-pass.h (pass_linear_transform): Removed declaration.
4559 * tree-ssa-loop.c (tree_linear_transform): Removed.
4560 (gate_tree_linear_transform): Removed.
4561 (pass_linear_transform): Removed.
4562 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
4563 flag_loop_interchange.
4565 2011-01-25 Jakub Jelinek <jakub@redhat.com>
4567 PR tree-optimization/47265
4568 PR tree-optimization/47443
4569 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
4570 if name still has some uses.
4572 2011-01-25 Martin Jambor <mjambor@suse.cz>
4574 PR tree-optimization/47382
4575 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
4576 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
4578 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
4580 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
4581 sjlj_except_unwind_info.
4583 2011-01-25 Richard Guenther <rguenther@suse.de>
4585 PR tree-optimization/47426
4586 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
4587 visible functions results escape.
4589 2011-01-25 Jakub Jelinek <jakub@redhat.com>
4592 * config/arm/arm.c (any_sibcall_uses_r3): New function.
4593 (arm_get_frame_offsets): Use it.
4595 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4596 Jakub Jelinek <jakub@redhat.com>
4598 PR tree-optimization/47271
4599 * tree-if-conv.c (bb_postdominates_preds): New.
4600 (if_convertible_bb_p): Call bb_postdominates_preds.
4601 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
4602 (predicate_scalar_phi): Call bb_postdominates_preds.
4604 2011-01-25 Nick Clifton <nickc@redhat.com>
4606 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
4607 * config/rx/rx.c (rx_function_value): Likewise.
4608 (rx_promote_function_mode): Likewise.
4609 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
4610 in order to make it legitimate.
4611 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
4612 make sure that the first operand is the same as the result register.
4613 (addsi3_unspec): Delete.
4614 (subdi3): Do not accept immediate operands.
4615 (subdi3_internal): Likewise.
4617 2011-01-25 Jeff Law <law@redhat.com>
4619 PR rtl-optimization/37273
4620 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4621 handle them like argument loads from stack slots. Do not double
4622 count memory for memory constants and argument loads from stack slots.
4624 2011-01-25 Jakub Jelinek <jakub@redhat.com>
4626 PR tree-optimization/47427
4627 PR tree-optimization/47428
4628 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
4629 coalesce if the new root var would be TREE_READONLY.
4631 2011-01-25 Richard Guenther <rguenther@suse.de>
4634 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
4635 correct type for TBAA.
4637 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4639 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
4640 (close_phi_written_to_memory): Call for_each_index with
4641 dr_indices_valid_in_loop.
4643 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4645 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
4646 when it is initialized.
4648 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4650 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
4651 call to graphite_find_data_references_in_stmt.
4652 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
4653 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
4654 call to graphite_find_data_references_in_stmt.
4655 (analyze_drs_in_stmts): Same.
4656 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
4657 in which the scalar analysis of indices is performed.
4658 (create_data_ref): Same. Update call to dr_analyze_indices.
4659 (find_data_references_in_stmt): Update call to create_data_ref.
4660 (graphite_find_data_references_in_stmt): Same.
4661 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
4663 (create_data_ref): Same.
4664 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
4665 call to create_data_ref.
4667 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4669 * graphite-sese-to-poly.c (build_poly_scop): Move
4670 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
4672 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4674 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
4675 VAR_DECL, PARM_DECL, and RESULT_DECL.
4677 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4679 * graphite-dependences.c (reduction_dr_1): Allow several reductions
4681 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
4682 that have already been marked as PBB_IS_REDUCTION.
4684 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4686 * graphite-scop-detection.c (same_close_phi_node): New.
4687 (remove_duplicate_close_phi): New.
4688 (make_close_phi_nodes_unique): New.
4689 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
4691 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4693 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
4694 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
4695 of both data references to be the same.
4697 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4699 * graphite-dependences.c (build_lexicographical_constraint): Remove
4701 (build_lexicographical_constraint): Adjust call to
4702 ppl_powerset_is_empty.
4703 (dependence_polyhedron): Same.
4704 (graphite_legal_transform_dr): Same.
4705 (graphite_carried_dependence_level_k): Same.
4706 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
4708 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
4710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4712 * graphite-sese-to-poly.c
4713 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
4714 (close_phi_written_to_memory): New.
4715 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
4718 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4720 * doc/install.texi: Update the expected version number of PPL to 0.11.
4721 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
4722 #if PPL_VERSION_MINOR < 11.
4724 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4726 * graphite-dependences.c: Include graphite-cloog-util.h.
4727 (new_poly_ddr): Inlined into dependence_polyhedron.
4728 (free_poly_ddr): Moved close by new_poly_ddr.
4729 (dependence_polyhedron_1): Renamed dependence_polyhedron.
4730 Early return NULL when ppl_powerset_is_empty returns true.
4731 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
4732 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
4733 (graphite_legal_transform_dr): Call new_poly_ddr.
4734 (graphite_carried_dependence_level_k): Same.
4735 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
4736 (dot_transformed_deps_stmt_1): Removed.
4737 (dot_deps_stmt_1): Call dot_deps_stmt_2.
4738 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
4739 (dot_deps_1): Call dot_deps_2.
4740 * Makefile.in (graphite-dependences.o): Add missing dependence on
4741 graphite-cloog-util.h.
4743 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4745 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
4746 (build_lexicographical_constraint): Same.
4747 (dependence_polyhedron_1): Same.
4748 (graphite_legal_transform_dr): Same.
4749 (graphite_carried_dependence_level_k): Same.
4750 * graphite-ppl.c (ppl_powerset_is_empty): New.
4751 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
4752 * tree-data-ref.c (dump_data_reference): Print the basic block index.
4754 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4756 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
4757 the "a followed by b" relation and document it.
4759 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4761 * graphite-dependences.c (build_lexicographical_constraint): Stop the
4762 iteration when the bag of constraints is empty.
4764 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4766 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
4768 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4770 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
4771 nest and two loop depths as parameters.
4772 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
4773 lst_perfect_nestify.
4775 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4777 * graphite-dependences.c (print_pddr): Call
4778 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
4780 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
4782 * graphite-ppl.c (debug_gmp_value): New.
4783 * graphite-ppl.h (debug_gmp_value): Declared.
4785 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
4787 * doc/install.texi: Document availability of cloog-0.16.
4789 2011-01-25 Vladimir Kargov <kargov@gmail.com>
4791 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
4792 invalid postdominance info.
4794 2011-01-24 Jan Hubicka <jh@suse.cz>
4797 * doc/extend.texi (weak pragma): Drop claim that it must
4798 appear before definition.
4799 * varasm.c (merge_weak, declare_weak): Only sanity check
4800 that DECL is not output at a time it is declared weak.
4802 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
4804 * machmode.def: Fixed comments.
4806 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
4808 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
4810 2011-01-24 Paul Koning <ni1d@arrl.net>
4812 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
4815 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
4818 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
4819 (block_info): Add scanned and prev.
4820 (move_or_delete_vzeroupper_2): Return if the basic block
4821 has been scanned and the upper 128bit state is unchanged
4823 (move_or_delete_vzeroupper_1): Return true if the exit
4825 (move_or_delete_vzeroupper): Visit basic blocks using the
4826 work-list based algorithm based on vt_find_locations in
4829 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
4831 2011-01-24 Nick Clifton <nickc@redhat.com>
4833 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
4834 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
4835 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
4836 then define __v850e1__.
4837 * doc/invoke.texi: Document -mv850es.
4839 2011-01-24 Richard Henderson <rth@redhat.com>
4841 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
4842 compound unordered comparisons.
4843 * config/rx/rx.c (rx_split_fp_compare): Remove.
4844 * config/rx/rx-protos.h: Update.
4845 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
4846 (cbranchsf4): Don't call rx_split_fp_compare.
4847 (*cbranchsf4): Use rx_split_cbranch.
4848 (*cmpsf): Don't accept "i" constraint.
4849 (*conditional_branch): Only valid after reload.
4850 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
4852 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4855 * config/rs6000/altivec.md (vector constant splitters): Add
4856 support for creating vector single precision constants if -mvsx is
4857 used and we would create the constant using Altivec primitives.
4859 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
4860 Richard Sandiford <rdsandiford@googlemail.com>
4862 PR rtl-optimization/47166
4863 * reload1.c (emit_reload_insns): Disable the spill_reg_store
4864 mechanism for PRE_MODIFY and POST_MODIFY.
4865 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
4868 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
4870 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
4872 2011-01-22 Jan Hubicka <jh@suse.cz>
4875 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
4877 2011-01-22 Jan Hubicka <jh@suse.cz>
4879 PR tree-optimization/43884
4881 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
4882 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
4884 2011-01-22 Anatoly Sokolov <aesok@post.ru>
4886 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4887 * config/s390/s390.c (s390_register_move_cost,
4888 s390_memory_move_cost): New.
4889 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4891 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4894 * except.c (sjlj_assign_call_site_values): Move setting the
4895 crtl->uses_eh_lsda flag to ...
4896 (sjlj_mark_call_sites): ... here.
4897 (sjlj_emit_function_enter): Support NULL dispatch label.
4898 (sjlj_build_landing_pads): In a function with no landing pads
4899 that still has must-not-throw regions, generate code to register
4900 a personality function with empty LSDA.
4902 2011-01-21 Richard Henderson <rth@redhat.com>
4904 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
4906 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
4908 * compare-elim.c: New file.
4909 * Makefile.in (OBJS-common): Add it.
4910 (compare-elim.o): New.
4911 * common.opt (fcompare-elim): New.
4912 * opts.c (default_options_table): Add OPT_fcompare_elim.
4913 * tree-pass.h (pass_compare_elim_after_reload): New.
4914 * passes.c (init_optimization_passes): Add it.
4915 * recog.h: Protect against re-inclusion.
4916 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
4917 * doc/invoke.texi (-fcompare-elim): Document it.
4918 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
4919 * doc/tm.texi: Rebuild.
4921 2011-01-22 Nick Clifton <nickc@redhat.com>
4923 * config/rx/rx.md (cstoresf4): Pass comparison operator to
4924 rx_split_fp_compare.
4926 2011-01-22 Nick Clifton <nickc@redhat.com>
4928 * config/rx/rx.md (UNSPEC_CONST): New.
4929 (deallocate_and_return): Wrap the amount popped off the stack in
4930 an UNSPEC_CONST in order to stop it being rejected by
4931 -mmax-constant-size.
4932 (pop_and_return): Add a "(return)" rtx.
4933 (call): Drop the immediate operand.
4934 (call_internal): Likewise.
4935 (call_value): Likewise.
4936 (call_value_internal): Likewise.
4937 (sibcall_internal): Likewise.
4938 (sibcall_value_internal): Likewise.
4939 (sibcall): Likewise. Generate an explicit call using
4941 (sibcall_value): Likewise.
4942 (mov<>): FAIL if a constant operand is not legitimate.
4943 (addsi3_unpsec): New pattern.
4945 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
4946 (ok_for_max_constant): New function.
4947 (gen_safe_add): New function.
4948 (rx_expand_prologue): Use gen_safe_add.
4949 (rx_expand_epilogue): Likewise.
4950 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
4953 2011-01-21 Jeff Law <law@redhat.com>
4955 PR tree-optimization/47053
4956 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
4957 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
4958 statements are deleted.
4959 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
4960 is nonempty, then purge dead edges and cleanup the CFG.
4962 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
4966 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
4968 * tree-dfa.c (create_var_ann): Mark variable as used.
4970 2011-01-21 Jakub Jelinek <jakub@redhat.com>
4973 * except.c (convert_to_eh_region_ranges): Emit queued no-region
4974 notes from other section in hot/cold partitioning even if
4975 last_action is -3. Increment call_site_base.
4977 PR rtl-optimization/47366
4978 * fwprop.c (forward_propagate_into): Return bool. If
4979 any changes are made, -fnon-call-exceptions is used and
4980 REG_EH_REGION note is present, call purge_dead_edges
4981 and return true if it purged anything.
4982 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
4983 any EH edges were purged.
4985 2011-01-21 Jeff Law <law@redhat.com>
4987 PR rtl-optimization/41619
4988 * caller-save.c (setup_save_areas): Break out code to determine
4989 which hard regs are live across calls by examining the reload chains
4990 so that it is always used.
4991 Eliminate code which checked REG_N_CALLS_CROSSED.
4993 2011-01-21 Jakub Jelinek <jakub@redhat.com>
4995 PR tree-optimization/47355
4996 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
4997 NOP has non-debug uses beyond PHIs in new_bb.
4999 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
5002 * cfgexpand.c (account_used_vars_for_block): Only account vars
5003 that are annotated as used.
5004 (estimated_stack_frame_size): Don't set TREE_USED.
5005 * tree-dfa.c (create_var_ann): Mark variable as used.
5007 2011-01-21 Richard Guenther <rguenther@suse.de>
5010 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
5012 2011-01-21 Richard Guenther <rguenther@suse.de>
5014 PR tree-optimization/47365
5015 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
5016 (vn_reference_lookup_pieces): Adjust.
5017 (vn_reference_lookup): Likewise.
5018 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
5019 (vn_reference_lookup_3): Only look through kills if in
5020 VN_WALKREWRITE mode.
5021 (vn_reference_lookup_pieces): Adjust.
5022 (vn_reference_lookup): Likewise.
5023 (visit_reference_op_load): Likewise.
5024 (visit_reference_op_store): Likewise.
5025 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
5026 (compute_avail): Likewise.
5027 (eliminate): Likewise.
5029 2011-01-21 Jakub Jelinek <jakub@redhat.com>
5031 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
5032 DECL_IGNORED_P non-reg vars if they are used.
5034 PR tree-optimization/47391
5035 * varpool.c (const_value_known_p): Return false if
5038 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
5041 * config/i386/i386.c (ix86_local_alignment): Handle
5042 case for va_list_type_node is nil.
5043 (ix86_canonical_va_list_type): Likewise.
5045 2011-01-21 Alan Modra <amodra@gmail.com>
5047 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
5048 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
5050 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5052 * config/arm/arm.md (define_attr type): Rename f_load
5053 and f_store to f_fpa_load and f_fpa_store. Update.
5054 (write_conflict): Deal with rename fallout.
5055 (*push_fp_multi): Likewise.
5056 * config/arm/fpa.md (f_load): Use f_fpa_load.
5057 (f_store): Use f_fpa_store.
5058 (*movsf_fpa): Likewise.
5059 (*movdf_fpa): Likewise.
5060 (*movxf_fpa): Likewise.
5061 (*thumb2_movsf_fpa): Likewise.
5062 (*thumb2_movdf_fpa): Likewise.
5063 (*thumb2_movxf_fpa): Likewise.
5064 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
5065 f_loadd and f_stored.
5066 (*thumb2_movdi_vfp): Likewise.
5067 (*thumb2_movsf_vfp): Fix attribute to f_loads.
5068 (*thumb2_movsi_vfp): Likewise.
5069 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
5070 Use f_loads instead of f_load.
5071 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
5073 2011-01-20 Anatoly Sokolov <aesok@post.ru>
5075 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5076 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
5077 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5078 (xtensa_mode_dependent_address_p): New function.
5079 (constantpool_address_p): Make static. Change return type to bool.
5080 Change argument type to const_rtx. Use CONST_INT_P predicate.
5082 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
5085 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
5087 2011-01-20 Jakub Jelinek <jakub@redhat.com>
5090 * cfgexpand.c (expand_debug_expr): Instead of generating
5091 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
5094 2011-01-20 Richard Guenther <rguenther@suse.de>
5097 * tree-inline.c (remap_gimple_op_r): Recurse manually for
5098 the pointer operand of MEM_REFs.
5100 2011-01-20 Jakub Jelinek <jakub@redhat.com>
5102 PR tree-optimization/46130
5103 * ipa-split.c (consider_split): If return_bb contains non-virtual
5104 PHIs other than for retval or if split_function would not adjust it,
5107 2011-01-20 Richard Guenther <rguenther@suse.de>
5109 PR tree-optimization/47167
5110 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
5111 Revert previous change, only avoid enumeral type changes.
5113 2011-01-19 Mike Stump <mikestump@comcast.net>
5115 * doc/tm.texi.in (BRANCH_COST): Englishify.
5116 * doc/tm.texi (BRANCH_COST): Likewise.
5118 2011-01-19 Dodji Seketeli <dodji@redhat.com>
5121 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
5122 (gen_scheduled_generic_parms_dies): New functions.
5123 (gen_struct_or_union_type_die): Schedule template parameters DIEs
5124 generation for the end of CU compilation.
5125 (dwarf2out_finish): Generate template parameters DIEs here.
5127 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
5130 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
5131 debug bind stmt on merge edges.
5133 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
5137 * function.c (instantiate_expr): Instantiate incoming rtl of
5138 implicit arguments, and recurse on VALUE_EXPRs.
5139 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
5140 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
5142 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
5144 * c-parser.c (c_parser_for_statement): Initialize
5145 collection_expression.
5147 2011-01-19 Joseph Myers <joseph@codesourcery.com>
5149 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
5151 2011-01-19 Joseph Myers <joseph@codesourcery.com>
5153 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
5154 (LINK_SHLIB_SPEC): Don't use %(link_path).
5155 (SUBTARGET_EXTRA_SPECS): Remove link_path.
5157 2011-01-19 Joseph Myers <joseph@codesourcery.com>
5159 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
5160 (NO_SHARED_LIB_SUPPORT): Remove.
5161 (LINK_SHLIB_SPEC): Remove one conditional definition.
5163 2011-01-19 Joseph Myers <joseph@codesourcery.com>
5165 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
5167 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
5168 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
5169 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
5170 %{call_shared} and conditionals on these options not being passed.
5171 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
5174 2011-01-19 Jakub Jelinek <jakub@redhat.com>
5176 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
5179 * ipa-split.c: Spelling fixes.
5181 2011-01-19 Richard Henderson <rth@redhat.com>
5183 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
5184 (*mulsi3): Likewise.
5186 * longlong.h [__mn10300__] (count_leading_zeros): New.
5187 [__mn10300__] (umul_ppmm, smul_ppmm): New.
5188 [__mn10300__] (add_ssaaaa, subddmmss): New.
5189 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
5190 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
5192 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5194 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
5196 2011-01-19 Richard Henderson <rth@redhat.com>
5198 * config/mn10300/mn10300.md (addsi3_flags): New.
5199 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
5200 (subsi3_flags, subc_internal, subdi3): New.
5201 (subdi3_internal, *subdi3_degenerate): New.
5202 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
5204 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
5205 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
5206 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
5207 * config/mn10300/mn10300-protos.h: Update.
5208 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
5209 (return_ret): Likewise. Rename from return_internal_regs.
5210 (return_internal): Remove.
5212 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
5213 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
5214 (mn10300_legitimate_constant_p): Likewise.
5215 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
5216 (mn10300_frame_size): New.
5217 (mn10300_expand_prologue): Use it.
5218 (mn10300_expand_epilogue): Likewise.
5219 (mn10300_initial_offset): Likewise.
5220 * config/mn10300/mn10300-protos.h: Update.
5221 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
5222 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
5223 (prologue, epilogue, return_internal): Tidy output code.
5224 (mn10300_store_multiple_operation, return): Likewise.
5225 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
5226 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
5227 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
5228 (load_pic, am33_load_pic): New.
5229 (mn10300_load_pic0, mn10300_load_pic1): New.
5231 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
5232 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
5233 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
5234 (cc_flags_for_mode, cc_flags_for_code): New.
5235 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
5236 overflow flag is not valid. Validate that the flags we need
5237 for the comparison are valid.
5238 (mn10300_output_cmp): Remove.
5239 (mn10300_output_add): New.
5240 (mn10300_select_cc_mode): Use cc_flags_for_code.
5241 (mn10300_split_cbranch): New.
5242 (mn10300_match_ccmode): New.
5243 (mn10300_split_and_operand_count): New.
5244 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
5246 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
5247 (addsi3): ... here. Use mn10300_output_add.
5248 (*addsi3_flags): New.
5249 (*am33_subsi3, *mn10300_subsi3): Merge...
5250 (subsi3): ... here. Use attribute isa.
5251 (*subsi3_flags): New.
5252 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
5254 (*am33_andsi3, *mn10300_andsi3): Merge...
5256 (*andsi3_flags): New.
5257 (andsi3 splitters): New.
5258 (*am33_iorsi3, *mn10300_iorsi3): Merge...
5260 (*iorsi3_flags): New.
5261 (*am33_xorsi3, *mn10300_xorsi3): Merge...
5263 (*xorsi3_flags): New.
5264 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
5265 (one_cmplsi2): ... here.
5266 (*one_cmplsi2_flags): New.
5267 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
5268 instead of "dax" in constraints. Use mn10300_split_cbranch.
5269 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
5270 use matching constraints to eliminate a self-comparison.
5271 (*integer_conditional_branch): Rename from integer_conditional_branch.
5272 Use int_mode_flags to match CC_REG.
5273 (*cbranchsi4_btst, *btstsi): New.
5274 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
5275 mn10300_split_cbranch.
5276 (*am33_cmpsf): Rename from am33_cmpsf.
5277 (*float_conditional_branch): Rename from float_conditional_branch.
5278 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
5279 (zero_extendqisi2): ... here.
5280 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
5281 (zero_extendhisi2): ... here.
5282 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
5283 (extendqisi2): ... here.
5284 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
5285 (extendhisi2): ... here.
5286 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
5287 (ashlsi3): ... here.
5288 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
5289 (lshrsi3): ... here.
5290 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
5291 (ashrsi3): ... here.
5292 (consecutive add peephole): Remove.
5293 * config/mn10300/predicates.md (label_ref_operand): New.
5294 (int_mode_flags): New.
5295 (CCZN_comparison_operator): New.
5297 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
5298 (throughput_42_latency_43): New reservation.
5299 (mulsidi3, umulsidi3): New expanders.
5300 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
5301 the MDR register to allocation; separately allocate the low and
5302 high parts of the DImode result.
5303 (umulsidi3_internal): Similarly.
5304 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
5305 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
5306 (udivsi3, umodsi3): Remove.
5307 (udivmodsi4, divmodsi4): New expanders.
5308 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
5309 (*divmodsi4): Simiarly.
5310 (ext_internal): New.
5312 * config/mn10300/constraints.md ("z"): New constraint.
5313 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
5314 (FIXED_REGISTERS): Don't fix MDR.
5315 (CALL_USED_REGSITERS): Reformat nicely.
5316 (REG_ALLOC_ORDER): Add MDR.
5317 (enum regclass): Add MDR_REGS.
5318 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
5319 (IRA_COVER_CLASSES): Add MDR_REGS.
5320 (REGNO_REG_CLASS): Handle MDR_REG.
5321 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
5322 (mn10300_register_move_cost): Likewise.
5323 * config/mn10300/mn10300.md (MDR_REG): New.
5324 (*movsi_internal): Handle moves to/from MDR_REGS.
5326 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
5328 (mn10300_secondary_reload): Tidy combination reload classes.
5329 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
5330 addresses for AM33. Allow symbolic offsets for reg+imm.
5331 (mn10300_regno_in_class_p): New.
5332 (mn10300_legitimize_reload_address): New.
5333 * config/mn10300/mn10300.h (enum reg_class): Remove
5334 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
5335 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
5337 (REG_CLASS_NAMES): Update to match.
5338 (REG_CLASS_CONTENTS): Likewise.
5339 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
5340 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
5341 (REGNO_IN_RANGE_P): Remove.
5342 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
5343 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
5344 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
5345 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
5346 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
5347 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
5348 (REGNO_GENERAL_P): New.
5349 (HAVE_POST_MODIFY_DISP): New.
5350 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
5351 (LEGITIMIZE_RELOAD_ADDRESS): New.
5352 * config/mn10300/mn10300-protos.h: Update.
5354 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
5355 DATA_REGS for AM33 stack-pointer destination.
5356 (mn10300_preferred_output_reload_class): Likewise.
5357 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
5358 into a form appropriate for ...
5359 (TARGET_SECONDARY_RELOAD): New.
5360 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
5361 * config/mn10300/mn10300-protos.h: Update.
5362 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
5363 reload_insi; use the "A" constraint for the scratch; handle AM33
5364 moves of sp to non-address registers.
5366 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
5367 (*movqi_internal): ... here.
5368 (*am33_movhi, *mn10300_movhi): Merge into...
5369 (*movhi_internal): ... here.
5370 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
5371 as the source/destination of moves from/to SP.
5372 (movsf): Only allow for AM33-2.
5373 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
5374 any integer constant constraint. Only allow for AM33-2. Tidy
5375 all of the alternative outputs.
5376 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
5377 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
5379 (udivsi3, umodsi3): New patterns for MN103 only.
5381 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
5383 * doc/tm.texi.in: Spell out that a lack of register class unions
5385 * doc/tm.texi: Regenerate.
5387 2011-01-19 Jakub Jelinek <jakub@redhat.com>
5389 PR rtl-optimization/47337
5390 * dce.c (check_argument_store): New function.
5391 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
5393 PR tree-optimization/47290
5394 * tree-eh.c (infinite_empty_loop_p): New function.
5395 (cleanup_empty_eh): Use it.
5397 2011-01-18 Steve Ellcey <sje@cup.hp.com>
5400 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
5401 (a64_expand_widen_sum): Ditto.
5402 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
5403 (vec_extract_evenodd_help): Ditto.
5404 (vec_extract_evenv4hi): Ditto.
5405 (vec_extract_oddv4hi): Ditto.
5406 (vec_extract_evenv2si): Ditto.
5407 (vec_extract_oddv2si): Ditto.
5408 (vec_extract_evenv2sf): Ditto.
5409 (vec_extract_oddv2sf): Ditto.
5410 (vec_pack_trunc_v4hi: Ditto.
5411 (vec_pack_trunc_v2si): Ditto.
5412 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
5413 (vec_interleave_highv8qi): Ditto.
5415 (vec_extract_oddv8qi): Ditto.
5416 (vec_interleave_lowv4hi): Ditto.
5417 (vec_interleave_highv4hi): Ditto.
5418 (vec_interleave_lowv2si): Ditto.
5419 (vec_interleave_highv2si): Ditto.
5421 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5423 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
5424 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
5425 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
5426 (pa_c_mode_for_suffix): New.
5427 (TARGET_EXPAND_BUILTIN): Define.
5428 (TARGET_C_MODE_FOR_SUFFIX): Define.
5429 (pa_builtins): Define.
5430 (pa_init_builtins): Register __float128 type and init new support
5432 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
5433 * config/pa/quadlib.c (_U_Qfcopysign): New.
5435 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
5438 * explow.c (allocate_dynamic_stack_space): Do not assume more than
5439 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
5442 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5444 PR tree-optimization/47179
5445 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
5446 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
5448 2011-01-18 Richard Guenther <rguenther@suse.de>
5450 PR rtl-optimization/47216
5451 * emit-rtl.c: Include tree-flow.h.
5452 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
5453 of replicating it with different semantics.
5454 * Makefile.in (emit-rtl.o): Adjust.
5456 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5458 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
5459 (cortex_a9_dp): Handle neon types correctly.
5461 2011-01-18 Jakub Jelinek <jakub@redhat.com>
5463 PR rtl-optimization/47299
5464 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
5465 subtarget. Use normal multiplication if both operands are constants.
5466 * expmed.c (expand_widening_mult): Don't try to optimize constant
5467 multiplication if op0 has VOIDmode. Convert op1 constant to mode
5470 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5472 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
5473 spacing after 'e.g.', typos, comma, hyphenation.
5475 2011-01-17 Richard Henderson <rth@redhat.com>
5477 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
5478 (rx_restricted_mem_operand): New.
5479 (rx_shift_operand): Use register_operand.
5480 (rx_source_operand, rx_compare_operand): Likewise.
5481 * config/rx/rx.md (addsi3_flags): New expander.
5482 (adddi3): Rewrite as expander.
5483 (adc_internal, *adc_flags, adddi3_internal): New patterns.
5484 (subsi3_flags): New expander.
5485 (subdi3): Rewrite as expander.
5486 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
5488 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
5489 (rx_init_builtins): Remove sat builtin.
5490 (rx_expand_builtin): Likewise.
5491 * config/rx/rx.md (ssaddsi3): New.
5492 (*sat): Rename from sat. Represent the CC_REG input.
5494 * config/rx/predicates.md (rshift_operator): New.
5495 * config/rx/rx.c (rx_expand_insv): Remove.
5496 * config/rx/rx-protos.h: Update.
5497 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
5498 operand to the canonical position.
5499 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
5500 (*bitclr, *bitclr_in_memory): Similarly.
5501 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
5502 (insv): Retain the zero_extract in the expansion.
5504 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
5505 (bswaphi2, bitinvert, revw): Likewise.
5507 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
5508 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
5509 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
5510 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
5511 (bitset, bitset_in_memory): Likewise.
5512 (bitinvert, bitinvert_in_memory): Likewise.
5513 (bitclr, bitclr_in_memory): Likewise.
5514 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
5515 (rx_strend, rx_cmpstrn): Likewise.
5516 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
5517 (bitop peep2 patterns): Remove.
5519 * config/rx/rx.c (rx_match_ccmode): New.
5520 * config/rx/rx-protos.h: Update.
5521 * config/rx/rx.md (abssi2): Clobber, don't set flags.
5522 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
5523 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
5524 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
5525 (fix_truncsfsi2, floatsisf2): Likewise.
5526 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
5527 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
5528 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
5529 (*subsi3_flags, *xorsi3_flags): New.
5531 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
5533 * config/rx/rx.c (rx_print_operand): Remove workaround for
5534 unsplit comparison operations.
5536 * config/rx/rx.md (movsicc): Split after reload.
5537 (*movsicc): Merge *movsieq and *movsine via match_operator.
5538 (*stcc): New pattern.
5540 * config/rx/rx.c (rx_float_compare_mode): Remove.
5541 * config/rx/rx.h (rx_float_compare_mode): Remove.
5542 * config/rx/rx.md (cstoresi4): Split after reload.
5543 (*sccc): New pattern.
5545 * config/rx/predicates.md (label_ref_operand): New.
5546 (rx_z_comparison_operator): New.
5547 (rx_zs_comparison_operator): New.
5548 (rx_fp_comparison_operator): New.
5549 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
5550 Validate that the flags are set properly for the comparison.
5551 (rx_gen_cond_branch_template): Remove.
5552 (rx_cc_modes_compatible): Remove.
5553 (mode_from_flags): New.
5554 (flags_from_code): Rename from flags_needed_for_conditional.
5555 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
5556 (rx_select_cc_mode): Likewise.
5557 (rx_split_fp_compare): New.
5558 (rx_split_cbranch): New.
5559 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
5560 (*cbranchsi4): Use match_operator and rx_split_cbranch.
5561 (*cbranchsf4): Similarly.
5562 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
5563 match_operator and rx_split_cbranch.
5564 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
5565 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
5566 (*cmpsi): Rename from cmpsi.
5567 (*tstsi): Rename from tstsi.
5568 (*cmpsf): Rename from cmpsf; use CC_Fmode.
5569 (*conditional_branch): Rename from conditional_branch.
5570 (*reveresed_conditional_branch): Remove.
5571 (b<code>): Remove expander.
5572 * config/rx/rx-protos.h: Update.
5574 * config/rx/rx.c (rx_compare_redundant): Remove.
5575 * config/rx/rx.md (cmpsi): Don't use it.
5576 * config/rx/rx-protos.h: Update.
5578 * config/rx/rx-modes.def (CC_F): New mode.
5579 * config/rx/rx.c (rx_select_cc_mode): New.
5580 * config/rx/rx.h (SELECT_CC_MODE): Use it.
5581 * config/rx/rx-protos.h: Update.
5583 2011-01-17 Richard Henderson <rth@redhat.com>
5585 * except.c (dump_eh_tree): Fix stray ; after for statement.
5587 2011-01-17 Richard Guenther <rguenther@suse.de>
5589 PR tree-optimization/47313
5590 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
5591 handling before copying the body. Properly deal with
5592 by-reference result in SSA form.
5594 2011-01-17 Ian Lance Taylor <iant@google.com>
5597 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
5598 (struct_value_alias_set): Don't define.
5599 (sparc_option_override): Don't set sparc_sr_alias_set and
5600 struct_value_alias_set.
5601 (save_or_restore_regs): Use gen_frame_mem rather than calling
5603 (sparc_struct_value_rtx): Likewise.
5605 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
5608 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
5610 (_mm_maskstore_pd): Likewise.
5611 (_mm_maskload_ps): Likewise.
5612 (_mm_maskstore_ps): Likewise.
5613 (_mm256_maskload_pd): Change mask to __m256i.
5614 (_mm256_maskstore_pd): Likewise.
5615 (_mm256_maskload_ps): Likewise.
5616 (_mm256_maskstore_ps): Likewise.
5618 * config/i386/i386-builtin-types.def: Updated.
5619 (ix86_expand_special_args_builtin): Likewise.
5621 * config/i386/i386.c (bdesc_special_args): Update
5622 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
5623 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
5624 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
5625 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
5627 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
5628 Use <avxpermvecmode> on mask register.
5629 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
5631 2011-01-17 Olivier Hainque <hainque@adacore.com>
5632 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5633 Eric Botcazou <ebotcazou@adacore.com>
5636 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
5637 if <= USHRT_MAX in 32-bit mode.
5639 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5641 * doc/install.texi (Configuration, Specific): Wrap long
5642 lines in examples. Allow line wrapping in long options
5643 and URLs where beneficial for PDF output.
5645 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
5647 * config/mips/mips.c (mips_classify_symbol): Don't return
5648 SYMBOL_PC_RELATIVE for nonlocal labels.
5650 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
5652 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
5654 2011-01-15 Jan Hubicka <jh@suse.cz>
5656 PR tree-optimization/47276
5657 * ipa.c (function_and_variable_visibility): Do not try to mark alias
5658 declarations as needed.
5660 2011-01-15 Martin Jambor <mjambor@suse.cz>
5662 * common.opt (fdevirtualize): New flag.
5663 * doc/invoke.texi (Option Summary): Document it.
5664 * opts.c (default_options_table): Add devirtualize flag.
5665 * ipa-prop.c (detect_type_change): Return immediately if
5666 devirtualize flag is not set.
5667 (detect_type_change_ssa): Likewise.
5668 (compute_known_type_jump_func): Likewise.
5669 (ipa_analyze_virtual_call_uses): Likewise.
5671 2011-01-14 Martin Jambor <mjambor@suse.cz>
5673 PR tree-optimization/45934
5674 PR tree-optimization/46302
5675 * ipa-prop.c (type_change_info): New type.
5676 (stmt_may_be_vtbl_ptr_store): New function.
5677 (check_stmt_for_type_change): Likewise.
5678 (detect_type_change): Likewise.
5679 (detect_type_change_ssa): Likewise.
5680 (compute_complex_assign_jump_func): Check for dynamic type change.
5681 (compute_complex_ancestor_jump_func): Likewise.
5682 (compute_known_type_jump_func): Likewise.
5683 (compute_scalar_jump_functions): Likewise.
5684 (ipa_analyze_virtual_call_uses): Likewise.
5685 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
5687 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5689 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
5690 * config/i386/i386.opt (msse5): New Alias.
5692 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5694 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
5695 * config/sparc/linux64.h (CC1_SPEC): Likewise.
5696 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
5697 * config/sparc/sparc.h (CC1_SPEC): Likewise.
5699 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5701 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
5703 * config/sparc/linux64.h (CC1_SPEC): Likewise.
5704 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
5705 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
5706 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
5708 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
5710 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5712 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
5714 2011-01-14 Mike Stump <mikestump@comcast.net>
5716 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
5717 * config/fr30/fr30.md: Likweise
5718 (movsi_push): Likewise.
5719 (movsi_pop): Likewise.
5720 (enter_func): Likewise.
5721 * config/moxie/moxie.md (movsi_push): Likewise.
5722 (movsi_pop): Likewise.
5724 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5726 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
5727 %{no_archive} %{exact_version}.
5728 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
5729 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
5730 %{no_archive} %{exact_version}.
5731 * config/mips/openbsd.h (LINK_SPEC): Likewise.
5732 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
5733 * config/mips/vxworks.h: Likewise.
5735 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5737 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
5739 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5741 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
5742 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
5744 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5746 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
5749 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5751 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
5753 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
5754 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
5756 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
5757 Don't handle -shlib.
5759 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5761 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
5762 (CC1_SPEC): Don't handle -profile.
5764 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5766 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
5767 * config/mips/mips.h (CC1_SPEC): Likewise.
5769 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5771 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
5772 * config/mips/mips.h (CC1_SPEC): Likewise.
5774 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5776 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
5777 * config/m32r/linux.h (LINK_SPEC): Likewise.
5778 * config/mips/linux.h (LINK_SPEC): Likewise.
5779 * config/mips/linux64.h (LINK_SPEC): Likewise.
5780 * config/sparc/linux.h (LINK_SPEC): Likewise.
5781 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
5782 LINK_SPEC): Likewise.
5783 * config/xtensa/linux.h (LINK_SPEC): Likewise.
5785 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5787 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
5789 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
5791 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5793 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
5794 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5796 2011-01-14 Joseph Myers <joseph@codesourcery.com>
5798 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
5800 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5802 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
5803 supports -Bstatic/-Bdynamic.
5804 * configure: Regenerate.
5806 2011-01-14 Jan Hubicka <jh@suse.cz>
5807 Jack Howarth <howarth@bromo.med.uc.edu>
5810 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
5811 when checking debug_info_level. Test write_symbols instead of
5812 debug_hooks->var_location when setting flag_var_tracking_uninit.
5814 2011-01-14 Richard Guenther <rguenther@suse.de>
5816 PR tree-optimization/47179
5817 * target.def (ref_may_alias_errno): New target hook.
5818 * targhooks.h (default_ref_may_alias_errno): Declare.
5819 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
5820 (default_ref_may_alias_errno): New function.
5821 * target.h (struct ao_ref_s): Declare.
5822 * tree-ssa-alias.c: Include target.h.
5823 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
5824 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
5825 (targhooks.o): Likewise.
5826 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
5827 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
5829 2011-01-14 Richard Guenther <rguenther@suse.de>
5831 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
5833 2011-01-14 Richard Guenther <rguenther@suse.de>
5835 PR tree-optimization/47280
5836 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
5838 (tree_ssa_forward_propagate_single_use_vars): Deal with
5839 CFG changes from associate_plusminus.
5841 2011-01-14 Richard Guenther <rguenther@suse.de>
5845 2011-01-11 Richard Guenther <rguenther@suse.de>
5847 PR tree-optimization/46076
5848 * tree-ssa.c (useless_type_conversion_p): Conversions from
5849 unprototyped to empty argument list function types are useless.
5851 2011-01-14 Richard Guenther <rguenther@suse.de>
5853 PR tree-optimization/47286
5854 * tree-ssa-structalias.c (new_var_info): Register variables are global.
5856 2011-01-14 Martin Jambor <mjambor@suse.cz>
5859 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
5861 2011-01-13 Anatoly Sokolov <aesok@post.ru>
5863 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
5864 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5865 * config/xtensa/xtensa.c (xtensa_libcall_value,
5866 xtensa_function_value_regno_p): New functions.
5867 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5869 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
5872 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
5874 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
5875 New function prototype.
5876 * config/i386/winnt.c (i386_pe_assemble_visibility):
5877 Warn only if attribute was specified by user.
5879 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5882 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
5884 (floatunsdidf2_fcfidu): Ditto.
5886 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5888 * config/s390/s390.c (print_operand_address): Replace 'error' with
5889 'output_operand_lossage'.
5890 (print_operand): Likewise.
5892 2011-01-13 Jeff Law <law@redhat.com>
5894 PR rtl-optimization/39077
5895 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
5896 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
5897 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
5898 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
5899 * gcse.c (prune_insertions_deletions): New function.
5900 (compute_pre_data): Use it.
5902 2011-01-13 Dodji Seketeli <dodji@redhat.com>
5905 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
5907 (prune_unused_types_mark): Use it.
5909 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
5911 PR rtl-optimization/45352
5912 * sel-sched.c: Update copyright years.
5913 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
5914 in the advancing loop when we have issued issue_rate insns.
5916 2011-01-12 Richard Henderson <rth@redhat.com>
5918 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
5919 (TARGET_MD_ASM_CLOBBERS): New.
5921 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
5922 (TARGET_DELEGITIMIZE_ADDRESS): New.
5924 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
5925 (clzsi2, *bsch): New patterns.
5927 * config/mn10300/mn10300.md (INT): New mode iterator.
5928 (*mov<INT>_clr): New pattern, and peep2 to generate it.
5930 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
5931 flag_split_wide_types.
5933 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
5934 (mn10300_trampoline_init): Rewrite without a template, an immediate
5935 load and a direct branch.
5936 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
5938 2011-01-12 Anatoly Sokolov <aesok@post.ru>
5940 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5941 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
5942 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
5943 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5945 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
5948 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
5951 2011-01-12 Jan Hubicka <jh@suse.cz>
5954 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
5955 (PLUGIN_COND_CLOSE): New macro.
5956 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
5958 2011-01-12 Richard Guenther <rguenther@suse.de>
5961 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
5962 register variables in a MEM_REF.
5964 2011-01-12 Joseph Myers <joseph@codesourcery.com>
5966 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
5967 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
5968 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
5969 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5970 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5971 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
5972 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
5973 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
5974 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
5975 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
5976 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
5977 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
5978 * config/gnu-user.h: New. Copied from linux.h.
5979 (LINUX_TARGET_STARTFILE_SPEC): Rename to
5980 GNU_USER_TARGET_STARTFILE_SPEC.
5981 (LINUX_TARGET_ENDFILE_SPEC): Rename to
5982 GNU_USER_TARGET_ENDFILE_SPEC.
5983 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
5984 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
5985 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
5986 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
5987 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
5988 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
5989 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
5990 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
5991 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
5992 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
5993 * config/arm/linux-eabi.h (CC1_SPEC): Use
5994 GNU_USER_TARGET_CC1_SPEC.
5995 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
5996 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
5997 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
5998 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
5999 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
6000 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
6001 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
6002 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
6004 2011-01-12 Richard Guenther <rguenther@suse.de>
6007 * doc/invoke.texi (ffast-math): Document it is turned on
6010 2011-01-12 Jan Hubicka <jh@suse.cz>
6012 PR tree-optimization/47233
6013 * opts.c (common_handle_option): Disable ipa-reference with profile
6016 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
6018 * c-parser.c (c_parser_objc_at_property_declaration): Improved
6021 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
6023 * c-parser.c (c_lex_one_token): Updated and reindented some
6024 comments. No changes in code.
6026 2011-01-11 Ian Lance Taylor <iant@google.com>
6028 * godump.c (go_output_var): Don't output the variable if there is
6029 already a type with the same name.
6031 2011-01-11 Ian Lance Taylor <iant@google.com>
6033 * godump.c (go_format_type): Don't generate float80.
6035 2011-01-11 Richard Henderson <rth@redhat.com>
6037 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
6038 declaration. Rewrite for both speed and size.
6039 (mn10300_address_cost_1): Remove.
6040 (mn10300_register_move_cost): New.
6041 (mn10300_memory_move_cost): New.
6042 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
6043 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
6044 extensions, shifts, BSWAP, CLZ.
6045 (mn10300_wide_const_load_uses_clr): Remove.
6046 (TARGET_REGISTER_MOVE_COST): New.
6047 (TARGET_MEMORY_MOVE_COST): New.
6048 * config/mn10300/mn10300-protos.h: Update.
6049 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
6051 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
6052 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
6053 * config/mn10300/mn10300-protos.h: Update.
6054 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
6055 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
6056 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
6057 (*test_int_bitfield, *test_byte_bitfield): Remove.
6058 (*bit_test, *subreg_bit_test): Remove.
6059 * config/mn10300/predicates.md (const_8bit_operand): Remove.
6061 * config/mn10300/constraints.md ("c"): Rename from "A".
6062 ("A", "D"): New constraint letters.
6063 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
6064 (fmssf4, fnmasf4, fnmssf4): Likewise.
6066 * config/mn10300/mn10300.md (isa): New attribute.
6067 (enabled): New attribute.
6069 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
6070 (abssf2, negsf2): Define only for hardware fp.
6071 (sqrtsf2): Reformat.
6072 (addsf3, subsf3, mulsf3): Merge expander and insn.
6074 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
6075 (DEBUGGER_AUTO_OFFSET): Remove.
6076 (DEBUGGER_ARG_OFFSET): Remove.
6078 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
6079 Emit register stores with the same offsets as the hardware.
6080 (mn10300_store_multiple_operation): Don't check that the register
6081 save offsets are monotonic.
6082 * config/mn10300/mn10300-protos.h: Update.
6084 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
6086 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
6087 in terms of the value on the stack, not the MDR register.
6089 2011-01-11 Jan Hubicka <jh@suse.cz>
6093 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
6094 (symbol_alias_set_destroy, symbol_alias_set_contains,
6095 propagate_aliases_backward): Declare.
6096 * lto-streamer-out.c (struct sets): New sturcture.
6097 (trivally_defined_alias): New function.
6098 (output_alias_pair_p): Rewrite.
6099 (output_unreferenced_globals): Fix output of alias pairs.
6100 (produce_symtab): Likewise.
6101 * ipa.c (function_and_variable_visibility): Set weak alias destination
6103 * varasm.c (symbol_alias_set_t): Remove.
6104 (symbol_alias_set_destroy): Export.
6105 (propagate_aliases_forward, propagate_aliases_backward): New functions
6107 (compute_visible_aliases): ... this one; remove.
6108 (trivially_visible_alias): New
6109 (trivially_defined_alias): New.
6110 (remove_unreachable_alias_pairs): Rewrite.
6111 (finish_aliases_1): Reorganize code checking if alias is defined.
6112 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
6115 2011-01-11 Richard Guenther <rguenther@suse.de>
6117 PR tree-optimization/46076
6118 * tree-ssa.c (useless_type_conversion_p): Conversions from
6119 unprototyped to empty argument list function types are useless.
6121 2011-01-11 Richard Guenther <rguenther@suse.de>
6124 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
6125 volatile MEMs as MEM_READONLY_P.
6127 2011-01-11 Richard Guenther <rguenther@suse.de>
6129 PR tree-optimization/47239
6130 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
6132 2011-01-11 Jeff Law <law@redhat.com>
6134 PR tree-optimization/47086
6135 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
6136 IVs from statements that might throw.
6138 2011-01-10 Jan Hubicka <jh@suse.cz>
6141 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
6143 2011-01-10 Jan Hubicka <jh@suse.cz>
6146 * profile.c (read_profile_edge_counts): Ignore profile inconistency
6147 when correcting profile.
6149 2011-01-10 Jan Hubicka <jh@suse.cz>
6152 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
6154 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
6155 Restore DECL_FINI_PRIORITY.
6157 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6159 * doc/gimple.texi: Fix quoting of multi-word return values in
6160 @deftypefn statements. Ensure presence of return value. Wrap
6161 overlong @deftypefn lines.
6162 (is_gimple_operand, is_gimple_min_invariant_address): Remove
6163 descriptions of removed functions.
6164 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
6165 of multi-word return value in @deftypefn statement.
6167 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6169 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
6170 (Conditional Expressions, Logical Operators)
6171 (Statement and operand traversals): Do not indent smallexample
6172 code. Fix duplicate function argument in example.
6174 2011-01-10 Jeff Law <law@redhat.com>
6176 PR tree-optimization/47141
6177 * ipa-split.c (split_function): Handle case where we are
6178 returning a value and the return block has a virtual operand phi.
6180 2011-01-10 Jan Hubicka <jh@suse.cz>
6182 PR tree-optimization/47234
6183 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
6184 (pass_feedback_split_functions): Declare.
6185 * passes.c (init_optimization_passes): Add ipa-split as subpass of
6187 * ipa-split.c (gate_split_functions): Update comments; disable
6188 split-functions for profile_arc_flag and branch_probabilities.
6189 (gate_feedback_split_functions): New function.
6190 (execute_feedback_split_functions): New function.
6191 (pass_feedback_split_functions): New global var.
6193 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
6196 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
6197 calling gimple_call_set_cannot_inline.
6199 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
6201 * config/darwin-sections.def: Remove unused section.
6203 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
6206 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
6208 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
6211 * c-parser.c (c_parser_declaration_or_fndef): Improved
6214 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
6216 * config/i386/winnt.c (i386_pe_start_function): Make sure
6217 to switch back to function's section.
6219 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
6223 * plugin.c: Move include of dlfcn.h from here...
6224 * system.h: ... to here.
6226 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6228 * doc/cpp.texi (C++ Named Operators): Fix markup for header
6230 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
6231 two extra empty pages in PDF output.
6233 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
6236 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
6237 for error recovery purposes behave as if it was not specified so
6238 that the default type is usd.
6240 2011-01-07 Jan Hubicka <jh@suse.cz>
6242 PR tree-optmization/46469
6243 * ipa.c (function_and_variable_visibility): Clear needed flags on
6244 nodes with external decls; handle weakrefs merging correctly.
6246 2011-01-07 Joseph Myers <joseph@codesourcery.com>
6248 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
6251 2011-01-07 Jan Hubicka <jh@suse.cz>
6253 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
6254 and no longer claim that gold is required for linker plugin.
6255 * configure: Regenerate.
6256 * gcc.c (PLUGIN_COND): New macro.
6257 (LINK_COMMAND_SPEC): Use it.
6258 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
6259 * config.in (HAVE_LTO_PLUGIN): New.
6260 * configure.ac (--with-lto-plugin): New parameter; autodetect
6263 2011-01-07 Jan Hubicka <jh@suse.cz>
6265 PR tree-optimization/46367
6266 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
6267 when we can update original.
6268 (cgraph_mark_inline_edge): Sanity check.
6269 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
6271 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6273 * config/spu/spu.h (ASM_COMMENT_START): Define.
6275 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
6279 (SWITCH_KEEP_FOR_GCC): Likewise.
6280 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
6281 (do_spec_1): Handle "%>".
6283 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
6285 2011-01-07 Jakub Jelinek <jakub@redhat.com>
6288 * config/i386/i386.c (ix86_delegitimize_address): If
6289 simplify_gen_subreg fails, return orig_x.
6292 * value-prof.c (gimple_stringop_fixed_value): Handle
6293 lhs of the call properly.
6295 2011-01-07 Jan Hubicka <jh@suse.cz>
6298 * lto-opt.c (lto_reissue_options): Set flag_shlib.
6300 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
6302 * target.def (function_switched_text_sections): New hook.
6303 * doc/tm.texi: Regenerated.
6304 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
6305 * final.c (default_function_switched_text_sections): New.
6306 (final_scan_insn): Call function_switched_text_sections when a
6307 mid-function section change occurs.
6308 * output.h (default_function_switched_text_sections): Declare.
6309 * config/darwin-protos.h (darwin_function_switched_text_sections):
6311 * config/darwin.c (darwin_function_switched_text_sections): New.
6312 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
6314 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
6316 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
6317 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
6318 the secondary code fragment when outputting for DWARF == 2.
6320 2011-01-07 Anatoly Sokolov <aesok@post.ru>
6322 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6323 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
6325 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
6326 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6328 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
6331 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
6332 when it is not empty.
6334 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
6337 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
6338 (case ${target}): Add btver1.
6339 * config/i386/driver-i386.c (host_detect_local_cpu): Let
6340 -march=native recognize btver1 processors.
6341 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6342 btver1 def_and_undef
6343 * config/i386/i386.c (struct processor_costs btver1_cost): New
6345 (m_BTVER1): New definition.
6346 (m_AMD_MULTIPLE): Includes m_BTVER1.
6347 (initial_ix86_tune_features): Add btver1 tune.
6348 (processor_target_table): Add btver1 entry.
6349 (static const char *const cpu_names): Add btver1 entry.
6350 (software_prefetching_beneficial_p): Add btver1.
6351 (ix86_option_override_internal): Add btver1 instruction sets.
6352 (ix86_issue_rate): Add btver1.
6353 (ix86_adjust_cost): Add btver1.
6354 * config/i386/i386.h (TARGET_BTVER1): New definition.
6355 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
6356 (enum processor_type): Add PROCESSOR_BTVER1.
6357 * config/i386/i386.md (define_attr "cpu"): Add btver1.
6359 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6362 * config/i386/i386.c (legitimize_tls_address)
6363 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
6364 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
6365 (tls_initial_exec_64_sun): New pattern.
6367 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
6369 * doc/invoke.texi (Overall Options): Improve wording and markup
6370 of the description of -wrapper.
6372 2011-01-06 Joseph Myers <joseph@codesourcery.com>
6374 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
6375 rdynamic, threads): New Driver options.
6377 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6380 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
6381 if coming from .tdata.
6382 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6384 2011-01-06 Jan Hubicka <jh@suse.cz>
6387 * collect2.c (main): Do not enable LTOmode when plugin is active.
6389 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6392 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
6393 --version output if supported.
6394 * configure: Regenerate.
6396 2011-01-06 Joseph Myers <joseph@codesourcery.com>
6398 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
6401 2011-01-06 Jakub Jelinek <jakub@redhat.com>
6404 * c-convert.c (convert): When converting a complex expression
6405 other than COMPLEX_EXPR to a different complex type, ensure
6406 c_save_expr is called instead of save_expr, unless in_late_binary_op.
6407 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
6408 when converting COMPLEX_TYPE.
6410 2011-01-06 Ira Rosen <irar@il.ibm.com>
6412 PR tree-optimization/47139
6413 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
6414 only the last reduction value is used outside the loop. Update
6417 2011-01-05 Joseph Myers <joseph@codesourcery.com>
6419 * config/rtems.opt: New.
6420 * config.gcc (*-*-rtems*): Use rtems.opt.
6422 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
6424 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
6425 processors do not support 3DNow instructions.
6427 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6429 * config/spu/spu.c (spu_option_override): Set parameter
6430 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
6432 2011-01-05 Jan Hubicka <jh@suse.cz>
6434 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
6435 at the command line.
6437 2011-01-05 Martin Jambor <mjambor@suse.cz>
6440 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
6441 deltas on streamed outgoing edges.
6442 (output_node_opt_summary): Output info for outgoing edges only when
6443 the node is in new parameter set.
6444 (output_cgraph_opt_summary): New parameter set, passed to the two
6445 aforementioned functions. Update its forward declaration and its
6448 2011-01-05 Tom Tromey <tromey@redhat.com>
6450 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
6451 operator to c_finish_omp_atomic.
6452 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
6453 (build_unary_op): Update.
6454 (build_modify_expr): Update.
6455 (build_asm_expr): Update.
6457 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6459 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
6460 newly inserted insns.
6462 (spu_emit_branch_hint): Likewise.
6463 (insert_hbrp_for_ilb_runout): Likewise.
6464 (spu_machine_dependent_reorg): Call df_finish_pass after
6465 schedule_insns returns.
6467 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6469 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
6471 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
6473 PR tree-optimization/47005
6474 * tree-sra.c (struct access): Add 'non_addressable' bit.
6475 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
6476 (decide_one_param_reduction): Return 0 if the parameter is passed by
6477 reference and one of the accesses in the group is non_addressable.
6479 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
6481 PR tree-optimization/47056
6482 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
6483 (mark_load): Likewise. Handle FUNCTION_DECL specially.
6484 (mark_store): Likewise. Pass STMT to ipa_record_reference.
6486 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
6488 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
6489 initializer. Skip view conversions from aggregate types.
6491 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
6494 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
6496 2011-01-04 Philipp Thomas <pth@suse.de>
6498 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
6501 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6503 * function.c (thread_prologue_and_epilogue_insns): Do not crash
6504 on empty epilogue sequences.
6506 2011-01-04 Joseph Myers <joseph@codesourcery.com>
6508 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
6509 non-static): New Driver options.
6511 2011-01-04 Jie Zhang <jie@codesourcery.com>
6514 * gcc.c (default_compilers[]): Set combinable field to 0
6515 for all assembly languages.
6517 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
6519 * config/mips/loongson3a.md: New file.
6520 * config/mips/mips.md: Include loongson3a.md.
6521 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
6524 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
6527 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
6528 instead of convert_memory_address_addr_space on the base expression.
6530 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6532 * config/spu/spu.c (spu_option_override): Update error text
6533 for bad -march= / -mtune= values.
6535 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6537 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
6538 if branch-hint optimization will be performed.
6540 2011-01-03 Jakub Jelinek <jakub@redhat.com>
6542 PR tree-optimization/47148
6543 * ipa-split.c (split_function): Convert arguments to
6544 DECL_ARG_TYPE if possible.
6546 PR tree-optimization/47155
6547 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
6550 PR rtl-optimization/47157
6551 * combine.c (try_combine): If undobuf.other_insn becomes
6552 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
6553 and set *new_direct_jump_p too.
6555 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
6557 PR tree-optimization/47021
6558 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
6560 2011-01-03 Jakub Jelinek <jakub@redhat.com>
6562 * gcc.c (process_command): Update copyright notice dates.
6563 * gcov.c (print_version): Likewise.
6564 * gcov-dump.c (print_version): Likewise.
6565 * mips-tfile.c (main): Likewise.
6566 * mips-tdump.c (main): Likewise.
6568 2011-01-03 Martin Jambor <mjambor@suse.cz>
6570 PR tree-optimization/46801
6571 * tree-sra.c (type_internals_preclude_sra_p): Check whether
6572 aggregate fields start at byte boundary instead of the bit-field flag.
6574 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
6577 * gcc.c (main): Revert revision 168407.
6579 2011-01-03 Martin Jambor <mjambor@suse.cz>
6581 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
6583 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6585 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
6586 vector optab to expand vector/scalar shift, update gimple to vector.
6588 2011-01-03 Martin Jambor <mjambor@suse.cz>
6590 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
6593 2011-01-03 Martin Jambor <mjambor@suse.cz>
6595 PR tree-optimization/46984
6596 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
6598 (cgraph_create_indirect_edge): Fixed line length.
6599 (cgraph_indirect_call_info): Declare.
6600 (cgraph_make_edge_direct) Update declaration.
6601 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
6602 (cgraph_create_indirect_edge): Use it.
6603 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
6605 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
6606 the new thunk_delta representation.
6607 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
6609 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
6610 (ipa_read_indirect_edge_info): Likewise.
6611 * lto-cgraph.c (output_edge_opt_summary): New function.
6612 (output_node_opt_summary): Call it on all outgoing edges.
6613 (input_edge_opt_summary): New function.
6614 (input_node_opt_summary): Call it on all outgoing edges.
6616 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
6619 * gcc.c (main): Don't check have_o when settting combine_inputs.
6621 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
6623 * regrename.c: Add general comment describing the pass.
6624 (struct du_head): Remove 'length' field.
6625 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
6626 (regrename_optimize): Do not sort chains. Rework comments, add others.
6627 Force renaming to the preferred class (if any) in the first pass and do
6628 not consider registers that belong to it in the second pass.
6629 (create_new_chain): Do not set 'length' field.
6630 (scan_rtx_reg): Likewise.
6632 2011-01-02 Jakub Jelinek <jakub@redhat.com>
6634 PR tree-optimization/47140
6635 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
6636 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
6639 PR rtl-optimization/47028
6640 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
6641 parm_birth_insn instead of at the beginning of first bb.
6643 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
6645 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
6646 Remove the word "see" before "@pxref".
6647 * doc/rtl.texi: Remove the word "see" before "@pxref".
6649 2011-01-01 Jan Hubicka <jh@suse.cz>
6651 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
6654 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
6657 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
6660 Copyright (C) 2011 Free Software Foundation, Inc.
6662 Copying and distribution of this file, with or without modification,
6663 are permitted in any medium without royalty provided the copyright
6664 notice and this notice are preserved.