1 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
4 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
5 for initialization and setting of one_only flag to ...
6 (i386_pe_encode_section_info): ...here.
7 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
8 Recheck that the symbol has not been defined.
10 2006-06-23 Richard Guenther <rguenther@suse.de>
12 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
13 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
14 alignment requests instead. Add verification code.
15 Add struct tree_function_decl and struct tree_binfo size to
16 extra_order_size_table. Add missing element to size_lookup
19 2006-06-22 Roger Sayle <roger@eyesopen.com>
20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
24 call to lang_hooks.types.type_for_mode returned NULL_TREE.
26 2006-06-23 Ben Elliston <bje@au.ibm.com>
28 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
29 negate dn -- manipulate it directly.
31 2006-06-22 Roger Sayle <roger@eyesopen.com>
32 Steven Bosscher <stevenb.gcc@gmail.com>
35 * reload1.c (gen_reload): Call mark_jump_label on the new insns
36 generated by gen_move_insn to add REG_LABEL notes if necessary.
39 2006-06-22 Bob Wilson <bob.wilson@acm.org>
41 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
42 (leaf_entry): Remove use of MIN_ESA.
44 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
46 PR rtl-optimization/28121
47 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
50 2006-06-21 DJ Delorie <dj@redhat.com>
52 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
54 (mulhisi3_r): Likewise.
56 2006-06-21 Richard Sandiford <richard@codesourcery.com>
59 * coverage.c (coverage_counter_alloc): Leave the index type
61 (coverage_counter_alloc): Use null arguments for operands 2 and 3
64 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
66 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
67 section from the "Options for Code Generation Conventions".
69 2006-06-21 Richard Henderson <rth@redhat.com>
73 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
75 (global_symbolic_operand): Allow weak symbols, even if local_p.
77 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
79 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
80 (find_interesting_uses_address): Punt if above function returns true.
82 2006-06-21 Richard Guenther <rguenther@suse.de>
84 * configure: Regenerated.
86 2006-06-21 Joseph Myers <joseph@codesourcery.com>
88 * config/mips/mips.c (function_arg): Where one part of a
89 complex argument is in registers and the other part in the stack,
90 return a REG not a PARALLEL.
92 2006-06-21 Mark Mitchell <mark@codesourcery.com>
94 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
95 when cross-compiling. Do not substitute libstdcxx_incdir.
96 * configure: Regenerated.
98 2006-06-21 Jakub Jelinek <jakub@redhat.com>
100 * varasm.c (mergeable_string_section): Check for embedded NULs and
101 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
102 rather than TREE_STRING_LENGTH bytes.
104 2006-06-21 Richard Guenther <rguenther@suse.de>
106 * ggc-page.c (extra_order_size_table): Add var_ann_d,
107 tree_ssa_name, bitmap_element and phi_node with 4 arguments
110 2006-06-21 Richrad Guenther <rguenther@suse.de>
112 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
113 Limit iteration over the dominators.
115 2006-06-20 Roger Sayle <roger@eyesopen.com>
117 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
118 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
120 2006-06-20 Richard Guenther <rguenther@suse.de>
121 Michael Matz <matz@suse.de>
123 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
125 * alloc-pool.c (free_alloc_pool_if_empty): New function.
126 * et-forest.h (et_free_pools): Prototype new function.
127 * et-forest.c (et_free_tree_force): Free parent occurrence.
128 (et_free_pools): New function.
129 * dominance.c (free_dominance_info): Free et-forest alloc
132 2006-06-20 Roger Sayle <roger@eyesopen.com>
134 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
135 integer modes, attempt to directly construct an integer constant.
137 * fold-const.c (native_encode_vector): Determine the size of each
138 element from the vector type instead of the first vector element.
140 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
141 if all of its elements/components are constant.
142 (build_constructor_from_list): Likewise.
144 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
146 PR tree-optimization/27331
147 * tree-data-ref.c (free_data_ref): New function.
148 (create_data_ref): Fail if the data reference has unknown access
150 (free_data_refs): Use free_data_ref.
152 2006-06-19 Andrew Pinski <pinskia@gmail.com>
155 * tree-inline.c (setup_one_parameter): Strip useless
156 type conversion before adding it to the IR.
157 (declare_return_variable): Likewise.
159 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
162 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
164 2006-06-19 Mike Stump <mrs@apple.com>
166 * tree.c (variably_modified_type_p): VM arguments don't make the
169 2006-06-19 Richard Guenther <rguenther@suse.de>
171 * tree-ssa-pre.c (try_combine_conversion): Strip useless
172 type conversions after folding.
174 2006-06-19 Richard Guenther <rguenther@suse.de>
176 * ggc-page.c (extra_order_size_tab): Add entries with
177 size of struct function and basic_block.
178 (size_lookup): Extend to cover sizes up to 511.
179 (ggc_alloc_stat): Adjust user.
180 (ggc_pch_count_object): Likewise.
181 (ggc_pch_alloc_object): Likewise.
182 (ggc_pch_write_object): Likewise.
184 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
186 * tree-ssa-loop-niter.c (implies_ge_p): New function.
187 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
190 2006-06-19 Denis Chertykov <denisc@overta.ru>
192 * config/avr/libgcc.S : Correct my wrong previous commit.
194 2006-06-19 Roger Sayle <roger@eyesopen.com>
197 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
198 have stripped a SUBREG from the shift count, so we may need to
199 convert_to_mode back to the type's mode before calling make_tree.
200 Use new_amount instead of amount to avoid expanding a tree twice.
202 2006-06-19 Richard Guenther <rguenther@suse.de>
205 * fold-const.c (operand_equal_p): Check if the argument types
206 have the same precision before stripping NOPs.
208 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
210 Fix PR tree-optimization/27341
211 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
213 * tree-complex.c (pass_lower_complex): Update SMT usage.
215 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
217 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
218 Add a new alternative to the constraint strings. Add move of
219 operand 1 to 3 to the splitter definition.
220 ("doloop_si_long"): Second contraint alternative removed.
222 2006-06-08 Anatoly Sokolov <aesok@post.ru>
224 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
225 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
227 (AVR_HAVE_MOVW) Define.
228 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
229 (ASM_SPEC): Add avr25.
230 (LINK_SPEC): Add avr25.
231 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
232 (base_arch_s): Add new member 'have_movw_lpmx'.
233 (avr_arch_types): Init 'have_movw_lpmx'.
234 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
235 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
236 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
237 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
238 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
240 (avr_file_start): Do not output '.arh' derective.
241 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
242 (__do_copy_data): Use __AVR_HAVE_LPMX__.
243 * config/avr/avr.md (mcu_enhanced): Delete.
244 (mcu_have_movw): Define.
245 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
246 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
247 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
248 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
249 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
250 attiny861 and at86rf401 devices.
252 2006-06-18 Jie Zhang <jie.zhang@analog.com>
254 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
257 2006-06-17 Karl Berry <karl@gnu.org>
259 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
260 doc/gccint.texi, doc/install.texi (@dircategory): Use
261 "Software development" instead of "Programming", following
262 the Free Software Directory.
264 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
266 * config/i386/i386.c (legitimate_tls_address)
267 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
268 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
269 (*tls_dynamic_gnu2_combine_64): Likewise.
271 2006-06-16 Richard Guenther <rguenther@suse.de>
274 * fold-const.c (negate_expr_p): Do not introduce undefined
275 overflow in negating INTEGER_CSTs.
276 (fold_negate_expr): Rename from negate_expr. Revert last
277 change for folding BIT_NOT_EXPR. Change semantics to
278 return NULL_TREE for non-simplified negations. Do not
279 strip type conversions and unify type handling.
280 (negate_expr): New function, wrap around fold_negate_expr
281 but ensure building a tree always. Strip type conversions
282 here, fold to result type.
283 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
285 2006-06-16 Roger Sayle <roger@eyesopen.com>
288 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
289 that (would) return their results in stack registers.
291 2006-06-16 Michael Matz <matz@suse.de>
292 Richard Guenther <rguenther@suse.de>
294 * fold-const.c (fold_truthop): Only return new tree node if
295 we canonicalized something.
297 2006-06-16 Richard Guenther <rguenther@suse.de>
299 * function.h (enum function_frequency): Move declaration
300 out of struct function.
301 (struct function): Move bool fields and the enum to the bitfield
302 section. Reorder elements to avoid padding. Remove unused
303 fields left over from the RTL inliner removal.
304 * function.c (free_after_compilation): Do not zero removed fields.
305 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
306 (ipa-type-escape.o): Likewise.
308 2006-06-16 Richard Guenther <rguenther@suse.de>
310 * cgraph.h (struct cgraph_local_info): Turn bool elements
312 (struct cgraph_node): Likewise.
313 (struct cgraph_varpool_node): Likewise.
315 2006-06-15 Richard Guenther <rguenther@suse.de>
317 * fold-const.c (fold_truth_not_expr): Rename from
318 invert_truthvalue. Give it fold_* semantics to avoid
320 (invert_truthvalue): New function. Wrapper around
322 (optimize_minmax_comparison): Avoid creating garbage.
323 (fold_unary): Use fold_truth_not_expr for folding
325 (fold_ternary): Replace uses of invert_truthvalue with
326 fold_truth_not_expr where applicable.
327 * tree.h (fold_truth_not_expr): Prototype.
329 2006-06-16 Richard Guenther <rguenther@suse.de>
331 PR tree-optimization/27781
332 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
333 * ipa-pure-const.c (target.h): Include.
334 (analyze_function): Do not analyze functions that do not
337 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
340 * tree-dfa.c (referenced_vars_dup_list): Remove.
341 (find_referenced_vars): Remove assert.
342 (referenced_var_check_and_insert): Replace dup list with assert.
343 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
344 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
346 2006-06-15 Richard Guenther <rguenther@suse.de>
348 * tree-ssa-structalias.c (alias_get_name): Avoid creating
349 extra unused identifiers if not dumping.
350 (create_variable_info_for): Likewise.
352 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
354 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
355 (derive_constant_upper_bound): Derive more precise upper bound in
356 common cases. Return type changed to double_int.
357 (record_estimate): Reflect the changed return type of
358 derive_constant_upper_bound.
359 * double-int.c (double_int_zext, double_int_sext): Fix.
361 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
363 * configure.ac (CFLAGS): Get them from the toplevel or from the
364 configure invocation.
365 * configure: Regenerate.
366 * Makefile.in (CFLAGS): Substitute value provided by configure.
368 2006-06-14 Mark Mitchell <mark@codesourcery.com>
371 * c-common.h (c_finish_omp_atomic): Adjust declaration.
372 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
373 rather than calling add_stmt on it.
374 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
376 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
379 * reload1.c (reload): Remove registers returned by update_eliminables
380 from used_spill_regs.
382 2006-06-13 DJ Delorie <dj@redhat.com>
384 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
386 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
388 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
389 html__strip_dir, html__mkdir_p. Enhance install-html target.
390 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
391 * configure: Regenerate.
393 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
395 * fold-const.c (fold_cond_expr_with_comparison): Check for
396 Objective-C++ as language in deciding COND_EXPR transformation.
398 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
401 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
402 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
403 * config/sh/lib1funcs.h (SL, SL1): Define.
404 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
405 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
406 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
407 (OBJS_Os_4_200): New variable.
408 ($(T)libgcc-Os-4-200.a): Use it.
409 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
410 when dividing 1 and/or by 0.
412 2006-06-13 Roger Sayle <roger@eyesopen.com>
414 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
415 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
416 * configure: Regenerate.
418 2006-06-13 Jie Zhang <jie.zhang@analog.com>
420 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
421 for real instruction.
423 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
426 * haifa-sched.c (check_cfg): Handle special case.
428 2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
431 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
432 Add debug_info parameter. Chain the vars to the BLOCK instead
433 of the BIND_EXPR if debug info are requested for them.
434 (pop_gimplify_context): Adjust for above change.
435 (gimple_add_tmp_var): Likewise.
436 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
438 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
439 (convert_local_reference): Likewise.
440 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
441 (finalize_nesting_tree_1): Request that debug info be emitted
444 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
446 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
449 2006-06-13 Richard Guenther <rguenther@suse.de>
452 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
454 2006-06-13 Richard Guenther <rguenther@suse.de>
456 PR tree-optimization/27830
457 * tree-inline.c (copy_body_r): For copying the operand
458 of an ADDR_EXPR make sure to fold &* afterwards.
460 2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
462 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
463 lvalues in the fb_none case with side-effects.
465 2006-06-12 Kazu Hirata <kazu@codesourcery.com>
467 * tree-flow.h: Remove the prototype for
468 compute_phi_arg_on_exit.
469 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
470 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
473 2006-06-12 Mark Shinwell <shinwell@codesourcery.com>
475 * builtins.c (expand_builtin_return_addr): Only use
476 frame_pointer_rtx when count == 0 and we are expanding
477 __builtin_return_address.
479 2006-06-12 Fred Fish <fnf@specifix.com>
481 * config/mips/mips.c (mips_file_start): Create special section
482 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
484 2006-06-11 Eric Christopher <echristo@apple.com>
487 * stor-layout.c (place_field): Remove check for
488 remaining_in_alignment when aligning at the end of a run.
490 2006-06-11 Eric Christopher <echristo@apple.com>
493 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
496 2006-06-11 Roger Sayle <roger@eyesopen.com>
499 Revert incorrect fix for PR target/27158
500 2006-05-08 Roger Sayle <roger@eyesopen.com>
501 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
502 of a reg_equiv_constant if the result is a legitimate constant.
504 2006-06-11 Roger Sayle <roger@eyesopen.com>
507 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
508 extract a CONST_VECTOR element and interpret it as an integer.
509 (vspltis_constant): Use const_vector_elt_as_int instead of the
510 macro CONST_VECTOR_ELT in order to handle FP vector modes.
511 * config/rs6000/predicates.md (easy_vector_const): Consider
512 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
514 2006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
517 * stor-layout.c (update_alignment_for_field): Don't add extra
518 alignment for packed non-bitfield fields in ms_bitfield_layout_p
521 2006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
523 * config/mips/t-rtems: Add EL/EB multilib variants.
525 2006-06-09 Mike Stump <mrs@apple.com>
527 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
529 2006-06-09 David Daney <ddaney@avtrex.com>
531 * doc/install.texi: Add binutils version recommendation for mips-*-*.
533 2006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
535 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
537 2006-06-09 Richard Guenther <rguenther@suse.de>
539 PR tree-optimization/26998
540 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
541 of signed types, only TYPE_MIN_VALUE is special, but for both,
542 minimum and maximum value. Likewise VR_ANTI_RANGE is special
543 in this case, as is -fwrapv.
545 2006-06-08 Mike Stump <mrs@apple.com>
548 * config/darwin.c (darwin_asm_output_anchor): Disable
549 -fsection-anchors on darwin for now.
550 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
551 * rs6000/rs6000.c (optimization_options): Likewise.
553 2006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
556 * config/i386/i386.c (classify_argument): Skip fields with invalid
559 2006-06-08 Steven Bosscher <steven@gcc.gnu.org>
561 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
562 (cse_insn): Likewise for the stack_pointer_rtx.
564 2006-06-08 Roger Sayle <roger@eyesopen.com>
566 * tree-ssa-dom.c (record_conditions): Only record "unordered"
567 conditions from floating point comparisons.
569 2006-06-08 Paolo Bonzini <bonzini@gnu.org>
572 * expmed.c (struct alg_hash_entry): Fix type of field T
573 to match synth_mult argument.
574 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
576 2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
579 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
582 2006-06-08 Richard Guenther <rguenther@suse.de>
585 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
586 only, if overflow is defined and not trapping.
587 (negate_expr): Likewise.
589 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
591 PR tree-optimization/27872
592 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
593 flag on the new exit edge of the unrolled loop.
595 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
597 PR rtl-optimization/26449
598 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
600 2006-06-07 Andrew MacLeod <amacleod@redhat.com>
603 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
604 referenced_variables with matching DECL_UID's.
605 (find_referenced_vars): Make sure duplicate list is empty to start.
606 (referenced_var_p): Remove.
607 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
608 Check if var is in the list, and add if needed. Update the duplicate
609 list if a different var is in the list with the same DECL_UID.
610 (add_referenced_var): Call routine to check and insert.
611 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
612 * tree-flow.h (referenced_vars_dup_list): External declaration.
614 2006-06-07 Fred Fish <fnf@specifix.com>
616 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
619 2006-06-07 Paolo Bonzini <bonzini@gnu.org>
622 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
623 the imaginary and real parts of a clobbered register.
624 Emit insn to set the imaginary part.
626 2006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
628 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
629 in lieu of unwind-dw2-fde.c.
631 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
633 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
635 2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
638 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
639 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
640 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
641 V4SImode temporaries and operations instead.
643 2006-06-06 Joseph S. Myers <joseph@codesourcery.com>
645 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
648 2006-06-06 Mike Stump <mrs@apple.com>
650 * Makefile.in: Rename to htmldir to build_htmldir to avoid
651 installing during build.
653 2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
655 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
657 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
658 * config/ia64/ia64.c (params.h): New header.
659 (ia64_optimization_options): New function to adjust parameters.
660 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
661 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
662 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
664 2006-06-05 Kazu Hirata <kazu@codesourcery.com>
666 * stor-layout.c (debug_rli): Fix a typo in a debug message.
668 2006-06-05 Steve Ellcey <sje@cup.hp.com>
671 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
673 2006-06-05 Dorit Nuzman <dorit@il.ibm.com>
674 Victor Kaplansky <victork@il.ibm.com>
676 PR tree-optimization/26360
677 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
680 2006-06-04 Roger Sayle <roger@eyesopen.com>
681 Andrew Pinski <pinskia@physics.uc.edu>
684 * c-common.c (c_common_truthvalue_conversion): Explicitly check
685 for LABEL_DECL before calling DECL_WEAK.
688 * c-typeck.c (build_binary_op): Likewise, explicitly check for
689 LABEL_DECL and PARM_DECL.
691 2006-06-05 Joseph S. Myers <joseph@codesourcery.com>
695 * c-decl.c (grokdeclarator): Disallow variably modified types at
696 file scope. Avoid marking shared array type of constant size as
699 2006-06-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
702 * c-common.c (fold_offsetof_1): Handle static members.
704 2006-06-04 Eric Christopher <echristo@apple.com>
706 * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
707 (debug_rli): Output value for remaining_in_alignment.
708 (update_alignment_for_field): Unconditionalize
709 ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
710 extra alignment code.
711 (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
712 ms_bitfield_layout_p code. Rewrite handling of structure fields.
713 * tree.h (record_layout_info_s): Remove prev_packed.
714 * doc/extend.texi (ms_struct): Add documentation of format.
716 2006-06-04 Mark Shinwell <shinwell@codesourcery.com>
718 * tree.h: Declare folding_initializer.
719 * builtins.c (fold_builtin_constant_p): Give definite answer
720 if folding inside an initializer.
721 * fold-const.c: Define folding_initializer.
722 (START_FOLD_INIT): Save and then set folding_initializer.
723 (END_FOLD_INIT): Restore folding_initializer.
725 2006-06-04 Richard Guenther <rguenther@suse.de>
727 PR tree-optimization/27039
728 * fold-const.c (fold_comparison): Handle pointer comparison
729 again for all comparison codes. Compare offsets in signed
731 (fold_binary): Move code from here.
733 2006-06-03 Roger Sayle <roger@eyesopen.com>
736 * config/i386/i386.c (construct_container): Split static issued_error
737 flag into issued_sse_arg_error, issued_sse_ret_error and
738 issued_x87_ret_error. Issue a daignostic if the x86-64 ABI
739 requires the use of x87 registers and the user explicitly
740 specified the -mno-80387 command line option.
742 2006-06-02 Geoffrey Keating <geoffk@apple.com>
744 * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
745 HAVE_DECL_SIGALTSTACK.
747 (segv_handler): Use MC_FLD.
748 * configure.ac: Check for a sigaltstack declaration.
749 Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
750 * configure: Regenerate.
751 * config.in: Regenerate.
753 2006-06-03 J"orn Rennecke <joern.rennecke@st.com>
756 * Makefile.in (stmp-fixinc): Fix typo.
758 2006-06-02 Roger Sayle <roger@eyesopen.com>
760 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
761 are type correct. Clean-up.
762 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
763 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
765 2006-06-01 DJ Delorie <dj@redhat.com>
767 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
768 shift, as we've disabled the "switch" insn that needs it.
770 2006-06-01 Per Bothner <bothner@bothner.com>
772 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
773 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
774 * c-ppoutput.c (cb_define): Don't increment line 0.
776 2006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
778 * doc/invoke.texi: Add cpu_type power6.
779 * config.gcc: Add cpu_type power6.
780 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
781 to power5+ with Altivec.
782 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
783 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
785 2006-05-30 Anatoly Sokolov <aesok@post.ru>
787 * config/avr/avr.h (SET_ASM_OP): Define.
789 2006-06-01 Kazu Hirata <kazu@codesourcery.com>
791 * config/bfin/bfin.c: Fix comment typos.
793 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
796 * doc/install.texi: Document --enable-bootstrap and
799 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
801 * doc/install.texi: Document that InfoZIP can replace jar.
803 2006-05-31 Roger Sayle <roger@eyesopen.com>
805 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
806 isn't available, directly generate the simpler x87 patterns without
807 the (use (const_int 0)).
808 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
809 implementation isn't available.
810 (*negdf2_1): Likewise.
811 (*negxf2_1): XF mode negation is always done using the x87.
812 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
814 2006-05-31 Roger Sayle <roger@eyesopen.com>
816 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
817 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
819 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
821 2006-05-31 Jie Zhang <jie.zhang@analog.com>
823 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
824 * config/bfin/bfin.c (basic-block.h): Include.
825 (struct machine_function): New.
826 (bfin_init_machine_status): New.
827 (override_options): Initialize init_machine_status.
828 (bfin_hardware_loop): New.
829 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
830 (DEF_VEC_P (loop_info)): New.
831 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
832 (struct loop_info): New.
833 (loop_info): New typedef.
834 (struct loop_work): New.
835 (loop_work): New typedef.
836 (DEF_VEC_O (loop_work)): New.
837 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
838 (bfin_dump_loops): New.
839 (bfin_bb_in_loop): New.
840 (bfin_scan_loop): New.
841 (bfin_optimize_loop): New.
842 (bfin_reorg_loops): New.
843 (bfin_reorg): Use bfin_reorg_loops.
844 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
846 (I_REGNO_P): Simplify.
847 (DP_REGNO_P, DPREG_P): New macros.
848 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
849 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
850 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
851 Add LT_REGS, LC_REGS, LB_REGS.
852 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
854 (REGNO_REG_CLASS): Deal with loop registers.
855 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
857 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
858 New constants for loop registers.
859 (UNSPEC_LSETUP_END): New.
860 (seq_insns): New define_attr. Set it for appropriate insns.
861 (movsi_insn): Add alternatives for move from/to
862 loop count registers.
863 (doloop_end): New define_expand.
864 (loop_end): New define_insn.
865 (define_split for bad doloop_end): New.
866 (lsetup_with_autoinit): New define_insn.
867 (lsetup_without_autoinit): New define_insn.
868 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
869 * config/bfin/predicates.md (lc_register_operand): New.
870 (lt_register_operand): New.
871 (lb_register_operand): New.
872 (nondp_register_operand): New.
873 (nondp_reg_or_memory_operand): New.
874 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
876 2006-05-31 Jie Zhang <jie.zhang@analog.com>
878 * config/bfin/bfin.c (bfin_delegitimize_address): New.
879 (TARGET_DELEGITIMIZE_ADDRESS): Define.
881 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
883 * Makefile.in (CATALOGS): Add po/ prefix.
884 * configure: Regenerated.
886 2006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
889 * arm.c (arm_print_operand case 'S'): Validate that the operand is
890 a shift operand before calling shift_op. Avoid redundant call of
893 2006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
894 DJ Delorie <dj@redhat.com>
896 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
897 we're inserting is a singlt-bit constant.
899 2006-05-30 Roger Sayle <roger@eyesopen.com>
901 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
902 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
904 2006-05-30 Roger Sayle <roger@eyesopen.com>
906 PR tree-optimization/23452
907 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
908 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
909 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
910 complex values and with -ffast-math for FP complex values.
912 2006-05-30 Kazu Hirata <kazu@codesourcery.com>
914 * c-common.h: Remove the prototype for yyparse.
915 * rtl.h: Remove the prototype for init_loop.
917 2006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
919 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
922 2006-05-30 Roger Sayle <roger@eyesopen.com>
924 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
926 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
927 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
929 2006-05-30 Dirk Mueller <dmueller@suse.de>
932 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
933 for CONSTANT_CLASS_P expresisons.
935 2006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
938 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
940 2006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
942 PR tree-optimization/27779
943 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
944 initial_condition instead of CHREC_LEFT.
946 2006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
948 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
949 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
950 Make prototypes ISO C90.
952 2006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
953 Leehod Baruch <leehod.baruch@weizmann.ac.il>
955 * see.c (see_analyze_one_def): Correct check.
956 (see_get_extension_data): Check if extension is parallel.
957 (see_get_extension_reg): Likewise.
959 2006-05-30 Uros Bizjak <uros@kss-loka.si>
962 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
963 into register for (code == GTU).
965 2006-05-29 Roger Sayle <roger@eyesopen.com>
967 PR tree-optimization/24964
968 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
969 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
970 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
971 abs(x)*abs(x) as x*x for scalar floating point modes.
973 2006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
976 * lambda-code.c (perfect_nestify): Don't copy statements
977 in the inner loop: move them to the inner loop header.
979 2006-05-29 Diego Novillo <dnovillo@redhat.com>
982 * c-tree.texi: Document OpenMP directives and clauses.
984 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
986 * varasm.c (globalize_decl): Fix indentation.
988 2006-05-29 Diego Novillo <dnovillo@redhat.com>
991 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
992 pass_fre, pass_store_ccp, pass_copy_prop,
993 pass_store_copy_prop, pass_merge_phi, pass_nrv,
994 pass_return_slot, pass_object_size, pass_lim,
995 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
996 pass_loop_prefetch and pass_stdarg.
998 2005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
1000 * config/bfin/bfin.opt (mfdpic): New option.
1001 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
1002 (EXTRA_MULTILIB_PARTS): Likewise.
1003 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
1004 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
1006 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
1007 (CRT_CALL_STATIC_FUNCTION): New.
1008 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
1010 (CRT_CALL_STATIC_FUNCTION): New.
1011 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
1013 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
1014 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
1015 (initialize_trampoline): Changed to handle FD-PIC code generation.
1016 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
1017 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
1018 (override_options): Disallow -mid-shared-library -mfdpic combination.
1019 Can't do unaligned ops if FD-PIC.
1020 Turn off flag_pic if trying to generate non-id-shared-library
1021 non-fdpic code, since it's not supported.
1022 (bfin_assemble_integer): New function.
1023 (TARGET_ASM_INTEGER): Define.
1024 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
1026 * config/bfin/crtn.s: Restore them.
1027 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
1029 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1030 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
1031 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
1032 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
1033 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
1035 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
1036 FDPIC_REGS and FDPIC_FPTR_REGS.
1037 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
1038 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
1039 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
1040 (load_funcdescsi): New pattern.
1041 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
1042 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
1043 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
1045 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
1047 * gcse.c, rtlanal.c: Remove obsolete comments associated with
1050 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
1052 * tree-flow.h: Remove the prototype for add_type_alias.
1053 * tree-ssa-alias.c (add_type_alias): Remove.
1055 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
1057 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
1058 config/fr30/fr30.md, config/i386/i386-interix.h,
1059 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
1060 config/sh/superh64.h, config/v850/v850.c, df-core.c,
1061 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
1062 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
1063 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
1064 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
1065 Follow spelling conventions.
1066 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
1067 Follow spelling conventions.
1069 2006-05-27 Richard Guenther <rguenther@suse.de>
1072 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
1073 to produce a constant of value 1 of generic type.
1075 2006-05-27 Dirk Mueller <dmueller@suse.de>
1077 * cgraphunit.c (decide_is_function_needed): Fix wrong
1080 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
1082 PR rtl-optimization/27661
1083 * reload.c (find_reloads): When reloading a VOIDmode constant
1084 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
1085 use Pmode as mode of the reload register.
1087 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
1089 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
1090 is enabled at -O and above.
1092 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
1095 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
1098 2006-05-25 Mark Mitchell <mark@codesourcery.com>
1101 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
1102 for anonymous variables explicitly declared by front ends.
1104 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
1106 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
1107 (struct alias_info): Add new field ref_all_symbol_mem_tag.
1108 * tree-ssa-alias.c (compute_may_aliases): If the program contains
1109 ref-all pointers, run a finalization pass for them.
1110 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
1111 (finalize_ref_all_pointers): New function.
1112 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
1113 regular pointer type to a ref-all pointer type.
1114 (get_tmt_for): Return the special memory tag for ref-all pointers.
1116 2006-05-25 Richard Guenther <rguenther@suse.de>
1119 * fold-const.c (fold_binary): Do not look at the stripped
1120 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
1122 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
1124 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
1125 for LT and GT if the computed range is effectively empty.
1127 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1130 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
1131 mips_quad_format formats instead of ieee_single_format,
1132 ieee_double_format and ieee_quad_format formats, respectively.
1134 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
1136 PR tree-optimization/27639
1137 PR tree-optimization/26719
1138 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
1139 call to scev_probably_wraps_p.
1140 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
1141 used_in_pointer_arithmetic_p, convert_step): Removed.
1142 (nowrap_type_p): New function.
1143 (scev_probably_wraps_p): Rewritten.
1144 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
1145 chrec_convert if chrec_convert_aggressive might have been used.
1146 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
1147 scev_direction): New functions.
1148 (chrec_convert): Changed to a wrapper over chrec_convert_1.
1149 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
1150 instead of convert_step.
1151 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
1152 (convert_step): Declaration removed.
1153 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
1155 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
1157 * df-core.c: Added to header comments.
1158 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
1159 df_ur_bb_info, df_urec_bb_info): Added comments.
1160 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
1161 urec, ri problems): Fixed header comments.
1162 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
1163 code from df_rd_transfer_function.
1165 2006-05-23 Richard Sandiford <richard@codesourcery.com>
1167 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
1168 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
1169 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
1171 2006-05-23 Joseph Myers <joseph@codesourcery.com>
1173 * expr.c (undefined_operand_subword_p): New.
1174 (emit_move_multi_word): Do not generate move from undefined bits
1175 of a paradoxical subreg.
1177 2006-05-23 Richard Sandiford <richard@codesourcery.com>
1179 PR rtl-optimization/27736
1180 * combine.c (replaced_rhs_value): New variable.
1181 (combine_instructions): Set it.
1182 (distribute_notes): When distributing a note in replaced_rhs_insn,
1183 check whether the value was used in replaced_rhs_value.
1185 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
1188 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
1189 add_referenced_var instead of add_referenced_tmp_var.
1190 * tree-complex.c (create_one_component_var): Use add_referenced_var.
1191 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
1193 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
1194 tree_optimize_tail_calls_1): Use add_referenced_var.
1195 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
1196 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
1197 Use add_referenced_var.
1198 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
1199 * gimplify.c (force_gimple_operand): Use add_referenced_var.
1200 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
1201 Use add_referenced_var.
1202 * tree-dfa.c (struct walk_state): Remove.
1203 (find_referenced_vars): Remove walk state and vars_found hash table.
1204 (make_rename_temp): Use add_referenced_var.
1205 (find_vars_r): Pass less parameters to add_referenced_var.
1206 (referenced_var_p): New. Is var in referenced_var hash table.
1207 (referenced_var_insert): Assert var isn't already in hash table.
1208 (add_referenced_var): Don't need walk_state parameter. Add var if it
1209 isn't already in the hash table.
1210 (add_referenced_tmp_var): Remove.
1211 (find_new_referenced_vars_1): Use add_referenced_var.
1212 * tree-ssa-pre.c (create_expression_by_pieces,
1213 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
1214 Use add_referenced_var.
1215 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
1216 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
1217 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
1219 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
1220 vect_create_data_ref_ptr, vect_create_destination_var,
1221 vect_init_vector, vect_build_loop_niters,
1222 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
1223 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
1224 Use add_referenced_var.
1225 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
1226 * tree-flow.h (add_referenced_tmp_var): Remove prototype
1227 (add_referenced_var): Add prototype.
1228 * tree-ssa-structalias.c (get_constraint_for,
1229 intra_create_variable_infos): Use add_referenced_var.
1231 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
1233 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
1234 big-endian paradoxical subregs.
1235 * var-tracking.c (struct micro_operation_def): Document that,
1236 for modify micro operations, insn is the subsequent instruction.
1237 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
1238 (var_reg_set, var_mem_set): ... new functions.
1239 (add_stores): Record subsequent insn.
1240 (compute_bb_dataflow): Use new functions for MO_USE.
1241 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
1242 notes after the insn, and modify notes before the insn known
1243 to be the subsequent one.
1244 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
1246 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
1249 * config/i386/i386.c (ix86_expand_builtin): Use
1250 gen_sse3_monitor64 for TARGET_64BIT.
1252 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
1254 PR rtl-optimization/26375
1255 PR rtl-optimization/26855
1256 * df-problems (df_ru_bb_local_compute_process_def): Removed update
1258 (df_ru_bb_local_compute): Reversed statements and removed bogus
1259 comment explaining why they should be in wrong order.
1260 (df_ru_dump, df_rd_dump): Enhanced debug info.
1261 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
1263 * ddg.c (add_deps_for_def): Converted use of reaching defs to
1264 reaching uses and fixed space problem.
1266 2006-05-23 Jan Hubicka <jh@suse.cz>
1268 * cgraphunit.c (decide_is_function_needed): Also nested functions
1269 and functions declared inline can be optimized out at -O0.
1271 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
1273 * doc/install.texi (Configuration): Remove reference to CrossGCC
1277 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
1280 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
1281 ix86_compare_emitted is non-NULL.
1283 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1286 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
1289 2006-05-22 Richard Sandiford <richard@codesourcery.com>
1291 PR rtl-optimization/25514
1292 * combine.c (replaced_rhs_insn): New variable.
1293 (combine_instructions): Set replaced_rhs_insn when trying to replace
1294 a SET_SRC with a REG_EQUAL note.
1295 (distribute_notes): Use replaced_rhs_insn when determining the live
1296 range of a REG_DEAD register.
1298 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
1299 Anatoly Sokolov <aesok@post.ru>
1301 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
1302 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
1303 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
1304 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
1305 atmega3290, atmega649, atmega6490, atmega406, atmega640,
1306 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
1307 at90usb647, at90usb1286 and at90usb1287 devices.
1308 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1309 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1311 2006-05-22 Richard Sandiford <richard@codesourcery.com>
1313 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
1315 2006-05-22 Richard Guenther <rguenther@suse.de>
1318 2006-01-31 Richard Guenther <rguenther@suse.de>
1319 Paolo Bonzini <bonzini@gnu.org>
1321 * doc/install.texi (--disable-libgcc-math): Document.
1323 2006-05-22 Richard Guenther <rguenther@suse.de>
1326 2006-01-31 Richard Guenther <rguenther@suse.de>
1328 * doc/invoke.texi (-msselibm): Document.
1329 * target.h (expand_library_builtin): New target hook.
1330 * builtins.c (expand_builtin): Use expand_library_builtin.
1331 (default_expand_library_builtin): New function.
1332 * gcc.c (LINK_GCC_MATH_SPEC): Define.
1333 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
1334 (link_gcc_math_spec): Declare.
1335 (static_specs): Add link_gcc_math_spec.
1336 * expr.h (default_expand_library_builtin): Declare.
1337 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
1338 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
1339 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
1340 * config/i386/i386.opt (msselibm): New target option.
1341 * config/i386/i386.c (ix86_builtin_function_variants): New array.
1342 (ix86_init_sse_abi_builtins): New function.
1343 (ix86_expand_library_builtin): Likewise.
1344 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
1345 (override_options): Handle error conditions wrt -msselibm.
1346 (ix86_builtins): Add function codes for SSE2 ABI builtins.
1347 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
1348 * doc/extend.texi (__builtin_sse2_*): Document new target specific
1351 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1354 * c-common.c (self_promoting_args_p): Skip erroneous args.
1357 * c-decl.c (finish_struct): Skip erroneous fields.
1359 2006-05-22 Nick Clifton <nickc@redhat.com>
1361 * config/cris/cris.opt (march): Remove VarExists attribute.
1362 (max-stackframe=): Likewise.
1364 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
1366 * doc/rtl.texi: Fix a typo.
1367 * see.c: Fix comment typos.
1369 * tree-ssa-structalias.h (alias_info): Remove num_references.
1371 2006-05-21 Mike Stump <mrs@apple.com>
1373 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
1375 (darwin_pragma_options): Use BAD instead.
1376 (darwin_pragma_unused): Likewise.
1377 (darwin_pragma_ms_struct): Likewise.
1379 2006-05-21 David Edelsohn <edelsohn@gnu.org>
1381 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
1383 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
1385 PR rtl-optimization/27671
1386 * simplify-rtx.c (simplify_relational_operation_1): Fix
1387 simplifications of (eq/ne (xor x y) y) and
1388 (eq/ne (xor x y) x).
1390 PR tree-optimization/26622.
1391 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
1394 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
1396 * tree-cfg.c: Prune whitespace.
1397 (debug_tree_cfg): Point to correct header containing the
1400 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
1403 * cgraphunit.c (verify_cgraph_node): Typo in error message.
1405 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
1408 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
1409 or sorry count is non zero.
1411 2006-05-20 Andreas Schwab <schwab@suse.de>
1413 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
1415 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
1416 Kenneth Zadeck <zadeck@naturalbridge.com>
1418 PR rtl-optimization/26855
1420 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
1422 (df_scan_alloc): Added code to properly handle multiword hard
1423 registers and add all_blocks parameter.
1424 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
1425 code to properly handle multiword hard registers.
1426 (df_rescan_blocks): Added code to remove deleted blocks from
1428 (df_ref_create_structure, df_ref_record): Added code to properly
1430 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
1431 and set DF_REF_PARTIAL.
1432 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
1433 (df_uses_record): Added DF_REF_PARTIAL for subreg.
1434 (df_scan_add_problem): Added flags parameter.
1435 (df_ref_create_structure): Changed switching structure.
1436 (df_bb_refs_record): Fixed case where duplicate artificial refs
1437 were created. Changed location of flags.
1438 (df_record_entry_block_defs): Added code to make stack pointer
1439 live in entry block. Refined cases where frame pointer is needed.
1440 Changed location of flags.
1441 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
1442 (df_set_state): Removed function.
1443 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
1444 df_insn_create_insn_record, df_insn_refs_delete,
1445 df_ref_create_structure): Formatting changes.
1446 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
1447 df_delete_basic_block): New function.
1448 (df_init): Changed location of flags.
1449 (df_add_problem): Added flags parameter and the way flags are
1451 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
1452 debug_df_chain): Improved debugging output.
1453 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
1454 (df_refs_chain_dump): Removed df parameter.
1455 (df_iterative_dataflow): Added consistency check.
1456 (df_prune_to_subcfg): Made public.
1457 (df_analyze_problem): Added blocks_to_init parameter and made
1459 (df_ref_record, df_bb_refs_record, df_mark_reg,
1460 df_record_exit_block_uses): Whitespace changes.
1461 (df_dump): Whitespace changes.
1462 * df.h: Some reordering to remove forward references.
1463 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
1464 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
1465 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
1466 (dataflow.flags): New field.
1467 (df.flag): Deleted field.
1468 (df_alloc_function): Added additional bitmap parameter.
1469 (df_dependent_problem_function): New type.
1470 (df_problem.changeable_flags): New field.
1471 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
1472 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
1473 (df_mw_hardreg): New struct.
1474 (DF_INSN_UID_MWS): New macro.
1475 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
1477 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
1478 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
1479 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
1480 (df_set_state): Removed function.
1481 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
1482 * df-problems.c (df_chain_dump): Removed df parameter.
1483 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
1484 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
1486 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
1487 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
1488 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
1489 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
1490 DF_REF_MUST_CLOBBER cases.
1491 (df_ru_bb_local_compute_process_def,
1492 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
1493 df_lr_bb_local_compute, df_ur_bb_local_compute,
1494 df_chain_create_bb): Made subreg aware.
1495 (df_ru_bb_local_compute, df_rd_bb_local_compute,
1496 df_lr_bb_local_compute, df_lr_bb_local_compute,
1497 df_chain_create_bb): Cleanup to use proper macros.
1498 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
1499 code to fixup bitvectors.
1500 (df_ri_alloc): Cleared lifetime.
1501 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
1502 df_create_unused_note): New function.
1503 (df_ri_bb_compute, df_ri_compute): Added code to create/update
1504 REG_DEAD and REG_UNUSED notes as well as register information.
1505 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
1506 df_chains_dump): Fixed crash if problem was never run.
1507 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
1508 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
1509 df_ri_add_problem): Processes flags in uniform manner.
1510 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
1511 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
1512 df_rd_dump, df_urec_free_bb_info): Formatting changes.
1513 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
1514 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
1515 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
1516 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
1517 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
1518 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
1519 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
1520 * see.c (see_initialize_data): Ditto.
1521 * final.c (rest_of_clean_state) Added regstack_completed.
1522 * rtl.h (regstack_completed): Ditto.
1523 * reg-stack.c (regstack_completed): Ditto.
1525 2006-05-19 Mike Stump <mrs@apple.com>
1527 * c-tree.h (default_conversion): Remove.
1528 * c-common.h (default_conversion): Add.
1530 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
1532 * tree-vrp.c (valid_value_p): New function.
1533 (adjust_range_with_scev): Fail if the value of bound is not
1536 2006-05-19 Richard Sandiford <richard@codesourcery.com>
1538 * config/mips/linux-unwind.h: Include <asm/unistd.h>
1539 (mips_fallback_frame_state): Use syscall numbers to determine
1540 the appropriate li instruction for the current ABI. Only use
1541 __NR_sigreturn for o32.
1543 2006-05-19 Nicolas Setton <setton@adacore.com>
1545 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
1546 * langhooks.c (lhd_dwarf_name): New function.
1547 * langhooks-def.h (lhd_dwarf_name): Declare.
1548 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
1549 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
1550 * ada/misc.c (gnat_dwarf_name): New function.
1551 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
1553 2006-05-19 Richard Sandiford <richard@codesourcery.com>
1555 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
1557 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
1558 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
1559 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
1560 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
1561 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
1562 determine the size of Wtype, etc.
1563 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
1564 (swfloatfuncs): New variable.
1565 (dwfloatfuncs): Likewise.
1566 (lib2funcs): Remove floating-point conversion functions from
1567 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
1568 the set of conversion routines needed. Allow entries to specify
1569 an object name, filename and word size. Update users accordingly.
1570 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
1571 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
1575 2006-02-08 Roger Sayle <roger@eyesopen.com>
1578 * config/fixtfdi.c: New libgcc source file.
1579 * config/fixunstfdi.c: New source file.
1580 * config/floatditf.c: New source file.
1581 * config/floatunditf.c: New souce file.
1582 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
1583 files above instead of config/mips/_tilib.c.
1584 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
1586 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1588 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
1589 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
1591 2006-05-18 Mike Stump <mrs@apple.com>
1593 Fix up vla, vm and [*] sematics.
1599 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
1600 (c_vla_unspec_p): Add.
1601 (c_vla_type_p): Add.
1602 * c-decl.c (struct c_scope): Add had_vla_unspec.
1603 (build_array_declarator): Add support for [*].
1604 (grokdeclarator): Likewise.
1605 (grokparms): Likewise.
1606 (get_parm_info): Likewise.
1607 * c-objc-common.c (c_vla_unspec_p): Likewise.
1608 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
1609 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
1610 typeof when argument is a variably modified type not inside sizeof or alignof.
1611 (c_parser_direct_declarator_inner): Propagate errors.
1612 (c_parser_sizeof_expression): Add support for [*].
1613 (c_parser_parms_declarator): Initialize had_vla_unspec.
1614 (c_parser_parms_list_declarator): Likewise.
1615 * c-typeck.c (c_vla_type_p): Add.
1616 (composite_type): Add support for vla compositing.
1617 (comptypes_internal): Add support for vla compatibility.
1618 (c_expr_sizeof_expr): Evaluate vla arguments.
1619 * tree.c (variably_modified_type_p): Update comment for [*].
1621 2006-05-18 Michael Matz <matz@suse.de>
1624 * config.host: Make assignments to host_xmake_file cumulative.
1625 * config.host (*-darwin*): Test $host, not $target.
1627 2006-05-12 Stuart Hastings <stuart@apple.com>
1629 * config/i386/i386.opt (-mstackrealign): New flag.
1630 * config/i386/i386.c (force_align_arg_pointer): New attribute.
1631 (ix86_handle_cconv_attribute): Emit error when
1632 force_align_arg_pointer attribute collides with too many regparms.
1633 (ix86_function_regparm): Limit regparms when used with
1634 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
1635 Support stack-realigning prologue in non-main functions. Emit
1636 warning for nested functions under -mstackrealign, emit error for
1637 nested functions with force_align_arg_pointer attribute.
1638 * doc/extend.texi (force_align_arg_pointer): Document it.
1639 * doc/invoke.texi (-mstackrealign): Document it.
1641 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
1643 PR rtl-optimization/27477
1644 * combine.c (try_combine): Don't split a parallel consisting
1645 of two sets into two individual sets if both sets reference
1648 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
1650 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
1651 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
1653 * doc/options.texi (VarExists): Updated.
1655 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1657 * unwind-dw2.c: Add declarations for uw_update_context and
1659 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
1660 detected, advance frame state and context once to skip over stub.
1662 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
1666 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
1667 Call rewrite_into_loop_closed_ssa only when something changed.
1668 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
1669 * lambda-code.c (can_convert_to_perfect_nest): Declared.
1670 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
1671 Test for perfect_nest_p here. Fix formating.
1672 (replace_uses_equiv_to_x_with_y): Fix formating.
1673 (stmt_uses_op): Removed.
1674 (can_convert_to_perfect_nest): Removed loopivs parameter.
1675 Complete the test by checking the scalar dependences.
1676 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
1679 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
1682 From Dan Kegel <dank@kegel.com>:
1683 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
1685 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
1687 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
1688 if the element type is variably modified without recursing.
1690 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
1693 * tree-loop-linear.c (try_interchange_loops): Test for
1694 no data dependences.
1696 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
1698 PR tree-optimization/27548
1699 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
1700 range of ssa names that appear on abnormal edges.
1701 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
1702 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
1704 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
1707 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
1709 2006-05-17 Jakub Jelinek <jakub@redhat.com>
1712 * tree.h (OMP_PARALLEL_COMBINED): Define.
1713 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
1714 (new_omp_context): Add is_combined_parallel argument.
1715 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
1716 new_omp_context caller.
1717 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
1718 Adjust gimplify_scan_omp_clauses callers.
1719 (omp_is_private): Issue errors if iteration variable is firstprivate
1720 or reduction in the current context.
1721 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
1722 on combined parallel workshare constructs.
1724 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
1726 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
1727 (gcc-options.o): New rule.
1729 * optc-gen.awk: Protect variables for gcc-options.o with
1730 #ifdef GCC_DRIVER/#endif.
1732 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
1734 Fix PR tree-optimization/27373
1735 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
1736 (forward_propagate_addr_expr): Update call.
1738 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
1740 * doc/options.texi: Move the Negative option.
1742 2006-05-16 Richard Guenther <rguenther@suse.de>
1744 PR tree-optimization/22303
1745 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
1747 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
1748 ccp_fold did not simplify the statement.
1750 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
1753 * Makefile.in (GCC_OBJS): New.
1754 (OBJS-common): Add opts-common.o.
1755 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
1756 (cpp$(exeext)): Likewise.
1757 (gcc.o): Also depend on opts.h.
1758 (opts-common.o): New.
1760 * common.opt (gcoff): Add Negative(gdwarf-2).
1761 (gdwarf-2): Add Negative(gstabs).
1762 (gstabs): Add Negative(gstabs+).
1763 (gstabs+): Add Negative(gvms).
1764 (gvms): Add Negative(gxcoff).
1765 (gxcoff): Add Negative(gxcoff+).
1766 (gxcoff+): Add Negative(gcoff).
1767 * config/i386/i386.opt (m32): Add Negative(m64).
1768 (m64): Add Negative(m32).
1770 * doc/options.texi: Document the Negative option.
1772 * gcc.c: Include "opts.h".
1773 (main): Call prune_options after expandargv.
1775 * optc-gen.awk: Generate common declarations for all flag
1776 variables in options.c. Output the neg_index field.
1778 * opts.c (find_opt): Moved to ...
1779 * opts-common.c: Here. New file.
1781 * opts.h (cl_option): Add a neg_index field.
1783 (prune_options): Likewise.
1785 2006-05-16 Jakub Jelinek <jakub@redhat.com>
1788 * omp-low.c (expand_omp_parallel): Don't assert
1789 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
1790 instead search for it.
1793 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
1796 2006-05-16 Andreas Schwab <schwab@suse.de>
1798 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
1801 2006-05-15 Roger Sayle <roger@eyesopen.com>
1804 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
1805 integer constants other than zero are only legitimate on TARGET_64BIT.
1806 <CONST_VECTOR> Only zero vectors are legitimate.
1807 (ix86_cannot_force_const_mem): Integral and vector constants can
1808 always be put in the constant pool.
1810 2006-05-16 DJ Delorie <dj@redhat.com>
1812 * crtstuff.c (__dso_handle): Set section from
1813 TARGET_LBIGCC_SDATA_SECTION if defined.
1814 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
1815 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
1817 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
1820 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
1823 2006-05-16 Ben Elliston <bje@au.ibm.com>
1825 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
1827 2006-05-15 Per Bothner <per@bothner.com>
1829 * tree.c: (last_annotated_node): Use source_locus typedef.
1830 This permits bootstrapping with --enable-mapped-location.
1832 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
1834 PR tree-optimization/26830
1835 * tree-into-ssa.c (struct ssa_name_info): Add age field.
1836 (info_for_ssa_name, current_info_for_ssa_name_age,
1837 blocks_to_update): New variables.
1838 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
1839 (clear_ssa_name_info, initialize_flags_in_bb,
1840 mark_block_for_update): New functions.
1841 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
1842 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
1843 prepare_def_site_for): Use mark_block_for_update.
1844 (mark_def_interesting): Assert that the processed block is marked in
1845 blocks_to_update. Do not take blocks argument.
1846 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
1848 (rewrite_update_init_block, rewrite_update_stmt): Only process
1849 blocks with statements to rewrite.
1850 (delete_update_ssa): Do not clear SSA_NAME_AUX.
1851 (update_ssa): Initialize and free blocks_to_update. Do not
1852 clear flags on statements. Do not use blocks bitmap.
1853 * tree.h (SSA_NAME_AUX): Removed.
1854 (struct tree_ssa_name): Removed aux field.
1855 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
1857 2006-05-15 Richard Guenther <rguenther@suse.de>
1859 PR tree-optimization/27603
1860 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1861 Do computations in original type.
1863 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
1865 * see.c: Code style changes such as redundant paranthesis,
1866 redundant intialization of local variables etc.
1867 (see_main): Declared now as static.
1868 * doc/invoke.texi: Update that -fsee is not enabled by
1871 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1873 * omp-low.c (check_omp_nesting_restrictions): New function.
1874 (scan_omp_1): Call it.
1877 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
1878 construct, return *VAR.
1880 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
1882 PR rtl-optimization/27406
1883 * bt-load.c (migrate_btr_def): Skip the block having abnormal
1886 2006-05-14 Roger Sayle <roger@eyesopen.com>
1888 PR rtl-optimization/27538
1889 * combine.c (expand_compound_operation): Call gen_lowpart
1890 before calling simplify_shift_const.
1892 2006-05-14 Roger Sayle <roger@eyesopen.com>
1894 PR rtl-optimization/22563
1895 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
1896 a fixed width bitfield, always force the intermediates into psuedos.
1898 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
1901 * mkconfig.sh: Use operator = instead of == for test.
1903 2006-05-13 Nick Clifton <nickc@redhat.com>
1905 * dwarf2out.c (dbx_reg_number): Check return value from
1906 LEAF_REG_REMAP and only use it if it is valid.
1907 (multiple_reg_loc_descriptor): Likewise.
1909 2006-05-13 Richard Guenther <rguenther@suse.de>
1911 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
1914 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
1916 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
1917 information attached to non-INSNs such as NOTEs.
1918 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
1920 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
1922 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
1924 * config/s390/s390.md: Adjust comment describing On constraint.
1926 2006-05-11 Jan Hubicka <jh@suse.cz>
1928 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
1929 to be output at -O0.
1931 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1934 * fold-const.c (size_binop): Move sanity check for arguments to
1935 the beginning of the function.
1938 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
1941 2006-05-11 Richard Guenther <rguenther@suse.de>
1944 * fold-const.c (fold_unary): Handle intermediate conversion
1945 to a pointer type like intermediate conversion to an integer
1946 type in folding of (T1)(T2)var to var.
1947 Match the code to the comment in the final conversion for
1948 (T1)(T2)var to (T1)var regarding to type precision. Rather
1949 than disallow T1 being of pointer type, assert that both T1
1950 and var are of pointer type or not. Make sure not to fall
1951 over the frontends lazyness wrt array to pointer decay though.
1953 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
1955 * arm.c (arm_struct_value_rtx): Delete.
1956 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
1957 (arm_init_cumulative_args): Always initialize nregs to zero.
1959 2006-05-10 Richard Guenther <rguenther@suse.de>
1961 PR tree-optimization/27532
1962 * tree-object-size.c (plus_expr_object_size): Fix typo.
1964 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
1967 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
1968 ashrdi_const, ashrdi3): Use a scratch register.
1970 2006-05-10 Richard Guenther <rguenther@suse.de>
1972 PR tree-optimization/27302
1973 * fold-const.c (operand_equal_p): For two comparisons,
1974 try comparison of one comparison code swapped if that yields
1977 2006-05-10 Ben Elliston <bje@au.ibm.com>
1979 * tree-pretty-print.c (pretty_print_string): No need to handle
1980 '\0' as a special character.
1982 * tree.h: Include "hashtab.h".
1983 (iterative_hash_expr): Use hashval_t in its prototype.
1984 * Makefile.in (TREE_H): Add $(HASHTAB_H).
1986 2006-05-09 Steve Ellcey <sje@cup.hp.com>
1989 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
1990 (hppa*64*-*-hpux11*): Ditto.
1991 (hppa[12]*-*-hpux11*): Ditto.
1993 2006-05-09 David Edelsohn <edelsohn@gnu.org>
1996 * config/rs6000/aix41.h (TARGET_64BIT): Define.
1998 2006-05-09 Michael Matz <matz@suse.de>
2000 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
2001 host_extra_gcc_objs and host_xmake_file.
2002 (<*-*-linux*>): Don't overwrite host_xmake_file.
2003 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
2004 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
2005 (host_detect_local_cpu): Declare.
2006 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
2007 * config/i386/i386.c (override_options): Handle -mtune=native
2009 * config/i386/x-i386: New file.
2010 * config/i386/driver-i386.c: New file.
2011 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
2014 2006-05-09 Dirk Mueller <dmueller@suse.de>
2015 Richard Guenther <rguenther@suse.de>
2018 * fold-const.c (fold_read_from_constant_string): Relax check
2019 for matching types to matching modes.
2021 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
2023 PR rtl-optimization/27335
2024 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
2027 2006-05-08 Chao-ying Fu <fu@mips.com>
2028 Richard Sandiford <richard@codesourcery.com>
2030 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
2031 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
2032 * config/mips/mips.md (UNSPEC_SCC): New constant.
2033 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
2034 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
2035 (mips_emit_compare): Use it.
2036 (mips_expand_vcondv2sf): New function.
2038 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
2040 Fix PR tree-optimization/27093
2041 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
2042 renaming when they become not-used_alone.
2044 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2046 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
2047 relocation and relocation stubs.
2049 2006-05-08 Eric Christopher <echristo@apple.com>
2051 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
2054 2006-05-08 Jan Hubicka <jh@suse.cz>
2057 * cgraphunit.c (decide_is_function_needed): When not optimizing even
2058 unused static functions are needed.
2060 2006-05-08 Roger Sayle <roger@eyesopen.com>
2063 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
2064 of a reg_equiv_constant if the result is a legitimate constant.
2066 2006-05-08 Uros Bizjak <uros@kss-loka.si>
2069 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
2070 standard 80387 constants, raise the cost to prevent
2071 compress_float_constant() to generate load from memory.
2073 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
2075 * config/arm/constraints.md (c): Fix a typo.
2077 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
2080 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
2083 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
2085 (_mm_mwait): Likewise.
2087 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
2089 (sse3_monitor): Make it 32bit only.
2090 (sse3_monitor64): New. 64bit monitor.
2092 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2095 * config/i386/i386.c (classify_argument): Skip fields with invalid
2098 2006-05-07 Richard Guenther <rguenther@suse.de>
2100 PR tree-optimization/27409
2101 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2102 Do not try to find zero-sized subvars.
2104 2006-05-07 Richard Guenther <rguenther@suse.de>
2106 PR tree-optimization/27136
2107 * tree-ssa-loop-niter.c (get_val_for): Correct function
2108 comment, assert requirements.
2109 (loop_niter_by_eval): Stop processing if the iterated
2110 value did not simplify.
2112 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
2114 * opts.c (flag_see): remove its setting at -O3.
2116 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
2118 * genpeep.c (main): Make insn-peep.c depend on flags.h.
2119 * arm/constraints.md: New file.
2120 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
2121 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
2122 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
2123 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
2124 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
2125 (EXTRA_MEMORY_CONSTRAINT): Likewise.
2126 * arm.md: Include constraints.md.
2127 (thumb_movsi_insn): Use satisfies_constraint_J.
2128 (movhi, movqi): Use satisfies_constraint_I.
2130 2006-04-29 Anatoly Sokolov <aesok@post.ru>
2132 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
2133 for atmeg a645 device.
2135 2006-05-06 Richard Guenther <rguenther@suse.de>
2137 PR tree-optimization/27151
2138 * tree-vect-transform.c (vectorizable_condition): Punt on
2139 values that have a different type than the condition.
2141 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
2144 * c-parser.c (c_parser_cast_expression): Only insert casts into
2145 hash table if pointer.
2146 * function.c (used_types_insert_helper): Rename from
2148 (used_types_insert): Call used_types_insert_helper.
2149 * function.h (used_types_insert): Accept only one argument.
2151 2006-05-05 David Edelsohn <edesohn@gnu.org>
2153 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
2154 scratch with output modifier.
2156 2006-05-04 David Edelsohn <edelsohn@gnu.org>
2159 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
2160 with output modifier.
2162 2006-05-04 Richard Sandiford <richard@codesourcery.com>
2165 * config/mips/mips.c (mips_symbolic_address_p): Return true
2166 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
2167 SYMBOL_GOTTPREL, and SYMBOL_TLS.
2169 2006-05-04 Richard Guenther <rguenther@suse.de>
2171 PR tree-optimization/14287
2172 PR tree-optimization/14844
2173 PR tree-optimization/19792
2174 PR tree-optimization/21608
2175 PR tree-optimization/27090
2176 * tree-ssa-pre.c (try_combine_conversion): New function.
2177 (compute_avail): After constructing the value-handle
2178 expression, use try_combine_conversion to combine NOP_EXPRs
2179 with previous value-handle expressions and use the result if it
2182 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
2184 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
2186 2006-05-04 Jan Hubicka <jh@suse.cz>
2189 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
2191 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
2193 * config/bfin/predicates.md (const01_rtx): Tell generator programs
2194 that this only matches CONST_INTs. All users changed to VOIDmode
2197 * config/bfin/bfin.c: Include "optabs.h".
2198 (bfin_rtx_costs): Some costs for vector operations, to allow combine
2200 (enum bfin_builtins): Add a number of fractional and vector builtins.
2201 (bfin_init_builtins): Likewise.
2202 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
2203 (safe_vector_operand, bfin_expand_binop_builtin,
2204 bfin_expand_unop_builtin): New functions.
2205 (bfin_expand_builtin): Handle the new builtins.
2206 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2209 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
2212 * Makefile.in (OBJS-common): Add see.o.
2213 (see.o): Add dependencies.
2214 * common.opt (fsee): New flag for the see optimization was added.
2215 * opts.c (flag_see): Initialized.
2216 * passes.c (init_optimization_passes, pass_see): New pass.
2217 * rtl.h (see_main): Declaration as extern.
2218 * timevar.def (TV_SEE): New.
2219 * tree-pass.h (pass_see): Declaration as extern.
2220 * invoke.texi (-fsee): Document.
2221 * recog.c (validate_simplify_insn): New function.
2222 * recog.h (validate_simplify_insn): Declaration as extern.
2223 * df-problems.c (df_chain_dump): Check for NULL.
2225 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
2226 Daniel Berlin <dberlin@dberlin.org>
2228 * cfgrtl.c (insert_insn_bb_end_new): New function.
2229 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
2231 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
2233 * df.h (struct web_entry): Moved from web.c.
2234 (union_defs): Declaration as extern.
2235 (unionfind_root): Likewise.
2236 (unionfind_union): Likewise.
2237 * web.c (struct web_entry): Moved to df.h.
2238 (unionfind_root): Remove static declaration.
2239 (unionfind_union): Likewise.
2240 (union_defs): Likewise and generalize to use callback function.
2241 (web_main): Update arguments for union_defs function call.
2243 2006-05-04 Richard Guenther <rguenther@suse.de>
2245 PR tree-optimization/26447
2246 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
2247 produce SSA_NAME copies before the store stmt to avoid
2248 breaking exception handling.
2250 2006-05-04 Jakub Jelinek <jakub@redhat.com>
2253 * gimplify.c (omp_is_private): If var is shared in some outer context,
2254 return false instead of true. Stop searching on parallel context
2257 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
2260 * coverage.c: Use get_gcov_unsigned_t() instead of
2261 unsigned_type_node all over.
2263 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
2265 PR tree-optimization/27381
2266 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
2267 maintain the same immediate_use links.
2268 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
2269 node rather than segfaulting.
2271 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2274 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
2275 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
2276 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
2278 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
2280 Fix PR tree-optimization/26626
2281 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
2283 * tree-ssa-operands.c (access_can_touch_variable): Allow
2284 typecasting through union pointers.
2286 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2289 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
2290 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
2291 to find if var will be a global variable even in the nested context.
2292 (omp_copy_decl): Only check for global variable at the end, it might
2293 be overridden in outer contexts.
2294 (scan_sharing_clauses): For global variables don't create a field.
2295 (lower_rec_input_clauses): Do nothing for global shared variables.
2296 Emit a barrier at the end of ILIST if there were any decls in both
2297 firstprivate and lastprivate clauses.
2298 (lower_send_clauses): Do nothing for global variables except for
2301 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
2303 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
2304 of the correct signedness is returned.
2306 2006-05-02 Jeff Law <law@redhat.com>
2308 PR tree-optimization/27364
2309 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
2310 multiply expressions.
2312 2006-05-02 Tom Tromey <tromey@redhat.com>
2314 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
2316 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
2319 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
2320 -mthumb -fPIC are used.
2322 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
2323 Joshua Kinard <kumba@gentoo.org>
2326 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
2327 with 64-bit pointers.
2329 2006-05-02 Paul Brook <paul@codesourcery.com>
2331 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
2333 (create_fix_barrier): Check that a suitable barrier location is
2335 (arm_reorg): Include ftmp->address in allowable range of addresses.
2337 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
2340 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
2343 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2346 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
2347 around RESULT_DECL for result passed by reference.
2348 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
2349 * omp-low.c (use_pointer_for_field): Don't look at
2350 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
2351 (scan_omp_1): Call remap_decl on RESULT_DECLs.
2352 (lower_rec_input_clauses): Don't allocate VLA memory for the second
2353 time or var for passing by reference for
2354 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
2355 TREE_ADDRESSABLE variables when passing by reference.
2357 * omp-low.c (dump_omp_region): Fix output formatting.
2360 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
2361 (expand_omp_parallel): Likewise.
2362 * tree-cfg.c (move_sese_region_to_fn): Likewise.
2365 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
2366 on statement list containing also constructors and destructors.
2367 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
2370 * except.c (duplicate_eh_regions): Fix clearing of
2371 cfun->eh->region_array entries.
2373 2006-05-01 DJ Delorie <dj@redhat.com>
2375 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
2377 (gcc_cv_objdump): Likewise.
2378 * configure: Regenerated.
2380 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
2383 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
2384 templates for case 3 and 4.
2386 2006-05-01 DJ Delorie <dj@redhat.com>
2388 * vec.c: Include bconfig.h when appropriate.
2389 * Makefile.in (build/vec.o): Adjust dependencies.
2390 * mkconfig.sh: Make sure config.h isn't used for build machine
2393 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2395 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
2397 (mark_phi_for_rewrite): New function.
2398 (insert_phi_nodes_for, mark_use_interesting): Call
2399 mark_phi_for_rewrite.
2400 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
2401 (update_ssa): Initialize and free phis_to_rewrite.
2403 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2405 PR rtl-optimization/27291
2406 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
2407 folded to a constant.
2409 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2411 PR tree-optimization/27283
2412 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
2413 not whole # of iteration descriptions.
2414 (niter_for_exit): Return just # of iterations. Fail if # of iterations
2415 uses abnormal ssa name.
2416 (niter_for_single_dom_exit): Ditto.
2417 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
2418 return just the number of iterations.
2420 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2422 PR tree-optimization/27144
2423 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
2424 (record_estimate): Only record constant upper bound.
2425 (infer_loop_bounds_from_undefined): Call
2426 compute_estimated_nb_iterations just once.
2427 (proved_non_wrapping_p): Renamed to ...
2428 (n_of_executions_at_most): ... this. Expect bound to be a constant.
2429 (convert_step_widening, scev_probably_wraps_p): Call
2430 n_of_executions_at_most instead of proved_non_wrapping_p.
2431 (substitute_in_loop_info): Do not replace values in bounds.
2432 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
2435 2006-05-01 Richard Henderson <rth@redhat.com>
2438 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
2439 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
2442 2006-05-01 Roger Sayle <roger@eyesopen.com>
2444 * c-typeck.c (parser_build_binary_op): Don't call the function
2445 unsigned_conversion_warning to spot operand/result type overflow.
2446 (build_binary_op): Instead, call convert_and_check instead of
2447 convert to report the problem when the operands are promoted.
2448 * c-common.c (unsigned_conversion_warning): Make static.
2449 * c-common.h (unsigned_conversion_warning): Delete prototype.
2451 2006-05-01 Richard Guenther <rguenther@suse.de>
2453 PR tree-optimization/26726
2454 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
2456 (find_interesting_uses_address): ... we work around here
2457 by folding INDIRECT_REFs in the substituted base.
2459 2006-05-01 Diego Novillo <dnovillo@redhat.com>
2461 * omp-low.c (dump_omp_region): Add newlines.
2463 2006-04-30 Roger Sayle <roger@eyesopen.com>
2465 * common.opt (Woverflow): New command line option.
2466 * c-common.c (constant_expression_warning): Check warn_overflow.
2467 (overflow_waring): Pass OPT_Woverflow to warning.
2468 (unsigned_conversion_warning): Likewise.
2469 (convert_and_check): Likewise.
2470 * doc/invoke.texi: Document new command line option.
2472 2006-04-30 David Edelsohn <edelsohn@gnu.org>
2474 * config/rs6000/rs6000.c (rs6000_override_options): Enable
2475 TARGET_NO_FP_IN_TOC for section anchors.
2476 (optimization_options): Enable section anchors for all
2477 non-"Objective" languages.
2479 2006-04-28 Eric Christopher <echristo@apple.com>
2481 * config/darwin-c.c (darwin_ms_struct): Move this
2482 (darwin_set_default_type_attributes): and this...
2483 * config/darwin.c: ... here.
2484 * config/darwin.h (darwin_ms_struct): Declare.
2486 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
2488 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
2490 2006-04-28 Roger Sayle <roger@eyesopen.com>
2493 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
2494 (push_array_bounds): Delete prototype. Change BOUNDS argument to
2495 an unsigned HOST_WIDE_INT.
2496 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
2498 (really_start_incremental_init): No need to call convert because
2499 bitsize_zero_node is already of type bitsizetype.
2500 (push_init_level): Extract the value of constructor_index as an
2501 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
2502 (process_init_element): Likewise.
2504 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
2506 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
2507 value before passing to make_relative_prefix.
2509 2006-04-28 Alan Modra <amodra@bigpond.net.au>
2512 * builtins.c (expand_builtin_memset): Expand val in original mode.
2514 2006-04-27 Eric Christopher <echristo@apple.com>
2516 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
2517 with #ifndef/#endif.
2518 * config/darwin-c.c (darwin_ms_struct): New.
2519 (darwin_pragma_ms_struct): Ditto.
2520 (darwin_set_default_type_attributes): Ditto.
2521 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
2522 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
2523 Register ms_struct pragma.
2524 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
2525 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
2526 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
2527 darwin_set_default_type_attributes if TARGET_MACHO.
2529 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
2531 PR tree-optimization/26854
2532 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
2533 * doc/tree-ssa.texi: Update immuse iterator documentation.
2534 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
2535 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
2536 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
2537 first_safe_imm_use, next_safe_imm_use): Remove.
2538 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
2539 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
2540 (move_use_after_head): New. Helper function to sort immuses in a stmt.
2541 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
2542 (first_imm_use_stmt): New. Get first stmt in an immuse list.
2543 (next_imm_use_stmt): New. Get next stmt in an immuse list.
2544 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
2545 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
2546 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
2547 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
2548 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
2549 (perfect_nestify): Use new iterator.
2550 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
2552 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
2553 (next_imm_name): New field in struct immediate_use_iterator_d.
2554 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
2555 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
2556 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
2557 * tree-cfg.c (replace_uses_by): Use new iterator.
2558 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
2559 * tree-ssa-operands.c (correct_use_link): Remove.
2560 (finalize_ssa_use_ops): No longer call correct_use_link.
2562 2006-04-27 Stuart Hastings <stuart@apple.com>
2564 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
2565 * config/t-darwin (crt3.o): Use it.
2566 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
2567 'pmode', use Pmode instead of SImode for SYMBOL_REF.
2568 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
2569 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
2570 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
2573 2006-04-27 Roger Sayle <roger@eyesopen.com>
2575 * expmed.c (store_fixed_bit_field): If we're not optimizing for
2576 size, force the intermediate into a new pseudo rather instead of
2577 performing both a bitwise AND and a bitwise IOR in memory.
2579 2006-04-27 Richard Guenther <rguenther@suse.de>
2581 PR rtl-optimization/26685
2582 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
2583 this one "max-flow-memory-locations".
2585 2006-04-27 Richard Guenther <rguenther@suse.de>
2587 PR tree-optimization/25148
2588 * tree-vrp.c (compare_values): Remove code dealing with
2589 comparisons against type min/max value. Honour overflow
2590 and negative constants in code dealing with comparisons
2591 of plus and minus expressions.
2592 (value_inside_range): Use fold_binary with LE_EXPR and
2593 GE_EXPR rather than compare_values.
2595 2006-04-27 Dirk Mueller <dmueller@suse.de>
2597 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
2600 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
2602 * basic-block.h (safe_insert_insn_on_edge): Removed.
2603 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
2605 2006-04-26 David Edelsohn <edelsohn@gnu.org>
2606 Paolo Bonzini <bonzini@gnu.org>
2609 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
2610 (simplify_and_const_int): Same.
2612 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
2614 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
2616 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2619 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
2620 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
2621 cgraph_global_info_ready.
2624 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
2627 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
2628 either decl or init is error_mark_node.
2631 * tree-flow.h (struct omp_region): Add sched_kind.
2632 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
2633 instead of extracting omp for data.
2634 (expand_omp_for): Save extracted sched_kind.
2636 2006-04-25 Roger Sayle <roger@eyesopen.com>
2638 * expmed.c (store_bit_field): Also check whether the bitsize is
2639 valid for the machine's "insv" instruction before moving the
2640 target into a pseudo for use with the insv.
2641 * config/i386/predicates.md (const8_operand): New predicate.
2642 * config/i386/i386.md (extv, extzv, insv): Use the new
2643 const8_operand predicate where appropriate.
2645 2006-04-25 DJ Delorie <dj@redhat.com>
2647 * doc/install.texi (Specific): Clarify that this is not a list of
2648 supported hosts or targets.
2650 2006-04-25 Richard Sandiford <richard@codesourcery.com>
2652 PR rtl-optimization/26725
2653 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
2654 block's BB_DIRTY flag.
2656 2006-04-25 Geoffrey Keating <geoffk@apple.com>
2658 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
2661 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
2662 to print an integer.
2664 2006-04-25 David Edelsohn <edelsohn@gnu.org>
2666 * varasm.c (align_variable): New function.
2667 (get_block_for_decl): Apply align_variable to DECL before
2668 calculating section information.
2669 (assemble_variable): Split out alignment computation.
2671 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
2673 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
2676 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
2678 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
2679 MODE_PARTIAL_INT mode.
2680 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
2681 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
2683 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
2684 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
2686 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
2688 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
2690 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
2691 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
2692 MACFLAG_IH): Likewise.
2693 (movstricthi_1): Renamed from "*movstricthi".
2694 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
2695 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
2696 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
2697 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
2698 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
2699 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
2700 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
2701 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
2702 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
2703 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
2704 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
2705 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
2706 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
2707 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
2708 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
2710 * doc/rtl.texi (ss_ashift): Improve wording.
2712 2006-04-24 Geoffrey Keating <geoffk@apple.com>
2714 * dwarf2out.c (verify_marks_clear): New.
2715 (prune_unused_types): Call verify_marks_clear initially, not
2718 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
2720 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
2721 * doc/rtl.texi: Document them.
2722 * simplify-rtx.c (simplify_unary_operation,
2723 simplify_binary_operation_1): Don't abort when we see them.
2725 2006-04-24 Mark Mitchell <mark@codesourcery.com>
2728 2006-04-23 Mark Mitchell <mark@codesourcery.com>
2729 * configure.ac: Completely disregard languages that are not
2731 * configure: Regenerated.
2733 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
2734 Richard Guenther <rguenther@suse.de>
2736 PR tree-optimization/27236
2737 * tree-inline.c (copy_body_r): Make sure to copy
2738 TREE_THIS_VOLATILE flag.
2740 2006-04-24 Richard Guenther <rguenther@suse.de>
2743 * tree-complex.c (update_parameter_components): Don't handle
2744 unused parameters which have no default def.
2746 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
2747 Richard Guenther <rguenther@suse.de>
2749 PR tree-optimization/27218
2750 * tree-inline.c (expand_call_inline): Strip useless type
2751 conversions for the return slot address.
2753 2006-04-24 Richard Guenther <rguenther@suse.de>
2755 * cfgloop.h (struct loops): Remove unused field array. Reorder
2757 (LOOP_PREFETCH): Remove.
2759 2006-04-24 Richard Guenther <rguenther@suse.de>
2761 PR tree-optimization/22525
2762 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
2763 variable, adjust types of generated expressions.
2765 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
2767 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
2768 (tree-vect-patterns.o): Likewise.
2770 (cselib.o): Likewise.
2771 (loop-doloop.o): Likewise.
2772 (regclass.o): Likewise.
2773 (reload1.o): Likewise.
2774 (explow.o): Replace target.h with $(TARGET_H).
2775 (ipa-prop.o): Likewise.
2776 (ipa-cp.o): Likewise.
2777 (ipa-inline.o): Likewise.
2778 (reorg.o): Likewise.
2779 (reg-stack.o): Likewise.
2781 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
2783 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
2785 2006-04-23 Mark Mitchell <mark@codesourcery.com>
2787 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
2789 * configure.ac: Completely disregard languages that are not
2791 * configure: Regenerated.
2794 * c-common.h (c_build_bitfield_integer_type): Declare.
2795 * c-decl.c (c_build_bitfield_integer_type): Move to ...
2796 * c-common.c (c_build_bitfield_integer_type): ... here.
2798 2006-04-23 Roger Sayle <roger@eyesopen.com>
2801 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
2802 a SImode SUBREG of a floating point register after no_new_pseudos.
2804 2006-04-23 Roger Sayle <roger@eyesopen.com>
2806 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
2807 identify potentially eliminable registers to additionally catch
2808 VIRTUAL_INCOMING_ARGS_REGNUM.
2809 (addsi3): Update the conditions on when to use addsi_small_int.
2811 2006-04-23 Roger Sayle <roger@eyesopen.com>
2814 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
2815 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
2816 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
2818 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
2820 * fold-const.c (range_predecessor): Use operand_equal_p
2821 as the predicate for equality.
2822 (range_successor): Likewise.
2824 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
2827 * config/soft-fp/op-common.h: Fix a typo.
2829 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
2832 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
2833 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
2835 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
2837 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
2839 * doc/tm.texi: Fix a typo.
2841 2006-04-21 Geoffrey Keating <geoffk@apple.com>
2843 * dwarf2out.c (struct die_struct): Document that die_sib makes
2844 a circular linked list.
2845 (FOR_EACH_CHILD): New.
2846 (reverse_die_lists): Delete.
2847 (reverse_all_dies): Delete.
2848 (add_dwarf_attr): Correct documentation.
2849 (remove_child_with_prev): New.
2850 (remove_child_TAG): Update for change to die_struct, use
2851 remove_child_with_prev.
2852 (add_child_die): Update for change to die_struct.
2853 (splice_child_die): Use remove_child_with_prev and add_child_die.
2854 (print_die): Use FOR_EACH_CHILD.
2855 (die_checksum): Likewise.
2856 (assign_symbol_names): Likewise.
2857 (output_location_lists): Likewise.
2858 (build_abbrev_table): Likewise.
2859 (calc_die_sizes): Likewise.
2860 (mark_dies): Likewise.
2861 (unmark_dies): Likewise.
2862 (unmark_all_dies): Likewise.
2863 (output_die): Likewise.
2864 (prune_unused_types_mark): Likewise.
2865 (prune_unused_types_walk): Likewise.
2866 (same_die_p): Update for change to die_struct.
2867 (break_out_includes): Likewise.
2868 (prune_unused_types_prune): Likewise.
2869 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
2870 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
2872 (dwarf2out_finish): Don't call reverse_all_dies.
2874 2006-04-21 Eric Christopher <echristo@apple.com>
2876 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
2877 in comments and function names.
2879 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2882 * c-typeck.c (digest_init): Robustify.
2884 * c-typeck.c (pop_init_level): Simplify.
2886 2006-04-21 Steve Ellcey <sje@cup.hp.com>
2888 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
2890 2006-04-21 Paul Brook <paul@codesourcery.com>
2892 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
2893 hardware floating point.
2895 2006-04-21 David Edelsohn <edelsohn@gnu.org>
2897 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
2900 2006-04-21 Nick Clifton <nickc@redhat.com>
2902 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
2905 2006-04-21 Alan Modra <amodra@bigpond.net.au>
2908 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
2909 C++ lang type in traceback table for Objective-C++.
2911 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
2913 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
2915 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
2917 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2920 * tree-mudflap.c (mudflap_finish_file): Skip function when there
2921 were errors. Remove check for erroneous objects.
2923 2006-04-20 Jeff Law <law@redhat.com>
2925 PR tree-optimization/26854
2926 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
2927 checking for zero or one use.
2928 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
2929 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
2930 * tree-ssa-reassoc.c (negate_value): Similarly.
2931 (reassociate_bb): Similarly.
2933 2006-04-20 Jakub Jelinek <jakub@redhat.com>
2935 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
2936 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
2937 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
2939 2006-04-20 Alan Modra <amodra@bigpond.net.au>
2941 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
2942 fp regs if the last fp arg doesn't fit in regs.
2944 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
2947 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
2948 that the last insn has the REG_INC note.
2950 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
2951 Nathan Sidwell <nathan@codesourcery.com>
2954 * stor-layout.c (update_alignment_for_field): Do not align
2956 (place_union_field): Place union field at the start of the union.
2957 (place_field): Move ERROR_MARK check later, and use the current
2958 allocation position to maintain monotonicity.
2960 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
2962 * dominance.c: Include timevar.h.
2963 (calculate_dominance_info): Use TV_DOMINANCE.
2964 * timevar.def (TV_DOMINANCE): New timevar.
2965 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
2967 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
2969 PR rtl-optimization/14261
2970 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
2971 move would be an INSV insn.
2972 (noce_process_if_block): Don't optimize if the destination is a
2973 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
2975 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
2977 * config/s390/s390.md: Add comments with the instructions emitted
2978 by an insn pattern if macros are used.
2980 2006-04-19 Alan Modra <amodra@bigpond.net.au>
2982 PR rtl-optimization/26026
2983 * fold-const.c (fold_binary): Optimize div and mod where the divisor
2984 is a known power of two shifted left a variable amount.
2986 2006-04-18 Geoffrey Keating <geoffk@apple.com>
2988 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
2989 to hash table twice when the debug_str section has SECTION_MERGE.
2991 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
2993 * config/soft-fp: New directory. From glibc.
2994 * config/soft-fp/t-softfp: New.
2995 * config/soft-fp/README: New.
2996 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
2997 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
2998 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
2999 (LIBGCC_DEPS): Add $(SFP_MACHINE).
3000 * config.gcc: Use rs6000/t-fprules-fpbit or
3001 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
3003 * config/rs6000/sfp-machine.h: New. Based on glibc.
3004 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
3006 * config/rs6000/t-fprules: Remove fp-bit rules.
3007 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
3008 * config/rs6000/t-linux64: Likewise. Remove duplicates from
3009 LIB2FUNCS_EXTRA. Remove fp-bit rules.
3010 (softfp_wrap_start, softfp_wrap_end): New.
3012 2006-04-18 DJ Delorie <dj@redhat.com>
3014 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
3016 2006-04-18 Devang Patel <dpatel@apple.com>
3018 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
3020 2006-04-18 Nick Clifton <nickc@redhat.com>
3022 * config/sh/t-symbian: Add rule to build sh-c.o
3023 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
3024 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
3025 (sh_symbian_encode_section_info): Likewise.
3027 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
3029 * builtins.c (expand_builtin_strcmp): Cover label definition of
3030 do_libcall with HAVE_cmpstrnsi.
3032 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
3034 * function.c (temp_slots_at_level, max_slot_level): Use VEC
3036 * function.h (temp_slot_p): New.
3037 (function): Change the type of x_used_temp_slots to
3038 VEC(temp_slot_p,gc) *.
3040 2006-04-18 Nick Clifton <nickc@redhat.com>
3042 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
3043 flag_strength_reduce.
3045 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
3047 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
3051 Partial revert of revision 112637
3052 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
3053 Dale Johannesen <dalej@apple.com>
3056 * regclass.c (struct reg_pref): Update documentation.
3057 (regclass): Set prefclass to NO_REGS if memory is the best option.
3058 (record_reg_classes): Cope with a prefclass set to NO_REGS.
3060 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
3062 PR tree-optimization/26821
3063 * tree-ssa-math-opts.c (get_constant_one): New.
3064 (insert_reciprocals): Use it.
3066 2006-04-17 Geoffrey Keating <geoffk@apple.com>
3068 * dwarf2out.c (free_AT): Delete.
3069 (remove_AT): Update string ref counts.
3070 (remove_child_TAG): Don't call free_die.
3072 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
3073 or DW_TAG_GNU_EINCL.
3074 (prune_unused_types_walk_attribs): Reset string refcounts.
3075 (prune_unused_types_update_strings): New.
3076 (prune_unused_types_prune): Don't make unnecessary stores. Don't
3077 call free_die. Do call prune_unused_types_update_strings.
3078 (prune_unused_types): Empty debug_str_hash.
3080 2006-04-17 Roger Sayle <roger@eyesopen.com>
3082 * expr.c (expand_assignment): Optimize away no-op moves where the
3083 source and destination are equal and have no side-effects.
3085 2006-04-17 Richard Guenther <rguenther@suse.de>
3088 * reload.c (push_reload): Guard calls to get_secondary_mem
3091 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
3093 * alias.c (reg_base_value, old_reg_base_value): Change the
3094 type to VEC(rtx,gc) *.
3095 (REG_BASE_VALUE, find_base_value, record_set,
3096 init_alias_analysis): Use VEC instead of VARRAY.
3098 * alias.c (alias_sets): Change the type to
3099 VEC(alias_set_entry,gc) *.
3100 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
3101 VEC instead of VARRAY.
3102 (last_alias_set): Remove.
3104 * cgraph.h (cgraph_edge_p): New.
3105 Update the prototype of cgraph_function_versioning.
3106 * cgraphunit.c (cgraph_copy_node_for_versioning,
3107 cgraph_function_versioning): Use VEC instead of VARRAY.
3108 * ipa-cp.c (ipcp_insert_stage): Likewise.
3110 2006-04-16 Roger Sayle <roger@eyesopen.com>
3113 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
3114 "A op B" or "A op C", we may need to convert A to the type of B and C.
3116 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
3118 * target.h (struct gcc_target): Add mode_rep_extended.
3119 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
3120 (init_num_sign_bit_copies_in_rep): Initialize it using
3122 (truncate_to_mode): Use it.
3123 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
3124 * targhooks.h (default_mode_rep_extended): Declare it.
3125 * targhooks.c (default_mode_rep_extended): Define it.
3126 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
3127 default_mode_rep_extended.
3128 (TARGET_INITIALIZER): Include it.
3129 * doc/tm.texi (Misc): Document it.
3130 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
3131 (mips_truncated_to_mode): New function.
3133 2006-04-16 Roger Sayle <roger@eyesopen.com>
3136 * expr.c (compress_float_constant): Copy the narrow constant into
3137 a new pseudo before extending it to its final width.
3139 2006-04-16 Roger Sayle <roger@eyesopen.com>
3140 Andrew Pinski <pinskia@gcc.gnu.org>
3141 Dale Johannesen <dalej@apple.com>
3144 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
3145 special case code to implement V8HImode and V16QImode with SSE2.
3147 2006-04-15 Roger Sayle <roger@eyesopen.com>
3149 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
3150 trees are constructed with a suitable tree type.
3152 2006-04-15 Roger Sayle <roger@eyesopen.com>
3154 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
3155 (integer_onep): Likewise.
3156 (integer_all_onesp): Likewise.
3157 (integer_pow2p): Likewise.
3158 (integer_nonzerop): Likewise.
3159 (real_zerop): Likewise.
3160 (real_onep): Likewise.
3161 (real_twop): Likewise.
3162 (real_minus_onep): Likewise.
3163 (int_size_in_bytes): Likewise.
3164 (host_integerp): Likewise.
3166 2006-04-15 Kazu Hirata <kazu@codesourcery.com>
3168 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
3169 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
3170 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
3172 * tree-ssa-structalias.h (alias_info): Remove num_references.
3174 2006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3176 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
3177 (output_bvb patterns): Likewise.
3178 * pa.c (output_bb): Use 'bb' insn for long branch case.
3179 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
3180 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
3181 1. Correct length operand for alternatives 1 and 2.
3182 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
3183 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
3185 2006-04-14 Roger Sayle <roger@eyesopen.com>
3187 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
3188 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
3189 were accidentally reverted by r112959.
3191 2006-04-15 Jakub Jelinek <jakub@redhat.com>
3194 * except.h (eh_region_outermost): New prototype.
3195 * except.c (eh_region_outermost): New function.
3196 * tree-cfg.c (find_outermost_region_in_block): Use it.
3198 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
3200 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
3202 * reload1.c (reg_equiv_memory_loc_varray): Rename to
3203 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
3204 (init_reload, reload): Use VEC instead of VARRAY.
3205 * reload.h: Update the prototype for
3206 reg_equiv_memory_loc_varray.
3208 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
3209 Eric Botcazou <ebotcazou@libertysurf.fr>
3211 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
3214 2005-04-13 Uros Bizjak <uros@kss-loka.si>
3217 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
3218 to expand fallback builtin function call.
3220 2006-04-14 Alan Modra <amodra@bigpond.net.au>
3223 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
3224 and emit libcall here in case the builtin fails.
3225 (expand_builtin_strcmp): Always emit the libcall here on failure.
3227 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
3229 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
3230 * flow.c (reg_n_info): Change the type to
3231 VEC(reg_info_p,heap) *.
3232 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
3234 * regs.h (reg_info_p): New.
3235 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
3236 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
3237 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
3240 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
3242 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
3244 * params.h (MAX_SCHED_READY_INSNS): New macro.
3245 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
3246 past MAX_SCHED_READY_INSNS during the first scheduling pass.
3247 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
3248 the ready list for 1 cycle during the first scheduling pass.
3249 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
3251 2006-04-13 Richard Henderson <rth@redhat.com>
3254 * gimple-low.c (lower_omp_directive): Remove dead code.
3255 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
3256 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
3257 * omp-low.c (struct omp_region): Move to tree-flow.h.
3258 (root_omp_region): Export.
3259 (omp_regions, lookup_omp_region): Remove.
3260 (determine_parallel_type): Update for struct omp_region changes.
3261 (dump_omp_region): Dump regions with block numbers.
3262 (new_omp_region): Take type and block instead of stmt; malloc
3264 (free_omp_region_1, free_omp_regions): New.
3265 (expand_parallel_call): Take entry_stmt as argument; update for
3266 changes to omp_region.
3267 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
3268 (remove_exit_barriers): New.
3269 (expand_omp_parallel): Update for struct omp_region changes.
3270 (expand_omp_synch): Likewise.
3271 (expand_omp): Likewise.
3272 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
3273 (expand_omp_for_static_chunk): Likewise.
3274 (expand_omp_for): Likewise.
3275 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
3276 (expand_omp_sections): Similarly, with GOMP_sections_end.
3277 (expand_omp_single): New.
3278 (build_omp_regions_1): Update for OMP_CONTINUE.
3279 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
3280 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
3281 OMP_SECTIONS_SECTIONS.
3282 (lower_omp_single_simple): Don't emit barrier here.
3283 (lower_omp_single_copy): Likewise.
3284 (lower_omp_single): Fix bindings, and lower to straightline now.
3285 (lower_omp_master, lower_omp_ordered): Likewise.
3286 (lower_omp_critical): Likewise.
3287 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
3288 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
3289 omp edges, free it afterward.
3290 (make_omp_sections_edges): Remove.
3291 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
3292 (move_stmt_r): Handle OMP_CONTINUE.
3293 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
3294 statement pointers to basic blocks. Add type member.
3295 (root_omp_region, new_omp_region, free_omp_regions): Declare.
3296 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
3297 * tree-inline.c (estimate_num_insns_1): Likewise.
3298 * tree-pretty-print.c (dump_generic_node): Likewise.
3299 * tree-ssa-operands.c (get_expr_operands): Likewise.
3300 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
3301 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
3302 (OMP_CONTINUE): New.
3303 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
3304 (OMP_SECTIONS_SECTIONS): Remove.
3305 (OMP_SECTION_LAST): New.
3306 (OMP_RETURN_NOWAIT): New.
3308 2006-04-13 Roger Sayle <roger@eyesopen.com>
3310 * fold-const.c (native_encode_vector, native_interpret_real):
3311 Correct obvious mistakes in the previous check-in.
3313 2006-04-13 Roger Sayle <roger@eyesopen.com>
3315 * fold-const.c (native_encode_expr): New function to encode
3316 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
3317 or VECTOR_CST into a specified buffer.
3318 (native_encode_int): New function.
3319 (native_encode_real): New function.
3320 (native_encode_complex): New function.
3321 (native_encode_vector): New function.
3322 (native_interpret_expr): Inverse of native_encode_expr to convert
3323 a target representation into an INTEGER_CST, REAL_CST etc...
3324 (native_interpret_int): New function.
3325 (native_interpret_real): New function.
3326 (native_interpret_complex): New function.
3327 (native_interpret_vector): New function.
3328 (fold_view_convert_expr): New function to constant fold/evaluate
3329 a VIEW_CONVERT_EXPR of a suitable constant expression.
3330 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
3331 Change call of build1 to fold_build1 when constructing a
3334 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
3335 Ulrich Weigand <uweigand@de.ibm.com>
3338 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
3341 2006-04-13 Alan Modra <amodra@bigpond.net.au>
3344 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
3345 optimize to lo_sum for DFmode if !TARGET_FPRS.
3347 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
3349 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
3350 delete_alias_info, compute_flow_sensitive_aliasing,
3351 group_aliases): Use VEC instead of VARRAY.
3352 * tree-ssa-structalias.c (update_alias_info): Likewise.
3353 * tree-ssa-structalias.h (alias_info): Change the type of
3354 processed_ptrs to VEC(tree,heap) *.
3356 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
3359 * config/sh/lib1funcs.h: New file, broken out of:
3360 * config/sh/lib1funcs.asm.
3361 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
3363 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
3364 * config/sh/lib1funcs-Os-4-200.asm: New file.
3365 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
3366 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
3367 (EXTRA_MULTILIB_PARTS): Include it.
3368 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
3369 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
3370 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
3371 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
3374 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
3376 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
3377 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
3378 tpa_compact, root_var_init, type_var_init): Use VEC instead of
3380 * tree-ssa-live.h: Include vecprim.h.
3381 (tree_partition_associator_d): Change the type of
3382 first_partition to VEC(int,heap) *.
3383 (tpa_first_partition): Use VEC instead of VARRAY.
3385 * Makefile.in (GTFILES): Move functions.h after tree.h.
3386 * function.c (reset_block_changes, record_block_change,
3387 check_block_change, free_block_changes): Use VEC instead of
3389 * function.h (function): Change the type of
3390 ib_boundaries_block to VEC(tree,gc) *.
3391 * tree-inline.c (copy_cfg_body): Initialize
3392 ib_boundaries_block to NULL instead of (varray_type) 0.
3394 2006-04-12 Roger Sayle <roger@eyesopen.com>
3396 * expr.c (emit_group_store): Correct operand order in call to
3397 subreg_lowpart_offset. Always create paradoxical SUBREGs with
3398 a SUBREG_BYTE of zero.
3400 2006-04-12 Richard Guenther <rguenther@suse.de>
3402 * profile.c (compute_branch_probabilities): Remove code
3403 encapsulated in !ir_type (), which are remanents of the
3404 removed RTL profiling code.
3405 * rtl-profile.c: Remove.
3407 2006-04-12 Alan Modra <amodra@bigpond.net.au>
3409 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
3410 magic NULL_RTX comment.
3411 (function_arg): Store entire fp arg to mem if any part should go
3413 (rs6000_arg_partial_bytes): Adjust for above change.
3415 2006-04-11 Roger Sayle <roger@eyesopen.com>
3417 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
3418 if it hasn't been initialized by dwarf2out_init.
3420 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
3422 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
3423 symbolic constants in branch patterns.
3425 2006-04-11 Roger Sayle <roger@eyesopen.com>
3427 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
3429 2006-04-11 Richard Sandiford <richard@codesourcery.com>
3431 PR rtl-optimization/27073
3432 * gcse.c (try_replace_reg): Revert last change. Continue to search
3433 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
3436 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
3438 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
3439 aggregate types other than record and union types.
3440 (function_arg): Likewise.
3441 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
3443 (function_value): In 64-bit mode, return objects that require it
3446 2006-04-11 Roger Sayle <roger@eyesopen.com>
3448 * dwarf2out.c (premark_used_types): Remove problematic prototype.
3450 2006-04-11 Jakub Jelinek <jakub@redhat.com>
3452 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
3454 2006-04-03 Jeff Law <law@redhat.com>
3457 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
3458 alias information too.
3460 2006-04-10 Mike Frysinger <vapier@gentoo.org>
3462 * Makefile.in (gcc-cross): Add $(exeext) to target name.
3464 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
3467 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
3468 (premark_used_types_helper): New.
3469 (premark_used_types): New.
3470 (gen_subprogram_die): Call premark_used_types.
3471 (prune_unused_types_walk): Do not prune perennial dies.
3472 * function.c (used_types_insert): New.
3473 * function.h (struct function): Add used_types_hash field.
3474 (used_types_insert): Add prototype.
3475 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
3476 * c-parser.c (c_parser_cast_expression): Save casted types in used
3479 2006-04-11 Mark Mitchell <mark@codesourcery.com>
3482 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
3483 rs6000_explicit_options.float_gprs.
3485 2006-04-10 Roger Sayle <roger@eyesopen.com>
3487 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed