2005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
[official-gcc.git] / gcc / ChangeLog
blobe8dd797287062dc6e242da150ddb01cc6e1801af
1 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
3         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and 
4         V_MUST_DEF instead of just the first_use_p.
5         Don't mark the virtual variables for renaming on the statement which 
6         is being removed.
7         (pass_dse): Remove TODO_update_ssa.
9 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
11         PR middle-end/23290
12         * stor-layout.c (compute_record_mode): For records with a single
13         field, actually check the field's mode size against the type size.
15         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
16         registers for TARGET_SHMEDIA.
17         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
18         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
19         of GENERAL_REGS and FP_REGS.
21 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
23         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.       
25 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
27         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
28         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
29         are omitted.  Exclude stack_tie insn too.
31 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
33         PR rtl-optimization/23098
34         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
35         0.0f is easy.
36         * config/rs6000/rs6000.md (movdf splitter): Use
37         const_double_operand predicate for TARGET_POWERPC64.
38         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
39         SYMBOL_REF method to ABI_V4.
41         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
42         replace_equiv_address.
43         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
44         rs6000_sr_alias_set and MEM_NOTRAP.
45         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
47 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
49         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
50         handle CALL_EXPR again.
52 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
54         * arm/predicates.md (alignable_memory_operand): Delete.
56 2005-09-10  Richard Henderson  <rth@redhat.com>
58         PR debug/23806
59         * dbxout.c (dbxout_expand_expr): New.
60         (dbxout_symbol): Use it.
62 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
64         * arm.c (arm_gen_rotated_half_load): Delete.
65         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
66         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
67         (thumb_set_return_address): Likewise.
68         (thumb_load_double_from_address): Use adjust_address.
69         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
70         (extendhsisi2_mem, movhi_bytes): Use change_address.
71         (movhi): Use widen_memory_access.
72         (reload_out_df): Use replace_equiv_address.
73         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
75 2005-09-09  Richard Henderson  <rth@redhat.com>
77         PR debug/20998
78         * dbxout.c: Include expr.h.
79         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
80         (dbxout_symbol): Handle DECL_VALUE_EXPR.
81         * Makefile.in (dbxout.o): Add EXPR_H.
83 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
85         PR tree-optimization/23509
86         * tree-cfg.c (replace_uses_by): Use replace_exp.
87         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
88         pointers have name_mem_tag or type_mem_tag set.
90 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
92         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use 
93         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
94         of wrongly accessing operands.
96 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
98         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
99         * tree-chrec.c: Include tree-scalar-evolution.h.
100         (chrec_convert): Instantiate the base and step before calling
101         scev_probably_wraps_p that would fail on parametric evolutions.
102         Collect all the fails into a single section failed_to_convert,
103         print a diagnostic, and return chrec_dont_know instead of calling
104         fold_convert.
105         * tree-scalar-evolution.c (loop_closed_phi_def): New.
106         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
107         phi nodes.
108         (scev_const_prop): Don't replace the definition of a loop closed ssa
109         phi node by itself, or by another loop closed ssa phi node.
110         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
111         that base and step are defined.
113 2005-09-09  Richard Guenther  <rguenther@suse.de>
115         PR c++/23624
116         * fold-const.c (fold_ternary): Check truth_value_p before
117         calling invert_truthvalue.
119 2005-09-09  Nick Clifton  <nickc@redhat.com>
121         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
122         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
123         dimension of these arrays.
124         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
125         these arrays.
126         * longlong.h: Only provide a prototype for the __clz_tab[] array
127         if this header has not been included from libgcc2.h.
128         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
129         defining own types.
130         Provide prototypes for exported functions.
131         Use the __clz_tab[] and __popcount_tab[] arrays provided by
132         libgcc2.c.
134 2005-09-08  Josh Conner  <jconner@apple.com>
136         PR c++/21135
137         PR c++/23180
138         * expr.c (expand_expr_addr_expr_1): Don't invoke
139         expand_simple_binop for EXPAND_INITIALIZER.
141 2005-09-08  Richard Henderson  <rth@redhat.com>
143         PR debug/23190
144         * toplev.c (wrapup_global_declaration_1): Split out ...
145         (wrapup_global_declaration_2): ... from ...
146         (wrapup_global_declarations): ... here.  Return bool.
147         (check_global_declaration_1): Split out ...
148         (check_global_declarations): from here.
149         (emit_debug_global_declarations): New.
150         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
151         check_global_declaration_1, emit_debug_global_declarations): Declare.
152         * c-decl.c (c_write_global_declarations_1): Don't create a vector
153         of decls.  Call wrapup_global_declaration_1,
154         wrapup_global_declaration_2, check_global_declaration_1 directly.
155         (c_write_global_declarations_2): New.
156         (ext_block): New.
157         (c_write_global_declarations): Call c_write_global_declarations_2.
158         * langhooks.c (write_global_declarations): Call
159         emit_debug_global_declarations.
161         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
162         remove decls that have DECL_RTL_SET_P.
163         * passes.c (rest_of_decl_compilation): Invoke
164         cgraph_varpool_finalize_decl for all but functions.
166 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
168         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
169         the result of a conversion if the new min and max cannot be compared.
171 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
173         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
174         (override_options): Setting s390_sr_alias_set removed.
175         (save_fpr, save_gprs): Set alias set to vararg or frame.
176         (restore_fpr, restore_gprs, s390_emit_prologue): Replace 
177         s390_sr_alias_set with get_frame_alias_set ().
178         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
179         get_varargs_alias_set ().
181 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
183         PR objc/20574
184         PR objc/19324
185         * c-parser.c (c_parser_objc_method_definition): If the next
186         token is not "{", error out and don't start the function.
188 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
190         * tree-vrp.c (extract_range_from_expr): Move the check for non
191         nullness after the check for gimple invariant.
193 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
195         * tree.c (host_integerp, tree_low_cst): Correct function comment.
197 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
199         PR target/23747
200         * config/m32r.md (movmemsi_internal): Canonicalize order of
201         operands in PLUS component of template.
203 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
205         * reload1.c (fixup_eh_region_note): Remove assertion.
206         (fixup_abnormal_edges): Reverted removal of call to 
207         find_many_sub_basic_blocks made on 2005-08-31.
209 2005-09-07  Richard Henderson  <rth@redhat.com>
211         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
212         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
213         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
214         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
215         rearrange for better packing.
216         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
217         (lookup_cfa_1): Remove inline marker.
218         (cfa_equal_p): Split out of ...
219         (def_cfa_1): ... here.  Use INVALID_REGNUM.
220         (build_cfa_loc): Handle !cfa->indirect.
221         (frame_pointer_cfa_offset): New.
222         (dbx_reg_number): Assert register elimination performed; do
223         leaf register remapping.
224         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
225         (eliminate_reg_to_offset): New.
226         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
227         for verifiably local stack frame addresses; re-base to CFA.
228         (mem_loc_descriptor): Remove can_use_fbreg argument.
229         (concat_loc_descriptor, loc_descriptor): Likewise.
230         (containing_function_has_frame_base): Remove.
231         (rtl_for_decl_location): Don't do register elimination or
232         leaf register remapping here.
233         (secname_for_decl): Split out from ..
234         (add_location_or_const_value_attribute): ... here.
235         (convert_cfa_to_loc_list): New.
236         (compute_frame_pointer_to_cfa_displacement): New.
237         (gen_subprogram_die): Use them.
238         * tree.h (frame_base_decl): Remove.
239         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
240         (prologue_stack_adjust): Remove.
241         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
242         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
243         (set_frame_base_location): Remove.
244         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
245         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
246         (vt_add_function_parameters): Don't eliminate_regs.
247         (vt_initialize): Don't create frame_base_decl.
249 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
251         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
252         version of GNU binutils for 4.x and later.
254 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
256         * ggc-page.c (ggc_push_context): Remove.
257         (ggc_pop_context): Likewise.
258         * ggc.h (ggc_push_context): Remove.
259         (ggc_pop_context): Likewise.
261 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
263         PR target/8973
264         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
265         returning from an interrupt handler.
267 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
269         PR target/8972
270         * config/arc/arc.c (output_shift): Add check for loop count when
271         optimizing.
273 2005-09-06  Steven Bosscher  <stevenb@suse.de>
275         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
276         form manually.
277         (abs_replacement): Likewise.
278         (pass_phiopt): Remove TODO_update_ssa.
280 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
282         PR c/23075
283         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
284         if "return with no value, in function returning non-void" warning
285         has been issued.
286         * tree-cfg.c (execute_warn_function_return): Don't look at
287         RETURN_EXPRs with TREE_NO_WARNING set.
289         PR target/22362
290         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
291         for internal functions doesn't use registers used by global registers
292         variables.  Use fewer register parameters if there are global register
293         variables.
295 2005-09-06  Olivier Hainque  <hainque@adacore.com>
296             Eric Botcazou  <ebotcazou@adacore.com>
298         PR middle-end/14997
299         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
300         when we would be extracting outside its bit span (bitpos+bitsize
301         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
302         Ada unchecked conversions.
304 2005-09-06  Steven Bosscher  <stevenb@suse.de>
306         * tree-ssa-pre.c (try_look_through_load): New function.
307         (compute_avail): Use it to try to look through loads for some
308         more useful expressions.
310 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
312         * simplify-rtx.c (simplify_binary_operation_1): Correct the 
313         condition for detecting cases like (a&a) and (a^a).
315 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
317         * common.opt: Add option ftree-vect-loop-version.
318         * params.def: Add --param vect-max-version-checks.
319         * doc/invoke.texi: Document ftree-vect-loop-version and
320         --param vect-max-version-checks.
321         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
322         may_misalign_stmts and defines for accessors.
323         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
324         LOOP_VINFO_MAY_MISALIGN_STMTS.
325         (destroy_loop_vec_info): VEC_free for
326         LOOP_VINFO_MAY_MISALIGN_STMTS.
327         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
328         Update documentation.
329         (vect_update_misalignment_for_peel): New.
330         (vect_enhance_data_refs_alignment): Update to choose loop
331         peeling or loop versioning if appropriate for the (potentially)
332         unaligned data references in the loop.
333         (vect_analyze_data_refs_alignment): Remove call to
334         vect_enhance_data_refs_alignment so the checks can be done
335         earlier.
336         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
337         and move up call to vect_analyze_data_refs_alignment.
338         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
339         (vect_transform_loop): Add call to loop_version.
341 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
343         PR rtl-optimization/23098
344         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
345         * simplify-rtx.c (constant_pool_reference_p): New function.
346         * rtl.h (constant_pool_reference_p): New prototype.
347         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
348         constant_pool_reference_p in condition and
349         avoid_constant_pool_reference in preparation statements.
351 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
353         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for 
354         STRICT_LOW_PART SETs.
356 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
358         PR middle-end/21460
359         * except.c (sjlj_emit_function_enter): Find the function begin
360         note even when it's not in first basic block.
362 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
364         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
365         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
366         * aclocal.m4: Regenerate.
368 2005-09-05  DJ Delorie  <dj@redhat.com>
370         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
371         of macro.
373 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
375         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
376         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
377         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
378         Follow spelling conventions.
379         * doc/invoke.texi: Follow spelling conventions.
381 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
383         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
384         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
385         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
387 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
389         PR target/23683
390         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
391         (output_stack_adjust): Use gen_tmp_stack_mem.
392         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
393         (sh_set_return_address, sh_allocate_initial_value): Likewise.
394         (sh_get_pr_initial_val): Likewise.
395         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
396         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
397         * sh.md (divsi_inv_m0): Use gen_const_mem.
398         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
399         (movdf_i4+1): Use gen_tmp_stack_mem.
400         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
401         (fpu_switch+2): Likewise.
402         (movv4sf_i, movv16sf_i): Use adjust_address.
403         (symGOT_load): Set MEM_NOTRAP_P bit.
405 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
407         PR target/23721
408         * pa.c (emit_move_sequence): Fix typo in last change.
410 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
412         PR rtl-optimization/23454
413         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
414         is true.
416 2005-09-03  Richard Henderson  <rth@redhat.com>
417             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
419         PR middle-end/23671
420         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
421         gen_rtx_MEM.
423 2005-09-02  Nicolas Pitre <nico@cam.org>
425         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
426         to bit_count to 32 bits.
428 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
430         PR c++/23167
431         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
432         generating synthetic loads from volatile lvalues.
434 005-09-02  Nick Clifton  <nickc@redhat.com>
436         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
437         __ctzhi2, __clzhi2): New functions.
439 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
441         PR middle-end/23547
442         * tree-nested.c (struct var_map_elt): Mark with GTY.
443         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
444         var_map_elt.
445         (lookup_field_for_decl): Allocate new element in GC memory.
446         (lookup_tramp_for_decl): Likewise.
447         (convert_nl_goto_reference): Likewise
448         (create_nesting_tree): Allocate info in GC memory. Likewise for
449         info->var_map.
450         (free_nesting_tree): Free with ggc_free instead of free.
451         (root): New static variable.
452         (lower_nested_functions): Remove root as local variable.  And zero out
453         root at the end of the function.
455 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
457         PR rtl-optimization/20365
458         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
459         to short.  New member ix.
460         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
461         (simplify_plus_minus): Initialize ix members before calling qsort.
463 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
465         PR tree-optimization/23626
466         * tree-cfg.c (replace_uses_by): Clean up eh info.
468 2005-09-01  DJ Delorie  <dj@redhat.com>
470         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
471         fprintf.
473 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
475         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
476         (rs6000_split_multireg_move): Use replace_equiv_address instead of
477         gen_rtx_MEM.
479 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
481         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
482         do not issue warning for a variable definition following
483         a declaration.
485 2005-09-01  Richard Henderson  <rth@redhat.com>
487         PR 23668
488         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
489         conversion to CONST_VECTOR.
491 2005-09-01  Richard Henderson  <rth@redhat.com>
493         PR 23676
494         * reload1.c (reload_as_needed): Check !CALL_P before calling
495         fixup_eh_region_note.
496         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
498 2005-09-01  DJ Delorie  <dj@redhat.com>
500         * varasm.c (output_constant): Let the target resolve
501         conversions of addresses to non-default pointer sizes.
503 2005-09-01  Nicolas Pitre <nico@cam.org>
505         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
506         to alow matching ARM pre-indexed addressing mode.
507         (arm_override_options): Remove now irrelevant comment.
509 2005-09-01  Phil Edwards  <phil@codesourcery.com>
511         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
512         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
513         * config/i386/vxworks.h:  Likewise.
514         * config/i386/t-vxworksae:  New file, for VxWorks AE.
515         * config/i386/vxworksae.h:  Likewise.
517 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
519         PR tree-optimization/23410
520         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
521         sequence is not wrapping during the first step.
523 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
525         PR debug/7241
526         * dwarf2out.c (base_type_die): Compare char_type_node with
527         TYPE_MAIN_VARIANT (type), not type.
529 2005-09-01  Richard Guenther  <rguenther@suse.de>
531         PR tree-optimization/15366
532         * common.opt: Add -finline-functions-called-once.
533         Put -fearly-inlining in alphabetically ordered place.
534         * doc/invoke.texi: Document new option.
535         * ipa-inline.c (cgraph_decide_inlining): Honour
536         flag_inline_functions_called_once.
538 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
540         PR rtl-optimization/23478
541         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
542         (alloc_qty): Initialize it.
543         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
544         (combine_regs): Combine also n_throwing_calls_crossed fields.
545         (find_free_reg): Don't attempt to caller-save pseudos crossing
546         calls that might throw.
547         * global.c (struct allocno): Add throwing_calls_crossed field.
548         (global_alloc): Revert 2005-08-22 change.  Initialize
549         throwing_calls_crossed.
550         (find_reg): Don't attempt to caller-save pseudos crossing calls that
551         might throw.
553 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
555         PR target/23649
556         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
557         (mask64_operand): Reinstate code prior to 2005-06-11 change.
558         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
559         (and64_2_operand): Tweak to use predicate.
560         (and_operand): Adjust for mask_operand changes.
561         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
562         (print_operand): Likewise.
563         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
564         (mask64_1or2_operand): Delete.
565         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
566         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
567         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
568         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
569         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
570         (rotldi3_internal4): Likewise.
571         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
572         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
573         (ashldi3_internal7): Likewise.
574         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
575         (ashldi3_internal, ashldi3_internal9 split): Likewise.
576         (anddi3 split): Don't match mask64_operand.
577         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
578         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
579         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
580         't' splitter predicate.
581         (movdi_internal64 + 2): Revert 2005-06-11 change.
583 2005-08-31  DJ Delorie  <dj@redhat.com>
585         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
586         (m32c_asm_integer): Add support for 32 bit pointers.
588 2005-08-31  Richard Henderson  <rth@redhat.com>
590         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
591         component-like references for setting MEM_NOTRAP_P.
593         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
594         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
596 2005-08-31  Richard Henderson  <rth@redhat.com>
598         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
599         into a pseudo before applying gen_lowpart.
601 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
603         * doc/install.texi (Specific): Update cctools version required
604         for full functionality.
605         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
606         linkers as -macosx_version_min.
608 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
610         PR target/21255
611         * sh.c (print_operand, %R and %S): Add handling of floating point
612         registers, memory, constants and invalid operands.
614 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
616         * ipa-pure-const.c: Change dump name.
618 2005-08-31 Uros Bizjak <uros@kss-loka.si>
620         PR target/23570
621         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
622         to "reg_or_0_operand".
623         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
625 2005-08-31  Dale Johannesen  <dalej@apple.com>
627         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
628         loops that count down.
630 2005-08-31  Richard Henderson  <rth@redhat.com>
632         PR rtl-opt/23601
633         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
634         (fixup_eh_region_note): New.
635         (reload_as_needed): Call it.
636         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
637         don't call find_many_sub_basic_blocks; call verify_flow_info.
638         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
639         (keep_stack_depressed): Likewise.
640         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
642 2005-08-31  Richard Henderson  <rth@redhat.com>
644         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
645         fp return matching.
647 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
649         * expr.c (expand_expr_real_1): Compare size of address 
650         mode to target's address mode size in deciding expansion of 
651         the constant address.
653 2005-08-31  Richard Guenther  <rguenther@suse.de>
655         PR middle-end/23477
656         * expr.c (all_zeros_p): New function.
657         (expand_expr_real_1): Handle the case of an all-zero
658         non-addressable constructor separately.
660 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
662         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
663         arguments, adjust all callers.
664         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
666 2005-08-30  Richard Henderson  <rth@redhat.com>
668         PR target/23630
669         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
670         whenever the mode sizes match.
672 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
674         * calls.c (load_register_parameters): Fix comment typo.
675         * expr.c (emit_push_insn): Comment formatting.
677 2005-08-30  Ian Lance Taylor  <ian@airs.com>
679         * config/i386/x-cygwin (host-cygwin): Change dependency from
680         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
682 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
684         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
685         parts of 'vals'.
687 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
689         PR middle-end/23408
690         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
691         call to ggc_collect.
693 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
695         PR bootstrap/21268
696         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
697         beginning.  Remove $(INCLUDES) from all the rules, if following
698         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
700 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
702         PR middle-end/23484
703         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
704         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
705         not constant, but maxlen is, don't set len to maxlen, rather
706         set maxlen to len if len is a constant.
708 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
710         PR tree-optimization/23475
711         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
712         and counts.
714 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
716         Fix PR middle-end/22455
718         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
719         Checksum only the parts of the tree that exist for the tree code.
721 2005-08-28  Dale Johannesen  <dalej@apple.com>
723         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
725 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
727         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
729 2005-08-28  Richard Henderson  <rth@redhat.com>
731         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
732         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
733         of char_type_node.
735 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
737         PR ada/23593
738         * builtins.c (get_memory_rtx): Don't strip nops
739         in between COMPONENT_REFs.
741 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
743         PR middle-end/23463
744         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
745         types.
746         (gimplify_modify_expr): Check for zero sized types and gimplify the
747         rhs and lhs as statements.
749 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
751         PR libgcj/23508
752         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
753         state for return address column of signal frames.
755 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
757         PR target/23539
758         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
759         bytes >= 2 not bytes == 2.
760         (expand_block_move): Same.
762 2005-08-27  Richard Guenther  <rguenther@suse.de>
764         PR target/23575
765         * config/i386/sse.md (sse2_movsd): Add missing closing
766         braces.
768 2005-08-27  Paul Brook  <paul@codesourcery.com>
770         * genrecog.c (enum decision_type): Add DT_num_insns.
771         (struct decision_test): Add u.num_insns.
772         (add_to_sequence): Add DT_num_insns test.
773         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
774         (write_cond, debug_decision_2): Ditto.
775         (change_state): Assume peep2_next_insn never fails.
776         Remove "afterward" argument.
777         (write afterward, write_tree): Update to match.
778         * recog.c (peep2_current_count): New variable.
779         (peep2_next_insn): Check it.
780         (peephole2_optimize): Set peep2_current_count.
781         * recog.h (peep2_current_count): Declare.
783 2005-08-26  Josh Conner  <jconner@apple.com>
785         PR middle-end/23584
786         * ipa-pure-const.c (check_tree): Check for volatile-ness
787         when considering a dereference.
789 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
791         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
793 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
795         PR rtl-optimization/23561
796         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
797         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
798         at most LEN bytes long memory fits into the field.
799         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
800         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
801         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
803 2005-08-26  Richard Henderson  <rth@redhat.com>
805         PR rtl-opt/23560
806         * loop.c (biased_biv_may_wrap_p): New.
807         (maybe_eliminate_biv_1): Use it to suppress non-equality
808         comparison transformations.  Delete disabled code.
810 2005-08-26  Ian Lance Taylor  <ian@airs.com>
812         * combine.c (make_extraction): Avoid reference outside object.
814 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
816         * stor-layout.c (finalize_type_size): Restore behaviour for
817         non-aggregate types to the status quo ante of the patch for
818         pr 23467.  Document why it matters.
820 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
822         PR c/23506
823         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
824         array by one element, initialize the BT_LAST element with NULL.
826 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
828         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
829         optimizing for size.
830         (plus_eqsi): Same.
831         (compare_plus_eqsi): Same.
832         (plus_eqsi_compare): Same.
833         (neg_eq0<mode>): Same.
834         (neg_eq<mode>): Same.
836         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
837         PROCESSOR_POWER4.
839 2005-08-26  Nick Clifton  <nickc@redhat.com>
841         * config/v850/v850.c (ep_memory_operand): Return FALSE if
842         TARGET_EP is not defined.
843         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
844         TARGET_EP is enabled.
845         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
846         * config/v850/v850.md (save_all_interrupt): Only use the EP
847         register if TARGET_EP is defined.
848         (restore_all_interrupt): Likewise.
849         * config/v850/lib1funcs.asm: Update functions so that the EP
850         register is only used if __EP__ is defined.
852 2005-08-26  David Ung  <davidu@mips.com>
854         * config/mips/mips.c (mips_expand_prologue): Handle case when
855         generating for MIPS16 and the outgoing argument area is more than
856         SMALL_OPERAND. Use the frame pointer as temporary to generate the
857         add instruction.
859 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
861         * config/crx/crx.md: Make doloop_end pattern usage controllable
862         via mloop-nesting=<max-nesting> command line switch. Make sure
863         the combiner cannot use doloop_end_<mode> in an illegal way.
864         * config/crx/crx.c: Use regs up to r6 for argument passing.
865         Refine crx_address_cost (non cst4 displacements are expensive).
866         * config/crx/crx.opt: Add switch for mloop-nesting=.
868 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
870         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
871         (UNSPEC_MVST): New constant.
873 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
875         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
876         Reject operands containing eliminable registers.
877         * testsuite/gcc.dg/20050825-1.c: New testcase.
879 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
880             Jan Hubicka  <jh@suse.cz>
882         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
884 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
886         PR tree-optimization/23546
887         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
888         and REAL_CST nodes.
890 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
892         * params.def (PARAM_MIN_SPEC_PROB): New.
893         * sched-rgn.c (MIN_PROBABILITY): Delete.
894         (compute_trg_info): Convert to PARAM_VALUE.
895         * doc/invoke.texi (param): Document min-spec-prob.
897 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
899         * config/darwin.h: define __PIC__
900         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
901         TARGET_OS_CPP_BUILTINS macro.
903 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
905         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
906         yesterday.
908 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
910         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
911         to duplicate_block.
912         * cfghooks.c (duplicate_block): Added position where to place
913         new block as argument.
914         * cfghooks.h (duplicate_block): Declaration changed.
915         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
916         duplicate_block.
917         * cfglayout.h (copy_bbs): Declaration changed.
918         * cfgloop.h (loop_version): Declaration changed.
919         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
920         position to copy_bbs.
921         (loop_version): Pass position to duplicate_loop_to_header_edge.
922         Add place_after argument and position new blocks according to
923         it.
924         * modulo-sched.c (sms_schedule): Pass place_after argument
925         to loop_version.
926         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
927         * tree-cfg.c (split_edge_bb_loc): New function.
928         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
929         to determine position of new blocks.
930         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
931         to loop_version.
932         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
933         argument to duplicate_block.
934         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
935         Pass position to copy_bbs.
937 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
939         * fold-const.c (ptr_difference_const): Use
940         cst_and_fits_in_hwi instead of host_integerp.
942 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
944         * config/darwin.c (gen_pic_offset): New.
945         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
946         Use it.
948 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
950         PR tree-optimization/23486
951         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
953 2005-08-23  Phil Edwards  <phil@codesourcery.com>
955         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
956         remove use_collect2.
957         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
959         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
960         configuration files to override the default value.
962         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
963         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
964         * config/vx-common.h:  New file, split out from...
965         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
966         * config/vxworksae.h:  New file, for VxWorks AE.
967         * config/vxworks.opt:  New file.
968         * config/vxlib.c:  Update for VxWorks 6.
970         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
971         other MULTILIB_* variables appropriately.
972         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
973         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
974         * config/rs6000/vxworks.h:  Update for VxWorks 6.
975         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
977 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
979         PR target/20799
980         * config/darwin.c (machopic_select_section): Remove the hack to
981         mark "::operator new" and "::operator delete" for coalescing
982         even though they are not weak.
984 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
986         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
987         * configure: Regenerate.
989 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
991         PR middle-end/23517
992         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
993         between vectors.
994         * convert.c (convert_to_integer, convert_to_vector): Likewise.
995         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
996         Likewise.
998 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
1000         * config/rs6000/predicates.md (equality_operator): New.
1001         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
1002         comparison with a large constant.
1004 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
1006         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
1008 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
1010         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
1011         registers is even, and we have a hardware double precision fp,
1012         align the buffer.
1013         (sh_gimplify_va_arg_expr): For floating point arguments, consider
1014         size of current argument when checking if argument was passed in
1015         registers.
1017         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
1019         PR middle-end/23467
1020         * stor-layout.c (finalize_type_size): Dont override
1021         existing alignment with a smaller alignment from the mode.
1023 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
1025         * lambda-code.c (lambda_vector_lexico_pos): Moved...
1026         * lambda.h (lambda_vector_lexico_pos): ... here.
1027         * tree-data-ref.c (build_classic_dist_vector): Return false when
1028         the distance vector is lexicographically negative.
1030 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
1032         PR tree-optimization/23511
1033         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't 
1034         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
1036 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
1038         PR tree-optimization/22043
1039         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
1040         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
1041         If ALLOW_FLEXARR, handle types ending with flexible array member.
1042         Pass false as second argument to recursive count_type_elements calls.
1043         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
1044         argument to count_type_elements call.
1045         * tree-sra.c (decide_block_copy): Likewise.
1046         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
1047         for a constant-sized object, set cleared as well.  Pass true as
1048         second argument to count_type_elements call.
1050 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
1052         PR target/21571
1053         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
1054         from legitimate_small_data_p, and make global.  Update use.
1055         Remove forward declaration.
1056         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
1057         Declare.
1058         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
1060 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
1062         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
1063         of scratch intermediates.
1064         (eq<mode>_compare): Same.
1065         (neg_eq0<mode>): New.
1066         (neg_eq<mode>): Convert to define_insn_and_split.
1068 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
1070         PR target/23070
1071         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
1072         stdarg functions, set/clear the fp marker even when no variable
1073         args are passed.
1074         * config/rs6000/sysv4.opt (mprototype): Describe.
1076 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
1078         PR rtl-optimization/23478
1079         * regs.h (reg_info): Add throw_calls_crossed.
1080         (REG_N_THROWING_CALLS_CROSSED): Define.
1081         * flow.c (allocate_reg_life_data): Initialize
1082         REG_N_THROWING_CALLS_CROSSED.
1083         (propagate_one_insn, attempt_auto_inc): Update
1084         REG_N_THROWING_CALLS_CROSSED.
1085         * global.c (global_alloc): Don't allocate pseudos across
1086         calls that may throw.
1088 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
1090         PR c/18715
1091         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
1092         value is inbetween the range if we did not find an exact match.
1094 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
1096         * doc/invoke.texi (Option Summary): Add ms1 options.
1097         * doc/extend.texi: Document interrupt handler attribute for ms1.
1098         * doc/md.texi: Document ms1 constraints.
1099         * config.gcc: Add ms1-*-elf.
1100         * config/ms1/ms1.h: New.
1101         * config/ms1/ms1.c: New.
1102         * config/ms1/ms1.md: New.
1103         * config/ms1/ms1-protos.h: New.
1104         * config/ms1/ABI.txt: New.
1105         * config/ms1/crti.asm: New.
1106         * config/ms1/crtn.asm: New.
1107         * config/ms1/lib2extra-funcs.c: New.
1108         * config/ms1/t-ms1: New.
1109         * config/ms1/ms1.opt: New.
1111 2005-08-22 Ira Rosen <irar@il.ibm.com>
1113         * config/rs6000/altivec.md (xorv4sf3): New.
1114         (negv4sf2, neg<mode>2): Likewise.
1116 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1118         PR target/23485
1119         * config/ia64/ia64.md (divsi3): Check divide by zero.
1120         (udivsi3): Likewise.
1121         (divdi3): Likewise.
1122         (udivdi3): Likewise.
1124 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
1126         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
1127         up to elem_bitsize bits, not max_bitsize.
1129 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
1131         PR tree-optimization/23433
1132         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
1133         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
1135 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
1137         PR tree-optimization/23434
1138         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
1139         the iteration bound is not an INTEGER_CST.
1141 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
1143         * tree-vect-transform.c (get_initial_def_for_reduction): Set
1144         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
1145         NULL if need_epilog_adjust is false.
1146         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
1147         Case 3 always peels first itration, not just for PLUS case, and no need
1148         to use scalar_initial_def here. Create an epilog adjustment only if
1149         scalar_initial_def is not NULL.
1151         (vectorizable_reduction): Remove assert. 
1153 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1155         PR target/23485
1156         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
1157         (__moddi3): Likewise.
1158         (__udivdi3): Likewise.
1159         (__umoddi3): Likewise.
1160         (__divsi3): Likewise.
1161         (__modsi3): Likewise.
1162         (__udivsi3): Likewise.
1163         (__umodsi3): Likewise.
1165 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
1167         * tree-pass.h (TDF_GRAPH): Define.
1168         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
1169         * passes.c (finish_optimization_passes): Only call
1170         finish_graph_dump_file if TDF_GRAPH is set.
1171         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
1172         NULL.  Set TDF_GRAPH bit.
1173         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
1175 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
1177         * arm.h (arm_stack_offsets): Add locals_base field.
1178         * arm.c (arm_get_frame_offsets): Compute it.
1179         (thumb_compute_initial_elimination offset): Make the Thumb frame
1180         pointer point to the base of the local variables.
1181         (thumb_expand_prologue): Update accordingly.
1182         (thumb_expand_epilogue): Likewise.
1184         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
1185         mode of clobbered scratch to DImode.  Handle a case that's known to
1186         need this.
1188 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
1190         * config/rs6000/rs6000.md (gt0<mode>): Delete.
1191         (gt0<mode>_compare): Delete.
1192         (neg_gt0<mode>): Delete.
1194 2005-08-19  Eric Christopher  <echristo@apple.com>
1196         * optabs.h: Change CTI_ to COI_.
1197         * optabs.c: Ditto.
1199 2005-08-19  James E Wilson  <wilson@specifix.com>
1201         * builtins.c (expand_builtin_return_addr): Set
1202         current_function_accesses_prior_frames when count != 0.  Use
1203         frame_pointer_rtx when count == 0.
1204         * function.h (struct function): Add accesses_prior_frames field.
1205         (current_function_accesses_prior_frames): Define.
1206         * reload1.c (init_elim_table): Check
1207         current_function_accesses_prior_frames.
1208         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
1210 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
1212         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
1213         indicator.  Return true if the flowgraph changed during
1214         cleanup.
1216 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
1218         PR 23476
1219         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
1220         conditional expression before testing its value.
1222 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
1224         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
1226 2005-08-19  Devang Patel  <dpatel@apple.com>
1228         PR tree-optimization/23048
1229         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
1230         third parameter. Check whether latch is dominated by exit
1231         block or not.
1232         (if_convertible_loop_p): Supply exit block itself to
1233         if_convertible_bb_p.
1235 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
1237         PR target/23473
1238         * arm.md (arm_load_pic_register): Change argument to the mask of
1239         saved registers.  Call thumb_find_work_register if we need a
1240         scratch register on Thumb.
1241         (arm_expand_prologue): Pass empty register set to
1242         arm_load_pic_register.
1243         (thumb_expand_prologue): Pass live_regs_mask directly to
1244         arm_load_pic_register.
1245         * arm-protos.h (arm_load_pic_register): Update prototype.
1247 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
1249         * sh.c (find_sole_member): New function.
1250         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
1251         if the record's alignment is larger than the size of its only member.
1253 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
1255         PR target/23436
1256         * arm.c (thumb_legitimize_reload_address): New function.
1257         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
1258         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
1260 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
1262         * config/crx/crx.c: Implement crx_decompose_address. Reject
1263         symbolic displacements since CRX register relative adressing
1264         mode can't handle unsigned 32-bit values as displacements.
1265         * config/crx/crx.h: Simplify definitions, remove redundant
1266         parenthesis and obsolete macros.
1267         * config/crx/crx.opt: Add new switch for debugging addresses.
1268         * config/crx/crx-protos.h: Add new declarations for above.
1270 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
1272         PR middle-end/20624
1273         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
1274         looking past it.
1276 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1278         * collect2.c (dup2): Delete.
1279         * configure.ac: Don't check for dup2.
1281         * config.in, configure: Regenerate.
1283 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
1285         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
1286         record with the type of its only member.
1288 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
1290         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
1291         define_insn_and_split.
1292         (plus_ltu<mode>_compare): Same.
1293         (gtu<mode>_compare): Same.
1294         (plus_gtu<mode>_compare): Same.
1296 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
1298         PR tree-optimization/22228
1299         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
1300         todo_flags_start.
1301         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
1302         are recorded in vect_vnames_to_rename for renaming.
1303         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
1304         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
1305         in vect_vnames_to_rename.
1306         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
1307         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
1309 2005-08-18  Jan Hubicka  <jh@suse.cz>
1311         PR c++/22034
1312         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
1313         info only for local statics, not for member variables.
1315 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1317         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
1319 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1321         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
1323 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
1325         PR middle-end/16045
1326         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
1328 2005-08-17  James E Wilson  <wilson@specifix.com>
1330         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
1331         array size check.
1333 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
1335         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
1336         (leu<mode>_compare): Same.
1337         (plus_leu<mode>): Same.
1338         (neg_leu<mode>): Same.
1339         (and_neg_leu<mode): Same.
1340         (ltu<mode>_compare): Same.
1341         (plus_ltu<mode>): Same.
1342         (geu<mode>): Same.
1343         (geu<mode>_compare): Same.
1344         (plus_geu<mode>): Same.
1345         (neg_geu<mode>): Same.
1346         (and_neg_geu<mode>): Same.
1347         (plus_gt<mode>): Same.
1348         (gtu<mode>_compare): Same.
1349         (plus_gtu<mode>): Same.
1351 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
1353         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
1354         Move call_table_data to end.  Delete spurious .text.
1355         (callt_save_all_interrupt): Fix comment typo.
1357 2005-08-17  James E Wilson  <wilson@specifix.com>
1358             Kevin Winchester  <winchester@amirix.com>
1360         PR target/21684
1361         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
1363 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
1365         PR target/23268
1366         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
1367         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
1369 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
1371         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
1372         record with the type of its only member if the modes don't match.
1374         * varasm.c (decode_reg_name): Skip empty additional register names.
1376 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
1378         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
1379         lsm_tmp_name_length): New.
1380         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
1381         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
1383 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1384             Andreas Krebbel  <krebbel1@de.ibm.com>
1386         * config.gcc: Added z9-109 switch.
1387         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
1388         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
1389         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
1390         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
1391         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
1392         for "z9_109" cpu attribute.
1393         * config/s390/s390.c (z9_109_cost): New processor cost structure.
1394         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
1395         (s390_handle_arch_option): Added z9-109 switch.
1396         (override_options): Set respective cost function for z9-109.
1397         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
1398         (legitimate_reload_constant_p): Accept extended immediates.
1399         (print_operand): Three new output modifiers added: k, m and o.
1400         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
1401         (s390_output_mi_thunk): Use extended immediate when possible.
1402         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
1403         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
1404         (CONSTRAINT_LEN): Added length of O constraint.
1405         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
1406         * config/s390/s390.md ("cpu"): New value z9_109 added.
1407         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
1408         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
1409         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
1410         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
1411         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
1412         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
1413         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
1414         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
1415         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
1416         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
1417         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
1418         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
1419         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
1420         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
1421         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
1422         immediates.
1423         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
1424         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
1425         insns for TARGET_EXTIMM.
1427 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
1429         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
1431 2005-08-17  Nick Clifton  <nickc@redhat.com>
1433         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
1434         Call default_encode_section_info.
1436 2005-08-17  Steven Bosscher  <stevenb@suse.de>
1438         PR tree-optimization/21574
1439         * tree-ssa-ccp.c (likely_value): If the right hand side is a
1440         constant, return CONSTANT.
1441         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
1442         (ccp_fold, visit_assignment): Likewise.
1443         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
1445 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
1447         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
1448         fold_buildN instead of buildN then fold_initializer or fold.
1449         (build_unary_op): Likewise.
1450         (build_binary_op): Likewise.
1451         * fold-const.c (fold_initializer): Remove.
1452         (fold_build1_initializer): New function.
1453         (fold_build2_initializer): New function.
1454         (fold_build3_initializer): New function.
1455         * tree.h (fold_initializer): Remove.
1456         (fold_build1_initializer): New function.
1457         (fold_build2_initializer): New function.
1458         (fold_build3_initializer): New function.
1460 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
1462         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
1463         (try_move_mult_to_index): Call fold_build2 instead of build2.
1464         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
1465         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
1466         fold_binary_to_constant.
1467         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
1468         fold (build.
1469         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
1470         check if A == gcd (A, B).  Remove TYPE argument.
1471         (analyze_offset) Use fold_build2 instead of fold (build.
1472         (create_data_ref): Likewise.
1473         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
1474         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
1475         then fold.
1477 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
1479         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
1480         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
1482 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
1484         PR tree-opt/23402
1485         * gimplify.c (zero_sized_type): New function.
1486         (gimplify_modify_expr_rhs): If we have a zero sized type,
1487         replace the statement with an empty statement.
1489 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
1491         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
1492         fxsave.
1494 2005-08-16  Ian Lance Taylor  <ian@airs.com>
1496         * doc/tm.texi (Label Output): Correct typo.
1498 2005-08-16  Steven Bosscher  <stevenb@suse.de>
1500         PR target/23376
1501         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
1502         force_operand will work later on using have_insn_for.
1504 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1506         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
1508 2005-08-16  Ian Lance Taylor  <ian@airs.com>
1510         PR c++/23337
1511         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
1512         vector type, don't try to construct it element by element.  Add an
1513         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
1515 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1517         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
1519 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
1521         * doc/invoke.texi (Precompiled Headers): Document some more options
1522         which are known to be safe.
1524 2005-08-16  James E Wilson  <wilson@specifix.com>
1526         PR tree-optimization/21105
1527         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
1528         TREE_OVERFLOW check.
1530 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
1532         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
1533         (neg_ltu<mode>): Same.
1534         (gtu<mode>): Same.
1535         (neg_gtu<mode>): Same.
1537 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1539         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
1540         (fold_builtin_isdigit): Use fold_buildN.
1541         (build_function_call_expr): Likewise.
1542         * c-typeck.c (c_finish_loop): Likewise.
1544 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
1545             Richard Shann <rshann@superh.com>
1547         PR middle-end/20396:
1548         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
1550 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
1552         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
1554 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
1556         PR target/23355
1557         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
1558         arm_compure_save_reg0_reg12_mask to determine when the PIC register
1559         must be saved.
1561 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1563         PR middle-end/23369
1564         * fold-const.c (build_range_check): Disable optimization for function
1565         pointer expressions on targets that require function pointer
1566         canonicalization.
1568 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
1570         * simplify-rtx.c (simplify_const_relational_operation): When
1571         extracting arguments of a COMPARE, recompute the mode as well.
1573 2005-08-15  Ian Lance Taylor  <ian@airs.com>
1575         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
1577 2005-08-15  DJ Delorie  <dj@redhat.com>
1579         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
1580         the stack.
1581         (movsi_splittable): Allow, but split, moves to the stack.
1582         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
1583         stack.
1585 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1587         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
1588         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
1589         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
1591         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
1592         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
1593         Delete HOST_PTR_PRINTF.
1595         * configure, config.in: Regenerate.
1597 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
1599         * config/rs6000/rs6000.md (QHSI): New mode macro.
1600         (wd): Extend mode attr for QImode and HImode
1601         (dbits): New mode attr.
1602         (zero_extend<mode>di2): Convert to mode macro.
1604 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
1606         PR target/21841
1607         * doc/invoke.texi (-mgnu-ld): Update description.
1608         (-mhp-ld): Ditto.
1610 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
1612         PR 23391
1613         * Makefile.in (tree-chrec.o): Depends on real.h.
1614         * tree-chrec.c: Include real.h.
1615         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
1616         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
1617         * tree-scalar-evolution.c (add_to_evolution_1,
1618         interpret_rhs_modify_expr): Ditto.
1620 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
1622         PR 23386
1623         * tree-data-ref.c (estimate_niter_from_size_of_data): When
1624         step is negative compute the estimation from init downwards to zero.
1626 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
1628         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
1630 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
1632         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
1633         constraint.
1634         (legitimate_reload_constant_p): Fix handling of lliXX operands.
1635         Accept double-word constants that can be split.
1636         * config/s390/s390.md ("movti"): Use 'P' constraint.
1637         ("*movdi_31", "*movdf_31"): Likewise.
1639 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
1641         Fix PR tree-optimization/22615
1643         * tree-ssa-structalias.c (solution_set_add): Handle
1644         first_vi_for_offset returning NULL.
1645         (do_da_constraint): Ditto.
1646         (do_sd_constraint): Ditto.
1647         (do_ds_constraint): Ditto
1648         (find_func_aliases): Ditto.
1649         (build_constraint_graph): RHS is allowed be ANYTHING.
1650         (first_vi_for_offset): Return NULL if we couldn't find anything at
1651         the offset.
1653 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
1655         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
1656         over memory as first operand.
1658 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
1660         PR target/23360
1661         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
1662         available for setting it.
1664 2005-08-14  Ira Rosen  <irar@il.ibm.com>
1666         PR tree-optimization/23320
1667         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
1668         data-refs' types instead of base object nullness. Add check for
1669         pointer type data-refs before first location comparison. Remove
1670         assert.
1672 2005-08-14  Andreas Schwab  <schwab@suse.de>
1674         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
1676 2005-08-13  James E Wilson  <wilson@specifix.com>
1678         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
1679         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
1680         -fstack-protector-all, --param ssp-buffer-size): Document.
1681         (-Wvariadic-macros): Alphabetize.
1682         (-fsched-stalled-insns-dep): Add missing 'f'.
1684         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
1685         macros.
1687 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
1689         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
1690         or indirect address operand.
1691         (EXTRA_ADDRESS_CONSTRAINT): New.
1692         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
1694 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
1696         PR tree-optimization/22236
1697         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
1698         successors and predecessors.
1699         * tree-chrec.c (chrec_convert): Before converting, check that
1700         sequences don't wrap.
1701         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
1702         (analyze_array): Extern.
1703         (find_data_references_in_loop): Remove call to
1704         compute_estimated_nb_iterations.
1705         * tree-data-ref.h (analyze_array): Declared.
1706         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
1707         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
1708         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
1709         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
1710         condition.
1711         * tree-ssa-loop-ivcanon.c: Fix documentation.
1712         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
1713         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
1714         (infer_loop_bounds_from_undefined): New.
1715         (estimate_numbers_of_iterations_loop): Use
1716         infer_loop_bounds_from_undefined.
1717         (used_in_pointer_arithmetic_p): New.
1718         (scev_probably_wraps_p): Pass an extra parameter.  Call
1719         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
1720         (convert_step): Fix documentation.
1721         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
1722         Use initial_condition_in_loop_num and evolution_part_in_loop_num
1723         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
1724         scev_probably_wraps_p.
1726 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
1728         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
1729         (s390_register_info): Ignore clobbered_regs information for fixed
1730         registers, and only fixed registers.
1731         (s390_init_frame_layout): Remove redundant call.
1733 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
1735         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
1736         description of -Wold-style-casts.
1738 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
1739             Jakub Jelinek  <jakub@redhat.com>
1741         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
1742         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
1743         * config/s390/s390.c (print_operand): New output modifier 'G' added.
1744         (get_thread_pointer): Renamed to s390_get_thread_pointer.
1745         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
1746         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
1747         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
1748         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
1749         ("stack_protect_set", "stack_protect_test"): New expanders.
1750         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
1751         "stack_protect_testdi"): New insn definitions.
1753 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
1755         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
1757 2005-08-12  Paul Brook  <paul@codesourcery.com>
1759         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
1761 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
1763         * config/s390/predicates.md (setmem_operand): New predicate.
1764         (shift_count_operand): Accept ANDs with special constants as
1765         operand.
1766         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
1767         with special constants.
1768         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
1769         shift_count_operand with setmem_operand.
1771 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
1773         * config/s390/s390.c (s390_extract_part, s390_single_part):
1774         Type cast added.
1775         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
1776         (s390_output_mi_thunk): Don't use lg on 31 bit.
1777         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
1778         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
1780 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
1782         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
1783         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
1784         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
1785         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
1786         with one of the new macros.
1788 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
1790         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
1791         Don't set save_return_addr_p.
1792         (s390_register_info): Make clobbered_regs not depending on
1793         save_return_addr_p.
1795 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1797         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
1798         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
1800 2005-08-11  James E. Wilson  <wilson@specifix.com>
1802         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
1804 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
1806         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
1807         locations gathered by var-tracking in single entry loc_list
1808         over loc_descriptor_from_tree.
1810         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
1811         pass it down to loc_descriptor.
1812         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
1813         (containing_function_has_frame_base): Move earlier in the file.
1814         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
1815         instead of always assuming fbreg can't be used.
1817 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
1819         * config/rs6000/altivec.md: Change constraint "m" to "Z".
1820         * config/rs6000/predicates.md (indexed_or_indirect_operand):
1821         Accept address wrapped in AND for Altivec.
1822         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
1823         Strip AND wrapping offset address for Altivec.
1825 2005-08-11  Richard Henderson  <rth@redhat.com>
1827         PR middle-end/23312
1828         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
1829         before using TYPE_IS_SIZETYPE.
1831 2005-08-11  Richard Henderson  <rth@redhat.com>
1833         PR target/22225
1834         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
1835         insn types not present on ev4.
1836         (alphaev5_insn_pipe): Similarly.
1838 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
1840         PR target/23250
1841         * arm.c (arm_override_options): If the user has selected callee-super-
1842         interworking, then enable normal interworking.
1844 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1846         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
1847         redefinition.
1849 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
1851         * doc/rtl.texi: Fix two typos.
1853 2005-08-11  Richard Guenther  <rguenther@suse.de>
1855         PR target/23289
1856         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
1857         cases where we call to/from functions returning void.
1859 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
1861         PR c++/23225
1862         * tree.c (build_pointer_type_for_mode): Robustify.
1864 2005-08-10  James E Wilson  <wilson@specifix.com>
1866         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
1867         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
1869         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
1870         "cum->".
1872 2005-08-10  Eric Christopher  <echristo@apple.com>
1874         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
1875         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
1876         V2DFmode.
1878 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
1880         PR target/21887
1881         * config/darwin.c (machopic_indirect_data_reference): Use a new register
1882         for the high part when generating dynamic-no-pic code.
1884 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
1886         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
1887         (x86_64-*-linux*): Likewise.
1889         * config/i386/crtfastmath.c: New file.
1890         * config/i386/t-crtfm: Likewise.
1892         * config/i386/linux.h (ENDFILE_SPEC): New.
1893         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
1895         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
1896         crtfastmath.o.
1898 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
1900         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
1901         (vec_shl, vec_shr): Document new operations.
1902         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
1904 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
1906         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
1907         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
1908         change predicate to indexed_or_indirect_address.
1910 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
1912         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
1913         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
1914         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
1915         and __aeabi_uwrite8.
1916         * config/arm/unaligned-funcs.c: New file.
1917         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
1919 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
1921         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
1922         Add dump.
1923         * cfglayout.c (pass_insn_locators_initialize): Add dump.
1924         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
1925         Add dump.
1926         * except.c (pass_convert_to_eh_region_ranges): Add dump.
1927         * final.c (pass_shorten_branches): Add dump.
1928         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
1929         (pass_life): Rename dump.
1930         (rest_of_handle_flow2): Remove initial verify_flow_info.
1931         * function.c (pass_instantiate_virtual_regs): Add dump.
1932         * integrate.c (pass_initial_value_sets): Add dump.
1933         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
1934         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
1935         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
1936         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
1937         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
1938         gate_rtl_unrool_and_peel_loops): New.
1939         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
1940         rtl_doloop): Do not look at flags.
1941         * mode-switching.c (pass_mode_switching): Add dump.
1942         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
1943         pass_split_before_regstack): Add dump.
1944         * regmove.c (pass_stack_adjustments): Add dump.
1945         * tree-optimize.c (pass_fixup_cfg): Add dump.
1947 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1949         PR 23309
1950         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
1951         deciding which instruction sequence to use.
1953 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
1955         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
1956         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
1958 2005-08-09  Richard Guenther  <rguenther@suse.de>
1960         * c-common.c (builtin_function_2): Remove.
1961         (def_builtin_1): New function.
1962         (c_common_nodes_and_builtins): Use def_builtin_1 to
1963         build builtin functions.
1965 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
1967         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
1968         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
1969         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
1970         Visual DSP.
1972 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
1974         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
1975         fold_binary instead of fold_build2 since we don't care about the
1976         resulting tree.
1977         (loop_niter_by_eval): Likewise.
1978         (compare_trees): Likewise.
1979         (proved_non_wrapping_p): Likewise.
1981 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
1983         PR c/23161
1984         PR c/23165
1985         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
1986         if the if is really empty.
1988 2005-08-09  Steven Bosscher  <stevenb@suse.de>
1990         PR tree-optimization/23234
1991         * tree-ssa-math-opts.c (place_reciprocal): New enum.
1992         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
1993         argument of the new enum.
1994         (execute_cse_reciprocals): Add reciprocals for function arguments
1995         on the unique successor edge of the entry block.  Update other calls
1996         to execute_cse_reciprocals_1.
1998 2005-08-08  Richard Henderson  <rth@redhat.com>
2000         PR 22439
2001         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
2003 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
2005         * expr.c (write_complex_part): Return after handling MEM.
2007 2005-08-08  Josh Conner  <jconner@apple.com>
2009         PR rtl-optimization/23241
2010         * combine.c (simplify_comparison): Fix error in determining
2011         whether to lift a subreg from comparison.
2013 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
2015         PR target/18506
2016         * config/rs6000/altivec.md (vec_init<mode>): New.
2017         (vec_set<mode>): New.
2018         (vec_extract<mode>): New.
2019         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
2020         (rs6000_expand_vector_set): New.
2021         (rs6000_expand_vector_extract): New.
2022         (rs6000_legitimate_offset_address_p): Offset addresses are valid
2023         for Altivec modes before reload.
2024         (altivec_expand_vec_init_builtin): New.
2025         (get_element_number): New.
2026         (altivec_expand_vec_set_builtin): New.
2027         (altivec_expand_vec_ext_builtin): New.
2028         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
2029         builtins.
2030         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
2031         builtins.
2032         * config/rs6000/rs6000.h (rs6000_builtins): Add
2033         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
2034         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
2035         * config/rs6000/rs6000-protos.h: Declare new functions.
2037 2005-08-08  Jan Hubicka  <jh@suse.cz>
2039         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
2040         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
2041         * i386.md (movdi*): Use pic_32bit_operand.
2042         * predicates.md (pic_32bit_operand): New.
2044 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
2046         PR c++/21166
2047         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
2049 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
2051         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
2052         (test_for_singularity): Use fold_build2.
2054 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2056         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
2058 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
2060         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
2061         (COMMON_ASM_OP) Define.
2062         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
2063         (ix86_encode_section_info): Likewise.
2064         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
2065         SUBTARGET_ENCODE_SECTION_INFO.
2067 2005-08-06  Richard Henderson  <rth@redhat.com>
2069         PR 21894
2070         * tree-nested.c (convert_local_reference): Save and restore val_only
2071         around component_ref and friends.  Clear walk_subtrees by default.
2073 2005-08-06  Peter O'Gorman  <peter@pogma.com>
2075         PR 21366
2076         * gcc.c (process_command): Check the argument to -b has a dash.
2077         * doc/invoke.texi: Update -b and -V docs.
2079 2005-08-06  James E Wilson  <wilson@specifix.com>
2081         * config/mips/cross64.h, config/mips/t-cross64: Delete.
2083 2005-08-06  Michael Matz  <matz@suse.de>
2085         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
2086         member only if only one insn is associated with the value.
2088 2005-08-06  Nick Clifton  <nickc@redhat.com>
2090         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
2091         New define.
2092         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
2093         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
2094         Check symbol flags instead of symbol name mangling.
2095         (xstormy16_asm_output_aligned_common): Likewise.  Also
2096         simplify code since the bss100_section cass is the only case
2097         where the below100 code will be triggered.
2098         (xstormy16_encode_section_info): Encode below100 attribute
2099         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
2100         the name.
2101         (xstormy16_strip_name_encoding): Delete - this function is no
2102         longer needed.
2103         (TARGET_STRIP_NAME_ENCODING): Undefine.
2104         * config/stormy16/stormy16-protos.h: Delete prototype for
2105         xstormy16_strip_name_encoding.
2107 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
2109         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
2110         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
2111         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
2112         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
2113         config/alpha/predicates.md, config/arc/arc.h,
2114         config/arm/arm.h, config/arm/ieee754-df.S,
2115         config/arm/ieee754-sf.S, config/bfin/bfin.c,
2116         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
2117         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
2118         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
2119         config/m68hc11/m68hc11.h, config/mips/mips.c,
2120         config/mips/mips.h, config/mips/openbsd.h,
2121         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
2122         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
2123         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2124         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
2125         config/sparc/linux.h, config/sparc/linux64.h,
2126         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
2127         doc/extend.texi, doc/gcov.texi, doc/install.texi,
2128         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
2129         typos.  Follow spelling conventions.
2131 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
2133         PR c/23113
2134         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
2135         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
2136         specially.  Check for side effects only for COND_EXPR.
2137         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
2138         return with TREE_NO_WARNING.
2140 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
2142         PR rtl-optimization/23233
2143         * loop.c (combine_movables): Require the modes to be the same.
2144         (move_movables): Remove handling of cases where the replacement
2145         had a different mode to the original.
2147 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
2149         PR tree-optimization/23128
2150         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
2151         subtraction wrap, and set TREE_OVERFLOW if they do.
2153 2005-08-05  Richard Henderson  <rth@redhat.com>
2155         PR 21728
2156         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
2157         FORCED_LABEL labels.
2159 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
2161         PR middle-end/23135
2162         * reload.c (find_reloads_subreg_address): Pass down TYPE
2163         unchanged.  Change all callers except find_reloads_toplev.
2165 2005-08-05  Michael Matz  <matz@suse.de>
2167         * genattrtab.c (current_alternative_string): Remove.
2168         (SIMPLIFY_ALTERNATIVE): Ditto.
2169         (attr_alt_bit_p): Ditto.
2170         (alternative_name): Make const char *.
2171         (evaluate_eq_attr): Remove use of above things.
2172         (simplify_test_exp): Ditto.
2173         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
2174         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
2176 2005-08-04  James E Wilson  <wilson@specifix.com>
2178         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
2179         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
2180         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
2181         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
2182         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
2184 2005-08-04  Richard Henderson  <rth@redhat.com>
2186         PR 21529
2187         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
2188         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
2189         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
2190         if we'd have to instantiate too many members.
2192 2005-08-04  Richard Henderson  <rth@redhat.com>
2194         PR 21291
2195         * tree-outof-ssa.c (coalesce_asm_operands): New.
2196         (coalesce_ssa_name): Use it.  Split out ...
2197         (coalesce_phi_operands, coalesce_result_decls): ... these.
2199 2005-08-04  Paul Brook  <paul@codesourcery.com>
2201         * read-rtl.c (read_quoted_string): Break if EOF.
2203 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
2205         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
2206         (fold_build2): Likewise.
2207         (fold_build3): Likewise.
2208         (fold_build1_stat): New function prototype.
2209         (fold_build2_stat): Likewise.
2210         (fold_build3_stat): Likewise.
2211         * fold-const.c (fold_build1): Rename to ..
2212         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
2213         through to build1_stat.
2214         (fold_build2): Rename to ..
2215         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
2216         through to build2_stat.
2217         (fold_build3): Rename to ..
2218         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
2219         through to build3_stat.
2221 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
2222             Ian Lance Taylor  <ian@airs.com>
2224         * function.c (assign_stack_local_1): Do not correct stack slot
2225         address if allocation size is smaller than mode size.
2227 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
2229         PR 22037
2230         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
2231         (tree_merge_blocks): Propagate anything allowed by
2232         may_propagate_copy.
2233         Clarify documentation.
2234         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
2235         SSA form, schedule an update if necessary.
2237 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
2239         * doc/install.texi (Binaries): Remove broken link to
2240         Sinix/Reliant Unix binaries.
2242 2005-08-03  Richard Henderson  <rth@redhat.com>
2244         PR 23221
2245         * function.c (stack_protect_epilogue): Export.
2246         * tree.h (stack_protect_epilogue): Declare.
2247         * calls.c (expand_call): Call it.
2249 2005-08-03  Eric Christopher  <echristo@apple.com>
2251         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
2252         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
2253         spec.
2255 2005-08-04  Jan Hubicka  <jh@suse.cz>
2257         * profile.c (branch_prob): Split edges with goto locus on them
2258         to get proper line counts.
2259         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
2261 2005-08-03  Paul Brook  <paul@codesourcery.com>
2263         * function.c (assign_parms): Round current_function_args_size
2264         to PARM_BOUNDARY, not STACK_BOUNDARY.
2266 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
2268         * config/i386/i386.c (x86_elf_aligned_common)
2269         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
2271 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
2273         PR tree-optimization/23157
2274         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
2275         before emitting them.
2277 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2279         PR tree-optimization/19899
2280         * Makefile.in (tree-scalar-evolution.o): Add real.h.
2281         * tree-scalar-evolution.c: Include real.h.
2282         (add_to_evolution): Build constant -1 of correct type.
2284 2005-08-03  Jan Hubicka  <jh@suse.cz>
2286         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
2287         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
2288         profile updating for complette unrolling.
2289         * loop-unroll.c (peel_loop_completely): Use it.
2290         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2291         (tree_unroll_loops_completely): Disable code growing unrolling of cold
2292         loops.
2294 2005-08-03  Paul Brook  <paul@codesourcery.com>
2296         * combine.c (can_change_dest_mode): New function.
2297         (try_combine, simplify_set): Use it.
2299 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
2301         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
2302         TFmode to BLKmode.
2304 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
2306         * doc/install.texi (Specific): Adjust link to openavr.org.
2307         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
2308         (Binaries): Adjust HP-UX Porting Center link.
2309         (Binaries): Adjust Free Software Foundation ordering link.
2311 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
2313         * convert.c (convert_to_integer): Use fold_build1 instead of
2314         build1 when converting an integer to an integer.
2316 2005-08-02  Richard Henderson  <rth@redhat.com>
2318         * combine.c (combine_instructions): Don't use reg_equal/equiv
2319         results if the mode doesn't match.
2321 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
2323         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
2324         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
2326 2005-08-02  Richard Henderson  <rth@redhat.com>
2328         PR 23196
2329         * explow.c (memory_address): Remove special-case for
2330         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
2332 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
2334         PR 23164
2335         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
2336         number of calls to cleanup_tree_cfg_1.
2338 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
2340         * doc/invoke.texi: document file extensions .F90 and .F95
2342 2005-08-02  Richard Guenther  <rguenther@suse.de>
2344         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
2345         positive if its first argument is positive.
2347 2005-08-02  Richard Guenther  <rguenther@suse.de>
2349         PR tree-optimization/23177
2350         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
2351         on TMR_TAG.
2353 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
2355         PR tree-optimization/23129
2356         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
2357         varying for divisions with anti-ranges.
2359 2005-08-02  Jan Hubicka  <jh@suse.cz>
2361         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
2362         * tree-ssa-threadupdate.c (thread_block): Add it here.
2364 2005-08-01  James E Wilson  <wilson@specifix.com>
2366         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
2367         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
2368         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
2369         New.
2370         * config/mips/predicates.md (const_call_insn_operand): Add check for
2371         SYMBOL_REF_LONG_CALL_P.
2372         * doc/extend.texi (long_call): Document the new attribute.
2374 2005-08-01  Ian Lance Taylor  <ian@airs.com>
2375             Richard Henderson  <rth@redhat.com>
2377         * Makefile.in (RTL_BASE_H): Add real.h.
2378         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
2379         instead of memcpy.
2380         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
2381         directly.
2382         * rtl.c (rtl_check_failed_code_mode): New.
2383         * rtl.h (struct rtx_def): Add u.rv.
2384         (XCMWINT, XCNMPRV): New.
2385         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
2386         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
2388 2005-08-01  Richard Henderson  <rth@redhat.com>
2390         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
2391         with auto-inc codes.
2393         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
2395 2005-08-01  Jan Hubicka  <jh@suse.cz>
2397         * i386-protos.h (asm_preferred_eh_data_format): Declare.
2398         * i386.c: Include dwarf2.h
2399         (asm_preferred_eh_data_format): New.
2400         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
2402 2005-08-01  Ian Lance Taylor  <ian@airs.com>
2404         * config/host-linux.c (linux_gt_pch_get_address): Add new name
2405         randomize_va_space for virtual address randomization control.
2407 2005-08-01  Steven Bosscher  <stevenb@suse.de>
2409         * common.opt (flag_ipa_cp): Put in right place to maintain
2410         alphabetic sort.
2412 2005-08-01  Jan Hubicka  <jh@suse.cz>
2414         * profile.c (compute_value_histograms): Fix thinko.
2415         * value-prof.c: Include toplev.h
2416         (check_counter): New function.
2417         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
2418         tree_mod_subtract_transform): Add sanity check.
2420 2005-08-01  Richard Guenther  <rguenther@suse.de>
2422         PR tree-optimization/23133
2423         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
2424         current functions parameter decls to find defs to cse
2425         reciprocals of.
2427 2005-08-01  Richard Guenther  <rguenther@suse.de>
2429         PR tree-optimization/23109
2430         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
2431         If trapping math is in effect, use post-dominator information
2432         to check if we'd in any case reach a trapping point before
2433         doing the reciprocal insertion.
2434         (execute_cse_reciprocals): Compute post-dominators, if necessary.
2435         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
2436         expressions are invariant only if trapping math is not in effect.
2438 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
2440         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
2441         cgraph_function_versioning): New declarations.
2442         * cgraphunit.c: Add include to ipa-prop.h.
2443         (update_call_expr, cgraph_copy_node_for_versioning,
2444         cgraph_function_versioning): New functions.
2445         * integrate.c (copy_decl_for_inlining): Remove.
2446         * ipa-prop.h (ipa_replace_map): New struct.
2447         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
2448         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
2449         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
2450         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
2451         ipcp_iterate_stage, ipcp_method_scale_print,
2452         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
2453         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
2454         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
2455         ipcp_update_bb_counts, ipcp_update_profiling,
2456         ipcp_update_edges_counts): New functions.
2457         (ipcp_method_cval_init): Remove restriction regarding local methods.
2458         (ipcp_init_stage): Add ipcp_method_compute_scale.
2459         (ipcp_insert_stage): Add versioning.
2460         (ipcp_structures_print): Add ipcp_method_scale_print.
2461         (ipcp_driver): Dump profiling info.
2462         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
2463         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
2464         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
2465         (struct inline_data): Add versioning_p, ipa_info, new fields.
2466         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
2467         declare_return_variable): Replace calls to copy_decl_for_inlining with
2468         copy_decl_for_dup.
2469         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
2470         versioning support.
2471         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
2472         Add argument VERSIONING.
2473         (copy_arguments_for_versioning, copy_static_chain,
2474         function_versionable_p, tree_versionable_function_p,
2475         tree_function_versioning, replace_ref_tree): New functions.
2476         * tree-inline.h: Include varray.h.
2477         (tree_versionable_function_p,  tree_function_versioning,
2478         tree copy_decl_for_dup): New declarations.
2480 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
2482         * ipa-cp.c: New file. Contains IPCP specific functionality.
2483         * ipa-prop.h: New file. Contains structures/definitions that can be
2484         used by several interprocedural data flow optimizations (and also IPCP).
2485         * ipa-prop.c: New file.
2486         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
2487         * common.opt: Add ipa-cp flag.
2488         * timevar.def: Add IPCP optimization.
2489         * tree-optimize.c (init_tree_optimization_passes): Schedule
2490         pass_ipa_cp.
2491         * tree-pass.h (pass_ipa_cp): Declare.
2493 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
2495         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
2496         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
2497         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
2498         config/i386/i386.c, config/mips/mips.h,
2499         config/rs6000/rs6000.h, config/sh/sh.c,
2500         config/stormy16/stormy16.c: Fix comment typos.
2502 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
2504         PR c/22311
2505         * c-typeck.c (build_binary_op): Use common_type wrapper on
2506         shortened types.
2507         (common_type): Update comment.
2509 2005-07-31  Steven Bosscher  <stevenb@suse.de>
2511         PR target/23095
2512         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
2513         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
2514         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
2516 2005-07-31  Jan Hubicka  <jh@suse.cz>
2518         * pretty-print.h (pp_widest_integer): New macro.
2519         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
2520         counts.
2522 2005-07-31  Jan Hubicka  <jh@suse.cz>
2524         * output.h (enum section_category): Export from varasm.c
2525         (categorize_decl_for_section): Likewise.
2526         * varasm.c (enum section_category): Kill.
2527         (categorize_decl_for_section): Make global.
2528         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
2529         Declare.
2530         * i386.c (ix86_section_threshold): New static variable.
2531         (ix86_in_large_data_p, ix86_encode_section_info,
2532         x86_64_elf_unique_section,
2533         x86_64_elf_select_section): New functions.
2534         (TARGET_ENCODE_SECTION_INFO): Define
2535         (override_options): Enable medium model for PIC.
2536         (ix86_expand_prologue): Expand gen_set_got_rex64.
2537         (legitimate_constant_p): Handle new UNSPECs.
2538         (legitimate_pic_address_disp_p): Likewise.
2539         (legitimize_pic_address): Lower MEDIUM model addressing.
2540         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
2541         (enum cmodel): Add MEDIUM_PIC.
2542         (SYMBOL_REF_FAR_ADDR_P): New macro.
2543         (SYMBOL_FLAG_FAR_ADDR): New flag.
2544         * i386.md (movdi): Support medium model.
2545         (set_got_rex64): New pattern.
2546         * i386.opt (mlarge-data-threshold): New flag.
2547         * predicates.md (zext_operand/sext_operand): Deal with medium model.
2548         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
2549         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
2550         TARGET_ASM_UNIQUE_SECTION): New.
2552         * invoke.texi (-mlarge_data_threshold): Document
2554 2005-07-31  Jan Hubicka  <jh@suse.cz>
2556         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
2557         (coalesce_vars): Likewise.
2558         * tree-ssa-live.c (coalesce_cost): New.
2559         (build_tree_conflict_graph): Use coalesce_cost.
2560         * tree-ssa-live.h (coalesce_cost): Declare.
2562 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
2564         * arm.md (all peepholes for post-increment operations): Delete.
2565         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
2566         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
2567         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
2568         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
2569         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
2571 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
2573         * fold-const.c (tree_expr_nonnegative_p): Always return true for
2574         non-integral types.
2576 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
2578         PR target/22582
2579         * doc/invoke.texi: Document -rdynamic.
2581 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
2583         PR c/23143
2584         * c-parser.c (c_parser_parms_list_declarator): Call
2585         mark_forward_parm_decls.
2586         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
2587         decls with visibility structure.
2589 2005-07-30  Paul Brook  <paul@codesourcery.com>
2591         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
2593 2005-07-30  Paul Brook  <paul@codesourcery.com>
2595         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
2596         prototype.
2597         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
2598         value for mode.
2599         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
2601 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
2603         PR c/529
2604         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
2605         nested function declarators.
2606         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
2607         (grokparms): Call warn_if_shadowing for parameters used within the
2608         parameter list.
2609         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
2610         not used within the parameter list.
2611         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
2613 2005-07-30  Jan Hubicka  <jh@suse.cz>
2615         * expr.c (expand_expr_real_1): Do not load mem targets into register.
2616         * i386.c (ix86_fixup_binary_operands): Likewise.
2617         (ix86_expand_unary_operator): Likewise.
2618         (ix86_expand_fp_absneg_operator): Likewise.
2619         * optabs.c (expand_vec_cond_expr): Validate dest.
2621 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
2623         PR c/21720
2624         * real.c (real_from_string): Also set last bit if there is a
2625         nonzero hex digit beyond GCC's internal precision after ".".
2627 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
2629         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
2630         define_constants.  Change duplicate values to unassigned numbers.
2631         Change UNSPEC_SUBS to UNSPEC_VSUBS.
2632         (*altivec_vspltsf): New.
2633         (altivec_vperm_v4sf): Delete.
2634         (altivec_vperm_<mode>): Use mode macro V.
2635         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
2636         (altivec_predicate_v4sf): Delete.
2637         (altivec_predicate_<mode>): Use mode macro V.
2638         (*altivec_lvesfx): New.
2639         (*altivec_stvesfx): New.
2640         (vec_realign_load_v4sf): Delete.
2641         (vec_realign_load_<mode>): Use mode macro V.
2642         * config/rs6000/rs6000.c (generate_set_vrsave): Use
2643         UNSPECV_SET_VRSAVE.
2645 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
2647         PR bootstrap/23131
2648         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
2649         string.
2650         * configure: Regenerated.
2652 2005-07-29  Paul Brook  <paul@codesourcery.com>
2654         * doc/install.texi: Add link to GFortran binaries wiki page.
2656 2005-07-29  David Ung  <davidu@mips.com>
2658         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
2659         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
2660         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
2661         * config/mips/mips.md (cpu): Add 5kf name.
2662         (includes): Includes 5k.md.
2663         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
2664         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
2665         -march flag.
2667 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
2669         PR 22550
2670         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
2671         (cleanup_tree_cfg): ... here.
2672         Call cleanup_tree_cfg_1 until there are no more cleanups to
2673         do.
2675 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
2677         * tree-vrp.c (compare_range_with_value): Return true or false
2678         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
2679         EQ_EXPR respectively.
2681 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
2683         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
2684         Fix comment typos.
2686 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
2688         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
2689         (tree_ssa_dominator_optimize): Increment it.
2690         (dump_dominator_optimization_stats): Print it.
2692 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
2693             Steven Bosscher  <stevenb@suse.de>
2695         PR rtl-optimization/23117
2696         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
2697         when head == tail.  Tidy comment.
2699 2005-07-28  Richard Henderson  <rth@redhat.com>
2701         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
2702         * cselib.c (rtx_equal_for_cselib_p): Likewise.
2703         * jump.c (rtx_renumbered_equal_p): Likewise.
2704         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
2705         CONST_INT and CONST_DOUBLE.
2706         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
2707         * reload.c (operands_match_p): Special case CONST_INT and
2708         CONST_DOUBLE; check mode earlier.
2710 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
2712         PR c/22240
2713         * c-typeck.c (convert_for_assignment): Do not check
2714         DECL_IN_SYSTEM_HEADER on NULL fundecl.
2716 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
2718         PR c/22192
2719         * c-typeck.c (composite_type): Prefer constant size arrays to
2720         VLAs.
2722 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
2724         PR c/21720
2725         * real.c (real_from_string): Set last bit if there is a nonzero
2726         hex digit beyond GCC's internal precision.
2728 2005-07-28  Richard Henderson  <rth@redhat.com>
2730         PR rtl-opt/22619
2731         * cfgcleanup.c (try_forward_edges): Watch out for end of
2732         insn chain.
2734 2005-07-28  James E Wilson  <wilson@specifixinc.com>
2736         PR c/23106
2737         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
2739 2005-07-28  Jan Hubicka  <jh@suse.cz>
2741         * Makefile.in (rtl-profile.o): Kill all traces of it.
2742         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
2743         * coverage.h (rtl_coverage_counter_ref): Kill.
2744         * opts.c (flag_speculative_prefetching_set): Kill.
2745         (flag_loop_optimize_set): New.
2746         (common_handle_option): Disable loop optimizer when profiling;
2747         do not handle speculative prefetching.
2748         * passes.c (init_optimization_passes): Replace pass_profiling combo
2749         by branch_prob pass.
2750         * profile.c (compute_value_histograms): Update for simplified value
2751         profiles.
2752         (rtl_register_profile_hooks): Kill.
2753         (pass_profiling): Kill.
2754         (rest_of_handle_branch_prob): Do not profile.
2755         * toplev.c (process_options): Remove speculative prefetching.
2756         * toplev.h (flag_tree_based_profiling): Kill.
2757         * tree-profile.c (prepare_instrumented_value,
2758         tree_gen_interval_profiler, tree_gen_pow2_profiler,
2759         tree_gen_one_value_profiler, do_tree_profiling): Update for
2760         simplified datastructures.
2761         * value-prof.c: Add comment that speculative prefetching was dropped;
2762         update rest of file for simplified datastructures.
2763         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
2764         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
2765         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
2766         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
2767         rtl_mod_subtract, gen_speculative_prefetch,
2768         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
2769         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
2770         (gate_handle_value_profile_transformations,
2771         rest_of_handle_value_profile_transformations,
2772         pass_value_profile_transformations): Kill.
2773         * value-prof.h (histogram_value_t): Remove IL based unions.
2774         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
2775         rtl_profile_hooks): Remove hooks.
2777         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
2779         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
2780         (cgraph_clone_node): Likewise.
2781         * cgraph.h (cgraph_clone_edge): Update prototype.
2782         (cgraph_clone_node): Likewise.
2783         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
2784         cgraph_clone_node.
2785         (lookup_recursive_calls): Consider profile.
2786         (cgraph_decide_recursive_inlining): Fix updating; use new
2787         probability argument; use profile.
2788         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
2789         * tree-inline.c (copy_bb): Update clal of clone_edge.
2790         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
2792         * invoke.texi (min-inline-recursive-probability): Document.
2794 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
2796         * doc/install.texi (Configuration): Update Valgrind homepage.
2798 2005-07-28  Richard Henderson  <rth@redhat.com>
2800         PR middle-end/21362
2801         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
2802         labels we want to delete.
2803         (cfg_layout_merge_blocks): Likewise.
2805 2005-07-28  Richard Henderson  <rth@redhat.com>
2807         PR target/17692
2808         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
2809         when expanding to nothing.
2811 2005-07-28  Josh Conner  <jconner@apple.com>
2813         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
2814         (cgraph_decide_inlining_of_small_functions): Likewise.
2816 2005-07-28  Josh Conner  <jconner@apple.com>
2818         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
2819         direction of badness if negative.
2820         (cgraph_default_inline_p): Add reason to parameters, and assign it
2821         a value.
2822         (cgraph_decide_inlining_of_small_functions): New parameter in call
2823         to cgraph_default_inline_p.
2824         (cgraph_decide_inlining_incrementally): Likewise.
2825         * cgraphunit.c (decide_is_function_needed): Likewise.
2826         * cgraph.h (cgraph_default_inline_p): Likewise.
2828 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2830         * builtins.c: Fix comment typo(s).
2831         * genautomata.c: Likewise.
2832         * gimplify.c: Likewise.
2833         * tree-dfa.c: Likewise.
2834         * tree-flow-inline.h: Likewise.
2835         * tree-into-ssa.c: Likewise.
2836         * tree-ssa-alias.c: Likewise.
2837         * tree-ssa-ccp.c: Likewise.
2838         * tree-ssa-copy.c: Likewise.
2839         * tree-ssa-dce.c: Likewise.
2840         * tree-ssa-dom.c: Likewise.
2841         * tree-ssa-operands.c: Likewise.
2842         * tree-tailcall.c: Likewise.
2843         * tree-vectorizer.c: Likewise.
2844         * tree-vrp.c: Likewise.
2845         * tree.c: Likewise.
2847 2005-07-28  Jeff Law  <law@redhat.com>
2849         * tree-vrp.c (test_for_singularity): Extracted from  ...
2850         (simplify_cond_using_ranges): Attempt to simplify a relational
2851         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
2853 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
2855         PR tree-optimization/22506
2856         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
2857         phis whose argument is constant.
2859 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
2861         PR rtl-optimization/18992
2862         Back out this patch:
2863           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2864           PR optimization/12142
2865           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
2866           uses of the register in the SET_SRC.  Remove unnecessary argument.
2868         Replace it with this:
2869         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
2870         if flag_non_call_exceptions is set and the insn may trap, pass
2871         pc_rtx as dest for recursion.
2872         In SET_SRC part of SET case, if dest is already set, pass it down
2873         unchanged.
2875 2005-07-28  Jan Hubicka  <jh@suse.cz>
2877         * cfg.c (update_bb_profile_for_threading): Use RDIV.
2878         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
2879         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
2880         roundoff errors.
2881         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
2882         profile when available.
2884 2005-07-28  Jan Beulich <jbeulich@novell.com>
2886         * config/ia64/ia64.c (ia64_load_pair_ok): New.
2887         (ia64_print_operand): Describe and handle 'X'.
2888         (ia64_register_move_cost): Also handle FP_REGS.
2889         (ia64_preferred_reload_class): Likewise.
2890         (ia64_secondary_reload_class): Likewise.
2891         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
2892         it. Also check for ITANIUM_CLASS_FLDP.
2893         * config/ia64/ia64.h (FP_REGNO_P): New.
2894         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
2895         (reg_class): Add FP_REGS.
2896         (REG_CLASS_NAMES): Adjust for it.
2897         (REG_CLASS_CONTENTS): Likewise.
2898         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
2899         (REG_CLASS_FROM_LETTER): Handle 'x'.
2900         (CLASS_MAX_NREGS): Handle FP_REGS.
2901         (MEMORY_MOVE_COST): Likewise.
2902         * config/ia64/ia64.md (itanium_class): Add fldp.
2903         (type): Handle fldp.
2904         (movti_internal): More allowable operand combinations. Use ldfp8 when
2905         splitting unnecessary. Remove predicable attribute. Adjust
2906         itanium_class attribute.
2907         (smuldi3_highpart): Remove outdated comment.
2908         (mulditi3, umulditi3, rotlti3): New expanders.
2909         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
2910         (absti2): Disabled new insn for future reference.
2911         Respective new splitters.
2912         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
2913         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
2914         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
2916 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
2918         PR rtl-optimization/23047
2919         * simplify-rtx.c (simplify_const_relational_operation): Respect
2920         flag_wrapv for comparisons with ABS.
2922 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
2924         PR tree-optimization/22493
2925         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
2926         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
2928 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
2930         * config/frv/frv.opt (moptimize-membar): New.
2932         * doc/invoke.texi: Document -moptimize-membar and its inverse.
2934         * config/frv/frv.h: Remove machine_function definition.
2936         * config/frv/frv.c (struct frv_io): New.
2937         (struct machine_function): Moved from frv.h.  Add has_membar_p.
2938         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
2939         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
2940         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
2941         (frv_optimize_membar_global, frv_optimize_membar): New functions.
2942         (frv_reorg): Call frv_optimize_membar when appropriate.
2943         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
2944         (frv_expand_builtin): Adjust calls accordingly.
2945         (frv_io_address_cookie): New function.
2946         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
2947         load or store rather than a special insn.  Add ccnstant address and
2948         io-type operands to the membar.
2949         (frv_ifcvt_modify_tests): Unsign regno.
2950         (frv_ifcvt_modify_tests): Same.
2952         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
2953         UNSPEC_OPTIONAL_MEMBAR constant.
2954         (builtin_read_<mode>): Delete.
2955         (builtin_write_<mode>): Delete.
2956         ("optional_membar_<mode>"): Add operand.
2958         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
2959         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
2960         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
2961         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
2962         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
2963         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
2964         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
2965         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
2966         * testsuite/gcc.target/frv/all-read-write-1.c: New.
2968 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
2970         * df.c (df_uses_record): Handle SCRATCH.
2972 2005-07-28  Steven Bosscher  <stevenb@suse.de>
2974         PR debug/20161
2975         * passes.c (rest_of_decl_compilation): If decl is a type and
2976         we have encountered errors, don't emit debug information.
2978 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
2980         * params.def: Fixed comment.
2982 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
2984         PR target/19885
2985         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
2986         (TARGET_ASM_UNALIGNED_HI_OP): Add.
2987         (TARGET_ASM_UNALIGNED_SI_OP): Add.
2989 2005-07-27  Steven Bosscher  <stevenb@suse.de>
2991         PR c++/22003
2992         * varasm.c (assemble_start_function): Don't do anything that may
2993         require a CFG if the current function is a thunk.
2995 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
2997         * doc/install.texi (Prerequisites): Mention that perl is needed
2998         to do export control in libstdc++ targetting Darwin.
3000 2005-07-27  Steven Bosscher  <stevenb@suse.de>
3002         PR rtl-optimization/17808
3003         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
3004         (sched_insns_conditions_mutex_p): Split out from...
3005         (add_dependence): ...here.  But don't call it from here.
3006         (add_dependence_list): Check sched_insns_conditions_mutex_p
3007         before calling add_dependence.
3008         (add_dependence_list_and_free): Likewise.
3009         (fixup_sched_groups): Likewise.
3010         (sched_analyze_1): Likewise.
3011         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
3012         (sched_analyze): Likewise.
3013         (sched_analyze_insn): Likewise.
3014         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
3015         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
3016         dependencies on all COND_EXEC insns to jumps ending basic blocks
3017         when doing intrablock scheduling.
3018         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
3020 2005-07-27  Jeff Law  <law@redhat.com>
3022         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
3023         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
3024         equivalency sets, correctly handle the case were vr0 has an
3025         equivalency set, but vr1 does not.
3027 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
3029         PR tree-optimization/23073
3030         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
3031         vect_print_dump_info before fprintf.
3033 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
3035         PR tree-optimize/22348
3036         * tree-ssa-loop-niter.c (number_of_iterations_cond):
3037         Fold the partial computation.
3039 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
3041         PR tree-optimization/22325
3042         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
3043         Declare.
3044         * tree-scalar-evolution.c (scev_const_prop): Add generic final
3045         value replacement.
3046         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
3047         (force_var_cost): ... this function.
3048         (compute_phi_arg_on_exit): Export.
3050 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
3052         PR tree-optimization/20773
3053         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
3054         edge.
3056 2005-07-27  Richard Guenther  <rguenther@suse.de>
3058         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
3059         Avoid pushing again if current struct contains only
3060         fields we decomposed.
3062 2005-07-27  Jan Hubicka  <jh@suse.cz>
3064         PR tree-optimization/22574
3065         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
3066         not available.
3068         * tree-tailcall.c (decrease_profile): New function.
3069         (eliminate_tail_call): Use it.
3071         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
3072         visibility flags correctly in whole program mode.
3074 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
3076         PR rtl-optimization/22472
3077         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
3079 2005-07-26  Steven Bosscher  <stevenb@suse.de>
3081         PR tree-optimization/22504
3082         * tree-complex.c (expand_complex_addition): Use 'code' instead
3083         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
3085 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
3087         * config.gcc (cpu_type): Add frv case.
3088         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
3089         (supported_defaults): Add fr550 case.
3091 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
3093         PR 22591
3094         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
3095         whether a pointer of type T * may point to objects of type T *.
3097 2005-07-26  DJ Delorie  <dj@redhat.com>
3099         * configure: Regenerate.
3101 2005-07-26  Dale Johannesen  <dalej@apple.com>
3103         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
3105 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
3107         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
3108         Clarify use of "build" in name.
3110 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
3112         * doc/extend.texi (Raw read/write Functions): New section.
3113         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
3114         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
3115         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
3116         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
3117         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
3118         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
3119         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
3120         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
3121         * config/frv/frv.c: Add bdesc_loads global.
3122         Add bdesc_stores global.
3123         (frv_init_builtins): Add support for __builtin_{read/write}*.
3124         (frv_volatile_memref): New.
3125         (frv_expand_load_builtin): New.
3126         (frv_expand_store_builtin): New.
3127         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
3128         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
3129         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
3130         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
3131         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
3132         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
3133         (builtin_read_<mode>): New.
3134         (builtin_write_<mode>): New.
3135         (builtin_write64): New.
3136         (optional_membar_<mode>): New.
3138 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
3140         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
3141         (rather than units) against HOST_BITS_PER_WIDE_INT.
3143 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
3145         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
3146         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
3147         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
3148         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
3149         FSF address.
3151         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
3152         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
3153         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
3154         comment typos.
3155         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
3157 2005-07-26  Richard Guenther  <rguenther@suse.de>
3159         PR tree-optimization/22486
3160         * fold-const.c (fold_unary): Fold away useless component
3161         references of the form (T *)&T.x, if the address
3162         doesn't change.
3164 2005-07-25  James E Wilson  <wilson@specifixinc.com>
3166         * dwarf2out.c (add_call_src_coords_attributes): New.
3167         (gen_inlined_subroutine_die): Call it.
3168         (maybe_emit_file, init_file_table): Add comments.
3169         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
3170         maybe_emit_file.
3171         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
3172         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
3173         * tree.h (BLOCK_SOURCE_LOCATION): New.
3174         (struct tree_block): New field locus.
3176 2005-07-26  Andreas Schwab  <schwab@suse.de>
3178         PR rtl-optimization/23043
3179         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
3180         when allocating a struct unoccr.
3182 2005-07-25  Richard Henderson  <rth@redhat.com>
3184         PR 22626
3185         * tree-complex.c (gate_no_optimization): True if errors.
3186         * Makefile.in (tree-complex.o): Update dependencies.
3188 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
3190         * config/frv/predicates.md (integer_register_operand): Use
3191         GPR_AP_OR_PSEUDO_P.
3193 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
3195         PR tree-opt/22484
3196         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
3197         after fold.
3198         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
3200 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
3202         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
3203         types when flag_unsafe_math_optimizations is true.
3205 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
3207         * gcc.c (option_map): Add --sysroot.
3208         (process_command): Handle --sysroot.
3209         (display_help): Document it.
3210         * doc/cppopts.tex (-isysroot): Document.
3211         * doc/invoke.texi (--sysroot): Document.
3212         * doc/install.texi (--with-build-sysroot): Document.
3214         * Makefile.in (inhibit_libc): New variable.
3215         (INHIBIT_LIBC_CFLAGS): Likewise.
3216         (LIBGCC2_CFLAGS): Include
3217         $(INHIBIT_LIBC_CFLAGS).
3218         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
3219         ($(T)crtbegin.o): Do not use @inhibit_libc@.
3220         ($(T)crtend.o): Likewise.
3221         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
3222         ($(T)crtendS.o): Likewise.
3223         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
3224         ($(T)crtendT.o): Likewise.
3225         (stmp-fixinc): Do not complain about missing headers if
3226         inhibit_libc.
3227         * configure.ac (inhibit_libc): Set it to true/false.
3228         (--with-build-sysroot): New option.  Use it to set
3229         SYSTEM_HEADER_DIR.
3230         * configure: Regenerated.
3232 2005-07-25  Manfred Hollstein  <mh@suse.com>
3234         * calls.c (store_one_arg): Fix unsigned comparison warning.
3236 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
3238         PR other/22337
3239         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
3240         (ggc_print_statistics): Initialize variable before use.
3242 2005-07-25  Richard Guenther  <rguenther@suse.de>
3244         * tree-dfa.c (mark_new_vars_to_rename): Protect against
3245         calling with a PHI_NODE argument.
3247         * tree-flow-inline.h (overlap_subvar): Protect against
3248         possible overflow.
3250 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
3252         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
3253         * configure: Regenerate.
3255 2005-07-25  Ira Rosen  <irar@il.ibm.com>
3257         * expr.c (highest_pow2_factor): Make extern.
3258         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
3259         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
3260         record_array_differ_p, array_ptr_differ_p): Likewise.
3261         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
3262         additional cases. Call the above functions.
3263         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
3264         base_object_differ_p when there are two base objects. Otherwise, compare
3265         base address and offset. Call may_alias_p.
3266         (dump_data_reference): Use a correct field name.
3267         (analyze_array): Make static. Initialize new data-ref fields.
3268         (analyze_indirect_ref): New function.
3269         (init_data_ref): Initialize new data-ref fields.
3270         (strip_conversion): Moved from tree-vect-analyze.c.
3271         (analyze_offset_expr, get_ptr_offset, address_analysis,
3272         object_analysis): Likewise.
3273         (analyze_offset): New function.
3274         (create_data_ref): Likewise.
3275         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
3276         dimensions for ARRAY_REFs only.
3277         (build_classic_dist_vector): Make static.
3278         (access_functions_are_affine_or_constant_p): Call macro to get the
3279         address of access functions.
3280         (compute_all_dependences): Add new parameter
3281         compute_self_and_read_read_dependences. Compute self and read-read
3282         dependences if it is true.
3283         (find_data_references_in_loop): Call create_data_ref. Initialize new
3284         data-ref fields.
3285         (compute_data_dependences_for_loop): Add new parameter
3286         compute_self_and_read_read_dependences. Remove parameter nb_loops,
3287         compute nb_loops. Call compute_all_dependences,
3288         build_classic_dist_vector and build_classic_dir_vector with correct
3289         parameters.
3290         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
3291         with correct parameters. Compare dimensions for ARRAY_REFs only.
3292         (free_data_refs): Call macro to free access functions.
3293         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
3294         fields from stmt_vinfo.
3295         (struct base_object_info): New structure.
3296         (struct data_reference): Move fields to base_object_info. Add fields
3297         first_location and object_info for above structures. Move fields from
3298         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
3299         aligned_to.  Add macros to access the new fields.
3300         Update functions declarations.
3301         * tree-flow.h (is_aliased_with): Declare.
3302         * tree-loop-linear.c (linear_transform_loops): Call
3303         compute_data_dependences_for_loop with correct parameters.
3304         * tree-ssa-alias.c (is_aliased_with): New function.
3305         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
3306         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
3307         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
3308         vect_base_addr_differ_p, compute_subscript_distance and
3309         build_classic_dist_vector. Add printings. Check absolute value of
3310         distance.
3311         (vect_analyze_data_ref_dependences): Go through ddrs instead of
3312         data-refs.
3313         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
3314         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
3315         to bytes. Add printing.
3316         (vect_compute_data_refs_alignment): Go through loads and stores in one
3317         loop.
3318         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
3319         vect_analyze_data_ref_access): Likewise.
3320         (vect_analyze_pointer_ref_access): Remove.
3321         (vect_address_analysis, vect_object_analysis): Likewise.
3322         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
3323         and analyze data-refs in the loop.
3324         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
3325         fields of data-ref instead of stmt. Add init to the offset from the
3326         base.
3327         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
3328         (vect_update_init_of_dr): Likewise.
3329         (vect_update_inits_of_drs): Go through loads and stores in one loop.
3330         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
3331         removed fields.
3332         (new_loop_vec_info): Initialize new fields.
3333         (destroy_loop_vec_info): Free new fields.
3334         (vect_strip_conversion): Remove.
3335         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
3336         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
3337         datarefs. Add new field ddrs.
3338         Add macros for the new fields access.
3339         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
3340         base_aligned_p, misalignment, memtag, ptr_info and subvars.
3341         Remove their macros.
3342         * tree.h (highest_pow2_factor): Declare.
3344 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
3346         * calls.c (store_one_arg): Check for sibling call MEM arguments
3347         from already clobbered incoming argument area.
3349 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3351         * c-common.c (check_missing_format_attribute): New.
3352         * c-common.h (check_missing_format_attribute): Likewise.
3353         * c-typeck.c (convert_for_assignment): Use it.
3355 2005-07-24  Andreas Schwab  <schwab@suse.de>
3357         * config/m68k/m68k.md ("extendqidi2"): When source is an address
3358         register use a word move.  Correct operand of ext.w in 68000 code.
3360 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
3362         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
3363         variables as declarations, rather than definitions.
3365 2005-07-24  Ira Rosen  <irar@il.ibm.com>
3367         PR tree-optimization/22526
3368         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
3369         of the zero node.
3371 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3373         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
3374         that C99 reserve for future use. Use it to define clog10,
3375         clog10f and clog10l.
3377 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3379         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
3380         * configure.ac: Check for -Wmissing-format-attribute.
3382         * configure: Regenerate.
3384 2005-07-23  Richard Henderson  <rth@redhat.com>
3386         PR tree-optimization/22623
3387         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
3389 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
3391         PR target/22577
3392         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
3394 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3396         * Makefile.in (C_TREE_H): Update dependencies.
3397         * c-tree.h: Include toplev.h.
3398         * diagnostic.h (diagnostic_set_info): Add format attribute.
3399         * rtl-error.c (diagnostic_for_asm): Likewise.
3401 2005-07-23  Chao-ying Fu  <fu@mips.com>
3403         * config/mips/mips-dsp.md: New file.
3404         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
3405         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
3406         functions.
3407         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
3408         MIPS_BUILTIN_BPOSGE32.
3409         (mips_expand_builtin_direct): Add one parameter to indicate that
3410         builtin functions need to return a value.
3411         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
3412         functions.
3413         (mips_regno_to_class): Add classes for 12 new DSP registers.
3414         (mips_subword): Change to check four HI registers.
3415         (mips_output_move): Output move to and from 6 new DSP accumulators.
3416         (override_options): Make sure -mdsp and -mips16 are not used together.
3417         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
3418         for machine modes.
3419         (mips_conditional_register_usage): Disable 6 new DSP accumulators
3420         when !TARGET_DSP.
3421         (print_operand): Add 'q' for printing DSP accumulators.
3422         (mips_cannot_change_mode_class): Check ACC_REGS.
3423         (mips_secondary_reload_class): Check ACC_REGS.
3424         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
3425         (mips_register_move_cost): Check ACC_REGS.
3426         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
3427         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
3428         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
3429         (dsp_bdesc): New array.
3430         (bdesc_arrays): Add DSP builtin function table.
3431         (mips_prepare_builtin_arg): Check predicate again after
3432         copy_to_mode_reg.
3433         (mips_expand_builtin): Add one more parameter to
3434         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
3435         MIPS_BUILTIN_BPOSGE32.
3436         (mips_init_builtins): Initialize new function types.
3437         (mips_expand_builtin_direct): Check if builtin functions need to
3438         return a value and pass operands properly.
3439         (mips_expand_builtin_bposge): New function.
3440         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
3441         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
3442         (FIRST_PSEUDO_REGISTER): Increase to 188.
3443         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3444         Update for 12 new DSP registers.
3445         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
3446         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
3447         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
3448         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
3449         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
3450         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
3451         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
3452         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
3453         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
3454         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
3455         (REGISTER_NAMES): Add names for 12 new DSP registers.
3456         * config/mips/mips.md: Include mips-dsp.md.
3457         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
3458         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
3459         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
3460         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
3461         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
3462         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
3463         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
3464         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
3465         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
3466         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
3467         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
3468         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
3469         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
3470         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
3471         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
3472         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
3473         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
3474         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
3475         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3476         (UNSPEC_RDDSP): New constants.
3477         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
3478         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
3479         A<-d alternative.
3480         * config/mips/mips.opt (-mdsp): New option.
3481         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
3482         (reg_imm10_operand): New predicates.
3483         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
3484         * doc/invoke.texi (-mdsp): Document new option.
3486 2005-07-22  DJ Delorie  <dj@redhat.com>
3488         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
3489         to warning calls.
3490         * tree-inline.c (inlinable_function_p): Likewise.
3492 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
3494         PR debug/21828
3495         * toplev.c (check_global_declarations): Do not mark undefined
3496         variables as DECL_IGNORED_P.
3497         * varasm.c (first_global_object_name): GTY it.
3498         (weak_global_object_name): Likewise.
3499         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
3500         a string to go into {weak,first}_global_object_name.
3502 2005-07-22  DJ Delorie  <dj@redhat.com>
3504         * c-format.c (check_function_format): Change warning control
3505         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
3507 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
3509         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
3510         &PTR->FLD a dereference of PTR.
3511         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
3512         a potential dereference of PTR.
3514 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
3516         PR rtl-optimization/20370
3517         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
3518         call allocate_reg_info if necessary.
3520         PR rtl-optimization/21848
3521         * calls.c (emit_library_call_value_1): For const functions, add
3522         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
3524         PR rtl-optimization/22445
3525         * cselib.c (target.h): Include.
3526         (rtx_equal_for_cselib_p): Allow commutative matches.
3527         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
3528         Remove MODE parameter.  Changed all callers.
3530         PR rtl-optimization/22258
3531         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
3532         New functions.
3533         (try_combine): Use likely_spilled_retval_p.
3535 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
3537         * config.gcc: Add crx-elf support.
3539         * doc/contrib.texi: Mention crx.
3540         * doc/extend.texi: Document crx extensions.
3541         * doc/install.texi: Document crx install.
3542         * doc/invoke.texi: Document crx options.
3543         * doc/md.texi: Document crx constraints.
3545         * config/crx/crx-protos.h: New file.
3546         * config/crx/crx.c: New file.
3547         * config/crx/crx.h: New file.
3548         * config/crx/crx.md: New file.
3549         * config/crx/crx.opt: New file.
3550         * config/crx/t-crx: New file.
3552 2005-07-22  Manfred Hollstein  <mh@suse.com>
3554         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
3555         warnings.
3556         (int_add_graph_edge): Likewise.
3557         (collapse_nodes): Likewise.
3558         (process_unification_queue): Likewise.
3560 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3561             Laurent GUERBY  <laurent@guerby.net>
3563         PR tree-optimization/22336
3564         * function.c (record_block_change): Check for
3565         cfun->ib_boundaries_block.
3567 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
3569         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
3570         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
3572 2005-07-21  DJ Delorie  <dj@redhat.com>
3574         * toplev.c (warn_deprecated_use): Add warning control to warning
3575         call.
3576         * c-typeck.c (parser_build_binary_op): Likewise.
3577         (c_finish_if_stmt): Likewise.
3578         * c-common.c (check_function_sentinel): Likewise.
3579         (check_nonnull_arg): Likewise.
3581 2005-07-21  Richard Henderson  <rth@redhat.com>
3583         PR tree-opt/22504
3584         * tree-complex.c (complex_ssa_name_components): New.
3585         (cvc_lookup): Allow entry not found.
3586         (create_components): Remove.
3587         (create_one_component_var, get_component_var): New.
3588         (get_component_ssa_name, set_component_ssa_name): New.
3589         (extract_component): Use get_component_ssa_name.
3590         (update_complex_components): Use set_component_ssa_name.
3591         (update_complex_components_on_edge): Likewise.
3592         (update_phi_components): Create new PHI nodes directly, instead
3593         of adding insns to edges.
3594         (tree_lower_complex): Allocate and free complex_variable_components
3595         and complex_ssa_name_components here.
3597 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
3599         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
3600         revert to returning false.
3602 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
3604         PR target/21149
3605         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
3607 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
3609         PR target/22576
3610         * config/i386/i386.md (cmpxf): Change operand constraints
3611         to "nonmemory_operand".
3613 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
3615         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
3617 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
3619         PR middle-end/21180
3620         * fold-const.c (fold_build1): Add checksum for the operands.
3621         (fold_build2): Likewise.
3622         (fold_build3): Likewise.
3624 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
3626         PR middle-end/19055
3627         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
3629 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
3631         * common.opt (-fforward-propagate): Committed by mistake,
3632         removed.
3634 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3636         * reg-stack.c: Fix comment typo(s).
3637         * tree-ssa-operands.c: Likewise.
3638         * tree-vectorizer: Likewise.
3640 2005-07-21  Nick Clifton  <nickc@redhat.com>
3642         * config/sh/symbian.c: Replace C++ style line comments with C
3643         style line comments.
3644         (symbian_add_attribute): Do not use a ? operator on the LHS of
3645         an assignment.
3646         (sh_symbian_handle_dll_attribute): Change the type of the
3647         method vector to "VEC(tree,gc)*" and use vector accessor
3648         macros to walk over the elements.
3649         (symbian_export_vtable_and_rtti_p): Likewise.
3650         (symbian_class_needs_attribute_p): Likewise.
3652 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
3654         PR target/22085
3655         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
3656         initialize targetm.resolve_overloaded_builtin here.
3657         (altivec_expand_overloaded_builtin): Make it non-static.
3658         * config/rs6000/rs6000-protos.h
3659         (altivec_expand_overloaded_builtin): New prototype.
3660         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
3661         targetm.resolve_overloaded_builtin here.
3662         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
3664 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
3665             Zdenek Dvorak  <dvorakz@suse.cz>
3667         PR tree-optimization/19210
3668         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
3669         New.
3670         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
3671         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
3672         rely on unproven assumptions.
3673         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
3674         * tree-flow.h (number_of_iterations_exit): Add final parameter.
3675         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
3676         to number_of_iterations_exit.
3677         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
3678         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
3679         * tree-ssa-loop-niter.c (find_loop_niter,
3680         estimate_numbers_of_iterations_loop): Likewise.
3681         (number_of_iterations_exit): Honor the new options.
3682         * doc/invoke.texi (Wunsafe-loop-optimizations,
3683         funsafe-loop-optimizations): Document them.
3685 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
3687         PR rtl-optimization/22167
3688         * gcse.c (hoist_code): Fix hoist_exprs[] check.
3690 2005-07-20  Adam Nemet  <anemet@lnxw.com>
3692         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
3693         __do_global_dtors_aux longcall.
3695 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
3697         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
3698         (old_special_pred_table): Don't reference
3699         SPECIAL_MODE_PREDICATES.
3700         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
3701         * config/arc/arc.h: Don't mention PREDICATE_CODES.
3702         * config/sh/predicates.h: Don't mention
3703         SPECIAL_MODE_PREDICATES.
3704         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
3705         Remove.
3707 2005-07-20  DJ Delorie  <dj@redhat.com>
3709         * config.gcc: Add m32c-elf support.
3711         * doc/contrib.texi: Mention m32c.
3712         * doc/extend.texi: Document m32c extensions.
3713         * doc/install.texi: Mention m32c.
3714         * doc/invoke.texi: Document m32c options.
3715         * doc/md.texi: Document m32c constraints.
3717         * config/m32c/addsub.md: New file.
3718         * config/m32c/bitops.md: New file.
3719         * config/m32c/cond.md: New file.
3720         * config/m32c/jump.md: New file.
3721         * config/m32c/m32c-lib1.S: New file.
3722         * config/m32c/m32c-lib2.c: New file.
3723         * config/m32c/m32c-modes.def: New file.
3724         * config/m32c/m32c-pragma.c: New file.
3725         * config/m32c/m32c-protos.h: New file.
3726         * config/m32c/m32c.abi: New file.
3727         * config/m32c/m32c.c: New file.
3728         * config/m32c/m32c.h: New file.
3729         * config/m32c/m32c.md: New file.
3730         * config/m32c/m32c.opt: New file.
3731         * config/m32c/minmax.md: New file.
3732         * config/m32c/mov.md: New file.
3733         * config/m32c/muldiv.md: New file.
3734         * config/m32c/predicates.md: New file.
3735         * config/m32c/prologue.md: New file.
3736         * config/m32c/shift.md: New file.
3737         * config/m32c/t-m32c: New file.
3739 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3741         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
3742         (stack_protect_set, stack_protect_test): New expanders.
3743         (stack_protect_set_si, stack_protect_set_si_media,
3744         stack_protect_set_di_media, stack_protect_test_si,
3745         stack_protect_test_si_media, stack_protect_test_di_media):
3746         New insns.
3748 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
3750         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
3752 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
3754         * tree.h (tree_expr_nonzero_p): Export.
3755         * fold-const.c (tree_expr_nonzero_p): Likewise.
3756         Return true for CALL_EXPRs that are alloca calls.
3757         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
3758         against zero.
3759         * tree-flow.h (expr_computes_nonzero): Remove.
3760         * tree-vrp.c (expr_computes_nonzero): Remove.
3761         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
3762         (extract_range_from_unary_expr): Likewise.
3763         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
3764         tree_expr_nonzero_p.
3766 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
3768         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
3769         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
3770         extra arg "picreg" and use it instead of pic_offset_table_rtx.
3771         All callers changed.
3772         (frame_related_constant_load): New arg "related" which controls
3773         setting of RTX_FRAME_RELATED_P.  All callers changed.
3774         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
3775         (bfin_expand_prologue): Add stack limit checking.
3776         * config/bfin/bfin.md (trapifcc): New pattern.
3778         * config/bfin/bfin.c: Include "langhooks.h".
3779         (def_builtin): Go through lang_hooks to call builtin_function.
3781         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
3782         * config/bfin/predicates.md (symbol_ref_operand): New.
3783         (call_insn_operand): Delete.  All callers changed to use
3784         register_no_elim_operand.
3785         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
3786         call_cookie field.
3787         (function_arg): Use it to generate the call's operand 2.
3788         (bfin_longcall_p): New function.
3789         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
3790         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
3791         determine if the address needs to be in a REG.
3792         (bfin_handle_longcall_attribute): New function.
3793         (bfin_attribute_table): Add "longcall" and "shortcall".
3794         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
3795         (CUMULATIVE_ARGS): New member call_cookie.
3796         (PREDICATE_CODES): Add symbol_ref_operand.
3797         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
3798         extra USE to the pattern.
3799         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
3800         New patterns, split off call_insn, sibcall_insn, call_value_insn and
3801         sibcall_value_insn; now the new patterns handle direct calls and the
3802         old ones indirect calls.
3803         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
3805 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
3807         * doc/trouble.texi: Update section on handling of empty loops.
3809 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
3811         * config.gcc: Remove support for sparc-*-openbsd*,
3812         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
3813         ns32k-*-netbsd*.
3814         * config.host: Remove support for i860-*-sysv4* as a host.
3815         * config/i860/*, config/ip2k/*, config/ns32k/*,
3816         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
3817         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
3818         mention obsolete ports.
3820 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3822         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
3823         soft frame pointer.
3824         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
3825         of frame_pointer_rtx.
3826         (sh_expand_epilogue): Likewise.
3827         (sh_set_return_address): Likewise.
3828         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
3829         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
3830         offsets from FRAME_POINTER_REGNUM.
3831         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
3832         (sh_register_names): Add initializer for sfp.
3833         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
3834         (VALID_REGISTER_P): Likewise.
3835         (FIRST_PSEUDO_REGISTER): Update.
3836         (DWARF_FRAME_REGISTERS): Define.
3837         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
3838         (HARD_FRAME_POINTER_REGNUM): Define.
3839         (FRAME_POINTER_REGNUM): Redefine.
3840         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
3841         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
3842         from FRAME_POINTER_REGNUM.
3843         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
3844         FRAME_POINTER_REGNUM.
3845         (REG_CLASS_CONTENTS): Add sfp.
3846         (REG_ALLOC_ORDER): Likewise.
3847         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
3848         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
3849         of frame_pointer_rtx.
3850         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
3852 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
3854         * fold-const.c (tree_expr_nonnegative_p): Only return true for
3855         ABS_EXPR when flag_wrapv is false because of INT_MIN.
3856         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
3857         of an ABS_EXPR.
3858         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
3859         ABS_EXPR<x>.
3861 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
3863         Make CONSTRUCTOR use VEC to store initializers.
3864         * c-common.c (complete_array_type): Update to cope with VEC in
3865         CONSTRUCTOR_ELTS.
3866         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
3867         (pp_c_constructor_elts): New function.
3868         * c-pretty-print.h (pp_c_constructor_elts): Declare.
3869         * c-typeck.c (build_function_call, build_c_cast, digest_init,
3870         struct constructor_stack, struct initializer_stack,
3871         constructor_elements, push_init_level, pop_init_level,
3872         add_pending_init, find_init_member, output_init_element): Update to
3873         cope with VEC in CONSTRUCTOR_ELTS.
3874         * coverage.c (build_fn_info_value, build_ctr_info_value,
3875         build_gcov_info): Likewise.
3876         * expr.c (categorize_ctor_elements_1, store_constructor,
3877         expand_expr_real_1): Likewise.
3878         * fold-const.c (fold_ternary): Likewise.
3879         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
3880         gimplify_init_constructor, gimplify_expr): Likewise.
3881         * tree-dump.c (dequeue_and_dump): Likewise.
3882         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
3883         node.
3884         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
3885         CONSTRUCTOR_ELTS.
3886         * tree-sra.c (generate_element_init_1): Likewise.
3887         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3888         * tree-ssa-operands.c (get_expr_operands): Likewise.
3889         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3890         * tree-vect-transform.c (vect_get_vec_def_for_operand):
3891         (get_initial_def_for_reduction): Likewise.
3892         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
3893         value handle in annotations.
3894         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
3895         tree_node_structure): Add support for constr_kind.
3896         (build_vector_from_ctor, build_constructor_single,
3897         build_constructor_from_list): New functions.
3898         (build_constructor): Update to take a VEC instead of a TREE_LIST.
3899         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
3900         Update to cope with VEC in CONSTRUCTOR_ELTS.
3901         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
3902         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
3903         CONSTRUCTOR_APPEND_ELT): New macros.
3904         (struct constructor_elt, struct tree_constructor): New data types.
3905         (union tree_node): Add tree_constructor field.
3906         * treestruct.def: Define TS_CONSTRUCTOR.
3907         * varasm.c (const_hash_1, compare_constant, copy_constant,
3908         compute_reloc_for_constant, output_addressed_constants,
3909         initializer_constant_valid_p, output_constant,
3910         array_size_for_constructor, output_constructor): Update to cope with
3911         VEC in CONSTRUCTOR_ELTS.
3912         * vec.h (VEC_empty, VEC_copy): New macros.
3914 2005-07-19  Devang Patel  <dpatel@apple.com>
3916         * dbxout.c (dbxout_type): Check Objective-C++ lang.
3918 2005-07-19  Richard Henderson  <rth@redhat.com>
3920         PR tree-opt/22278
3921         * gimplify.c (gimplify_expr): Use main variant type for the temp
3922         destination for a discarded volatile read.
3923         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
3924         casts between non-void types that change volatility.
3926 2005-07-15  DJ Delorie  <dj@redhat.com>
3928         * toplev.h: Add comment about the first parameter for warning().
3929         * errors.h: Likewise.
3931         * c.opt (Wpragmas): New.
3932         * doc/invoke.texi: Document it.
3934         * function.c (do_warn_unused_parameter): Add warning control to
3935         warning call.
3936         * c-decl.c (warn_if_shadowing): Likewise.
3937         * c-lex.c (cb_def_pragma): Likewise.
3938         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
3939         (pop_alignment): Likewise.
3940         (handle_pragma_pack): Likewise.
3941         (apply_pragma_weak): Likewise.
3942         (handle_pragma_weak): Likewise.
3943         (handle_pragma_redefine_extname): Likewise.
3944         (add_to_renaming_pragma_list): Likewise.
3945         (handle_pragma_extern_prefix): Likewise.
3946         (maybe_apply_renaming_pragma): Likewise.
3947         (handle_pragma_visibility): Likewise.
3949         * config/c4x/c4x-c.c (BAD): Likewise.
3950         (c4x_parse_pragma): Likewise.
3951         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
3952         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
3953         (rs6000_pragma_longcall): Likewise.
3954         * config/v850/v850-c.c (pop_data_area): Likewise.
3955         (ghs_pragma_section): Likewise.
3956         (ghs_pragma_section): Likewise.
3957         (ghs_pragma_interrupt): Likewise.
3958         (ghs_pragma_starttda): Likewise.
3959         (ghs_pragma_startsda): Likewise.
3960         (ghs_pragma_startzda): Likewise.
3961         (ghs_pragma_endtda): Likewise.
3962         (ghs_pragma_endsda): Likewise.
3963         (ghs_pragma_endzda): Likewise.
3965 2005-07-19  Danny Berlin <dberlin@dberlin.org>
3966             Kenneth Zadeck <zadeck@naturalbridge.com>
3968         * Makefile.in: Removed tree-promote-statics.c
3969         * tree-promote-statics.c: Removed.
3970         * common.opt: Removed flag-promote-statics.
3971         * opts.c: Ditto.
3972         * passes.c: Removed tree-promote-statics pass.
3973         * tree-pass.h: Ditto.
3974         * timevar.def: Removed TV_PROMOTE_STATICS.
3977 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
3979         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
3980         and *-*-freebsd9.
3981         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
3983 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3985         PR c/22476
3986         * c-common.c (check_function_arguments): Call
3987         'check_function_format' if either -Wformat or
3988         -Wmissing-format-attribute are specified.
3989         * c-format.c (check_function_format): Check -Wformat before
3990         calling 'check_format_info'.
3991         * c-opts.c (c_common_post_options): Don't warn for
3992         -Wmissing-format-attribute without -Wformat.
3993         * c-typeck.c (convert_for_assignment): Detect additional cases for
3994         -Wmissing-format-attribute.
3995         * doc/invoke.texi (-Wmissing-format-attribute): Document new
3996         behavior.
3998 2005-07-19  Richard Guenther  <rguenther@suse.de>
4000         * config/i386/i386.md (lrint<mode>2): Use temporary
4001         instead of clobbering non-existent memory.
4003 2005-07-19  Nick Clifton  <nickc@redhat.com>
4005         * config/avr/avr.c (legitimate_address_p): Fix debugging print
4006         statement to avoid displaying ASCII control characters.
4008 2005-07-19  Ben Elliston  <bje@au.ibm.com>
4010         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
4011         * cfganal.c (find_edge_index): Ditto.
4012         * combine.c (combine_instructions): Ditto.
4013         * ddg.c (create_scc): Ditto.
4014         (find_successors): Ditto.
4015         (find_predecessors): Ditto.
4016         (find_nodes_on_paths): Ditto.
4017         (longest_simple_path): Ditto.
4018         * flow.c (update_life_info): Ditto.
4019         (count_or_remove_death_notes): Ditto.
4020         (clear_log_links): Ditto.
4021         * modulo-sched.c (generate_reg_moves): Ditto.
4022         (find_max_asap): Ditto.
4023         (find_max_hv_min_mob): Ditto.
4024         (find_max_dv_min_mob): Ditto.
4025         * sbitmap.c (sbitmap_first_set_bit): Ditto.
4026         * sched-rgn.c (extract_edgelst): Ditto.
4027         * tree-into-ssa.c (prepare_names_to_update): Ditto.
4028         (dump_update_ssa): Ditto.
4029         (ssa_names_to_replace) Ditto.
4030         (switch_virtuals_to_full_rewrite): Ditto.
4031         (update_ssa): Ditto.
4032         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
4034 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
4036         Fix PR tree-optimization/22483
4038         * tree-complex.c (create_components): Use
4039         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
4040         * tree-flow-inline.h (fill_referenced_var_vec): New function.
4041         * tree-flow.h (safe_referenced_var_iterator): New structure.
4042         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
4043         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
4044         safe_referenced_var iterator.
4045         (add_type_alias): Ditto.
4047 2005-07-19  Steven Bosscher  <stevenb@suse.de>
4049         * loop-init.c (rest_of_handle_loop2): Remove.
4050         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
4051         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
4052         (pass_rtl_loop_init, pass_rtl_loop_done,
4053         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
4054         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
4055         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
4056         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
4057         pass_tree_loop_done, and pass_tree_unswitch.
4058         (gate_loop): Rename to gate_tree_loop.
4059         * passes.c (init_optimization_passes): Update for renamed tree
4060         loop passes.  Add the new loop2 passes as subpasses of loop2.
4061         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
4062         Update for the renamed tree loop passes.
4064 2005-07-18  Ian Lance Taylor  <ian@airs.com>
4066         PR middle-end/22057
4067         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
4068         blocks when optimizing.
4070 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
4072         * common.opt (frename-registers): Initialize to 2.
4073         (fweb): Ditto.
4074         (fgcse-after-reload): Ditto.
4075         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
4076         (process_options): Only change flag_web, flag_rename_registers,
4077         and flag_rerun_cse_after_loop if not explicitly set by user.
4079 2005-07-18  Jan Beulich  <jbeulich@novell.com>
4081         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
4082         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
4083         in 64-bit mode the same as DImode in 32-bit mode.
4084         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
4085         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
4086         mode. Add new mode parameter.
4087         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
4088         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
4089         x86_64_shift_adj): New expanders.
4090         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
4091         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
4092         insns.
4093         Respective new splitters. Use renamed shift splitter helpers in 32-bit
4094         DImode shift splitters.
4095         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
4096         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
4097         mode parameter.
4099 2005-07-18  Jan Beulich  <jbeulich@novell.com>
4101         * i386.md (movdi_extzv_1): New.
4102         (zero_extendhidi2): Combine alternatives and never force use of
4103         REX64 prefix.
4104         (zero_extendqidi2): Likewise. Don't restrict input selection.
4106 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
4108         Fix PR tree-optimization/22531
4109         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
4110          moment.
4112 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
4114         * tree-promote-statics.c (pass_promote_statics): Change dump file
4115          name.
4117 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
4119         * tree-optimize.c (init_tree_optimization_passes): Add
4120         pass_eliminate_useless_stores pass.
4121         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
4122         * tree-ssa-pre.c (is_copy_stmt): New function.
4123         (follow_copies_till_vuse): Ditto.
4124         (do_eustores): Ditto.
4125         (gate_eustores): Ditto.
4127 2005-07-16  Richard Henderson  <rth@redhat.com>
4129         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
4131 2005-07-16 Danny Berlin <dberlin@dberlin.org>
4132            Kenneth Zadeck <zadeck@naturalbridge.com>
4134         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
4135         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
4136         ipa-type-escape.h, tree-promote-statics.c
4137         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
4138         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
4139         tree-promote-statics.c: new files.
4140         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
4141         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
4142         int nonlocal_set_p, mark_constant_function): Deleted.
4143         (rest_of_handle_cfg): Removed call to mark_constant_function.
4144         (nonoverlapping_component_refs_p): Added calls to support
4145         type based aliasing.
4146         * tree-ssa-alias.c (may_alias_p,
4147         compute_flow_insensitive_aliasing): Ditto.
4148         * calls.c (flags_from_decl_or_type): Removed reference to
4149         cgraph_rtl_info.
4150         * c-typeck.c (convert_arguments): Make builtins tolerant of having
4151         too many arguments.  This is necessary for Spec 2000.
4152         * cgraph.h (const_function, pure_function): Removed.
4153         * common.opt: Added "fipa-pure-const", "fipa-reference",
4154         "fipa-type-escape", and "ftree-promote-static".
4155         * opts.c: Ditto.
4156         * passes.c: Added ipa and tree-promote-statics passes.
4157         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
4158         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
4159         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
4160         * tree-flow.h: Added exposed sra calls and addition of
4161         reference_vars_info field for FUNCTION_DECLS.
4162         * tree-pass.h: Added passes.
4163         * tree-sra.c: (sra_init_cache): New function.
4164         (sra_insert_before, sra_insert_after) Made public.
4165         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
4166         and made public.
4167         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
4168         aliasing. (may_alias_p): Added code to use type escape analysis to
4169         improve alias sets.
4170         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
4171         code to prune clobbers of static variables based on information
4172         produced in ipa-reference pass.  Changed call clobbering so that
4173         statics are not marked as clobbered if the call does not clobber
4174         them.
4176 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
4178         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
4179         too.
4181 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
4183         * doc/install.texi (*-*-solaris2*): Document recommended version
4184         of GNU binutils and mention GNU linker problem on Solaris 10.
4186 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
4188         PR c/22421
4189         * c-decl.c (c_build_bitfield_integer_type): New function.
4190         (finish_struct): Call it.
4191         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
4193 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4195         * c-typeck.c (digest_init): Call 'convert_for_assignment'
4196         before returning.
4198 2005-07-16  Jan Hubicka  <jh@suse.cz>
4200         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
4201         (scale_bbs_frequencies_int): Watch roundoff errors.
4202         * predict.c (return_prediction): Initialize return_stmt.
4204 2005-07-16  Jan Hubicka  <jh@suse.cz>
4206         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
4207         after RTL profiling.
4209 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
4211         PR middle-end/22398
4212         * fold-const.c (build_range_check): Convert high/low to etype
4213         if we are only comparing against exp.
4215 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
4217         Fix PR tree-optimization/22376
4218         * tree-ssa-structalias.c (build_constraint_graph): We really meant
4219         special var here.
4220         (need_to_solve): New function.
4221         (compute_points_to_sets): Use it.
4223 2005-07-15  Jan Hubicka  <jh@suse.cz>
4225         * cfg.c (update_bb_profile_for_threading): More diagnostic.
4226         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
4228 2005-07-15  Richard Guenther  <rguenther@suse.de>
4230         * c-common.c (handle_flatten_attribute): New function.
4231         Add flatten function attribute.
4232         * doc/extend.texi: Document flatten function attribute.
4233         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
4234         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
4235         New functions.
4236         (cgraph_decide_inlining): Handle functions with flatten
4237         attribute.
4239 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
4241         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
4242         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
4243         UNSPEC_XCHG, UNSPEC_AND): New.
4244         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
4245         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
4246         * config/rs6000/sync.md (FETCHOP): New code macro.
4247         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
4248         New code attrs.
4249         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
4250         (sync_compare_and_swap<mode>): Same.
4251         (sync_lock_test_and_set<mode>): Same.
4252         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
4253         for QImode and HImode, and not PPC405.
4254         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
4255         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
4256         (sync_<fetchop>{si,di}_internal): New.
4257         (sync_nand{si,di}_internal): New.
4258         (sync_old_<fetchop>{si,di}_internal): New.
4259         (sync_old_nand{si,di}_internal): New
4260         (sync_new_<fetchop>{si,di}_internal): New.
4261         (sync_new_nand{si,di}_internal): New.
4262         (atomic_and{si,di}): New.
4263         (sync_new_nand{si,di}_internal): New.
4264         (atomic_and{si,di}): New.
4265         (sync_add<mode>_internal): Delete.
4266         (sync_addshort_internal): Use unspec instead of unspec_volatile.
4267         (sync_sub<mode>_internal): Delte.
4268         (sync_subshort_internal): New.
4269         (sync_andsi_internal): Use unspec instead of unspec_volatile.
4270         (sync_anddi_internal): Delete.
4271         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
4272         (sync_booldi_internal): Delete.
4273         (sync_boolc<mode>_internal): Delete.
4274         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
4275         (sync_boolc<mode>_internal2): Delete.
4276         (sync_boolcc<mode>_internal): Delete.
4277         (isync, lwsync): Use unspec instead of unspec_volatile.
4278         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
4279         Revert UNSPEC_VOLATILE.
4280         (rs6000_split_atomic_op): New.
4281         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
4283 2005-07-14  Eric Christopher  <echristo@redhat.com>
4285         * config/mips/mips.c (mips_canonicalize_comparison): Cast
4286         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
4288 2005-07-14  Eric Christopher  <echristo@redhat.com>
4290         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
4292 2005-07-14  Steven Bosscher  <stevenb@suse.de>
4294         PR tree-optimization/22230
4295         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
4296         the computation of the four cross productions for "range op range".
4298 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
4299             Ulrich Weigand  <uweigand@de.ibm.com>
4301         PR target/20126
4302         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
4303         in some insn.
4305 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
4307         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
4309 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
4311         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
4313 2005-07-14  Richard Guenther  <rguenther@suse.de>
4315         PR middle-end/22347
4316         * config/i386/i386-protos.h (ix86_function_value): Change
4317         prototype to match new target hook.
4318         * config/i386/i386.c (ix86_value_regno): Change prototype
4319         to take extra type argument.
4320         (TARGET_FUNCTION_VALUE): Define.
4321         (ix86_function_ok_for_sibcall): Pass extra argument to
4322         ix86_value_regno, check return slot rtx for exact match.
4323         (ix86_function_value): Take extra parameter.  Dispatch to
4324         ix86_value_regno with fndecl/fntype as provided.
4325         (ix86_value_regno): Handle extra type argument.
4326         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
4328         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
4329         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
4330         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
4331         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
4332         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
4334 2005-07-14  Richard Guenther  <rguenther@suse.de>
4336         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
4337         * calls.c (expand_call): Pass fntype to hard_function_value.
4338         (emit_library_call_value_1): Likewise.
4339         * explow.c: Include target.h.
4340         (hard_function_value): Take extra argument, the fntype.
4341         Use new target hook for function_value.
4342         * expr.h (hard_function_value): Change prototype.
4343         * function.c (aggregate_value_p): Pass 0 as fntype to
4344         hard_function_value.
4345         (assign_parms): Use new target hook for function_value.
4346         Pass 0 as fntype to hard_function_value.
4347         (expand_function_end): Likewise.
4348         * reg-stack.c: Include target.h.
4349         (stack_result): Use new target hook for function_value.
4350         * target-def.h: New target hook function_value.
4351         * target.h: Likewise.
4352         * targhooks.c (default_function_value): New function.
4353         * targhooks.h (default_function_value): Declare.
4355 2005-07-13  Ian Lance Taylor  <ian@airs.com>
4357         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
4359 2005-07-14  Jan Hubicka  <jh@suse.cz>
4361         * tree-dfa.c (dump_variable): Use default_def function.
4362         * tree-ssa-alias.c (dump_points_to_info): Likewise.
4363         * tree-ssa.c (verify_use): Likewise.
4364         * tree-ssanames.c (release_ssa_name): Likewise.
4365         * tree-tailcall.c (eliminate_tail_call): Likewise.
4366         (tree_optimize_tail_calls_1): Likewise.
4367         * tree-vrp.c (get_value_range): Likewise.
4369 2005-07-14  Ben Elliston  <bje@au.ibm.com>
4371         * gcc.c (main): Compare language[0] with '*' when iterating over
4372         the infiles.
4374 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
4376         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
4377         "s390_emit_compare".  Add handling of CCZ1mode.
4378         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
4379         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
4380         checking.
4381         (s390_branch_condition_mask): Add CCZ1mode handling.
4382         * config/s390/s390.md: ("seq", "*seq"): New pattern.
4383         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
4384         Use CCZ1mode instead of CCZmode.
4385         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
4387 2006-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
4389         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
4390         pattern.
4391         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
4393 2005-07-13  Eric Christopher  <echristo@redhat.com>
4395         * config/mips/mips.c (mips_canonicalize_comparison): New.
4396         (mips_emit_int_relational): Use.
4398 2005-07-13  Eric Christopher  <echristo@redhat.com>
4400         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
4401         static extra parts.
4402         * config/s390/s390.md: Include tpf.md. Move tpf specific
4403         patterns...
4404         * config/s390/tpf.md: To here.
4405         * config/s390/s390.opt: Move tpf specific options...
4406         * config/s390/tpf.opt: to here. Add mmain option.
4407         * config/s390/tpf-unwind.h: Remove unnecessary defines.
4408         * config/s390/tpf.h: Rewrite.
4410 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
4412         * doc/tm.texi: Remove @xref{Cross-profiling}.
4414 2005-07-13  Jeff Law  <law@redhat.com>
4416         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
4417         expressions, test their _DECL operands for pointer equality rather
4418         than using operand_equal_p.
4420 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
4422         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
4423         (TARGET_POSIX_IO): This.
4424         * config/darwin.h: Likewise.
4425         * config/freebsd.h: Likewise.
4426         * config/linux.h: Likewise.
4427         * config/lynx.h: Likewise.
4428         * config/netbsd.h: Likewise.
4429         * config/rs6000/linux64.h: Likewise.
4430         * config/rs6000/linux.h: Likewise.
4431         * config/s390/tpf.h: Likewise.
4432         * config/sh/embed-elf.h: Likewise.
4433         * config/sparc/linux64.h: Likewise.
4434         * config/sparc/linux.h: Likewise.
4435         * config/svr4.h: Likewise.
4436         * gcov-io.h: Likewise.
4438         * doc/tm.texi: Updated.
4440         * libgcov.c (create_file_directory): Defined only if
4441         TARGET_POSIX_IO is defined.
4442         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
4443         is defined.
4445 2005-07-13  Jan Hubicka  <jh@suse.cz>
4447         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
4449 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
4451         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
4452         structure as argument.
4454 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
4456         PR tree-optimization/21921
4457         * tree-iterator.c (tsi_link_before): Support the case when
4458         tsi_end_p (tsi) == true.
4460 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
4462         PR tree-optimization/22442
4463         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
4464         correctly.
4466 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
4468         PR rtl-optimization/20376
4469         * toplev.c (process_options): Enable -fweb and -frename-registers when
4470         unrolling.
4471         * doc/invoke.texi: Update the information about when -fweb and
4472         -frename-registers are enabled.
4474 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
4476         PR tree-opt/21840
4477         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
4478         if *rhs_p is not a SSA_NAME.
4480 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
4482         Fix PR tree-optimization/22422
4483         * tree-ssa-structalias.c (struct variable_info): Add flag for
4484         special vars.
4485         (get_varinfo): Now a static function.
4486         (new_varinfo): init has_union and is_special_var to false.
4487         (solution_set_add): Check has_union.
4488         (do_da_constraint): Move temporary variable so it gets reset
4489         properly.
4490         Also check for special variable.
4491         (do_ds_constraint): Ditto.
4492         (do_sd_constraint): Ditto.
4493         (do_structure_copy): Check for special variable.
4494         (find_func_aliases): Ditto.
4495         (init_base_vars): Set special vars properly.
4497 2005-07-13  Jan Hubicka  <jh@suse.cz>
4499         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
4500         do unit-at-a-time.
4502         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
4503         (get_expr_operands): Fix thinko wrt flags and subvars.
4505         PR tree-optimize/22379
4506         * tree-inline.c (expand_call_inline): Do not output sorry in early
4507         inlining.
4509 2005-07-12  Dale Johannesen  <dalej@apple.com>
4511         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
4513 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
4515         PR bootstrap/21704
4516         * host-linux.h: Include limits.h.
4518 2005-07-12  Dale Johannesen  <dalej@apple.com>
4520         * expr.c (compress_float_constant):  Add cost check.
4521         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
4523 2005-07-12  Dale Johannesen  <dalej@apple.com>
4525         * gcc.target/i386/compress-float-sse.c:  New.
4526         * gcc.target/i386/compress-float-sse-pic.c:  New.
4527         * gcc.target/i386/compress-float-387.c:  New.
4528         * gcc.target/i386/compress-float-387-pic.c:  New.
4529         * gcc.dg/compress-float-ppc.c:  New.
4530         * gcc.dg/compress-float-ppc-pic.c:  New.
4532 2005-07-12  Eric Christopher  <echristo@redhat.com>
4534         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
4535         static extra parts.
4536         * config/s390/s390.md: Include tpf.md. Move tpf specific
4537         patterns...
4538         * config/s390/tpf.md: To here.
4539         * config/s390/s390.opt: Move tpf specific options...
4540         * config/s390/tpf.opt: to here. Add mmain option.
4541         * config/s390/tpf-unwind.h: Remove unnecessary defines.
4542         * config/s390/tpf.h: Rewrite.
4544 2005-07-12  Eric Christopher  <echristo@redhat.com>
4546         * gcc.c (struct infile): Update comment for language.
4547         (main): Rewrite input file resetting code.
4549 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
4551         PR tree-opt/22335
4552         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
4553         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
4554         (lookup_avail_expr): Use constant_boolean_node instead
4555         of boolean_false_node/boolean_true_node.
4557 2005-07-12  Ben Elliston  <bje@au.ibm.com>
4559         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
4560         and use it when printing num_edges.
4562 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
4564         * doc/extend.texi (Blackfin Built-in Functions): New section.
4565         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
4566         @opindex.
4568 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
4570         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
4571         s/cmpstrsi/cmpstrnsi
4572         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
4573         'cmpstrnsi'.
4574         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
4575         (init_optabs): Initialize cmpstrn_optab.
4576         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
4577         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
4578         * expr.c: (enum insn_code cmpstrn_optab): Declare.
4579         * config/i386/i386.md: s/cmpstr/cmpstrn
4580         * config/c4x/c4x.md: s/cmpstr/cmpstrn
4581         * doc/md.texi: Update documentation.
4583 2005-07-11  Richard Henderson  <rth@redhat.com>
4585         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
4586         build_va_arg_indirect_ref.
4587         (alpha_gimplify_va_arg): Likewise.
4588         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
4589         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
4590         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
4591         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4592         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
4593         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
4594         Likewise.
4595         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
4597 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
4599         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
4600         * passes.c (init_optimization_passes): Add pass_empty_loop.
4601         * tree-pass.h (pass_empty_loop): Declare.
4602         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
4603         try_remove_empty_loop, remove_empty_loops): New functions.
4604         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
4605         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
4607 2005-07-12  Peter Barada  <peter@the-baradas.com>
4609         PR middle-end/16719
4610         PR middle-end/18421
4611         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
4612         in address registers.
4613         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
4614         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
4615         alternative of addsi3_5200.
4617 2005-07-11  Ian Lance Taylor  <ian@airs.com>
4619         * config/mips/mips.md (ffs<mode>2): Remove.
4621 2005-07-11  Ian Lance Taylor  <ian@airs.com>
4623         * doc/tree-ssa.texi (Cleanups): Improve description of
4624         TRY_FINALLY_EXPR.
4625         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
4627 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
4629         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
4630         * tree.h (DECL_ARGUMENT_FLD): New macro.
4632 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
4634         Fix PR tree-optimization/22404
4636         * tree-ssa-structalias.c (create_variable_info_for): Use
4637         correct offset.
4639 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4641         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
4642         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
4643         for second comparison operand.
4644         * config/bfin/predicates.md (reg_or_const_int_operand): New.
4646         * config/bfin/bfin.md (define_attr "type"): Add "sync".
4647         (define_insn_reservation "alu"): Likewise.
4648         (csync, ssync): Now of type sync.
4649         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
4650         -mcsync-anomaly -mspecld-anomaly.
4651         * config/bfin/bfin.opt (mcsync): Remove.
4652         (mcsync-anomaly, mspecld-anomaly): Add.
4653         * config/bfin/bfin.c: Include "insn-codes.h".
4654         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
4655         (TARGET_DEFAULT_TARGET_FLAGS): New.
4656         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
4658 2005-07-11  Steven Bosscher  <stevenb@suse.de>
4660         * basic-block.h: Give the BB flags enum a name, bb_flags.
4661         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
4662         * cfgcleanup.c (enum bb_flags): Remove here.
4663         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
4664         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
4665         (update_forwarder_flag): Likewise.
4666         (thread_jump): Likewise.
4667         (try_forward_edges): Likewise.
4668         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
4669         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
4670         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
4672 2005-07-11  Richard Guenther  <rguenther@suse.de>
4674         * config/i386/i386.opt: New target option -msseregparm.
4675         * config/i386/i386.c (override_options): Error out for
4676         -msseregparm but no SSE support.
4677         (ix86_function_sseregparm): Check for global sseregparm.
4678         * doc/invoke.texi: Document -msseregparm.
4680 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4682         * config.gcc (m32r-*-linux*): Use the default extra_parts.
4683         (m32rle-*-linux*): Ditto.
4685 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
4687         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
4688         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
4689         bytes.
4691 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4693         PR middle-end/22239
4694         PR target/20126
4695         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
4696         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
4698 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
4700         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
4701         (varmap): Heapify varmap.
4702         (constraints): Heapify constraints.
4703         (struct constraint_graph): Heapify succs and preds.
4704         (constraint_vec_find): Update for heapification.
4705         (constraint_set_union): Ditto.
4706         (insert_into_complex): Ditto.
4707         (constraint_edge_vec_find): Ditto.
4708         (erase_graph_self_edge): Ditto.
4709         (add_graph_edge): Ditto.
4710         (get_graph_weights): Ditto.
4711         (merge_graph_nodes): Ditto.
4712         (build_constraint_graph): Ditto.
4713         (topo_visit): Ditto.
4714         (solve_graph): Ditto.
4715         (create_variable_info_for): Ditto.
4716         (init_base_vars): Ditto.
4717         (delete_points_to_sets): Free graph, varmap, and complex constraints.
4718         (condese_varmap_nodes): Free complex vector.
4719         (clear_edges_for_node): Clear succs and preds vector.
4721 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
4723         * tree-ssa-structalias.c (update_alias_info): Change counting of
4724         references to not include vdefs.
4726 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
4728         * tree-ssa-alias.c (free_used_part_map): Add missing free.
4729         (up_insert): Ditto.
4731 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4733         * pa.c (pa_commutative_p): Make PLUS commutative when
4734         TARGET_NO_SPACE_REGS is true.
4736 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
4738         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
4739         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
4740         * tree-dfa.c (dump_subvars_for): New.
4741         (debug_subvars_for): New.
4742         (dump_variable): Show subvariables if VAR has them.
4743         * tree-flow-inline.h (get_subvar_at): New.
4744         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
4745         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
4746         Update all users.
4747         (struct subvar): Change fields offset and size to unsigned
4748         HOST_WIDE_INT.
4749         (dump_subvars_for): Declare.
4750         (debug_subvars_for): Declare.
4751         (get_subvar_at): Declare.
4752         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
4753         to unsigned HOST_WIDE_INT *.
4754         (overlap_subvar): Likewise.
4755         * tree-gimple.c (is_gimple_reg): Always return false for
4756         SFTs and memory tags.
4757         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
4758         Update all callers.
4759         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
4760         (compute_may_aliases): Call compute_points_to_sets.
4761         (collect_points_to_info_for): Remove.
4762         (compute_points_to_and_addr_escape): Remove.
4763         (delete_alias_info): Call delete_points_to_sets.
4764         (compute_flow_sensitive_aliasing): If the call to
4765         find_what_p_points_to returns false, call set_pt_anything.
4766         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
4767         (set_pt_anything): Clear pi->pt_vars.
4768         (set_pt_malloc): Remove.
4769         (merge_pointed_to_info): Remove.
4770         (add_pointed_to_expr): Remove.
4771         (add_pointed_to_var): Remove.
4772         (collect_points_to_info_r): Remove.
4773         (is_escape_site): Make extern.
4774         (create_sft): New.
4775         (create_overlap_variables_for): Call it.
4776         * tree-ssa-copy.c (merge_alias_info): Never merge
4777         flow-sensitive alias information.
4778         * tree-ssa-operands.c (get_expr_operands): Adjust variables
4779         offset and size to be unsigned HOST_WIDE_INT.
4780         (add_to_addressable_set): Rename from note_addressable.
4781         Set TREE_ADDRESSABLE as the variables are added to the set.
4782         Update all users.
4783         (add_stmt_operand): Do not try to micro-optimize unmodifiable
4784         operands into VUSEs when adding V_MAY_DEFs for members in an
4785         alias set.
4786         * tree-ssa-operands.h (add_to_addressable_set): Declare.
4787         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
4788         (struct variable_info): Add bitfield is_heap_var.
4789         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
4790         (new_var_info): Initialize is_heap_var.
4791         (get_constraint_for): Add HEAP variables to the symbol table.
4792         Mark them with is_heap_var.
4793         (update_alias_info): New.  Taken mostly from the old
4794         compute_points_to_and_addr_escape.
4795         (handle_ptr_arith): New.
4796         (find_func_aliases): Call update_alias_info.
4797         Call handle_ptr_info for tcc_binary expressions.
4798         Call mark_stmt_modified.
4799         (create_variable_info_for): If DECL has subvars, do not create
4800         variables for its subvars.  Always add all the fields.
4801         (set_uids_in_ptset): If the solution includes ANYOFFSET and
4802         SFTs, then add all the SFTs of the structure.
4803         If VI->DECL is an aggregate with subvariables, add the SFT at
4804         VI->OFFSET.
4805         (find_what_p_points_to): If VI is an artificial variable,
4806         translate to bitfields in SSA_NAME_PTR_INFO.
4807         If the solution is empty, set pi->pt_vars to NULL
4808         (init_base_vars): Create ANYOFFSET.
4809         (compute_points_to_sets): Rename from create_alias_vars.
4810         Make extern.
4811         (pass_build_pta): Remove.
4812         (delete_points_to_sets): Rename from delete_alias_vars.
4813         (pass_del_pta): Remove.
4814         * tree-ssa-structalias.h (struct alias_info): Move from
4815         tree-ssa-alias.h.
4816         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
4817         NUM_REFERENCES_SET): Likewise.
4818         (compute_points_to_sets, delete_points_to_sets): Declare.
4820 2005-07-09  Richard Henderson  <rth@redhat.com>
4822         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
4823         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
4824         alpha_split_lock_test_and_set_12): New functions.
4825         * config/alpha/alpha-protos.h: Update.
4826         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
4827         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
4828         * config/alpha/sync.md (I12MODE): New.
4829         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
4830         (sync_<fetchop_name><I48MODE>): Likewise.
4831         (sync_nand<I48MODE>): Likewise.
4832         (sync_old_<fetchop_name><I48MODE>): Likewise.
4833         (sync_new_<fetchop_name><I48MODE>): Likewise.
4834         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
4835         (sync_compare_and_swap<I48MODE>): Likewise.
4836         (sync_lock_test_and_set<I48MODE>): Likewise.
4837         (sync_compare_and_swap<I12MODE>): New.
4838         (sync_compare_and_swap<I12MODE>_1): New.
4839         (sync_lock_test_and_set<I12MODE>): New.
4840         (sync_lock_test_and_set<I12MODE>_1): New.
4842 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
4844         PR 21356
4845         PR 22332
4846         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
4848 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
4850         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
4851         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
4853 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
4855         PR target/21656
4856         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
4858 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
4860         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
4861         memory_operand constraint.
4862         (store_conditional_<mode>): Same.
4863         (sync_compare_and_swap<mode>): Same.
4864         (sync_lock_test_and_set<mode>): Same.
4866 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
4868         Rewrite PIC support to more closely model actual instructions.
4869         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
4870         (cris_symbol): Remove prototypes for removed functions.
4871         (cris_pic_symbol_type_of, cris_valid_pic_const)
4872         (cris_expand_pic_call_address): Prototypes for new functions.
4873         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
4874         variable.
4875         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
4876         modifiers.
4877         <case ':'>: Add case for new punctuation character.
4878         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
4879         emitting (extra) PIC modifier.
4880         <case UNSPEC>: Do not assert for PLT.
4881         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
4882         (cris_expand_prologue, cris_expand_epilogue): Check
4883         for pic_offset_table_rtx usage instead of taking
4884         current_function_uses_pic_offset_table as the final word.
4885         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
4886         Remove flag_pic difference.
4887         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
4888         the moral equivalents of...
4889         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
4890         functions.
4891         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
4892         (cris_handle_option): Mark ARG as unused.
4893         (cris_expand_pic_call_address): New worker function for "call",
4894         "call_value".
4895         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
4896         output PIC constructs here.
4897         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
4898         as symbol-specific modifers, not whole or part of operands.
4899         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
4900         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
4901         constants and flag_pic.
4902         (CONSTANT_INDEX_P): Adjust for new functions.
4903         (enum cris_pic_symbol_type): New helper type.
4904         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
4905         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
4906         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
4907         define_constants.
4908         ("movsi"): Emit actual instructions for GOT and relative access.
4909         ("*movsi_got_load"): New pattern to set up the register holding
4910         the GOT pointer.
4911         ("*movsi_internal"): Operand 1 is not a plain general_operand.
4912         Adjust FIXME for 'S'.
4913         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
4914         Use "movs" for -fpic cases.
4915         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
4916         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
4917         ("call", "call_value"): Just call cris_expand_pic_call_address for
4918         PIC addresses.
4919         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
4920         Remove special pattern.
4921         ("*expanded_call_side", "*expanded_call_value_side"): New
4922         patterns.
4923         (gotplt-to-plt, gotplt-to-plt-side-call)
4924         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
4925         peephole2:s.
4926         * config/cris/cris/predicates.md
4927         ("cris_general_operand_or_gotless_symbol"): Remove unused
4928         predicate.
4929         ("cris_general_operand_or_symbol"): Adjust for new functions.
4931 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
4933         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
4935 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
4937         * Makefile.in (TREE_H): Add treestruct.def.
4938         (c-decl.o): Add pointer-set.h
4939         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
4940         visibility on regular DECL's.
4941         (merge_decls): Fix the copying of decl nodes of various types for
4942         the new structures.  Don't update RTL, section name, weak status,
4943         etc, on DECL's without RTL.
4944         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
4945         Don't check volatile on non-variable types.
4946         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
4947         to check whether we have seen arguments.
4948         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
4949         flag is checked before field (flag is common, field is not).
4950         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
4951         TS_DECL_COMMON could have an origin.
4952         (add_location_or_const_value_attribute): Don't check section name
4953         on non-var/function decls.
4954         (dwarf2out_var_location): Reverse order of tests.
4955         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
4956         with DECL_WRTL_CHECK.
4957         * expmed.c (make_tree): rtl is now in decl_with_rtl.
4958         * fold-const.c (fold_binary): Don't check weakness on
4959         non-var/function decls.
4960         (tree_expr_nonzero_p): Ditto.
4961         (fold_checksum_tree): Use tree_decl_extra as sizeof
4962         buffer.
4963         * ggc-page.c (extra_order_size_table): Add sizes for
4964         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
4965         tree_field_decl.
4966         * gimplify.c (gimplify_bind_expr): Only set
4967         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
4968         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
4969         without RTL.
4970         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
4971         * langhooks.h (init_ts). New langhook.
4972         * passes.c (rest_of_decl_compilation): Reverse order of tests.
4973         * print-tree.c (print_node): Update to only print fields that
4974         exist in the structures the passed decl has.
4975         * toplev.c (wrapup_global_declarations): Don't reset
4976         DECL_DEFER_OUTPUT on DECL's that don't contain it.
4977         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
4978         * tree-inline.c (remap_decl): Ditto.
4979         * tree-outof-ssa.c (create_temp): Reverse order of tests.
4980         * tree-pretty-print.c (print_declaration): Don't print
4981         DECL_REGISTER on things that don't contain it.
4982         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
4983         non-var/function decls.
4984         * tree.c (tree_contains_struct): New structure.
4985         (init_priority_for_decl): New hashtable.
4986         (tree_int_map): New structure.
4987         (tree_int_map_eq): New function.
4988         (tree_int_map_marked_p): Ditto.
4989         (tree_int_map_hash): Ditto.
4990         (tree_map): Move to tree.h.
4991         (tree_map_eq): Externalize.
4992         (tree_map_hash): Ditto.
4993         (tree_map_marked_p): Ditto.
4994         (init_ttree): Set up tree_contains_struct and call langhook.
4995         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
4996         (tree_code_size): Update for new structures.
4997         (tree_node_structure): Update for new structures.
4998         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
4999         without the field.
5000         (copy_node_stat):  Copy init priority.
5001         (build_decl_stat): Ditto for visibility.
5002         (ts_enum_names): New.
5003         (tree_contains_struct_check_failed): New function.
5004         (decl_init_priority_lookup): Ditto.
5005         (decl_init_priority_insert): Ditto.
5006         * treestruct.def: New file.
5007         * tree.h (CODE_CONTAINS_STRUCT): New macro.
5008         (CONTAINS_STRUCT_CHECK): Ditto.
5009         (tree_contains_struct_check_failed): New prototype.
5010         (DECL_CHECK): Removed.
5011         (DECL_MINIMAL_CHECK): New.
5012         (DECL_COMMON_CHECK): Ditto.
5013         (DECL_WRTL_CHECK): Ditto.
5014         (DECL_NON_COMMON_CHECK): Ditto.
5015         (DECL_WITH_VIS_CHECK): Ditto.
5016         (VAR_OR_FUNCTION_DECL_P): Ditto
5017         (struct tree_decl_minimal): New structure.
5018         (struct tree_decl_common): Ditto.
5019         (struct tree_decl_with_rtl): Ditto.
5020         (struct tree_decl_with_vis): Ditto.
5021         (struct tree_decl_non_common): Ditto.
5022         (struct tree_field_decl): Ditto.
5023         (struct tree_parm_decl): Ditto.
5024         (struct tree_var_decl): Ditto.
5025         (struct tree_function_decl): Ditto.
5026         (struct tree_const_decl): Ditto.
5027         (struct tree_result_decl): Ditto.
5028         (union tree_node): Add new structures.
5029         * var-tracking.c (track_expr_p): Reverse order of tests.
5031         * doc/c-tree.texi: Add documentation on DECL node internal structure.
5033 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
5035         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
5036         * system.h: Poison FINALIZE_PIC.
5037         * doc/tm.texi (FINALIZE_PIC): Remove.
5039 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
5041         PR tree-opt/22329
5042         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
5043         to the correct type if we have a MODIFY_EXPR.
5045 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
5047         PR tree-optimization/22360
5048         * tree.c (upper_bound_in_type): Fix calculations for casting
5049         to a non-wider signed type and casting a signed value to a
5050         wider unsigned type.
5051         (lower_bound_in_type): Fix calculations for casting to a
5052         non-wider signed type.
5054         PR tree-optimization/20139
5055         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
5056         release_defs.
5057         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
5058         fold_cond_expr_cond.
5059         * tree-ssanames.c (release_defs): Assert in_ssa_p.
5060         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
5062 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
5064         PR tree-opt/22356
5065         * tree-complex.c (expand_complex_libcall): Produce
5066         REALPART_EXPR/IMAGPART_EXPR with the correct type.
5068 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
5070         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
5071         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
5072         b" assert and inserted fastpath code for this case.
5073         (bitmap_ior): Removed "a != b" assert.
5075 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5077         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
5078         (ENDFILE_SPEC): Likewise.
5079         * config/m32r/m32r.h (ASM_SPEC): Likewise.
5081         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
5082         a large stack frame at epilogue.
5084 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
5086         * final.c: Include sdbout.h when required.
5088 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
5090         * config.gcc (*-*-darwin*): Only one target-specific header file
5091         for generic darwin.
5092         (powerpc-*-darwin*): Add version-specific header files.
5093         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
5094         * config.in: Regenerate.
5095         * configure: Regenerate.
5096         * gcc.c: Include xregex.h.
5097         (version_compare_spec_function): New.
5098         (spec_function): Add version-compare.
5099         (replace_outfile_spec_function): Reformat comment.
5100         (compare_version_strings): New.
5101         * config/darwin-c.c (version_as_macro): New.
5102         (builtin_define): New.
5103         (darwin_cpp_builtins): New.
5104         * config/darwin-protos.h (darwin_cpp_builtins): New.
5105         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
5106         (LIB_SPEC): Make unconditional, update comment.
5107         (TARGET_C99_FUNCTIONS): Define.
5108         * config/darwin.opt: Sort.
5109         (mmacosx-version-min=): New.
5110         * config/darwin7.h: Delete.
5111         * config/darwin8.h: Delete.
5112         * config/i386/darwin.h (): Call darwin_cpp_builtins.
5113         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
5114         (TARGET_C99_FUNCTIONS): Define.
5115         * config/rs6000/darwin7.h: New.
5116         * config/rs6000/darwin8.h: New.
5117         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
5118         (-mmacosx-version-min): Document.
5120 2005-07-07  Ian Lance Taylor  <ian@airs.com>
5122         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
5124 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
5126         PR middle-end/22239
5127         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
5129 2005-07-07  Khem Raj  <kraj@mvista.com>
5131         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
5132         in bytes, not words.
5134 2005-07-07  Paul Brook  <paul@codesourcery.com>
5136         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
5137         DEFAULT_FUNCTION_ARG_PADDING to upward.
5139 2005-07-07  Richard Henderson  <rth@redhat.com>
5141         * function.c (locate_and_pad_parm): Record parameter alignment in
5142         stack_alignment_needed.
5144 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
5146         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
5147         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
5148         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
5149         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
5150         (define_attr "type"): Add isync, sync, load_l, store_c.
5151         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
5152         Create scratch volatile MEM.
5153         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
5154         sync.
5155         (load_locked_<mode>): New.
5156         (store_conditional_<mode>): New.
5157         (sync_compare_and_swap<mode>): Replace with splitter.
5158         (sync_lock_test_and_set<mode>): Replace with splitter.
5159         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
5160         and UNSPECV_ISYNC.
5161         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
5162         is ics.  Attribute isync.
5163         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
5164         lwsync.
5165         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
5166         and UNSPECV_SYNC_OP.
5167         (emit_unlikely_jump): New.
5168         (emit_load_locked): New.
5169         (emit_store_conditional): New.
5170         (rs6000_split_compare_and_swap): New.
5171         (rs6000_split_lock_test_and_set): New.
5172         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
5173         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
5174         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
5175         rs6000_split_lock_test_and_set): Declare.
5176         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
5177         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
5178         store_c, isync, sync.
5180 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
5182         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
5183         filenames to gtyp-gen.h.
5184         (s-typ-gen): Use it in place of for loops.
5186 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
5188         * hooks.c (hook_bool_rtx_int_false): New function.
5189         * hooks.h (hook_bool_rtx_int_false): Declare.
5190         * target-def.h (TARGET_COMMUTATIVE_P): Define.
5191         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
5192         * target.h (struct gcc_target): Add commutative_p member.
5193         * targhooks.c (hook_bool_rtx_commutative_p): New function.
5194         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
5195         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
5196         (pa_commutative_p): New function.
5197         * jump.c (target.h): Include.
5198         (rtx_renumbered_equal_p): Use targetm.commutative_p.
5199         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
5201 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
5203         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
5204         (s390_expand_setmem): New.
5205         * config/s390/s390.c: Likewise.
5206         (print_shift_count_operand): Truncate to 12 bits instead of 6.
5207         Adapt comments.
5208         * config/s390/s390.md: ("setmem<mode>"): Accept character as
5209         general_operand.  Call new function "s390_expand_setmem".
5210         ("clrmem_long", "*clrmem_long"): Rewrite to ...
5211         ("setmem_long", "*setmem_long"): ... this.
5213 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
5215         * config/s390/s390.c: (optimization_options): Enable
5216         TARGET_MVCLE at -Os.
5217         * doc/invoke.texi: Document changes in default behaviour.
5218         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
5220 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
5222         * expr.c: (set_storage_via_setmem): Convert opchar to mode
5223         defined by back-end.
5225 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
5227         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
5228         all sets in the pattern.
5229         * config/rs6000/rs6000.md (stack_protect_testsi,
5230         stack_protect_testdi): Likewise.
5232 2005-07-06  Jeff Law  <law@redhat.com>
5234         * tree-vrp.c (simplify_using_ranges): Kill.
5235         (vrp_finalize): Remove call to simplify_using_ranges.
5236         (simplify_stmt_using_ranges): New function extracted from
5237         simplify_using_ranges.
5238         (simplify_div_or_mod_using_ranges): Likewise.
5239         (simplify_abs_using_ranges): Likewise.
5240         (simplify_cond_using_ranges): New function.
5241         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
5242         * tree-ssa-propagate.c (substitute_and_fold): Call
5243         simplify_stmt_using_ranges if we have range information.
5245 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
5247         * config/ia64/ia64.c (ia64_reorg): Check optimize before
5248         ia64_flag_schedule_isns2.
5250         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
5251         reading/writing general registers.
5252         (ia64_function_arg): Revert 2005-06-18 change.
5254 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
5256         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
5257         (legitimize_tls_address): Use gcc_unreachable instead of abort.
5259 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
5261         * function.c (expand_function_end): Revert part of 2005-06-27
5262         patch.  Do sjlj_emit_function_exit_after after return_label.
5264 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
5266         * doc/install.texi (--disable-libssp): New.
5268 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
5270         * doc/invoke.texi: Update -fforce-mem documentation.
5271         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
5272         code for -fforce-mem.
5273         * expmed.c: (store_bit_field,store_fixed_bit_field,
5274         extract_bit_field): Ditto.
5275         * expr.c: (convert_move): Ditto.
5276         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
5277         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
5278         emit_conditional_add,expand_float,expand_fix): Ditto.
5279         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
5280         (common_handle_option): Issue warning when -fforce-mem specified.
5282 2005-07-06  Paul Brook  <paul@codesourcery.com>
5284         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
5285         argument is empty.
5286         * configure: Regenerate.
5288 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
5290         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
5292 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
5294         Fix PR tree-optimization/22319
5295         Fix PR tree-optimization/22140
5296         Fix PR tree-optimization/22310
5298         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
5299         variable sized types.
5300         Use correct type for intermediate structure on *a = *b structure
5301         copies.
5303 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
5305         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
5306         Remove.
5307         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
5308         (machine_function): Move typedef to...
5309         * config/rs6000/rs6000.c (machine_function): ... here.  Add
5310         varargs_save_offset field.
5311         (rs6000_stack_t): Remove varargs_size field.
5312         (setup_incoming_varargs): Allocate varargs save area using
5313         assign_stack_local, try to make it as small as possible.
5314         Save offset from virtual_stack_vars_rtx to the save area
5315         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
5316         instead of magic 8 when fp word byte size is used.
5317         (rs6000_va_start): Use cfun->machine->varargs_save_offset
5318         instead of -RS6000_VARARGS_SIZE.
5319         (rs6000_stack_info, debug_stack_info,
5320         rs6000_initial_elimination_offset): Remove all traces of
5321         varargs_size.
5322         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
5323         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
5324         RS6000_VARARGS_AREA.
5326 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
5328         PR tree-optimization/21963
5329         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
5330         constant_multiple_of in the same way get_computation_cost_at does.
5332 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
5334         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
5335         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
5336         (gen_compare_reg): If sparc_compare_emitted is set, clear it
5337         and return its previous value.
5338         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
5339         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
5340         constants.
5341         (stack_protect_set, stack_protect_test): New expanders.
5342         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
5343         stack_protect_testdi): New insns.
5344         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
5345         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
5347 2005-07-06  Jeff Law  <law@redhat.com>
5349         * tree-ssa-dce.c (cfg_altered): New global.
5350         (tree_dce_init): Initialize cfg_altered.
5351         (remove_dead_stmt): If we remove an edge in the CFG, then set
5352         CFG_ALTERED.
5353         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
5354         the dominators.
5356 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
5358         * Makefile.in (stamp-collect-ld): Use
5359         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
5360         ./collect-ld if it already exists.
5361         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
5362         Don't remove ./nm if it already exists.
5364 2005-07-05  Devang Patel  <dpatel@apple.com>
5366         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
5367         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
5368         * tree-vectorizer.c (vect_loop_location): New.
5369         (vect_print_dump_info): Use vect_loop_location.
5370         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
5371         (vectorize_loops): Set vect_loop_location.
5372         * tree-vect-analyze.c (vect_analyze_offset_expr,
5373         vect_determin_vectorization_factor, vect_analyze_operations,
5374         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
5375         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
5376         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
5377         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
5378         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
5379         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
5380         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
5381         vect_analyze_loop): Adjust vect_print_dump_info API.
5382         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
5383         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
5384         vect_finish_stmt_generation, vectorizable_assignment,
5385         vectorizable_operation, vectorizable_store, vectorizable_load,
5386         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
5387         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
5388         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
5389         vect_transform_loop): Same.
5390         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
5391         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
5392         Same.
5394 2005-07-05  Randolph Chung  <tausq@debian.org>
5396         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
5397         * configure: Regenerate.
5398         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
5399         (pa_tls_referenced_p): Declare.
5400         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
5401         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
5402         (legitimize_tls_address): New.
5403         (hppa_legitimize_address): Handle TLS addresses.
5404         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
5405         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5406         (emit_move_sequence): Handle TLS addresses.
5407         (pa_encode_section_info): Call default handler to handle common
5408         sections.
5409         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
5410         (CONSTANT_ADDRESS_P): Reject TLS operands.
5411         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
5412         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
5413         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
5414         (UNSPEC_TLSLE): Define new constants.
5415         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
5416         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
5417         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
5418         (tie_symbolic_operand, tle_symbolic_operand): New
5420 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
5422         * aclocal.m4: Update macros for autoconf 2.59 style.
5423         * configure.ac: Likewise.
5425 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5427         * pa.c (function_value): Handle small aggregates on 32-bit targets.
5428         (function_arg): Pass small aggregates in general registers on 32-bit
5429         targets.
5430         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
5432 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
5434         * Makefile.in (final.o): Fix dependencies.
5436 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
5438         PR c/22013
5439         PR c/22098
5440         * langhooks.h (struct lang_hooks): Add expr_to_decl.
5441         * langhooks.c (lhd_expr_to_decl): New.
5442         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
5443         New.
5444         (LANG_HOOKS_INITIALIZER): Update.
5445         * tree.c (recompute_tree_invarant_for_addr_expr): Call
5446         expr_to_decl langhook.
5447         * c-tree.h (c_expr_to_decl): Declare.
5448         * c-typeck.c (c_expr_to_decl): New.
5449         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
5450         specially.
5451         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
5453 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
5455         PR c/22308
5456         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
5457         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
5459 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
5461         * Makefile.in: Adjust dependencies.
5462         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
5463         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
5464         * alias.c (rest_of_handle_cfg, pass_cfg): New.
5465         * bb-reorder.c (duplicate_computed_gotos): Make it static.
5466         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
5467         rest_of_compilation.
5469         * bb-reorder.c (gate_duplicate_computed_gotos,
5470         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
5471         rest_of_handle_reorder_blocks, pass_reorder_blocks,
5472         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
5473         pass_partition_blocks): New.
5474         * bt-load.c (gate_handle_branch_target_load_optimize,
5475         rest_of_handle_branch_target_load_optimize,
5476         pass_branch_target_load_optimize): New.
5477         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
5478         pass_jump2): New.
5479         * cfglayout.c (pass_insn_locators_initialize): New.
5480         * cfgrtl.c (pass_free_cfg): New.
5481         * combine.c (gate_handle_combine, rest_of_handle_combine,
5482         pass_combine): New.
5483         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
5484         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
5485         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
5486         * except.c (pass_set_nothrow_function_flags,
5487         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
5488         pass_rtl_eh): New.
5489         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
5490         rest_of_handle_shorten_branches, pass_shorten_branches,
5491         rest_of_clean_state, pass_clean_state): New.
5492         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
5493         rest_of_handle_remove_death_notes, pass_remove_death_notes,
5494         rest_of_handle_life, pass_life, rest_of_handle_flow2,
5495         pass_flow2): New.
5496         * function.c (pass_instantiate_virtual_regs, pass_init_function,
5497         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
5498         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
5499         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
5500         pass_gcse): New.
5501         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
5502         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
5503         pass_rtl_ifcvt, gate_handle_if_after_combine,
5504         rest_of_handle_if_after_combine, pass_if_after_combine,
5505         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
5506         pass_if_after_reload): New.
5507         * integrate.c (pass_initial_value_sets): New.
5508         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
5509         pass_purge_lineno_notes): New.
5510         * mode-switching.c (rest_of_handle_mode_switching,
5511         pass_mode_switching): New.
5512         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
5513         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
5514         pass_loop2): New.
5515         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
5516         pass_loop_optimize): New.
5517         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
5518         pass_sms): New.
5519         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
5520         pass_gcse2): New.
5521         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
5522         pass_postreload_cse): New.
5523         * profile.c (gate_handle_profiling, pass_profiling,
5524         rest_of_handle_branch_prob, pass_branch_prob): New.
5525         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
5526         pass_split_before_regstack, gate_handle_split_before_regstack,
5527         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
5528         rest_of_handle_split_all_insns, pass_split_all_insns): New.
5529         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
5530         pass_stack_regs): New.
5531         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
5532         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
5533         pass_stack_adjustments): New.
5534         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
5535         pass_regrename): New.
5536         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
5537         pass_delay_slots, gate_handle_machine_reorg,
5538         rest_of_handle_machine_reorg, pass_machine_reorg): New.
5539         * rtl.h (extern void purge_line_number_notes): New.
5540         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
5541         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
5542         pass_sched2): New.
5543         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
5544         pass_tracer): New.
5545         * value-prof.c (gate_handle_value_profile_transformations,
5546         rest_of_handle_value_profile_transformations,
5547         pass_value_profile_transformations): New.
5548         * var-tracking.c (gate_handle_var_tracking,
5549         pass_variable_tracking): New.
5550         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
5552         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
5553         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
5554         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
5555         rest_of_handle_old_regalloc, rest_of_handle_regrename,
5556         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
5557         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
5558         rest_of_handle_gcse2, rest_of_handle_regmove,
5559         rest_of_handle_tracer, rest_of_handle_if_conversion,
5560         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
5561         rest_of_handle_web, rest_of_handle_branch_prob,
5562         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
5563         rest_of_handle_jump_bypass, rest_of_handle_combine,
5564         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
5565         rest_of_handle_gcse, rest_of_handle_loop_optimize,
5566         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
5567         rest_of_handle_mode_switching, rest_of_handle_jump,
5568         rest_of_handle_eh, rest_of_handle_stack_adjustments,
5569         rest_of_handle_flow2, rest_of_handle_jump2,
5570         rest_of_handle_peephole2, rest_of_handle_postreload,
5571         rest_of_handle_shorten_branches, rest_of_clean_state,
5572         rest_of_compilation): Remove.
5574         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
5575         * passes.c (dump_flags, in_gimple_form, all_passes,
5576         all_ipa_passes, all_lowering_passes, register_one_dump_file,
5577         register_dump_files, next_pass_1, last_verified, execute_todo,
5578         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
5579         from tree-optimize.c.
5580         (init_optimization_passes): Moved from tree-optimize.c,
5581         adding the RTL optimizations.
5582         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
5583         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
5584         all_ipa_passes, all_lowering_passes, register_one_dump_file,
5585         register_dump_files, next_pass_1, last_verified, execute_todo,
5586         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
5587         init_tree_optimization_passes, ipa_passes): Delete.
5588         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
5589         the RTL dumps.
5590         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
5591         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
5592         from tree.h.
5593         (ipa_passes): Remove.
5594         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
5595         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
5596         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
5597         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
5598         (dump_info_p, dump_flag): Moved to tree-dump.h.
5600         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
5601         cgraph.c, opts.c.
5602         * passes.c (finish_optimization_passes): Use dump_begin
5603         and dump_end, TDI_end.
5604         (gate_rest_of_compilation): New.
5605         (pass_rest_of_compilation): Use it.
5606         (gate_postreload, pass_postreload): New.
5607         * toplev.c (general_init): Rename init_tree_optimization_passes.
5608         * toplev.h (init_tree_optimization_passes): Rename to
5609         init_optimizations_passes.
5610         * tree-dump.c (dump_flag): Make static.
5611         (dump_files): Remove RTL dumps.
5612         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
5613         pass_cleanup_cfg, pass_free_cfg_annotations,
5614         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
5615         pass_init_datastructures, pass_fixup_cfg): Make non-static.
5616         * tree-pretty-print.c: Include tree-pass.h.
5617         * cgraph.c: Include tree-dump.h.
5619 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
5621         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
5622         Only fall back to saying it points to readonly memory if
5623         we can't do better.
5625 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5627         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
5628         * config/m32r/m32r.c (m32r_compute_frame_size,
5629         m32r_expand_prologue): Take current_function_profile into
5630         account whenever we reference
5631         current_function_uses_pic_offset_table.
5632         (m32r_finalize_pic): Remove.
5633         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
5635 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
5637         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
5638         instead of $<.  Don't remove ./as if it already exists.
5640 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5642         PR target/21723
5643         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
5644         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
5645         for complex modes when generating code for PA 1.0.
5646         (VALID_FP_MODE_P): New macro.
5647         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
5648         sets for all general and floating point modes.  Align wide floating
5649         point modes to even register boundaries to comply with architectural
5650         requirements.
5651         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
5652         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
5653         (VALID_FP_MODE_P): New macro.
5654         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
5655         sets for all general and floating point modes.  Align wide floating
5656         point modes to even register boundaries to comply with architectural
5657         requirements.
5659 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
5661         * tree-dump.c (dump_files): Initialize dump number for .cgraph
5662         to 0.
5664 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
5666         * tree-ssa-structalias.c: Don't include expr.h.
5668 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
5670         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
5671         comments.
5673 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
5675         Fix PR tree-optimization/22279
5677         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
5678         correct operator.
5680 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
5682         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
5684 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
5686         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
5687         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
5688         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
5689         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
5690         config/stormy16/stormy16.c, config/v850/v850.c,
5691         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
5692         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
5693         Avoid "." or "\n" at end of diagnostics and capital letters at
5694         start of diagnostics.
5695         * combine.c, cse.c: Don't translate dump file output.
5696         * toplev.c (print_version): Only translate output if going to
5697         stderr.
5699 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
5701         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
5702         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
5703         typos.
5705 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5707         * pa.c (fix_range): Fix typo in comment.
5709 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
5711         * tree-vrp.c (extract_range_from_assert): Replace
5712         fold (build (...)) with fold_build2.
5714 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5716         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
5717         gcc_gfc_char_table, init_dynamic_gfc_info): New.
5718         (format_types_orig, handle_format_attribute): Add support for
5719         format "gcc_gfc".
5721 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5723         * varasm.c (assemble_variable): Fix format specifier thinko.
5725 2005-07-03  Ira Rosen  <irar@il.ibm.com>
5727         PR tree-optimization/22029 (and 22135)
5728         * tree-pretty-print.c (dump_generic_node): Check that the node is not
5729         a phi node before calling dump_vops.
5731 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5733         * tree-dump.h (dump_string_field): Declare.
5734         * tree-dump.c: Use it instead of dump_string.
5735         (dump_string_field): Make non-static.
5737 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5739         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
5740         up the minimal CFG stuff always when optimize > 0.  Call
5741         split_all_insns_noflow in PIC case if needed.
5743 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5744             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
5746         PR c++/18279
5747         * c-decl.c (c_write_global_declarations): Dump contents of
5748         external scope to.
5749         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
5750         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
5751         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
5752         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
5753         is enabled.
5755 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
5757         * c-common.h (GCC_DIAG_STYLE): Define.
5758         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
5759         version for format checking to 4.1.
5760         * c-format.c: Include toplev.h after c-common.h.
5761         (enum format_type): Add gcc_tdiag_format_type.
5762         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
5763         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
5764         (format_types_orig): Add gcc_tdiag.
5765         (init_dynamic_diag_info): Support gcc_tdiag formats.
5766         (handle_format_attribute): Likewise.
5767         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
5768         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
5769         version for format checking to 4.1.
5770         (warning0, warning, error, pedwarn, sorry): Use
5771         ATTRIBUTE_GCC_DIAG.
5772         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
5773         (finish_aliases_1): Do not use %qE.
5774         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
5775         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
5776         Correct format bugs.
5777         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
5778         parameter to unsigned HOST_WIDE_INT.
5779         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
5781 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
5783         PR middle-end/21742
5784         * expr.c (write_complex_part): Use adjust_address for MEM.
5785         (read_complex_part): Same.
5787 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
5789         Fix PR tree-optimization/22280
5791         * tree-sra.c (generate_element_init): Remove useless loop.
5793 2005-07-02  Richard Henderson  <rth@redhat.com>
5795         * config/alpha/alpha.c (alpha_legitimize_address): Check for
5796         TLS_MODEL_NONE.
5797         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
5799 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
5801         PR middle-end/14490
5802         * fold-const.c (fold_binary): Handle the return value of
5803         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
5804         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
5806 2005-07-02  Jeff Law  <law@redhat.com>
5808         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
5809         a eliminate type conversion which feeds an equality comparison
5810         if the original type or either operand in the comparison is a
5811         function pointer.
5813 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
5815         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
5816         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
5817         texts.
5818         * config/avr/avr.c: Do not use '`' as left quote.
5819         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
5820         Remove "." from end of diagnostics.  Make diagnostics start with
5821         lowercase letter.
5823 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
5824             Joseph S. Myers  <joseph@codesourcery.com>
5826         * toplev.c (default_tree_printer): Handle setting location with
5827         '+' flag.
5828         * c-objc.common.c (c_tree_printer): Likewise.
5829         * c-format.c (gcc_diag_flag_specs): Add '+'.
5830         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
5831         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
5832         formats.
5833         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
5834         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
5835         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
5836         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
5837         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
5838         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
5839         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
5840         format arguments where %J is used without %D.
5842 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
5844         * gcc.c (LINK_SSP_SPEC): Define.
5845         (link_ssp_spec): New variable.
5846         (LINK_COMMAND_SPEC): Add %(link_ssp).
5847         (static_specs): Add link_ssp_spec.
5848         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
5849         * configure: Rebuilt.
5850         * config.in: Rebuilt.
5852         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
5853         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
5854         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
5855         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
5856         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
5857         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
5858         -0x7008(2) instead of reading __stack_chk_guard variable.
5859         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
5860         number.
5861         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
5862         (stack_protect_set, stack_protect_test): Use *_tls* patterns
5863         if TARGET_THREAD_SSP_OFFSET is defined.
5864         (stack_tls_protect_set_si, stack_tls_protect_set_di,
5865         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
5867         Revert:
5868         2005-06-27  Richard Henderson  <rth@redhat.com>
5869         * libgcc-std.ver (GCC_4.1.0): New.
5870         * libgcc.h (__stack_chk_guard): Declare.
5871         (__stack_chk_fail, __stack_chk_fail_local): Declare.
5872         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
5873         * mklibgcc.in (lib2funcs): Add them.
5875 2005-07-01  Richard Henderson  <rth@redhat.com>
5877         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
5878         void * before struct sigcontext *.
5879         (x86_fallback_frame_state): Likewise.
5881 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
5883         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
5885 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
5887         PR tree-opt/22269
5888         * tree-ssa-reassoc.c (should_transpose): Fix which operand
5889         we check for SSA_NAME for.
5891 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
5893         Fix PR tree-optimization/22071
5895         * tree-ssa-structalias.c (offset_overlaps_with_access): New
5896         function.
5897         (get_constraint_for_component_ref): Use it.
5899 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
5901         PR other/22264
5902         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
5903         print out the last new line.
5905 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
5907         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
5908         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
5909         * config/cris/cris.c (cris_conditional_register_usage): Adjust
5910         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
5911         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
5912         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
5913         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
5914         (enum reg_class): New member CC0_REGS.
5915         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
5916         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
5917         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
5918         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5919         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
5920         Adjust for register now described.
5922 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
5924         PR target/22262
5925         * config/i386/i386.md (stack_protect_test_si,
5926         stack_protect_test_di): Add earlyclobber for scratch 3.
5927         * config/rs6000/rs6000.md (stack_protect_testsi,
5928         stack_protect_testdi): Add earlyclobber for scratch 3,
5929         remove earlyclobber from scratch 4.
5931 Older entries for 2005 can be found in ChangeLog-2005.