1 2011-03-26 Alan Modra <amodra@gmail.com>
4 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5 GNU Go in traceback table.
7 2011-03-25 Richard Henderson <rth@redhat.com>
9 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10 if there are exactly 6 operands.
11 (set_storage_via_setmem): Similarly.
13 2011-03-25 Kai Tietz <ktietz@redhat.com>
15 * collect2.c (write_c_file_stat): Handle backslash
16 as right-hand directory separator.
17 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
18 checking just for slash.
19 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
20 instead of checking for trailing slash.
21 * gcc.c (record_temp_file): Use filename_cmp instead
23 (do_spec_1): Likewise.
24 (replace_outfile_spec_function): Likewise.
25 (is_directory): Use filename_ncmp instead of strncmp.
26 (print_multilib_info): Likewise.
27 * gcov.c (find_source): Use filename_cmp instead
29 (make_gcov_file_name): Fix order of slash/backslash
31 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
32 (add_standard_paths): Likewise.
33 * mips-tfile.c (saber_stop): Handle backslash.
34 * prefix.c (update_path): Use filename_ncmp instead of
36 * profile.c (output_location): Use filename_cmp instead
38 * read-md.c (handle_toplevel_file): Handle backslash.
39 * tlink.c (frob_extension): Likewise.
40 * tree-cfg.c (same_line_p): Use filename_cmp instead of
42 * tree-dump.c (dequeue_and_dump): Handle backslash.
43 * tree.c (get_file_function_name): Likewise.
44 * gengtype.c (read_input_list): Likewise.
45 (get_file_realbasename): Likewise.
46 (get_output_file_with_visibility): Use filename_cmp
49 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
51 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
54 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
56 * fold-const.c (expr_location_or): New function.
57 (fold_truth_not_expr): Call it.
59 2011-03-25 Jeff Law <law@redhat.com>
61 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
63 * c-family/c-common.c (def_fn_type): Likewise.
64 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
65 * emit-rtl.c (gen_rtvec): Likewise.
66 * lto/lto-lang.c (def_fn_type): Likewise.
68 2011-03-25 Richard Guenther <rguenther@suse.de>
70 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
72 (fini_copy_prop): Handle constant values properly.
74 2011-03-25 Jakub Jelinek <jakub@redhat.com>
76 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
77 mode size instead of bitsize with DWARF2_ADDR_SIZE.
78 (hash_loc_operands, compare_loc_operands): Handle
79 DW_OP_GNU_entry_value.
81 2011-03-25 Kai Tietz <ktietz@redhat.com>
83 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
84 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
85 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
86 comment and use macro TARGET_64BIT_MS_ABI instead.
87 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
88 and change default behavior for 32-bit MS_ABI.
89 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
90 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
92 (ix86_cfun_abi): Likewise.
93 (ix86_maybe_switch_abi): Adjust comment.
94 (init_cumulative_args): Check for bit-ness in MS_ABI case.
95 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
96 instead of checking for SYSV_ABI.
97 (ix86_nsaved_sseregs): Likewise.
98 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
100 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
101 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
102 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
103 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
104 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
106 2011-03-25 Richard Guenther <rguenther@suse.de>
108 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
109 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
110 (verify_gimple): Remove.
111 * tree-cfg.c (verify_gimple_call): Merge verification
113 (verify_gimple_phi): Merge verification from verify_stmts.
114 (verify_gimple_label): New function.
115 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
116 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
117 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
118 (verify_stmts): Rename to verify_gimple_in_cfg.
119 (verify_gimple_in_cfg): New function.
120 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
121 * tree-ssa.c (verify_ssa): Likewise.
122 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
124 2011-03-25 Richard Guenther <rguenther@suse.de>
126 * passes.c (init_optimization_passes): Add FRE pass after
129 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
130 Andrew Stubbs <ams@codesourcery.com>
132 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
134 (arm_movdi_vfp_cortexa8): New pattern.
135 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
136 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
137 instructions when tuning for Cortex-A8. Set attribute "arch".
138 * config/arm/arm.md: Move include arm-tune.md up a bit.
139 (define_attr "arch"): Add "onlya8" and "nota8" values.
140 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
142 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
146 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
148 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
149 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
150 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
151 * passes.c (init_optimization_passes): Move
152 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
154 2011-03-25 Kai Tietz <ktietz@redhat.com>
156 * c-typeck.c (comptypes_internal): Replace target
157 hook call of comp_type_attributes by version in tree.c file.
158 * gimple.c (gimple_types_compatible_p_1): Likewise.
159 * tree-ssa.c (useless_type_conversion_p): Likewise.
160 * tree.c (build_type_attribute_qual_variant): Likewise.
161 (attribute_value_equal): New static helper function.
162 (comp_type_attributes): New function.
163 (merge_attributes): Use attribute_value_equal for comparison.
164 (attribute_list_contained): Likewise.
165 * tree.h (comp_type_attributes): New prototype.
167 2011-03-25 Richard Guenther <rguenther@suse.de>
169 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
170 of complex types at -O0.
171 (verify_gimple_assign_binary): Likewise.
172 (verify_gimple_assign_ternary): Likewise.
174 2011-03-24 Mark Wielaard <mjw@redhat.com>
176 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
177 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
179 2011-03-24 Mark Wielaard <mjw@redhat.com>
182 * dwarf2out.c (output_abbrev_section): Only write table when
183 abbrev_die_table_in_use > 1.
185 2011-02-24 Richard Henderson <rth@redhat.com>
187 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
188 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
189 (alpha_expand_unaligned_load_words): Use extql.
190 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
191 (emit_insxl): Handle all modes for consistency.
193 2011-02-24 Richard Henderson <rth@redhat.com>
195 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
196 (alpha_expand_unaligned_load): Likewise.
197 (alpha_expand_unaligned_store): Likewise.
198 (alpha_expand_unaligned_load_words): Likewise.
199 (alpha_expand_unaligned_store_words): Likewise.
200 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
201 (alpha_split_lock_test_and_set_12): Likewise.
202 (print_operand, alpha_fold_builtin_extxx): Likewise.
203 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
204 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
205 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
206 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
207 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
208 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
209 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
210 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
211 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
212 (extwl, extll, extql): Similarly.
213 (inswh, inslh, insqh): Similarly.
214 (mskbl, mskwl, mskll, mskql): Similarly.
215 (mskwh, msklh, mskqh): Similarly.
217 2011-02-24 Richard Henderson <rth@redhat.com>
219 * config/alpha/alpha.md (attribute isa): Add er, ner.
220 (attribute enabled): Handle them.
221 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
223 2011-02-24 Richard Henderson <rth@redhat.com>
225 * config/alpha/alpha.md (attribute isa): Add vms.
226 (attribute enabled): Handle it.
227 (*movsf): Merge *movsf_{nofix,fix,nofp}.
228 (*movdf): Merge *movdf_{nofix,fix,nofp}.
229 (*movtf): Rename from *movtf_internal for consistency.
230 (*movsi): Merge with *movsi_nt_vms.
231 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
232 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
233 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
234 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
236 2011-02-24 Richard Henderson <rth@redhat.com>
238 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
239 (extendqisi2, extendhisi2): Likewise.
240 (extendqidi2): Simplify BWX/non-BWX expansions.
241 (extendhidi2): Similarly.
243 2011-02-24 Richard Henderson <rth@redhat.com>
245 * config/alpha/alpha.md (attribute isa): New.
246 (attribute enabled): New.
247 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
248 (zero_extendqisi2, zero_extendqidi2): Similarly.
249 (zero_extendhisi2, zero_extendhidi2): Similarly.
250 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
252 2011-02-24 Richard Henderson <rth@redhat.com>
254 * config/alpha/predicates.md (input_operand): Revert last change;
255 update comment to mention 32-bit VMS rather than Windows.
257 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
259 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
260 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
261 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
262 * passes.c (init_optimization_passes): Move
263 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
265 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
267 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
269 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
271 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
274 2011-03-24 Jakub Jelinek <jakub@redhat.com>
277 * simplify-rtx.c (simplify_const_unary_operation): Call
278 real_convert when changing mode class with FLOAT_EXTEND.
280 2011-03-24 Nick Clifton <nickc@redhat.com>
282 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
283 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
284 * config/rx/rx.c (rx_option_override): Set align_jumps,
285 align_loops and align_labels if not set by the user.
286 (rx_align_for_label): New function.
287 (rx_max_skip_for_label): New function.
288 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
289 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
290 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
291 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
292 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
294 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
296 PR rtl-optimization/48263
297 * optabs.c (expand_binop_directly): Reinstate convert_modes code
298 and original commutative_p handling. Use maybe_gen_insn.
300 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
302 * reload.c (find_reloads_subreg_address): Add address_reloaded
303 parameter and return true there if the full address has been
305 (find_reloads_toplev): Pass address_reloaded flag.
306 (find_reloads_address_1): Don't use address_reloaded parameter.
308 2011-03-24 Jeff Law <law@redhat.com>
310 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
311 unused variable "ann".
312 (remove_unused_locals): Likewise.
314 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
317 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
320 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
322 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
323 for invalid symbolic addresses.
324 (s390_secondary_reload): Don't use s390_check_symref_alignment for
327 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
329 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
330 the argument in calls to fold_truth_not_expr.
332 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
334 * tree.c (record_node_allocation_statistics): New function.
335 (make_node_stat, copy_node_stat, build_string): Call it.
336 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
337 (build1_stat, build_omp_clause): Likewise.
339 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
341 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
344 2011-03-24 Richard Guenther <rguenther@suse.de>
346 PR tree-optimization/48271
347 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
348 blocks that still exist.
350 2011-03-24 Richard Guenther <rguenther@suse.de>
352 PR tree-optimization/48270
353 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
354 not free datarefs before ddrs.
356 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
358 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
359 from the address built for a reference with variable offset.
361 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
364 * config/i386/i386.md (*movdf_internal_rex64): Do not split
365 alternatives that can be handled with movq or movabsq insn.
366 (*movdf_internal): Disable for !TARGET_64BIT.
367 (*movdf_internal_nointeger): Ditto.
368 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
370 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
372 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
373 (FUNCTION_ARG_ADVANCE): Likewise.
374 * tm.texi.in: Change references to them to hook references.
375 * tm.texi: Regenerate.
376 * targhooks.c (default_function_arg): Eliminate check for target macro.
377 (default_function_incoming_arg): Likewise.
378 (default_function_arg_advance): Likewise.
379 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
380 (function_arg_advance): Likewise.
381 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
383 2011-03-24 Richard Guenther <rguenther@suse.de>
386 * tree-object-size.c (addr_object_size): Do not double-account
389 2011-03-24 Diego Novillo <dnovillo@google.com>
391 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
392 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
393 (lto_input_data_block): Move from lto-opts.c. Make extern.
395 (lto_input_string): Rename from input_string. Make extern.
397 * lto-streamer-out.c (lto_output_string_with_length): Rename from
398 output_string_with_length.
399 Output 0 to indicate a non-NULL string. Update all callers to
401 (lto_output_string): Rename from output_string. Make extern.
403 (lto_output_decl_state_streams): Make extern.
404 (lto_output_decl_state_refs): Make extern.
405 * lto-streamer.h (lto_input_string): Declare.
406 (lto_input_data_block): Declare.
407 (lto_output_string): Declare.
408 (lto_output_string_with_length): Declare.
409 (lto_output_decl_state_streams): Declare.
410 (lto_output_decl_state_refs): Declare.
412 2011-03-24 Richard Guenther <rguenther@suse.de>
414 PR tree-optimization/46562
415 * tree.c (build_invariant_address): New function.
416 * tree.h (build_invariant_address): Declare.
417 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
418 a renamed function moved ...
419 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
420 Take valueization callback parameter.
421 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
422 * gimple-fold.h: New file.
423 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
424 (ccp_fold, fold_const_aggregate_ref,
425 fold_ctor_reference, fold_nonarray_ctor_reference,
426 fold_array_ctor_reference, fold_string_cst_ctor_reference,
427 get_base_constructor): Move ...
428 * gimple-fold.c: ... here.
429 (gimple_fold_stmt_to_constant_1): New function
430 split out from ccp_fold. Take a valueization callback parameter.
431 Valueize all operands.
432 (gimple_fold_stmt_to_constant): New wrapper function.
433 (fold_const_aggregate_ref_1): New function split out from
434 fold_const_aggregate_ref. Take a valueization callback parameter.
435 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
436 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
437 invariant POINTER_PLUS_EXPRs to invariant form.
438 (vn_valueize): New function.
439 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
440 * tree-vrp.c (vrp_valueize): New function.
441 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
442 to fold statements to constants.
443 * tree-ssa-pre.c (eliminate): Properly guard propagation of
444 function declarations.
445 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
446 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
448 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
450 * config/h8300/predicates.md (jump_address_operand): Fix register
453 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
455 * doc/invoke.texi (max-stores-to-sink): Document.
456 * params.h (MAX_STORES_TO_SINK): Define.
457 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
458 if either vectorization or if-conversion is disabled.
459 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
460 tree-vect-data-refs.c vect_equal_offsets.
461 (dr_equal_offsets_p): New function.
462 (find_data_references_in_bb): Remove static.
463 * tree-data-ref.h (find_data_references_in_bb): Declare.
464 (dr_equal_offsets_p): Likewise.
465 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
466 (vect_drs_dependent_in_basic_block): Update calls to
468 (vect_check_interleaving): Likewise.
469 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
470 (cond_if_else_store_replacement): Rename to...
471 (cond_if_else_store_replacement_1): ... this. Change arguments and
473 (cond_if_else_store_replacement): New function.
474 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
475 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
477 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
480 * config/arm/arm.md (casesi): Use the gen_int_mode() function
481 to subtract lower bound instead of GEN_INT().
483 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
488 * doc/extend.texi (Alignment): Move section to match order in TOC.
489 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
490 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
492 2011-03-23 Jeff Law <law@redhat.com>
494 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
495 before removing the edge.
497 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
498 it may have been freed by redirect_branch_edge or
499 redirect_edge_succ_nodup.
501 2011-03-23 Richard Guenther <rguenther@suse.de>
503 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
504 (check_va_list_escapes): Likewise.
505 (check_all_va_list_escapes): Likewise.
507 2011-03-23 Richard Guenther <rguenther@suse.de>
509 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
510 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
511 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
513 (ipa-type-escape.o): Remove.
514 (ipa-struct-reorg.o): Likewise.
515 (GTFILES): Remove ipa-struct-reorg.c.
516 * alias.c: Do not include ipa-type-escape.h.
517 * tree-ssa-alias.c: Likewise.
518 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
519 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
520 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
521 and ipa-type-escape passes.
522 * tree-pass.h (pass_ipa_type_escape): Remove.
523 (pass_ipa_struct_reorg): Likewise.
524 * ipa-struct-reorg.h: Remove.
525 * ipa-struct-reorg.c: Likewise.
526 * ipa-type-escape.h: Likewise.
527 * ipa-type-escape.c: Likewise.
528 * doc/invoke.texi (-fipa-struct-reorg): Remove.
529 (--param struct-reorg-cold-struct-ratio): Likewise.
530 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
531 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
532 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
534 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
536 * config/s390/2084.md: Enable all insn reservations also for z9_ec
538 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
539 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
540 * config/s390/s390.c (processor_flags_table): New constant array.
541 (s390_handle_arch_option): Remove.
542 (s390_handle_option): Remove s390_handle_arch_option invocations
543 and OPT_mwarn_framesize_ handling.
544 (s390_option_override): Remove s390_handle_arch_option invocation.
545 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
547 * config/s390/s390.md (cpu attribute): Add z9_ec value.
548 * config/s390/s390.opt (s390_tune, s390_arch)
549 (march=): Replace s390_arch_option enum and values with
550 processor_type. Set variable name to s390_arch. Set
551 initialization value.
552 (mtune=): Replace s390_arch_option with processor_type. Set
553 variable name to s390_tune. Set initialization value.
555 2011-03-23 Julian Brown <julian@codesourcery.com>
557 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
558 accesses which are not naturally aligned.
560 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
563 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
565 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
567 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
568 parameter from "int" to "enum insn_code".
569 (expand_operand_type): New enum.
570 (expand_operand): New structure.
571 (create_expand_operand): New function.
572 (create_fixed_operand, create_output_operand): Likewise
573 (create_input_operand, create_convert_operand_to): Likewise.
574 (create_convert_operand_from, create_address_operand): Likewise.
575 (create_integer_operand): Likewise.
576 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
577 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
578 (expand_insn, expand_jump_insn): Likewise.
579 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
580 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
581 (expand_movstr, expand_builtin___clear_cache): Likewise.
582 (expand_builtin_lock_release): Likewise.
583 * explow.c (allocate_dynamic_stack_space): Likewise.
584 (probe_stack_range): Likewise. Allow check_stack to FAIL,
585 and use the default handling in that case.
586 * expmed.c (check_predicate_volatile_ok): Delete.
587 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
588 (emit_cstore): Likewise.
589 * expr.c (emit_block_move_via_movmem): Likewise.
590 (set_storage_via_setmem, expand_assignment): Likewise.
591 (emit_storent_insn, try_casesi): Likewise.
592 (emit_single_push_insn): Likewise. Allow the expansion to fail.
593 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
594 (expand_vec_shift_expr, expand_binop_directly): Likewise.
595 (expand_twoval_unop, expand_twoval_binop): Likewise.
596 (expand_unop_direct, emit_indirect_jump): Likewise.
597 (emit_conditional_move, vector_compare_rtx): Likewise.
598 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
599 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
600 (expand_sync_lock_test_and_set): Likewise.
601 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
602 (emit_unop_insn): Likewise.
603 (expand_copysign_absneg): Change icode to an insn_code.
604 (create_convert_operand_from_type): New function.
605 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
606 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
607 (expand_insn, expand_jump_insn): Likewise.
608 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
609 than const_int_operand for operand 2.
611 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
613 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
616 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
618 * emit-rtl.c (emit_pattern_before_noloc): New function.
619 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
620 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
621 (emit_pattern_after_noloc): New function.
622 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
623 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
625 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
627 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
628 (__ffsDI2): Likewise.
630 2011-03-22 Richard Henderson <rth@redhat.com>
632 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
633 of !TARGET_ABI_OPEN_VMS.
634 (alpha_trampoline_init, alpha_start_function): Likewise.
635 (alpha_expand_epilogue, alpha_file_start): Likewise.
636 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
637 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
638 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
639 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
640 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
642 2011-03-22 Joseph Myers <joseph@codesourcery.com>
644 * config/s390/s390-opts.h: New.
645 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
646 s390_arch_flags, s390_warn_framesize, s390_stack_size,
647 s390_stack_guard): Remove.
648 (s390_handle_arch_option): Return void. Take enum
649 s390_arch_option value instead of string and searching array.
650 (s390_handle_option): Don't assert that global structures are in
651 use. Access variables via opts pointer. Use error_at. Don't use
652 sscanf for -mstack-guard= or -mstack-size=. Update call to
653 s390_handle_arch_option.
654 (s390_option_override): Update call to s390_handle_arch_option.
655 (s390_emit_prologue): Use %d format for s390_stack_size in
656 diagnostic. Use %wd for HOST_WIDE_INT.
657 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
658 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
659 * config/s390/s390.opt (config/s390/s390-opts.h): New
661 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
662 s390_arch_flags, s390_warn_framesize): New Variable entries.
663 (s390_arch_option): New Enum and EnumValue entries.
664 (march=): Use Enum instead of Var.
665 (mstack-guard=, mstack-size=): Use UInteger and Var.
668 2011-03-22 Joseph Myers <joseph@codesourcery.com>
670 * config/score/score.c (score_handle_option): Don't assert that
671 global structures are in use. Access target_flags via opts
672 pointer. Use value of -march= option to determine target_flags
674 * config/score/score.opt (march=): Use Enum.
675 (score_arch): New Enum and EnumValue entries.
677 2011-03-22 Joseph Myers <joseph@codesourcery.com>
679 * config/mep/mep.c (option_mtiny_specified): Remove.
680 (mep_option_override): Move register handling for -mivc2 from
681 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
682 instead of option_mtiny_specified.
683 (mep_handle_option): Access target_flags via opts pointer. Don't
684 assert that global structures are in use. Defer part of -mivc2
685 handling and move it to mep_option_override.
686 * config/mep/mep.opt (IVC2): New Mask entry.
687 (mivc2): Use Var and Defer instead of Mask.
689 2011-03-22 Joseph Myers <joseph@codesourcery.com>
691 * config/v850/v850-opts.h: New.
692 * config/v850/v850.c (small_memory): Replace with
693 small_memory_physical_max array. Make that array static const.
694 (v850_handle_memory_option): Take integer value of argument. Take
695 gcc_options pointer, option text and location. Return void.
696 Update for changes to small memory structures.
697 (v850_handle_option): Access target_flags via opts pointer. Don't
698 assert that global structures are in use. Update calls to
699 v850_handle_memory_option.
700 (v850_encode_data_area): Update references to small memory settings.
701 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
702 (enum small_memory_type): Move to v850-opts.h.
703 * config/v850/v850.opt (config/v850/v850-opts.h): New
705 (small_memory_max): New Variable entry.
706 (msda): Replace by pair of options msda= and msda-. Use UInteger.
707 (mtda, mzda): Likewise.
709 2011-03-22 Joseph Myers <joseph@codesourcery.com>
711 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
712 pointer. Don't assert that global structures are in use.
714 2011-03-22 Joseph Myers <joseph@codesourcery.com>
716 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
717 via opts pointer. Don't assert that global structures are in use.
719 2011-03-22 Joseph Myers <joseph@codesourcery.com>
721 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
723 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
724 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
725 * config/pa/pa-opts.h: New.
726 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
727 (pa_handle_option): Don't assert that global structures are in
728 use. Access target_flags via opts pointer. Don't handle
729 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
731 (pa_option_override): Handle deferred OPT_mfixed_range_.
733 2011-03-22 Joseph Myers <joseph@codesourcery.com>
735 * config/mn10300/mn10300-opts.h: New.
736 * config/mn10300/mn10300.c (mn10300_processor,
737 mn10300_tune_string): Remove.
738 (mn10300_handle_option): Don't assert that global structures are
739 in use. Access mn10300_processor via opts pointer. Don't handle
741 * config/mn10300/mn10300.h (enum processor_type): Move to
743 (mn10300_processor): Remove.
744 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
746 (mn10300_processor): New Variable entry.
749 2011-03-22 Joseph Myers <joseph@codesourcery.com>
751 * config/microblaze/microblaze.c: Don't include opts.h.
752 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
753 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
754 (mno-clearbss): Use Var and Warn.
756 2011-03-22 Joseph Myers <joseph@codesourcery.com>
758 * config/m32r/m32r-opts.h: New.
759 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
760 (m32r_handle_option): Don't assert that global structures are in
761 use. Access target_flags and m32r_cache_flush_func via opts
762 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
763 OPT_mno_flush_trap here.
764 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
765 include of m32r-opts.h.
766 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
768 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
769 (mmodel=): Use Enum and Var.
770 (m32r_model): New Enum and EnumValue entries.
771 (mno-flush-trap): Use Var.
772 (msdata=): Use Enum and Var.
773 (m32r_sdata): New Enum and EnumValue entries.
775 2011-03-22 Joseph Myers <joseph@codesourcery.com>
777 * config/m32c/m32c.c: Don't include opts.h.
778 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
779 m32c_handle_option): Remove.
780 (m32c_option_override): Check global_options_set.x_target_memregs
781 instead of target_memregs_set.
782 * config/m32c/m32c.h (target_memregs): Remove.
783 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
786 2011-03-22 Joseph Myers <joseph@codesourcery.com>
788 * config/iq2000/iq2000-opts.h: New.
789 * config/iq2000/iq2000.c: Don't include opts.h.
790 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
791 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
792 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
794 (iq2000_tune): New Variable entry.
795 (march=): Add comment. Use Enum.
796 (iq2000_arch): New Enum and EnumValue entries.
797 (mcpu=): Use Enum and Var.
798 (iq2000_tune): New Enum and EnumValue entries.
800 2011-03-22 Joseph Myers <joseph@codesourcery.com>
802 * config/ia64/ia64-opts.h: New.
803 * config/ia64/ia64.c (ia64_tune): Remove.
804 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
806 (ia64_option_override): Handle deferred OPT_mfixed_range_.
807 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
808 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
810 (ia64_tune): New Variable entry.
811 (mfixed-range=): Use Defer and Var.
812 (mtune=): Use Enum and Var.
813 (ia64_tune): New Enum and EnumValue entries.
815 2011-03-22 Joseph Myers <joseph@codesourcery.com>
817 * config/frv/frv-opts.h: New.
818 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
820 (frv_cpu_type): Remove.
821 * config/frv/frv.c: Don't include opts.h.
822 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
823 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
824 (frv_cpu_type): New Variable entry.
825 (frv_cpu): New Enum and EnumValue entries.
827 2011-03-22 Joseph Myers <joseph@codesourcery.com>
829 * config/cris/cris.c (cris_handle_option): Access target_flags via
830 opts pointer. Don't assert that global structures are in use.
831 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
832 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
834 2011-03-22 Joseph Myers <joseph@codesourcery.com>
836 * config/bfin/bfin-opts.h: New.
837 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
838 bfin_si_revision, bfin_workarounds): Remove.
839 (bfin_cpus): Make static const.
840 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
841 not bfin_lib_id_given.
842 (bfin_handle_option): Don't set bfin_lib_id_given. Access
843 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
844 pointer. Use error_at. Don't assert that global structures are in use.
845 * config/bfin/bfin.h: Include bfin-opts.h.
846 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
847 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
848 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
849 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
854 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
855 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
856 or -msoft-float here.
857 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
858 -msoft-float and -mhard-float.
859 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
860 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
862 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
864 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
865 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
867 (LIBGCC_SPEC): Don't handle -msoft-float.
868 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
870 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
872 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
873 -mfloat-abi=*, not -msoft-float and -mhard-float.
874 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
876 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
877 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
878 mhard-float and msoft-float.
879 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
880 mfloat-abi=soft in comments, not mhard-float and msoft-float.
881 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
882 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
884 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
885 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
887 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
889 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
892 2011-03-22 Richard Henderson <rth@redhat.com>
894 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
895 TARGET_ABI_WINDOWS_NT.
896 (alpha_output_function_end_prologue): Likewise.
897 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
898 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
899 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
900 (trap, *movsi_nt_vms): Likewise.
901 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
902 (*tablejump_osf_nt_internal): Remove.
903 * config/alpha/predicates.md (input_operand): Only test Pmode.
905 2011-03-22 Joseph Myers <joseph@codesourcery.com>
907 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
908 via opts pointer. Use error_at. Don't assert that global
909 structures are in use.
911 2011-03-22 Joseph Myers <joseph@codesourcery.com>
913 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
914 (ix86_handle_option): Access ix86_isa_flags and
915 ix86_isa_flags_explicit via opts pointer. Don't assert that
916 global structures are in use.
917 (ix86_function_specific_save, ix86_function_specific_restore):
918 Update ix86_isa_flags_explicit field name.
919 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
920 (ix86_isa_flags_explicit): Rename TargetSave entry to
921 x_ix86_isa_flags_explicit.
923 2011-03-22 Richard Henderson <rth@redhat.com>
925 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
926 (alpha_option_override, direct_return): Likewise.
927 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
928 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
929 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
930 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
931 (alpha_expand_epilogue, alpha_end_function): Likewise.
932 (alpha_init_libfuncs): Likewise.
933 (struct machine_function): Remove unicosmk members.
934 (print_operand) ['t']: Remove.
935 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
936 unicosmk_output_module_name, unicosmk_output_common,
937 current_section_align, unicosmk_output_text_section_asm_op,
938 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
939 unicosmk_section_type_flags, unicosmk_unique_section,
940 unicosmk_asm_named_section, unicosmk_insert_attributes,
941 unicosmk_output_align, unicosmk_defer_case_vector,
942 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
943 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
944 unicosmk_output_ssib, unicosmk_add_call_info_word,
945 unicosmk_extern_head, unicosmk_output_default_externs,
946 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
947 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
948 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
949 * config/alpha/alpha-protos.h: Update.
950 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
951 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
952 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
953 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
954 (*mulsi_se, mulvsi3): Likewise.
955 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
956 (*divmodsi_internal, call, call_value, realign): Likewise.
957 (moddi3, umoddi3): Likewise; remove duplicate expander.
958 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
959 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
960 (*movdi_nofix): Remove r/U alternative.
961 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
962 * config/alpha/constraints.md ("U"): Remove.
963 * config/alpha/predicates.md (call_operand"): Don't test
966 2011-03-22 Joseph Myers <joseph@codesourcery.com>
968 * target.def (handle_option): Take gcc_options and
969 cl_decoded_option pointers and location_t.
970 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
971 * doc/tm.texi: Regenerate.
972 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
973 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
974 * lto-opts.c (lto_reissue_options): Generate option structure for
975 targetm.handle_option call.
976 * opts.c (target_handle_option): Update call to
977 targetm.handle_option. Remove assertions about values now passed
979 * targhooks.c (default_target_handle_option): New.
980 * targhooks.h (default_target_handle_option): Declare.
981 * config/alpha/alpha.c: Include opts.h.
982 (alpha_handle_option): Update to new hook interface.
983 * config/arm/arm.c: Include opts.h.
984 (arm_handle_option): Update to new hook interface.
985 * config/arm/t-arm (arm.o): Update dependencies.
986 * config/bfin/bfin.c: Include opts.h.
987 (bfin_handle_option): Update to new hook interface.
988 * config/cris/cris.c: Include opts.h.
989 (cris_handle_option): Update to new hook interface.
990 * config/frv/frv.c: Include opts.h.
991 (frv_handle_option): Update to new hook interface.
992 * config/i386/i386.c: Include opts.h.
993 (ix86_handle_option): Update to new hook interface.
994 (ix86_valid_target_attribute_inner_p): Generate option structure
995 for call to ix86_handle_option.
996 * config/i386/t-i386 (i386.o): Update dependencies.
997 * config/ia64/ia64.c: Include opts.h.
998 (ia64_handle_option): Update to new hook interface.
999 * config/ia64/t-ia64 (ia64.o): Update dependencies.
1000 * config/iq2000/iq2000.c: Include opts.h.
1001 (iq2000_handle_option): Update to new hook interface.
1002 * config/m32c/m32c.c: Include opts.h.
1003 (m32c_handle_option): Update to new hook interface.
1004 * config/m32r/m32r.c: Include opts.h.
1005 (m32r_handle_option): Update to new hook interface.
1006 * config/m68k/m68k.c: Include opts.h.
1007 (m68k_handle_option): Update to new hook interface.
1008 * config/mep/mep.c: Include opts.h.
1009 (mep_handle_option): Update to new hook interface.
1010 * config/microblaze/microblaze.c: Include opts.h.
1011 (microblaze_handle_option): Update to new hook interface.
1012 * config/mips/mips.c: Include opts.h.
1013 (mips_handle_option): Update to new hook interface.
1014 * config/mn10300/mn10300.c: Include opts.h.
1015 (mn10300_handle_option): Update to new hook interface.
1016 * config/pa/pa.c: Include opts.h.
1017 (pa_handle_option): Update to new hook interface.
1018 * config/pdp11/pdp11.c: Include opts.h.
1019 (pdp11_handle_option): Update to new hook interface.
1020 * config/rs6000/rs6000.c: Include opts.h.
1021 (rs6000_handle_option): Update to new hook interface.
1022 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1023 * config/rx/rx.c: Include opts.h.
1024 (rx_handle_option): Update to new hook interface.
1025 * config/s390/s390.c: Include opts.h.
1026 (s390_handle_option): Update to new hook interface.
1027 * config/score/score.c: Include opts.h.
1028 (score_handle_option): Update to new hook interface.
1029 * config/sh/sh.c: Include opts.h.
1030 (sh_handle_option): Update to new hook interface.
1031 * config/sparc/sparc.c: Include opts.h.
1032 (sparc_handle_option): Update to new hook interface.
1033 * config/v850/v850.c: Include opts.h.
1034 (v850_handle_option): Update to new hook interface.
1036 2011-03-22 Joseph Myers <joseph@codesourcery.com>
1038 * gcc.c (driver_unknown_option_callback): Only permit and save
1039 unknown -Wno- options.
1040 (driver_wrong_lang_callback): Save options directly instead of via
1041 driver_unknown_option_callback.
1043 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1045 * combine.c (simplify_set): Try harder to find the best CC mode when
1046 simplifying a nested COMPARE on the RHS.
1048 2011-03-22 Joseph Myers <joseph@codesourcery.com>
1050 * config/alpha/gnu.h: Remove.
1051 * config/arc: Remove directory.
1052 * config/arm/netbsd.h: Remove.
1053 * config/arm/t-pe: Remove.
1054 * config/crx: Remove directory.
1055 * config/i386/netbsd.h: Remove.
1056 * config/m68hc11: Remove directory.
1057 * config/m68k/uclinux-oldabi.h: Remove.
1058 * config/mcore/mcore-pe.h: Remove.
1059 * config/mcore/t-mcore-pe: Remove.
1060 * config/netbsd-aout.h: Remove.
1061 * config/rs6000/gnu.h: Remove.
1062 * config/sh/sh-symbian.h: Remove.
1063 * config/sh/symbian-base.c: Remove.
1064 * config/sh/symbian-c.c: Remove.
1065 * config/sh/symbian-cxx.c: Remove.
1066 * config/sh/symbian-post.h: Remove.
1067 * config/sh/symbian-pre.h: Remove.
1068 * config/sh/t-symbian: Remove.
1069 * config/svr3.h: Remove.
1070 * config/vax/netbsd.h: Remove.
1071 * config.build: Don't handle i[34567]86-*-pe.
1072 * config.gcc: Remove handling of deprecations for most deprecated
1074 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
1075 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
1076 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
1077 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
1078 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
1079 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
1081 * config.host: Don't handle i[34567]86-*-pe.
1082 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
1083 (ASM_SPEC32): Don't handle -mcall-gnu.
1084 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
1086 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
1087 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
1088 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
1089 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
1090 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
1091 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
1092 conditional on SYMBIAN.
1093 * configure.ac: Don't handle powerpc*-*-gnu*.
1094 * configure: Regenerate.
1095 * doc/extend.texi (interrupt attribute): Don't mention CRX.
1096 * doc/install-old.texi (m6811, m6812): Don't mention.
1097 * doc/install.texi (arc-*-elf*): Don't document multilib option.
1098 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
1099 (m68k-uclinuxoldabi): Don't mention.
1100 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
1102 (-mcall-gnu): Remove.
1103 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
1104 families): Remove constraint documentation.
1106 2011-03-22 Marius Strobl <marius@FreeBSD.org>
1108 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
1109 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
1110 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
1112 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
1114 * config/avr/avr-protos.h (expand_epilogue): Change prototype
1115 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
1116 * config/avr/avr.c (init_cumulative_args)
1117 (avr_function_arg_advance): Use it.
1118 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
1120 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
1121 (avr_function_ok_for_sibcall): ...this new function.
1122 (avr_lookup_function_attribute1): New static Function.
1123 (avr_naked_function_p, interrupt_function_p)
1124 (signal_function_p, avr_OS_task_function_p)
1125 (avr_OS_main_function_p): Use it.
1126 * config/avr/avr.md ("sibcall", "sibcall_value")
1127 ("sibcall_epilogue"): New expander.
1128 ("*call_insn", "*call_value_insn"): New insn.
1129 ("call_insn", "call_value_insn"): Remove
1130 ("call", "call_value", "epilogue"): Change expander to handle
1133 2011-03-21 Nick Clifton <nickc@redhat.com>
1135 * doc/invoke.texi (Overall Options): Move closing brace to end of
1137 (Optimization Options): Add missing @gol.
1138 (Directory Options): Likewise.
1139 (i386 and x86-64 Options): Likewise.
1140 (RS6000 and PowerPC Options): Likewise.
1141 (i386 and x86-64 Windows Options): Likewise.
1142 (V850 Options): Add text missing from descriptions.
1144 2011-03-22 Richard Henderson <rth@redhat.com>
1146 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
1147 (avr_incoming_return_addr_rtx): New.
1148 (emit_push_byte): New.
1149 (expand_prologue): Use it. Remove incorrect dwarf annotation for
1150 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
1151 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
1152 (emit_pop_byte): New.
1153 (expand_epilogue): Use it. Pop frame pointer by bytes.
1154 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
1155 (INCOMING_RETURN_ADDR_RTX): New.
1156 (INCOMING_FRAME_SP_OFFSET): New.
1157 (ARG_POINTER_CFA_OFFSET): New.
1158 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
1159 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
1162 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
1164 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
1166 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
1167 (FUNCTION_ARG_ADVANCE): Likewise.
1168 * tm.texi.in: Change references to them to hook references.
1169 * tm.texi: Regenerate.
1170 * targhooks.c (default_function_arg): Eliminate check for target
1172 (default_function_incoming_arg): Likewise.
1173 (default_function_arg_advance): Likewise.
1174 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
1175 (function_arg_advance): Likewise.
1176 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
1178 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
1180 * tree.c (build_call_1): New function.
1181 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
1183 2011-03-22 Richard Guenther <rguenther@suse.de>
1185 PR tree-optimization/48228
1186 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
1187 for single-arg PHIs.
1189 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
1191 PR rtl-optimization/48143
1192 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
1193 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
1194 sse2_cvtps2pd): Likewise.
1196 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1198 * recog.c (canonicalize_change_group): Use validate_unshare_change.
1200 2011-03-22 Richard Guenther <rguenther@suse.de>
1202 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
1203 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
1204 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
1205 and REALIGN_LOAD_EXPR.
1206 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
1207 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
1208 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
1209 DOT_PROD_EXPR case ...
1210 (expand_expr_real_2): ... here.
1211 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
1212 and REALIGN_LOAD_EXPR.
1213 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
1214 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
1215 (vect_create_epilog_for_reduction): Likewise.
1216 (vectorizable_reduction): Likewise.
1217 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
1218 * tree-vect-stmts.c (vectorizable_load): Likewise.
1220 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1222 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
1224 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1226 * config/s390/s390.c (s390_delegitimize_address): Fix offset
1227 handling for PLTOFF/GOTOFF.
1229 2011-03-22 Nick Clifton <nickc@redhat.com>
1231 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
1232 trailing backslash from the end of the macro definition.
1234 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1236 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
1239 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
1241 * expr.h (prepare_operand): Move to...
1242 * optabs.h (prepare_operand): ...here and change the insn code
1243 parameter from "int" to "enum insn_code".
1244 (insn_operand_matches): Declare.
1245 * expr.c (init_expr_target): Use insn_operand_matches.
1246 (compress_float_constant): Likewise.
1247 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
1248 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
1249 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
1250 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
1252 (gen_cond_trap): Likewise.
1253 (prepare_operand): Likewise. Change icode to an insn_code.
1254 (insn_operand_matches): New function.
1255 * reload.c (find_reloads_address_1): Use insn_operand_matches.
1256 * reload1.c (gen_reload): Likewise.
1257 * targhooks.c (default_secondary_reload): Likewise.
1259 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
1261 * config/alpha/alpha.md (unspec): New define_c_enum.
1264 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
1267 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
1268 between a call and its CALL_ARG_LOCATION note.
1270 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
1272 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
1274 2011-03-21 Jakub Jelinek <jakub@redhat.com>
1278 * c-common.c (shorten_compare): If primopN is first sign-extended
1279 to opN and then zero-extended to result type, set primopN to opN.
1281 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1283 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
1284 for barrier handlers.
1286 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1288 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
1289 UNSPEC constants to be in the unspec enumeration, and redefine
1290 all UNSPECV constants to be in the unspecv enumeration, so that
1291 dumps print which unspec/unspec_volatile this is.
1292 * config/rs6000/vector.md (UNSPEC_*): Ditto.
1293 * config/rs6000/paired.md (UNSPEC_*): Ditto.
1294 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
1295 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
1296 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
1298 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
1299 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
1300 UNSPECV_LWSYNC, since these are used as unspec_volatile.
1301 * config/rs6000/sync.md (isync, lwsync): Ditto.
1303 2011-03-21 Richard Guenther <rguenther@suse.de>
1305 * params.def (lto-min-partition): Fix typo.
1307 2011-03-21 Richard Guenther <rguenther@suse.de>
1310 * c-decl.c (grokdeclarator): Drop to the main variant only
1311 for array types. Drop flag_gen_aux_info check.
1313 2011-03-21 Richard Guenther <rguenther@suse.de>
1315 PR translation/47911
1316 * params.def (lto-partitions): Fix typo.
1317 (lto-min-partition): Fix wording.
1319 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
1321 * config/rs6000/t-freebsd: Remove duplication from file.
1323 2011-03-21 Richard Guenther <rguenther@suse.de>
1326 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
1328 2011-03-21 Richard Guenther <rguenther@suse.de>
1331 * params.def (lto-partitions): Require at least 1 partition.
1333 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1335 * gthr-solaris.h: Remove.
1336 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
1337 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
1338 (LIB_SPEC): Likewise.
1339 * config/sol2.opt (threads): Remove.
1340 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
1341 (sparc*-*-solaris2*): Likewise.
1342 * configure.ac (enable_threads): Enable solaris support.
1343 * configure: Regenerate.
1344 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
1345 * doc/install.texi (Configuration, --enable-threads=lib): Remove
1348 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1350 * config.gcc: Obsolete *-*-solaris2.8*.
1351 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1353 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1356 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
1357 reference. Solaris 8 perl works.
1359 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1362 * doc/install.texi (Prerequisites): Move jar etc. up.
1363 Explain support library version requirements.
1365 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1368 * doc/install.texi (Prerequisites): Move Perl to build
1369 requirements. Always necessary on Solaris 2 with Sun ld.
1371 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1373 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
1375 (Specific, i?86-*-solaris2.[89]): Likewise.
1376 (Specific, i?86-*-solaris2.10): Likewise.
1377 (Specific, mips-sgi-irix6): Likewise.
1378 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
1379 Update for binutils 2.21.
1381 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1383 * configure.ac (gcc_cv_lto_plugin): Fix typo.
1384 Allow -fuse-linker-plugin for non-default plugin linker.
1385 * configure: Regenerate.
1387 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
1390 * gengtype.c (files_rules): Added rule for cp/parser.h.
1392 2011-03-21 Jakub Jelinek <jakub@redhat.com>
1395 * config/s390/s390.c (s390_delegitimize_address): Don't call
1396 lowpart_subreg if orig_x has BLKmode.
1398 2011-03-21 Kai Tietz <ktietz@redhat.com>
1401 * doc/plugins.texi: Adjust documentation for plugin register_callback.
1402 * tree.h (attribute_spec): Add new member affects_type_identity.
1403 * attribs.c (empty_attribute_table): Adjust attribute_spec
1405 * config/alpha/alpha.c: Likewise.
1406 * config/arc/arc.c: Likewise.
1407 * config/arm/arm.c: Likewise.
1408 * config/avr/avr.c: Likewise.
1409 * config/bfin/bfin.c: Likewise.
1410 * config/crx/crx.c: Likewise.
1411 * config/darwin.h: Likewise.
1412 * config/h8300/h8300.c: Likewise.
1413 * config/i386/cygming.h: Likewise.
1414 * config/i386/i386.c: Likewise.
1415 * config/ia64/ia64.c: Likewise.
1416 * config/m32c/m32c.c: Likewise.
1417 * config/m32r/m32r.c: Likewise.
1418 * config/m68hc11/m68hc11.c: Likewise.
1419 * config/m68k/m68k.c: Likewise.
1420 * config/mcore/mcore.c: Likewise.
1421 * config/mep/mep.c: Likewise.
1422 * config/microblaze/microblaze.c: Likewise.
1423 * config/mips/mips.c: Likewise.
1424 * config/rs6000/rs6000.c: Likewise.
1425 * config/rx/rx.c: Likewise.
1426 * config/sh/sh.c: Likewise.
1427 * config/sol2.h: Likewise.
1428 * config/sparc/sparc.c: Likewise.
1429 * config/spu/spu.c: Likewise.
1430 * config/stormy16/stormy16.c: Likewise.
1431 * config/v850/v850.c: Likewise.
1433 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
1435 * simplify-rtx.c (simplify_binary_operation_1): Handle
1436 (xor (and A B) C) case when B and C are both constants.
1438 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
1440 * tree-dfa.c (add_referenced_var): Fix typo in comment.
1442 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
1445 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
1447 2011-03-20 Jakub Jelinek <jakub@redhat.com>
1449 PR rtl-optimization/48156
1450 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
1451 assume df and df_lr are not NULL.
1453 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1456 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
1457 between a call and its CALL_ARG_LOCATION note.
1459 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
1462 * config/sh/sh.c (find_barrier): Don't emit a constant pool
1463 between a call and its corresponding CALL_ARG_LOCATION note.
1465 2011-03-19 Anatoly Sokolov <aesok@post.ru>
1467 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
1468 instead of loop. Use HARD_REGISTER_NUM_P predicate.
1469 * haifa-sched.c (setup_ref_regs): Ditto.
1470 * caller-save.c (add_used_regs_1): Ditto.
1471 * dse.c (look_for_hardregs): Ditto.
1472 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
1473 * sched-rgn.c (check_live_1): Ditto.
1475 2011-03-18 Joseph Myers <joseph@codesourcery.com>
1477 * c-decl.c (diagnose_mismatched_decls): Give an error for
1478 redefining a typedef with variably modified type.
1480 2011-03-18 Joseph Myers <joseph@codesourcery.com>
1482 * c-decl.c (grokfield): Don't allow typedefs for structures or
1483 unions with no tag by default.
1484 * doc/extend.texi (Unnamed Fields): Update.
1486 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
1488 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1489 Rewrite using indirect functions.
1490 (lwp_slwpcb): Ditto.
1491 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
1492 (avx_vinsertf128<mode>): Ditto.
1494 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1496 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
1499 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1501 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
1502 splitting between a call and its corresponding CALL_ARG_LOCATION note.
1504 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
1506 PR rtl-optimization/48170
1507 * gcse.c (hoist_code): Remove bogus asserts.
1509 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
1511 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
1512 computation for prologue/epilogue.
1514 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1516 * Makefile.in (check-consistency): Remove.
1518 2011-03-18 Jakub Jelinek <jakub@redhat.com>
1521 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
1522 arange_table_in_use is 0, but either text_section_used or
1523 cold_text_section_used is true. Don't call it if
1524 !info_section_emitted.
1526 2011-03-18 Anatoly Sokolov <aesok@post.ru>
1528 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
1529 FUNCTION_VALUE_REGNO_P): Remove.
1530 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
1532 * config/avr/avr.c (avr_ret_register): Make static inline.
1533 (avr_function_value_regno_p): New function.
1534 (avr_libcall_value): Make static. Add 'func' argument.
1535 (avr_function_value): Make static. Rename 'func' argument to
1536 'fn_decl_or_type', forward it to avr_libcall_value. Call
1537 avr_ret_register function instead of RET_REGISTER macro.
1538 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1540 2011-03-18 Jason Merrill <jason@redhat.com>
1543 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
1545 2011-03-18 Richard Guenther <rguenther@suse.de>
1547 * doc/install.texi (--enable-gold): Remove.
1548 (--with-plugin-ld): Document.
1549 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
1551 2011-03-18 Andrew Pinski <pinskia@gmail.com>
1554 * expr.c (optimize_bitfield_assignment_op): Revamp to work
1555 again after expansion changes.
1557 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
1559 * combine.c (try_combine): Do simplification only call of
1560 subst() on i2 even when i1 is present. Update comments.
1562 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
1564 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
1565 and UNSPEC_PCREL_SYMOFF.
1567 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1569 * config/s390/s390.md: Use define_c_enum for the unspec constant
1572 2011-03-18 Richard Henderson <rth@redhat.com>
1573 Jakub Jelinek <jakub@redhat.com>
1576 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
1577 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
1579 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1582 * combine.c (cant_combine_insn_p): Don't check zero/sign
1583 extended hard registers.
1585 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1588 * combine.c (cant_combine_insn_p): Check zero/sign extended
1591 2011-03-17 Anatoly Sokolov <aesok@post.ru>
1593 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1594 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
1595 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
1596 Change return type to bool.
1597 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1599 2011-03-17 Jakub Jelinek <jakub@redhat.com>
1602 * var-tracking.c (prepare_call_arguments): If CALL target
1603 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
1604 pc instead of looking it up using cselib_lookup and use
1605 Pmode for it if x has VOIDmode.
1606 * dwarf2out.c (gen_subprogram_die): If also both first and
1607 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
1610 * function.c (assign_parms): For data.passed_pointer parms
1611 use MEM of data.entry_parm instead of data.entry_parm itself
1612 as DECL_INCOMING_RTL.
1613 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
1614 also when passed and declared mode is the same, DECL_RTL
1615 is a MEM with pseudo as address and DECL_INCOMING_RTL is
1618 2011-03-16 Jeff Law <law@redhat.com>
1620 PR rtl-optimization/37273
1621 * ira-costs.c (scan_one_insn): Detect constants living in memory and
1622 handle them like argument loads from stack slots. Do not double
1623 count memory for memory constants and argument loads from stack slots.
1625 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1628 * var-tracking.c (prepare_call_arguments): Check SUBREG.
1630 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1633 * config/i386/i386.opt: Add Save to -mavx and -mfma.
1635 2011-03-17 Jakub Jelinek <jakub@redhat.com>
1638 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
1640 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
1641 Clear call_arg_locations and call_arg_loc_last always.
1644 * var-tracking.c (prepare_call_arguments): If argument needs to be
1645 passed by reference, adjust argtype and mode.
1647 2011-03-17 Richard Guenther <rguenther@suse.de>
1650 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
1651 a value make sure to fold the statement.
1653 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
1656 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
1657 return condition with !cfun->calls_alloca.
1659 2011-03-17 Richard Guenther <rguenther@suse.de>
1662 * lto-cgraph.c (input_overwrite_node): Clear the abstract
1663 origin for decls in other ltrans units.
1664 (input_varpool_node): Likewise.
1666 2011-03-17 Richard Guenther <rguenther@suse.de>
1669 * tree-object-size.c (compute_object_offset): Properly return
1670 the offset operand of MEM_REFs as sizetype.
1672 2011-03-17 Jakub Jelinek <jakub@redhat.com>
1674 PR rtl-optimization/48141
1675 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
1676 * dse.c: Include params.h.
1677 (active_local_stores_len): New variable.
1678 (add_wild_read, dse_step1): Clear it when setting active_local_stores
1680 (record_store, check_mem_read_rtx): Decrease it when removing
1682 (scan_insn): Likewise. Increase it when adding to chain, if it
1683 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
1684 set active_local_stores to NULL before the addition.
1685 * Makefile.in (dse.o): Depend on $(PARAMS_H).
1687 PR rtl-optimization/48141
1688 * dse.c (record_store): If no positions are needed in an insn
1689 that cannot be deleted, at least unchain it from active_local_stores.
1691 2011-03-16 Dodji Seketeli <dodji@redhat.com>
1694 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
1695 (lookup_type_die_strip_naming_typedef): ... here.
1696 (get_context_die): Use it.
1697 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
1698 the anonymous struct named by the naming typedef.
1700 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
1703 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
1704 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
1706 2011-03-16 Jeff Law <law@redhat.com>
1708 * tree-vrp.c (identify_jump_threads): Slightly simplify type
1709 check for operands of conditional. Allow type to be a pointer.
1711 2011-03-16 Richard Guenther <rguenther@suse.de>
1713 PR tree-optimization/48149
1714 * fold-const.c (fold_binary_loc): Fold
1715 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
1717 2011-03-16 Richard Guenther <rguenther@suse.de>
1719 PR tree-optimization/26134
1720 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
1721 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
1722 (non_rewritable_mem_ref_base): Handle complex type component
1723 accesses, constrain offsets for vector and complex extracts
1726 2011-03-16 Richard Guenther <rguenther@suse.de>
1728 PR tree-optimization/48146
1729 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
1730 operands avoiding the need for renaming.
1732 2011-03-16 Richard Guenther <rguenther@suse.de>
1734 * gimple-fold.c (maybe_fold_reference): Open-code relevant
1735 constant folding. Move MEM_REF canonicalization first.
1736 Rely on fold_const_aggregate_ref for initializer folding.
1737 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
1739 2011-03-16 Jakub Jelinek <jakub@redhat.com>
1742 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
1743 arg0/arg1 or their arguments are always fold converted to matching
1746 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
1749 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1752 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
1753 Handle in-tree gold.
1754 (ld_vers): Extract binutils version for gold.
1755 (gcc_cv_ld_hidden): Handle gold here.
1756 (gcc_cv_lto_plugin): Determine level of linker plugin support.
1757 * configure: Regenerate.
1758 * config.in: Regenerate.
1759 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
1760 -fuse-linker-plugin otherwise.
1761 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
1762 (LINK_COMMAND_SPEC): Use it.
1763 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
1765 2011-03-16 Jakub Jelinek <jakub@redhat.com>
1767 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
1768 * calls.c: Remove debug.h include.
1769 (emit_call_1): Don't call virtual_call_token debug hook.
1770 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
1771 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
1772 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
1773 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
1774 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
1775 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
1776 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
1777 dwarf2out_virtual_call): Remove.
1778 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
1779 copy_call_info and virtual_call hooks.
1780 (dwarf2out_init): Don't initialize vcall_insn_table,
1781 debug_dcall_section and debug_vcall_section.
1782 (prune_unused_types): Don't mark nodes from dcall_table.
1783 (dwarf2out_finish): Don't output dcall or vcall tables.
1784 * final.c (final_scan_insn): Don't call direct_call or
1785 virtual_call debug hooks.
1786 * debug.h (struct gcc_debug_hooks): Remove direct_call,
1787 virtual_call_token, copy_call_info and virtual_call hooks.
1788 (debug_nothing_uid): Remove prototype.
1789 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
1790 copy_call_info and virtual_call hooks.
1791 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1792 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1793 * debug.c (do_nothing_debug_hooks): Likewise.
1794 (debug_nothing_uid): Remove.
1795 * doc/invoke.texi (-fenable-icf-debug): Remove.
1796 * common.opt (-fenable-icf-debug): Likewise.
1798 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
1799 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
1800 call's MEM. Handle functions returning aggregate through a hidden
1801 first pointer. For virtual calls add clobbered pc to call arguments
1803 * dwarf2out.c (gen_subprogram_die): Emit
1804 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
1808 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
1809 * rtl.h (ENTRY_VALUE_EXP): Define.
1810 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
1811 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
1812 * print-rtl.c (print_rtx): Likewise.
1813 * gengtype.c (adjust_field_rtx_def): Likewise.
1814 * var-tracking.c (vt_add_function_parameter): Adjust
1815 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
1816 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
1817 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
1818 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
1819 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
1821 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
1822 Call var_location debug hook even on CALL_INSNs.
1823 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
1824 * rtl.def (ENTRY_VALUE): New.
1825 * dwarf2out.c: Include cfglayout.h.
1826 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1827 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
1828 (struct call_arg_loc_node): New type.
1829 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
1830 tail_call_site_count): New variables.
1831 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
1832 DW_TAG_GNU_call_site_parameter.
1833 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
1834 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
1835 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
1836 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
1837 and DW_AT_GNU_all_source_call_sites.
1838 (mem_loc_descriptor): Handle ENTRY_VALUE.
1839 (add_src_coords_attributes): Don't add enything if
1840 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
1841 (dwarf2out_abstract_function): Save and clear call_arg_location,
1842 call_site_count and tail_call_site_count around dwarf2out_decl call.
1843 (gen_call_site_die): New function.
1844 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
1845 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
1846 (dwarf2out_function_decl): Clear call_arg_locations,
1847 call_arg_loc_last, set call_site_count and tail_call_site_count
1848 to -1 and free block_map.
1849 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
1850 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
1851 followed by any real instructions.
1852 (dwarf2out_begin_function): Set call_site_count and
1853 tail_call_site_count to 0.
1854 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
1855 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
1856 attempt to force a DIE for it and worst case remove the attribute.
1857 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
1858 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
1860 * var-tracking.c: Include tm_p.h.
1861 (vt_stack_adjustments): For calls call note_register_arguments.
1862 (argument_reg_set): New variable.
1863 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
1864 ensure the VALUE is resolved.
1865 (call_arguments): New variable.
1866 (prepare_call_arguments): New function.
1867 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
1868 (struct expand_loc_callback_data): Add ignore_cur_loc field.
1869 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
1870 always use the best expression.
1871 (vt_expand_loc): Add ignore_cur_loc argument.
1872 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
1873 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
1874 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
1876 (vt_add_function_parameter): Use cselib_lookup_from_insn.
1877 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
1878 argument. Don't call cselib_preserve_only_values and
1880 (note_register_arguments): New function.
1881 (vt_initialize): Compute argument_reg_set. Call
1882 vt_add_function_parameters before processing basic blocks instead of
1883 afterwards. For calls call prepare_call_arguments before calling
1884 cselib_process_insn.
1885 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
1886 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
1887 (var-tracking.o): Depend on $(TM_P_H).
1888 * cfglayout.h (insn_scope): New prototype.
1889 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
1890 * cfglayout.c (insn_scope): No longer static.
1891 * insn-notes.def (CALL_ARG_LOCATION): New.
1892 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
1893 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
1894 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
1895 nothing for DECL_EXTERNAL BLOCK_VARS.
1897 2011-03-16 Alan Modra <amodra@gmail.com>
1900 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
1901 create invalid offset address for vsx splat insn.
1902 * config/rs6000/predicates.md (splat_input_operand): New.
1903 * config/rs6000/vsx.md (vsx_splat_*): Use it.
1905 2011-03-15 Xinliang David Li <davidxl@google.com>
1908 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
1909 (normalize_preds): New function.
1910 (is_use_properly_guarded): Normalize def predicates.
1912 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1915 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
1916 in the output template.
1918 2011-03-15 Richard Guenther <rguenther@suse.de>
1921 * tree-pretty-print.c (dump_function_declaration): Properly
1922 dump unprototyped and varargs function types.
1924 2011-03-15 Richard Guenther <rguenther@suse.de>
1926 PR tree-optimization/13954
1927 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
1930 2011-03-15 Richard Guenther <rguenther@suse.de>
1932 PR tree-optimization/48037
1933 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
1934 selects into BIT_FIELD_REFs.
1935 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
1938 2011-03-15 Jakub Jelinek <jakub@redhat.com>
1940 PR tree-optimization/48129
1941 * builtins.c (fold_builtin_snprintf): Convert to type of
1942 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
1943 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
1945 2011-03-15 Richard Guenther <rguenther@suse.de>
1947 PR tree-optimization/41490
1948 * tree-ssa-dce.c (propagate_necessity): Handle returns without
1949 value but with VUSE.
1950 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
1952 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
1953 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
1954 * tree-tailcall.c (find_tail_calls): Ignore returns.
1956 2011-03-15 Richard Guenther <rguenther@suse.de>
1959 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
1960 or variable-indexed array accesses when in gimple form.
1962 2011-03-15 Richard Guenther <rguenther@suse.de>
1964 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
1966 2011-03-15 Alan Modra <amodra@gmail.com>
1969 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
1970 presume symbol_refs without a symbol_ref_decl are suitably
1971 aligned, nor other trees we may see here. Handle anchor symbols.
1972 (legitimate_constant_pool_address_p): Comment. Add mode param.
1973 Check cmodel=medium addresses. Adjust all calls.
1974 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
1975 creating cmodel=medium optimized access to locals.
1976 * config/rs6000/constraints.md (R): Pass QImode to
1977 legitimate_constant_pool_address_p.
1978 * config/rs6000/predicates.md (input_operand): Pass mode to
1979 legitimate_constant_pool_address_p.
1980 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
1983 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1986 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
1987 64-bit constants being loaded into registers other than GPRs such
1988 as loading 0 into a VSX register.
1990 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1992 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
1994 2011-03-14 Jakub Jelinek <jakub@redhat.com>
1997 * builtins.c (fold_builtin_snprintf): New function.
1998 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
1999 (fold_builtin_4): Likewise.
2002 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
2003 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
2004 and C - X == X also strip nops from +/-/p+ operand.
2005 When optimizing -X == C, fold C to arg0's type.
2008 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
2009 emit it as add_AT_int instead of add_AT_unsigned.
2011 2011-03-14 Tom Tromey <tromey@redhat.com>
2013 * unwind-dw2.c: Include sys/sdt.h if it exists.
2014 (_Unwind_DebugHook): Use STAP_PROBE2.
2015 * config.in, configure: Rebuild.
2016 * configure.ac: Check for sys/sdt.h.
2018 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
2020 * config/i386/i386.md (ROUND_FLOOR): New constant.
2021 (ROUND_CEIL): Ditto.
2022 (ROUND_TRUNC): Ditto.
2023 (ROUND_MXCSR): Ditto.
2024 (ROUND_NO_EXC): Ditto.
2025 (rint<mode>2): Use new defines instead of numerical constants.
2026 (floor<mode>2): Ditto.
2027 (ceil<mode>2): Ditto.
2028 (btrunc<mode>2): Ditto.
2029 * config/i386/i386-builtin-types.def: Define ROUND function type
2031 * config/i386/i386.c (enum ix86_builtins): Add
2032 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
2033 (struct builtin_description): Add
2034 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
2035 (ix86_expand_sse_round): New static function.
2036 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
2038 (ix86_builtin_vectorized_function): Handle
2039 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
2041 2011-03-14 Tom Tromey <tromey@redhat.com>
2043 * c-parser.c (c_parser_asm_string_literal): Clear
2044 warn_overlength_strings.
2046 2011-03-14 Tom Tromey <tromey@redhat.com>
2048 * c-parser.c (disable_extension_diagnostics): Save
2049 warn_overlength_strings.
2050 (restore_extension_diagnostics): Restore warn_overlength_strings.
2052 2011-03-14 Jakub Jelinek <jakub@redhat.com>
2054 * BASE-VER: Change to 4.7.0.
2056 2011-03-14 Richard Guenther <rguenther@suse.de>
2059 * tree.c (build_vector_from_val): Adjust assert to requirements
2062 2011-03-14 Jakub Jelinek <jakub@redhat.com>
2065 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
2067 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
2069 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
2070 terms of target_flags_explicit. Adjust copyright year.
2072 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
2073 * config/rs6000/t-freebsd: New file. Add override for
2076 2011-03-13 Chris Demetriou <cgd@google.com>
2078 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
2079 (-fno-diagnostics-show-option): this, to reflect current default.
2080 (-Werror=): Update text about -fno-diagnostics-show-option.
2082 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
2085 * config/rs6000/predicates.md (easy_vector_constant_add_self,
2086 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
2087 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
2088 mode is not V2DImode or V2DFmode.
2089 (vspltis_constant): Do not handle V2DImode and V2DFmode.
2090 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
2091 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
2093 (movdi_internal64): Likewise.
2095 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
2097 PR tree-optimization/47127
2098 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
2100 (set_cloog_options): Same.
2101 (scop_to_clast): Same.
2102 (print_clast_stmt): Do not call cloog_state_malloc and
2104 (print_generated_program): Same.
2106 * graphite-clast-to-gimple.h (cloog_state): Declared.
2107 (scop_to_clast): Adjust declaration.
2108 * graphite.c (cloog_state): Defined here.
2109 (graphite_initialize): Call cloog_state_malloc.
2110 (graphite_finalize): Call cloog_state_free.
2112 2011-03-11 Jason Merrill <jason@redhat.com>
2114 * attribs.c (lookup_attribute_spec): Take const_tree.
2117 2011-03-11 Joseph Myers <joseph@codesourcery.com>
2119 * config/sparc/sparc.c (sparc_option_override): Use
2120 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
2122 2011-03-11 Richard Guenther <rguenther@suse.de>
2124 PR tree-optimization/48067
2125 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
2126 multiplication result will be only used once on the target
2129 2011-03-11 Richard Guenther <rguenther@suse.de>
2131 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
2133 2011-03-11 Richard Guenther <rguenther@suse.de>
2136 * tree.c (find_decls_types_r): Do not walk types only reachable
2137 from IDENTIFIER_NODEs.
2139 2011-03-11 Jakub Jelinek <jakub@redhat.com>
2142 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
2143 all vnode->force_output nodes as needed.
2145 2011-03-11 Jason Merrill <jason@redhat.com>
2148 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
2149 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
2151 2011-03-11 Martin Jambor <mjambor@suse.cz>
2153 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
2156 2011-03-11 Jakub Jelinek <jakub@redhat.com>
2158 PR tree-optimization/48063
2159 * ipa-inline.c (cgraph_decide_inlining): Don't try to
2160 inline functions called once if !tree_can_inline_p (node->callers).
2162 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
2164 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
2166 * config/score/score3.c: Delete.
2167 * config/score/score3.h: Delete.
2168 * config/score/mul-div.S: Delete.
2169 * config/score/sfp-machine.h: Add new file.
2170 * config/score/constraints.md: Add new file.
2171 * config/score/t-score-softfp: Add new file.
2172 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
2173 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
2174 (score7_extra_constraint): Delete.
2175 (score7_option_override): Remove unused code.
2176 * config/score/score.c: Remove score3 and score5 define and code.
2177 * config/score/score.h: Remove score3 and score5 define and code.
2178 * config/score/score.md: Remove score3 template and unusual insn.
2179 * config/score/score.opt: Remove score3 and score5 options.
2181 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2183 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2184 when _HPUX_SOURCE is defined.
2185 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
2187 2011-03-10 Jason Merrill <jason@redhat.com>
2190 * stor-layout.c (layout_type): Don't set structural equality
2191 on arrays of incomplete type.
2192 * tree.c (type_hash_eq): Handle comparing them properly.
2194 2011-03-10 Jakub Jelinek <jakub@redhat.com>
2197 * config/s390/s390.c (s390_delegitimize_address): Make sure the
2198 result mode matches original rtl mode.
2200 2011-03-10 Nick Clifton <nickc@redhat.com>
2202 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
2203 (andsi3, andsi3_flags): Fix timings for three operand alternative.
2205 2011-03-09 Jakub Jelinek <jakub@redhat.com>
2207 PR rtl-optimization/47866
2208 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
2209 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
2210 if target wasn't scalar.
2211 * function.c (assign_stack_temp_for_type): Assert that neither
2212 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
2213 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
2215 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
2217 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2219 * config/s390/s390-protos.h (s390_label_align): New prototype.
2220 * config/s390/s390.c (s390_label_align): New function.
2221 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
2223 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2226 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
2227 V2DI/V2DF constants. Only all 0's or all 1's are easy.
2228 (output_vec_const_move): Ditto.
2230 2011-03-08 Anatoly Sokolov <aesok@post.ru>
2232 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
2233 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
2234 * config/mips/mips.c (mips_preferred_reload_class): Make static.
2235 Change 'rclass' argument and result type to reg_class_t.
2236 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2238 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
2240 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2241 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
2242 (TARGET_MEMORY_MOVE_COST): Define.
2243 (avr_register_move_cost, avr_memory_move_cost): New Functions.
2245 2011-03-08 Jakub Jelinek <jakub@redhat.com>
2248 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
2251 PR tree-optimization/48022
2252 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
2255 2011-03-07 Jakub Jelinek <jakub@redhat.com>
2258 * var-tracking.c (find_use_val): Return NULL for
2259 cui->sets && cui->store_p BLKmode MEMs.
2261 2011-03-07 Anatoly Sokolov <aesok@post.ru>
2263 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2265 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
2266 xstormy16_print_operand_address): Remove.
2267 * config/stormy16/stormy16.c (xstormy16_print_operand,
2268 xstormy16_print_operand_address): Make static.
2269 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2271 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
2274 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2275 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
2278 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
2281 * cfgloopmanip.c (fix_bb_placements): Return immediately
2282 if FROM is BASE_LOOP's header.
2284 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
2286 * gimplify.c (gimplify_function_tree): Fix building calls
2287 to __builtin_return_address.
2289 2011-03-07 Alan Modra <amodra@gmail.com>
2291 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
2292 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
2293 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
2294 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
2296 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
2297 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
2298 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
2299 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
2300 * config/rs6000/rs6000.c
2301 (rs6000_elf_end_indicate_exec_stack): Rename to..
2302 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
2303 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
2304 (rs6000_file_start): ..here.
2305 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
2306 file scope variables.
2307 (call_ABI_of_interest): New function.
2308 (init_cumulative_args): Set above vars when function return value
2309 is a float, vector, or small struct.
2310 (rs6000_function_arg_advance_1): Likewise for function args.
2311 (rs6000_va_start): Set rs6000_passes_float if variable arg function
2312 references float args.
2314 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
2316 * doc/cfg.texi: Remove "See" before @ref.
2317 * doc/invoke.texi: Likewise.
2319 2011-03-05 Jason Merrill <jason@redhat.com>
2321 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
2323 2011-03-05 Anthony Green <green@moxielogic.com>
2325 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
2327 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
2329 PR rtl-optimization/47899
2330 * cfgloopmanip.c (fix_bb_placements): Fix first argument
2331 to flow_loop_nested_p when moving the loop upward.
2333 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
2336 * arm.md (movhi_insn_arch4): Accept any immediate constant.
2338 2011-03-05 Jakub Jelinek <jakub@redhat.com>
2340 PR tree-optimization/47967
2341 * ipa-cp.c (build_const_val): Return NULL instead of creating
2342 VIEW_CONVERT_EXPR for mismatching sizes.
2343 (ipcp_create_replace_map): Return NULL if build_const_val failed.
2344 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
2345 give up on versioning.
2347 2011-03-05 Alan Modra <amodra@gmail.com>
2350 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2351 full cmodel medium/large lo_sum + high addresses.
2353 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2355 * config/s390/s390.c (s390_decompose_address): Reject non-literal
2356 pool references in UNSPEC_LTREL_OFFSET.
2358 2011-03-04 Jan Hubicka <jh@suse.cz>
2361 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
2362 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
2363 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
2365 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
2366 cgraph_add_thunk): Add node pointers.
2367 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
2368 associated to right node.
2369 (input_node): Update use of cgraph_same_body_alias
2370 and cgraph_add_thunk.
2372 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
2374 * config/i386/i386.opt (mprefer-avx128): New flag.
2375 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
2376 modes when the flag -mprefer-avx128 is on.
2378 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
2380 * dwarf2out.c (compare_loc_operands): Fix address handling.
2382 2011-03-04 Alan Modra <amodra@gmail.com>
2384 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
2386 2011-03-04 Richard Guenther <rguenther@suse.de>
2389 * expmed.c (extract_bit_field_1): Prefer vector modes that
2390 vec_extract patterns can handle.
2392 2011-03-04 Richard Guenther <rguenther@suse.de>
2395 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
2397 2011-03-04 Richard Henderson <rth@redhat.com>
2399 * explow.c (emit_stack_save): Remove 'after' parameter.
2400 (emit_stack_restore): Likewise.
2401 * expr.h: Update to match.
2402 * builtins.c, calls.c, stmt.c: Likewise.
2403 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
2404 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
2405 * function.c (expand_function_end): Insert the emit_stack_save
2406 sequence before parm_birth_insn instead of after.
2408 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
2410 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
2411 (ssse3_pmaddubsw128): Ditto.
2412 (ssse3_pmaddubsw): Ditto.
2414 2011-03-03 Steve Ellcey <sje@cup.hp.com>
2416 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
2418 2011-03-03 Jakub Jelinek <jakub@redhat.com>
2421 * gimplify.c (omp_add_variable): Only call omp_notice_variable
2422 on TYPE_SIZE_UNIT if it is a DECL.
2425 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
2426 first operand is not is_gimple_mem_ref_addr, try to fold it.
2427 If the operand still isn't is_gimple_mem_ref_addr, clear
2430 2011-03-03 Richard Guenther <rguenther@suse.de>
2433 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
2435 (refs_may_alias_p_1): For release branches return true if
2436 we are confused by our input.
2438 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2440 * config/s390/s390.c (s390_function_value): Rename to ...
2441 (s390_function_and_libcall_value): ... this.
2442 (s390_function_value): New function.
2443 (s390_libcall_value): New function.
2444 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
2445 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
2446 target macro definitions.
2447 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
2449 2011-03-02 Joseph Myers <joseph@codesourcery.com>
2451 * config/i386/freebsd64.h (CC1_SPEC): Define.
2452 * config/i386/linux64.h (CC1_SPEC): Define.
2453 * config/i386/x86-64.h (CC1_SPEC): Don't define.
2455 2011-03-02 Anatoly Sokolov <aesok@post.ru>
2457 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2459 * config/stormy16/stormy16.c: Include reload.h.
2460 (xstormy16_memory_move_cost): New function.
2461 (TARGET_MEMORY_MOVE_COST): Define.
2463 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
2465 PR rtl-optimization/47925
2466 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
2467 with side effects. Remove the more-specific check for volatile asms.
2469 2011-03-02 Alan Modra <amodra@gmail.com>
2472 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
2473 toc relative addresses for valid offsets.
2475 2011-03-01 Richard Guenther <rguenther@suse.de>
2477 PR tree-optimization/47890
2478 * tree-vect-loop.c (get_initial_def_for_induction): Set
2479 related stmt properly.
2481 2011-03-01 Richard Guenther <rguenther@suse.de>
2484 * lto-streamer.c (lto_record_common_node): Also register
2487 2011-03-01 Richard Guenther <rguenther@suse.de>
2490 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2491 Do not stream DECL_ABSTRACT_ORIGIN.
2492 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
2493 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
2494 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2495 Do not stream DECL_ABSTRACT_ORIGIN.
2496 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
2497 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
2499 2011-02-28 Anatoly Sokolov <aesok@post.ru>
2501 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
2502 FUNCTION_VALUE_REGNO_P): Remove.
2503 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
2504 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
2505 Add 'outgoing' argument.
2506 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
2508 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2509 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2511 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
2514 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
2515 (lookup_filename): Likewise.
2516 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
2518 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
2519 Jakub Jelinek <jakub@redhat.com>
2522 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
2523 (assign_stack_local_1): Change last argument type to int.
2524 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
2525 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
2526 don't record padding space into frame_space_list nor use those areas.
2527 (assign_stack_local): Adjust caller.
2528 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
2529 of assign_stack_local, pass 0 as last argument.
2530 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
2533 2011-02-28 Jakub Jelinek <jakub@redhat.com>
2536 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
2537 Use target address_mode and pointer_mode hooks instead of hardcoded
2538 Pmode and ptr_mode. Handle some simple cases of extending if
2539 POINTERS_EXTEND_UNSIGNED < 0.
2540 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
2541 Call convert_debug_memory_address.
2542 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
2543 convert_debug_memory_address.
2546 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
2547 * configure: Regenerated.
2548 * config.in: Regenerated.
2549 * varasm.c (default_function_section): Return NULL
2550 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
2552 2011-02-28 Martin Jambor <mjambor@suse.cz>
2554 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
2555 the description to match the printed values.
2557 2011-02-28 Richard Guenther <rguenther@suse.de>
2559 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
2560 of the copied scope tree.
2562 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2564 * doc/extend.texi (Function Attributes): Avoid deeply (and
2565 wrongly) nested tables.
2567 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2570 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
2571 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
2572 r isn't op0 nor op1.
2574 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
2576 * config/avr/avr.md: Remove magic comment for emacs.
2578 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
2581 * config/avr/avr.c (avr_option_override): Use error on bad options.
2582 (avr_help): New function.
2583 (TARGET_HELP): Define.
2585 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
2588 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
2589 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
2591 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
2593 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
2594 (ARM Options): Ditto.
2595 (i386 and x86-64 Options): Ditto.
2596 (RX Options): Ditto.
2597 (SPARC Options): Ditto.
2599 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
2601 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
2602 FreeBSD 6 and later. Generally use cpu generic.
2604 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
2606 * doc/cpp.texi: Update copyright years.
2608 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
2611 * config/lm32/lm32.md (ashrsi3): Added needed variable.
2613 2011-02-25 Jon Beniston <jon@beniston.com>
2616 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
2617 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
2618 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
2619 (lm32_block_move_inline): Add type cast to remove warning.
2620 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
2621 (gen_int_relational): Move declarations to start of function.
2623 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
2625 PR tree-optimization/45470
2626 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2627 can throw internally only.
2628 * tree-vect-stmts.c (vectorizable_call): Likewise.
2630 2011-02-24 Anatoly Sokolov <aesok@post.ru>
2632 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
2633 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2634 * config/stormy16/stormy16-protos.h
2635 (xstormy16_preferred_reload_class): Remove.
2636 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
2637 static. Change 'rclass' argument and return type to reg_class_t.
2638 (TARGET_PREFERRED_RELOAD_CLASS,
2639 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2641 2011-02-24 Richard Guenther <rguenther@suse.de>
2643 * lto-streamer-in.c (input_bb): Do not find referenced vars
2644 in debug statements.
2646 2011-02-23 Jason Merrill <jason@redhat.com>
2648 * common.opt (fabi-version): Document v5 and v6.
2650 2011-02-23 Richard Guenther <rguenther@suse.de>
2652 PR tree-optimization/47849
2653 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
2655 2011-02-23 Jie Zhang <jie@codesourcery.com>
2657 * opts-common.c (decode_cmdline_option): Print empty string
2658 argument as "" in decoded->orig_option_with_args_text.
2659 * gcc.c (execute): Print empty string argument as ""
2660 in the verbose output.
2661 (do_spec_1): Keep empty string argument.
2663 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
2665 * config.gcc: Declare score-* and crx-* obsolete.
2667 2011-02-23 Jie Zhang <jie@codesourcery.com>
2669 PR rtl-optimization/47763
2670 * web.c (web_main): Ignore naked clobber when replacing register.
2672 2011-02-22 Anatoly Sokolov <aesok@post.ru>
2674 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2677 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
2680 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
2682 2011-02-22 Mike Stump <mikestump@comcast.net>
2684 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
2686 * configure: Regenerate.
2688 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
2690 PR rtl-optimization/46002
2691 * ira-color.c (update_copy_costs): Change class intersection
2692 test to reg_class_contents[] test of 'hard_regno'.
2694 2011-02-21 Joseph Myers <joseph@codesourcery.com>
2696 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
2698 * config/hpux11.opt (mt): Likewise.
2699 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
2700 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
2701 * config/vax/elf.opt (mno-asm-pic): Likewise.
2702 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
2704 2011-02-21 Mike Stump <mikestump@comcast.net>
2707 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
2708 tree so we can get save the type.
2709 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
2710 for CFString instead of trying to use past the end of the builtins.
2711 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
2712 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
2713 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
2714 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
2715 Rename to darwin_builtin_cfstring.
2716 (darwin_init_cfstring_builtins): Return the built type.
2718 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
2721 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
2722 (_mm256_insert_epi64): Use _mm_insert_epi64.
2724 2011-02-21 Anatoly Sokolov <aesok@post.ru>
2726 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2727 * config/stormy16/stormy16-protos.h
2728 (xstormy16_mode_dependent_address_p): Remove.
2729 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
2730 Make static. Change return type to bool. Change argument type to
2731 const_rtx. Remove dead code.
2732 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2734 2011-02-21 Richard Guenther <rguenther@suse.de>
2737 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2738 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
2739 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
2741 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2742 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
2744 2011-02-20 Richard Guenther <rguenther@suse.de>
2747 * tree.c (free_lang_data_in_decl): Clean builtins from
2748 the TU decl BLOCK_VARS.
2750 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
2754 * haifa-sched.c (fix_tick_ready): Skip tick computation
2757 2011-02-19 Richard Guenther <rguenther@suse.de>
2760 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
2761 Remove lazy BLOCK_VARS streaming.
2762 (lto_input_ts_block_tree_pointers): Likewise.
2763 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
2765 2011-02-19 Joseph Myers <joseph@codesourcery.com>
2767 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
2769 2011-02-19 Joseph Myers <joseph@codesourcery.com>
2771 * config/i386/biarch32.h, config/i386/mach.h,
2772 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
2774 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2777 * config/i386/i386.md (peephole2 for shift and plus): Use
2778 operands[1] original mode in the first insn.
2780 2011-02-18 Mike Stump <mikestump@comcast.net>
2782 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
2784 2011-02-18 Jan Hubicka <jh@suse.cz>
2787 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
2788 to zero when the function is not inlinable at all.
2790 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2792 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
2793 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
2794 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
2795 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
2796 * config/pa/t-pa64: Likewise.
2797 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2799 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2802 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
2804 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2807 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
2809 2011-02-18 Anatoly Sokolov <aesok@post.ru>
2811 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2812 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
2813 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
2814 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2815 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
2816 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
2817 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
2818 m32r_load_postinc_p, m32r_store_preinc_predec_p,
2819 m32r_legitimate_address_p): New functions.
2820 * config/m32r/constraints.md (constraint "S"): Don't use
2821 STORE_PREINC_PREDEC_P.
2822 (constraint "U"): Don't use LOAD_POSTINC_P.
2824 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
2826 PR rtl-optimization/46178
2827 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
2828 compute ira_hard_regno_cover_class[].
2830 2011-02-18 Richard Guenther <rguenther@suse.de>
2833 * lto-streamer.h (lto_global_var_decls): Declare.
2834 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
2835 statics for global var processing.
2837 2011-02-18 Richard Guenther <rguenther@suse.de>
2839 PR tree-optimization/47737
2840 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
2841 edge dominance check.
2843 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2846 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
2847 avoid invalid rtx sharing.
2849 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
2851 * doc/cpp.texi (Obsolete Features): Add background on the
2852 origin of assertions.
2854 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2856 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
2858 * config/darwin.c (output_objc_section_asm_op): Added support for
2860 (is_objc_metadata): New.
2861 (darwin_objc2_section): New.
2862 (darwin_objc1_section): New.
2863 (machopic_select_section): Added support for ABI v1 and v2.
2864 (darwin_emit_objc_zeroed): New.
2865 (darwin_output_aligned_bss): Detect objc metadata and treat it
2867 (darwin_asm_output_aligned_decl_common): Same.
2868 (darwin_asm_output_aligned_decl_local): Same.
2869 * config/darwin-sections.def: Updated for ABI v1 and v2.
2870 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
2871 compiling Objective-C code for the NeXT runtime, default to using
2872 ABI version 0 for 32-bit, and version 2 for 64-bit.
2874 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2876 * common.opt (optimize_fast): New Variable.
2877 * opts.c (default_options_optimization): Use opts->x_optimize_fast
2878 instead of local variable ofast.
2880 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
2882 * doc/invoke.texi (fobjc-abi-version): Documented.
2883 (fobjc-nilcheck): Documented.
2884 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
2887 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2890 * common.opt (export-dynamic): New Driver option.
2891 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
2893 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2895 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
2897 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
2898 Jan Hubicka <jh@suse.cz>
2902 * cfgexpand.c (account_used_vars_for_block): Remove.
2903 (estimated_stack_frame_size): Use referenced vars.
2904 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
2905 that were referenced in the original function. Test src_fn
2906 rather than cfun. Drop redundant get_var_ann.
2907 (setup_one_parameter): Drop redundant get_var_ann.
2908 (declare_return_variable): Likewise.
2909 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
2910 (copy_arguments_for_versioning): Drop redundant get_var_ann.
2911 * ipa-inline.c (compute_inline_parameters): Do not compute
2912 disregard_inline_limits here.
2913 (compute_inlinable_for_current, pass_inlinable): New.
2914 (pass_inline_parameters): Require PROP_referenced_vars.
2915 * cgraphunit.c (cgraph_process_new_functions): Don't run
2916 compute_inline_parameters explicitly unless function is in SSA form.
2917 (cgraph_analyze_function): Set .disregard_inline_limits.
2918 * tree-sra.c (convert_callers): Compute inliner parameters
2919 only for functions already in SSA form.
2921 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2923 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
2924 -mlittle-endian-data.
2926 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2928 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
2929 -mno-fpu, not -fpu and -no-fpu.
2930 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
2931 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
2933 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
2936 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
2937 input reload with PLUS RTX.
2939 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2941 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
2942 of InverseVar(MDMX).
2944 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2946 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
2949 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2951 * config/mn10300/mn10300.opt (mno-crt0): New.
2953 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2955 * config/m68k/uclinux.opt (static-libc): New Driver option.
2957 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2959 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
2961 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2963 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
2964 %{muser-extend-enabled}.
2966 2011-02-16 Richard Guenther <rguenther@suse.de>
2968 PR tree-optimization/47738
2969 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
2970 the TODO from tree_predictive_commoning.
2972 2011-02-15 Jeff Law <law@redhat.com>
2975 2011-01-25 Jeff Law <law@redhat.com>
2977 PR rtl-optimization/37273
2978 * ira-costs.c (scan_one_insn): Detect constants living in memory and
2979 handle them like argument loads from stack slots. Do not double
2980 count memory for memory constants and argument loads from stack slots.
2982 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
2985 * combine.c (cant_combine_insn_p): Revert the last change.
2987 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
2990 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
2991 mode for vector constants. Remove code that checks for TImode.
2993 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
2997 * cgraph.h (compute_inline_parameters): Return void.
2998 * ipa-inline.c (compute_inline_parameters): Adjust.
3000 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
3004 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
3006 * cfgexpand.c (estimated_stack_frame_size): Likewise.
3007 * ipa-inline.c (compute_inline_parameters): Adjust.
3009 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
3013 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
3014 Adjust all users. Pass FN to...
3015 * tree-flow-inline.h (first_referenced_var): ... this. Add
3017 * ipa-struct-reorg.c: Adjust.
3018 * tree-dfa.c: Adjust.
3019 * tree-into-ssa.c: Adjust.
3020 * tree-sra.c: Adjust.
3021 * tree-ssa-alias.c: Adjust.
3022 * tree-ssa-live.c: Adjust.
3023 * tree-ssa.c: Adjust.
3024 * tree-ssanames.c: Adjust.
3025 * tree-tailcall.c: Adjust.
3027 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
3031 * tree-flow.h (referenced_var_lookup): Add fn parameter.
3033 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
3034 * tree-flow-inline.h: Adjust.
3035 * gimple-pretty-print.c: Adjust.
3036 * tree-into-ssa.c: Adjust.
3037 * tree-ssa.c: Adjust.
3038 * cfgexpand.c: Adjust.
3040 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
3042 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
3043 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3044 (EXTRA_CONSTRAINT): Delete.
3045 * config/iq2000/constraints.md: New file.
3046 * config/iq2000/iq2000.md: Include it.
3047 (define_insn ""): Delete.
3048 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
3049 unsupported constraint letters from patterns.
3050 (call_value, call_value_internal1): Likewise.
3051 (call_value_multiple_internal1): Likewise.
3053 2011-02-15 Nick Clifton <nickc@redhat.com>
3055 * config/mn10300/mn10300.c: Include tm-constrs.h.
3056 (struct liw_data): New data structure describing an LIW candidate
3058 (extract_bundle): Use struct liw_data. Allow small integer
3059 operands for some instructions.
3060 (check_liw_constraints): Use struct liw_data. Remove swapped
3061 parameter. Add comments describing the checks. Fix bug when
3062 assigning the source of liw1 to the source of liw2.
3063 (liw_candidate): Delete. Code moved into extract_bundle.
3064 (mn10300_bundle_liw): Use struct liw_data. Check constraints
3066 * config/mn10300/predicates.md (liw_operand): New predicate.
3067 Allows registers and small integer constants.
3068 * config/mn10300/constraints.md (O): New constraint. Accetps
3069 integers in the range -8 to +7 inclusive.
3070 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
3071 for moving a small integer into a register. Give this alternative
3073 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
3074 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
3075 using the J,K,L and M constraints,
3076 (liw): Remove SI mode on second operands to allow for HI and QI
3078 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
3081 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
3084 * combine.c (cant_combine_insn_p): Check zero/sign extended
3087 2011-02-15 Richard Guenther <rguenther@suse.de>
3089 PR tree-optimization/47743
3090 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
3091 for a non-type-compatible VN lookup bail out.
3093 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
3095 * config/fr30/constraints.md: New file.
3096 * config/fr30/fr30.md: Include it.
3097 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
3098 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3099 (EXTRA_CONSTRAINT): Delete.
3101 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
3103 * config/frv/constraints.md: New file.
3104 * config/frv/predicates.md: Include it.
3105 * config/frv/frv.c (reg_class_from_letter): Delete.
3106 (frv_option_override): Don't initialize it.
3107 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
3108 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
3109 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
3110 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
3111 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
3112 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3113 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
3114 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
3115 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
3116 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
3117 (REG_CLASS_FROM_CONSTRAINT): Delete.
3119 2011-02-15 Jakub Jelinek <jakub@redhat.com>
3122 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
3123 if frame size is 0 in a leaf function.
3125 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3128 * config/alpha/host-osf.c: New file.
3129 * config/alpha/x-osf: New file.
3130 * config.host (alpha*-dec-osf*): Use it.
3132 2011-02-14 Anatoly Sokolov <aesok@post.ru>
3134 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3135 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
3136 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
3137 (rx_mode_dependent_address_p): ...this. Make static. Change argument
3139 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3141 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
3143 * config/stormy16/constraints.md: New file.
3144 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
3145 Use satisfies_constraint_Q and satisfies_constraint_R.
3146 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
3148 (xstormy16_legitiamte_address_p): Declare.
3149 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
3150 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3151 (EXTRA_CONSTRAINT): Delete.
3152 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
3154 (xstormy16_extra_constraint_p): Delete.
3156 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
3158 PR tree-optimization/46494
3159 * loop-unroll.c (split_edge_and_insert): Adjust comment.
3160 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
3161 (pass_rtl_loop_done): Add TODO_verify_flow.
3162 * fwprop.c (pass_rtl_fwprop): Likewise.
3163 * modulo-sched.c (pass_sms): Likewise.
3164 * tree-ssa-dom.c (pass_dominator): Likewise.
3165 * tree-ssa-loop-ch.c (pass_ch): Likewise.
3166 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
3167 (pass_tree_loop_done): Likewise.
3168 * tree-ssa-pre.c (execute_pre): Likewise.
3169 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
3170 * tree-ssa-sink.c (pass_sink_code): Likewise.
3171 * tree-vrp.c (pass_vrp): Likewise.
3173 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
3175 * config/v850/constraints.md: New file.
3176 * config/v850/v850.md: Include it.
3177 * config/v850/predicates.md (reg_or_0_operand): Use
3178 satisfies_constraint_G.
3179 (special_symbolref_operand): Use satisfies_constraint_K.
3180 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
3181 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
3182 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
3183 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
3184 (EXTRA_CONSTRAINT): Delete.
3185 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
3186 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
3187 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
3189 2011-02-14 Anatoly Sokolov <aesok@post.ru>
3192 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
3195 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
3197 * config/mcore/constraints.md: New file.
3198 * config/mcore/mcore.md: Include it.
3199 * config/mcore/mcore.c (reg_class_from_letter): Delete.
3200 * config/mcore/mcore.h (reg_class_from_letter): Delete.
3201 (REG_CLASS_FROM_LETTER): Delete.
3202 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
3203 insn_const_int_ok_for_constraint.
3204 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
3205 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
3206 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3207 (EXTRA_CONSTRAINT): Delete.
3209 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3212 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
3213 (IS_SIGHANDLER): Define.
3214 (sparc64_is_sighandler): New function, split off from
3215 sparc64_fallback_frame_state.
3216 (sparc_is_sighandler): New function, split off from
3217 sparc_fallback_frame_state.
3218 (sparc64_fallback_frame_state): Merge with ...
3219 (sparc_fallback_frame_state): ... this into ...
3220 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
3221 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
3222 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
3223 stack instead of hardcoded offsets.
3225 2011-02-14 Andriy Gapon <avg@freebsd.org>
3228 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
3230 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3232 * configure: Regenerate.
3234 2011-02-12 Joseph Myers <joseph@codesourcery.com>
3237 * gcc.c (asm_options): Correct spec matching --target-help.
3239 2011-02-12 Martin Jambor <mjambor@suse.cz>
3241 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
3242 to gimple call error.
3244 2011-02-12 Mike Stump <mikestump@comcast.net>
3246 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
3247 comments in backslash regions.
3249 2011-02-12 Mike Stump <mikestump@comcast.net>
3250 Jakub Jelinek <jakub@redhat.com>
3251 Iain Sandoe <iains@gcc.gnu.org>
3254 * dwarf2out.c (output_cfa_loc): When required, apply the
3255 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
3256 (output_loc_sequence): Likewise.
3257 (output_loc_operands_raw): Likewise.
3258 (output_loc_sequence_raw): Likewise.
3259 (output_cfa_loc): Likewise.
3260 (output_loc_list): Suppress register number adjustment when
3261 calling output_loc_sequence()
3262 (output_die): Likewise.
3264 2011-02-12 Anatoly Sokolov <aesok@post.ru>
3266 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3268 * config/xtensa/xtensa.c (xtensa_register_move_cost,
3269 xtensa_memory_move_cost): New functions.
3270 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
3272 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
3275 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
3276 in the current directory.
3277 * configure: Rebuilt.
3279 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
3281 * config/darwin.c (darwin_override_options): Add a hunk missed
3282 from the commit of r168571. Trim comment line lengths and
3283 correct indents of the preceding block.
3285 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
3287 * gcc.c (driver_handle_option): Concatenate the argument to -F with
3290 2011-02-11 Joseph Myers <joseph@codesourcery.com>
3292 * common.opt (nostartfiles): New Driver option.
3294 2011-02-11 Xinliang David Li <davidxl@google.com>
3296 PR tree-optimization/47707
3297 * tree-chrec.c (convert_affine_scev): Keep type precision.
3299 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
3301 PR tree-optimization/47420
3302 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
3304 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3306 PR rtl-optimization/47614
3307 * rtl.h (check_for_inc_dec): Declare.
3308 * dse.c (check_for_inc_dec): Externalize...
3309 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
3310 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
3312 2011-02-11 Joseph Myers <joseph@codesourcery.com>
3315 * gcc.c (main): Do not compile inputs if there were errors in
3317 * opts-common.c (read_cmdline_option): Check for wrong language
3318 after other error checks.
3320 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
3322 * cgraph.c: Fix comment typos.
3323 * cgraph.h: Likewise.
3324 * cgraphunit.c: Likewise.
3325 * ipa-cp.c: Likewise.
3326 * ipa-inline.c: Likewise.
3327 * ipa-prop.c: Likewise.
3328 * ipa-pure-const.c: Likewise.
3329 * ipa-ref.c: Likewise.
3330 * ipa-reference.c: Likewise.
3332 2011-02-11 Jakub Jelinek <jakub@redhat.com>
3335 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
3337 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3340 * doc/sourcebuild.texi (Require Support): Document
3341 dg-require-ascii-locale.
3343 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
3345 * doc/lto.texi (Write summary): Fix missing parentheses.
3347 2011-02-10 DJ Delorie <dj@redhat.com>
3349 * config/m32c/m32c.c (m32c_option_override): Disable
3350 -fcombine-stack-adjustments until flag value tracking and compare
3351 optimization can be rewritten.
3353 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
3355 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
3357 (PROCESSOR_DEFAULT64): Likewise.
3359 2011-02-10 Richard Henderson <rth@redhat.com>
3361 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
3362 change from 2011-02-03.
3363 * config/rx/rx.c (flags_from_code): Likewise.
3364 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
3365 is valid, n/pz otherwise.
3366 (rx_select_cc_mode): Return CCmode if Y is not zero.
3368 2011-02-10 Richard Guenther <rguenther@suse.de>
3370 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
3372 2011-02-10 Richard Guenther <rguenther@suse.de>
3374 PR tree-optimization/47677
3375 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
3377 2011-02-10 Jakub Jelinek <jakub@redhat.com>
3380 * combine.c (make_compound_operation): Only change shifts into
3381 multiplication for SCALAR_INT_MODE_P.
3383 2011-02-10 Jie Zhang <jie@codesourcery.com>
3387 2011-02-05 Jie Zhang <jie@codesourcery.com>
3389 * web.c (entry_register): Don't clobber the number of the
3390 first uninitialized reference in used[].
3392 2011-02-09 Richard Guenther <rguenther@suse.de>
3394 PR tree-optimization/47664
3395 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
3398 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
3402 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
3404 (PROCESSOR_DEFAULT64): Same.
3405 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
3407 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3409 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
3411 2011-02-09 Martin Jambor <mjambor@suse.cz>
3414 * tree-sra.c (struct access): New flags grp_scalar_read and
3415 grp_scalar_write. Changed description of assignment read and write
3417 (dump_access): Dump new flags, reorder all of them.
3418 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
3419 to detect multiple scalar reads.
3420 (analyze_access_subtree): Use the new scalar read write flags instead
3421 of the old flags. Adjusted comments.
3423 2011-02-08 DJ Delorie <dj@redhat.com>
3426 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
3429 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3431 * config/m68k/uclinux.opt: New.
3432 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
3434 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3436 * config/cris/elf.opt (sim): New Driver option.
3438 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3440 * config/xtensa/elf.opt: New.
3441 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
3443 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3445 * config/vax/elf.opt: New.
3446 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
3448 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3450 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
3452 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3454 * config/gnu-user.opt: New.
3455 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
3456 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
3457 *-*-uclinux*): Use gnu-user.opt.
3459 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
3461 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
3462 * config/i386/gnu.h (CPP_SPEC): Likewise.
3464 2011-02-08 Ian Lance Taylor <iant@google.com>
3466 * common.opt (fcx-limited-range): Add SetByCombined flag.
3467 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
3468 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
3469 (fassociative-math, freciprocal-math): Likewise.
3470 (funsafe-math-optimizations): Likewise.
3471 * opth-gen.awk: Handle SetByCombined.
3472 * optc-gen.awk: Likewise.
3473 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
3474 (set_unsafe_math_optimizations_flags): Likewise.
3475 * doc/options.texi (Option properties): Document SetByCombined.
3477 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3479 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
3480 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
3481 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
3482 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
3483 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
3485 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
3487 PR tree-optimization/46834
3488 PR tree-optimization/46994
3489 PR tree-optimization/46995
3490 * graphite-sese-to-poly.c (used_outside_reduction): New.
3491 (detect_commutative_reduction): Call used_outside_reduction.
3492 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
3493 translate_scalar_reduction_to_array only when at least one
3494 loop-phi/close-phi tuple has been detected.
3496 2011-02-08 Richard Guenther <rguenther@suse.de>
3499 * tree-vect-generic.c (expand_vector_operations_1): Update
3501 (expand_vector_operations): ... not here. Cleanup EH info
3502 and the CFG if required.
3504 2011-02-08 Richard Guenther <rguenther@suse.de>
3506 PR tree-optimization/47641
3507 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
3508 require type compatibility.
3510 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3512 * gimple-low.c (lower_function_body): Don't remove the location of
3513 the return statement here.
3514 (lower_gimple_return): Do it here instead but only if the return
3515 statement is actually used twice.
3517 2011-02-08 Richard Guenther <rguenther@suse.de>
3519 PR tree-optimization/47632
3520 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
3521 unused up_to_stmt parameter, return whether cfg-cleanup is
3522 necessary, remove EH info properly.
3523 (forward_propagate_into_gimple_cond): Adjust caller.
3524 (forward_propagate_into_cond): Likewise.
3525 (forward_propagate_comparison): Likewise.
3526 (tree_ssa_forward_propagate_single_use_vars): Make
3527 forward_propagate_comparison case similar to the two others.
3529 2011-02-08 Nick Clifton <nickc@redhat.com>
3531 * config/mn10300/mn10300.opt (mliw): New command line option.
3532 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
3533 (liw_bundling): New automaton.
3534 (liw): New attribute.
3535 (liw_op): New attribute.
3536 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
3537 (movsi_internal): Add LIW attributes.
3541 (addsi3): Separate register and immediate alternatives.
3546 (lshrsi3): Likewise.
3547 (ashrsi3): Likewise.
3549 * config/mn10300/mn10300.c (liw_op_names): New
3550 (mn10300_print_operand): Handle 'W' operand descriptor.
3551 (extract_bundle): New function.
3552 (check_liw_constraints): New function.
3553 (liw_candidate): New function.
3554 (mn10300_bundle_liw): New function.
3555 (mn10300_reorg): New function.
3556 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3557 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
3558 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
3559 __LIW__ or __NO_LIW__.
3560 * doc/invoke.texi: Describe the -mliw command line option.
3562 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3564 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
3565 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3566 pthread_mutex_unlock): Remove.
3567 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
3568 * config/pa/t-pa64: Likewise.
3569 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
3570 shared libc if not linking against libpthread.
3571 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3573 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
3576 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
3577 on 10.6 and later to ensure that we always use the unwinder from
3578 the system. Only add -no_compact_unwind when tarteting darwin
3581 2011-02-07 Steve Ellcey <sje@cup.hp.com>
3584 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
3585 (vec_interleave_lowv2sf): Ditto.
3586 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
3587 (vec_extract_oddv2sf): Ditto.
3589 2011-02-07 Mike Stump <mikestump@comcast.net>
3592 Add __ieee_divdc3 entry point.
3593 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
3595 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
3596 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
3597 * config/darwin.c (darwin_rename_builtins): Add.
3598 * config/darwin-protos.h (darwin_rename_builtins): Add.
3600 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
3603 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
3606 2011-02-07 Mike Stump <mikestump@comcast.net>
3608 * config/darwin.opt (mmacosx-version-min): Update default OS version.
3610 2011-02-07 Denis Chertykov <chertykov@gmail.com>
3613 * config/avr/libgcc.S (exit): Move .endfunc
3615 2011-02-07 Richard Guenther <rguenther@suse.de>
3617 PR tree-optimization/47615
3618 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
3619 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
3620 (run_scc_vn): Initialize it.
3621 (visit_reference_op_load): Use it.
3622 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
3624 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3626 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
3627 DImode trapping arithmetic libfuncs.
3629 2011-02-07 Richard Guenther <rguenther@suse.de>
3631 PR tree-optimization/47621
3632 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
3634 (execute_update_addresses_taken): ... here. Make it more
3635 conservative in what we accept.
3637 2011-02-06 Joseph Myers <joseph@codesourcery.com>
3639 * config/sparc/freebsd.h (ASM_SPEC): Define.
3640 * config/sparc/vxworks.h (ASM_SPEC): Define.
3642 2011-02-06 Joseph Myers <joseph@codesourcery.com>
3644 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
3646 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
3648 * doc/invoke.texi: Remove reference to compiler internals from
3651 * reg-notes.def: Remove REG_VALUE_PROFILE.
3652 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
3654 2011-02-05 Jakub Jelinek <jakub@redhat.com>
3657 * varasm.c (default_section_type_flags): If decl is NULL,
3658 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
3660 2011-02-05 Jie Zhang <jie@codesourcery.com>
3663 * web.c (entry_register): Don't clobber the number of the
3664 first uninitialized reference in used[].
3666 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
3668 PR tree-optimization/46194
3669 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
3670 (build_classic_dist_vector_1): Do not represent classic distance
3671 vectors when the access functions are variating in different loops.
3673 2011-02-04 Joseph Myers <joseph@codesourcery.com>
3675 * config/mips/iris6.opt: New.
3676 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
3678 2011-02-04 Richard Henderson <rth@redhat.com>
3679 Steve Ellcey <sje@cup.hp.com>
3682 * config/ia64/predicates.md (mux1_brcst_element): New.
3683 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
3684 * config/ia64/ia64.c (ia64_unpack_assemble): New.
3685 (ia64_unpack_sign): New.
3686 (ia64_expand_unpack): Rewrite using new routines.
3687 (ia64_expand_widen_sum): Ditto.
3688 (ia64_expand_dot_prod_v8qi): Ditto.
3689 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
3690 routines, add endian check.
3691 (pmpy2_even): Rename from pmpy2_r, add endian check.
3692 (pmpy2_odd): Rename from pmpy2_l, add endian check.
3693 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
3694 (vec_widen_smult_hi_v4hi): Ditto.
3695 (vec_widen_umult_lo_v4hi): Ditto.
3696 (vec_widen_umult_hi_v4hi): Ditto.
3697 (mulv2si3): Change endian checks.
3698 (sdot_prodv4hi): Rewrite with new calls.
3699 (udot_prodv4hi): New.
3700 (vec_pack_ssat_v4hi): Add endian check.
3701 (vec_pack_usat_v4hi): Ditto.
3702 (vec_pack_ssat_v2si): Ditto.
3703 (max1_even): Rename from max1_r, add endian check.
3704 (max1_odd): Rename from max1_l, add endian check.
3705 (*mux1_rev): Format change.
3707 (*mux1_shuf): Ditto.
3709 (*mux1_brcst_v8qi): Use new predicate.
3710 (vec_extract_evenv8qi): Remove endian check.
3711 (vec_extract_oddv8qi): Ditto.
3712 (vec_interleave_lowv4hi): Format change.
3713 (vec_interleave_highv4hi): Ditto.
3714 (mix2_even): Rename from mix2_r, add endian check.
3715 (mix2_odd): Rename from mux2_l, add endian check.
3716 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
3717 (vec_extract_evenodd_helper): Format change.
3718 (vec_extract_evenv4hi): Remove endian check.
3719 (vec_extract_oddv4hi): Remove endian check.
3720 (vec_interleave_lowv2si): Format change.
3721 (vec_interleave_highv2si): Format change.
3722 (vec_initv2si): Remove endian check.
3723 (vecinit_v2si): Add endian check.
3724 (reduc_splus_v2sf): Add endian check.
3725 (reduc_smax_v2sf): Ditto.
3726 (reduc_smin_v2sf): Ditto.
3727 (vec_initv2sf): Remove endian check.
3728 (fpack): Add endian check.
3729 (fswap): Add endian check.
3730 (vec_interleave_highv2sf): Add endian check.
3731 (vec_interleave_lowv2sf): Add endian check.
3732 (fmix_lr): Add endian check.
3733 (vec_setv2sf): Format change.
3734 (*vec_extractv2sf_0_be): Use shift to extract operand.
3735 (*vec_extractv2sf_1_be): New.
3736 (vec_pack_trunc_v4hi): Add endian check.
3737 (vec_pack_trunc_v2si): Format change.
3739 2011-02-04 Jakub Jelinek <jakub@redhat.com>
3742 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
3743 do bb, locus and block comparison and disallow loads if it is not set.
3744 (stmt_is_replaceable_p): New function.
3745 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
3747 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
3748 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
3750 * tree-flow.h (stmt_is_replaceable_p): New prototype.
3752 2011-02-04 Joseph Myers <joseph@codesourcery.com>
3754 * config/rs6000/xilinx.opt: New.
3755 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
3757 2011-02-04 Joseph Myers <joseph@codesourcery.com>
3759 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
3761 2011-02-03 Anatoly Sokolov <aesok@post.ru>
3763 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
3764 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3765 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
3766 secondary_reload_info, xtensa_secondary_reload): Remove.
3767 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
3768 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3769 (xtensa_preferred_reload_class): Make static. Change return and
3770 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
3771 Use CONST_DOUBLE_P predicate.
3772 (xtensa_preferred_output_reload_class): New function.
3773 (xtensa_secondary_reload): Make static.
3775 2011-02-03 Joseph Myers <joseph@codesourcery.com>
3777 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
3778 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
3779 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
3781 2011-02-03 Jakub Jelinek <jakub@redhat.com>
3784 * output.h (SECTION_RELRO): Define.
3785 (SECTION_MACH_DEP): Adjust.
3786 (get_variable_section): New prototype.
3787 * varpool.c (varpool_finalize_named_section_flags): New function.
3788 (varpool_assemble_pending_decls): Call it.
3789 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
3790 * cgraphunit.c (cgraph_output_in_order): Call
3791 varpool_finalize_named_section_flags.
3792 * varasm.c (get_section): Allow section flags conflicts between
3793 relro and read-only sections if the section hasn't been declared yet.
3794 Set SECTION_OVERRIDE after diagnosing section type conflict.
3795 (get_variable_section): No longer static.
3796 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
3797 readonly sections that need relocations.
3798 (decl_readonly_section_1): New function.
3799 (decl_readonly_section): Use it.
3802 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
3803 Steve Ellcey <sje@cup.hp.com>
3806 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3807 if section attribute used.
3809 2011-02-03 Jakub Jelinek <jakub@redhat.com>
3811 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
3812 * config/darwin.c (SECTION_NO_ANCHOR): Define.
3813 (darwin_init_sections): Remove assertion.
3815 2011-02-03 Nick Clifton <nickc@redhat.com>
3817 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
3819 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
3820 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
3821 instead of "n" and "pz".
3822 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
3825 2011-02-03 Jakub Jelinek <jakub@redhat.com>
3828 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
3829 fma, expand FMA_EXPR as fma{,f,l} call.
3832 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
3833 copy them into a unsigned char variable and pass address of it to
3834 lto_output_data_stream.
3837 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
3838 around backend_init_target and lang_dependent_init_target calls.
3839 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
3840 (verify_cgraph_node): Don't call set_cfun here. Use
3841 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
3842 Set error_found for incorrectly represented calls to thunks.
3844 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
3847 PR rtl-optimization/43494
3848 * rtl.h (for_each_inc_dec_fn): New type.
3849 (for_each_inc_dec): Declare.
3850 * rtlanal.c (struct for_each_inc_dec_ops): New type.
3851 (for_each_inc_dec_find_inc_dec): New fn.
3852 (for_each_inc_dec_find_mem): New fn.
3853 (for_each_inc_dec): New fn.
3854 * dse.c (struct insn_size): Remove.
3855 (replace_inc_dec, replace_inc_dec_mem): Remove.
3856 (emit_inc_dec_insn_before): New fn.
3857 (check_for_inc_dec): Use it, along with for_each_inc_dec.
3858 (canon_address): Pass mem modes to cselib_lookup.
3859 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
3860 (cselib_lookup_from_insn): Likewise.
3861 (cselib_subst_to_values): Likewise.
3862 * cselib.c (find_slot_memmode): New var.
3863 (cselib_find_slot): New fn. Use it instead of
3864 htab_find_slot_with_hash everywhere.
3865 (entry_and_rtx_equal_p): Use find_slot_memmode.
3866 (autoinc_split): New fn.
3867 (rtx_equal_for_cselib_p): Rename and implement in terms of...
3868 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
3869 Deal with autoinc. Special-case recursion into MEMs.
3870 (cselib_hash_rtx): Likewise.
3871 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
3872 address and MEM modes.
3873 (cselib_subst_to_values): Add memmode, pass it on.
3875 (cselib_lookup): Add memmode argument, pass it on.
3876 (cselib_lookup_from_insn): Add memmode.
3877 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
3878 (struct cselib_record_autoinc_data): New.
3879 (cselib_record_autoinc_cb): New fn.
3880 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
3881 mode to cselib_lookup. Reset autoinced REGs here instead of...
3882 (cselib_process_insn): ... here.
3883 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
3885 (add_uses): Likewise, also to cselib_subst_to_values.
3886 (add_stores): Likewise.
3887 * sched-deps.c (add_insn_mem_dependence): Pass mode to
3888 cselib_subst_to_values.
3889 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
3890 * gcse.c (do_local_cprop): Adjusted.
3891 * postreload.c (reload_cse_simplify_set): Adjusted.
3892 (reload_cse_simplify_operands): Adjusted.
3893 * sel-sched-dump (debug_mem_addr_value): Pass mode.
3895 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
3897 PR tree-optimization/45122
3898 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
3899 unsafe assumptions when there's more than one loop exit.
3901 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3904 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3905 Document using vector double with the load/store builtins, and
3906 that the load/store builtins always use Altivec instructions.
3908 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
3909 to use altivec memory instructions, even on VSX.
3910 (vector_altivec_store_<mode>): Ditto.
3912 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
3915 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3916 V2DF, V2DI support to load/store overloaded builtins.
3918 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
3919 altivec load/store builtins for V2DF/V2DI types.
3921 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3922 set avoid indexed addresses on power6 if -maltivec.
3923 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
3924 vector_altivec_load/vector_altivec_store builtins.
3925 (altivec_expand_st_builtin): Ditto.
3926 (altivec_expand_builtin): Add VSX memory builtins.
3927 (rs6000_init_builtins): Add V2DI types to internal types.
3928 (altivec_init_builtins): Add support for V2DF/V2DI altivec
3929 load/store builtins.
3930 (rs6000_address_for_altivec): Insure memory address is appropriate
3933 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
3934 vec_vsx_ld and vec_vsx_st.
3935 (vsx_store_<mode>): Ditto.
3937 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
3938 variables to hold long long types for VSX vector memory builtins.
3939 (RS6000_BTI_unsigned_long_long): Ditto.
3940 (long_long_integer_type_internal_node): Ditti.
3941 (long_long_unsigned_type_internal_node): Ditti.
3943 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
3944 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
3945 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
3947 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
3949 (vec_vsx_st): Ditto.
3951 2011-02-02 Joseph Myers <joseph@codesourcery.com>
3953 * config/pa/pa-hpux10.opt: New.
3954 * config/hpux11.opt (pthread): New Driver option.
3955 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
3956 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
3958 2011-02-02 Joseph Myers <joseph@codesourcery.com>
3960 * config/ia64/vms.opt: New.
3961 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
3963 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
3966 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
3967 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
3968 generator functions.
3969 (vsx_floatuns<VSi><mode>2): Ditto.
3970 (vsx_fix_trunc<mode><VSi>2): Ditto.
3971 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
3973 2011-02-02 Joseph Myers <joseph@codesourcery.com>
3975 * config/i386/djgpp.opt (posix): New Driver option.
3977 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
3979 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
3980 Move to the unsupported targets list.
3982 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
3984 PR rtl-optimization/47525
3985 * df-scan.c: Update copyright years.
3986 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
3987 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
3989 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3991 * config/i386/sysv4.h (TARGET_VERSION): Remove.
3992 (SUBTARGET_RETURN_IN_MEMORY): Remove.
3993 (ASM_OUTPUT_ASCII): Remove.
3994 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
3996 2011-02-02 Jeff Law <law@redhat.com>
3999 * reload.c (find_reloads_address): Handle reg+d address where both
4000 components are invalid by reloading the entire address.
4002 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
4003 Richard Guenther <rguenther@suse.de>
4005 PR tree-optimization/40979
4007 * passes.c (init_optimization_passes): After LIM call copy_prop
4008 and DCE to clean up.
4009 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
4011 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
4013 PR tree-optimization/47576
4014 PR tree-optimization/47555
4015 * doc/invoke.texi (scev-max-expr-complexity): Documented.
4016 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
4017 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
4018 * tree-scalar-evolution.c (follow_ssa_edge): Use
4019 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
4021 2011-02-02 Richard Guenther <rguenther@suse.de>
4023 PR tree-optimization/47566
4024 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
4026 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
4030 * tree-inline.c (declare_return_variable): Remove unused caller
4035 * tree-flow-inline.h (clear_is_used, is_used_p): New.
4036 * cfgexpand.c (account_used_vars_for_block): Use them.
4037 * tree-nrv.c (tree_nrv): Likewise.
4038 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
4039 (dump_scope_block): Likewise.
4040 (remove_unused_locals): Likewise.
4044 * tree-inline.c (declare_return_variable): Add result decl to
4045 local decls only once.
4046 * gimple-low.c (record_vars_into): Mark newly-created variables
4049 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
4055 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary