1 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
3 * rtl.h: Remove the prototype for reg_alloc.
5 2006-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8 * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
9 hppa[12]*-*-hpux11*): Override default shared libgcc version for both
10 sjlj and dwarf2 exception handling.
11 * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
12 Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
13 * pa/pa.c (function_value): Treat complex and vector types as
15 (function_arg): Likewise. Only pass scalar floats in the floating
16 point argument registers.
17 * pa/t-slibgcc-dwarf-ver: New file.
18 * pa/t-slibgcc-sjlj-ver: New file.
19 * pa/t-slibgcc-elf-ver: Delete file.
21 2006-01-19 Alan Modra <amodra@bigpond.net.au>
23 * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
24 unlikely_test_section_p test.
26 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
28 * mode-switching.c (optimize_mode_switching): Make it static.
29 * basic-block.h: Remove the prototype for
30 optimize_mode_switching.
32 * modulo-sched.c (sms_schedule): Make it static.
33 * rtl.h: Remove the prototype for sms_schedule.
35 * postreload-gcse.c (gcse_after_reload_main): Make it static.
36 * rtl.h: Remove the prototype for gcse_after_reload_main.
38 * reg-stack.c (reg_to_stack): Make it static.
39 * rtl.h: Remove the prototype for reg_to_stack.
41 * regrename.c (regrename_optimize, copyprop_hardreg_forward):
43 * rtl.h: Remove the prototypes for regrename_optimize and
44 copyprop_hardreg_forward.
46 2006-01-18 Eric Botcazou <ebotcazou@adacore.com>
48 * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
49 alpha_split_tmode_pair. Add 'mode' and 'fixup_overlap' arguments.
50 Test against the appropriate null constant for the mode.
51 If 'fixup_overlap' is true, swap the operands if they overlap.
52 (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
53 * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
54 alpha_split_tmode_pair and adjust for above change.
55 * config/alpha/alpha.md (movtf_internal): Adjust call to
56 alpha_split_tfmode_pair and rely on it to swap the operands.
57 (movti_internal): New insn and post-reload splitter.
58 (movti): New expander.
60 2006-01-18 Philippe De Muyter <phdm@macqel.be>
62 * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
65 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
67 * rtlanal.c (global_reg_mentioned_p_1,
68 global_reg_mentioned_p): Remove.
69 * rtl.h: Remove the prototype for global_reg_mentioned_p.
71 * flow.c (initialize_uninitialized_subregs): Make it static.
72 * rtl.h: Remove the prototype for
73 initialize_uninitialized_subregs.
75 * function.c (instantiate_virtual_regs): Make it static.
76 * function.h: Remove the prototype for
77 instantiate_virtual_regs.
79 * regmove.c (regmove_optimize, combine_stack_adjustments):
81 * rtl.h: Remove the prototypes for regmove_optimize and
82 combine_stack_adjustments.
84 2006-01-17 Roger Sayle <roger@eyesopen.com>
86 * config/i386/i386.c (COSTS_N_BYTES): New macro.
87 (size_cost): Encode costs in bytes so that a reg-reg addition is
88 equivalent to COSTS_N_INSNS(1).
89 (override_options): Use the size_cost.branch_cost as the default
90 ix86_branch_cost when optimizing for size.
92 2006-01-18 Ben Elliston <bje@au.ibm.com>
94 * Makefile.in (D32PBIT_FUNCS): New.
95 (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
96 (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
97 D64PBIT_FUNCS and D128PBIT_FUNCS.
98 (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
99 * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
101 (decnumber_dep): Define.
102 * doc/libgcc.texi (Decimal float library routines): New node.
103 * config/dfp-bit.h, config/dfp-bit.c: New files.
105 2006-01-18 Ben Elliston <bje@au.ibm.com>
107 * expr.c (emit_move_change_mode): Always adjust addresses, not
108 just during reload. Copy replacements only during reload.
109 (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
110 emit_move_via_integer.
112 2006-01-17 Shantonu Sen <ssen@opendarwin.org>
114 * Makefile.in (check-%, check-consistency): Use $${srcdir}
115 instead of $(srcdir) and ${srcdir}.
117 2006-01-17 Richard Earnshaw <rearnsha@arm.com>
121 * arm.h (struct machine_function): Add pic_reg.
122 * arm.c (arm_pic_register): Make unsigned.
123 (arm_override_options): Only set arm_pic_register if
124 TARGET_SINGLE_PIC_BASE.
125 (use_return_insn): Only test for a pic register if it is fixed.
126 (arm_compute_save_reg0_reg12_mask): Likewise.
127 (thumb_compute_save_reg_mask): Likewise.
128 (legitimate_pic_operand): Factor out some known invariants.
129 (legitimize_pic_address): If we don't have a fixed pic register,
130 then set up a pseudo in the function entry sequence. Handle the
131 pic base being in a pseudo.
132 (arm_load_pic_register): Handle the pic register being in a pseudo.
133 (arm_expand_prologue): Only set up the pic register if it is fixed.
134 (thumb_expand_prologue): Likewise.
135 * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
136 (pic_load_addr_based_insn): Likewise.
137 (builtin_setjmp_receiver): Don't restore the pic base if it isn't
140 2006-01-18 Ben Elliston <bje@au.ibm.com>
142 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
143 decimal float modes for all floating point registers.
145 * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
146 match_code "mem" with match_test "macho_lo_sum_memory_operand".
148 2006-01-17 Jakub Jelinek <jakub@redhat.com>
151 * c-typeck.c (build_unary_op): Fold offsetof-like expressions
152 even when the pointer is not NULL.
154 2006-01-16 Ian Lance Taylor <ian@airs.com>
156 * common.opt (ftoplevel-reorder): New option.
157 * cgraph.c (cgraph_asm_nodes): New global variable.
158 (cgraph_asm_last_node): New static variable.
159 (cgraph_order): New global variable.
160 (cgraph_create_node): Set new order field.
161 (cgraph_varpool_node): Likewise.
162 (decide_is_variable_needed): Return true if not
163 flag_toplevel_reorder.
164 (cgraph_add_asm_node): New function.
165 * cgraph.h (struct cgraph_node): Add order field.
166 (struct cgraph_varpool_node): Add order field.
167 (struct cgraph_asm_node): Define.
168 (cgraph_asm_nodes, cgraph_order): Declare.
169 (cgraph_add_asm_node): Declare.
170 * cgraphunit.c (cgraph_varpool_assemble_decl): New static
172 (cgraph_varpool_assemble_pending_decls): Call it.
173 (cgraph_output_pending_asms): New static function.
174 (cgraph_finalize_compilation_unit): Call it.
175 (struct cgraph_order_sort): Define.
176 (cgraph_output_in_order): New static function.
177 (cgraph_optimize): Call cgraph_output_pending_asms. Add code for
178 !flag_toplevel_reorder case.
179 * c-parser.c: Include "cgraph.h".
180 (c_parser_asm_definition): Call cgraph_add_asm_node rather than
182 * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
183 than -fno-unit-at-a-time.
184 * doc/invoke.texi (Option Summary): Mention
185 -fno-toplevel-reorder.
186 (Optimize Options): Document -fno-toplevel-reorder. Mention it in
187 -funit-at-a-time documentation.
189 2006-01-17 Hans-Peter Nilsson <hp@axis.com>
190 Kazu Hirata <kazu@codesourcery.com>
192 * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
194 2006-01-17 Kazu Hirata <kazu@codesourcery.com>
196 * Makefile.in (FUNCTION_H): New. Use it instead of
197 function.h throughout the file.
198 * function.h: Include tree.h.
200 2006-01-17 Ben Elliston <bje@au.ibm.com>
202 * recog.c: Separate some functions with whitespace.
204 2006-01-16 Richard Henderson <rth@redhat.com>
206 Merge from gomp branch:
207 * Makefile.in (TREE_INLINE_H): New. Use it as needed.
208 * tree-inline.h (struct copy_body_data): Move from tree-inline.c
209 and rename from struct inline_data. Rename callee* to dst*;
210 caller* to src*; add copy_decl hook, transform_call_graph_edges,
211 transform_new_cfg, transform_return_to_modify, and
212 transform_lang_insert_block flags; remove cloning_p, versioning_p,
214 (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
215 (copy_decl_for_dup): Remove.
216 * tree-inline.c (struct inline_data): Move to header.
217 (insert_decl_map): Export.
218 (remap_decl): Update for member name changes. Use copy_decl hook.
219 Allow for replacement to be a non-decl. Remove dead code.
220 (remap_type_1): Check for existing mapping.
221 (remap_type): Export.
222 (remap_decls): Update for member name changes.
223 (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
224 (copy_body, setup_one_parameter, declare_return_variable): Likewise.
225 (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
226 (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
227 (tree_function_versioning, build_duplicate_type): Likewise.
228 (copy_body_r): Likewise. Export.
229 (copy_decl_for_dup): Split into ...
230 (copy_decl_for_dup_finish, copy_decl_to_var,
231 copy_decl_no_change, copy_decl_maybe_to_var): ... these.
232 (replace_ref_tree, inlining_p): Remove.
234 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
236 * ifcvt.c (if_convert): Make it static.
237 * rtl.h: Remove the prototype for if_convert.
239 * local-alloc.c (local_alloc): Make it static.
240 * rtl.h: Remove the prototype for local_alloc.
242 * loop.c (loop_optimize): Make it static.
243 * cfgloop.h: Remove the prototype for loop_optimize.
246 2006-01-16 DJ Delorie <dj@redhat.com>
248 * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
251 2006-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
253 * pa.md: Disparage copies between general and floating-point registers
254 in 32-bit move patterns.
256 2006-01-16 H.J. Lu <hongjiu.lu@intel.com>
259 * Makefile.in (check-%): Depend on site.exp instead of
260 $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
263 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
265 * global.c (global_alloc): Make it static.
266 * rtl.h: Remove the prototype for global_alloc.
268 2006-01-16 Richard Guenther <rguenther@suse.de>
270 * tree-ssa-alias.c (struct used_part): Add write_only field.
271 (get_or_create_used_part_for): Initialize it to true.
272 (create_overlap_variables_for): Don't create structure variables
273 for structures that only are written to.
274 (find_used_portions): Handle MODIFY_EXPR to track whether a
275 structure is only written to.
277 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
279 * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
281 * basic-block.h: Remove the prototype for
282 partition_hot_cold_basic_blocks.
284 2006-01-16 Rafael
\81Ã
\81vila de Esp
\81Ã
\81Ândola <rafael.espindola@gmail.com>
286 * cppspec.c (lang_specific_spec_functions): remove
287 * gcc.c (lookup_spec_function): use static_spec_functions directelly
288 * gcc.h (lang_specific_spec_functions): remove
289 * gccspec.c (lang_specific_spec_functions): remove
291 2005-01-16 Paolo Bonzini <bonzini@gnu.org>
293 * combine.c (record_value_for_reg): Invalidate registers
295 (record_dead_and_set_regs_1): Likewise, by passing them to
296 record_value_for_reg.
297 (record_dead_and_set_regs): Invalidate stores made by a
298 call. We do not combine across a call, but we still
299 relied on equivalences.
301 2006-01-16 Eric Botcazou <ebotcazou@adacore.com>
303 * tree-vrp.c (extract_range_from_binary_expr): Cope with
304 vrp_int_const_binop returning non-constant nodes.
306 2006-01-16 Paul Brook <paul@codesourcery.com>
308 * config/m68k/m68k.c (output_move_const_into_data_reg):
309 Output correct mnemonic for mvz and mvs.
311 2006-01-16 Gabor Loki <loki@gcc.gnu.org>
313 * rtl-factoring.c: Add sequence abstraction algorithm.
314 * cfgcleanup.c (outgoing_edges_match): Extra checks.
315 (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
317 (block_has_preserve_label): New function.
318 * common.opt: Register new pass.
319 * Makefile.in: Ditto.
321 * timevar.def: Ditto.
322 * tree-pass.h: Ditto.
323 * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
324 * rtl.h (make_jump_insn_raw): Add forward decl.
325 * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
327 2006-01-16 Eric Botcazou <ebotcazou@adacore.com>
328 Roger Sayle <roger@eyesopen.com>
330 * fold-const.c (fold_minmax): New static function.
331 (fold_binary) <MIN_EXPR>: Call it.
332 <MAX_EXPR>: Likewise.
333 * stor-layout.c (place_field): Use DECL_SIZE consistently
334 in the computation of the new record size.
336 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
338 * cse.c (cse_condition_code_reg): Make it static.
339 * rtl.h: Remove the prototype for cse_condition_code_reg.
341 * combine.c (combine_instructions): Make it static.
342 * rtl.h: Remove the prototype for combine_instructions.
344 2006-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
347 * tree.c (get_file_function_name_long): Concatenate the first global
348 object name with a string derived from the input filename of the object
351 2006-01-16 Ben Elliston <bje@au.ibm.com>
353 * config/i386/winnt-stubs.c: Update FSF address.
354 * config/xtensa/ieee754-df.S: Ditto.
355 * config/xtensa/ieee754-sf.S: Ditto.
357 2006-01-14 Ian Lance Taylor <ian@airs.com>
359 * ifcvt.c (noce_init_if_info): New static function, broken out of
360 noce_process_if_block.
361 (noce_process_if_block): Call noce_init_if_info.
362 (check_cond_move_block): New static function.
363 (cond_move_process_if_block): New static function.
364 (process_if_block): Call cond_move_process_if_block.
366 2006-01-15 Kazu Hirata <kazu@codesourcery.com>
368 * cselib.c (hash_table): Rename to cselib_hash_table.
369 (cselib_clear_table, discard_useless_values,
370 remove_useless_values, cselib_lookup_mem, cselib_lookup,
371 cselib_init, cselib_finish): Adjust uses of hash_table.
373 2006-01-14 Kazu Hirata <kazu@codesourcery.com>
375 PR tree-optimization/25485
376 * tree-vrp.c (extract_range_from_binary_expr): Handle cases
377 where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
378 is known to be false and true, respectively.
380 2006-01-14 Richard Guenther <rguenther@suse.de>
382 PR tree-optimization/22548
383 PR tree-optimization/22555
384 PR tree-optimization/22501
385 * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
386 * params.def (salias-max-array-elements): New parameter.
387 * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
388 * doc/invoke.texi (salias-max-array-elements): Document.
389 * tree-flow-inline.h (var_can_have_subvars): We also handle
391 * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
393 * tree-ssa-structalias.c (params.h): Include.
394 (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
395 (find_func_aliases): Handle multiple constraints from ARRAY_REF.
396 (get_constraint_for): For ADDR_EXPR operating on something
397 containing an ARRAY_REF, add all subvars to the solution.
398 (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
399 * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
400 for creating MUST_DEFs.
401 (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
403 2006-01-14 Zdenek Dvorak <dvorakz@suse.cz>
405 * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
407 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
408 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
409 number_of_iterations_le): New functions.
410 (number_of_iterations_special): Removed.
411 (number_of_iterations_exit): Do not use number_of_iterations_special.
412 * tree.c (unsigned_type_for): Always return integer type.
414 2006-01-14 Steven Bosscher <stevenb.gcc@gmail.com>
415 Richard Guenther <rguenther@suse.de>
417 PR rtl-optimization/24257
418 * gcse.c (find_moveable_store): Only consider a store movable
419 when the SET_SRC of the insn can be assigned to a register.
421 2006-01-14 Ian Lance Taylor <ian@airs.com>
423 * tree.c (tree_not_class_check_failed): New function.
424 * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
425 (tree_not_class_check_failed): Declare.
427 2006-01-13 Ian Lance Taylor <ian@airs.com>
429 * reload1.c (do_output_reload): Add assertion rejecting a
432 2006-01-13 Adam Nemet <anemet@caviumnetworks.com>
434 * combine.c (struct reg_stat): Add new fields truncation_label and
436 (record_value_for_reg): Reset truncated_to_mode.
437 (record_truncated_value): New function.
438 (check_promoted_subreg): Call it. Rename to check_conversions.
439 (combine_instructions): Rename check_promoted_subreg to
441 (reg_truncated_to_mode): New function.
442 (make_extraction): Use it. Check TRULY_NOOP_TRUNCATION.
443 (gen_lowpart_or_truncate): New function.
444 (force_to_mode): Use it instead of gen_lowpart.
446 2006-01-13 Diego Novillo <dnovillo@redhat.com>
448 * tree-ssa-alias.c (add_type_alias): Fix typo. Test whether
449 VAR is a tag, not its type tag.
451 2006-01-13 Alexandre Oliva <aoliva@redhat.com>
453 * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
454 alternatives to match style of other entries.
455 (*vec_extractv2di_1_sse): Likewise. Fix mode attr.
457 2006-01-13 Daniel Berlin <dberlin@dberlin.org>
459 PR tree-optimization/25771
460 * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
463 2006-01-13 Andrew Pinski <pinskia@physics.uc.edu>
466 * tree-inline.c (declare_return_variable): If the return variable
467 was marked as a non gimple complex, set the return slot variable
468 to be a non gimple comple variable.
470 2006-01-13 Richard Guenther <rguenther@suse.de>
472 * builtins.c (expand_builtin_sincos): New function.
473 (expand_builtin_mathfn_3): Remove dead code, sin and cos
475 (expand_builtin): Expand sincos using expand_builtin_sincos.
477 2006-01-12 DJ Delorie <dj@redhat.com>
479 * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
480 shift counts, separate SI shifts for m32c vs m16c, pass shift type
481 so that constant shifts can be split.
482 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
483 (m32c_valid_pointer_mode): Make static.
484 (shift_gen_func_for): New.
485 (m32c_prepare_shift): Use it. Split large const shifts into
487 * config/m32c/predicates.md (shiftcount_operand): Allow more
489 (longshiftcount_operand): New.
490 * doc/md.texi (Machine Constraints): Document In6.
492 2006-01-13 Ben Elliston <bje@au.ibm.com>
494 * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
495 REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
498 2006-01-12 Daniel Berlin <dberlin@dberlin.org>
500 * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
501 to try to avoid clobbering pieces of structures when we know
502 something about the whole structure.
503 * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
505 2006-01-13 Ben Elliston <bje@au.ibm.com>
507 * doc/rtl.texi (Insns): Remove statement that libcalls cannot
508 return in memory, as this is no limitation is no longer present.
510 2006-01-12 DJ Delorie <dj@redhat.com>
512 * config/m32c/addsub.md (addhi3): Add two more alternatives, for
513 mova with fb, and for fb+0 -> An.
515 * config/m32c/mov.md (peephole2): Fix enabling logic.
517 * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
518 DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
519 DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
520 FINI_ARRAY_SECTION_ASM_OP): Define.
522 * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
524 (m32c_legitimize_reload_address): New logic to reload FB to An.
525 (m32c_output_reg_push): Add newline.
526 (m32c_output_reg_pop): Likewise.
528 2006-01-12 Ulrich Weigand <uweigand@de.ibm.com>
530 * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
532 2006-01-11 Andrew Pinski <pinskia@physics.uc.edu>
534 * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
536 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
538 * config/sh/predicates.md (sh_rep_vec): Add parallel to
541 2006-01-11 Ben Elliston <bje@au.ibm.com>
543 * rtlanal.c (find_reg_note): Assert insn is not null.
545 2005-01-11 Kenneth Zadeck <zadeck@naturalbridge.com>
547 * df-scan.c (df_hard_reg_init): Move declaration of i outside
550 2006-01-11 Jeff Law <law@redhat.com>
552 * tree-ssa-threadupdate.c (threaded_edges): New VEC to
554 (mark_threaded_blocks, register_jump_thread): New functions.
555 (thread_through_all_blocks): Remove unwanted argument. No
556 longer rely on e->aux to communicate thread target info.
557 Call mark_threaded_blocks. Release the threaded_blocks
558 bitmap and threaded_edges vector when complete.
559 * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
560 (threaded_blocks): Remove.
561 (tree_ssa_dominator_optimize): Remove initialization and
562 finalization of threaded_blocks. Simplify call to
563 thread_through_all_blocks.
564 (thread_across_edge): Call register_jump_thread rather than
565 storing thread information into e->aux.
566 (free_all_edge_infos): Simplify now that e->aux is no longer
567 used to communicate with thread_through_all_blocks.
568 * tree-flow.h (thread_through_all_blocks): Update prototype.
569 (register_jump_thread): Prototype.
571 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
573 * df-core.c (df_compact_blocks, df_bb_replace): Use
574 SET_BASIC_BLOCK instead of BASIC_BLOCK.
576 2006-01-11 Richard Guenther <rguenther@suse.de>
578 PR tree-optimization/25734
579 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
580 stop propagation after successful propagation to the LHS.
582 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
584 * basic-block.h (control_flow_graph): Change the type of
585 x_basic_block_info to VEC(basic_block,gc) *.
586 (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
588 (SET_BASIC_BLOCK): New.
589 * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
590 instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
591 * cfgbuild.c (find_basic_blocks): Likewise.
592 * cfglayout.c (fixup_reorder_chain): Likewise.
593 * cfgrtl.c (create_basic_block_structure,
594 rtl_create_basic_block): Likewise.
595 * ifcvt.c (find_if_case_1): Likewise.
596 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
599 2005-01-11 Kenneth Zadeck <zadeck@naturalbridge.com>
601 * Makefile.in: Removed rotted odf.c entry.
603 2006-01-11 Hans-Peter Nilsson <hp@axis.com>
606 * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
607 ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
608 ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
609 output pattern modifier, not %e.
610 * config/cris/cris.c (cris_op_str): Update comment about pattern
612 (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
613 before falling through into...
614 <case 'E'>: Redefined from old 'e' case.
616 2006-01-11 Jan Hubicka <jh@suse.cz>
619 * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
621 2006-01-11 Jan Hubicka <jh@suse.cz>
623 * i386.h (TARGET_DECOMPOSE_LEA): Kill.
624 * i386.c (x86_decompose_lea): Kill.
625 (ix86_rtx_costs): Kill.
627 2006-01-11 Jan Hubicka <jh@suse.cz>
629 * cgraph.c (cgraph_insert_node_to_hashtable): New function.
630 * cgraph.h (cgraph_node): Add inline_decl.
631 (cgraph_insert_node_to_hashtable): Declare.
632 (save_inline_function_body): Declare.
633 * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
635 (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
636 (cgraph_function_versioning): Update call of tree_function_versioning.
637 (save_inline_function_body): New function.
638 * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
639 saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
640 * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
641 (cgraph_default_inline_p): Likewise.
642 (cgraph_decide_inlining_incrementally): Likewise.
643 * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
644 (copy_bb): Kill saving; do updating of clones.
645 (copy_cfg_body): Kill saving.
646 (initialize_inlined-parameters): Likewise.
647 (expand_call_inline): Likewise.
649 (tree_function_versioning): New parameter "update_clones".
650 (inlining_p): Kill saving.
651 * tree-inline.h (tree_function_versioning): Update prototype.
652 * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
655 2006-01-11 Ian Lance Taylor <ian@airs.com>
657 * combine.c (struct undo): Remove is_int. Enumify types of undos.
658 Allow undoing set of machine mode.
659 (do_SUBST): Use enums instead of is_int.
660 (do_SUBST_MODE): New function.
661 (SUBST_MODE): New macro.
662 (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
663 reg and trying to replace reg_regno_rtx with a new register.
664 (undo_all): Use new enums, handle undoing a PUT_MODE change.
665 (simplify_set): Use SUBST_MODE.
666 (distribute_notes): Remove code that tried to update reg notes
667 for regno_reg_rtx changes.
669 2006-01-11 Paolo Bonzini <bonzini@gnu.org>
671 PR tree-optimization/23109
672 PR tree-optimization/23948
673 PR tree-optimization/24123
675 * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
676 * tree-cfg.c (single_noncomplex_succ): New.
677 * tree-flow.h (single_noncomplex_succ): Declare it.
678 * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
679 * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
680 (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
681 insert_bb, register_division_in, insert_reciprocals,
682 replace_reciprocal, free_bb): New.
683 (execute_cse_reciprocals_1): Rewritten.
684 (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
685 Do not commit any edge insertion. Always compute dominators and
686 create the allocation pool.
687 * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
688 * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
689 * targhooks.c (default_min_divistions_for_recip_mul): New.
690 * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
691 * passes.c (init_optimization_passes): Run recip after tree loop
693 * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
695 2005-01-11 Danny Berlin <dberlin@dberlin.org>
696 Kenneth Zadeck <zadeck@naturalbridge.com>
698 * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
699 DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
700 DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
701 DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
702 DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
703 DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
704 DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
705 DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
706 DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
707 DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
708 DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
709 DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
710 DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
711 DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
712 DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
713 DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
714 DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
715 DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
716 DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
717 DF_SCAN_POST_ALLOC): New macros.
718 (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
719 df_free_bb_function, df_local_compute_function, df_init_function,
720 df_dataflow_function, df_confluence_function_0,
721 df_confluence_function_n, df_transfer_function,
722 df_finalizer_function, df_free_function, df_dump_problem_function,
723 df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
724 df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
725 df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
726 df_urec_bb_info, ) New types.
727 (df_invalidated_by_call, df_all_hard_regs, df_state) New public
729 (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
730 df_analyze_simple_change_some_blocks,
731 df_analyze_simple_change_one_block, df_compact_blocks,
732 df_bb_replace, df_bb_regno_last_use_find,
733 df_bb_regno_first_def_find, df_bb_regno_last_def_find,
734 df_insn_regno_def_p, df_find_def, df_find_use,
735 df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
736 df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
737 df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
738 debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
739 debug_df_chain, df_get_dependent_problem, df_chain_create,
740 df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
741 df_grow_bb_info, df_chain_dump, df_print_bb_index,
742 df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
743 df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
744 df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
745 df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
746 df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
747 df_rescan_blocks, df_ref_create, df_get_artificial_defs,
748 df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
749 df_ref_remove, df_insn_refs_delete, df_refs_delete,
750 df_reorganize_refs, df_set_state, df_hard_reg_init,
751 df_read_modify_subreg_p) New public functions.
752 * df-core.c: The core dataflow solver and glue routines for rtl
754 (df_init, df_add_problem, df_set_blocks, df_finish,
755 df_hybrid_search_forward, df_hybrid_search_backward,
756 df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
757 df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
758 df_bb_regno_last_use_find, df_bb_regno_first_def_find,
759 df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
760 df_reg_defined, df_find_use, df_reg_used, df_dump,
761 df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
762 df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
763 debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
764 debug_df_useno, reset_df_after_reload): New functions.
765 * df-scan.c: The scanning fuctions, once in df.c, completely
766 rewritten so that they now fully model the functionality of
767 register usage at the backend.
768 (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
769 df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
770 df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
771 df_grow_insn_info, df_rescan_blocks, df_ref_create,
772 df_get_artificial_defs, df_get_artificial_uses,
773 df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
774 df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
775 df_refs_delete, df_reorganize_refs, df_set_state,
776 df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
777 df_def_record_1, df_defs_record, df_uses_record,
778 df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
779 df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
780 df_record_exit_block_uses, df_hard_reg_init): New functions.
782 * df-problems.c: Seven concrete dataflow problems that use the
783 scanning in df-scan.c and are solved by the engine in df-core.c.
784 (df_get_dependent_problem, df_chain_create, df_chain_unlink,
785 df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
786 df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
787 df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
788 df_ru_free_bb_info, df_ru_alloc,
789 df_ru_bb_local_compute_process_def,
790 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
791 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
792 df_ru_transfer_function, df_ru_free, df_ru_dump,
793 df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
794 df_rd_free_bb_info, df_rd_alloc,
795 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
796 df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
797 df_rd_transfer_function, df_rd_free, df_rd_dump,
798 df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
799 df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
800 df_lr_local_compute, df_lr_init, df_lr_confluence_0,
801 df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
802 df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
803 df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
804 df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
805 df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
806 df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
807 df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
808 df_urec_mark_reg_change, df_urec_check_earlyclobber,
809 df_urec_mark_reg_use_for_earlyclobber,
810 df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
811 df_urec_local_compute, df_urec_init, df_urec_local_finalize,
812 df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
813 df_urec_dump, df_urec_add_problem, df_chain_alloc,
814 df_chain_create_bb_process_use, df_chain_create_bb,
815 df_chain_finalize, df_chain_free, df_chains_dump,
816 df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
817 df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
818 df_reg_lifetime): New functions.
819 * df.c: Deleted file.
820 * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
821 consistent with new df api.
822 * modulo-sched.c (sms_schedule, rest_of_handle_sms,
823 rest_of_handle_sms): Ditto.
824 * web.c (unionfind_union, union_defs, entry_register, web_main):
826 * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
827 invariant_expr_equal_p, find_defs, check_dependencies,
828 find_invariant_insn, find_invariants_to_move, move_invariant_reg,
829 free_inv_motion_data, move_loop_invariants): Ditto.
830 * Makefile.in (df.c, df-scan.c df-problems.c df-core.c):
832 (odf.c): Added defective entry that was deleted later in day.
833 * sched-deps.c (sched_analyze_1): Ditto.
835 2006-01-11 Zdenek Dvorak <dvorakz@suse.cz>
837 * tree-ssa-operands.c (get_expr_operands): Record addressable
838 variables directly. Do not call add_stmt_operands for CONST_DECLs
840 (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
841 (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
843 2006-01-11 Ben Elliston <bje@au.ibm.com>
845 * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
846 function returns true in the positive case.
848 2006-01-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
851 * config/pa/pa.md: Create separate 32 and 64-bit move patterns
852 for SI, DI, SF and DF modes. Add alternatives to copy between
853 general and floating point registers to the 32-bit patterns.
854 * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
855 * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
856 (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
857 generating 64-bit code.
858 * config/pa/pa.c (output_move_double): Handle copies between general
859 and floating registers.
861 2006-01-10 Stuart Hastings <stuart@apple.com>
863 * config/i386/i386.md (set_got): Update.
864 (set_got_labelled): New. (UNSPEC_LD_MPIC): New.
865 (builtin_setjmp_receiver): Mach-O support.
866 * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
867 (GOT_SYMBOL_NAME): Define.
868 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
869 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
870 * config/i386/i386.c (override_options): Revise for Darwin.
871 (USE_HIDDEN_LINKONCE): Enable for Mach-O. (ix86_file_end): Mach-O
872 support. (darwin_x86_file_end): New. (output_set_got): Add label
873 parameter, revise for Mach-O. (x86_output_mi_thunk): Likewise.
874 * config/i386/i386-protos.h (output_set_got): Likewise.
875 * config/darwin.c (machopic_legitimize_pic_address): Update
878 2006-01-10 Kaz Kojima <kkojima@gcc.gnu.org>
880 * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
881 when MODE isn't BLKmode.
883 2006-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
885 PR rtl-optimization/25367
886 * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
888 2006-01-10 Hans-Peter Nilsson <hp@axis.com>
891 * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
892 for a negative bound.
894 2006-01-10 Richard Guenther <rguenther@suse.de>
896 * tree-ssa-structalias.c (get_constraint_for_component_ref):
897 Never override with anything constraint.
899 2006-01-10 Jan Beulich <jbeulich@novell.com>
901 * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
902 256 bits when optimize_size.
904 2006-01-10 Jan Beulich <jbeulich@novell.com>
906 * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
908 * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
909 * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
912 2006-01-10 Ben Elliston <bje@au.ibm.com>
914 * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
916 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
917 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
918 (USE_FP_FOR_ARG): Reject decimal float modes.
919 (function_arg_advance): Likewise.
920 (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
921 (rs6000_handle_altivec_attribute): Do not permit decimal floating
922 point types in AltiVec vectors.
923 (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
924 (rs6000_libcall_value): Likewise.
926 2006-01-09 Bob Wilson <bob.wilson@acm.org>
928 * config/xtensa/ieee754-df.S: New file.
929 * config/xtensa/ieee754-sf.S: New file.
930 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
931 (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
932 * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
934 2006-01-09 Kazu Hirata <kazu@codesourcery.com>
936 * config/sh/predicates.md (binary_float_operator,
937 binary_logical_operator, commutative_float_operator,
938 equality_comparison_operator, greater_comparison_operator,
939 less_comparison_operator, logical_operator,
940 noncommutative_float_operator, shift_operator,
941 symbol_ref_operand, unary_float_operator): Remove redundant
944 2006-01-09 Jeff Law <law@redhat.com>
946 * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
947 code to propagate the RHS of a cast into COND_EXPR_COND. Remove
948 now unused arguments. Callers updated.
949 (eliminate_redundant_computations): Remove now unused arguments,
951 (local_fold): Remove, no longer used.
952 (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
954 * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
955 (simplify_cond): New function.
956 (forward_propagate_into_cond): Call simplify_cond.
958 2006-01-09 Alexandre Oliva <aoliva@redhat.com>
960 * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
961 (*vec_extractv2di_1_sse): New.
963 2006-01-09 Ben Elliston <bje@au.ibm.com>
965 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
967 2006-01-08 Richard Guenther <rguenther@suse.de>
969 * tree-ssa-structalias.c (get_constraint_for): Remove
971 (get_constraint_for_component_ref): Likewise.
972 (do_deref): Likewise.
973 (get_constraint_for): Likewise.
974 (do_structure_copy): Likewise.
975 (handle_ptr_arith): Likewise.
976 (find_func_aliases): Likewise. Remove unused need_anyoffset
979 2006-01-08 J"orn Rennecke <joern.rennecke@st.com>
980 Kaz Kojima <kkojima@gcc.gnu.org>
982 * config/sh/sh.h (CONST_OK_FOR_K16): Define.
983 (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
984 (EXTRA_CONSTRAINT_C16): Remove.
985 (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
986 (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
987 EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
988 * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
989 constants of SHmedia. Handle nested constant expressions of
991 (andcosts): Fix the costs for SHmedia constants.
992 (sh_rtx_costs): Take account of outer_code for SHmedia constants.
993 * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
994 (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
995 (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
996 (movv4hi_i, movv2si_i): Likewise.
997 (movsi_const): Adjust the second operand of ior so to match with
999 (movdi_const, movdi_const_32bit): Likewise.
1000 (movdi_const_16bit+1): Don't sign-extend LOW.
1001 (movdi_const_16bit+2): Likewise. Remove the zero_extend and truncate
1003 (*double_shori): Fix the split condition. Use GEN_INT instead
1004 of get_int_mode calls. Mask lower 16-bit of the argument of
1006 (sym2GOTPLT): Remove.
1007 (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
1009 * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
1010 instead of EXTRA_CONSTRAINT_C16.
1012 2006-01-07 Ian Lance Taylor <ian@airs.com>
1013 David Edelsohn <edelsohn@gnu.org>
1015 PR rtl-optimization/25662
1016 * optabs.c (simplify_expand_binop): Use simplify_binary_operation
1017 for constant operands instead of simplify_gen_binary.
1018 * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
1019 after trying simplify_binary_operation
1021 2006-01-06 Daniel Berlin <dberlin@dberlin.org>
1023 * tree.c (iterative_hash_expr): Hash decls based on UID.
1025 2006-01-06 Eric Christopher <echristo@apple.com>
1027 * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
1028 (TARGET_UNWIND_EMIT): Fix spelling.
1029 * target.h (gcc_target): Add except_table_label.
1030 * except.c (output_function_exception_table): Use.
1031 * varasm.c (default_emit_except_table_label): New.
1032 * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
1034 (asm_out): Add here.
1035 * output.h (default_emit_except_table_label): Prototype.
1036 * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
1037 * config/darwin.c (darwin_emit_except_table_label): Define.
1038 * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
1040 2006-01-06 Zdenek Dvorak <dvorakz@suse.cz>
1042 PR tree-optimization/18527
1043 * tree-ssa-loop-niter.c (number_of_iterations_cond,
1044 number_of_iterations_special, number_of_iterations_exit):
1045 Move base and step of an iv to a single structure. Add
1046 no_overflow flag, and use it in # of iterations analysis.
1047 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
1048 folded_casts argument.
1049 (simple_iv): Pass base and step in a structure. Set no_overflow
1051 (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
1052 Evaluate expensiveness of computing # of iterations instead of
1053 the final expression.
1054 * tree-scalar-evolution.h (affine_iv): New structure.
1055 (simple_iv): Declaration changed.
1056 * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
1057 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
1058 find_givs_in_stmt): Changed due to simple_iv change.
1060 2006-01-06 Jeff Law <law@redhat.com>
1063 * tree-cfg.c (bsi_replace): Rename final argument from
1064 PRESERVE_EH_INFO to UPDATE_EH_INFO. Fix typo in last
1065 change (stmt -> orig_stmt).
1066 * tree-eh.c (verify_eh_throw_stmt_node): New function.
1067 (bsi_remove): Add new argument. Remove EH information
1069 (verify_eh_throw_table_statements): New function.
1070 (bsi_remove): Add new argument REMOVE_EH_INFO. All callers
1072 * tree-optimize.c (execute_free_cfg_annotations): Verify
1073 the EH throw statement table after removing annotations.
1074 * except.h (verify_eh_throw_table_statements): Prototype.
1075 * tree-flow.h (bsi_remove): Update prototype.
1076 * tree-vrp.c (remove_range_assertions): Add new argument to
1078 * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
1079 * tree-complex.c (expand_complex_div_wide): Likewise.
1080 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
1081 * tree-tailcall.c (eliminate_tailcall): Likewise.
1082 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
1083 * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
1084 * tree-nrv.c (tree_nrv): Likewise.
1085 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
1086 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
1087 (combine_blocks): Likewise.
1088 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
1089 * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
1090 (cleanup_control_flow): Likewise.
1091 (remove_forwarder_block): Likewise.
1092 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
1093 * tree-sra.c (sra_replace): Likewise.
1094 * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
1095 (forward_propagate_single_use_vars): Likewise.
1096 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1097 * tree-inline.c (expand_call_inline): Likewise.
1098 * tree-vect-transform.c (vect_transform_loop): Likewise.
1099 * tree-outof-ssa.c (rewrite_trees): Likewise.
1100 * tree-cfg.c (make_goto_expr_edges): Likewise.
1101 (cleanup_dead_labels): Likewise.
1102 (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
1103 (bsi_move_before, bsi_move_after): Likewise.
1104 (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
1105 (tree_redirect_edge_and_branch, tree_split_block): Likewise.
1107 2006-01-06 Andrew Pinski <pinskia@physics.uc.edu>
1110 * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
1112 * tree-flow-inline.h (var_can_have_subvars): Handle complex types
1113 on non gimple variables. Also add checks at the top for decls and
1115 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
1117 * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
1118 and IMAGPART_EXPR for creating MUST_DEFs.
1119 (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
1120 and NAME_MEMORY_TAG separately from the DECLs.
1122 2006-01-06 Richard Guenther <rguenther@suse.de>
1124 * tree-dfa.c (mark_new_vars_to_rename): Create stmt
1125 annotation, if necessary.
1126 * tree-ssa-pre.c (create_expression_by_pieces): Remove
1127 redundant calls to update_stmt.
1128 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
1131 2006-01-05 Richard Henderson <rth@redhat.com>
1133 * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
1135 2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
1137 * c-typeck.c: Update copyright date.
1139 2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
1141 * c-typeck.c (build_c_cast): Always warn when casting
1142 from a pointer to an integer of different size, even if
1143 the node was constant.
1145 2006-01-05 Richard Guenther <rguenther@suse.de>
1147 PR tree-optimization/22555
1148 * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
1149 if one structure field is an array.
1150 * tree-ssa-operands.c (get_expr_operands): Continue scanning
1151 operands even if we found a subvar, but ignore VOPs in this
1153 * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
1155 * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
1157 2006-01-05 Richard Earnshaw <rearnsha@arm.com>
1160 * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
1162 2006-01-05 Richard Guenther <rguenther@suse.de>
1163 Diego Novillo <dnovillo@redhat.com>
1165 * tree-pass.h (TODO_remove_unused_locals): Define.
1166 * gimple-low.c (expand_var_p, remove_useless_vars,
1167 pass_remove_useless_vars): Remove. Update all users.
1168 * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
1169 (remove_unused_locals): New function.
1170 * tree-flow.h (remove_unused_locals): Declare.
1171 * passes.c (execute_todo): Call remove_unused_locals if
1172 TODO_remove_unused_locals is set.
1173 * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
1174 * tree-ssa-dce.c (pass_dce): Likewise.
1175 * tree-outof-ssa.c (pass_del_ssa): Likewise.
1177 2006-01-05 Richard Guenther <rguenther@suse.de>
1179 * tree-flow.h (struct fieldoff): Decompose field to
1180 type, size and decl.
1181 * tree-ssa-alias.c (create_sft): Take type as parameter.
1182 (create_overlap_variables_for): Store type, size and decl
1183 in the fieldoff structure.
1184 * tree-ssa-structalias.c (fieldoff_compare): Adjust users
1186 (push_fields_onto_fieldstack): Likewise.
1187 (create_variable_info_for): Likewise. Use offset for the
1188 SFT name if the decl is not available.
1190 2006-01-04 Paul Brook <paul@codesourcery.com>
1192 * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
1194 2006-01-04 Daniel Berlin <dberlin@dberlin.org>
1196 * lambda-code.c (can_put_in_inner_loop): Relax
1198 (can_put_after_inner_loop): New function.
1199 (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
1200 (perfect_nestify): Change to make copies and modify uses.
1202 2006-01-04 Richard Henderson <rth@redhat.com>
1204 Merge from gomp branch:
1205 * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
1206 via integer constant.
1207 (pragma_lex): Remove.
1208 * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
1209 rather than parsing it.
1210 * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
1211 handle_pragma_extern_prefix): Add %< %> quotes.
1212 (registered_pragmas): New.
1213 (c_register_pragma_1): New.
1214 (c_register_pragma): Use it.
1215 (c_register_pragma_with_expansion): Likewise.
1216 (c_invoke_pragma_handler): New.
1217 (init_pragma): Use cpp_register_deferred_pragma directly for
1219 * c-pragma.h (enum pragma_kind): New.
1220 (pragma_handler): New.
1221 (c_invoke_pragma_handler): Declare.
1222 * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
1224 * c-common.h (c_common_pch_pragma): Update decl.
1225 * Makefile.in (c-parser.o): Update dependencies.
1226 (GTFILES): Add c-pragma.h.
1227 * c-parser.c (struct c_token): Add pragma_kind.
1228 (struct c_parser): Add in_pragma.
1229 (c_lex_one_token): Always initialize keyword and pragma_kind.
1230 Extract data for CPP_PRAGMA.
1231 (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
1232 (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
1233 Don't allow CPP_PRAGMA_EOL if in_pragma.
1234 (c_parser_consume_pragma): New.
1235 (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
1236 (c_parser_skip_to_end_of_parameter): Likewise.
1237 (c_parser_skip_to_end_of_block_or_statement): Likewise.
1238 (c_parser_skip_to_pragma_eol): New.
1239 (c_parser_external_declaration): Handle CPP_PRAGMA.
1240 (c_parser_compound_statement_nostart): Likewise.
1241 (c_parser_statement_after_labels): Likewise.
1242 (c_parser_pragma): New.
1243 (pragma_lex): Likewise.
1244 (c_parser_pragma_pch_preprocess): New.
1245 (c_parser_new): Merge into ...
1246 (c_parse_file): ... here. Call c_parser_pragma_pch_preprocess.
1248 2006-01-04 Jeff Law <law@redhat.com>
1251 * tree-cfg.c (bsi_replace): Remove the original statement
1252 from the EH throw statement table.
1254 2006-01-04 Jakub Jelinek <jakub@redhat.com>
1256 * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
1257 make the prototype extern "C" and add throw ().
1260 * config/i386/i386.md (testqi_ext_3): Ensure len is positive
1261 and pos non-negative and pos + len <= 32.
1262 (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
1263 drop pos + len < HOST_BITS_PER_WIDE_INT test.
1264 (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
1267 * c-common.c (handle_vector_size_attribute): Reject zero vector size
1268 as well as sizes not multiple of component size.
1271 * function.c (instantiate_expr): New function.
1272 (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
1273 walk its DECL_VALUE_EXPR with instantiate_expr.
1275 * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
1276 DW_OP_deref{,_size} if address isn't going to be added.
1278 2006-01-04 Ben Elliston <bje@au.ibm.com>
1280 * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
1281 * config/fp-bit.c: Likewise.
1283 2006-01-03 Daniel Berlin <dberlin@dberlin.org>
1285 * dominance.c: Add comment about why we use DFS numbering
1288 2006-01-03 Jakub Jelinek <jakub@redhat.com>
1289 Richard Henderson <rth@redhat.com>
1291 Merge from gomp-branch:
1292 * varasm.c (assemble_variable): Handle thread-local COMMON data.
1293 * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
1295 2006-01-03 Paolo Bonzini <bonzini@gnu.org>
1297 PR rtl-optimization/25578
1298 * combine.c (combine_simplify_rtx, force_to_mode): Don't
1299 pass a parameter to simplify_shift_const if changing ASHIFTRT
1302 2006-01-03 Adrian Straetling <straetling@de.ibm.com>
1304 * builtins.c (get_builtin_sync_mem): New function.
1305 (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
1306 expand_builtin_lock_test_and_set, expand_builtin_lock_release):
1307 Call get_builtin_sync_mem to generate mem rtx.
1309 2006-01-03 Richard Guenther <rguenther@suse.de>
1312 * stmt.c (add_case_node): Make sure to clear overflow flags
1315 2006-01-03 Jakub Jelinek <jakub@redhat.com>
1317 Merge from gomp-branch.
1318 * config/sparc/sync.md: New file.
1319 * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
1320 UNSPECV_LDSTUB): New constants.
1321 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
1322 * config/sparc/predicates.md (memory_reg_operand): New predicate.
1323 * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
1326 2006-01-03 Roger Sayle <roger@eyesopen.com>
1328 * combine.c (reg_subword_p): New predicate to test whether the
1329 destination of a set refers to a subword/piece of a register.
1330 (try_combine): Generalize the code to merge the setting of a
1331 pseudo to a constant followed by a set of a subword of that
1332 register to a constant.
1334 2006-01-03 Kazu Hirata <kazu@codesourcery.com>
1336 * basic-block.h (control_flow_graph): Change the type of
1337 x_label_to_block_map to VEC(basic_block,gc) *.
1338 * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
1339 set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
1341 * tree-ssa-propagate.c (cfg_blocks): Change the type to
1342 VEC(basic_block,heap) *.
1343 (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
1344 ssa_prop_fini): Adjust the uses of cfg_blocks.
1346 2006-01-03 Steven Bosscher <stevenb.gcc@gmail.com>
1348 * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
1350 * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
1351 hashing trees instead of a pointer hash.
1352 (mem_attrs_htab_eq): Do a deep compare instead of a pointer
1353 compare for MEM_EXPR.
1355 PR rtl-optimization/25130
1356 * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
1357 when comparing MEMs for GCSE
1359 2006-01-03 Ben Elliston <bje@au.ibm.com>
1361 * targhooks.h (default_decimal_float_supported_p): Declare.
1362 * targhooks.c (default_decimal_float_supported_p): Define.
1363 * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
1364 `default_decimal_float_supported_p'.
1365 * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
1367 2006-01-02 Adam Nemet <anemet@caviumnetworks.com>
1369 * combine.c (apply_distributive_law <SUBREG>): Check
1370 TRULY_NOOP_TRUNCATION.
1372 2006-01-02 Geoffrey Keating <geoffk@apple.com>
1374 * dwarf2out.c (have_switched_text_section): Delete.
1375 (have_multiple_function_sections): New.
1376 (have_location_lists): Make 'bool'.
1377 (add_AT_loc_list): Use 'true' not '1'.
1378 (dwarf2out_switch_text_section): Set have_multiple_function_sections.
1379 (output_loc_list): Use have_multiple_function_sections.
1380 (output_ranges): Likewise.
1381 (dwarf2out_begin_function): Set have_multiple_function_sections if
1383 (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
1384 Check function_section rather than DECL_SECTION_NAME.
1385 (dwarf2out_finish): Use have_multiple_function_sections.
1386 Don't clear have_location_lists.
1388 2006-01-02 Eric Botcazou <ebotcazou@adacore.com>
1389 Jan Hubicka <jh@suse.cz>
1391 * cfglayout.c (fixup_reorder_chain): Remove kludge for the
1392 case of conditional jump jumping to the next instruction.
1393 * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
1394 cases of conditional jump jumping to the next instruction.
1396 2006-01-02 Jan Hubicka <jh@suse.cz>
1398 * i386.c (*_cost): Add COSTS_N_INSNS.
1399 (ix86_rtx_costs): Do not use COSTS_N_INSNS.
1401 2006-01-02 Paolo Bonzini <bonzini@gnu.org>
1404 * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
1406 2006-01-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1408 * config/arm/arm.c (all_fpus): Fix comment typo.
1409 * config/darwin.c: Likewise.
1410 * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
1411 * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
1412 * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
1414 2006-01-01 David Edelsohn <edelsohn@gnu.org>
1416 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
1417 (rs6000_split_compare_and_swapqhi): New.
1418 * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
1419 (sync_compare_and_swapqhi_internal): New.
1420 * config/rs6000/rs6000-protos.h: Declare.