OSDN Git Service

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