1 2006-06-02 Roger Sayle <roger@eyesopen.com>
3 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
4 are type correct. Clean-up.
5 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
6 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
8 2006-06-01 DJ Delorie <dj@redhat.com>
10 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
11 shift, as we've disabled the "switch" insn that needs it.
13 2006-06-01 Per Bothner <bothner@bothner.com>
15 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
16 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
17 * c-ppoutput.c (cb_define): Don't increment line 0.
19 2006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
21 * doc/invoke.texi: Add cpu_type power6.
22 * config.gcc: Add cpu_type power6.
23 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
24 to power5+ with Altivec.
25 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
26 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
28 2006-05-30 Anatoly Sokolov <aesok@post.ru>
30 * config/avr/avr.h (SET_ASM_OP): Define.
32 2006-06-01 Kazu Hirata <kazu@codesourcery.com>
34 * config/bfin/bfin.c: Fix comment typos.
36 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
39 * doc/install.texi: Document --enable-bootstrap and
42 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
44 * doc/install.texi: Document that InfoZIP can replace jar.
46 2006-05-31 Roger Sayle <roger@eyesopen.com>
48 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
49 isn't available, directly generate the simpler x87 patterns without
50 the (use (const_int 0)).
51 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
52 implementation isn't available.
53 (*negdf2_1): Likewise.
54 (*negxf2_1): XF mode negation is always done using the x87.
55 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
57 2006-05-31 Roger Sayle <roger@eyesopen.com>
59 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
60 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
62 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
64 2006-05-31 Jie Zhang <jie.zhang@analog.com>
66 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
67 * config/bfin/bfin.c (basic-block.h): Include.
68 (struct machine_function): New.
69 (bfin_init_machine_status): New.
70 (override_options): Initialize init_machine_status.
71 (bfin_hardware_loop): New.
72 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
73 (DEF_VEC_P (loop_info)): New.
74 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
75 (struct loop_info): New.
76 (loop_info): New typedef.
77 (struct loop_work): New.
78 (loop_work): New typedef.
79 (DEF_VEC_O (loop_work)): New.
80 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
81 (bfin_dump_loops): New.
82 (bfin_bb_in_loop): New.
83 (bfin_scan_loop): New.
84 (bfin_optimize_loop): New.
85 (bfin_reorg_loops): New.
86 (bfin_reorg): Use bfin_reorg_loops.
87 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
89 (I_REGNO_P): Simplify.
90 (DP_REGNO_P, DPREG_P): New macros.
91 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
92 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
93 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
94 Add LT_REGS, LC_REGS, LB_REGS.
95 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
97 (REGNO_REG_CLASS): Deal with loop registers.
98 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
100 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
101 New constants for loop registers.
102 (UNSPEC_LSETUP_END): New.
103 (seq_insns): New define_attr. Set it for appropriate insns.
104 (movsi_insn): Add alternatives for move from/to
105 loop count registers.
106 (doloop_end): New define_expand.
107 (loop_end): New define_insn.
108 (define_split for bad doloop_end): New.
109 (lsetup_with_autoinit): New define_insn.
110 (lsetup_without_autoinit): New define_insn.
111 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
112 * config/bfin/predicates.md (lc_register_operand): New.
113 (lt_register_operand): New.
114 (lb_register_operand): New.
115 (nondp_register_operand): New.
116 (nondp_reg_or_memory_operand): New.
117 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
119 2006-05-31 Jie Zhang <jie.zhang@analog.com>
121 * config/bfin/bfin.c (bfin_delegitimize_address): New.
122 (TARGET_DELEGITIMIZE_ADDRESS): Define.
124 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
126 * Makefile.in (CATALOGS): Add po/ prefix.
127 * configure: Regenerated.
129 2006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
132 * arm.c (arm_print_operand case 'S'): Validate that the operand is
133 a shift operand before calling shift_op. Avoid redundant call of
136 2006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
137 DJ Delorie <dj@redhat.com>
139 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
140 we're inserting is a singlt-bit constant.
142 2006-05-30 Roger Sayle <roger@eyesopen.com>
144 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
145 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
147 2006-05-30 Roger Sayle <roger@eyesopen.com>
149 PR tree-optimization/23452
150 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
151 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
152 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
153 complex values and with -ffast-math for FP complex values.
155 2006-05-30 Kazu Hirata <kazu@codesourcery.com>
157 * c-common.h: Remove the prototype for yyparse.
158 * rtl.h: Remove the prototype for init_loop.
160 2006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
162 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
165 2006-05-30 Roger Sayle <roger@eyesopen.com>
167 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
169 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
170 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
172 2006-05-30 Dirk Mueller <dmueller@suse.de>
175 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
176 for CONSTANT_CLASS_P expresisons.
178 2006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
181 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
183 2006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
185 PR tree-optimization/27779
186 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
187 initial_condition instead of CHREC_LEFT.
189 2006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
191 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
192 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
193 Make prototypes ISO C90.
195 2006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
196 Leehod Baruch <leehod.baruch@weizmann.ac.il>
198 * see.c (see_analyze_one_def): Correct check.
199 (see_get_extension_data): Check if extension is parallel.
200 (see_get_extension_reg): Likewise.
202 2006-05-30 Uros Bizjak <uros@kss-loka.si>
205 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
206 into register for (code == GTU).
208 2006-05-29 Roger Sayle <roger@eyesopen.com>
210 PR tree-optimization/24964
211 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
212 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
213 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
214 abs(x)*abs(x) as x*x for scalar floating point modes.
216 2006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
219 * lambda-code.c (perfect_nestify): Don't copy statements
220 in the inner loop: move them to the inner loop header.
222 2006-05-29 Diego Novillo <dnovillo@redhat.com>
225 * c-tree.texi: Document OpenMP directives and clauses.
227 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
229 * varasm.c (globalize_decl): Fix indentation.
231 2006-05-29 Diego Novillo <dnovillo@redhat.com>
234 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
235 pass_fre, pass_store_ccp, pass_copy_prop,
236 pass_store_copy_prop, pass_merge_phi, pass_nrv,
237 pass_return_slot, pass_object_size, pass_lim,
238 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
239 pass_loop_prefetch and pass_stdarg.
241 2005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
243 * config/bfin/bfin.opt (mfdpic): New option.
244 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
245 (EXTRA_MULTILIB_PARTS): Likewise.
246 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
247 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
249 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
250 (CRT_CALL_STATIC_FUNCTION): New.
251 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
253 (CRT_CALL_STATIC_FUNCTION): New.
254 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
256 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
257 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
258 (initialize_trampoline): Changed to handle FD-PIC code generation.
259 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
260 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
261 (override_options): Disallow -mid-shared-library -mfdpic combination.
262 Can't do unaligned ops if FD-PIC.
263 Turn off flag_pic if trying to generate non-id-shared-library
264 non-fdpic code, since it's not supported.
265 (bfin_assemble_integer): New function.
266 (TARGET_ASM_INTEGER): Define.
267 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
269 * config/bfin/crtn.s: Restore them.
270 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
272 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
273 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
274 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
275 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
276 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
278 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
279 FDPIC_REGS and FDPIC_FPTR_REGS.
280 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
281 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
282 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
283 (load_funcdescsi): New pattern.
284 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
285 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
286 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
288 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
290 * gcse.c, rtlanal.c: Remove obsolete comments associated with
293 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
295 * tree-flow.h: Remove the prototype for add_type_alias.
296 * tree-ssa-alias.c (add_type_alias): Remove.
298 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
300 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
301 config/fr30/fr30.md, config/i386/i386-interix.h,
302 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
303 config/sh/superh64.h, config/v850/v850.c, df-core.c,
304 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
305 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
306 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
307 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
308 Follow spelling conventions.
309 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
310 Follow spelling conventions.
312 2006-05-27 Richard Guenther <rguenther@suse.de>
315 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
316 to produce a constant of value 1 of generic type.
318 2006-05-27 Dirk Mueller <dmueller@suse.de>
320 * cgraphunit.c (decide_is_function_needed): Fix wrong
323 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
325 PR rtl-optimization/27661
326 * reload.c (find_reloads): When reloading a VOIDmode constant
327 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
328 use Pmode as mode of the reload register.
330 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
332 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
333 is enabled at -O and above.
335 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
338 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
341 2006-05-25 Mark Mitchell <mark@codesourcery.com>
344 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
345 for anonymous variables explicitly declared by front ends.
347 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
349 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
350 (struct alias_info): Add new field ref_all_symbol_mem_tag.
351 * tree-ssa-alias.c (compute_may_aliases): If the program contains
352 ref-all pointers, run a finalization pass for them.
353 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
354 (finalize_ref_all_pointers): New function.
355 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
356 regular pointer type to a ref-all pointer type.
357 (get_tmt_for): Return the special memory tag for ref-all pointers.
359 2006-05-25 Richard Guenther <rguenther@suse.de>
362 * fold-const.c (fold_binary): Do not look at the stripped
363 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
365 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
367 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
368 for LT and GT if the computed range is effectively empty.
370 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
373 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
374 mips_quad_format formats instead of ieee_single_format,
375 ieee_double_format and ieee_quad_format formats, respectively.
377 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
379 PR tree-optimization/27639
380 PR tree-optimization/26719
381 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
382 call to scev_probably_wraps_p.
383 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
384 used_in_pointer_arithmetic_p, convert_step): Removed.
385 (nowrap_type_p): New function.
386 (scev_probably_wraps_p): Rewritten.
387 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
388 chrec_convert if chrec_convert_aggressive might have been used.
389 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
390 scev_direction): New functions.
391 (chrec_convert): Changed to a wrapper over chrec_convert_1.
392 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
393 instead of convert_step.
394 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
395 (convert_step): Declaration removed.
396 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
398 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
400 * df-core.c: Added to header comments.
401 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
402 df_ur_bb_info, df_urec_bb_info): Added comments.
403 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
404 urec, ri problems): Fixed header comments.
405 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
406 code from df_rd_transfer_function.
408 2006-05-23 Richard Sandiford <richard@codesourcery.com>
410 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
411 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
412 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
414 2006-05-23 Joseph Myers <joseph@codesourcery.com>
416 * expr.c (undefined_operand_subword_p): New.
417 (emit_move_multi_word): Do not generate move from undefined bits
418 of a paradoxical subreg.
420 2006-05-23 Richard Sandiford <richard@codesourcery.com>
422 PR rtl-optimization/27736
423 * combine.c (replaced_rhs_value): New variable.
424 (combine_instructions): Set it.
425 (distribute_notes): When distributing a note in replaced_rhs_insn,
426 check whether the value was used in replaced_rhs_value.
428 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
431 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
432 add_referenced_var instead of add_referenced_tmp_var.
433 * tree-complex.c (create_one_component_var): Use add_referenced_var.
434 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
436 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
437 tree_optimize_tail_calls_1): Use add_referenced_var.
438 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
439 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
440 Use add_referenced_var.
441 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
442 * gimplify.c (force_gimple_operand): Use add_referenced_var.
443 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
444 Use add_referenced_var.
445 * tree-dfa.c (struct walk_state): Remove.
446 (find_referenced_vars): Remove walk state and vars_found hash table.
447 (make_rename_temp): Use add_referenced_var.
448 (find_vars_r): Pass less parameters to add_referenced_var.
449 (referenced_var_p): New. Is var in referenced_var hash table.
450 (referenced_var_insert): Assert var isn't already in hash table.
451 (add_referenced_var): Don't need walk_state parameter. Add var if it
452 isn't already in the hash table.
453 (add_referenced_tmp_var): Remove.
454 (find_new_referenced_vars_1): Use add_referenced_var.
455 * tree-ssa-pre.c (create_expression_by_pieces,
456 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
457 Use add_referenced_var.
458 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
459 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
460 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
462 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
463 vect_create_data_ref_ptr, vect_create_destination_var,
464 vect_init_vector, vect_build_loop_niters,
465 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
466 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
467 Use add_referenced_var.
468 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
469 * tree-flow.h (add_referenced_tmp_var): Remove prototype
470 (add_referenced_var): Add prototype.
471 * tree-ssa-structalias.c (get_constraint_for,
472 intra_create_variable_infos): Use add_referenced_var.
474 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
476 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
477 big-endian paradoxical subregs.
478 * var-tracking.c (struct micro_operation_def): Document that,
479 for modify micro operations, insn is the subsequent instruction.
480 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
481 (var_reg_set, var_mem_set): ... new functions.
482 (add_stores): Record subsequent insn.
483 (compute_bb_dataflow): Use new functions for MO_USE.
484 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
485 notes after the insn, and modify notes before the insn known
486 to be the subsequent one.
487 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
489 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
492 * config/i386/i386.c (ix86_expand_builtin): Use
493 gen_sse3_monitor64 for TARGET_64BIT.
495 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
497 PR rtl-optimization/26375
498 PR rtl-optimization/26855
499 * df-problems (df_ru_bb_local_compute_process_def): Removed update
501 (df_ru_bb_local_compute): Reversed statements and removed bogus
502 comment explaining why they should be in wrong order.
503 (df_ru_dump, df_rd_dump): Enhanced debug info.
504 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
506 * ddg.c (add_deps_for_def): Converted use of reaching defs to
507 reaching uses and fixed space problem.
509 2006-05-23 Jan Hubicka <jh@suse.cz>
511 * cgraphunit.c (decide_is_function_needed): Also nested functions
512 and functions declared inline can be optimized out at -O0.
514 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
516 * doc/install.texi (Configuration): Remove reference to CrossGCC
517 FAQ which was hijacked.
520 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
523 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
524 ix86_compare_emitted is non-NULL.
526 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
529 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
532 2006-05-22 Richard Sandiford <richard@codesourcery.com>
534 PR rtl-optimization/25514
535 * combine.c (replaced_rhs_insn): New variable.
536 (combine_instructions): Set replaced_rhs_insn when trying to replace
537 a SET_SRC with a REG_EQUAL note.
538 (distribute_notes): Use replaced_rhs_insn when determining the live
539 range of a REG_DEAD register.
541 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
542 Anatoly Sokolov <aesok@post.ru>
544 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
545 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
546 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
547 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
548 atmega3290, atmega649, atmega6490, atmega406, atmega640,
549 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
550 at90usb647, at90usb1286 and at90usb1287 devices.
551 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
552 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
554 2006-05-22 Richard Sandiford <richard@codesourcery.com>
556 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
558 2006-05-22 Richard Guenther <rguenther@suse.de>
561 2006-01-31 Richard Guenther <rguenther@suse.de>
562 Paolo Bonzini <bonzini@gnu.org>
564 * doc/install.texi (--disable-libgcc-math): Document.
566 2006-05-22 Richard Guenther <rguenther@suse.de>
569 2006-01-31 Richard Guenther <rguenther@suse.de>
571 * doc/invoke.texi (-msselibm): Document.
572 * target.h (expand_library_builtin): New target hook.
573 * builtins.c (expand_builtin): Use expand_library_builtin.
574 (default_expand_library_builtin): New function.
575 * gcc.c (LINK_GCC_MATH_SPEC): Define.
576 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
577 (link_gcc_math_spec): Declare.
578 (static_specs): Add link_gcc_math_spec.
579 * expr.h (default_expand_library_builtin): Declare.
580 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
581 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
582 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
583 * config/i386/i386.opt (msselibm): New target option.
584 * config/i386/i386.c (ix86_builtin_function_variants): New array.
585 (ix86_init_sse_abi_builtins): New function.
586 (ix86_expand_library_builtin): Likewise.
587 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
588 (override_options): Handle error conditions wrt -msselibm.
589 (ix86_builtins): Add function codes for SSE2 ABI builtins.
590 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
591 * doc/extend.texi (__builtin_sse2_*): Document new target specific
594 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
597 * c-common.c (self_promoting_args_p): Skip erroneous args.
600 * c-decl.c (finish_struct): Skip erroneous fields.
602 2006-05-22 Nick Clifton <nickc@redhat.com>
604 * config/cris/cris.opt (march): Remove VarExists attribute.
605 (max-stackframe=): Likewise.
607 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
609 * doc/rtl.texi: Fix a typo.
610 * see.c: Fix comment typos.
612 * tree-ssa-structalias.h (alias_info): Remove num_references.
614 2006-05-21 Mike Stump <mrs@apple.com>
616 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
618 (darwin_pragma_options): Use BAD instead.
619 (darwin_pragma_unused): Likewise.
620 (darwin_pragma_ms_struct): Likewise.
622 2006-05-21 David Edelsohn <edelsohn@gnu.org>
624 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
626 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
628 PR rtl-optimization/27671
629 * simplify-rtx.c (simplify_relational_operation_1): Fix
630 simplifications of (eq/ne (xor x y) y) and
633 PR tree-optimization/26622.
634 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
637 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
639 * tree-cfg.c: Prune whitespace.
640 (debug_tree_cfg): Point to correct header containing the
643 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
646 * cgraphunit.c (verify_cgraph_node): Typo in error message.
648 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
651 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
652 or sorry count is non zero.
654 2006-05-20 Andreas Schwab <schwab@suse.de>
656 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
658 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
659 Kenneth Zadeck <zadeck@naturalbridge.com>
661 PR rtl-optimization/26855
663 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
665 (df_scan_alloc): Added code to properly handle multiword hard
666 registers and add all_blocks parameter.
667 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
668 code to properly handle multiword hard registers.
669 (df_rescan_blocks): Added code to remove deleted blocks from
671 (df_ref_create_structure, df_ref_record): Added code to properly
673 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
674 and set DF_REF_PARTIAL.
675 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
676 (df_uses_record): Added DF_REF_PARTIAL for subreg.
677 (df_scan_add_problem): Added flags parameter.
678 (df_ref_create_structure): Changed switching structure.
679 (df_bb_refs_record): Fixed case where duplicate artificial refs
680 were created. Changed location of flags.
681 (df_record_entry_block_defs): Added code to make stack pointer
682 live in entry block. Refined cases where frame pointer is needed.
683 Changed location of flags.
684 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
685 (df_set_state): Removed function.
686 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
687 df_insn_create_insn_record, df_insn_refs_delete,
688 df_ref_create_structure): Formatting changes.
689 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
690 df_delete_basic_block): New function.
691 (df_init): Changed location of flags.
692 (df_add_problem): Added flags parameter and the way flags are
694 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
695 debug_df_chain): Improved debugging output.
696 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
697 (df_refs_chain_dump): Removed df parameter.
698 (df_iterative_dataflow): Added consistency check.
699 (df_prune_to_subcfg): Made public.
700 (df_analyze_problem): Added blocks_to_init parameter and made
702 (df_ref_record, df_bb_refs_record, df_mark_reg,
703 df_record_exit_block_uses): Whitespace changes.
704 (df_dump): Whitespace changes.
705 * df.h: Some reordering to remove forward references.
706 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
707 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
708 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
709 (dataflow.flags): New field.
710 (df.flag): Deleted field.
711 (df_alloc_function): Added additional bitmap parameter.
712 (df_dependent_problem_function): New type.
713 (df_problem.changeable_flags): New field.
714 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
715 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
716 (df_mw_hardreg): New struct.
717 (DF_INSN_UID_MWS): New macro.
718 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
720 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
721 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
722 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
723 (df_set_state): Removed function.
724 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
725 * df-problems.c (df_chain_dump): Removed df parameter.
726 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
727 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
729 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
730 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
731 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
732 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
733 DF_REF_MUST_CLOBBER cases.
734 (df_ru_bb_local_compute_process_def,
735 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
736 df_lr_bb_local_compute, df_ur_bb_local_compute,
737 df_chain_create_bb): Made subreg aware.
738 (df_ru_bb_local_compute, df_rd_bb_local_compute,
739 df_lr_bb_local_compute, df_lr_bb_local_compute,
740 df_chain_create_bb): Cleanup to use proper macros.
741 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
742 code to fixup bitvectors.
743 (df_ri_alloc): Cleared lifetime.
744 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
745 df_create_unused_note): New function.
746 (df_ri_bb_compute, df_ri_compute): Added code to create/update
747 REG_DEAD and REG_UNUSED notes as well as register information.
748 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
749 df_chains_dump): Fixed crash if problem was never run.
750 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
751 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
752 df_ri_add_problem): Processes flags in uniform manner.
753 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
754 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
755 df_rd_dump, df_urec_free_bb_info): Formatting changes.
756 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
757 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
758 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
759 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
760 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
761 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
762 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
763 * see.c (see_initialize_data): Ditto.
764 * final.c (rest_of_clean_state) Added regstack_completed.
765 * rtl.h (regstack_completed): Ditto.
766 * reg-stack.c (regstack_completed): Ditto.
768 2006-05-19 Mike Stump <mrs@apple.com>
770 * c-tree.h (default_conversion): Remove.
771 * c-common.h (default_conversion): Add.
773 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
775 * tree-vrp.c (valid_value_p): New function.
776 (adjust_range_with_scev): Fail if the value of bound is not
779 2006-05-19 Richard Sandiford <richard@codesourcery.com>
781 * config/mips/linux-unwind.h: Include <asm/unistd.h>
782 (mips_fallback_frame_state): Use syscall numbers to determine
783 the appropriate li instruction for the current ABI. Only use
784 __NR_sigreturn for o32.
786 2006-05-19 Nicolas Setton <setton@adacore.com>
788 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
789 * langhooks.c (lhd_dwarf_name): New function.
790 * langhooks-def.h (lhd_dwarf_name): Declare.
791 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
792 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
793 * ada/misc.c (gnat_dwarf_name): New function.
794 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
796 2006-05-19 Richard Sandiford <richard@codesourcery.com>
798 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
800 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
801 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
802 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
803 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
804 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
805 determine the size of Wtype, etc.
806 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
807 (swfloatfuncs): New variable.
808 (dwfloatfuncs): Likewise.
809 (lib2funcs): Remove floating-point conversion functions from
810 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
811 the set of conversion routines needed. Allow entries to specify
812 an object name, filename and word size. Update users accordingly.
813 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
814 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
818 2006-02-08 Roger Sayle <roger@eyesopen.com>
821 * config/fixtfdi.c: New libgcc source file.
822 * config/fixunstfdi.c: New source file.
823 * config/floatditf.c: New source file.
824 * config/floatunditf.c: New souce file.
825 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
826 files above instead of config/mips/_tilib.c.
827 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
829 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
831 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
832 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
834 2006-05-18 Mike Stump <mrs@apple.com>
836 Fix up vla, vm and [*] sematics.
842 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
843 (c_vla_unspec_p): Add.
845 * c-decl.c (struct c_scope): Add had_vla_unspec.
846 (build_array_declarator): Add support for [*].
847 (grokdeclarator): Likewise.
848 (grokparms): Likewise.
849 (get_parm_info): Likewise.
850 * c-objc-common.c (c_vla_unspec_p): Likewise.
851 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
852 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
853 typeof when argument is a variably modified type not inside sizeof or alignof.
854 (c_parser_direct_declarator_inner): Propagate errors.
855 (c_parser_sizeof_expression): Add support for [*].
856 (c_parser_parms_declarator): Initialize had_vla_unspec.
857 (c_parser_parms_list_declarator): Likewise.
858 * c-typeck.c (c_vla_type_p): Add.
859 (composite_type): Add support for vla compositing.
860 (comptypes_internal): Add support for vla compatibility.
861 (c_expr_sizeof_expr): Evaluate vla arguments.
862 * tree.c (variably_modified_type_p): Update comment for [*].
864 2006-05-18 Michael Matz <matz@suse.de>
867 * config.host: Make assignments to host_xmake_file cumulative.
868 * config.host (*-darwin*): Test $host, not $target.
870 2006-05-12 Stuart Hastings <stuart@apple.com>
872 * config/i386/i386.opt (-mstackrealign): New flag.
873 * config/i386/i386.c (force_align_arg_pointer): New attribute.
874 (ix86_handle_cconv_attribute): Emit error when
875 force_align_arg_pointer attribute collides with too many regparms.
876 (ix86_function_regparm): Limit regparms when used with
877 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
878 Support stack-realigning prologue in non-main functions. Emit
879 warning for nested functions under -mstackrealign, emit error for
880 nested functions with force_align_arg_pointer attribute.
881 * doc/extend.texi (force_align_arg_pointer): Document it.
882 * doc/invoke.texi (-mstackrealign): Document it.
884 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
886 PR rtl-optimization/27477
887 * combine.c (try_combine): Don't split a parallel consisting
888 of two sets into two individual sets if both sets reference
891 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
893 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
894 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
896 * doc/options.texi (VarExists): Updated.
898 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
900 * unwind-dw2.c: Add declarations for uw_update_context and
902 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
903 detected, advance frame state and context once to skip over stub.
905 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
909 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
910 Call rewrite_into_loop_closed_ssa only when something changed.
911 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
912 * lambda-code.c (can_convert_to_perfect_nest): Declared.
913 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
914 Test for perfect_nest_p here. Fix formating.
915 (replace_uses_equiv_to_x_with_y): Fix formating.
916 (stmt_uses_op): Removed.
917 (can_convert_to_perfect_nest): Removed loopivs parameter.
918 Complete the test by checking the scalar dependences.
919 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
922 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
925 From Dan Kegel <dank@kegel.com>:
926 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
928 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
930 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
931 if the element type is variably modified without recursing.
933 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
936 * tree-loop-linear.c (try_interchange_loops): Test for
939 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
941 PR tree-optimization/27548
942 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
943 range of ssa names that appear on abnormal edges.
944 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
945 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
947 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
950 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
952 2006-05-17 Jakub Jelinek <jakub@redhat.com>
955 * tree.h (OMP_PARALLEL_COMBINED): Define.
956 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
957 (new_omp_context): Add is_combined_parallel argument.
958 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
959 new_omp_context caller.
960 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
961 Adjust gimplify_scan_omp_clauses callers.
962 (omp_is_private): Issue errors if iteration variable is firstprivate
963 or reduction in the current context.
964 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
965 on combined parallel workshare constructs.
967 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
969 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
970 (gcc-options.o): New rule.
972 * optc-gen.awk: Protect variables for gcc-options.o with
973 #ifdef GCC_DRIVER/#endif.
975 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
977 Fix PR tree-optimization/27373
978 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
979 (forward_propagate_addr_expr): Update call.
981 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
983 * doc/options.texi: Move the Negative option.
985 2006-05-16 Richard Guenther <rguenther@suse.de>
987 PR tree-optimization/22303
988 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
990 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
991 ccp_fold did not simplify the statement.
993 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
996 * Makefile.in (GCC_OBJS): New.
997 (OBJS-common): Add opts-common.o.
998 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
999 (cpp$(exeext)): Likewise.
1000 (gcc.o): Also depend on opts.h.
1001 (opts-common.o): New.
1003 * common.opt (gcoff): Add Negative(gdwarf-2).
1004 (gdwarf-2): Add Negative(gstabs).
1005 (gstabs): Add Negative(gstabs+).
1006 (gstabs+): Add Negative(gvms).
1007 (gvms): Add Negative(gxcoff).
1008 (gxcoff): Add Negative(gxcoff+).
1009 (gxcoff+): Add Negative(gcoff).
1010 * config/i386/i386.opt (m32): Add Negative(m64).
1011 (m64): Add Negative(m32).
1013 * doc/options.texi: Document the Negative option.
1015 * gcc.c: Include "opts.h".
1016 (main): Call prune_options after expandargv.
1018 * optc-gen.awk: Generate common declarations for all flag
1019 variables in options.c. Output the neg_index field.
1021 * opts.c (find_opt): Moved to ...
1022 * opts-common.c: Here. New file.
1024 * opts.h (cl_option): Add a neg_index field.
1026 (prune_options): Likewise.
1028 2006-05-16 Jakub Jelinek <jakub@redhat.com>
1031 * omp-low.c (expand_omp_parallel): Don't assert
1032 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
1033 instead search for it.
1036 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
1039 2006-05-16 Andreas Schwab <schwab@suse.de>
1041 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
1044 2006-05-15 Roger Sayle <roger@eyesopen.com>
1047 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
1048 integer constants other than zero are only legitimate on TARGET_64BIT.
1049 <CONST_VECTOR> Only zero vectors are legitimate.
1050 (ix86_cannot_force_const_mem): Integral and vector constants can
1051 always be put in the constant pool.
1053 2006-05-16 DJ Delorie <dj@redhat.com>
1055 * crtstuff.c (__dso_handle): Set section from
1056 TARGET_LBIGCC_SDATA_SECTION if defined.
1057 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
1058 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
1060 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
1063 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
1066 2006-05-16 Ben Elliston <bje@au.ibm.com>
1068 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
1070 2006-05-15 Per Bothner <per@bothner.com>
1072 * tree.c: (last_annotated_node): Use source_locus typedef.
1073 This permits bootstrapping with --enable-mapped-location.
1075 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
1077 PR tree-optimization/26830
1078 * tree-into-ssa.c (struct ssa_name_info): Add age field.
1079 (info_for_ssa_name, current_info_for_ssa_name_age,
1080 blocks_to_update): New variables.
1081 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
1082 (clear_ssa_name_info, initialize_flags_in_bb,
1083 mark_block_for_update): New functions.
1084 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
1085 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
1086 prepare_def_site_for): Use mark_block_for_update.
1087 (mark_def_interesting): Assert that the processed block is marked in
1088 blocks_to_update. Do not take blocks argument.
1089 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
1091 (rewrite_update_init_block, rewrite_update_stmt): Only process
1092 blocks with statements to rewrite.
1093 (delete_update_ssa): Do not clear SSA_NAME_AUX.
1094 (update_ssa): Initialize and free blocks_to_update. Do not
1095 clear flags on statements. Do not use blocks bitmap.
1096 * tree.h (SSA_NAME_AUX): Removed.
1097 (struct tree_ssa_name): Removed aux field.
1098 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
1100 2006-05-15 Richard Guenther <rguenther@suse.de>
1102 PR tree-optimization/27603
1103 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1104 Do computations in original type.
1106 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
1108 * see.c: Code style changes such as redundant paranthesis,
1109 redundant intialization of local variables etc.
1110 (see_main): Declared now as static.
1111 * doc/invoke.texi: Update that -fsee is not enabled by
1114 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1116 * omp-low.c (check_omp_nesting_restrictions): New function.
1117 (scan_omp_1): Call it.
1120 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
1121 construct, return *VAR.
1123 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
1125 PR rtl-optimization/27406
1126 * bt-load.c (migrate_btr_def): Skip the block having abnormal
1129 2006-05-14 Roger Sayle <roger@eyesopen.com>
1131 PR rtl-optimization/27538
1132 * combine.c (expand_compound_operation): Call gen_lowpart
1133 before calling simplify_shift_const.
1135 2006-05-14 Roger Sayle <roger@eyesopen.com>
1137 PR rtl-optimization/22563
1138 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
1139 a fixed width bitfield, always force the intermediates into psuedos.
1141 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
1144 * mkconfig.sh: Use operator = instead of == for test.
1146 2006-05-13 Nick Clifton <nickc@redhat.com>
1148 * dwarf2out.c (dbx_reg_number): Check return value from
1149 LEAF_REG_REMAP and only use it if it is valid.
1150 (multiple_reg_loc_descriptor): Likewise.
1152 2006-05-13 Richard Guenther <rguenther@suse.de>
1154 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
1157 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
1159 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
1160 information attached to non-INSNs such as NOTEs.
1161 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
1163 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
1165 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
1167 * config/s390/s390.md: Adjust comment describing On constraint.
1169 2006-05-11 Jan Hubicka <jh@suse.cz>
1171 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
1172 to be output at -O0.
1174 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1177 * fold-const.c (size_binop): Move sanity check for arguments to
1178 the beginning of the function.
1181 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
1184 2006-05-11 Richard Guenther <rguenther@suse.de>
1187 * fold-const.c (fold_unary): Handle intermediate conversion
1188 to a pointer type like intermediate conversion to an integer
1189 type in folding of (T1)(T2)var to var.
1190 Match the code to the comment in the final conversion for
1191 (T1)(T2)var to (T1)var regarding to type precision. Rather
1192 than disallow T1 being of pointer type, assert that both T1
1193 and var are of pointer type or not. Make sure not to fall
1194 over the frontends lazyness wrt array to pointer decay though.
1196 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
1198 * arm.c (arm_struct_value_rtx): Delete.
1199 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
1200 (arm_init_cumulative_args): Always initialize nregs to zero.
1202 2006-05-10 Richard Guenther <rguenther@suse.de>
1204 PR tree-optimization/27532
1205 * tree-object-size.c (plus_expr_object_size): Fix typo.
1207 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
1210 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
1211 ashrdi_const, ashrdi3): Use a scratch register.
1213 2006-05-10 Richard Guenther <rguenther@suse.de>
1215 PR tree-optimization/27302
1216 * fold-const.c (operand_equal_p): For two comparisons,
1217 try comparison of one comparison code swapped if that yields
1220 2006-05-10 Ben Elliston <bje@au.ibm.com>
1222 * tree-pretty-print.c (pretty_print_string): No need to handle
1223 '\0' as a special character.
1225 * tree.h: Include "hashtab.h".
1226 (iterative_hash_expr): Use hashval_t in its prototype.
1227 * Makefile.in (TREE_H): Add $(HASHTAB_H).
1229 2006-05-09 Steve Ellcey <sje@cup.hp.com>
1232 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
1233 (hppa*64*-*-hpux11*): Ditto.
1234 (hppa[12]*-*-hpux11*): Ditto.
1236 2006-05-09 David Edelsohn <edelsohn@gnu.org>
1239 * config/rs6000/aix41.h (TARGET_64BIT): Define.
1241 2006-05-09 Michael Matz <matz@suse.de>
1243 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
1244 host_extra_gcc_objs and host_xmake_file.
1245 (<*-*-linux*>): Don't overwrite host_xmake_file.
1246 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
1247 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
1248 (host_detect_local_cpu): Declare.
1249 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
1250 * config/i386/i386.c (override_options): Handle -mtune=native
1252 * config/i386/x-i386: New file.
1253 * config/i386/driver-i386.c: New file.
1254 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
1257 2006-05-09 Dirk Mueller <dmueller@suse.de>
1258 Richard Guenther <rguenther@suse.de>
1261 * fold-const.c (fold_read_from_constant_string): Relax check
1262 for matching types to matching modes.
1264 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
1266 PR rtl-optimization/27335
1267 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
1270 2006-05-08 Chao-ying Fu <fu@mips.com>
1271 Richard Sandiford <richard@codesourcery.com>
1273 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
1274 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
1275 * config/mips/mips.md (UNSPEC_SCC): New constant.
1276 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
1277 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
1278 (mips_emit_compare): Use it.
1279 (mips_expand_vcondv2sf): New function.
1281 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
1283 Fix PR tree-optimization/27093
1284 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
1285 renaming when they become not-used_alone.
1287 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1289 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
1290 relocation and relocation stubs.
1292 2006-05-08 Eric Christopher <echristo@apple.com>
1294 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
1297 2006-05-08 Jan Hubicka <jh@suse.cz>
1300 * cgraphunit.c (decide_is_function_needed): When not optimizing even
1301 unused static functions are needed.
1303 2006-05-08 Roger Sayle <roger@eyesopen.com>
1306 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
1307 of a reg_equiv_constant if the result is a legitimate constant.
1309 2006-05-08 Uros Bizjak <uros@kss-loka.si>
1312 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
1313 standard 80387 constants, raise the cost to prevent
1314 compress_float_constant() to generate load from memory.
1316 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
1318 * config/arm/constraints.md (c): Fix a typo.
1320 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
1323 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
1326 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
1328 (_mm_mwait): Likewise.
1330 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
1332 (sse3_monitor): Make it 32bit only.
1333 (sse3_monitor64): New. 64bit monitor.
1335 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1338 * config/i386/i386.c (classify_argument): Skip fields with invalid
1341 2006-05-07 Richard Guenther <rguenther@suse.de>
1343 PR tree-optimization/27409
1344 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1345 Do not try to find zero-sized subvars.
1347 2006-05-07 Richard Guenther <rguenther@suse.de>
1349 PR tree-optimization/27136
1350 * tree-ssa-loop-niter.c (get_val_for): Correct function
1351 comment, assert requirements.
1352 (loop_niter_by_eval): Stop processing if the iterated
1353 value did not simplify.
1355 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
1357 * opts.c (flag_see): remove its setting at -O3.
1359 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
1361 * genpeep.c (main): Make insn-peep.c depend on flags.h.
1362 * arm/constraints.md: New file.
1363 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
1364 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
1365 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
1366 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
1367 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
1368 (EXTRA_MEMORY_CONSTRAINT): Likewise.
1369 * arm.md: Include constraints.md.
1370 (thumb_movsi_insn): Use satisfies_constraint_J.
1371 (movhi, movqi): Use satisfies_constraint_I.
1373 2006-04-29 Anatoly Sokolov <aesok@post.ru>
1375 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
1376 for atmeg a645 device.
1378 2006-05-06 Richard Guenther <rguenther@suse.de>
1380 PR tree-optimization/27151
1381 * tree-vect-transform.c (vectorizable_condition): Punt on
1382 values that have a different type than the condition.
1384 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
1387 * c-parser.c (c_parser_cast_expression): Only insert casts into
1388 hash table if pointer.
1389 * function.c (used_types_insert_helper): Rename from
1391 (used_types_insert): Call used_types_insert_helper.
1392 * function.h (used_types_insert): Accept only one argument.
1394 2006-05-05 David Edelsohn <edesohn@gnu.org>
1396 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
1397 scratch with output modifier.
1399 2006-05-04 David Edelsohn <edelsohn@gnu.org>
1402 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
1403 with output modifier.
1405 2006-05-04 Richard Sandiford <richard@codesourcery.com>
1408 * config/mips/mips.c (mips_symbolic_address_p): Return true
1409 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
1410 SYMBOL_GOTTPREL, and SYMBOL_TLS.
1412 2006-05-04 Richard Guenther <rguenther@suse.de>
1414 PR tree-optimization/14287
1415 PR tree-optimization/14844
1416 PR tree-optimization/19792
1417 PR tree-optimization/21608
1418 PR tree-optimization/27090
1419 * tree-ssa-pre.c (try_combine_conversion): New function.
1420 (compute_avail): After constructing the value-handle
1421 expression, use try_combine_conversion to combine NOP_EXPRs
1422 with previous value-handle expressions and use the result if it
1425 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
1427 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
1429 2006-05-04 Jan Hubicka <jh@suse.cz>
1432 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
1434 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
1436 * config/bfin/predicates.md (const01_rtx): Tell generator programs
1437 that this only matches CONST_INTs. All users changed to VOIDmode
1440 * config/bfin/bfin.c: Include "optabs.h".
1441 (bfin_rtx_costs): Some costs for vector operations, to allow combine
1443 (enum bfin_builtins): Add a number of fractional and vector builtins.
1444 (bfin_init_builtins): Likewise.
1445 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
1446 (safe_vector_operand, bfin_expand_binop_builtin,
1447 bfin_expand_unop_builtin): New functions.
1448 (bfin_expand_builtin): Handle the new builtins.
1449 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1452 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
1455 * Makefile.in (OBJS-common): Add see.o.
1456 (see.o): Add dependencies.
1457 * common.opt (fsee): New flag for the see optimization was added.
1458 * opts.c (flag_see): Initialized.
1459 * passes.c (init_optimization_passes, pass_see): New pass.
1460 * rtl.h (see_main): Declaration as extern.
1461 * timevar.def (TV_SEE): New.
1462 * tree-pass.h (pass_see): Declaration as extern.
1463 * invoke.texi (-fsee): Document.
1464 * recog.c (validate_simplify_insn): New function.
1465 * recog.h (validate_simplify_insn): Declaration as extern.
1466 * df-problems.c (df_chain_dump): Check for NULL.
1468 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
1469 Daniel Berlin <dberlin@dberlin.org>
1471 * cfgrtl.c (insert_insn_bb_end_new): New function.
1472 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
1474 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
1476 * df.h (struct web_entry): Moved from web.c.
1477 (union_defs): Declaration as extern.
1478 (unionfind_root): Likewise.
1479 (unionfind_union): Likewise.
1480 * web.c (struct web_entry): Moved to df.h.
1481 (unionfind_root): Remove static declaration.
1482 (unionfind_union): Likewise.
1483 (union_defs): Likewise and generalize to use callback function.
1484 (web_main): Update arguments for union_defs function call.
1486 2006-05-04 Richard Guenther <rguenther@suse.de>
1488 PR tree-optimization/26447
1489 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
1490 produce SSA_NAME copies before the store stmt to avoid
1491 breaking exception handling.
1493 2006-05-04 Jakub Jelinek <jakub@redhat.com>
1496 * gimplify.c (omp_is_private): If var is shared in some outer context,
1497 return false instead of true. Stop searching on parallel context
1500 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
1503 * coverage.c: Use get_gcov_unsigned_t() instead of
1504 unsigned_type_node all over.
1506 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
1508 PR tree-optimization/27381
1509 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
1510 maintain the same immediate_use links.
1511 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
1512 node rather than segfaulting.
1514 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1517 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
1518 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
1519 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
1521 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
1523 Fix PR tree-optimization/26626
1524 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
1526 * tree-ssa-operands.c (access_can_touch_variable): Allow
1527 typecasting through union pointers.
1529 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1532 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
1533 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
1534 to find if var will be a global variable even in the nested context.
1535 (omp_copy_decl): Only check for global variable at the end, it might
1536 be overridden in outer contexts.
1537 (scan_sharing_clauses): For global variables don't create a field.
1538 (lower_rec_input_clauses): Do nothing for global shared variables.
1539 Emit a barrier at the end of ILIST if there were any decls in both
1540 firstprivate and lastprivate clauses.
1541 (lower_send_clauses): Do nothing for global variables except for
1544 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
1546 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
1547 of the correct signedness is returned.
1549 2006-05-02 Jeff Law <law@redhat.com>
1551 PR tree-optimization/27364
1552 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
1553 multiply expressions.
1555 2006-05-02 Tom Tromey <tromey@redhat.com>
1557 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
1559 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
1562 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
1563 -mthumb -fPIC are used.
1565 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
1566 Joshua Kinard <kumba@gentoo.org>
1569 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
1570 with 64-bit pointers.
1572 2006-05-02 Paul Brook <paul@codesourcery.com>
1574 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
1576 (create_fix_barrier): Check that a suitable barrier location is
1578 (arm_reorg): Include ftmp->address in allowable range of addresses.
1580 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
1583 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
1586 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1589 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
1590 around RESULT_DECL for result passed by reference.
1591 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
1592 * omp-low.c (use_pointer_for_field): Don't look at
1593 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
1594 (scan_omp_1): Call remap_decl on RESULT_DECLs.
1595 (lower_rec_input_clauses): Don't allocate VLA memory for the second
1596 time or var for passing by reference for
1597 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
1598 TREE_ADDRESSABLE variables when passing by reference.
1600 * omp-low.c (dump_omp_region): Fix output formatting.
1603 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
1604 (expand_omp_parallel): Likewise.
1605 * tree-cfg.c (move_sese_region_to_fn): Likewise.
1608 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
1609 on statement list containing also constructors and destructors.
1610 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
1613 * except.c (duplicate_eh_regions): Fix clearing of
1614 cfun->eh->region_array entries.
1616 2006-05-01 DJ Delorie <dj@redhat.com>
1618 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
1620 (gcc_cv_objdump): Likewise.
1621 * configure: Regenerated.
1623 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
1626 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
1627 templates for case 3 and 4.
1629 2006-05-01 DJ Delorie <dj@redhat.com>
1631 * vec.c: Include bconfig.h when appropriate.
1632 * Makefile.in (build/vec.o): Adjust dependencies.
1633 * mkconfig.sh: Make sure config.h isn't used for build machine
1636 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1638 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
1640 (mark_phi_for_rewrite): New function.
1641 (insert_phi_nodes_for, mark_use_interesting): Call
1642 mark_phi_for_rewrite.
1643 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
1644 (update_ssa): Initialize and free phis_to_rewrite.
1646 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1648 PR rtl-optimization/27291
1649 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
1650 folded to a constant.
1652 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1654 PR tree-optimization/27283
1655 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
1656 not whole # of iteration descriptions.
1657 (niter_for_exit): Return just # of iterations. Fail if # of iterations
1658 uses abnormal ssa name.
1659 (niter_for_single_dom_exit): Ditto.
1660 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
1661 return just the number of iterations.
1663 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1665 PR tree-optimization/27144
1666 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
1667 (record_estimate): Only record constant upper bound.
1668 (infer_loop_bounds_from_undefined): Call
1669 compute_estimated_nb_iterations just once.
1670 (proved_non_wrapping_p): Renamed to ...
1671 (n_of_executions_at_most): ... this. Expect bound to be a constant.
1672 (convert_step_widening, scev_probably_wraps_p): Call
1673 n_of_executions_at_most instead of proved_non_wrapping_p.
1674 (substitute_in_loop_info): Do not replace values in bounds.
1675 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
1678 2006-05-01 Richard Henderson <rth@redhat.com>
1681 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
1682 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
1685 2006-05-01 Roger Sayle <roger@eyesopen.com>
1687 * c-typeck.c (parser_build_binary_op): Don't call the function
1688 unsigned_conversion_warning to spot operand/result type overflow.
1689 (build_binary_op): Instead, call convert_and_check instead of
1690 convert to report the problem when the operands are promoted.
1691 * c-common.c (unsigned_conversion_warning): Make static.
1692 * c-common.h (unsigned_conversion_warning): Delete prototype.
1694 2006-05-01 Richard Guenther <rguenther@suse.de>
1696 PR tree-optimization/26726
1697 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
1699 (find_interesting_uses_address): ... we work around here
1700 by folding INDIRECT_REFs in the substituted base.
1702 2006-05-01 Diego Novillo <dnovillo@redhat.com>
1704 * omp-low.c (dump_omp_region): Add newlines.
1706 2006-04-30 Roger Sayle <roger@eyesopen.com>
1708 * common.opt (Woverflow): New command line option.
1709 * c-common.c (constant_expression_warning): Check warn_overflow.
1710 (overflow_waring): Pass OPT_Woverflow to warning.
1711 (unsigned_conversion_warning): Likewise.
1712 (convert_and_check): Likewise.
1713 * doc/invoke.texi: Document new command line option.
1715 2006-04-30 David Edelsohn <edelsohn@gnu.org>
1717 * config/rs6000/rs6000.c (rs6000_override_options): Enable
1718 TARGET_NO_FP_IN_TOC for section anchors.
1719 (optimization_options): Enable section anchors for all
1720 non-"Objective" languages.
1722 2006-04-28 Eric Christopher <echristo@apple.com>
1724 * config/darwin-c.c (darwin_ms_struct): Move this
1725 (darwin_set_default_type_attributes): and this...
1726 * config/darwin.c: ... here.
1727 * config/darwin.h (darwin_ms_struct): Declare.
1729 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
1731 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
1733 2006-04-28 Roger Sayle <roger@eyesopen.com>
1736 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
1737 (push_array_bounds): Delete prototype. Change BOUNDS argument to
1738 an unsigned HOST_WIDE_INT.
1739 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
1741 (really_start_incremental_init): No need to call convert because
1742 bitsize_zero_node is already of type bitsizetype.
1743 (push_init_level): Extract the value of constructor_index as an
1744 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
1745 (process_init_element): Likewise.
1747 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
1749 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
1750 value before passing to make_relative_prefix.
1752 2006-04-28 Alan Modra <amodra@bigpond.net.au>
1755 * builtins.c (expand_builtin_memset): Expand val in original mode.
1757 2006-04-27 Eric Christopher <echristo@apple.com>
1759 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
1760 with #ifndef/#endif.
1761 * config/darwin-c.c (darwin_ms_struct): New.
1762 (darwin_pragma_ms_struct): Ditto.
1763 (darwin_set_default_type_attributes): Ditto.
1764 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
1765 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
1766 Register ms_struct pragma.
1767 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
1768 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
1769 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
1770 darwin_set_default_type_attributes if TARGET_MACHO.
1772 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
1774 PR tree-optimization/26854
1775 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
1776 * doc/tree-ssa.texi: Update immuse iterator documentation.
1777 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
1778 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
1779 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
1780 first_safe_imm_use, next_safe_imm_use): Remove.
1781 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
1782 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
1783 (move_use_after_head): New. Helper function to sort immuses in a stmt.
1784 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
1785 (first_imm_use_stmt): New. Get first stmt in an immuse list.
1786 (next_imm_use_stmt): New. Get next stmt in an immuse list.
1787 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
1788 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
1789 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
1790 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
1791 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
1792 (perfect_nestify): Use new iterator.
1793 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
1795 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
1796 (next_imm_name): New field in struct immediate_use_iterator_d.
1797 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
1798 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
1799 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
1800 * tree-cfg.c (replace_uses_by): Use new iterator.
1801 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
1802 * tree-ssa-operands.c (correct_use_link): Remove.
1803 (finalize_ssa_use_ops): No longer call correct_use_link.
1805 2006-04-27 Stuart Hastings <stuart@apple.com>
1807 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
1808 * config/t-darwin (crt3.o): Use it.
1809 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
1810 'pmode', use Pmode instead of SImode for SYMBOL_REF.
1811 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
1812 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
1813 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
1816 2006-04-27 Roger Sayle <roger@eyesopen.com>
1818 * expmed.c (store_fixed_bit_field): If we're not optimizing for
1819 size, force the intermediate into a new pseudo rather instead of
1820 performing both a bitwise AND and a bitwise IOR in memory.
1822 2006-04-27 Richard Guenther <rguenther@suse.de>
1824 PR rtl-optimization/26685
1825 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
1826 this one "max-flow-memory-locations".
1828 2006-04-27 Richard Guenther <rguenther@suse.de>
1830 PR tree-optimization/25148
1831 * tree-vrp.c (compare_values): Remove code dealing with
1832 comparisons against type min/max value. Honour overflow
1833 and negative constants in code dealing with comparisons
1834 of plus and minus expressions.
1835 (value_inside_range): Use fold_binary with LE_EXPR and
1836 GE_EXPR rather than compare_values.
1838 2006-04-27 Dirk Mueller <dmueller@suse.de>
1840 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
1843 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
1845 * basic-block.h (safe_insert_insn_on_edge): Removed.
1846 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
1848 2006-04-26 David Edelsohn <edelsohn@gnu.org>
1849 Paolo Bonzini <bonzini@gnu.org>
1852 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
1853 (simplify_and_const_int): Same.
1855 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
1857 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
1859 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1862 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
1863 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
1864 cgraph_global_info_ready.
1867 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
1870 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
1871 either decl or init is error_mark_node.
1874 * tree-flow.h (struct omp_region): Add sched_kind.
1875 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
1876 instead of extracting omp for data.
1877 (expand_omp_for): Save extracted sched_kind.
1879 2006-04-25 Roger Sayle <roger@eyesopen.com>
1881 * expmed.c (store_bit_field): Also check whether the bitsize is
1882 valid for the machine's "insv" instruction before moving the
1883 target into a pseudo for use with the insv.
1884 * config/i386/predicates.md (const8_operand): New predicate.
1885 * config/i386/i386.md (extv, extzv, insv): Use the new
1886 const8_operand predicate where appropriate.
1888 2006-04-25 DJ Delorie <dj@redhat.com>
1890 * doc/install.texi (Specific): Clarify that this is not a list of
1891 supported hosts or targets.
1893 2006-04-25 Richard Sandiford <richard@codesourcery.com>
1895 PR rtl-optimization/26725
1896 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
1897 block's BB_DIRTY flag.
1899 2006-04-25 Geoffrey Keating <geoffk@apple.com>
1901 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
1904 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
1905 to print an integer.
1907 2006-04-25 David Edelsohn <edelsohn@gnu.org>
1909 * varasm.c (align_variable): New function.
1910 (get_block_for_decl): Apply align_variable to DECL before
1911 calculating section information.
1912 (assemble_variable): Split out alignment computation.
1914 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
1916 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
1919 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
1921 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
1922 MODE_PARTIAL_INT mode.
1923 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
1924 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
1926 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
1927 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
1929 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
1931 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
1933 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
1934 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
1935 MACFLAG_IH): Likewise.
1936 (movstricthi_1): Renamed from "*movstricthi".
1937 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
1938 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
1939 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
1940 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
1941 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
1942 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
1943 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
1944 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
1945 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
1946 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
1947 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
1948 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
1949 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
1950 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
1951 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
1953 * doc/rtl.texi (ss_ashift): Improve wording.
1955 2006-04-24 Geoffrey Keating <geoffk@apple.com>
1957 * dwarf2out.c (verify_marks_clear): New.
1958 (prune_unused_types): Call verify_marks_clear initially, not
1961 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
1963 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
1964 * doc/rtl.texi: Document them.
1965 * simplify-rtx.c (simplify_unary_operation,
1966 simplify_binary_operation_1): Don't abort when we see them.
1968 2006-04-24 Mark Mitchell <mark@codesourcery.com>
1971 2006-04-23 Mark Mitchell <mark@codesourcery.com>
1972 * configure.ac: Completely disregard languages that are not
1974 * configure: Regenerated.
1976 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
1977 Richard Guenther <rguenther@suse.de>
1979 PR tree-optimization/27236
1980 * tree-inline.c (copy_body_r): Make sure to copy
1981 TREE_THIS_VOLATILE flag.
1983 2006-04-24 Richard Guenther <rguenther@suse.de>
1986 * tree-complex.c (update_parameter_components): Don't handle
1987 unused parameters which have no default def.
1989 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
1990 Richard Guenther <rguenther@suse.de>
1992 PR tree-optimization/27218
1993 * tree-inline.c (expand_call_inline): Strip useless type
1994 conversions for the return slot address.
1996 2006-04-24 Richard Guenther <rguenther@suse.de>
1998 * cfgloop.h (struct loops): Remove unused field array. Reorder
2000 (LOOP_PREFETCH): Remove.
2002 2006-04-24 Richard Guenther <rguenther@suse.de>
2004 PR tree-optimization/22525
2005 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
2006 variable, adjust types of generated expressions.
2008 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
2010 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
2011 (tree-vect-patterns.o): Likewise.
2013 (cselib.o): Likewise.
2014 (loop-doloop.o): Likewise.
2015 (regclass.o): Likewise.
2016 (reload1.o): Likewise.
2017 (explow.o): Replace target.h with $(TARGET_H).
2018 (ipa-prop.o): Likewise.
2019 (ipa-cp.o): Likewise.
2020 (ipa-inline.o): Likewise.
2021 (reorg.o): Likewise.
2022 (reg-stack.o): Likewise.
2024 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
2026 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
2028 2006-04-23 Mark Mitchell <mark@codesourcery.com>
2030 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
2032 * configure.ac: Completely disregard languages that are not
2034 * configure: Regenerated.
2037 * c-common.h (c_build_bitfield_integer_type): Declare.
2038 * c-decl.c (c_build_bitfield_integer_type): Move to ...
2039 * c-common.c (c_build_bitfield_integer_type): ... here.
2041 2006-04-23 Roger Sayle <roger@eyesopen.com>
2044 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
2045 a SImode SUBREG of a floating point register after no_new_pseudos.
2047 2006-04-23 Roger Sayle <roger@eyesopen.com>
2049 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
2050 identify potentially eliminable registers to additionally catch
2051 VIRTUAL_INCOMING_ARGS_REGNUM.
2052 (addsi3): Update the conditions on when to use addsi_small_int.
2054 2006-04-23 Roger Sayle <roger@eyesopen.com>
2057 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
2058 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
2059 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
2061 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
2063 * fold-const.c (range_predecessor): Use operand_equal_p
2064 as the predicate for equality.
2065 (range_successor): Likewise.
2067 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
2070 * config/soft-fp/op-common.h: Fix a typo.
2072 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
2075 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
2076 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
2078 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
2080 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
2082 * doc/tm.texi: Fix a typo.
2084 2006-04-21 Geoffrey Keating <geoffk@apple.com>
2086 * dwarf2out.c (struct die_struct): Document that die_sib makes
2087 a circular linked list.
2088 (FOR_EACH_CHILD): New.
2089 (reverse_die_lists): Delete.
2090 (reverse_all_dies): Delete.
2091 (add_dwarf_attr): Correct documentation.
2092 (remove_child_with_prev): New.
2093 (remove_child_TAG): Update for change to die_struct, use
2094 remove_child_with_prev.
2095 (add_child_die): Update for change to die_struct.
2096 (splice_child_die): Use remove_child_with_prev and add_child_die.
2097 (print_die): Use FOR_EACH_CHILD.
2098 (die_checksum): Likewise.
2099 (assign_symbol_names): Likewise.
2100 (output_location_lists): Likewise.
2101 (build_abbrev_table): Likewise.
2102 (calc_die_sizes): Likewise.
2103 (mark_dies): Likewise.
2104 (unmark_dies): Likewise.
2105 (unmark_all_dies): Likewise.
2106 (output_die): Likewise.
2107 (prune_unused_types_mark): Likewise.
2108 (prune_unused_types_walk): Likewise.
2109 (same_die_p): Update for change to die_struct.
2110 (break_out_includes): Likewise.
2111 (prune_unused_types_prune): Likewise.
2112 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
2113 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
2115 (dwarf2out_finish): Don't call reverse_all_dies.
2117 2006-04-21 Eric Christopher <echristo@apple.com>
2119 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
2120 in comments and function names.
2122 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2125 * c-typeck.c (digest_init): Robustify.
2127 * c-typeck.c (pop_init_level): Simplify.
2129 2006-04-21 Steve Ellcey <sje@cup.hp.com>
2131 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
2133 2006-04-21 Paul Brook <paul@codesourcery.com>
2135 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
2136 hardware floating point.
2138 2006-04-21 David Edelsohn <edelsohn@gnu.org>
2140 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
2143 2006-04-21 Nick Clifton <nickc@redhat.com>
2145 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
2148 2006-04-21 Alan Modra <amodra@bigpond.net.au>
2151 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
2152 C++ lang type in traceback table for Objective-C++.
2154 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
2156 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
2158 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
2160 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2163 * tree-mudflap.c (mudflap_finish_file): Skip function when there
2164 were errors. Remove check for erroneous objects.
2166 2006-04-20 Jeff Law <law@redhat.com>
2168 PR tree-optimization/26854
2169 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
2170 checking for zero or one use.
2171 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
2172 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
2173 * tree-ssa-reassoc.c (negate_value): Similarly.
2174 (reassociate_bb): Similarly.
2176 2006-04-20 Jakub Jelinek <jakub@redhat.com>
2178 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
2179 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
2180 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
2182 2006-04-20 Alan Modra <amodra@bigpond.net.au>
2184 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
2185 fp regs if the last fp arg doesn't fit in regs.
2187 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
2190 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
2191 that the last insn has the REG_INC note.
2193 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
2194 Nathan Sidwell <nathan@codesourcery.com>
2197 * stor-layout.c (update_alignment_for_field): Do not align
2199 (place_union_field): Place union field at the start of the union.
2200 (place_field): Move ERROR_MARK check later, and use the current
2201 allocation position to maintain monotonicity.
2203 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
2205 * dominance.c: Include timevar.h.
2206 (calculate_dominance_info): Use TV_DOMINANCE.
2207 * timevar.def (TV_DOMINANCE): New timevar.
2208 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
2210 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
2212 PR rtl-optimization/14261
2213 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
2214 move would be an INSV insn.
2215 (noce_process_if_block): Don't optimize if the destination is a
2216 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
2218 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
2220 * config/s390/s390.md: Add comments with the instructions emitted
2221 by an insn pattern if macros are used.
2223 2006-04-19 Alan Modra <amodra@bigpond.net.au>
2225 PR rtl-optimization/26026
2226 * fold-const.c (fold_binary): Optimize div and mod where the divisor
2227 is a known power of two shifted left a variable amount.
2229 2006-04-18 Geoffrey Keating <geoffk@apple.com>
2231 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
2232 to hash table twice when the debug_str section has SECTION_MERGE.
2234 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
2236 * config/soft-fp: New directory. From glibc.
2237 * config/soft-fp/t-softfp: New.
2238 * config/soft-fp/README: New.
2239 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
2240 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
2241 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
2242 (LIBGCC_DEPS): Add $(SFP_MACHINE).
2243 * config.gcc: Use rs6000/t-fprules-fpbit or
2244 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
2246 * config/rs6000/sfp-machine.h: New. Based on glibc.
2247 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
2249 * config/rs6000/t-fprules: Remove fp-bit rules.
2250 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
2251 * config/rs6000/t-linux64: Likewise. Remove duplicates from
2252 LIB2FUNCS_EXTRA. Remove fp-bit rules.
2253 (softfp_wrap_start, softfp_wrap_end): New.
2255 2006-04-18 DJ Delorie <dj@redhat.com>
2257 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
2259 2006-04-18 Devang Patel <dpatel@apple.com>
2261 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
2263 2006-04-18 Nick Clifton <nickc@redhat.com>
2265 * config/sh/t-symbian: Add rule to build sh-c.o
2266 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
2267 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
2268 (sh_symbian_encode_section_info): Likewise.
2270 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
2272 * builtins.c (expand_builtin_strcmp): Cover label definition of
2273 do_libcall with HAVE_cmpstrnsi.
2275 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
2277 * function.c (temp_slots_at_level, max_slot_level): Use VEC
2279 * function.h (temp_slot_p): New.
2280 (function): Change the type of x_used_temp_slots to
2281 VEC(temp_slot_p,gc) *.
2283 2006-04-18 Nick Clifton <nickc@redhat.com>
2285 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
2286 flag_strength_reduce.
2288 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
2290 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
2294 Partial revert of revision 112637
2295 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
2296 Dale Johannesen <dalej@apple.com>
2299 * regclass.c (struct reg_pref): Update documentation.
2300 (regclass): Set prefclass to NO_REGS if memory is the best option.
2301 (record_reg_classes): Cope with a prefclass set to NO_REGS.
2303 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
2305 PR tree-optimization/26821
2306 * tree-ssa-math-opts.c (get_constant_one): New.
2307 (insert_reciprocals): Use it.
2309 2006-04-17 Geoffrey Keating <geoffk@apple.com>
2311 * dwarf2out.c (free_AT): Delete.
2312 (remove_AT): Update string ref counts.
2313 (remove_child_TAG): Don't call free_die.
2315 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
2316 or DW_TAG_GNU_EINCL.
2317 (prune_unused_types_walk_attribs): Reset string refcounts.
2318 (prune_unused_types_update_strings): New.
2319 (prune_unused_types_prune): Don't make unnecessary stores. Don't
2320 call free_die. Do call prune_unused_types_update_strings.
2321 (prune_unused_types): Empty debug_str_hash.
2323 2006-04-17 Roger Sayle <roger@eyesopen.com>
2325 * expr.c (expand_assignment): Optimize away no-op moves where the
2326 source and destination are equal and have no side-effects.
2328 2006-04-17 Richard Guenther <rguenther@suse.de>
2331 * reload.c (push_reload): Guard calls to get_secondary_mem
2334 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
2336 * alias.c (reg_base_value, old_reg_base_value): Change the
2337 type to VEC(rtx,gc) *.
2338 (REG_BASE_VALUE, find_base_value, record_set,
2339 init_alias_analysis): Use VEC instead of VARRAY.
2341 * alias.c (alias_sets): Change the type to
2342 VEC(alias_set_entry,gc) *.
2343 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
2344 VEC instead of VARRAY.
2345 (last_alias_set): Remove.
2347 * cgraph.h (cgraph_edge_p): New.
2348 Update the prototype of cgraph_function_versioning.
2349 * cgraphunit.c (cgraph_copy_node_for_versioning,
2350 cgraph_function_versioning): Use VEC instead of VARRAY.
2351 * ipa-cp.c (ipcp_insert_stage): Likewise.
2353 2006-04-16 Roger Sayle <roger@eyesopen.com>
2356 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
2357 "A op B" or "A op C", we may need to convert A to the type of B and C.
2359 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
2361 * target.h (struct gcc_target): Add mode_rep_extended.
2362 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
2363 (init_num_sign_bit_copies_in_rep): Initialize it using
2365 (truncate_to_mode): Use it.
2366 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
2367 * targhooks.h (default_mode_rep_extended): Declare it.
2368 * targhooks.c (default_mode_rep_extended): Define it.
2369 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
2370 default_mode_rep_extended.
2371 (TARGET_INITIALIZER): Include it.
2372 * doc/tm.texi (Misc): Document it.
2373 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
2374 (mips_truncated_to_mode): New function.
2376 2006-04-16 Roger Sayle <roger@eyesopen.com>
2379 * expr.c (compress_float_constant): Copy the narrow constant into
2380 a new pseudo before extending it to its final width.
2382 2006-04-16 Roger Sayle <roger@eyesopen.com>
2383 Andrew Pinski <pinskia@gcc.gnu.org>
2384 Dale Johannesen <dalej@apple.com>
2387 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
2388 special case code to implement V8HImode and V16QImode with SSE2.
2390 2006-04-15 Roger Sayle <roger@eyesopen.com>
2392 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
2393 trees are constructed with a suitable tree type.
2395 2006-04-15 Roger Sayle <roger@eyesopen.com>
2397 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
2398 (integer_onep): Likewise.
2399 (integer_all_onesp): Likewise.
2400 (integer_pow2p): Likewise.
2401 (integer_nonzerop): Likewise.
2402 (real_zerop): Likewise.
2403 (real_onep): Likewise.
2404 (real_twop): Likewise.
2405 (real_minus_onep): Likewise.
2406 (int_size_in_bytes): Likewise.
2407 (host_integerp): Likewise.
2409 2006-04-15 Kazu Hirata <kazu@codesourcery.com>
2411 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
2412 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
2413 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
2415 * tree-ssa-structalias.h (alias_info): Remove num_references.
2417 2006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2419 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
2420 (output_bvb patterns): Likewise.
2421 * pa.c (output_bb): Use 'bb' insn for long branch case.
2422 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
2423 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
2424 1. Correct length operand for alternatives 1 and 2.
2425 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
2426 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
2428 2006-04-14 Roger Sayle <roger@eyesopen.com>
2430 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
2431 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
2432 were accidentally reverted by r112959.
2434 2006-04-15 Jakub Jelinek <jakub@redhat.com>
2437 * except.h (eh_region_outermost): New prototype.
2438 * except.c (eh_region_outermost): New function.
2439 * tree-cfg.c (find_outermost_region_in_block): Use it.
2441 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
2443 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
2445 * reload1.c (reg_equiv_memory_loc_varray): Rename to
2446 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
2447 (init_reload, reload): Use VEC instead of VARRAY.
2448 * reload.h: Update the prototype for
2449 reg_equiv_memory_loc_varray.
2451 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
2452 Eric Botcazou <ebotcazou@libertysurf.fr>
2454 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
2457 2005-04-13 Uros Bizjak <uros@kss-loka.si>
2460 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
2461 to expand fallback builtin function call.
2463 2006-04-14 Alan Modra <amodra@bigpond.net.au>
2466 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
2467 and emit libcall here in case the builtin fails.
2468 (expand_builtin_strcmp): Always emit the libcall here on failure.
2470 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
2472 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
2473 * flow.c (reg_n_info): Change the type to
2474 VEC(reg_info_p,heap) *.
2475 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
2477 * regs.h (reg_info_p): New.
2478 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
2479 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
2480 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
2483 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
2485 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
2487 * params.h (MAX_SCHED_READY_INSNS): New macro.
2488 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
2489 past MAX_SCHED_READY_INSNS during the first scheduling pass.
2490 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
2491 the ready list for 1 cycle during the first scheduling pass.
2492 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
2494 2006-04-13 Richard Henderson <rth@redhat.com>
2497 * gimple-low.c (lower_omp_directive): Remove dead code.
2498 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
2499 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
2500 * omp-low.c (struct omp_region): Move to tree-flow.h.
2501 (root_omp_region): Export.
2502 (omp_regions, lookup_omp_region): Remove.
2503 (determine_parallel_type): Update for struct omp_region changes.
2504 (dump_omp_region): Dump regions with block numbers.
2505 (new_omp_region): Take type and block instead of stmt; malloc
2507 (free_omp_region_1, free_omp_regions): New.
2508 (expand_parallel_call): Take entry_stmt as argument; update for
2509 changes to omp_region.
2510 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
2511 (remove_exit_barriers): New.
2512 (expand_omp_parallel): Update for struct omp_region changes.
2513 (expand_omp_synch): Likewise.
2514 (expand_omp): Likewise.
2515 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
2516 (expand_omp_for_static_chunk): Likewise.
2517 (expand_omp_for): Likewise.
2518 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
2519 (expand_omp_sections): Similarly, with GOMP_sections_end.
2520 (expand_omp_single): New.
2521 (build_omp_regions_1): Update for OMP_CONTINUE.
2522 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
2523 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
2524 OMP_SECTIONS_SECTIONS.
2525 (lower_omp_single_simple): Don't emit barrier here.
2526 (lower_omp_single_copy): Likewise.
2527 (lower_omp_single): Fix bindings, and lower to straightline now.
2528 (lower_omp_master, lower_omp_ordered): Likewise.
2529 (lower_omp_critical): Likewise.
2530 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
2531 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
2532 omp edges, free it afterward.
2533 (make_omp_sections_edges): Remove.
2534 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
2535 (move_stmt_r): Handle OMP_CONTINUE.
2536 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
2537 statement pointers to basic blocks. Add type member.
2538 (root_omp_region, new_omp_region, free_omp_regions): Declare.
2539 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
2540 * tree-inline.c (estimate_num_insns_1): Likewise.
2541 * tree-pretty-print.c (dump_generic_node): Likewise.
2542 * tree-ssa-operands.c (get_expr_operands): Likewise.
2543 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
2544 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
2545 (OMP_CONTINUE): New.
2546 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
2547 (OMP_SECTIONS_SECTIONS): Remove.
2548 (OMP_SECTION_LAST): New.
2549 (OMP_RETURN_NOWAIT): New.
2551 2006-04-13 Roger Sayle <roger@eyesopen.com>
2553 * fold-const.c (native_encode_vector, native_interpret_real):
2554 Correct obvious mistakes in the previous check-in.
2556 2006-04-13 Roger Sayle <roger@eyesopen.com>
2558 * fold-const.c (native_encode_expr): New function to encode
2559 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
2560 or VECTOR_CST into a specified buffer.
2561 (native_encode_int): New function.
2562 (native_encode_real): New function.
2563 (native_encode_complex): New function.
2564 (native_encode_vector): New function.
2565 (native_interpret_expr): Inverse of native_encode_expr to convert
2566 a target representation into an INTEGER_CST, REAL_CST etc...
2567 (native_interpret_int): New function.
2568 (native_interpret_real): New function.
2569 (native_interpret_complex): New function.
2570 (native_interpret_vector): New function.
2571 (fold_view_convert_expr): New function to constant fold/evaluate
2572 a VIEW_CONVERT_EXPR of a suitable constant expression.
2573 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
2574 Change call of build1 to fold_build1 when constructing a
2577 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
2578 Ulrich Weigand <uweigand@de.ibm.com>
2581 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
2584 2006-04-13 Alan Modra <amodra@bigpond.net.au>
2587 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
2588 optimize to lo_sum for DFmode if !TARGET_FPRS.
2590 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
2592 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
2593 delete_alias_info, compute_flow_sensitive_aliasing,
2594 group_aliases): Use VEC instead of VARRAY.
2595 * tree-ssa-structalias.c (update_alias_info): Likewise.
2596 * tree-ssa-structalias.h (alias_info): Change the type of
2597 processed_ptrs to VEC(tree,heap) *.
2599 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
2602 * config/sh/lib1funcs.h: New file, broken out of:
2603 * config/sh/lib1funcs.asm.
2604 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
2606 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
2607 * config/sh/lib1funcs-Os-4-200.asm: New file.
2608 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
2609 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
2610 (EXTRA_MULTILIB_PARTS): Include it.
2611 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
2612 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
2613 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
2614 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
2617 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
2619 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
2620 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
2621 tpa_compact, root_var_init, type_var_init): Use VEC instead of
2623 * tree-ssa-live.h: Include vecprim.h.
2624 (tree_partition_associator_d): Change the type of
2625 first_partition to VEC(int,heap) *.
2626 (tpa_first_partition): Use VEC instead of VARRAY.
2628 * Makefile.in (GTFILES): Move functions.h after tree.h.
2629 * function.c (reset_block_changes, record_block_change,
2630 check_block_change, free_block_changes): Use VEC instead of
2632 * function.h (function): Change the type of
2633 ib_boundaries_block to VEC(tree,gc) *.
2634 * tree-inline.c (copy_cfg_body): Initialize
2635 ib_boundaries_block to NULL instead of (varray_type) 0.
2637 2006-04-12 Roger Sayle <roger@eyesopen.com>
2639 * expr.c (emit_group_store): Correct operand order in call to
2640 subreg_lowpart_offset. Always create paradoxical SUBREGs with
2641 a SUBREG_BYTE of zero.
2643 2006-04-12 Richard Guenther <rguenther@suse.de>
2645 * profile.c (compute_branch_probabilities): Remove code
2646 encapsulated in !ir_type (), which are remanents of the
2647 removed RTL profiling code.
2648 * rtl-profile.c: Remove.
2650 2006-04-12 Alan Modra <amodra@bigpond.net.au>
2652 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
2653 magic NULL_RTX comment.
2654 (function_arg): Store entire fp arg to mem if any part should go
2656 (rs6000_arg_partial_bytes): Adjust for above change.
2658 2006-04-11 Roger Sayle <roger@eyesopen.com>
2660 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
2661 if it hasn't been initialized by dwarf2out_init.
2663 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
2665 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
2666 symbolic constants in branch patterns.
2668 2006-04-11 Roger Sayle <roger@eyesopen.com>
2670 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
2672 2006-04-11 Richard Sandiford <richard@codesourcery.com>
2674 PR rtl-optimization/27073
2675 * gcse.c (try_replace_reg): Revert last change. Continue to search
2676 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
2679 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
2681 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
2682 aggregate types other than record and union types.
2683 (function_arg): Likewise.
2684 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
2686 (function_value): In 64-bit mode, return objects that require it
2689 2006-04-11 Roger Sayle <roger@eyesopen.com>
2691 * dwarf2out.c (premark_used_types): Remove problematic prototype.
2693 2006-04-11 Jakub Jelinek <jakub@redhat.com>
2695 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
2697 2006-04-03 Jeff Law <law@redhat.com>
2700 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
2701 alias information too.
2703 2006-04-10 Mike Frysinger <vapier@gentoo.org>
2705 * Makefile.in (gcc-cross): Add $(exeext) to target name.
2707 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
2710 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
2711 (premark_used_types_helper): New.
2712 (premark_used_types): New.
2713 (gen_subprogram_die): Call premark_used_types.
2714 (prune_unused_types_walk): Do not prune perennial dies.
2715 * function.c (used_types_insert): New.
2716 * function.h (struct function): Add used_types_hash field.
2717 (used_types_insert): Add prototype.
2718 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
2719 * c-parser.c (c_parser_cast_expression): Save casted types in used
2722 2006-04-11 Mark Mitchell <mark@codesourcery.com>
2725 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
2726 rs6000_explicit_options.float_gprs.
2728 2006-04-10 Roger Sayle <roger@eyesopen.com>
2730 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
2731 from ix86_expand_vector_init_low_nonzero. Take an additional
2732 one_var argument indicating which element is non-zero. Support
2733 one_var != 0 for V4SFmode and V4SImode by permuting the result.
2734 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
2735 with one_var instead of ix86_expand_vector_init_low_nonzero.
2737 2006-04-10 Kazu Hirata <kazu@codesourcery.com>
2739 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
2740 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
2741 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
2742 build/genextract.o): Depend on vecprim.h.
2743 * cfglayout.c, df-problems.c, function.c, genextract.c,
2744 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
2745 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
2749 2006-04-10 Geoffrey Keating <geoffk@apple.com>
2751 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
2752 Declare VECs of this type.
2753 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
2754 (remove_children): Delete.
2755 (add_dwarf_attr): Use VEC routines.
2756 (add_AT_flag): Update for changes to add_dwarf_attr.
2757 (add_AT_int): Likewise.
2758 (add_AT_unsigned): Likewise.
2759 (add_AT_long_long): Likewise.
2760 (add_AT_vec): Likewise.
2761 (add_AT_string): Likewise.
2762 (add_AT_die_ref): Likewise.
2763 (add_AT_fde_ref): Likewise.
2764 (add_AT_loc): Likewise.
2765 (add_AT_loc_list): Likewise.
2766 (add_AT_addr): Likewise.
2767 (add_AT_lbl_id): Likewise.
2768 (add_AT_lineptr): Likewise.
2769 (add_AT_macptr): Likewise.
2770 (add_AT_offset): Likewise.
2771 (add_AT_range_list): Likewise.
2772 (get_AT): Use VEC_iterate.
2773 (remove_AT): Use VEC_ordered_remove.
2774 (free_die): Fold remove_children into here; have it use VEC_iterate.
2775 (print_die): Use VEC_iterate on attrs.
2776 (reverse_die_lists): Don't reverse attr lists.
2777 (die_checksum): Use VEC_iterate on attrs.
2778 (same_die_p): Likewise.
2779 (output_location_lists): Likewise.
2780 (build_abbrev_table): Likewise.
2781 (size_of_die): Likewise.
2782 (unmark_all_dies): Likewise.
2783 (output_abbrev_section): Likewise.
2784 (output_die): Likewise.
2785 (prune_unused_types_walk_attribs): Likewise.
2787 2006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2789 * doc/install.texi (*-*-solaris2*): Point to the configure page.
2791 2006-04-10 Jakub Jelinek <jakub@redhat.com>
2794 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
2796 2006-04-09 Roger Sayle <roger@eyesopen.com>
2798 * expr.c (store_constructor): Don't bother clearing target if
2799 we're about to assign a vector to it using vec_init_optab.
2801 2006-04-10 Daniel Berlin <dberlin@dberlin.org>
2803 * tree-ssa-alias.c (lhs_may_store_to): New function.
2804 (recalculate_used_alone): Handle LHS of calls.
2806 2006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2810 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
2811 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
2812 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
2813 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
2814 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
2815 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
2816 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
2817 stubs. Add ".align 8" directives before all ".dword" directives.
2818 (GTHREAD_USE_WEAK): Revise comment.
2819 (TARGET_ATTRIBUTE_WEAK): Define.
2820 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
2821 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
2822 * stublib.c: New file.
2827 * pa.md (cbranch patterns): Revise arguments used in calls to
2828 output_cbranch, output_bb and output_bvd. Add long branch length
2830 (fbranch patterns): Handle long branches.
2831 (jump): Revise length check. Revise arguments for output_lbranch call.
2832 Add long branch length attributes.
2833 (decrement_and_branch_until_zero): Add long branch length attributes.
2834 (output_movb, output_parallel_addb and output_parallel_movb patterns):
2835 Likewise. Revise arguments for output_parallel_addb and
2836 output_parallel_movb calls.
2837 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
2838 output_parallel_movb and output_parallel_addb): Update prototypes.
2839 * pa.c (output_cbranch): Revise arguments. Correct handling of
2840 nullification in long branches.
2841 (output_lbranch): Add new argument to control extraction of delay
2843 (output_bb): Handle long branches.
2844 (output_bvb, output_dbra, output_movb, output_parallel_movb,
2845 output_parallel_addb): Likewise.
2847 2006-04-09 Richard Sandiford <richard@codesourcery.com>
2849 PR rtl-optimization/27073
2850 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
2853 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
2855 * tree.h (tree_memory_tag): Add old_used_alone.
2856 (SMT_OLD_USED_ALONE): New macro.
2857 * tree-ssa-alias.c (recalculate_used_alone): Stop
2858 marking things for renaming unnecessarily.
2860 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
2862 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
2863 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
2864 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
2865 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
2866 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
2867 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
2868 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
2869 spelling convensions.
2870 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
2871 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
2872 typos. Follow spelling conventions.
2874 2006-04-07 DJ Delorie <dj@redhat.com>
2876 * config/m32c/m32c.c (m32c_function_arg): Structures are always
2877 passed on the stack.
2878 (m32c_init_cumulative_args): When a function returns a structure,
2879 always pass the pointer to that return area on the stack.
2880 (m32c_function_arg_advance): Don't increment the parameter number
2881 if we're processing the returned structure pointer.
2882 (pushm_info): Reverse order of registers.
2884 2006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
2886 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
2887 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
2888 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
2889 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
2891 * tree-chrec.c (chrec_fold_multiply_poly_poly,
2892 chrec_fold_multiply): Same.
2893 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
2894 force_expr_to_var_cost): Same.
2895 * tree-mudflap.c (mf_xform_derefs_1): Same.
2896 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
2898 2006-04-07 David Edelsohn <edelsohn@gnu.org>
2900 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
2901 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
2904 2006-04-07 Jan Hubicka <jh@suse.cz>
2906 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
2908 2006-04-07 Richard Guenther <rguenther@suse.de>
2910 PR tree-optimization/26135
2911 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
2912 loads for store copy-prop.
2913 (copy_prop_visit_stmt): Likewise.
2915 2006-04-05 Robert Millan <robertmh@gnu.org>
2917 * config/i386/linux.h: Add a comment to mark macros that are
2918 being overriden in config/k*bsd-gnu.h.
2919 * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
2921 * config/knetbsd-gnu.h: Ditto.
2923 2006-04-06 Jan Hubicka <jh@suse.cz>
2927 * coverage.c (coverage_checksum_string): Reorganize loop to not read
2930 2006-04-06 Mike Stump <mrs@apple.com>
2932 * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
2933 for HAVE_nonlocal_goto to be consistent.
2934 (expand_builtin_nonlocal_goto): Likewise.
2935 (expand_builtin_strcmp): Use #ifdef instead of #if
2936 for HAVE_cmpstrnsi to be consistent.
2938 2006-04-05 DJ Delorie <dj@redhat.com>
2940 * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
2943 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
2945 * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
2946 got-relative addressing for anything but SImode.
2948 * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
2949 even if the calling function doesn't modify them.
2951 2006-04-05 Richard Guenther <rguenther@suse.de>
2953 PR tree-optimization/26919
2954 * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
2955 to cgraph_estimate_size_after_inlining.
2957 2006-04-05 Alan Modra <amodra@bigpond.net.au>
2959 * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
2961 2006-04-05 Sebastian Pop <pop@cri.ensmp.fr>
2963 PR tree-optimization/26996
2964 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
2965 VECTOR_TYPE variables.
2967 2006-04-05 Richard Guenther <rguenther@suse.de>
2969 PR tree-optimization/26763
2970 * fold-const.c (fold_comparison): Move folding of
2971 PTR + CST CMP PTR + CST ...
2972 (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR.
2974 2006-04-05 Gerald Pfeifer <gerald@pfeifer.com>
2976 * doc/install.texi (Prerequisites): Refine some wording on
2977 bootstrapping and ksh.
2978 Move the version numbers of DejaGnu here from the testing section
2979 and fix casing of names.
2980 Fix markup and clarify wording for autogen requirements.
2981 Refer to GCJ instead of just java.
2982 Refer to SVN instead of CVS.
2983 Describe diffutils as useful instead of necessary.
2984 (Downloading the source): Refer to SVN instead of CVS.
2985 Adjust a link to our web site accordingly.
2986 (Configuration): Fix casing of Bison.
2987 (Building): Refer to SVN instead of CVS.
2988 Fix a sentence on the use of Bison and remove duplicate (and
2989 incorrect) version number of Bison requirement.
2990 Remove one redundant list of packages needed for building.
2991 (Specific): Avoid reference to CVS.
2993 2006-04-04 Eric Christopher <echristo@apple.com>
2995 * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
2996 (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
2997 (rs6000_handle_struct_attribute): New.
2998 (rs6000_ms_bitfield_layout_p): Ditto.
3000 2006-04-04 Geoffrey Keating <geoffk@apple.com>
3002 * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
3003 NULL for dso parameter to atexit_common.
3005 2006-04-04 Eric Christopher <echristo@apple.com>
3007 * config/i386/i386.c (machopic_output_stub): Output \t
3008 between instructions and operands.
3010 2006-04-04 David Edelsohn <edelsohn@gnu.org>
3012 * config/rs6000/rs6000.c (num_insns_constant_wide): Change
3013 satisfies_constraint_[IL] to explicit tests on value.
3015 2006-04-04 Sebastian Pop <pop@cri.ensmp.fr>
3017 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
3018 set_nb_iterations_in_loop): Use build_int_cst instead of
3020 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
3021 build_int_cst instead of convert.
3023 2006-04-04 Carlos O'Donell <carlos@codesourcery.com>
3025 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
3026 new value 2 for incoming.
3027 * function.c (expand_function_start): Call struct_value_rtx
3029 * config/sparc/sparc.md: Comment updated_return.
3030 * config/sparc/sparc.opt: Add -mstd-struct-return option.
3031 * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
3032 struct return if sparc_std_struct_return and incoming is 2.
3033 (print_operand): Do not adjust return if
3034 sparc_std_struct_return.
3036 2006-04-04 Roger Sayle <roger@eyesopen.com>
3038 * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
3039 convert in the middle-end.
3040 * expr.c (store_expr, store_constructor, get_inner_reference,
3041 expand_expr_real_1, string_constant, try_casesi, try_tablejump):
3043 * tree.c (build_range_type): Likewise.
3045 2006-04-04 Tom Tromey <tromey@redhat.com>
3047 * doc/install.texi (Prerequisites): Mention jar.
3049 2006-04-04 Daniel Berlin <dberlin@dberlin.org>
3051 * doc/tree-ssa.texi (Preserving the virtual ssa form): New
3054 2006-04-04 Matthias Klose <doko@debian.org>
3056 * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
3057 * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
3060 2006-04-03 Geoffrey Keating <geoffk@apple.com>
3062 * doc/extend.texi (Function Attributes): Rewrite visibility
3063 attribute documentation.
3064 * doc/invoke.texi (C++ Dialect Options): Rewrite
3065 -fvisibility-inlines-hidden documentation to describe something
3066 entirely different, although in practise compatible.
3067 (Code Gen Options): Warn about system headers in -fvisibility=
3070 * doc/extend.texi (Other Builtins): Document that
3071 __builtin_nan is a compile-time constant only when its argument
3074 2006-04-03 Adam Nemet <anemet@caviumnetworks.com>
3076 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
3077 trying to remove TRUNCATE check if all bits outside the new mode
3078 are identical to the sign bit.
3080 2006-04-03 Jeff Law <law@redhat.com>
3082 * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
3083 and operand scanning in some common cases.
3085 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
3086 Dale Johannesen <dalej@apple.com>
3089 * regclass.c (struct reg_pref): Update documentation.
3090 (regclass): Set prefclass to NO_REGS if memory is the best option.
3091 (record_reg_classes): Cope with a prefclass set to NO_REGS.
3092 * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
3093 into account. For non-registers, equate an empty preferred
3094 reload class to a `!' in the constraint; move the if clause to
3095 do so after those that reject the insn.
3096 (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
3098 (find_dummy_reload): Likewise.
3099 * doc/tm.texi (Register Classes): Document what it means
3100 if PREFERRED_*_RELOAD_CLASS return NO_REGS.
3101 * config/i386/i386.c (ix86_preferred_reload_class): Force
3102 using SSE registers (and return NO_REGS for floating-point
3103 constants) if math is done with SSE.
3104 (ix86_preferred_output_reload_class): New.
3105 * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
3106 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
3107 * config/i386/i386.md: Remove # register preferences.
3109 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
3112 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
3113 chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
3114 the type of nb_iter.
3115 (instantiate_parameters_1): Convert the operands before calling
3116 chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
3117 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
3119 2006-04-02 Roger Sayle <roger@eyesopen.com>
3121 * builtins.c (dummy_object): Use build_int_cst instead of convert.
3122 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
3124 * dojump.c (do_jump): Likewise.
3125 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
3126 * gimplify.c (gimple_boolify, gimplify_init_constructor,
3127 gimplify_boolean_expr): Likewise.
3128 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3129 * varasm.c (array_size_for_constructor): Likewise.
3130 * tree-object-size.c (compute_object_offset): Likewise.
3132 2006-04-02 Roger Sayle <roger@eyesopen.com>
3135 * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
3136 NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
3138 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
3140 PR tree-optimization/26939
3141 * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
3143 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
3145 * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
3146 at_stmt. Convert the type of operands before calling
3147 build_polynomial_chrec.
3148 (add_to_evolution): Pass an extra argument at_stmt. Adjust the call to
3150 (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
3151 (instantiate_parameters_1): Convert the type of operands before calling
3152 build_polynomial_chrec.
3153 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
3154 chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
3155 reset_evolution_in_loop): Insert asserts to check the types of the
3157 (chrec_type): Moved...
3158 (eq_evolutions_p): Use operand_equal_p.
3159 * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
3160 the types of the operands.
3161 (chrec_type): ...here.
3162 * tree-data-ref.c (create_data_ref): Convert the operands before
3163 calling chrec_replace_initial_condition.
3164 (same_access_functions, analyze_subscript_affine_affine,
3165 analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
3166 (compute_subscript_distance, analyze_ziv_subscript,
3167 analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
3168 analyze_miv_subscript): Convert the operands before calling
3169 chrec_fold_minus or chrec_fold_plus.
3171 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
3173 * tree-data-ref.c (compute_all_dependences): Use a pointer to
3174 the dependence_relations vector.
3175 (compute_data_dependences_for_loop): Adjust call to
3176 compute_all_dependences.
3178 2006-04-01 Roger Sayle <roger@eyesopen.com>
3179 Richard Henderson <rth@redhat.com>
3181 * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
3182 gimple_boolify on the condition before calling gimplify_expr.
3184 2006-03-31 Bob Wilson <bob.wilson@acm.org>
3186 * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
3187 to leaf_entry/leaf_return. Change leaf_entry to add 16 bytes to
3188 the frame size. Update to use the new macros.
3189 * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
3190 * config/xtensa/ieee754-df.S: Likewise.
3192 2006-03-31 Richard Henderson <rth@redhat.com>
3194 * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
3195 (make_edges): ... here. Control fallthru creation with a local
3196 variable. Do not play with fake edges.
3197 (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
3198 (make_goto_expr_edges): Don't play with fake edges. Make for_call
3201 2006-04-01 Joseph S. Myers <joseph@codesourcery.com>
3203 * dwarf2.h (DW64_CIE_ID): Define.
3204 * dwarf2out.c (DWARF_CIE_ID): Define.
3205 (output_call_frame_info): Output 0xffffffff before standard 8-byte
3206 length header. Use DWARF_CIE_ID.
3207 (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
3208 dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
3210 2006-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
3212 * config/sh/linux-atomic.asm: New file.
3213 * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
3215 2006-03-31 DJ Delorie <dj@redhat.com>
3217 * config/m32c/cond.md: Set condition flags properly throughout.
3218 * config/m32c/minmax.md: Likewise.
3219 * config/m32c/prologue.md: Likewise.
3220 * config/m32c/bitops.md: Likewise.
3221 * config/m32c/muldiv.md: Likewise.
3222 * config/m32c/mov.md: Likewise.
3223 * config/m32c/addsub.md: Likewise.
3224 * config/m32c/m32c.md: Likewise.
3225 * config/m32c/jump.md: Likewise.
3226 * config/m32c/shift.md: Likewise.
3228 * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
3229 conditionally output the pattern for this.
3230 * config/m32c/m32c.c (flags_needed_for_conditional): New.
3231 (m32c_compare_redundant): New.
3232 (m32c_output_compare): New.
3233 * config/m32c/m32c-protos.h (m32c_output_compare): New.
3235 * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
3236 dest, not src. Allow other 4-byte modes.
3238 2006-03-30 Denis Chertykov <denisc@overta.ru>
3240 * doc/md.texi: Refer to avr/constraints.md instead of
3243 2006-03-30 Roger Sayle <roger@eyesopen.com>
3245 * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
3246 signed vs. unsigned comparison failures on some hosts.
3248 2006-03-31 Alan Modra <amodra@bigpond.net.au>
3251 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
3252 change to FLOAT_REGS.
3254 * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
3255 (rs6000_override_options): Use it.
3256 (rs6000_handle_option): Set it. Set rs6000_explicit_options.abi
3257 only for -mabi=spe/no-spe and -mabi=altivec.
3259 2006-03-30 Geoffrey Keating <geoffk@apple.com>
3261 * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
3264 2006-03-30 Carlos O'Donell <carlos@codesourcery.com>
3266 * Makefile.in: Rename docdir to gcc_docdir.
3268 2006-03-30 Roger Sayle <roger@eyesopen.com>
3271 * expr.c (emit_group_store): Optimize group stores into a pseudo
3272 register by using a paradoxical subreg to initialize the destination
3273 if the first or last member of the group specifies a "low part".
3275 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3278 * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
3279 * target.h (struct gcc_target.speculate_insn): Change type of the
3280 second parameter to 'int'.
3281 * lists.c (alloc_DEPS_LIST): Change signature. Update reference to
3282 the second operand of the DEPS_LIST.
3283 (copy_DEPS_LIST_list): Update reference to the second operand of the
3285 * rtl.h (alloc_DEPS_LIST): Update signature.
3286 * sched-int.h (ds_t): Change typedef to 'int'.
3287 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
3289 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3291 * haifa-sched.c (try_ready): Change condition to restore
3292 non-speculative pattern of the instruction.
3293 (process_insn_depend_be_in_spec): Code to keep probability of the
3294 speculative dependence non-decreasing.
3296 2006-03-30 Jie Zhang <jie.zhang@analog.com>
3298 * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
3299 (single_move_for_movmem): ... this. Also change all uses.
3300 (bfin_expand_strmov): Renamed to...
3301 (bfin_expand_movmem): ... this. Also change all uses.
3302 * config/bfin/bfin.md (movstrsi): Renamed to...
3303 (movstrsi): ...this.
3305 2006-03-30 Paolo Bonzini <bonzini@gnu.org>
3307 PR tree-optimization/26830
3309 * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
3310 (copy_prop_visit_stmt): Remove write-only variable ann.
3311 (init_copy_prop): Check variable loop depth here. Do not simulate
3312 memory-tag and virtual operand PHIs except for store copy prop.
3314 2006-03-30 Richard Guenther <rguenther@suse.de>
3316 * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
3317 variants with double arguments.
3319 2006-03-29 David Edelsohn <edelsohn@gnu.org>
3321 * genpreds.c (write_tm_constrs_h): Delete variable p.
3322 * genconditions.c (write_header): Add tm-constrs.h to included
3324 * genpeep.c (main): Add toplev.h to included headers.
3325 * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
3326 (build/genpeep.o): Add toplev.h dependency.
3327 * config/rs6000/constraints.md: Add "W" constraint.
3329 2006-03-29 Roger Sayle <roger@eyesopen.com>
3331 * stor-layout.c (mode_for_size_tree): Remove restiction on type
3332 sizes by correctly testing whether the size fits a host integer.
3333 (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
3334 to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
3335 SImode range for the default sizetype and bitsizetype.
3337 2006-03-29 Roger Sayle <roger@eyesopen.com>
3339 * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
3340 and TREE_CONSTANT_OVERFLOW bits of the argument. Return
3341 quickly if the argument is already of the correct type.
3342 Call fold_build1 instead of build1. Tidy up blank lines.
3344 2006-03-29 David Edelsohn <edelsohn@gnu.org>
3346 * genemit.c (main): Add tm-constrs.h to included headers.
3347 * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
3348 * genpeep.c (main): Add tm-constrs.h to included headers.
3349 * genpreds.c (write_satisfies_constraint_fns): Rename to ...
3350 (write_tm_constrs_h): this and write complete file.
3351 (write_tm_preds_h): Do not emit satisfies_constraint fns.
3352 (write_insn_preds_c): Add tm-constrs.h to included headers.
3353 (gen_constrs): New variable.
3354 (parse_option): Parse "-c".
3355 (main): Invoke write_tm_constrs_h.
3356 * genrecog.c (write_header): Add tm-constrs.h to included headers.
3357 * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
3358 (object_out_file): Add tm-constrs.h dependency.
3359 (insn-emit.o): Same.
3360 (insn-output.o): Same.
3361 (insn-peep.o): Same.
3362 (insn-preds.o): Same.
3363 (insn-recog.o): Same.
3364 (tm-constsr.h): New target.
3365 (s-constrs-h): New target.
3367 * config/rs6000/constraints.md: New file.
3368 * config/rs6000/rs6000.c: Include tm-constrs.h.
3369 (num_insn_constant_wide): Convert to satisfies_constraint.
3370 (rs6000_rtx_costs): Convert to satisfies_constraint.
3371 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
3372 (CONST_OK_FOR_LETTER_P): Delete.
3373 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3374 (EXTRA_CONSTRAINT): Delete.
3375 (EXTRA_MEMORY_CONSTRAINT): Delete.
3376 (EXTRA_ADDRESS_CONSTRAINT): Delete.
3377 * config/rs6000/predicates.md: Convert to satisfies_constraint.
3378 * config/rs6000/rs6000.md: Include constraints.md. Convert to
3379 satisfies_constraint.
3381 * config/i386/i386.c: Include tm-constrs.h.
3383 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
3385 * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
3386 * tree-data-ref.c (find_data_references_in_loop,
3387 compute_data_dependences_for_loop): Use pointers to VEC.
3388 (analyze_all_data_dependences): Adjust calls.
3389 * tree-data-ref.h (find_data_references_in_loop,
3390 compute_data_dependences_for_loop): Adjust declarations.
3391 * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
3392 compute_data_dependences_for_loop.
3394 2006-03-29 Paul Brook <paul@codesourcery.com>
3396 * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
3399 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
3401 PR tree-optimization/26859
3402 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
3404 (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
3405 for the step after fold_convert.
3407 2006-03-29 Paul Brook <paul@codesourcery.com>
3409 * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
3410 (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
3412 2006-03-29 Paul Brook <paul@codesourcery.com>
3415 * targhooks.c (default_narrow_bitfield): New fuction.
3416 * targhooks.h (default_narrow_bitfield): add prototype.
3417 * target.h (gcc_target): Add narrow_volatile_bitfield.
3418 * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
3419 * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
3420 * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
3421 * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
3423 2006-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
3425 * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
3427 * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
3428 (NR_C_MODES): Add TDmode, DDmode and SDmode.
3429 (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
3430 (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
3431 (s390_function_arg_float): Allow SDmode and DDmode values to be
3432 passed in floating point registers.
3433 (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
3434 check with SCALAR_FLOAT_MODE_P.
3435 (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
3437 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
3439 PR tree-optimization/25985
3440 * tree-ssa-loop-niter.c (number_of_iterations_le,
3441 number_of_iterations_ne): Make comments more precise.
3442 (number_of_iterations_cond): Add only_exit argument. Use the
3443 fact that signed variables do not overflow only when only_exit
3445 (loop_only_exit_p): New.
3446 (number_of_iterations_exit): Pass result of loop_only_exit_p to
3447 number_of_iterations_cond.
3449 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
3451 PR tree-optimization/26643
3452 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
3455 2006-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
3457 * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
3458 (divsi3_i4_int): Likewise.
3460 2006-03-28 Roger Sayle <roger@eyesopen.com>
3462 * expr.c (emit_group_store): Only create a new pseudo reg if the
3463 quantity it needs to hold isn't already a suitable pseudo.
3465 2006-03-28 Jeff Law <law@redhat.com>
3467 * timevar.def (TV_TREE_PHI_CPROP): New timevar.
3468 * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
3470 2006-03-28 Roger Sayle <roger@eyesopen.com>
3472 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
3473 the equivalent ~X & Y, and the symmetry related transformations.
3474 (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
3475 ~X & Y, and symmetry related transforms.
3477 2006-03-28 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3479 Revert my 2006-03-27 patches.
3481 2006-03-28 Roger Sayle <roger@eyesopen.com>
3483 * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
3484 ~(T1)X, when T1 and T2 are integer types of the same precision
3485 and (T2)X isn't an extension.
3487 2006-03-28 Jeff Law <law@redhat.com>
3489 PR tree-optimization/26796
3490 * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
3491 need EH edge cleanups rather than purging them immediately.
3492 (eliminate_degenerate_phis): Handle queued EH cleanups.
3494 2006-03-28 Daniel Berlin <dberlin@dberlin.org>
3496 * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
3499 2006-03-27 Roger Sayle <roger@eyesopen.com>
3502 * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
3503 cast BIT_NOT_EXPR operand to the correct type.
3505 2006-03-27 Sebastian Pop <pop@cri.ensmp.fr>
3507 * tree-loop-linear.c: Don't include varray.h.
3508 (gather_interchange_stats, try_interchange_loops,
3509 linear_transform_loops): Use VEC instead of VARRAY.
3510 * lambda-mat.c: Don't include varray.h.
3511 * tree-chrec.c: Same.
3512 * lambda-trans.c: Same.
3513 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
3514 VEC instead of VARRAY.
3515 * tree-vectorizer.h: Idem.
3516 * tree-data-ref.c (dump_data_references,
3517 dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
3518 initialize_data_dependence_relation, finalize_ddr_dependent,
3519 compute_all_dependences, find_data_references_in_loop,
3520 compute_data_dependences_for_loop, analyze_all_data_dependences,
3521 free_dependence_relation, free_dependence_relations,
3522 free_data_refs): Idem.
3523 * tree-data-ref.h (data_reference_p, subscript_p): New.
3524 (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
3525 VEC instead of VARRAY.
3526 (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
3527 (find_data_references_in_loop, compute_data_dependences_for_loop,
3528 dump_ddrs, dump_dist_dir_vectors, dump_data_references,
3529 dump_data_dependence_relations, free_dependence_relations,
3530 free_data_refs): Adjust declaration.
3531 (lambda_transform_legal_p): Move declaration here...
3532 * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
3533 vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
3534 vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
3535 vect_analyze_data_refs): Use VEC instead of VARRAY.
3536 * lambda.h (lambda_transform_legal_p): ...from here.
3537 * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
3538 * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
3539 * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
3540 tree-chrec.o): Don't depend on VARRAY_H.
3542 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3544 * rtl.def (Copyright): Update date.
3545 (DEPS_LIST): Change type of the second operand to 'int'.
3546 * target.h (Copyright): Update date.
3547 (struct gcc_target.speculate_insn): Change type of the second parameter
3549 * lists.c (Copyright): Update date.
3550 (alloc_DEPS_LIST): Change signature. Update reference to the second
3551 operand of the DEPS_LIST.
3552 (copy_DEPS_LIST_list): Update reference to the second operand of the
3554 * rtl.h (Copyright): Update date.
3555 (alloc_DEPS_LIST): Update signature.
3556 * sched-int.h (Copyright): Update date.
3557 (ds_t): Change typedef to 'int'.
3558 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
3560 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3562 * haifa-sched.c (Copyright): Update date.
3563 (try_ready): Change condition to restore non-speculative pattern
3565 (process_insn_depend_be_in_spec): Code to keep probability of the
3566 speculative dependence non-decreasing.
3568 2006-03-27 Bernd Schmidt <bernd.schmidt@analog.com>
3570 * regrename.c (replace_oldest_value_addr): Initialize a variable to
3571 shut up the compiler.
3573 2006-03-27 J"orn Rennecke <joern.rennecke@st.com>
3575 * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
3576 to use lib prefix for target.
3577 ($(T)libic_invalidate_array_4-200.a): Likewise.
3578 ($(T)libic_invalidate_array_4a.a): Likewise.
3580 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
3581 J"orn Rennecke <joern.rennecke@st.com>
3583 * superh.opt: New file.
3584 * sh.c (boardtype, osruntime): Remove.
3585 * superh.h (SUBTARGET_OPTIONS): Remove.
3586 * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
3588 * config.gcc (sh*-*-*): Don't use c-c ranges for tr. Quote sed
3589 arguments with ^ and/or [].
3591 * config.gcc (sh-*-*): Add quoting to account for quirk of
3593 Replace == with = in enable_incomplete_targets test.
3595 * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
3596 with MASK_LITTLE_ENDIAN.
3598 * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
3599 * config/sh/sh.opt: Added to some comments.
3600 * config/sh/superh.h: Removed some chaff.
3602 * config/sh/sh.opt: Add m4-[1234]00* options.
3603 * config/sh/sh.c (sh_handle_option): Likewise.
3604 * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
3605 (ic_invalidate_array_4-100.o): New rule.
3606 ($(T)libic_invalidate_array_4-100.a): Likewise.
3607 (ic_invalidate_array_4-200.o): Likewise.
3608 ($(T)libic_invalidate_array_4-200.a): Likewise.
3609 (ic_invalidate_array_4a.o): Likewise.
3610 ($(T)libic_invalidate_array_4a.a): Likewise.
3611 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
3612 * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
3614 * config/sh/crt1.asm: Merged in profiling code.
3615 * config/sh/superh.h (STARTFILE_SPEC): Override.
3616 * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
3617 Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
3618 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
3620 * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
3621 * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
3622 MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
3624 * sh.opt (mpretend-cmove): New option.
3625 * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
3626 * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
3627 (movsicc): Add TARGET_PRETEND_CMOVE code.
3629 2006-03-27 Andreas Krebbel <krebbel1@de.ibm.com>
3631 * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
3632 s390_class_max_nregs): New function prototypes.
3633 * config/s390/s390.c (REGNO_PAIR_OK): New macro.
3634 (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
3635 * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
3636 CLASS_MAX_NREGS): Macro bodies replaced by function calls.
3638 2006-03-26 Geoffrey Keating <geoffk@apple.com>
3640 * dwarf2out.c (add_location_or_const_value_attribute): Call
3641 tree_add_const_value_attribute if nothing else works.
3642 (reference_to_unused): New.
3643 (rtl_for_decl_init): Use reference_to_unused to decide whether
3644 to output an initializer.
3646 2006-03-27 Alan Modra <amodra@bigpond.net.au>
3649 * config/rs6000/rs6000.md (DF reg move peephole): Prevent
3650 peephole removing spe frob_di_df_2.
3652 2006-03-26 Sebastian Pop <pop@cri.ensmp.fr>
3654 * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
3655 (subscript_dependence_tester_1): Declared.
3656 (print_dir_vectors, print_dist_vectors): New.
3657 (debug_data_dependence_relation): New.
3658 (dump_data_dependence_relation): Print more details.
3659 (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
3660 (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
3661 (save_dist_v, save_dir_v, add_outer_distances,
3662 build_classic_dist_vector_1): New.
3663 (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
3664 Don't test for lambda_vector_lexico_pos.
3665 (same_access_functions, add_multivariate_self_dist,
3666 add_other_self_distances, dir_from_dist): New.
3667 (build_classic_dir_vector): Replace implementation almost identical to
3668 build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
3670 (subscript_dependence_tester_1): New.
3671 (subscript_dependence_tester): Handle the lexicographically negative
3672 distance vectors by recomputing the dependence relation.
3673 (compute_affine_dependence): Remove parameter loop_nest_depth.
3674 (compute_self_dependence): Don't call compute_subscript_distance.
3675 (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
3676 Add a parameter for the loop_nest.
3677 (find_loop_nest_1, find_loop_nest): New.
3678 (compute_data_dependences_for_loop): Compute the loop nest, and give
3679 up if the nest is not well formed.
3680 * tree-data-ref.h (loop_p): New.
3681 (struct data_dependence_relation): Replace size_vect field with
3682 loop_nest, a vec of loops.
3683 (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
3684 (DDR_LOOP_NEST): New.
3685 (print_dir_vectors, print_dist_vectors,
3686 debug_data_dependence_relation): Declared.
3687 (index_in_loop_nest): New.
3688 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
3689 DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
3692 2006-03-25 Adam Nemet <anemet@caviumnetworks.com>
3694 * simplify-rtx.c (simplify_relational_operation): Call
3695 simplify_relational_operation_1 even if mode is VOIDmode.
3697 2006-03-25 Daniel Berlin <dberlin@dberlin.org>
3699 PR tree-optimization/26804
3700 * tree.h (DECL_CALL_CLOBBERED): New macro.
3701 (tree_decl_common): Add call_clobbered_flag.
3702 * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
3703 (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
3704 (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
3705 (mark_non_addressable): Ditto.
3706 * tree-ssa.c (verify_call_clobbered): New function.
3707 (verify_alias_info): Use it.
3708 * tree-pass.h (pass_reset_cc_flags): New prototype.
3709 * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
3710 (reset_cc_flags): New function.
3711 * passes.c (init_optimization_passes): Call reset_cc_flags after
3712 initializing referenced_vars.
3714 2006-03-25 Uros Bizjak <uros@kss-loka.si>
3715 Roger Sayle <roger@eyesopen.com>
3718 * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
3719 to 1.0 for non-real operands. Implement A / A optimization for
3722 2006-03-25 H.J. Lu <hongjiu.lu@intel.com>
3724 * config/i386/i386.c (size_cost): Correct the comment for
3725 cost of storing fp registers.
3726 (i386_cost): Likewise.
3727 (i486_cost): Likewise.
3728 (pentium_cost): Likewise.
3729 (pentiumpro_cost): Likewise.
3730 (k6_cost): Likewise.
3731 (athlon_cost): Likewise.
3732 (k8_cost): Likewise.
3733 (pentium4_cost): Likewise.
3734 (nocona_cost): Likewise.
3735 (generic64_cost): Likewise.
3736 (generic32_cost): Likewise.
3738 2006-03-24 Denis Chertykov <denisc@overta.ru>
3740 * config/avr/avr-protos.h (extra_constraint): Delete.
3741 (extra_constraint_Q): New declaration.
3742 * config/avr/constraints.md: New file.
3743 * config/avr/avr.md: Include it.
3744 (REG_X, REG_Y, REG_Z, REG_W): New constants.
3745 (TMP_REGNO, ZERO_REGNO): Likewise.
3746 (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
3747 * config/avr/avr.c (avr_reg_class_from_letter): Delete.
3748 (extra_constraint): Delete.
3749 (extra_constraint_Q): Test for memory constraint 'Q'.
3750 * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
3751 (REG_CLASS_FROM_LETTER): Delete.
3752 (CONST_OK_FOR_LETTER_P): Delete.
3753 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3754 (EXTRA_CONSTRAINT): Delete.
3755 (TMP_REGNO): Delete.
3756 (ZERO_REGNO): Delete.
3758 2006-03-24 Jeff Law <law@redhat.com>
3760 * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
3761 directly. Call mark_new_vars_to_rename slightly earlier.
3763 2006-03-24 Geoffrey Keating <geoffk@apple.com>
3765 * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
3767 (gen_compile_unit_die): Use new language types for Objective-C and
3769 (dwarf2out_decl): Use is_cxx rather than testing explicitly against
3770 DW_LANG_C_plus_plus.
3773 * config/t-darwin (crt3.o): Work around bug 26840.
3774 * config/darwin-crt3.c: Rewrite.
3775 * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
3777 2006-03-24 Carlos O'Donell <carlos@codesourcery.com>
3779 * doc/invoke.texi: Document -femit-class-debug-always
3780 * common.opt: Add -femit-class-debug-always.
3782 2006-03-24 Andreas Krebbel <krebbel1@de.ibm.com>
3784 * config/s390/s390.c (s390_decompose_address): Allow SImode for
3785 index and base register.
3786 (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
3787 print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
3788 with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
3789 REGNO_OK_FOR_INDEX_P.
3790 * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
3792 (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
3793 REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
3794 REG_OK_FOR_BASE_P): Definitions removed.
3796 2006-03-24 Jakub Jelinek <jakub@redhat.com>
3799 * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
3800 non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
3801 set yet or weren't marked as local yet.
3803 2006-03-24 Bernd Schmidt <bernd.schmidt@analog.com>
3805 * regrename.c (scan_rtx_address): Initialize a variable to shut up
3808 2006-03-24 Eric Botcazou <ebotcazou@adacore.com>
3810 * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
3811 (rs6000_legitimate_small_data_p): Delete.
3812 * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
3813 (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
3814 and make static. Add forward declaration. Update uses.
3815 (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
3816 of offsettable_memref_p.
3817 * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
3818 Use rs6000_offsettable_memref_p instead of a less accurate predicate.
3820 2006-03-24 Jeff Law <law@redhat.com>
3822 * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
3823 around bug in immediate-use iterator.
3825 2006-03-24 Alan Modra <amodra@bigpond.net.au>
3828 * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
3829 or __LITTLE_ENDIAN__.
3831 2006-03-23 J"orn Rennecke <joern.rennecke@st.com>
3833 * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
3834 * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
3835 * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
3836 * config/sh/sh.opt (mdiv=): Amend description.
3837 * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
3838 (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
3839 (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
3840 SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
3841 (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
3842 Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
3843 * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
3844 (udivsi3, divsi3): Use them. Check TARGET_DIVIDE_CALL_TABLE /
3845 TARGET_DIVIDE_CALL_FP.
3847 2006-03-23 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3849 * haifa-sched.c (choose_ready): Fix type of the local variable.
3850 Move local variables. Add comment.
3851 (check_reg_live): Change signature. Make callable from debugger.
3852 * sched-int.h (check_reg_live): Update signature.
3853 * sched-ebb.c (check_reg_live): Update parameters.
3854 * sched-rgn.c (check_reg_live): Ditto.
3855 (region_head_or_leaf_p): Check pointer before dereferencing.
3856 * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
3857 before reload on optimization levels below 1.
3859 2006-03-23 Richard Henderson <rth@redhat.com>
3861 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
3865 * config/alpha/predicates.md (local_symbolic_operand): Reject
3868 2006-03-23 Andrew Pinski <pinskia@physics.uc.edu>
3871 * tree-ssa-pre.c (create_value_expr_from): Don't reject
3872 expressions which have overflowed constants.
3874 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
3876 * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
3878 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
3880 * cfgloopmanip.c (create_loop_notes): Removed.
3881 * final.c (final_scan_insn): Do not handle loop notes.
3882 * jump.c (squeeze_notes): Ditto.
3883 * cfglayout.c (skip_insns_after_block,
3884 duplicate_insn_chain): Ditto.
3885 * cfgcleanup.c (rest_of_handle_jump2): Do not call
3887 * cfgloop.h (create_loop_notes): Declaration removed.
3889 2006-03-23 Richard Sandiford <richard@codesourcery.com>
3891 * varasm.c (output_constant_pool): Restore fnname and fndecl
3893 (assemble_start_function): Adjust call accordingly.
3894 (assemble_end_function): Likewise.
3896 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3899 * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
3902 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
3904 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3907 * system.h (ICE_EXIT_CODE): New macro.
3908 * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
3909 (diagnostic_action_after_output): Likewise.
3910 * gcc.c (fatal_ice): New function.
3911 (execute): Use it instead of fatal.
3912 (fancy_abort): Likewise.
3913 * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
3915 2006-03-22 Jeff Law <law@redhat.com>
3917 * loop-unroll.c (analyze_iv_to_split_insn): Handle
3918 iv_analyze_result returning false.
3920 2006-03-22 Jie Zhang <jie.zhang@analog.com>
3922 * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
3924 2006-03-22 Richard Henderson <rth@redhat.com>
3927 * except.c (duplicate_eh_regions_0): New.
3928 (duplicate_eh_region_1): Duplicate the children of the node as
3929 well as the node itself. Link them up properly.
3930 (duplicate_eh_region_2): Merge into ...
3931 (duplicate_eh_regions): ... here. Take copy_region argument, and
3932 copy only a sub-tree if asked. Simplify copying and fixup.
3933 (eh_region_outer_p): New.
3934 * except.h (duplicate_eh_regions): Update decl.
3935 (eh_region_outer_p): Declare.
3936 * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
3937 (lower_omp_master): Likewise.
3938 (lower_omp_ordered): Likewise.
3939 * tree-cfg.c (struct move_stmt_d): Add new_label_map.
3940 (move_stmt_r): Use it to remap labels. Handle recursion vs
3941 remap_decls_p properly.
3942 (move_block_to_fn): Pass in new_label_map. Remap RESX_EXPR.
3943 (find_outermost_region_in_block): New.
3944 (new_label_mapper): New.
3945 (move_sese_region_to_fn): Copy eh information to the new function
3947 * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
3949 * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
3952 2006-03-22 Richard Sandiford <richard@codesourcery.com>
3954 * doc/md.texi (-mshared): Mention that -mshared code can be linked
3955 into shared libraries.
3957 2006-03-22 Richard Sandiford <richard@codesourcery.com>
3959 * doc/md.texi: Refer to i386/constraints.md instead of
3961 * config/i386/constraints.md: New file, extracted from...
3962 * config/i386/predicates.md: ...here.
3963 * config/i386/i386.md: Include constraints.md.
3965 2006-03-21 Jason Merrill <jason@redhat.com>
3967 * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
3970 * expr.c (init_block_move_fn): Force default visibility.
3971 (init_block_clear_fn): Likewise.
3972 * builtins.c (expand_builtin_fork_or_exec): Likewise.
3973 * targhooks.c (default_external_stack_protect_fail): Likewise.
3975 2006-03-21 Richard Sandiford <richard@codesourcery.com>
3977 * config/mips/predicates.md (const_call_insn_operand): Allow direct
3978 calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
3979 * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
3980 Use TARGET_OLDABI instead of !TARGET_NEWABI.
3981 (loadgp): Use mips_current_loadgp_style.
3982 (loadgp_noshared): New pattern.
3983 (sibcall_internal): Use MIPS_CALL.
3984 (sibcall_value_internal): Likewise.
3985 (sibcall_value_multiple_internal): Likewise.
3986 (call_internal): Likewise.
3987 (call_value_internal): Likewise.
3988 (call_value_multiple_internal): Likewise.
3989 (call_split): Use MIPS_CALL and add an 'S' constraint.
3990 (call_value_split): Likewise.
3991 (call_value_multiple_split): Likewise.
3992 * config/mips/mips.opt (-mabicalls): Tweak docstring.
3993 (-mshared): New option.
3994 * config/mips/mips-protos.h (mips_loadgp_style): New enum.
3995 (mips_current_loadgp_style): Declare.
3996 * config/mips/mips.c (mips_classify_symbol): Avoid using
3997 SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS. Use SYMBOL_GENERAL
3998 rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
3999 TARGET_ABSOLUTE_ABICALLS.
4000 (override_options): Adjust comments. Improve the warning that is
4001 issued when -mabicalls and -G are used together.
4002 (mips_file_start): Remove comment.
4003 (mips_current_loadgp_style): New function.
4004 (mips_gnu_local_gp): New variable.
4005 (mips_emit_loadgp): Use mips_current_loadgp_style. Handle
4007 (mips_output_function_prologue): Use mips_current_laodgp_style.
4008 (mips_expand_prologue): Call mips_emit_loadgp before emitting
4009 the cprestore instruction.
4010 (mips_extra_live_on_entry): Fix reversed test. Don't make $25
4011 live for TARGET_ABSOLUTE_ABICALLS.
4012 * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
4013 (ASM_SPEC): Pass down -mshared and -mno-shared.
4014 (MIPS_CALL): New macro.
4015 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
4017 * doc/invoke.texi (-mabicalls): Update documentation.
4018 (-mshared): Document.
4020 2006-03-21 Steve Ellcey <sje@cup.hp.com>
4022 * config/ia64/unwind-hpux.c: New file.
4023 * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
4025 2006-03-21 Steve Ellcey <sje@cup.hp.com>
4028 * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
4030 2006-03-21 Jeff Law <law@redhat.com>
4032 * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
4033 type conversions of a VR_VARYING source to a wider type.
4035 2006-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
4037 * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
4038 tm_file on Solaris 10 and later.
4039 (sparc64-*-solaris2*): Likewise.
4040 (sparc-*-solaris2*): Likewise.
4041 * config/sol26.h: Rename to config/sol2-6.h.
4042 * config/sol2-10.h: New file.
4044 2006-03-21 Andrew Pinski <pinskia@physics.uc.edu>
4047 * tree-ssa-pre.c (create_component_ref_by_pieces):
4050 2006-03-21 Jakub Jelinek <jakub@redhat.com>
4053 * tree.c (get_callee_fndecl): If CALL is error_mark_node,
4054 return it immediately.
4056 2006-03-21 Michael Matz <matz@suse.de>
4058 * genautomata.c (<struct state>, num_out_arcs, presence_signature):