1 2011-03-26 Alan Modra <amodra@gmail.com>
3 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4 cmodel medium addresses.
5 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6 64-bit gpr loads and stores.
7 (rs6000_secondary_reload_ppc64): New function.
8 * config/rs6000/rs6000-protos.h: Declare it.
9 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11 2011-03-26 Alan Modra <amodra@gmail.com>
14 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
15 GNU Go in traceback table.
17 2011-03-25 Richard Henderson <rth@redhat.com>
19 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
20 if there are exactly 6 operands.
21 (set_storage_via_setmem): Similarly.
23 2011-03-25 Kai Tietz <ktietz@redhat.com>
25 * collect2.c (write_c_file_stat): Handle backslash
26 as right-hand directory separator.
27 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
28 checking just for slash.
29 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
30 instead of checking for trailing slash.
31 * gcc.c (record_temp_file): Use filename_cmp instead
33 (do_spec_1): Likewise.
34 (replace_outfile_spec_function): Likewise.
35 (is_directory): Use filename_ncmp instead of strncmp.
36 (print_multilib_info): Likewise.
37 * gcov.c (find_source): Use filename_cmp instead
39 (make_gcov_file_name): Fix order of slash/backslash
41 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
42 (add_standard_paths): Likewise.
43 * mips-tfile.c (saber_stop): Handle backslash.
44 * prefix.c (update_path): Use filename_ncmp instead of
46 * profile.c (output_location): Use filename_cmp instead
48 * read-md.c (handle_toplevel_file): Handle backslash.
49 * tlink.c (frob_extension): Likewise.
50 * tree-cfg.c (same_line_p): Use filename_cmp instead of
52 * tree-dump.c (dequeue_and_dump): Handle backslash.
53 * tree.c (get_file_function_name): Likewise.
54 * gengtype.c (read_input_list): Likewise.
55 (get_file_realbasename): Likewise.
56 (get_output_file_with_visibility): Use filename_cmp
59 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
61 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
64 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
66 * fold-const.c (expr_location_or): New function.
67 (fold_truth_not_expr): Call it.
69 2011-03-25 Jeff Law <law@redhat.com>
71 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
73 * c-family/c-common.c (def_fn_type): Likewise.
74 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
75 * emit-rtl.c (gen_rtvec): Likewise.
76 * lto/lto-lang.c (def_fn_type): Likewise.
78 2011-03-25 Richard Guenther <rguenther@suse.de>
80 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
82 (fini_copy_prop): Handle constant values properly.
84 2011-03-25 Jakub Jelinek <jakub@redhat.com>
86 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
87 mode size instead of bitsize with DWARF2_ADDR_SIZE.
88 (hash_loc_operands, compare_loc_operands): Handle
89 DW_OP_GNU_entry_value.
91 2011-03-25 Kai Tietz <ktietz@redhat.com>
93 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
94 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
95 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
96 comment and use macro TARGET_64BIT_MS_ABI instead.
97 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
98 and change default behavior for 32-bit MS_ABI.
99 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
100 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
102 (ix86_cfun_abi): Likewise.
103 (ix86_maybe_switch_abi): Adjust comment.
104 (init_cumulative_args): Check for bit-ness in MS_ABI case.
105 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
106 instead of checking for SYSV_ABI.
107 (ix86_nsaved_sseregs): Likewise.
108 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
110 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
111 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
112 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
113 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
114 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
116 2011-03-25 Richard Guenther <rguenther@suse.de>
118 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
119 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
120 (verify_gimple): Remove.
121 * tree-cfg.c (verify_gimple_call): Merge verification
123 (verify_gimple_phi): Merge verification from verify_stmts.
124 (verify_gimple_label): New function.
125 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
126 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
127 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
128 (verify_stmts): Rename to verify_gimple_in_cfg.
129 (verify_gimple_in_cfg): New function.
130 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
131 * tree-ssa.c (verify_ssa): Likewise.
132 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
134 2011-03-25 Richard Guenther <rguenther@suse.de>
136 * passes.c (init_optimization_passes): Add FRE pass after
139 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
140 Andrew Stubbs <ams@codesourcery.com>
142 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
144 (arm_movdi_vfp_cortexa8): New pattern.
145 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
146 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
147 instructions when tuning for Cortex-A8. Set attribute "arch".
148 * config/arm/arm.md: Move include arm-tune.md up a bit.
149 (define_attr "arch"): Add "onlya8" and "nota8" values.
150 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
152 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
156 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
158 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
159 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
160 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
161 * passes.c (init_optimization_passes): Move
162 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
164 2011-03-25 Kai Tietz <ktietz@redhat.com>
166 * c-typeck.c (comptypes_internal): Replace target
167 hook call of comp_type_attributes by version in tree.c file.
168 * gimple.c (gimple_types_compatible_p_1): Likewise.
169 * tree-ssa.c (useless_type_conversion_p): Likewise.
170 * tree.c (build_type_attribute_qual_variant): Likewise.
171 (attribute_value_equal): New static helper function.
172 (comp_type_attributes): New function.
173 (merge_attributes): Use attribute_value_equal for comparison.
174 (attribute_list_contained): Likewise.
175 * tree.h (comp_type_attributes): New prototype.
177 2011-03-25 Richard Guenther <rguenther@suse.de>
179 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
180 of complex types at -O0.
181 (verify_gimple_assign_binary): Likewise.
182 (verify_gimple_assign_ternary): Likewise.
184 2011-03-24 Mark Wielaard <mjw@redhat.com>
186 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
187 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
189 2011-03-24 Mark Wielaard <mjw@redhat.com>
192 * dwarf2out.c (output_abbrev_section): Only write table when
193 abbrev_die_table_in_use > 1.
195 2011-02-24 Richard Henderson <rth@redhat.com>
197 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
198 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
199 (alpha_expand_unaligned_load_words): Use extql.
200 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
201 (emit_insxl): Handle all modes for consistency.
203 2011-02-24 Richard Henderson <rth@redhat.com>
205 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
206 (alpha_expand_unaligned_load): Likewise.
207 (alpha_expand_unaligned_store): Likewise.
208 (alpha_expand_unaligned_load_words): Likewise.
209 (alpha_expand_unaligned_store_words): Likewise.
210 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
211 (alpha_split_lock_test_and_set_12): Likewise.
212 (print_operand, alpha_fold_builtin_extxx): Likewise.
213 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
214 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
215 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
216 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
217 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
218 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
219 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
220 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
221 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
222 (extwl, extll, extql): Similarly.
223 (inswh, inslh, insqh): Similarly.
224 (mskbl, mskwl, mskll, mskql): Similarly.
225 (mskwh, msklh, mskqh): Similarly.
227 2011-02-24 Richard Henderson <rth@redhat.com>
229 * config/alpha/alpha.md (attribute isa): Add er, ner.
230 (attribute enabled): Handle them.
231 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
233 2011-02-24 Richard Henderson <rth@redhat.com>
235 * config/alpha/alpha.md (attribute isa): Add vms.
236 (attribute enabled): Handle it.
237 (*movsf): Merge *movsf_{nofix,fix,nofp}.
238 (*movdf): Merge *movdf_{nofix,fix,nofp}.
239 (*movtf): Rename from *movtf_internal for consistency.
240 (*movsi): Merge with *movsi_nt_vms.
241 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
242 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
243 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
244 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
246 2011-02-24 Richard Henderson <rth@redhat.com>
248 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
249 (extendqisi2, extendhisi2): Likewise.
250 (extendqidi2): Simplify BWX/non-BWX expansions.
251 (extendhidi2): Similarly.
253 2011-02-24 Richard Henderson <rth@redhat.com>
255 * config/alpha/alpha.md (attribute isa): New.
256 (attribute enabled): New.
257 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
258 (zero_extendqisi2, zero_extendqidi2): Similarly.
259 (zero_extendhisi2, zero_extendhidi2): Similarly.
260 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
262 2011-02-24 Richard Henderson <rth@redhat.com>
264 * config/alpha/predicates.md (input_operand): Revert last change;
265 update comment to mention 32-bit VMS rather than Windows.
267 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
269 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
270 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
271 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
272 * passes.c (init_optimization_passes): Move
273 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
275 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
277 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
279 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
281 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
284 2011-03-24 Jakub Jelinek <jakub@redhat.com>
287 * simplify-rtx.c (simplify_const_unary_operation): Call
288 real_convert when changing mode class with FLOAT_EXTEND.
290 2011-03-24 Nick Clifton <nickc@redhat.com>
292 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
293 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
294 * config/rx/rx.c (rx_option_override): Set align_jumps,
295 align_loops and align_labels if not set by the user.
296 (rx_align_for_label): New function.
297 (rx_max_skip_for_label): New function.
298 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
299 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
300 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
301 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
302 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
304 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
306 PR rtl-optimization/48263
307 * optabs.c (expand_binop_directly): Reinstate convert_modes code
308 and original commutative_p handling. Use maybe_gen_insn.
310 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
312 * reload.c (find_reloads_subreg_address): Add address_reloaded
313 parameter and return true there if the full address has been
315 (find_reloads_toplev): Pass address_reloaded flag.
316 (find_reloads_address_1): Don't use address_reloaded parameter.
318 2011-03-24 Jeff Law <law@redhat.com>
320 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
321 unused variable "ann".
322 (remove_unused_locals): Likewise.
324 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
327 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
330 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
332 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
333 for invalid symbolic addresses.
334 (s390_secondary_reload): Don't use s390_check_symref_alignment for
337 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
339 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
340 the argument in calls to fold_truth_not_expr.
342 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
344 * tree.c (record_node_allocation_statistics): New function.
345 (make_node_stat, copy_node_stat, build_string): Call it.
346 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
347 (build1_stat, build_omp_clause): Likewise.
349 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
351 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
354 2011-03-24 Richard Guenther <rguenther@suse.de>
356 PR tree-optimization/48271
357 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
358 blocks that still exist.
360 2011-03-24 Richard Guenther <rguenther@suse.de>
362 PR tree-optimization/48270
363 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
364 not free datarefs before ddrs.
366 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
368 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
369 from the address built for a reference with variable offset.
371 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
374 * config/i386/i386.md (*movdf_internal_rex64): Do not split
375 alternatives that can be handled with movq or movabsq insn.
376 (*movdf_internal): Disable for !TARGET_64BIT.
377 (*movdf_internal_nointeger): Ditto.
378 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
380 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
382 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
383 (FUNCTION_ARG_ADVANCE): Likewise.
384 * tm.texi.in: Change references to them to hook references.
385 * tm.texi: Regenerate.
386 * targhooks.c (default_function_arg): Eliminate check for target macro.
387 (default_function_incoming_arg): Likewise.
388 (default_function_arg_advance): Likewise.
389 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
390 (function_arg_advance): Likewise.
391 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
393 2011-03-24 Richard Guenther <rguenther@suse.de>
396 * tree-object-size.c (addr_object_size): Do not double-account
399 2011-03-24 Diego Novillo <dnovillo@google.com>
401 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
402 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
403 (lto_input_data_block): Move from lto-opts.c. Make extern.
405 (lto_input_string): Rename from input_string. Make extern.
407 * lto-streamer-out.c (lto_output_string_with_length): Rename from
408 output_string_with_length.
409 Output 0 to indicate a non-NULL string. Update all callers to
411 (lto_output_string): Rename from output_string. Make extern.
413 (lto_output_decl_state_streams): Make extern.
414 (lto_output_decl_state_refs): Make extern.
415 * lto-streamer.h (lto_input_string): Declare.
416 (lto_input_data_block): Declare.
417 (lto_output_string): Declare.
418 (lto_output_string_with_length): Declare.
419 (lto_output_decl_state_streams): Declare.
420 (lto_output_decl_state_refs): Declare.
422 2011-03-24 Richard Guenther <rguenther@suse.de>
424 PR tree-optimization/46562
425 * tree.c (build_invariant_address): New function.
426 * tree.h (build_invariant_address): Declare.
427 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
428 a renamed function moved ...
429 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
430 Take valueization callback parameter.
431 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
432 * gimple-fold.h: New file.
433 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
434 (ccp_fold, fold_const_aggregate_ref,
435 fold_ctor_reference, fold_nonarray_ctor_reference,
436 fold_array_ctor_reference, fold_string_cst_ctor_reference,
437 get_base_constructor): Move ...
438 * gimple-fold.c: ... here.
439 (gimple_fold_stmt_to_constant_1): New function
440 split out from ccp_fold. Take a valueization callback parameter.
441 Valueize all operands.
442 (gimple_fold_stmt_to_constant): New wrapper function.
443 (fold_const_aggregate_ref_1): New function split out from
444 fold_const_aggregate_ref. Take a valueization callback parameter.
445 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
446 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
447 invariant POINTER_PLUS_EXPRs to invariant form.
448 (vn_valueize): New function.
449 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
450 * tree-vrp.c (vrp_valueize): New function.
451 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
452 to fold statements to constants.
453 * tree-ssa-pre.c (eliminate): Properly guard propagation of
454 function declarations.
455 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
456 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
458 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
460 * config/h8300/predicates.md (jump_address_operand): Fix register
463 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
465 * doc/invoke.texi (max-stores-to-sink): Document.
466 * params.h (MAX_STORES_TO_SINK): Define.
467 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
468 if either vectorization or if-conversion is disabled.
469 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
470 tree-vect-data-refs.c vect_equal_offsets.
471 (dr_equal_offsets_p): New function.
472 (find_data_references_in_bb): Remove static.
473 * tree-data-ref.h (find_data_references_in_bb): Declare.
474 (dr_equal_offsets_p): Likewise.
475 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
476 (vect_drs_dependent_in_basic_block): Update calls to
478 (vect_check_interleaving): Likewise.
479 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
480 (cond_if_else_store_replacement): Rename to...
481 (cond_if_else_store_replacement_1): ... this. Change arguments and
483 (cond_if_else_store_replacement): New function.
484 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
485 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
487 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
490 * config/arm/arm.md (casesi): Use the gen_int_mode() function
491 to subtract lower bound instead of GEN_INT().
493 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
498 * doc/extend.texi (Alignment): Move section to match order in TOC.
499 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
500 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
502 2011-03-23 Jeff Law <law@redhat.com>
504 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
505 before removing the edge.
507 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
508 it may have been freed by redirect_branch_edge or
509 redirect_edge_succ_nodup.
511 2011-03-23 Richard Guenther <rguenther@suse.de>
513 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
514 (check_va_list_escapes): Likewise.
515 (check_all_va_list_escapes): Likewise.
517 2011-03-23 Richard Guenther <rguenther@suse.de>
519 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
520 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
521 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
523 (ipa-type-escape.o): Remove.
524 (ipa-struct-reorg.o): Likewise.
525 (GTFILES): Remove ipa-struct-reorg.c.
526 * alias.c: Do not include ipa-type-escape.h.
527 * tree-ssa-alias.c: Likewise.
528 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
529 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
530 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
531 and ipa-type-escape passes.
532 * tree-pass.h (pass_ipa_type_escape): Remove.
533 (pass_ipa_struct_reorg): Likewise.
534 * ipa-struct-reorg.h: Remove.
535 * ipa-struct-reorg.c: Likewise.
536 * ipa-type-escape.h: Likewise.
537 * ipa-type-escape.c: Likewise.
538 * doc/invoke.texi (-fipa-struct-reorg): Remove.
539 (--param struct-reorg-cold-struct-ratio): Likewise.
540 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
541 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
542 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
544 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
546 * config/s390/2084.md: Enable all insn reservations also for z9_ec
548 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
549 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
550 * config/s390/s390.c (processor_flags_table): New constant array.
551 (s390_handle_arch_option): Remove.
552 (s390_handle_option): Remove s390_handle_arch_option invocations
553 and OPT_mwarn_framesize_ handling.
554 (s390_option_override): Remove s390_handle_arch_option invocation.
555 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
557 * config/s390/s390.md (cpu attribute): Add z9_ec value.
558 * config/s390/s390.opt (s390_tune, s390_arch)
559 (march=): Replace s390_arch_option enum and values with
560 processor_type. Set variable name to s390_arch. Set
561 initialization value.
562 (mtune=): Replace s390_arch_option with processor_type. Set
563 variable name to s390_tune. Set initialization value.
565 2011-03-23 Julian Brown <julian@codesourcery.com>
567 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
568 accesses which are not naturally aligned.
570 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
573 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
575 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
577 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
578 parameter from "int" to "enum insn_code".
579 (expand_operand_type): New enum.
580 (expand_operand): New structure.
581 (create_expand_operand): New function.
582 (create_fixed_operand, create_output_operand): Likewise
583 (create_input_operand, create_convert_operand_to): Likewise.
584 (create_convert_operand_from, create_address_operand): Likewise.
585 (create_integer_operand): Likewise.
586 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
587 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
588 (expand_insn, expand_jump_insn): Likewise.
589 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
590 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
591 (expand_movstr, expand_builtin___clear_cache): Likewise.
592 (expand_builtin_lock_release): Likewise.
593 * explow.c (allocate_dynamic_stack_space): Likewise.
594 (probe_stack_range): Likewise. Allow check_stack to FAIL,
595 and use the default handling in that case.
596 * expmed.c (check_predicate_volatile_ok): Delete.
597 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
598 (emit_cstore): Likewise.
599 * expr.c (emit_block_move_via_movmem): Likewise.
600 (set_storage_via_setmem, expand_assignment): Likewise.
601 (emit_storent_insn, try_casesi): Likewise.
602 (emit_single_push_insn): Likewise. Allow the expansion to fail.
603 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
604 (expand_vec_shift_expr, expand_binop_directly): Likewise.
605 (expand_twoval_unop, expand_twoval_binop): Likewise.
606 (expand_unop_direct, emit_indirect_jump): Likewise.
607 (emit_conditional_move, vector_compare_rtx): Likewise.
608 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
609 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
610 (expand_sync_lock_test_and_set): Likewise.
611 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
612 (emit_unop_insn): Likewise.
613 (expand_copysign_absneg): Change icode to an insn_code.
614 (create_convert_operand_from_type): New function.
615 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
616 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
617 (expand_insn, expand_jump_insn): Likewise.
618 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
619 than const_int_operand for operand 2.
621 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
623 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
626 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
628 * emit-rtl.c (emit_pattern_before_noloc): New function.
629 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
630 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
631 (emit_pattern_after_noloc): New function.
632 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
633 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
635 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
637 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
638 (__ffsDI2): Likewise.
640 2011-03-22 Richard Henderson <rth@redhat.com>
642 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
643 of !TARGET_ABI_OPEN_VMS.
644 (alpha_trampoline_init, alpha_start_function): Likewise.
645 (alpha_expand_epilogue, alpha_file_start): Likewise.
646 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
647 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
648 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
649 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
650 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
652 2011-03-22 Joseph Myers <joseph@codesourcery.com>
654 * config/s390/s390-opts.h: New.
655 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
656 s390_arch_flags, s390_warn_framesize, s390_stack_size,
657 s390_stack_guard): Remove.
658 (s390_handle_arch_option): Return void. Take enum
659 s390_arch_option value instead of string and searching array.
660 (s390_handle_option): Don't assert that global structures are in
661 use. Access variables via opts pointer. Use error_at. Don't use
662 sscanf for -mstack-guard= or -mstack-size=. Update call to
663 s390_handle_arch_option.
664 (s390_option_override): Update call to s390_handle_arch_option.
665 (s390_emit_prologue): Use %d format for s390_stack_size in
666 diagnostic. Use %wd for HOST_WIDE_INT.
667 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
668 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
669 * config/s390/s390.opt (config/s390/s390-opts.h): New
671 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
672 s390_arch_flags, s390_warn_framesize): New Variable entries.
673 (s390_arch_option): New Enum and EnumValue entries.
674 (march=): Use Enum instead of Var.
675 (mstack-guard=, mstack-size=): Use UInteger and Var.
678 2011-03-22 Joseph Myers <joseph@codesourcery.com>
680 * config/score/score.c (score_handle_option): Don't assert that
681 global structures are in use. Access target_flags via opts
682 pointer. Use value of -march= option to determine target_flags
684 * config/score/score.opt (march=): Use Enum.
685 (score_arch): New Enum and EnumValue entries.
687 2011-03-22 Joseph Myers <joseph@codesourcery.com>
689 * config/mep/mep.c (option_mtiny_specified): Remove.
690 (mep_option_override): Move register handling for -mivc2 from
691 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
692 instead of option_mtiny_specified.
693 (mep_handle_option): Access target_flags via opts pointer. Don't
694 assert that global structures are in use. Defer part of -mivc2
695 handling and move it to mep_option_override.
696 * config/mep/mep.opt (IVC2): New Mask entry.
697 (mivc2): Use Var and Defer instead of Mask.
699 2011-03-22 Joseph Myers <joseph@codesourcery.com>
701 * config/v850/v850-opts.h: New.
702 * config/v850/v850.c (small_memory): Replace with
703 small_memory_physical_max array. Make that array static const.
704 (v850_handle_memory_option): Take integer value of argument. Take
705 gcc_options pointer, option text and location. Return void.
706 Update for changes to small memory structures.
707 (v850_handle_option): Access target_flags via opts pointer. Don't
708 assert that global structures are in use. Update calls to
709 v850_handle_memory_option.
710 (v850_encode_data_area): Update references to small memory settings.
711 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
712 (enum small_memory_type): Move to v850-opts.h.
713 * config/v850/v850.opt (config/v850/v850-opts.h): New
715 (small_memory_max): New Variable entry.
716 (msda): Replace by pair of options msda= and msda-. Use UInteger.
717 (mtda, mzda): Likewise.
719 2011-03-22 Joseph Myers <joseph@codesourcery.com>
721 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
722 pointer. Don't assert that global structures are in use.
724 2011-03-22 Joseph Myers <joseph@codesourcery.com>
726 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
727 via opts pointer. Don't assert that global structures are in use.
729 2011-03-22 Joseph Myers <joseph@codesourcery.com>
731 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
733 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
734 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
735 * config/pa/pa-opts.h: New.
736 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
737 (pa_handle_option): Don't assert that global structures are in
738 use. Access target_flags via opts pointer. Don't handle
739 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
741 (pa_option_override): Handle deferred OPT_mfixed_range_.
743 2011-03-22 Joseph Myers <joseph@codesourcery.com>
745 * config/mn10300/mn10300-opts.h: New.
746 * config/mn10300/mn10300.c (mn10300_processor,
747 mn10300_tune_string): Remove.
748 (mn10300_handle_option): Don't assert that global structures are
749 in use. Access mn10300_processor via opts pointer. Don't handle
751 * config/mn10300/mn10300.h (enum processor_type): Move to
753 (mn10300_processor): Remove.
754 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
756 (mn10300_processor): New Variable entry.
759 2011-03-22 Joseph Myers <joseph@codesourcery.com>
761 * config/microblaze/microblaze.c: Don't include opts.h.
762 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
763 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
764 (mno-clearbss): Use Var and Warn.
766 2011-03-22 Joseph Myers <joseph@codesourcery.com>
768 * config/m32r/m32r-opts.h: New.
769 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
770 (m32r_handle_option): Don't assert that global structures are in
771 use. Access target_flags and m32r_cache_flush_func via opts
772 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
773 OPT_mno_flush_trap here.
774 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
775 include of m32r-opts.h.
776 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
778 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
779 (mmodel=): Use Enum and Var.
780 (m32r_model): New Enum and EnumValue entries.
781 (mno-flush-trap): Use Var.
782 (msdata=): Use Enum and Var.
783 (m32r_sdata): New Enum and EnumValue entries.
785 2011-03-22 Joseph Myers <joseph@codesourcery.com>
787 * config/m32c/m32c.c: Don't include opts.h.
788 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
789 m32c_handle_option): Remove.
790 (m32c_option_override): Check global_options_set.x_target_memregs
791 instead of target_memregs_set.
792 * config/m32c/m32c.h (target_memregs): Remove.
793 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
796 2011-03-22 Joseph Myers <joseph@codesourcery.com>
798 * config/iq2000/iq2000-opts.h: New.
799 * config/iq2000/iq2000.c: Don't include opts.h.
800 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
801 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
802 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
804 (iq2000_tune): New Variable entry.
805 (march=): Add comment. Use Enum.
806 (iq2000_arch): New Enum and EnumValue entries.
807 (mcpu=): Use Enum and Var.
808 (iq2000_tune): New Enum and EnumValue entries.
810 2011-03-22 Joseph Myers <joseph@codesourcery.com>
812 * config/ia64/ia64-opts.h: New.
813 * config/ia64/ia64.c (ia64_tune): Remove.
814 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
816 (ia64_option_override): Handle deferred OPT_mfixed_range_.
817 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
818 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
820 (ia64_tune): New Variable entry.
821 (mfixed-range=): Use Defer and Var.
822 (mtune=): Use Enum and Var.
823 (ia64_tune): New Enum and EnumValue entries.
825 2011-03-22 Joseph Myers <joseph@codesourcery.com>
827 * config/frv/frv-opts.h: New.
828 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
830 (frv_cpu_type): Remove.
831 * config/frv/frv.c: Don't include opts.h.
832 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
833 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
834 (frv_cpu_type): New Variable entry.
835 (frv_cpu): New Enum and EnumValue entries.
837 2011-03-22 Joseph Myers <joseph@codesourcery.com>
839 * config/cris/cris.c (cris_handle_option): Access target_flags via
840 opts pointer. Don't assert that global structures are in use.
841 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
842 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
844 2011-03-22 Joseph Myers <joseph@codesourcery.com>
846 * config/bfin/bfin-opts.h: New.
847 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
848 bfin_si_revision, bfin_workarounds): Remove.
849 (bfin_cpus): Make static const.
850 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
851 not bfin_lib_id_given.
852 (bfin_handle_option): Don't set bfin_lib_id_given. Access
853 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
854 pointer. Use error_at. Don't assert that global structures are in use.
855 * config/bfin/bfin.h: Include bfin-opts.h.
856 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
857 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
858 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
859 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
862 2011-03-22 Joseph Myers <joseph@codesourcery.com>
864 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
865 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
866 or -msoft-float here.
867 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
868 -msoft-float and -mhard-float.
869 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
870 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
872 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
874 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
875 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
877 (LIBGCC_SPEC): Don't handle -msoft-float.
878 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
880 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
882 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
883 -mfloat-abi=*, not -msoft-float and -mhard-float.
884 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
886 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
887 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
888 mhard-float and msoft-float.
889 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
890 mfloat-abi=soft in comments, not mhard-float and msoft-float.
891 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
892 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
894 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
895 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
897 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
899 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
902 2011-03-22 Richard Henderson <rth@redhat.com>
904 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
905 TARGET_ABI_WINDOWS_NT.
906 (alpha_output_function_end_prologue): Likewise.
907 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
908 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
909 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
910 (trap, *movsi_nt_vms): Likewise.
911 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
912 (*tablejump_osf_nt_internal): Remove.
913 * config/alpha/predicates.md (input_operand): Only test Pmode.
915 2011-03-22 Joseph Myers <joseph@codesourcery.com>
917 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
918 via opts pointer. Use error_at. Don't assert that global
919 structures are in use.
921 2011-03-22 Joseph Myers <joseph@codesourcery.com>
923 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
924 (ix86_handle_option): Access ix86_isa_flags and
925 ix86_isa_flags_explicit via opts pointer. Don't assert that
926 global structures are in use.
927 (ix86_function_specific_save, ix86_function_specific_restore):
928 Update ix86_isa_flags_explicit field name.
929 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
930 (ix86_isa_flags_explicit): Rename TargetSave entry to
931 x_ix86_isa_flags_explicit.
933 2011-03-22 Richard Henderson <rth@redhat.com>
935 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
936 (alpha_option_override, direct_return): Likewise.
937 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
938 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
939 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
940 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
941 (alpha_expand_epilogue, alpha_end_function): Likewise.
942 (alpha_init_libfuncs): Likewise.
943 (struct machine_function): Remove unicosmk members.
944 (print_operand) ['t']: Remove.
945 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
946 unicosmk_output_module_name, unicosmk_output_common,
947 current_section_align, unicosmk_output_text_section_asm_op,
948 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
949 unicosmk_section_type_flags, unicosmk_unique_section,
950 unicosmk_asm_named_section, unicosmk_insert_attributes,
951 unicosmk_output_align, unicosmk_defer_case_vector,
952 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
953 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
954 unicosmk_output_ssib, unicosmk_add_call_info_word,
955 unicosmk_extern_head, unicosmk_output_default_externs,
956 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
957 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
958 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
959 * config/alpha/alpha-protos.h: Update.
960 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
961 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
962 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
963 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
964 (*mulsi_se, mulvsi3): Likewise.
965 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
966 (*divmodsi_internal, call, call_value, realign): Likewise.
967 (moddi3, umoddi3): Likewise; remove duplicate expander.
968 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
969 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
970 (*movdi_nofix): Remove r/U alternative.
971 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
972 * config/alpha/constraints.md ("U"): Remove.
973 * config/alpha/predicates.md (call_operand"): Don't test
976 2011-03-22 Joseph Myers <joseph@codesourcery.com>
978 * target.def (handle_option): Take gcc_options and
979 cl_decoded_option pointers and location_t.
980 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
981 * doc/tm.texi: Regenerate.
982 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
983 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
984 * lto-opts.c (lto_reissue_options): Generate option structure for
985 targetm.handle_option call.
986 * opts.c (target_handle_option): Update call to
987 targetm.handle_option. Remove assertions about values now passed
989 * targhooks.c (default_target_handle_option): New.
990 * targhooks.h (default_target_handle_option): Declare.
991 * config/alpha/alpha.c: Include opts.h.
992 (alpha_handle_option): Update to new hook interface.
993 * config/arm/arm.c: Include opts.h.
994 (arm_handle_option): Update to new hook interface.
995 * config/arm/t-arm (arm.o): Update dependencies.
996 * config/bfin/bfin.c: Include opts.h.
997 (bfin_handle_option): Update to new hook interface.
998 * config/cris/cris.c: Include opts.h.
999 (cris_handle_option): Update to new hook interface.
1000 * config/frv/frv.c: Include opts.h.
1001 (frv_handle_option): Update to new hook interface.
1002 * config/i386/i386.c: Include opts.h.
1003 (ix86_handle_option): Update to new hook interface.
1004 (ix86_valid_target_attribute_inner_p): Generate option structure
1005 for call to ix86_handle_option.
1006 * config/i386/t-i386 (i386.o): Update dependencies.
1007 * config/ia64/ia64.c: Include opts.h.
1008 (ia64_handle_option): Update to new hook interface.
1009 * config/ia64/t-ia64 (ia64.o): Update dependencies.
1010 * config/iq2000/iq2000.c: Include opts.h.
1011 (iq2000_handle_option): Update to new hook interface.
1012 * config/m32c/m32c.c: Include opts.h.
1013 (m32c_handle_option): Update to new hook interface.
1014 * config/m32r/m32r.c: Include opts.h.
1015 (m32r_handle_option): Update to new hook interface.
1016 * config/m68k/m68k.c: Include opts.h.
1017 (m68k_handle_option): Update to new hook interface.
1018 * config/mep/mep.c: Include opts.h.
1019 (mep_handle_option): Update to new hook interface.
1020 * config/microblaze/microblaze.c: Include opts.h.
1021 (microblaze_handle_option): Update to new hook interface.
1022 * config/mips/mips.c: Include opts.h.
1023 (mips_handle_option): Update to new hook interface.
1024 * config/mn10300/mn10300.c: Include opts.h.
1025 (mn10300_handle_option): Update to new hook interface.
1026 * config/pa/pa.c: Include opts.h.
1027 (pa_handle_option): Update to new hook interface.
1028 * config/pdp11/pdp11.c: Include opts.h.
1029 (pdp11_handle_option): Update to new hook interface.
1030 * config/rs6000/rs6000.c: Include opts.h.
1031 (rs6000_handle_option): Update to new hook interface.
1032 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1033 * config/rx/rx.c: Include opts.h.
1034 (rx_handle_option): Update to new hook interface.
1035 * config/s390/s390.c: Include opts.h.
1036 (s390_handle_option): Update to new hook interface.
1037 * config/score/score.c: Include opts.h.
1038 (score_handle_option): Update to new hook interface.
1039 * config/sh/sh.c: Include opts.h.
1040 (sh_handle_option): Update to new hook interface.
1041 * config/sparc/sparc.c: Include opts.h.
1042 (sparc_handle_option): Update to new hook interface.
1043 * config/v850/v850.c: Include opts.h.
1044 (v850_handle_option): Update to new hook interface.
1046 2011-03-22 Joseph Myers <joseph@codesourcery.com>
1048 * gcc.c (driver_unknown_option_callback): Only permit and save
1049 unknown -Wno- options.
1050 (driver_wrong_lang_callback): Save options directly instead of via
1051 driver_unknown_option_callback.
1053 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1055 * combine.c (simplify_set): Try harder to find the best CC mode when
1056 simplifying a nested COMPARE on the RHS.
1058 2011-03-22 Joseph Myers <joseph@codesourcery.com>
1060 * config/alpha/gnu.h: Remove.
1061 * config/arc: Remove directory.
1062 * config/arm/netbsd.h: Remove.
1063 * config/arm/t-pe: Remove.
1064 * config/crx: Remove directory.
1065 * config/i386/netbsd.h: Remove.
1066 * config/m68hc11: Remove directory.
1067 * config/m68k/uclinux-oldabi.h: Remove.
1068 * config/mcore/mcore-pe.h: Remove.
1069 * config/mcore/t-mcore-pe: Remove.
1070 * config/netbsd-aout.h: Remove.
1071 * config/rs6000/gnu.h: Remove.
1072 * config/sh/sh-symbian.h: Remove.
1073 * config/sh/symbian-base.c: Remove.
1074 * config/sh/symbian-c.c: Remove.
1075 * config/sh/symbian-cxx.c: Remove.
1076 * config/sh/symbian-post.h: Remove.
1077 * config/sh/symbian-pre.h: Remove.
1078 * config/sh/t-symbian: Remove.
1079 * config/svr3.h: Remove.
1080 * config/vax/netbsd.h: Remove.
1081 * config.build: Don't handle i[34567]86-*-pe.
1082 * config.gcc: Remove handling of deprecations for most deprecated
1084 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
1085 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
1086 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
1087 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
1088 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
1089 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
1091 * config.host: Don't handle i[34567]86-*-pe.
1092 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
1093 (ASM_SPEC32): Don't handle -mcall-gnu.
1094 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
1096 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
1097 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
1098 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
1099 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
1100 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
1101 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
1102 conditional on SYMBIAN.
1103 * configure.ac: Don't handle powerpc*-*-gnu*.
1104 * configure: Regenerate.
1105 * doc/extend.texi (interrupt attribute): Don't mention CRX.
1106 * doc/install-old.texi (m6811, m6812): Don't mention.
1107 * doc/install.texi (arc-*-elf*): Don't document multilib option.
1108 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
1109 (m68k-uclinuxoldabi): Don't mention.
1110 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
1112 (-mcall-gnu): Remove.
1113 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
1114 families): Remove constraint documentation.
1116 2011-03-22 Marius Strobl <marius@FreeBSD.org>
1118 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
1119 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
1120 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
1122 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
1124 * config/avr/avr-protos.h (expand_epilogue): Change prototype
1125 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
1126 * config/avr/avr.c (init_cumulative_args)
1127 (avr_function_arg_advance): Use it.
1128 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
1130 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
1131 (avr_function_ok_for_sibcall): ...this new function.
1132 (avr_lookup_function_attribute1): New static Function.
1133 (avr_naked_function_p, interrupt_function_p)
1134 (signal_function_p, avr_OS_task_function_p)
1135 (avr_OS_main_function_p): Use it.
1136 * config/avr/avr.md ("sibcall", "sibcall_value")
1137 ("sibcall_epilogue"): New expander.
1138 ("*call_insn", "*call_value_insn"): New insn.
1139 ("call_insn", "call_value_insn"): Remove
1140 ("call", "call_value", "epilogue"): Change expander to handle
1143 2011-03-21 Nick Clifton <nickc@redhat.com>
1145 * doc/invoke.texi (Overall Options): Move closing brace to end of
1147 (Optimization Options): Add missing @gol.
1148 (Directory Options): Likewise.
1149 (i386 and x86-64 Options): Likewise.
1150 (RS6000 and PowerPC Options): Likewise.
1151 (i386 and x86-64 Windows Options): Likewise.
1152 (V850 Options): Add text missing from descriptions.
1154 2011-03-22 Richard Henderson <rth@redhat.com>
1156 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
1157 (avr_incoming_return_addr_rtx): New.
1158 (emit_push_byte): New.
1159 (expand_prologue): Use it. Remove incorrect dwarf annotation for
1160 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
1161 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
1162 (emit_pop_byte): New.
1163 (expand_epilogue): Use it. Pop frame pointer by bytes.
1164 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
1165 (INCOMING_RETURN_ADDR_RTX): New.
1166 (INCOMING_FRAME_SP_OFFSET): New.
1167 (ARG_POINTER_CFA_OFFSET): New.
1168 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
1169 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
1172 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
1174 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
1176 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
1177 (FUNCTION_ARG_ADVANCE): Likewise.
1178 * tm.texi.in: Change references to them to hook references.
1179 * tm.texi: Regenerate.
1180 * targhooks.c (default_function_arg): Eliminate check for target
1182 (default_function_incoming_arg): Likewise.
1183 (default_function_arg_advance): Likewise.
1184 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
1185 (function_arg_advance): Likewise.
1186 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
1188 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
1190 * tree.c (build_call_1): New function.
1191 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
1193 2011-03-22 Richard Guenther <rguenther@suse.de>
1195 PR tree-optimization/48228
1196 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
1197 for single-arg PHIs.
1199 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
1201 PR rtl-optimization/48143
1202 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
1203 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
1204 sse2_cvtps2pd): Likewise.
1206 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1208 * recog.c (canonicalize_change_group): Use validate_unshare_change.
1210 2011-03-22 Richard Guenther <rguenther@suse.de>
1212 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
1213 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
1214 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
1215 and REALIGN_LOAD_EXPR.
1216 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
1217 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
1218 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
1219 DOT_PROD_EXPR case ...
1220 (expand_expr_real_2): ... here.
1221 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
1222 and REALIGN_LOAD_EXPR.
1223 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
1224 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
1225 (vect_create_epilog_for_reduction): Likewise.
1226 (vectorizable_reduction): Likewise.
1227 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
1228 * tree-vect-stmts.c (vectorizable_load): Likewise.
1230 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1232 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
1234 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1236 * config/s390/s390.c (s390_delegitimize_address): Fix offset
1237 handling for PLTOFF/GOTOFF.
1239 2011-03-22 Nick Clifton <nickc@redhat.com>
1241 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
1242 trailing backslash from the end of the macro definition.
1244 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1246 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
1249 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
1251 * expr.h (prepare_operand): Move to...
1252 * optabs.h (prepare_operand): ...here and change the insn code
1253 parameter from "int" to "enum insn_code".
1254 (insn_operand_matches): Declare.
1255 * expr.c (init_expr_target): Use insn_operand_matches.
1256 (compress_float_constant): Likewise.
1257 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
1258 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
1259 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
1260 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
1262 (gen_cond_trap): Likewise.
1263 (prepare_operand): Likewise. Change icode to an insn_code.
1264 (insn_operand_matches): New function.
1265 * reload.c (find_reloads_address_1): Use insn_operand_matches.
1266 * reload1.c (gen_reload): Likewise.
1267 * targhooks.c (default_secondary_reload): Likewise.
1269 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
1271 * config/alpha/alpha.md (unspec): New define_c_enum.
1274 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
1277 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
1278 between a call and its CALL_ARG_LOCATION note.
1280 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
1282 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
1284 2011-03-21 Jakub Jelinek <jakub@redhat.com>
1288 * c-common.c (shorten_compare): If primopN is first sign-extended
1289 to opN and then zero-extended to result type, set primopN to opN.
1291 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1293 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
1294 for barrier handlers.
1296 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1298 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
1299 UNSPEC constants to be in the unspec enumeration, and redefine
1300 all UNSPECV constants to be in the unspecv enumeration, so that
1301 dumps print which unspec/unspec_volatile this is.
1302 * config/rs6000/vector.md (UNSPEC_*): Ditto.
1303 * config/rs6000/paired.md (UNSPEC_*): Ditto.
1304 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
1305 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
1306 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
1308 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
1309 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
1310 UNSPECV_LWSYNC, since these are used as unspec_volatile.
1311 * config/rs6000/sync.md (isync, lwsync): Ditto.
1313 2011-03-21 Richard Guenther <rguenther@suse.de>
1315 * params.def (lto-min-partition): Fix typo.
1317 2011-03-21 Richard Guenther <rguenther@suse.de>
1320 * c-decl.c (grokdeclarator): Drop to the main variant only
1321 for array types. Drop flag_gen_aux_info check.
1323 2011-03-21 Richard Guenther <rguenther@suse.de>
1325 PR translation/47911
1326 * params.def (lto-partitions): Fix typo.
1327 (lto-min-partition): Fix wording.
1329 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
1331 * config/rs6000/t-freebsd: Remove duplication from file.
1333 2011-03-21 Richard Guenther <rguenther@suse.de>
1336 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
1338 2011-03-21 Richard Guenther <rguenther@suse.de>
1341 * params.def (lto-partitions): Require at least 1 partition.
1343 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1345 * gthr-solaris.h: Remove.
1346 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
1347 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
1348 (LIB_SPEC): Likewise.
1349 * config/sol2.opt (threads): Remove.
1350 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
1351 (sparc*-*-solaris2*): Likewise.
1352 * configure.ac (enable_threads): Enable solaris support.
1353 * configure: Regenerate.
1354 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
1355 * doc/install.texi (Configuration, --enable-threads=lib): Remove
1358 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1360 * config.gcc: Obsolete *-*-solaris2.8*.
1361 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1363 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1366 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
1367 reference. Solaris 8 perl works.
1369 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1372 * doc/install.texi (Prerequisites): Move jar etc. up.
1373 Explain support library version requirements.
1375 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1378 * doc/install.texi (Prerequisites): Move Perl to build
1379 requirements. Always necessary on Solaris 2 with Sun ld.
1381 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1383 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
1385 (Specific, i?86-*-solaris2.[89]): Likewise.
1386 (Specific, i?86-*-solaris2.10): Likewise.
1387 (Specific, mips-sgi-irix6): Likewise.
1388 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
1389 Update for binutils 2.21.
1391 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1393 * configure.ac (gcc_cv_lto_plugin): Fix typo.
1394 Allow -fuse-linker-plugin for non-default plugin linker.
1395 * configure: Regenerate.
1397 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
1400 * gengtype.c (files_rules): Added rule for cp/parser.h.
1402 2011-03-21 Jakub Jelinek <jakub@redhat.com>
1405 * config/s390/s390.c (s390_delegitimize_address): Don't call
1406 lowpart_subreg if orig_x has BLKmode.
1408 2011-03-21 Kai Tietz <ktietz@redhat.com>
1411 * doc/plugins.texi: Adjust documentation for plugin register_callback.
1412 * tree.h (attribute_spec): Add new member affects_type_identity.
1413 * attribs.c (empty_attribute_table): Adjust attribute_spec
1415 * config/alpha/alpha.c: Likewise.
1416 * config/arc/arc.c: Likewise.
1417 * config/arm/arm.c: Likewise.
1418 * config/avr/avr.c: Likewise.
1419 * config/bfin/bfin.c: Likewise.
1420 * config/crx/crx.c: Likewise.
1421 * config/darwin.h: Likewise.
1422 * config/h8300/h8300.c: Likewise.
1423 * config/i386/cygming.h: Likewise.
1424 * config/i386/i386.c: Likewise.
1425 * config/ia64/ia64.c: Likewise.
1426 * config/m32c/m32c.c: Likewise.
1427 * config/m32r/m32r.c: Likewise.
1428 * config/m68hc11/m68hc11.c: Likewise.
1429 * config/m68k/m68k.c: Likewise.
1430 * config/mcore/mcore.c: Likewise.
1431 * config/mep/mep.c: Likewise.
1432 * config/microblaze/microblaze.c: Likewise.
1433 * config/mips/mips.c: Likewise.
1434 * config/rs6000/rs6000.c: Likewise.
1435 * config/rx/rx.c: Likewise.
1436 * config/sh/sh.c: Likewise.
1437 * config/sol2.h: Likewise.
1438 * config/sparc/sparc.c: Likewise.
1439 * config/spu/spu.c: Likewise.
1440 * config/stormy16/stormy16.c: Likewise.
1441 * config/v850/v850.c: Likewise.
1443 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
1445 * simplify-rtx.c (simplify_binary_operation_1): Handle
1446 (xor (and A B) C) case when B and C are both constants.
1448 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
1450 * tree-dfa.c (add_referenced_var): Fix typo in comment.
1452 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
1455 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
1457 2011-03-20 Jakub Jelinek <jakub@redhat.com>
1459 PR rtl-optimization/48156
1460 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
1461 assume df and df_lr are not NULL.
1463 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1466 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
1467 between a call and its CALL_ARG_LOCATION note.
1469 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
1472 * config/sh/sh.c (find_barrier): Don't emit a constant pool
1473 between a call and its corresponding CALL_ARG_LOCATION note.
1475 2011-03-19 Anatoly Sokolov <aesok@post.ru>
1477 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
1478 instead of loop. Use HARD_REGISTER_NUM_P predicate.
1479 * haifa-sched.c (setup_ref_regs): Ditto.
1480 * caller-save.c (add_used_regs_1): Ditto.
1481 * dse.c (look_for_hardregs): Ditto.
1482 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
1483 * sched-rgn.c (check_live_1): Ditto.
1485 2011-03-18 Joseph Myers <joseph@codesourcery.com>
1487 * c-decl.c (diagnose_mismatched_decls): Give an error for
1488 redefining a typedef with variably modified type.
1490 2011-03-18 Joseph Myers <joseph@codesourcery.com>
1492 * c-decl.c (grokfield): Don't allow typedefs for structures or
1493 unions with no tag by default.
1494 * doc/extend.texi (Unnamed Fields): Update.
1496 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
1498 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1499 Rewrite using indirect functions.
1500 (lwp_slwpcb): Ditto.
1501 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
1502 (avx_vinsertf128<mode>): Ditto.
1504 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1506 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
1509 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1511 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
1512 splitting between a call and its corresponding CALL_ARG_LOCATION note.
1514 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
1516 PR rtl-optimization/48170
1517 * gcse.c (hoist_code): Remove bogus asserts.
1519 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
1521 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
1522 computation for prologue/epilogue.
1524 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1526 * Makefile.in (check-consistency): Remove.
1528 2011-03-18 Jakub Jelinek <jakub@redhat.com>
1531 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
1532 arange_table_in_use is 0, but either text_section_used or
1533 cold_text_section_used is true. Don't call it if
1534 !info_section_emitted.
1536 2011-03-18 Anatoly Sokolov <aesok@post.ru>
1538 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
1539 FUNCTION_VALUE_REGNO_P): Remove.
1540 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
1542 * config/avr/avr.c (avr_ret_register): Make static inline.
1543 (avr_function_value_regno_p): New function.
1544 (avr_libcall_value): Make static. Add 'func' argument.
1545 (avr_function_value): Make static. Rename 'func' argument to
1546 'fn_decl_or_type', forward it to avr_libcall_value. Call
1547 avr_ret_register function instead of RET_REGISTER macro.
1548 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1550 2011-03-18 Jason Merrill <jason@redhat.com>
1553 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
1555 2011-03-18 Richard Guenther <rguenther@suse.de>
1557 * doc/install.texi (--enable-gold): Remove.
1558 (--with-plugin-ld): Document.
1559 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
1561 2011-03-18 Andrew Pinski <pinskia@gmail.com>
1564 * expr.c (optimize_bitfield_assignment_op): Revamp to work
1565 again after expansion changes.
1567 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
1569 * combine.c (try_combine): Do simplification only call of
1570 subst() on i2 even when i1 is present. Update comments.
1572 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
1574 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
1575 and UNSPEC_PCREL_SYMOFF.
1577 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1579 * config/s390/s390.md: Use define_c_enum for the unspec constant
1582 2011-03-18 Richard Henderson <rth@redhat.com>
1583 Jakub Jelinek <jakub@redhat.com>
1586 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
1587 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
1589 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1592 * combine.c (cant_combine_insn_p): Don't check zero/sign
1593 extended hard registers.
1595 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1598 * combine.c (cant_combine_insn_p): Check zero/sign extended
1601 2011-03-17 Anatoly Sokolov <aesok@post.ru>
1603 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1604 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
1605 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
1606 Change return type to bool.
1607 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1609 2011-03-17 Jakub Jelinek <jakub@redhat.com>
1612 * var-tracking.c (prepare_call_arguments): If CALL target
1613 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
1614 pc instead of looking it up using cselib_lookup and use
1615 Pmode for it if x has VOIDmode.
1616 * dwarf2out.c (gen_subprogram_die): If also both first and
1617 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
1620 * function.c (assign_parms): For data.passed_pointer parms
1621 use MEM of data.entry_parm instead of data.entry_parm itself
1622 as DECL_INCOMING_RTL.
1623 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
1624 also when passed and declared mode is the same, DECL_RTL
1625 is a MEM with pseudo as address and DECL_INCOMING_RTL is
1628 2011-03-16 Jeff Law <law@redhat.com>
1630 PR rtl-optimization/37273
1631 * ira-costs.c (scan_one_insn): Detect constants living in memory and
1632 handle them like argument loads from stack slots. Do not double
1633 count memory for memory constants and argument loads from stack slots.
1635 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1638 * var-tracking.c (prepare_call_arguments): Check SUBREG.
1640 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
1643 * config/i386/i386.opt: Add Save to -mavx and -mfma.
1645 2011-03-17 Jakub Jelinek <jakub@redhat.com>
1648 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
1650 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
1651 Clear call_arg_locations and call_arg_loc_last always.
1654 * var-tracking.c (prepare_call_arguments): If argument needs to be
1655 passed by reference, adjust argtype and mode.
1657 2011-03-17 Richard Guenther <rguenther@suse.de>
1660 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
1661 a value make sure to fold the statement.
1663 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
1666 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
1667 return condition with !cfun->calls_alloca.
1669 2011-03-17 Richard Guenther <rguenther@suse.de>
1672 * lto-cgraph.c (input_overwrite_node): Clear the abstract
1673 origin for decls in other ltrans units.
1674 (input_varpool_node): Likewise.
1676 2011-03-17 Richard Guenther <rguenther@suse.de>
1679 * tree-object-size.c (compute_object_offset): Properly return
1680 the offset operand of MEM_REFs as sizetype.
1682 2011-03-17 Jakub Jelinek <jakub@redhat.com>
1684 PR rtl-optimization/48141
1685 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
1686 * dse.c: Include params.h.
1687 (active_local_stores_len): New variable.
1688 (add_wild_read, dse_step1): Clear it when setting active_local_stores
1690 (record_store, check_mem_read_rtx): Decrease it when removing
1692 (scan_insn): Likewise. Increase it when adding to chain, if it
1693 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
1694 set active_local_stores to NULL before the addition.
1695 * Makefile.in (dse.o): Depend on $(PARAMS_H).
1697 PR rtl-optimization/48141
1698 * dse.c (record_store): If no positions are needed in an insn
1699 that cannot be deleted, at least unchain it from active_local_stores.
1701 2011-03-16 Dodji Seketeli <dodji@redhat.com>
1704 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
1705 (lookup_type_die_strip_naming_typedef): ... here.
1706 (get_context_die): Use it.
1707 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
1708 the anonymous struct named by the naming typedef.
1710 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
1713 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
1714 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
1716 2011-03-16 Jeff Law <law@redhat.com>
1718 * tree-vrp.c (identify_jump_threads): Slightly simplify type
1719 check for operands of conditional. Allow type to be a pointer.
1721 2011-03-16 Richard Guenther <rguenther@suse.de>
1723 PR tree-optimization/48149
1724 * fold-const.c (fold_binary_loc): Fold
1725 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
1727 2011-03-16 Richard Guenther <rguenther@suse.de>
1729 PR tree-optimization/26134
1730 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
1731 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
1732 (non_rewritable_mem_ref_base): Handle complex type component
1733 accesses, constrain offsets for vector and complex extracts
1736 2011-03-16 Richard Guenther <rguenther@suse.de>
1738 PR tree-optimization/48146
1739 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
1740 operands avoiding the need for renaming.
1742 2011-03-16 Richard Guenther <rguenther@suse.de>
1744 * gimple-fold.c (maybe_fold_reference): Open-code relevant
1745 constant folding. Move MEM_REF canonicalization first.
1746 Rely on fold_const_aggregate_ref for initializer folding.
1747 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
1749 2011-03-16 Jakub Jelinek <jakub@redhat.com>
1752 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
1753 arg0/arg1 or their arguments are always fold converted to matching
1756 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
1759 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1762 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
1763 Handle in-tree gold.
1764 (ld_vers): Extract binutils version for gold.
1765 (gcc_cv_ld_hidden): Handle gold here.
1766 (gcc_cv_lto_plugin): Determine level of linker plugin support.
1767 * configure: Regenerate.
1768 * config.in: Regenerate.
1769 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
1770 -fuse-linker-plugin otherwise.
1771 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
1772 (LINK_COMMAND_SPEC): Use it.
1773 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
1775 2011-03-16 Jakub Jelinek <jakub@redhat.com>
1777 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
1778 * calls.c: Remove debug.h include.
1779 (emit_call_1): Don't call virtual_call_token debug hook.
1780 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
1781 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
1782 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
1783 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
1784 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
1785 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
1786 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
1787 dwarf2out_virtual_call): Remove.
1788 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
1789 copy_call_info and virtual_call hooks.
1790 (dwarf2out_init): Don't initialize vcall_insn_table,
1791 debug_dcall_section and debug_vcall_section.
1792 (prune_unused_types): Don't mark nodes from dcall_table.
1793 (dwarf2out_finish): Don't output dcall or vcall tables.
1794 * final.c (final_scan_insn): Don't call direct_call or
1795 virtual_call debug hooks.
1796 * debug.h (struct gcc_debug_hooks): Remove direct_call,
1797 virtual_call_token, copy_call_info and virtual_call hooks.
1798 (debug_nothing_uid): Remove prototype.
1799 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
1800 copy_call_info and virtual_call hooks.
1801 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1802 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1803 * debug.c (do_nothing_debug_hooks): Likewise.
1804 (debug_nothing_uid): Remove.
1805 * doc/invoke.texi (-fenable-icf-debug): Remove.
1806 * common.opt (-fenable-icf-debug): Likewise.
1808 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
1809 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
1810 call's MEM. Handle functions returning aggregate through a hidden
1811 first pointer. For virtual calls add clobbered pc to call arguments
1813 * dwarf2out.c (gen_subprogram_die): Emit
1814 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
1818 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
1819 * rtl.h (ENTRY_VALUE_EXP): Define.
1820 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
1821 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
1822 * print-rtl.c (print_rtx): Likewise.
1823 * gengtype.c (adjust_field_rtx_def): Likewise.
1824 * var-tracking.c (vt_add_function_parameter): Adjust
1825 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
1826 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
1827 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
1828 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
1829 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
1831 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
1832 Call var_location debug hook even on CALL_INSNs.
1833 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
1834 * rtl.def (ENTRY_VALUE): New.
1835 * dwarf2out.c: Include cfglayout.h.
1836 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1837 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
1838 (struct call_arg_loc_node): New type.
1839 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
1840 tail_call_site_count): New variables.
1841 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
1842 DW_TAG_GNU_call_site_parameter.
1843 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
1844 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
1845 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
1846 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
1847 and DW_AT_GNU_all_source_call_sites.
1848 (mem_loc_descriptor): Handle ENTRY_VALUE.
1849 (add_src_coords_attributes): Don't add enything if
1850 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
1851 (dwarf2out_abstract_function): Save and clear call_arg_location,
1852 call_site_count and tail_call_site_count around dwarf2out_decl call.
1853 (gen_call_site_die): New function.
1854 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
1855 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
1856 (dwarf2out_function_decl): Clear call_arg_locations,
1857 call_arg_loc_last, set call_site_count and tail_call_site_count
1858 to -1 and free block_map.
1859 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
1860 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
1861 followed by any real instructions.
1862 (dwarf2out_begin_function): Set call_site_count and
1863 tail_call_site_count to 0.
1864 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
1865 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
1866 attempt to force a DIE for it and worst case remove the attribute.
1867 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
1868 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
1870 * var-tracking.c: Include tm_p.h.
1871 (vt_stack_adjustments): For calls call note_register_arguments.
1872 (argument_reg_set): New variable.
1873 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
1874 ensure the VALUE is resolved.
1875 (call_arguments): New variable.
1876 (prepare_call_arguments): New function.
1877 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
1878 (struct expand_loc_callback_data): Add ignore_cur_loc field.
1879 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
1880 always use the best expression.
1881 (vt_expand_loc): Add ignore_cur_loc argument.
1882 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
1883 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
1884 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
1886 (vt_add_function_parameter): Use cselib_lookup_from_insn.
1887 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
1888 argument. Don't call cselib_preserve_only_values and
1890 (note_register_arguments): New function.
1891 (vt_initialize): Compute argument_reg_set. Call
1892 vt_add_function_parameters before processing basic blocks instead of
1893 afterwards. For calls call prepare_call_arguments before calling
1894 cselib_process_insn.
1895 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
1896 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
1897 (var-tracking.o): Depend on $(TM_P_H).
1898 * cfglayout.h (insn_scope): New prototype.
1899 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
1900 * cfglayout.c (insn_scope): No longer static.
1901 * insn-notes.def (CALL_ARG_LOCATION): New.
1902 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
1903 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
1904 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
1905 nothing for DECL_EXTERNAL BLOCK_VARS.
1907 2011-03-16 Alan Modra <amodra@gmail.com>
1910 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
1911 create invalid offset address for vsx splat insn.
1912 * config/rs6000/predicates.md (splat_input_operand): New.
1913 * config/rs6000/vsx.md (vsx_splat_*): Use it.
1915 2011-03-15 Xinliang David Li <davidxl@google.com>
1918 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
1919 (normalize_preds): New function.
1920 (is_use_properly_guarded): Normalize def predicates.
1922 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1925 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
1926 in the output template.
1928 2011-03-15 Richard Guenther <rguenther@suse.de>
1931 * tree-pretty-print.c (dump_function_declaration): Properly
1932 dump unprototyped and varargs function types.
1934 2011-03-15 Richard Guenther <rguenther@suse.de>
1936 PR tree-optimization/13954
1937 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
1940 2011-03-15 Richard Guenther <rguenther@suse.de>
1942 PR tree-optimization/48037
1943 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
1944 selects into BIT_FIELD_REFs.
1945 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
1948 2011-03-15 Jakub Jelinek <jakub@redhat.com>
1950 PR tree-optimization/48129
1951 * builtins.c (fold_builtin_snprintf): Convert to type of
1952 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
1953 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
1955 2011-03-15 Richard Guenther <rguenther@suse.de>
1957 PR tree-optimization/41490
1958 * tree-ssa-dce.c (propagate_necessity): Handle returns without
1959 value but with VUSE.
1960 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
1962 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
1963 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
1964 * tree-tailcall.c (find_tail_calls): Ignore returns.
1966 2011-03-15 Richard Guenther <rguenther@suse.de>
1969 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
1970 or variable-indexed array accesses when in gimple form.
1972 2011-03-15 Richard Guenther <rguenther@suse.de>
1974 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
1976 2011-03-15 Alan Modra <amodra@gmail.com>
1979 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
1980 presume symbol_refs without a symbol_ref_decl are suitably
1981 aligned, nor other trees we may see here. Handle anchor symbols.
1982 (legitimate_constant_pool_address_p): Comment. Add mode param.
1983 Check cmodel=medium addresses. Adjust all calls.
1984 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
1985 creating cmodel=medium optimized access to locals.
1986 * config/rs6000/constraints.md (R): Pass QImode to
1987 legitimate_constant_pool_address_p.
1988 * config/rs6000/predicates.md (input_operand): Pass mode to
1989 legitimate_constant_pool_address_p.
1990 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
1993 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1996 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
1997 64-bit constants being loaded into registers other than GPRs such
1998 as loading 0 into a VSX register.
2000 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2002 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
2004 2011-03-14 Jakub Jelinek <jakub@redhat.com>
2007 * builtins.c (fold_builtin_snprintf): New function.
2008 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
2009 (fold_builtin_4): Likewise.
2012 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
2013 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
2014 and C - X == X also strip nops from +/-/p+ operand.
2015 When optimizing -X == C, fold C to arg0's type.
2018 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
2019 emit it as add_AT_int instead of add_AT_unsigned.
2021 2011-03-14 Tom Tromey <tromey@redhat.com>
2023 * unwind-dw2.c: Include sys/sdt.h if it exists.
2024 (_Unwind_DebugHook): Use STAP_PROBE2.
2025 * config.in, configure: Rebuild.
2026 * configure.ac: Check for sys/sdt.h.
2028 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
2030 * config/i386/i386.md (ROUND_FLOOR): New constant.
2031 (ROUND_CEIL): Ditto.
2032 (ROUND_TRUNC): Ditto.
2033 (ROUND_MXCSR): Ditto.
2034 (ROUND_NO_EXC): Ditto.
2035 (rint<mode>2): Use new defines instead of numerical constants.
2036 (floor<mode>2): Ditto.
2037 (ceil<mode>2): Ditto.
2038 (btrunc<mode>2): Ditto.
2039 * config/i386/i386-builtin-types.def: Define ROUND function type
2041 * config/i386/i386.c (enum ix86_builtins): Add
2042 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
2043 (struct builtin_description): Add
2044 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
2045 (ix86_expand_sse_round): New static function.
2046 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
2048 (ix86_builtin_vectorized_function): Handle
2049 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
2051 2011-03-14 Tom Tromey <tromey@redhat.com>
2053 * c-parser.c (c_parser_asm_string_literal): Clear
2054 warn_overlength_strings.
2056 2011-03-14 Tom Tromey <tromey@redhat.com>
2058 * c-parser.c (disable_extension_diagnostics): Save
2059 warn_overlength_strings.
2060 (restore_extension_diagnostics): Restore warn_overlength_strings.
2062 2011-03-14 Jakub Jelinek <jakub@redhat.com>
2064 * BASE-VER: Change to 4.7.0.
2066 2011-03-14 Richard Guenther <rguenther@suse.de>
2069 * tree.c (build_vector_from_val): Adjust assert to requirements
2072 2011-03-14 Jakub Jelinek <jakub@redhat.com>
2075 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
2077 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
2079 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
2080 terms of target_flags_explicit. Adjust copyright year.
2082 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
2083 * config/rs6000/t-freebsd: New file. Add override for
2086 2011-03-13 Chris Demetriou <cgd@google.com>
2088 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
2089 (-fno-diagnostics-show-option): this, to reflect current default.
2090 (-Werror=): Update text about -fno-diagnostics-show-option.
2092 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
2095 * config/rs6000/predicates.md (easy_vector_constant_add_self,
2096 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
2097 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
2098 mode is not V2DImode or V2DFmode.
2099 (vspltis_constant): Do not handle V2DImode and V2DFmode.
2100 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
2101 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
2103 (movdi_internal64): Likewise.
2105 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
2107 PR tree-optimization/47127
2108 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
2110 (set_cloog_options): Same.
2111 (scop_to_clast): Same.
2112 (print_clast_stmt): Do not call cloog_state_malloc and
2114 (print_generated_program): Same.
2116 * graphite-clast-to-gimple.h (cloog_state): Declared.
2117 (scop_to_clast): Adjust declaration.
2118 * graphite.c (cloog_state): Defined here.
2119 (graphite_initialize): Call cloog_state_malloc.
2120 (graphite_finalize): Call cloog_state_free.
2122 2011-03-11 Jason Merrill <jason@redhat.com>
2124 * attribs.c (lookup_attribute_spec): Take const_tree.
2127 2011-03-11 Joseph Myers <joseph@codesourcery.com>
2129 * config/sparc/sparc.c (sparc_option_override): Use
2130 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
2132 2011-03-11 Richard Guenther <rguenther@suse.de>
2134 PR tree-optimization/48067
2135 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
2136 multiplication result will be only used once on the target
2139 2011-03-11 Richard Guenther <rguenther@suse.de>
2141 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
2143 2011-03-11 Richard Guenther <rguenther@suse.de>
2146 * tree.c (find_decls_types_r): Do not walk types only reachable
2147 from IDENTIFIER_NODEs.
2149 2011-03-11 Jakub Jelinek <jakub@redhat.com>
2152 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
2153 all vnode->force_output nodes as needed.
2155 2011-03-11 Jason Merrill <jason@redhat.com>
2158 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
2159 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
2161 2011-03-11 Martin Jambor <mjambor@suse.cz>
2163 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
2166 2011-03-11 Jakub Jelinek <jakub@redhat.com>
2168 PR tree-optimization/48063
2169 * ipa-inline.c (cgraph_decide_inlining): Don't try to
2170 inline functions called once if !tree_can_inline_p (node->callers).
2172 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
2174 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
2176 * config/score/score3.c: Delete.
2177 * config/score/score3.h: Delete.
2178 * config/score/mul-div.S: Delete.
2179 * config/score/sfp-machine.h: Add new file.
2180 * config/score/constraints.md: Add new file.
2181 * config/score/t-score-softfp: Add new file.
2182 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
2183 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
2184 (score7_extra_constraint): Delete.
2185 (score7_option_override): Remove unused code.
2186 * config/score/score.c: Remove score3 and score5 define and code.
2187 * config/score/score.h: Remove score3 and score5 define and code.
2188 * config/score/score.md: Remove score3 template and unusual insn.
2189 * config/score/score.opt: Remove score3 and score5 options.
2191 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2193 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2194 when _HPUX_SOURCE is defined.
2195 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
2197 2011-03-10 Jason Merrill <jason@redhat.com>
2200 * stor-layout.c (layout_type): Don't set structural equality
2201 on arrays of incomplete type.
2202 * tree.c (type_hash_eq): Handle comparing them properly.
2204 2011-03-10 Jakub Jelinek <jakub@redhat.com>
2207 * config/s390/s390.c (s390_delegitimize_address): Make sure the
2208 result mode matches original rtl mode.
2210 2011-03-10 Nick Clifton <nickc@redhat.com>
2212 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
2213 (andsi3, andsi3_flags): Fix timings for three operand alternative.
2215 2011-03-09 Jakub Jelinek <jakub@redhat.com>
2217 PR rtl-optimization/47866
2218 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
2219 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
2220 if target wasn't scalar.
2221 * function.c (assign_stack_temp_for_type): Assert that neither
2222 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
2223 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
2225 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
2227 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2229 * config/s390/s390-protos.h (s390_label_align): New prototype.
2230 * config/s390/s390.c (s390_label_align): New function.
2231 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
2233 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2236 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
2237 V2DI/V2DF constants. Only all 0's or all 1's are easy.
2238 (output_vec_const_move): Ditto.
2240 2011-03-08 Anatoly Sokolov <aesok@post.ru>
2242 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
2243 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
2244 * config/mips/mips.c (mips_preferred_reload_class): Make static.
2245 Change 'rclass' argument and result type to reg_class_t.
2246 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2248 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
2250 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2251 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
2252 (TARGET_MEMORY_MOVE_COST): Define.
2253 (avr_register_move_cost, avr_memory_move_cost): New Functions.
2255 2011-03-08 Jakub Jelinek <jakub@redhat.com>
2258 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
2261 PR tree-optimization/48022
2262 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
2265 2011-03-07 Jakub Jelinek <jakub@redhat.com>
2268 * var-tracking.c (find_use_val): Return NULL for
2269 cui->sets && cui->store_p BLKmode MEMs.
2271 2011-03-07 Anatoly Sokolov <aesok@post.ru>
2273 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2275 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
2276 xstormy16_print_operand_address): Remove.
2277 * config/stormy16/stormy16.c (xstormy16_print_operand,
2278 xstormy16_print_operand_address): Make static.
2279 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2281 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
2284 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2285 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
2288 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
2291 * cfgloopmanip.c (fix_bb_placements): Return immediately
2292 if FROM is BASE_LOOP's header.
2294 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
2296 * gimplify.c (gimplify_function_tree): Fix building calls
2297 to __builtin_return_address.
2299 2011-03-07 Alan Modra <amodra@gmail.com>
2301 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
2302 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
2303 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
2304 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
2306 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
2307 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
2308 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
2309 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
2310 * config/rs6000/rs6000.c
2311 (rs6000_elf_end_indicate_exec_stack): Rename to..
2312 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
2313 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
2314 (rs6000_file_start): ..here.
2315 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
2316 file scope variables.
2317 (call_ABI_of_interest): New function.
2318 (init_cumulative_args): Set above vars when function return value
2319 is a float, vector, or small struct.
2320 (rs6000_function_arg_advance_1): Likewise for function args.
2321 (rs6000_va_start): Set rs6000_passes_float if variable arg function
2322 references float args.
2324 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
2326 * doc/cfg.texi: Remove "See" before @ref.
2327 * doc/invoke.texi: Likewise.
2329 2011-03-05 Jason Merrill <jason@redhat.com>
2331 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
2333 2011-03-05 Anthony Green <green@moxielogic.com>
2335 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
2337 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
2339 PR rtl-optimization/47899
2340 * cfgloopmanip.c (fix_bb_placements): Fix first argument
2341 to flow_loop_nested_p when moving the loop upward.
2343 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
2346 * arm.md (movhi_insn_arch4): Accept any immediate constant.
2348 2011-03-05 Jakub Jelinek <jakub@redhat.com>
2350 PR tree-optimization/47967
2351 * ipa-cp.c (build_const_val): Return NULL instead of creating
2352 VIEW_CONVERT_EXPR for mismatching sizes.
2353 (ipcp_create_replace_map): Return NULL if build_const_val failed.
2354 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
2355 give up on versioning.
2357 2011-03-05 Alan Modra <amodra@gmail.com>
2360 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2361 full cmodel medium/large lo_sum + high addresses.
2363 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2365 * config/s390/s390.c (s390_decompose_address): Reject non-literal
2366 pool references in UNSPEC_LTREL_OFFSET.
2368 2011-03-04 Jan Hubicka <jh@suse.cz>
2371 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
2372 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
2373 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
2375 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
2376 cgraph_add_thunk): Add node pointers.
2377 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
2378 associated to right node.
2379 (input_node): Update use of cgraph_same_body_alias
2380 and cgraph_add_thunk.
2382 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
2384 * config/i386/i386.opt (mprefer-avx128): New flag.
2385 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
2386 modes when the flag -mprefer-avx128 is on.
2388 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
2390 * dwarf2out.c (compare_loc_operands): Fix address handling.
2392 2011-03-04 Alan Modra <amodra@gmail.com>
2394 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
2396 2011-03-04 Richard Guenther <rguenther@suse.de>
2399 * expmed.c (extract_bit_field_1): Prefer vector modes that
2400 vec_extract patterns can handle.
2402 2011-03-04 Richard Guenther <rguenther@suse.de>
2405 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
2407 2011-03-04 Richard Henderson <rth@redhat.com>
2409 * explow.c (emit_stack_save): Remove 'after' parameter.
2410 (emit_stack_restore): Likewise.
2411 * expr.h: Update to match.
2412 * builtins.c, calls.c, stmt.c: Likewise.
2413 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
2414 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
2415 * function.c (expand_function_end): Insert the emit_stack_save
2416 sequence before parm_birth_insn instead of after.
2418 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
2420 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
2421 (ssse3_pmaddubsw128): Ditto.
2422 (ssse3_pmaddubsw): Ditto.
2424 2011-03-03 Steve Ellcey <sje@cup.hp.com>
2426 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
2428 2011-03-03 Jakub Jelinek <jakub@redhat.com>
2431 * gimplify.c (omp_add_variable): Only call omp_notice_variable
2432 on TYPE_SIZE_UNIT if it is a DECL.
2435 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
2436 first operand is not is_gimple_mem_ref_addr, try to fold it.
2437 If the operand still isn't is_gimple_mem_ref_addr, clear
2440 2011-03-03 Richard Guenther <rguenther@suse.de>
2443 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
2445 (refs_may_alias_p_1): For release branches return true if
2446 we are confused by our input.
2448 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2450 * config/s390/s390.c (s390_function_value): Rename to ...
2451 (s390_function_and_libcall_value): ... this.
2452 (s390_function_value): New function.
2453 (s390_libcall_value): New function.
2454 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
2455 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
2456 target macro definitions.
2457 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
2459 2011-03-02 Joseph Myers <joseph@codesourcery.com>
2461 * config/i386/freebsd64.h (CC1_SPEC): Define.
2462 * config/i386/linux64.h (CC1_SPEC): Define.
2463 * config/i386/x86-64.h (CC1_SPEC): Don't define.
2465 2011-03-02 Anatoly Sokolov <aesok@post.ru>
2467 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2469 * config/stormy16/stormy16.c: Include reload.h.
2470 (xstormy16_memory_move_cost): New function.
2471 (TARGET_MEMORY_MOVE_COST): Define.
2473 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
2475 PR rtl-optimization/47925
2476 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
2477 with side effects. Remove the more-specific check for volatile asms.
2479 2011-03-02 Alan Modra <amodra@gmail.com>
2482 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
2483 toc relative addresses for valid offsets.
2485 2011-03-01 Richard Guenther <rguenther@suse.de>
2487 PR tree-optimization/47890
2488 * tree-vect-loop.c (get_initial_def_for_induction): Set
2489 related stmt properly.
2491 2011-03-01 Richard Guenther <rguenther@suse.de>
2494 * lto-streamer.c (lto_record_common_node): Also register
2497 2011-03-01 Richard Guenther <rguenther@suse.de>
2500 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2501 Do not stream DECL_ABSTRACT_ORIGIN.
2502 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
2503 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
2504 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2505 Do not stream DECL_ABSTRACT_ORIGIN.
2506 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
2507 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
2509 2011-02-28 Anatoly Sokolov <aesok@post.ru>
2511 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
2512 FUNCTION_VALUE_REGNO_P): Remove.
2513 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
2514 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
2515 Add 'outgoing' argument.
2516 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
2518 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2519 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2521 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
2524 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
2525 (lookup_filename): Likewise.
2526 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
2528 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
2529 Jakub Jelinek <jakub@redhat.com>
2532 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
2533 (assign_stack_local_1): Change last argument type to int.
2534 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
2535 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
2536 don't record padding space into frame_space_list nor use those areas.
2537 (assign_stack_local): Adjust caller.
2538 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
2539 of assign_stack_local, pass 0 as last argument.
2540 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
2543 2011-02-28 Jakub Jelinek <jakub@redhat.com>
2546 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
2547 Use target address_mode and pointer_mode hooks instead of hardcoded
2548 Pmode and ptr_mode. Handle some simple cases of extending if
2549 POINTERS_EXTEND_UNSIGNED < 0.
2550 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
2551 Call convert_debug_memory_address.
2552 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
2553 convert_debug_memory_address.
2556 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
2557 * configure: Regenerated.
2558 * config.in: Regenerated.
2559 * varasm.c (default_function_section): Return NULL
2560 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
2562 2011-02-28 Martin Jambor <mjambor@suse.cz>
2564 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
2565 the description to match the printed values.
2567 2011-02-28 Richard Guenther <rguenther@suse.de>
2569 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
2570 of the copied scope tree.
2572 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2574 * doc/extend.texi (Function Attributes): Avoid deeply (and
2575 wrongly) nested tables.
2577 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2580 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
2581 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
2582 r isn't op0 nor op1.
2584 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
2586 * config/avr/avr.md: Remove magic comment for emacs.
2588 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
2591 * config/avr/avr.c (avr_option_override): Use error on bad options.
2592 (avr_help): New function.
2593 (TARGET_HELP): Define.
2595 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
2598 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
2599 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
2601 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
2603 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
2604 (ARM Options): Ditto.
2605 (i386 and x86-64 Options): Ditto.
2606 (RX Options): Ditto.
2607 (SPARC Options): Ditto.
2609 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
2611 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
2612 FreeBSD 6 and later. Generally use cpu generic.
2614 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
2616 * doc/cpp.texi: Update copyright years.
2618 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
2621 * config/lm32/lm32.md (ashrsi3): Added needed variable.
2623 2011-02-25 Jon Beniston <jon@beniston.com>
2626 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
2627 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
2628 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
2629 (lm32_block_move_inline): Add type cast to remove warning.
2630 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
2631 (gen_int_relational): Move declarations to start of function.
2633 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
2635 PR tree-optimization/45470
2636 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2637 can throw internally only.
2638 * tree-vect-stmts.c (vectorizable_call): Likewise.
2640 2011-02-24 Anatoly Sokolov <aesok@post.ru>
2642 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
2643 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2644 * config/stormy16/stormy16-protos.h
2645 (xstormy16_preferred_reload_class): Remove.
2646 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
2647 static. Change 'rclass' argument and return type to reg_class_t.
2648 (TARGET_PREFERRED_RELOAD_CLASS,
2649 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2651 2011-02-24 Richard Guenther <rguenther@suse.de>
2653 * lto-streamer-in.c (input_bb): Do not find referenced vars
2654 in debug statements.
2656 2011-02-23 Jason Merrill <jason@redhat.com>
2658 * common.opt (fabi-version): Document v5 and v6.
2660 2011-02-23 Richard Guenther <rguenther@suse.de>
2662 PR tree-optimization/47849
2663 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
2665 2011-02-23 Jie Zhang <jie@codesourcery.com>
2667 * opts-common.c (decode_cmdline_option): Print empty string
2668 argument as "" in decoded->orig_option_with_args_text.
2669 * gcc.c (execute): Print empty string argument as ""
2670 in the verbose output.
2671 (do_spec_1): Keep empty string argument.
2673 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
2675 * config.gcc: Declare score-* and crx-* obsolete.
2677 2011-02-23 Jie Zhang <jie@codesourcery.com>
2679 PR rtl-optimization/47763
2680 * web.c (web_main): Ignore naked clobber when replacing register.
2682 2011-02-22 Anatoly Sokolov <aesok@post.ru>
2684 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2687 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
2690 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
2692 2011-02-22 Mike Stump <mikestump@comcast.net>
2694 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
2696 * configure: Regenerate.
2698 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
2700 PR rtl-optimization/46002
2701 * ira-color.c (update_copy_costs): Change class intersection
2702 test to reg_class_contents[] test of 'hard_regno'.
2704 2011-02-21 Joseph Myers <joseph@codesourcery.com>
2706 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
2708 * config/hpux11.opt (mt): Likewise.
2709 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
2710 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
2711 * config/vax/elf.opt (mno-asm-pic): Likewise.
2712 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
2714 2011-02-21 Mike Stump <mikestump@comcast.net>
2717 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
2718 tree so we can get save the type.
2719 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
2720 for CFString instead of trying to use past the end of the builtins.
2721 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
2722 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
2723 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
2724 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
2725 Rename to darwin_builtin_cfstring.
2726 (darwin_init_cfstring_builtins): Return the built type.
2728 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
2731 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
2732 (_mm256_insert_epi64): Use _mm_insert_epi64.
2734 2011-02-21 Anatoly Sokolov <aesok@post.ru>
2736 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2737 * config/stormy16/stormy16-protos.h
2738 (xstormy16_mode_dependent_address_p): Remove.
2739 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
2740 Make static. Change return type to bool. Change argument type to
2741 const_rtx. Remove dead code.
2742 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2744 2011-02-21 Richard Guenther <rguenther@suse.de>
2747 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2748 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
2749 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
2751 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2752 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
2754 2011-02-20 Richard Guenther <rguenther@suse.de>
2757 * tree.c (free_lang_data_in_decl): Clean builtins from
2758 the TU decl BLOCK_VARS.
2760 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
2764 * haifa-sched.c (fix_tick_ready): Skip tick computation
2767 2011-02-19 Richard Guenther <rguenther@suse.de>
2770 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
2771 Remove lazy BLOCK_VARS streaming.
2772 (lto_input_ts_block_tree_pointers): Likewise.
2773 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
2775 2011-02-19 Joseph Myers <joseph@codesourcery.com>
2777 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
2779 2011-02-19 Joseph Myers <joseph@codesourcery.com>
2781 * config/i386/biarch32.h, config/i386/mach.h,
2782 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
2784 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2787 * config/i386/i386.md (peephole2 for shift and plus): Use
2788 operands[1] original mode in the first insn.
2790 2011-02-18 Mike Stump <mikestump@comcast.net>
2792 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
2794 2011-02-18 Jan Hubicka <jh@suse.cz>
2797 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
2798 to zero when the function is not inlinable at all.
2800 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2802 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
2803 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
2804 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
2805 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
2806 * config/pa/t-pa64: Likewise.
2807 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2809 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2812 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
2814 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2817 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
2819 2011-02-18 Anatoly Sokolov <aesok@post.ru>
2821 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2822 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
2823 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
2824 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2825 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
2826 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
2827 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
2828 m32r_load_postinc_p, m32r_store_preinc_predec_p,
2829 m32r_legitimate_address_p): New functions.
2830 * config/m32r/constraints.md (constraint "S"): Don't use
2831 STORE_PREINC_PREDEC_P.
2832 (constraint "U"): Don't use LOAD_POSTINC_P.
2834 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
2836 PR rtl-optimization/46178
2837 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
2838 compute ira_hard_regno_cover_class[].
2840 2011-02-18 Richard Guenther <rguenther@suse.de>
2843 * lto-streamer.h (lto_global_var_decls): Declare.
2844 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
2845 statics for global var processing.
2847 2011-02-18 Richard Guenther <rguenther@suse.de>
2849 PR tree-optimization/47737
2850 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
2851 edge dominance check.
2853 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2856 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
2857 avoid invalid rtx sharing.
2859 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
2861 * doc/cpp.texi (Obsolete Features): Add background on the
2862 origin of assertions.
2864 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2866 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
2868 * config/darwin.c (output_objc_section_asm_op): Added support for
2870 (is_objc_metadata): New.
2871 (darwin_objc2_section): New.
2872 (darwin_objc1_section): New.
2873 (machopic_select_section): Added support for ABI v1 and v2.
2874 (darwin_emit_objc_zeroed): New.
2875 (darwin_output_aligned_bss): Detect objc metadata and treat it
2877 (darwin_asm_output_aligned_decl_common): Same.
2878 (darwin_asm_output_aligned_decl_local): Same.
2879 * config/darwin-sections.def: Updated for ABI v1 and v2.
2880 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
2881 compiling Objective-C code for the NeXT runtime, default to using
2882 ABI version 0 for 32-bit, and version 2 for 64-bit.
2884 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2886 * common.opt (optimize_fast): New Variable.
2887 * opts.c (default_options_optimization): Use opts->x_optimize_fast
2888 instead of local variable ofast.
2890 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
2892 * doc/invoke.texi (fobjc-abi-version): Documented.
2893 (fobjc-nilcheck): Documented.
2894 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
2897 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2900 * common.opt (export-dynamic): New Driver option.
2901 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
2903 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2905 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
2907 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
2908 Jan Hubicka <jh@suse.cz>
2912 * cfgexpand.c (account_used_vars_for_block): Remove.
2913 (estimated_stack_frame_size): Use referenced vars.
2914 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
2915 that were referenced in the original function. Test src_fn
2916 rather than cfun. Drop redundant get_var_ann.
2917 (setup_one_parameter): Drop redundant get_var_ann.
2918 (declare_return_variable): Likewise.
2919 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
2920 (copy_arguments_for_versioning): Drop redundant get_var_ann.
2921 * ipa-inline.c (compute_inline_parameters): Do not compute
2922 disregard_inline_limits here.
2923 (compute_inlinable_for_current, pass_inlinable): New.
2924 (pass_inline_parameters): Require PROP_referenced_vars.
2925 * cgraphunit.c (cgraph_process_new_functions): Don't run
2926 compute_inline_parameters explicitly unless function is in SSA form.
2927 (cgraph_analyze_function): Set .disregard_inline_limits.
2928 * tree-sra.c (convert_callers): Compute inliner parameters
2929 only for functions already in SSA form.
2931 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2933 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
2934 -mlittle-endian-data.
2936 2011-02-17 Joseph Myers <joseph@codesourcery.com>
2938 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
2939 -mno-fpu, not -fpu and -no-fpu.
2940 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
2941 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
2943 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
2946 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
2947 input reload with PLUS RTX.
2949 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2951 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
2952 of InverseVar(MDMX).
2954 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2956 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
2959 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2961 * config/mn10300/mn10300.opt (mno-crt0): New.
2963 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2965 * config/m68k/uclinux.opt (static-libc): New Driver option.
2967 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2969 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
2971 2011-02-16 Joseph Myers <joseph@codesourcery.com>
2973 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
2974 %{muser-extend-enabled}.
2976 2011-02-16 Richard Guenther <rguenther@suse.de>
2978 PR tree-optimization/47738
2979 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
2980 the TODO from tree_predictive_commoning.
2982 2011-02-15 Jeff Law <law@redhat.com>
2985 2011-01-25 Jeff Law <law@redhat.com>
2987 PR rtl-optimization/37273
2988 * ira-costs.c (scan_one_insn): Detect constants living in memory and
2989 handle them like argument loads from stack slots. Do not double
2990 count memory for memory constants and argument loads from stack slots.
2992 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
2995 * combine.c (cant_combine_insn_p): Revert the last change.
2997 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3000 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
3001 mode for vector constants. Remove code that checks for TImode.
3003 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
3007 * cgraph.h (compute_inline_parameters): Return void.
3008 * ipa-inline.c (compute_inline_parameters): Adjust.
3010 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
3014 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
3016 * cfgexpand.c (estimated_stack_frame_size): Likewise.
3017 * ipa-inline.c (compute_inline_parameters): Adjust.
3019 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
3023 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
3024 Adjust all users. Pass FN to...
3025 * tree-flow-inline.h (first_referenced_var): ... this. Add
3027 * ipa-struct-reorg.c: Adjust.
3028 * tree-dfa.c: Adjust.
3029 * tree-into-ssa.c: Adjust.
3030 * tree-sra.c: Adjust.
3031 * tree-ssa-alias.c: Adjust.
3032 * tree-ssa-live.c: Adjust.
3033 * tree-ssa.c: Adjust.
3034 * tree-ssanames.c: Adjust.
3035 * tree-tailcall.c: Adjust.
3037 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
3041 * tree-flow.h (referenced_var_lookup): Add fn parameter.
3043 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
3044 * tree-flow-inline.h: Adjust.
3045 * gimple-pretty-print.c: Adjust.
3046 * tree-into-ssa.c: Adjust.
3047 * tree-ssa.c: Adjust.
3048 * cfgexpand.c: Adjust.
3050 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
3052 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
3053 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3054 (EXTRA_CONSTRAINT): Delete.
3055 * config/iq2000/constraints.md: New file.
3056 * config/iq2000/iq2000.md: Include it.
3057 (define_insn ""): Delete.
3058 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
3059 unsupported constraint letters from patterns.
3060 (call_value, call_value_internal1): Likewise.
3061 (call_value_multiple_internal1): Likewise.
3063 2011-02-15 Nick Clifton <nickc@redhat.com>
3065 * config/mn10300/mn10300.c: Include tm-constrs.h.
3066 (struct liw_data): New data structure describing an LIW candidate
3068 (extract_bundle): Use struct liw_data. Allow small integer
3069 operands for some instructions.
3070 (check_liw_constraints): Use struct liw_data. Remove swapped
3071 parameter. Add comments describing the checks. Fix bug when
3072 assigning the source of liw1 to the source of liw2.
3073 (liw_candidate): Delete. Code moved into extract_bundle.
3074 (mn10300_bundle_liw): Use struct liw_data. Check constraints
3076 * config/mn10300/predicates.md (liw_operand): New predicate.
3077 Allows registers and small integer constants.
3078 * config/mn10300/constraints.md (O): New constraint. Accetps
3079 integers in the range -8 to +7 inclusive.
3080 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
3081 for moving a small integer into a register. Give this alternative
3083 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
3084 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
3085 using the J,K,L and M constraints,
3086 (liw): Remove SI mode on second operands to allow for HI and QI
3088 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
3091 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
3094 * combine.c (cant_combine_insn_p): Check zero/sign extended
3097 2011-02-15 Richard Guenther <rguenther@suse.de>
3099 PR tree-optimization/47743
3100 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
3101 for a non-type-compatible VN lookup bail out.
3103 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
3105 * config/fr30/constraints.md: New file.
3106 * config/fr30/fr30.md: Include it.
3107 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
3108 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3109 (EXTRA_CONSTRAINT): Delete.
3111 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
3113 * config/frv/constraints.md: New file.
3114 * config/frv/predicates.md: Include it.
3115 * config/frv/frv.c (reg_class_from_letter): Delete.
3116 (frv_option_override): Don't initialize it.
3117 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
3118 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
3119 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
3120 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
3121 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
3122 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3123 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
3124 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
3125 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
3126 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
3127 (REG_CLASS_FROM_CONSTRAINT): Delete.
3129 2011-02-15 Jakub Jelinek <jakub@redhat.com>
3132 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
3133 if frame size is 0 in a leaf function.
3135 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3138 * config/alpha/host-osf.c: New file.
3139 * config/alpha/x-osf: New file.
3140 * config.host (alpha*-dec-osf*): Use it.
3142 2011-02-14 Anatoly Sokolov <aesok@post.ru>
3144 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3145 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
3146 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
3147 (rx_mode_dependent_address_p): ...this. Make static. Change argument
3149 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3151 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
3153 * config/stormy16/constraints.md: New file.
3154 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
3155 Use satisfies_constraint_Q and satisfies_constraint_R.
3156 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
3158 (xstormy16_legitiamte_address_p): Declare.
3159 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
3160 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3161 (EXTRA_CONSTRAINT): Delete.
3162 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
3164 (xstormy16_extra_constraint_p): Delete.
3166 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
3168 PR tree-optimization/46494
3169 * loop-unroll.c (split_edge_and_insert): Adjust comment.
3170 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
3171 (pass_rtl_loop_done): Add TODO_verify_flow.
3172 * fwprop.c (pass_rtl_fwprop): Likewise.
3173 * modulo-sched.c (pass_sms): Likewise.
3174 * tree-ssa-dom.c (pass_dominator): Likewise.
3175 * tree-ssa-loop-ch.c (pass_ch): Likewise.
3176 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
3177 (pass_tree_loop_done): Likewise.
3178 * tree-ssa-pre.c (execute_pre): Likewise.
3179 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
3180 * tree-ssa-sink.c (pass_sink_code): Likewise.
3181 * tree-vrp.c (pass_vrp): Likewise.
3183 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
3185 * config/v850/constraints.md: New file.
3186 * config/v850/v850.md: Include it.
3187 * config/v850/predicates.md (reg_or_0_operand): Use
3188 satisfies_constraint_G.
3189 (special_symbolref_operand): Use satisfies_constraint_K.
3190 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
3191 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
3192 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
3193 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
3194 (EXTRA_CONSTRAINT): Delete.
3195 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
3196 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
3197 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
3199 2011-02-14 Anatoly Sokolov <aesok@post.ru>
3202 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
3205 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
3207 * config/mcore/constraints.md: New file.
3208 * config/mcore/mcore.md: Include it.
3209 * config/mcore/mcore.c (reg_class_from_letter): Delete.
3210 * config/mcore/mcore.h (reg_class_from_letter): Delete.
3211 (REG_CLASS_FROM_LETTER): Delete.
3212 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
3213 insn_const_int_ok_for_constraint.
3214 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
3215 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
3216 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3217 (EXTRA_CONSTRAINT): Delete.
3219 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3222 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
3223 (IS_SIGHANDLER): Define.
3224 (sparc64_is_sighandler): New function, split off from
3225 sparc64_fallback_frame_state.
3226 (sparc_is_sighandler): New function, split off from
3227 sparc_fallback_frame_state.
3228 (sparc64_fallback_frame_state): Merge with ...
3229 (sparc_fallback_frame_state): ... this into ...
3230 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
3231 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
3232 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
3233 stack instead of hardcoded offsets.
3235 2011-02-14 Andriy Gapon <avg@freebsd.org>
3238 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
3240 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3242 * configure: Regenerate.
3244 2011-02-12 Joseph Myers <joseph@codesourcery.com>
3247 * gcc.c (asm_options): Correct spec matching --target-help.
3249 2011-02-12 Martin Jambor <mjambor@suse.cz>
3251 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
3252 to gimple call error.
3254 2011-02-12 Mike Stump <mikestump@comcast.net>
3256 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
3257 comments in backslash regions.
3259 2011-02-12 Mike Stump <mikestump@comcast.net>
3260 Jakub Jelinek <jakub@redhat.com>
3261 Iain Sandoe <iains@gcc.gnu.org>
3264 * dwarf2out.c (output_cfa_loc): When required, apply the
3265 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
3266 (output_loc_sequence): Likewise.
3267 (output_loc_operands_raw): Likewise.
3268 (output_loc_sequence_raw): Likewise.
3269 (output_cfa_loc): Likewise.
3270 (output_loc_list): Suppress register number adjustment when
3271 calling output_loc_sequence()
3272 (output_die): Likewise.
3274 2011-02-12 Anatoly Sokolov <aesok@post.ru>
3276 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3278 * config/xtensa/xtensa.c (xtensa_register_move_cost,
3279 xtensa_memory_move_cost): New functions.
3280 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
3282 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
3285 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
3286 in the current directory.
3287 * configure: Rebuilt.
3289 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
3291 * config/darwin.c (darwin_override_options): Add a hunk missed
3292 from the commit of r168571. Trim comment line lengths and
3293 correct indents of the preceding block.
3295 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
3297 * gcc.c (driver_handle_option): Concatenate the argument to -F with
3300 2011-02-11 Joseph Myers <joseph@codesourcery.com>
3302 * common.opt (nostartfiles): New Driver option.
3304 2011-02-11 Xinliang David Li <davidxl@google.com>
3306 PR tree-optimization/47707
3307 * tree-chrec.c (convert_affine_scev): Keep type precision.
3309 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
3311 PR tree-optimization/47420
3312 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
3314 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3316 PR rtl-optimization/47614
3317 * rtl.h (check_for_inc_dec): Declare.
3318 * dse.c (check_for_inc_dec): Externalize...
3319 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
3320 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
3322 2011-02-11 Joseph Myers <joseph@codesourcery.com>
3325 * gcc.c (main): Do not compile inputs if there were errors in
3327 * opts-common.c (read_cmdline_option): Check for wrong language
3328 after other error checks.
3330 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
3332 * cgraph.c: Fix comment typos.
3333 * cgraph.h: Likewise.
3334 * cgraphunit.c: Likewise.
3335 * ipa-cp.c: Likewise.
3336 * ipa-inline.c: Likewise.
3337 * ipa-prop.c: Likewise.
3338 * ipa-pure-const.c: Likewise.
3339 * ipa-ref.c: Likewise.
3340 * ipa-reference.c: Likewise.
3342 2011-02-11 Jakub Jelinek <jakub@redhat.com>
3345 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
3347 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3350 * doc/sourcebuild.texi (Require Support): Document
3351 dg-require-ascii-locale.
3353 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
3355 * doc/lto.texi (Write summary): Fix missing parentheses.
3357 2011-02-10 DJ Delorie <dj@redhat.com>
3359 * config/m32c/m32c.c (m32c_option_override): Disable
3360 -fcombine-stack-adjustments until flag value tracking and compare
3361 optimization can be rewritten.
3363 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
3365 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
3367 (PROCESSOR_DEFAULT64): Likewise.
3369 2011-02-10 Richard Henderson <rth@redhat.com>
3371 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
3372 change from 2011-02-03.
3373 * config/rx/rx.c (flags_from_code): Likewise.
3374 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
3375 is valid, n/pz otherwise.
3376 (rx_select_cc_mode): Return CCmode if Y is not zero.
3378 2011-02-10 Richard Guenther <rguenther@suse.de>
3380 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
3382 2011-02-10 Richard Guenther <rguenther@suse.de>
3384 PR tree-optimization/47677
3385 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
3387 2011-02-10 Jakub Jelinek <jakub@redhat.com>
3390 * combine.c (make_compound_operation): Only change shifts into
3391 multiplication for SCALAR_INT_MODE_P.
3393 2011-02-10 Jie Zhang <jie@codesourcery.com>
3397 2011-02-05 Jie Zhang <jie@codesourcery.com>
3399 * web.c (entry_register): Don't clobber the number of the
3400 first uninitialized reference in used[].
3402 2011-02-09 Richard Guenther <rguenther@suse.de>
3404 PR tree-optimization/47664
3405 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
3408 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
3412 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
3414 (PROCESSOR_DEFAULT64): Same.
3415 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
3417 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3419 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
3421 2011-02-09 Martin Jambor <mjambor@suse.cz>
3424 * tree-sra.c (struct access): New flags grp_scalar_read and
3425 grp_scalar_write. Changed description of assignment read and write
3427 (dump_access): Dump new flags, reorder all of them.
3428 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
3429 to detect multiple scalar reads.
3430 (analyze_access_subtree): Use the new scalar read write flags instead
3431 of the old flags. Adjusted comments.
3433 2011-02-08 DJ Delorie <dj@redhat.com>
3436 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
3439 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3441 * config/m68k/uclinux.opt: New.
3442 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
3444 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3446 * config/cris/elf.opt (sim): New Driver option.
3448 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3450 * config/xtensa/elf.opt: New.
3451 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
3453 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3455 * config/vax/elf.opt: New.
3456 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
3458 2011-02-08 Joseph Myers <joseph@codesourcery.com>
3460 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
3462 2011-02-08 Joseph Myers <joseph@codesourcery.com>