OSDN Git Service

0617b8f11379ab615c325543cc0f5ad8299b8bca
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
2
3         PR c/22192
4         * c-typeck.c (composite_type): Prefer constant size arrays to
5         VLAs.
6
7 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8
9         PR c/21720
10         * real.c (real_from_string): Set last bit if there is a nonzero
11         hex digit beyond GCC's internal precision.
12
13 2005-07-28  Richard Henderson  <rth@redhat.com>
14
15         PR rtl-opt/22619
16         * cfgcleanup.c (try_forward_edges): Watch out for end of
17         insn chain.
18
19 2005-07-28  James E Wilson  <wilson@specifixinc.com>
20
21         PR c/23106
22         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
23
24 2005-07-28  Jan Hubicka  <jh@suse.cz>
25
26         * Makefile.in (rtl-profile.o): Kill all traces of it.
27         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
28         * coverage.h (rtl_coverage_counter_ref): Kill.
29         * opts.c (flag_speculative_prefetching_set): Kill.
30         (flag_loop_optimize_set): New.
31         (common_handle_option): Disable loop optimizer when profiling;
32         do not handle speculative prefetching.
33         * passes.c (init_optimization_passes): Replace pass_profiling combo
34         by branch_prob pass.
35         * profile.c (compute_value_histograms): Update for simplified value
36         profiles.
37         (rtl_register_profile_hooks): Kill.
38         (pass_profiling): Kill.
39         (rest_of_handle_branch_prob): Do not profile.
40         * toplev.c (process_options): Remove speculative prefetching.
41         * toplev.h (flag_tree_based_profiling): Kill.
42         * tree-profile.c (prepare_instrumented_value,
43         tree_gen_interval_profiler, tree_gen_pow2_profiler,
44         tree_gen_one_value_profiler, do_tree_profiling): Update for
45         simplified datastructures.
46         * value-prof.c: Add comment that speculative prefetching was dropped;
47         update rest of file for simplified datastructures.
48         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
49         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
50         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
51         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
52         rtl_mod_subtract, gen_speculative_prefetch,
53         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
54         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
55         (gate_handle_value_profile_transformations,
56         rest_of_handle_value_profile_transformations,
57         pass_value_profile_transformations): Kill.
58         * value-prof.h (histogram_value_t): Remove IL based unions.
59         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
60         rtl_profile_hooks): Remove hooks.
61
62         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
63
64         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
65         (cgraph_clone_node): Likewise.
66         * cgraph.h (cgraph_clone_edge): Update prototype.
67         (cgraph_clone_node): Likewise.
68         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
69         cgraph_clone_node.
70         (lookup_recursive_calls): Consider profile.
71         (cgraph_decide_recursive_inlining): Fix updating; use new
72         probability argument; use profile.
73         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
74         * tree-inline.c (copy_bb): Update clal of clone_edge.
75         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
76
77         * invoke.texi (min-inline-recursive-probability): Document.
78
79 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
80
81         * doc/install.texi (Configuration): Update Valgrind homepage.
82
83 2005-07-28  Richard Henderson  <rth@redhat.com>
84
85         PR middle-end/21362
86         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
87         labels we want to delete.
88         (cfg_layout_merge_blocks): Likewise.
89
90 2005-07-28  Richard Henderson  <rth@redhat.com>
91
92         PR target/17692
93         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
94         when expanding to nothing.
95
96 2005-07-28  Josh Conner  <jconner@apple.com>
97
98         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
99         (cgraph_decide_inlining_of_small_functions): Likewise.
100
101 2005-07-28  Josh Conner  <jconner@apple.com>
102
103         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
104         direction of badness if negative.
105         (cgraph_default_inline_p): Add reason to parameters, and assign it
106         a value.
107         (cgraph_decide_inlining_of_small_functions): New parameter in call
108         to cgraph_default_inline_p.
109         (cgraph_decide_inlining_incrementally): Likewise.
110         * cgraphunit.c (decide_is_function_needed): Likewise.
111         * cgraph.h (cgraph_default_inline_p): Likewise.
112
113 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
114
115         * builtins.c: Fix comment typo(s).
116         * genautomata.c: Likewise.
117         * gimplify.c: Likewise.
118         * tree-dfa.c: Likewise.
119         * tree-flow-inline.h: Likewise.
120         * tree-into-ssa.c: Likewise.
121         * tree-ssa-alias.c: Likewise.
122         * tree-ssa-ccp.c: Likewise.
123         * tree-ssa-copy.c: Likewise.
124         * tree-ssa-dce.c: Likewise.
125         * tree-ssa-dom.c: Likewise.
126         * tree-ssa-operands.c: Likewise.
127         * tree-tailcall.c: Likewise.
128         * tree-vectorizer.c: Likewise.
129         * tree-vrp.c: Likewise.
130         * tree.c: Likewise.
131
132 2005-07-28  Jeff Law  <law@redhat.com>
133
134         * tree-vrp.c (test_for_singularity): Extracted from  ...
135         (simplify_cond_using_ranges): Attempt to simplify a relational
136         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
137
138 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
139
140         PR tree-optimization/22506
141         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
142         phis whose argument is constant.
143
144 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
145
146         PR rtl-optimization/18992
147         Back out this patch:
148           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
149           PR optimization/12142
150           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
151           uses of the register in the SET_SRC.  Remove unnecessary argument.
152
153         Replace it with this:
154         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
155         if flag_non_call_exceptions is set and the insn may trap, pass
156         pc_rtx as dest for recursion.
157         In SET_SRC part of SET case, if dest is already set, pass it down
158         unchanged.
159
160 2005-07-28  Jan Hubicka  <jh@suse.cz>
161
162         * cfg.c (update_bb_profile_for_threading): Use RDIV.
163         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
164         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
165         roundoff errors.
166         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
167         profile when available.
168
169 2005-07-28  Jan Beulich <jbeulich@novell.com>
170
171         * config/ia64/ia64.c (ia64_load_pair_ok): New.
172         (ia64_print_operand): Describe and handle 'X'.
173         (ia64_register_move_cost): Also handle FP_REGS.
174         (ia64_preferred_reload_class): Likewise.
175         (ia64_secondary_reload_class): Likewise.
176         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
177         it. Also check for ITANIUM_CLASS_FLDP.
178         * config/ia64/ia64.h (FP_REGNO_P): New.
179         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
180         (reg_class): Add FP_REGS.
181         (REG_CLASS_NAMES): Adjust for it.
182         (REG_CLASS_CONTENTS): Likewise.
183         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
184         (REG_CLASS_FROM_LETTER): Handle 'x'.
185         (CLASS_MAX_NREGS): Handle FP_REGS.
186         (MEMORY_MOVE_COST): Likewise.
187         * config/ia64/ia64.md (itanium_class): Add fldp.
188         (type): Handle fldp.
189         (movti_internal): More allowable operand combinations. Use ldfp8 when
190         splitting unnecessary. Remove predicable attribute. Adjust
191         itanium_class attribute.
192         (smuldi3_highpart): Remove outdated comment.
193         (mulditi3, umulditi3, rotlti3): New expanders.
194         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
195         (absti2): Disabled new insn for future reference.
196         Respective new splitters.
197         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
198         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
199         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
200
201 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
202
203         PR rtl-optimization/23047
204         * simplify-rtx.c (simplify_const_relational_operation): Respect
205         flag_wrapv for comparisons with ABS.
206
207 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
208
209         PR tree-optimization/22493
210         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
211         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
212
213 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
214
215         * config/frv/frv.opt (moptimize-membar): New.
216
217         * doc/invoke.texi: Document -moptimize-membar and its inverse.
218
219         * config/frv/frv.h: Remove machine_function definition.
220
221         * config/frv/frv.c (struct frv_io): New.
222         (struct machine_function): Moved from frv.h.  Add has_membar_p.
223         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
224         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
225         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
226         (frv_optimize_membar_global, frv_optimize_membar): New functions.
227         (frv_reorg): Call frv_optimize_membar when appropriate.
228         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
229         (frv_expand_builtin): Adjust calls accordingly.
230         (frv_io_address_cookie): New function.
231         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
232         load or store rather than a special insn.  Add ccnstant address and
233         io-type operands to the membar.
234         (frv_ifcvt_modify_tests): Unsign regno.
235         (frv_ifcvt_modify_tests): Same.
236
237         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
238         UNSPEC_OPTIONAL_MEMBAR constant.
239         (builtin_read_<mode>): Delete.
240         (builtin_write_<mode>): Delete.
241         ("optional_membar_<mode>"): Add operand.
242
243         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
244         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
245         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
246         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
247         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
248         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
249         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
250         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
251         * testsuite/gcc.target/frv/all-read-write-1.c: New.
252
253 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
254
255         * df.c (df_uses_record): Handle SCRATCH.
256
257 2005-07-28  Steven Bosscher  <stevenb@suse.de>
258
259         PR debug/20161
260         * passes.c (rest_of_decl_compilation): If decl is a type and
261         we have encountered errors, don't emit debug information.
262
263 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
264
265         * params.def: Fixed comment.
266         
267 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
268
269         PR target/19885
270         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
271         (TARGET_ASM_UNALIGNED_HI_OP): Add.
272         (TARGET_ASM_UNALIGNED_SI_OP): Add.
273
274 2005-07-27  Steven Bosscher  <stevenb@suse.de>
275
276         PR c++/22003
277         * varasm.c (assemble_start_function): Don't do anything that may
278         require a CFG if the current function is a thunk.
279
280 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
281
282         * doc/install.texi (Prerequisites): Mention that perl is needed
283         to do export control in libstdc++ targetting Darwin.
284
285 2005-07-27  Steven Bosscher  <stevenb@suse.de>
286
287         PR rtl-optimization/17808
288         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
289         (sched_insns_conditions_mutex_p): Split out from...
290         (add_dependence): ...here.  But don't call it from here.
291         (add_dependence_list): Check sched_insns_conditions_mutex_p
292         before calling add_dependence.
293         (add_dependence_list_and_free): Likewise.
294         (fixup_sched_groups): Likewise.
295         (sched_analyze_1): Likewise.
296         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
297         (sched_analyze): Likewise.
298         (sched_analyze_insn): Likewise.
299         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
300         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
301         dependencies on all COND_EXEC insns to jumps ending basic blocks
302         when doing intrablock scheduling.
303         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
304
305 2005-07-27  Jeff Law  <law@redhat.com>
306
307         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
308         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
309         equivalency sets, correctly handle the case were vr0 has an
310         equivalency set, but vr1 does not.
311
312 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
313
314         PR tree-optimization/23073
315         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call 
316         vect_print_dump_info before fprintf.
317
318 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
319
320         PR tree-optimize/22348
321         * tree-ssa-loop-niter.c (number_of_iterations_cond):
322         Fold the partial computation.
323
324 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
325
326         PR tree-optimization/22325
327         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
328         Declare.
329         * tree-scalar-evolution.c (scev_const_prop): Add generic final
330         value replacement.
331         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
332         (force_var_cost): ... this function.
333         (compute_phi_arg_on_exit): Export.
334
335 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
336
337         PR tree-optimization/20773
338         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
339         edge.
340
341 2005-07-27  Richard Guenther  <rguenther@suse.de>
342
343         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
344         Avoid pushing again if current struct contains only
345         fields we decomposed.
346
347 2005-07-27  Jan Hubicka  <jh@suse.cz>
348
349         PR tree-optimization/22574
350         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
351         not available.
352
353         * tree-tailcall.c (decrease_profile): New function.
354         (eliminate_tail_call): Use it.
355
356         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
357         visibility flags correctly in whole program mode.
358
359 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
360
361         PR rtl-optimization/22472
362         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
363
364 2005-07-26  Steven Bosscher  <stevenb@suse.de>
365
366         PR tree-optimization/22504
367         * tree-complex.c (expand_complex_addition): Use 'code' instead
368         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
369
370 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
371
372         * config.gcc (cpu_type): Add frv case.
373         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
374         (supported_defaults): Add fr550 case.
375
376 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
377
378         PR 22591
379         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
380         whether a pointer of type T * may point to objects of type T *.
381
382 2005-07-26  DJ Delorie  <dj@redhat.com>
383
384         * configure: Regenerate.
385
386 2005-07-26  Dale Johannesen  <dalej@apple.com>
387
388         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
389
390 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
391
392         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
393         Clarify use of "build" in name.
394
395 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
396
397         * doc/extend.texi (Raw read/write Functions): New section.
398         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
399         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
400         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
401         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
402         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
403         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
404         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
405         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
406         * config/frv/frv.c: Add bdesc_loads global.
407         Add bdesc_stores global.
408         (frv_init_builtins): Add support for __builtin_{read/write}*.
409         (frv_volatile_memref): New.
410         (frv_expand_load_builtin): New.
411         (frv_expand_store_builtin): New.
412         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
413         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
414         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
415         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
416         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
417         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
418         (builtin_read_<mode>): New.
419         (builtin_write_<mode>): New.
420         (builtin_write64): New.
421         (optional_membar_<mode>): New.
422
423 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
424
425         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
426         (rather than units) against HOST_BITS_PER_WIDE_INT.
427
428 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
429
430         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
431         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
432         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
433         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
434         FSF address.
435
436         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
437         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
438         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
439         comment typos.
440         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
441
442 2005-07-26  Richard Guenther  <rguenther@suse.de>
443
444         PR tree-optimization/22486
445         * fold-const.c (fold_unary): Fold away useless component
446         references of the form (T *)&T.x, if the address
447         doesn't change.
448
449 2005-07-25  James E Wilson  <wilson@specifixinc.com>
450
451         * dwarf2out.c (add_call_src_coords_attributes): New.
452         (gen_inlined_subroutine_die): Call it.
453         (maybe_emit_file, init_file_table): Add comments.
454         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
455         maybe_emit_file.
456         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
457         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
458         * tree.h (BLOCK_SOURCE_LOCATION): New.
459         (struct tree_block): New field locus.
460
461 2005-07-26  Andreas Schwab  <schwab@suse.de>
462
463         PR rtl-optimization/23043
464         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
465         when allocating a struct unoccr.
466
467 2005-07-25  Richard Henderson  <rth@redhat.com>
468
469         PR 22626
470         * tree-complex.c (gate_no_optimization): True if errors.
471         * Makefile.in (tree-complex.o): Update dependencies.
472
473 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
474
475         * config/frv/predicates.md (integer_register_operand): Use
476         GPR_AP_OR_PSEUDO_P.
477
478 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
479
480         PR tree-opt/22484
481         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
482         after fold.
483         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
484
485 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
486
487         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
488         types when flag_unsafe_math_optimizations is true.
489
490 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
491
492         * gcc.c (option_map): Add --sysroot.
493         (process_command): Handle --sysroot.
494         (display_help): Document it.
495         * doc/cppopts.tex (-isysroot): Document.
496         * doc/invoke.texi (--sysroot): Document.
497         * doc/install.texi (--with-build-sysroot): Document.
498
499         * Makefile.in (inhibit_libc): New variable.
500         (INHIBIT_LIBC_CFLAGS): Likewise.
501         (LIBGCC2_CFLAGS): Include
502         $(INHIBIT_LIBC_CFLAGS).
503         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
504         ($(T)crtbegin.o): Do not use @inhibit_libc@.
505         ($(T)crtend.o): Likewise.
506         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
507         ($(T)crtendS.o): Likewise.
508         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
509         ($(T)crtendT.o): Likewise.
510         (stmp-fixinc): Do not complain about missing headers if
511         inhibit_libc.
512         * configure.ac (inhibit_libc): Set it to true/false.
513         (--with-build-sysroot): New option.  Use it to set
514         SYSTEM_HEADER_DIR. 
515         * configure: Regenerated.
516
517 2005-07-25  Manfred Hollstein  <mh@suse.com>
518
519         * calls.c (store_one_arg): Fix unsigned comparison warning.
520
521 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
522
523         PR other/22337
524         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
525         (ggc_print_statistics): Initialize variable before use.
526
527 2005-07-25  Richard Guenther  <rguenther@suse.de>
528
529         * tree-dfa.c (mark_new_vars_to_rename): Protect against
530         calling with a PHI_NODE argument.
531
532         * tree-flow-inline.h (overlap_subvar): Protect against
533         possible overflow.
534
535 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
536
537         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
538         * configure: Regenerate.
539
540 2005-07-25  Ira Rosen  <irar@il.ibm.com>
541
542         * expr.c (highest_pow2_factor): Make extern.
543         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
544         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
545         record_array_differ_p, array_ptr_differ_p): Likewise.
546         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
547         additional cases. Call the above functions.
548         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
549         base_object_differ_p when there are two base objects. Otherwise, compare
550         base address and offset. Call may_alias_p.
551         (dump_data_reference): Use a correct field name.
552         (analyze_array): Make static. Initialize new data-ref fields.
553         (analyze_indirect_ref): New function.
554         (init_data_ref): Initialize new data-ref fields.   
555         (strip_conversion): Moved from tree-vect-analyze.c. 
556         (analyze_offset_expr, get_ptr_offset, address_analysis,
557         object_analysis): Likewise.
558         (analyze_offset): New function.
559         (create_data_ref): Likewise.
560         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
561         dimensions for ARRAY_REFs only.
562         (build_classic_dist_vector): Make static.
563         (access_functions_are_affine_or_constant_p): Call macro to get the
564         address of access functions.
565         (compute_all_dependences): Add new parameter
566         compute_self_and_read_read_dependences. Compute self and read-read  
567         dependences if it is true.
568         (find_data_references_in_loop): Call create_data_ref. Initialize new
569         data-ref fields.
570         (compute_data_dependences_for_loop): Add new parameter
571         compute_self_and_read_read_dependences. Remove parameter nb_loops,
572         compute nb_loops. Call compute_all_dependences,
573         build_classic_dist_vector and build_classic_dir_vector with correct
574         parameters.
575         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
576         with correct parameters. Compare dimensions for ARRAY_REFs only.
577         (free_data_refs): Call macro to free access functions.
578         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
579         fields from stmt_vinfo.
580         (struct base_object_info): New structure.
581         (struct data_reference): Move fields to base_object_info. Add fields   
582         first_location and object_info for above structures. Move fields from
583         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
584         aligned_to.  Add macros to access the new fields.
585         Update functions declarations.
586         * tree-flow.h (is_aliased_with): Declare.
587         * tree-loop-linear.c (linear_transform_loops): Call
588         compute_data_dependences_for_loop with correct parameters.
589         * tree-ssa-alias.c (is_aliased_with): New function.
590         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
591         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
592         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
593         vect_base_addr_differ_p, compute_subscript_distance and
594         build_classic_dist_vector. Add printings. Check absolute value of
595         distance.
596         (vect_analyze_data_ref_dependences): Go through ddrs instead of
597         data-refs.
598         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
599         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
600         to bytes. Add printing.
601         (vect_compute_data_refs_alignment): Go through loads and stores in one
602         loop.
603         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
604         vect_analyze_data_ref_access): Likewise.
605         (vect_analyze_pointer_ref_access): Remove.
606         (vect_address_analysis, vect_object_analysis): Likewise.
607         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
608         and analyze data-refs in the loop.
609         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
610         fields of data-ref instead of stmt. Add init to the offset from the
611         base.
612         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
613         (vect_update_init_of_dr): Likewise.
614         (vect_update_inits_of_drs): Go through loads and stores in one loop.
615         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
616         removed fields.
617         (new_loop_vec_info): Initialize new fields.
618         (destroy_loop_vec_info): Free new fields.
619         (vect_strip_conversion): Remove.
620         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
621         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
622         datarefs. Add new field ddrs. 
623         Add macros for the new fields access.
624         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
625         base_aligned_p, misalignment, memtag, ptr_info and subvars.
626         Remove their macros.
627         * tree.h (highest_pow2_factor): Declare.
628
629 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
630
631         * calls.c (store_one_arg): Check for sibling call MEM arguments
632         from already clobbered incoming argument area.
633
634 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
635
636         * c-common.c (check_missing_format_attribute): New.
637         * c-common.h (check_missing_format_attribute): Likewise.
638         * c-typeck.c (convert_for_assignment): Use it.
639
640 2005-07-24  Andreas Schwab  <schwab@suse.de>
641
642         * config/m68k/m68k.md ("extendqidi2"): When source is an address
643         register use a word move.  Correct operand of ext.w in 68000 code.
644
645 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
646
647         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
648         variables as declarations, rather than definitions.
649
650 2005-07-24  Ira Rosen  <irar@il.ibm.com>
651
652         PR tree-optimization/22526
653         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
654         of the zero node.
655
656 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
657
658         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
659         that C99 reserve for future use. Use it to define clog10,
660         clog10f and clog10l.
661
662 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
663
664         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
665         * configure.ac: Check for -Wmissing-format-attribute.
666         
667         * configure: Regenerate.
668
669 2005-07-23  Richard Henderson  <rth@redhat.com>
670
671         PR tree-optimization/22623
672         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
673
674 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
675
676         PR target/22577
677         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
678
679 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
680
681         * Makefile.in (C_TREE_H): Update dependencies.
682         * c-tree.h: Include toplev.h.
683         * diagnostic.h (diagnostic_set_info): Add format attribute.
684         * rtl-error.c (diagnostic_for_asm): Likewise.
685
686 2005-07-23  Chao-ying Fu  <fu@mips.com>
687
688         * config/mips/mips-dsp.md: New file.
689         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
690         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
691         functions.
692         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
693         MIPS_BUILTIN_BPOSGE32.
694         (mips_expand_builtin_direct): Add one parameter to indicate that
695         builtin functions need to return a value.
696         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
697         functions.
698         (mips_regno_to_class): Add classes for 12 new DSP registers.
699         (mips_subword): Change to check four HI registers.
700         (mips_output_move): Output move to and from 6 new DSP accumulators.
701         (override_options): Make sure -mdsp and -mips16 are not used together.
702         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
703         for machine modes.
704         (mips_conditional_register_usage): Disable 6 new DSP accumulators
705         when !TARGET_DSP.
706         (print_operand): Add 'q' for printing DSP accumulators.
707         (mips_cannot_change_mode_class): Check ACC_REGS.
708         (mips_secondary_reload_class): Check ACC_REGS.
709         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
710         (mips_register_move_cost): Check ACC_REGS.
711         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
712         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
713         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
714         (dsp_bdesc): New array.
715         (bdesc_arrays): Add DSP builtin function table.
716         (mips_prepare_builtin_arg): Check predicate again after
717         copy_to_mode_reg.
718         (mips_expand_builtin): Add one more parameter to
719         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
720         MIPS_BUILTIN_BPOSGE32.
721         (mips_init_builtins): Initialize new function types.
722         (mips_expand_builtin_direct): Check if builtin functions need to
723         return a value and pass operands properly.
724         (mips_expand_builtin_bposge): New function.
725         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
726         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
727         (FIRST_PSEUDO_REGISTER): Increase to 188.
728         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
729         Update for 12 new DSP registers.
730         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
731         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
732         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
733         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
734         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
735         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
736         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
737         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
738         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
739         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
740         (REGISTER_NAMES): Add names for 12 new DSP registers.
741         * config/mips/mips.md: Include mips-dsp.md.
742         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
743         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
744         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
745         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
746         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
747         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
748         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
749         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
750         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
751         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
752         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
753         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
754         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
755         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
756         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
757         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
758         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
759         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
760         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
761         (UNSPEC_RDDSP): New constants.
762         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
763         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
764         A<-d alternative.
765         * config/mips/mips.opt (-mdsp): New option.
766         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
767         (reg_imm10_operand): New predicates.
768         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
769         * doc/invoke.texi (-mdsp): Document new option.
770
771 2005-07-22  DJ Delorie  <dj@redhat.com>
772
773         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
774         to warning calls.
775         * tree-inline.c (inlinable_function_p): Likewise.
776
777 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
778
779         PR debug/21828
780         * toplev.c (check_global_declarations): Do not mark undefined
781         variables as DECL_IGNORED_P.
782         * varasm.c (first_global_object_name): GTY it.
783         (weak_global_object_name): Likewise.
784         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
785         a string to go into {weak,first}_global_object_name.
786
787 2005-07-22  DJ Delorie  <dj@redhat.com>
788
789         * c-format.c (check_function_format): Change warning control
790         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
791
792 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
793
794         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
795         &PTR->FLD a dereference of PTR.
796         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
797         a potential dereference of PTR.
798
799 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
800
801         PR rtl-optimization/20370
802         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
803         call allocate_reg_info if necessary.
804
805         PR rtl-optimization/21848
806         * calls.c (emit_library_call_value_1): For const functions, add
807         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
808
809         PR rtl-optimization/22445
810         * cselib.c (target.h): Include.
811         (rtx_equal_for_cselib_p): Allow commutative matches.
812         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
813         Remove MODE parameter.  Changed all callers.
814
815         PR rtl-optimization/22258
816         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
817         New functions.
818         (try_combine): Use likely_spilled_retval_p.
819
820 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
821
822         * config.gcc: Add crx-elf support.
823
824         * doc/contrib.texi: Mention crx.
825         * doc/extend.texi: Document crx extensions.
826         * doc/install.texi: Document crx install.
827         * doc/invoke.texi: Document crx options.
828         * doc/md.texi: Document crx constraints.
829
830         * config/crx/crx-protos.h: New file.
831         * config/crx/crx.c: New file.
832         * config/crx/crx.h: New file.
833         * config/crx/crx.md: New file.
834         * config/crx/crx.opt: New file.
835         * config/crx/t-crx: New file.
836         
837 2005-07-22  Manfred Hollstein  <mh@suse.com>
838
839         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
840         warnings.
841         (int_add_graph_edge): Likewise.
842         (collapse_nodes): Likewise.
843         (process_unification_queue): Likewise.
844
845 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
846             Laurent GUERBY  <laurent@guerby.net>
847
848         PR tree-optimization/22336
849         * function.c (record_block_change): Check for 
850         cfun->ib_boundaries_block.
851         
852 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
853
854         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
855         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
856
857 2005-07-21  DJ Delorie  <dj@redhat.com>
858
859         * toplev.c (warn_deprecated_use): Add warning control to warning
860         call.
861         * c-typeck.c (parser_build_binary_op): Likewise.
862         (c_finish_if_stmt): Likewise.
863         * c-common.c (check_function_sentinel): Likewise.
864         (check_nonnull_arg): Likewise.
865
866 2005-07-21  Richard Henderson  <rth@redhat.com>
867
868         PR tree-opt/22504
869         * tree-complex.c (complex_ssa_name_components): New.
870         (cvc_lookup): Allow entry not found.
871         (create_components): Remove.
872         (create_one_component_var, get_component_var): New.
873         (get_component_ssa_name, set_component_ssa_name): New.
874         (extract_component): Use get_component_ssa_name.
875         (update_complex_components): Use set_component_ssa_name.
876         (update_complex_components_on_edge): Likewise.
877         (update_phi_components): Create new PHI nodes directly, instead
878         of adding insns to edges.
879         (tree_lower_complex): Allocate and free complex_variable_components
880         and complex_ssa_name_components here.
881
882 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
883         
884         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
885         revert to returning false.
886
887 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
888
889         PR target/21149
890         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
891
892 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
893
894         PR target/22576
895         * config/i386/i386.md (cmpxf): Change operand constraints
896         to "nonmemory_operand".
897
898 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
899
900         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
901
902 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
903
904         PR middle-end/21180
905         * fold-const.c (fold_build1): Add checksum for the operands.
906         (fold_build2): Likewise.        
907         (fold_build3): Likewise.
908
909 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
910
911         PR middle-end/19055
912         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
913
914 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
915
916         * common.opt (-fforward-propagate): Committed by mistake,
917         removed.
918
919 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
920
921         * reg-stack.c: Fix comment typo(s).
922         * tree-ssa-operands.c: Likewise.
923         * tree-vectorizer: Likewise.
924
925 2005-07-21  Nick Clifton  <nickc@redhat.com>
926
927         * config/sh/symbian.c: Replace C++ style line comments with C
928         style line comments.
929         (symbian_add_attribute): Do not use a ? operator on the LHS of
930         an assignment.
931         (sh_symbian_handle_dll_attribute): Change the type of the
932         method vector to "VEC(tree,gc)*" and use vector accessor
933         macros to walk over the elements.
934         (symbian_export_vtable_and_rtti_p): Likewise.
935         (symbian_class_needs_attribute_p): Likewise.
936
937 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
938
939         PR target/22085
940         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
941         initialize targetm.resolve_overloaded_builtin here.
942         (altivec_expand_overloaded_builtin): Make it non-static.
943         * config/rs6000/rs6000-protos.h
944         (altivec_expand_overloaded_builtin): New prototype.
945         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
946         targetm.resolve_overloaded_builtin here.
947         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
948
949 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
950             Zdenek Dvorak  <dvorakz@suse.cz>
951
952         PR tree-optimization/19210
953         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
954         New.
955         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
956         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
957         rely on unproven assumptions.
958         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
959         * tree-flow.h (number_of_iterations_exit): Add final parameter.
960         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
961         to number_of_iterations_exit.
962         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
963         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
964         * tree-ssa-loop-niter.c (find_loop_niter,
965         estimate_numbers_of_iterations_loop): Likewise.
966         (number_of_iterations_exit): Honor the new options.
967         * doc/invoke.texi (Wunsafe-loop-optimizations,
968         funsafe-loop-optimizations): Document them.
969
970 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
971
972         PR rtl-optimization/22167
973         * gcse.c (hoist_code): Fix hoist_exprs[] check.
974
975 2005-07-20  Adam Nemet  <anemet@lnxw.com>
976
977         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
978         __do_global_dtors_aux longcall.
979
980 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
981
982         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
983         (old_special_pred_table): Don't reference
984         SPECIAL_MODE_PREDICATES.
985         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
986         * config/arc/arc.h: Don't mention PREDICATE_CODES.
987         * config/sh/predicates.h: Don't mention
988         SPECIAL_MODE_PREDICATES.
989         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
990         Remove.
991
992 2005-07-20  DJ Delorie  <dj@redhat.com>
993
994         * config.gcc: Add m32c-elf support.
995
996         * doc/contrib.texi: Mention m32c.
997         * doc/extend.texi: Document m32c extensions.
998         * doc/install.texi: Mention m32c.
999         * doc/invoke.texi: Document m32c options.
1000         * doc/md.texi: Document m32c constraints.
1001
1002         * config/m32c/addsub.md: New file.
1003         * config/m32c/bitops.md: New file.
1004         * config/m32c/cond.md: New file.
1005         * config/m32c/jump.md: New file.
1006         * config/m32c/m32c-lib1.S: New file.
1007         * config/m32c/m32c-lib2.c: New file.
1008         * config/m32c/m32c-modes.def: New file.
1009         * config/m32c/m32c-pragma.c: New file.
1010         * config/m32c/m32c-protos.h: New file.
1011         * config/m32c/m32c.abi: New file.
1012         * config/m32c/m32c.c: New file.
1013         * config/m32c/m32c.h: New file.
1014         * config/m32c/m32c.md: New file.
1015         * config/m32c/m32c.opt: New file.
1016         * config/m32c/minmax.md: New file.
1017         * config/m32c/mov.md: New file.
1018         * config/m32c/muldiv.md: New file.
1019         * config/m32c/predicates.md: New file.
1020         * config/m32c/prologue.md: New file.
1021         * config/m32c/shift.md: New file.
1022         * config/m32c/t-m32c: New file.
1023
1024 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1025
1026         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
1027         (stack_protect_set, stack_protect_test): New expanders.
1028         (stack_protect_set_si, stack_protect_set_si_media,
1029         stack_protect_set_di_media, stack_protect_test_si,
1030         stack_protect_test_si_media, stack_protect_test_di_media):
1031         New insns.
1032
1033 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
1034
1035         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
1036
1037 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
1038
1039         * tree.h (tree_expr_nonzero_p): Export.
1040         * fold-const.c (tree_expr_nonzero_p): Likewise.
1041         Return true for CALL_EXPRs that are alloca calls.
1042         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
1043         against zero.
1044         * tree-flow.h (expr_computes_nonzero): Remove.
1045         * tree-vrp.c (expr_computes_nonzero): Remove.
1046         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
1047         (extract_range_from_unary_expr): Likewise.
1048         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
1049         tree_expr_nonzero_p.
1050
1051 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
1052
1053         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
1054         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
1055         extra arg "picreg" and use it instead of pic_offset_table_rtx.
1056         All callers changed.
1057         (frame_related_constant_load): New arg "related" which controls
1058         setting of RTX_FRAME_RELATED_P.  All callers changed.
1059         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
1060         (bfin_expand_prologue): Add stack limit checking.
1061         * config/bfin/bfin.md (trapifcc): New pattern.
1062
1063         * config/bfin/bfin.c: Include "langhooks.h".
1064         (def_builtin): Go through lang_hooks to call builtin_function.
1065
1066         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
1067         * config/bfin/predicates.md (symbol_ref_operand): New.
1068         (call_insn_operand): Delete.  All callers changed to use
1069         register_no_elim_operand.
1070         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
1071         call_cookie field.
1072         (function_arg): Use it to generate the call's operand 2.
1073         (bfin_longcall_p): New function.
1074         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
1075         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
1076         determine if the address needs to be in a REG.
1077         (bfin_handle_longcall_attribute): New function.
1078         (bfin_attribute_table): Add "longcall" and "shortcall".
1079         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
1080         (CUMULATIVE_ARGS): New member call_cookie.
1081         (PREDICATE_CODES): Add symbol_ref_operand.
1082         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
1083         extra USE to the pattern.
1084         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
1085         New patterns, split off call_insn, sibcall_insn, call_value_insn and
1086         sibcall_value_insn; now the new patterns handle direct calls and the
1087         old ones indirect calls.
1088         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
1089
1090 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
1091
1092         * doc/trouble.texi: Update section on handling of empty loops.
1093
1094 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
1095
1096         * config.gcc: Remove support for sparc-*-openbsd*,
1097         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
1098         ns32k-*-netbsd*.
1099         * config.host: Remove support for i860-*-sysv4* as a host.
1100         * config/i860/*, config/ip2k/*, config/ns32k/*,
1101         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
1102         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
1103         mention obsolete ports.
1104
1105 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1106
1107         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
1108         soft frame pointer.
1109         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
1110         of frame_pointer_rtx.
1111         (sh_expand_epilogue): Likewise.
1112         (sh_set_return_address): Likewise.
1113         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
1114         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
1115         offsets from FRAME_POINTER_REGNUM.
1116         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
1117         (sh_register_names): Add initializer for sfp.
1118         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
1119         (VALID_REGISTER_P): Likewise.
1120         (FIRST_PSEUDO_REGISTER): Update.
1121         (DWARF_FRAME_REGISTERS): Define.
1122         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
1123         (HARD_FRAME_POINTER_REGNUM): Define.
1124         (FRAME_POINTER_REGNUM): Redefine.
1125         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
1126         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
1127         from FRAME_POINTER_REGNUM.
1128         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
1129         FRAME_POINTER_REGNUM.
1130         (REG_CLASS_CONTENTS): Add sfp.
1131         (REG_ALLOC_ORDER): Likewise.
1132         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
1133         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
1134         of frame_pointer_rtx.
1135         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1136
1137 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
1138
1139         * fold-const.c (tree_expr_nonnegative_p): Only return true for
1140         ABS_EXPR when flag_wrapv is false because of INT_MIN.
1141         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
1142         of an ABS_EXPR.
1143         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
1144         ABS_EXPR<x>.
1145
1146 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
1147
1148         Make CONSTRUCTOR use VEC to store initializers.
1149         * c-common.c (complete_array_type): Update to cope with VEC in
1150         CONSTRUCTOR_ELTS.
1151         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
1152         (pp_c_constructor_elts): New function.
1153         * c-pretty-print.h (pp_c_constructor_elts): Declare.
1154         * c-typeck.c (build_function_call, build_c_cast, digest_init,
1155         struct constructor_stack, struct initializer_stack,
1156         constructor_elements, push_init_level, pop_init_level,
1157         add_pending_init, find_init_member, output_init_element): Update to
1158         cope with VEC in CONSTRUCTOR_ELTS.
1159         * coverage.c (build_fn_info_value, build_ctr_info_value,
1160         build_gcov_info): Likewise.
1161         * expr.c (categorize_ctor_elements_1, store_constructor,
1162         expand_expr_real_1): Likewise.
1163         * fold-const.c (fold_ternary): Likewise.
1164         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
1165         gimplify_init_constructor, gimplify_expr): Likewise.
1166         * tree-dump.c (dequeue_and_dump): Likewise.
1167         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
1168         node.
1169         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
1170         CONSTRUCTOR_ELTS.
1171         * tree-sra.c (generate_element_init_1): Likewise.
1172         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
1173         * tree-ssa-operands.c (get_expr_operands): Likewise.
1174         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1175         * tree-vect-transform.c (vect_get_vec_def_for_operand):
1176         (get_initial_def_for_reduction): Likewise.
1177         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
1178         value handle in annotations.
1179         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
1180         tree_node_structure): Add support for constr_kind.
1181         (build_vector_from_ctor, build_constructor_single,
1182         build_constructor_from_list): New functions.
1183         (build_constructor): Update to take a VEC instead of a TREE_LIST.
1184         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
1185         Update to cope with VEC in CONSTRUCTOR_ELTS.
1186         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
1187         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
1188         CONSTRUCTOR_APPEND_ELT): New macros.
1189         (struct constructor_elt, struct tree_constructor): New data types.
1190         (union tree_node): Add tree_constructor field.
1191         * treestruct.def: Define TS_CONSTRUCTOR.
1192         * varasm.c (const_hash_1, compare_constant, copy_constant,
1193         compute_reloc_for_constant, output_addressed_constants,
1194         initializer_constant_valid_p, output_constant,
1195         array_size_for_constructor, output_constructor): Update to cope with
1196         VEC in CONSTRUCTOR_ELTS.
1197         * vec.h (VEC_empty, VEC_copy): New macros.
1198
1199 2005-07-19  Devang Patel  <dpatel@apple.com>
1200
1201         * dbxout.c (dbxout_type): Check Objective-C++ lang.
1202         
1203 2005-07-19  Richard Henderson  <rth@redhat.com>
1204
1205         PR tree-opt/22278
1206         * gimplify.c (gimplify_expr): Use main variant type for the temp
1207         destination for a discarded volatile read.
1208         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
1209         casts between non-void types that change volatility.
1210
1211 2005-07-15  DJ Delorie  <dj@redhat.com>
1212
1213         * toplev.h: Add comment about the first parameter for warning().
1214         * errors.h: Likewise.
1215
1216         * c.opt (Wpragmas): New.
1217         * doc/invoke.texi: Document it.
1218         
1219         * function.c (do_warn_unused_parameter): Add warning control to
1220         warning call.
1221         * c-decl.c (warn_if_shadowing): Likewise.
1222         * c-lex.c (cb_def_pragma): Likewise.
1223         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
1224         (pop_alignment): Likewise.
1225         (handle_pragma_pack): Likewise.
1226         (apply_pragma_weak): Likewise.
1227         (handle_pragma_weak): Likewise.
1228         (handle_pragma_redefine_extname): Likewise.
1229         (add_to_renaming_pragma_list): Likewise.
1230         (handle_pragma_extern_prefix): Likewise.
1231         (maybe_apply_renaming_pragma): Likewise.
1232         (handle_pragma_visibility): Likewise.
1233         
1234         * config/c4x/c4x-c.c (BAD): Likewise.
1235         (c4x_parse_pragma): Likewise.
1236         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
1237         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
1238         (rs6000_pragma_longcall): Likewise.
1239         * config/v850/v850-c.c (pop_data_area): Likewise.
1240         (ghs_pragma_section): Likewise.
1241         (ghs_pragma_section): Likewise.
1242         (ghs_pragma_interrupt): Likewise.
1243         (ghs_pragma_starttda): Likewise.
1244         (ghs_pragma_startsda): Likewise.
1245         (ghs_pragma_startzda): Likewise.
1246         (ghs_pragma_endtda): Likewise.
1247         (ghs_pragma_endsda): Likewise.
1248         (ghs_pragma_endzda): Likewise.
1249
1250 2005-07-19  Danny Berlin <dberlin@dberlin.org>
1251             Kenneth Zadeck <zadeck@naturalbridge.com>
1252
1253         * Makefile.in: Removed tree-promote-statics.c
1254         * tree-promote-statics.c: Removed.
1255         * common.opt: Removed flag-promote-statics.
1256         * opts.c: Ditto.
1257         * passes.c: Removed tree-promote-statics pass. 
1258         * tree-pass.h: Ditto.
1259         * timevar.def: Removed TV_PROMOTE_STATICS.
1260
1261
1262 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
1263
1264         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
1265         and *-*-freebsd9.
1266         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
1267         
1268 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1269
1270         PR c/22476
1271         * c-common.c (check_function_arguments): Call
1272         'check_function_format' if either -Wformat or
1273         -Wmissing-format-attribute are specified.
1274         * c-format.c (check_function_format): Check -Wformat before
1275         calling 'check_format_info'.
1276         * c-opts.c (c_common_post_options): Don't warn for
1277         -Wmissing-format-attribute without -Wformat.
1278         * c-typeck.c (convert_for_assignment): Detect additional cases for
1279         -Wmissing-format-attribute.
1280         * doc/invoke.texi (-Wmissing-format-attribute): Document new
1281         behavior.
1282
1283 2005-07-19  Richard Guenther  <rguenther@suse.de>
1284
1285         * config/i386/i386.md (lrint<mode>2): Use temporary
1286         instead of clobbering non-existent memory.
1287
1288 2005-07-19  Nick Clifton  <nickc@redhat.com>
1289
1290         * config/avr/avr.c (legitimate_address_p): Fix debugging print
1291         statement to avoid displaying ASCII control characters.
1292
1293 2005-07-19  Ben Elliston  <bje@au.ibm.com>
1294
1295         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
1296         * cfganal.c (find_edge_index): Ditto.
1297         * combine.c (combine_instructions): Ditto.
1298         * ddg.c (create_scc): Ditto.
1299         (find_successors): Ditto.
1300         (find_predecessors): Ditto.
1301         (find_nodes_on_paths): Ditto.
1302         (longest_simple_path): Ditto.
1303         * flow.c (update_life_info): Ditto.
1304         (count_or_remove_death_notes): Ditto.
1305         (clear_log_links): Ditto.
1306         * modulo-sched.c (generate_reg_moves): Ditto.
1307         (find_max_asap): Ditto.
1308         (find_max_hv_min_mob): Ditto.
1309         (find_max_dv_min_mob): Ditto.
1310         * sbitmap.c (sbitmap_first_set_bit): Ditto.
1311         * sched-rgn.c (extract_edgelst): Ditto.
1312         * tree-into-ssa.c (prepare_names_to_update): Ditto.
1313         (dump_update_ssa): Ditto.
1314         (ssa_names_to_replace) Ditto.
1315         (switch_virtuals_to_full_rewrite): Ditto.
1316         (update_ssa): Ditto.
1317         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
1318
1319 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
1320
1321         Fix PR tree-optimization/22483
1322         
1323         * tree-complex.c (create_components): Use
1324         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
1325         * tree-flow-inline.h (fill_referenced_var_vec): New function.
1326         * tree-flow.h (safe_referenced_var_iterator): New structure.
1327         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
1328         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
1329         safe_referenced_var iterator.
1330         (add_type_alias): Ditto.
1331
1332 2005-07-19  Steven Bosscher  <stevenb@suse.de>
1333
1334         * loop-init.c (rest_of_handle_loop2): Remove.
1335         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
1336         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
1337         (pass_rtl_loop_init, pass_rtl_loop_done,
1338         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
1339         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
1340         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
1341         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
1342         pass_tree_loop_done, and pass_tree_unswitch.
1343         (gate_loop): Rename to gate_tree_loop.
1344         * passes.c (init_optimization_passes): Update for renamed tree
1345         loop passes.  Add the new loop2 passes as subpasses of loop2.
1346         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
1347         Update for the renamed tree loop passes.
1348
1349 2005-07-18  Ian Lance Taylor  <ian@airs.com>
1350
1351         PR middle-end/22057
1352         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
1353         blocks when optimizing.
1354
1355 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
1356
1357         * common.opt (frename-registers): Initialize to 2.
1358         (fweb): Ditto.
1359         (fgcse-after-reload): Ditto.
1360         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
1361         (process_options): Only change flag_web, flag_rename_registers,
1362         and flag_rerun_cse_after_loop if not explicitly set by user.
1363
1364 2005-07-18  Jan Beulich  <jbeulich@novell.com>
1365
1366         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
1367         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
1368         in 64-bit mode the same as DImode in 32-bit mode.
1369         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
1370         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
1371         mode. Add new mode parameter. 
1372         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
1373         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
1374         x86_64_shift_adj): New expanders.
1375         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
1376         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
1377         insns.
1378         Respective new splitters. Use renamed shift splitter helpers in 32-bit
1379         DImode shift splitters.
1380         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
1381         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
1382         mode parameter.
1383
1384 2005-07-18  Jan Beulich  <jbeulich@novell.com>
1385
1386         * i386.md (movdi_extzv_1): New.
1387         (zero_extendhidi2): Combine alternatives and never force use of
1388         REX64 prefix.
1389         (zero_extendqidi2): Likewise. Don't restrict input selection.
1390
1391 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
1392
1393         Fix PR tree-optimization/22531
1394         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
1395          moment.
1396
1397 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
1398
1399         * tree-promote-statics.c (pass_promote_statics): Change dump file
1400          name.
1401
1402 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
1403
1404         * tree-optimize.c (init_tree_optimization_passes): Add
1405         pass_eliminate_useless_stores pass.
1406         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
1407         * tree-ssa-pre.c (is_copy_stmt): New function.
1408         (follow_copies_till_vuse): Ditto.
1409         (do_eustores): Ditto.
1410         (gate_eustores): Ditto. 
1411         
1412 2005-07-16  Richard Henderson  <rth@redhat.com>
1413
1414         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
1415
1416 2005-07-16 Danny Berlin <dberlin@dberlin.org>
1417            Kenneth Zadeck <zadeck@naturalbridge.com>
1418
1419         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
1420         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
1421         ipa-type-escape.h, tree-promote-statics.c
1422         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
1423         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h, 
1424         tree-promote-statics.c: new files.
1425         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
1426         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
1427         int nonlocal_set_p, mark_constant_function): Deleted.
1428         (rest_of_handle_cfg): Removed call to mark_constant_function. 
1429         (nonoverlapping_component_refs_p): Added calls to support
1430         type based aliasing.    
1431         * tree-ssa-alias.c (may_alias_p,
1432         compute_flow_insensitive_aliasing): Ditto.
1433         * calls.c (flags_from_decl_or_type): Removed reference to
1434         cgraph_rtl_info. 
1435         * c-typeck.c (convert_arguments): Make builtins tolerant of having
1436         too many arguments.  This is necessary for Spec 2000.
1437         * cgraph.h (const_function, pure_function): Removed.
1438         * common.opt: Added "fipa-pure-const", "fipa-reference",  
1439         "fipa-type-escape", and "ftree-promote-static".
1440         * opts.c: Ditto.
1441         * passes.c: Added ipa and tree-promote-statics passes. 
1442         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
1443         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
1444         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
1445         * tree-flow.h: Added exposed sra calls and addition of 
1446         reference_vars_info field for FUNCTION_DECLS.
1447         * tree-pass.h: Added passes.
1448         * tree-sra.c: (sra_init_cache): New function.
1449         (sra_insert_before, sra_insert_after) Made public.
1450         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
1451         and made public.
1452         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
1453         aliasing. (may_alias_p): Added code to use type escape analysis to
1454         improve alias sets.
1455         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
1456         code to prune clobbers of static variables based on information
1457         produced in ipa-reference pass.  Changed call clobbering so that
1458         statics are not marked as clobbered if the call does not clobber
1459         them.
1460
1461 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
1462
1463         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
1464         too.
1465
1466 2005-07-16  Eric Botcazou <ebotcazou@libertysurf.fr>
1467
1468         * doc/install.texi (*-*-solaris2*): Document recommended version
1469         of GNU binutils and mention GNU linker problem on Solaris 10.
1470
1471 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
1472
1473         PR c/22421
1474         * c-decl.c (c_build_bitfield_integer_type): New function.
1475         (finish_struct): Call it.
1476         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
1477
1478 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1479
1480         * c-typeck.c (digest_init): Call 'convert_for_assignment'
1481         before returning.
1482
1483 2005-07-16  Jan Hubicka  <jh@suse.cz>
1484
1485         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
1486         (scale_bbs_frequencies_int): Watch roundoff errors.
1487         * predict.c (return_prediction): Initialize return_stmt.
1488
1489 2005-07-16  Jan Hubicka  <jh@suse.cz>
1490
1491         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
1492         after RTL profiling.
1493
1494 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
1495
1496         PR middle-end/22398
1497         * fold-const.c (build_range_check): Convert high/low to etype
1498         if we are only comparing against exp.
1499
1500 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
1501
1502         Fix PR tree-optimization/22376
1503         * tree-ssa-structalias.c (build_constraint_graph): We really meant
1504         special var here.
1505         (need_to_solve): New function.
1506         (compute_points_to_sets): Use it.
1507         
1508 2005-07-15  Jan Hubicka  <jh@suse.cz>
1509
1510         * cfg.c (update_bb_profile_for_threading): More diagnostic.
1511         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
1512
1513 2005-07-15  Richard Guenther  <rguenther@suse.de>
1514
1515         * c-common.c (handle_flatten_attribute): New function.
1516         Add flatten function attribute.
1517         * doc/extend.texi: Document flatten function attribute.
1518         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
1519         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
1520         New functions.
1521         (cgraph_decide_inlining): Handle functions with flatten
1522         attribute.
1523
1524 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
1525
1526         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
1527         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
1528         UNSPEC_XCHG, UNSPEC_AND): New.
1529         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
1530         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
1531         * config/rs6000/sync.md (FETCHOP): New code macro.
1532         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
1533         New code attrs.
1534         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
1535         (sync_compare_and_swap<mode>): Same.
1536         (sync_lock_test_and_set<mode>): Same.
1537         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
1538         for QImode and HImode, and not PPC405.
1539         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
1540         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
1541         (sync_<fetchop>{si,di}_internal): New.
1542         (sync_nand{si,di}_internal): New.
1543         (sync_old_<fetchop>{si,di}_internal): New.
1544         (sync_old_nand{si,di}_internal): New
1545         (sync_new_<fetchop>{si,di}_internal): New.
1546         (sync_new_nand{si,di}_internal): New.
1547         (atomic_and{si,di}): New.
1548         (sync_new_nand{si,di}_internal): New.
1549         (atomic_and{si,di}): New.
1550         (sync_add<mode>_internal): Delete.
1551         (sync_addshort_internal): Use unspec instead of unspec_volatile.
1552         (sync_sub<mode>_internal): Delte.
1553         (sync_subshort_internal): New.
1554         (sync_andsi_internal): Use unspec instead of unspec_volatile.
1555         (sync_anddi_internal): Delete.
1556         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
1557         (sync_booldi_internal): Delete.
1558         (sync_boolc<mode>_internal): Delete.
1559         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
1560         (sync_boolc<mode>_internal2): Delete.
1561         (sync_boolcc<mode>_internal): Delete.
1562         (isync, lwsync): Use unspec instead of unspec_volatile.
1563         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
1564         Revert UNSPEC_VOLATILE.
1565         (rs6000_split_atomic_op): New.
1566         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
1567
1568 2005-07-14  Eric Christopher  <echristo@redhat.com>
1569
1570         * config/mips/mips.c (mips_canonicalize_comparison): Cast
1571         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
1572
1573 2005-07-14  Eric Christopher  <echristo@redhat.com>
1574
1575         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
1576
1577 2005-07-14  Steven Bosscher  <stevenb@suse.de>
1578
1579         PR tree-optimization/22230
1580         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
1581         the computation of the four cross productions for "range op range".
1582
1583 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
1584             Ulrich Weigand  <uweigand@de.ibm.com>
1585
1586         PR target/20126
1587         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
1588         in some insn.
1589
1590 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
1591
1592         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
1593
1594 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
1595
1596         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
1597
1598 2005-07-14  Richard Guenther  <rguenther@suse.de>
1599
1600         PR middle-end/22347
1601         * config/i386/i386-protos.h (ix86_function_value): Change
1602         prototype to match new target hook.
1603         * config/i386/i386.c (ix86_value_regno): Change prototype
1604         to take extra type argument.
1605         (TARGET_FUNCTION_VALUE): Define.
1606         (ix86_function_ok_for_sibcall): Pass extra argument to
1607         ix86_value_regno, check return slot rtx for exact match.
1608         (ix86_function_value): Take extra parameter.  Dispatch to
1609         ix86_value_regno with fndecl/fntype as provided.
1610         (ix86_value_regno): Handle extra type argument.
1611         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
1612
1613         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
1614         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
1615         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
1616         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
1617         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
1618
1619 2005-07-14  Richard Guenther  <rguenther@suse.de>
1620
1621         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
1622         * calls.c (expand_call): Pass fntype to hard_function_value.
1623         (emit_library_call_value_1): Likewise.
1624         * explow.c: Include target.h.
1625         (hard_function_value): Take extra argument, the fntype.
1626         Use new target hook for function_value.
1627         * expr.h (hard_function_value): Change prototype.
1628         * function.c (aggregate_value_p): Pass 0 as fntype to
1629         hard_function_value.
1630         (assign_parms): Use new target hook for function_value.
1631         Pass 0 as fntype to hard_function_value.
1632         (expand_function_end): Likewise.
1633         * reg-stack.c: Include target.h.
1634         (stack_result): Use new target hook for function_value.
1635         * target-def.h: New target hook function_value.
1636         * target.h: Likewise.
1637         * targhooks.c (default_function_value): New function.
1638         * targhooks.h (default_function_value): Declare.
1639
1640 2005-07-13  Ian Lance Taylor  <ian@airs.com>
1641
1642         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1643
1644 2005-07-14  Jan Hubicka  <jh@suse.cz>
1645
1646         * tree-dfa.c (dump_variable): Use default_def function.
1647         * tree-ssa-alias.c (dump_points_to_info): Likewise.
1648         * tree-ssa.c (verify_use): Likewise.
1649         * tree-ssanames.c (release_ssa_name): Likewise.
1650         * tree-tailcall.c (eliminate_tail_call): Likewise.
1651         (tree_optimize_tail_calls_1): Likewise.
1652         * tree-vrp.c (get_value_range): Likewise.
1653
1654 2005-07-14  Ben Elliston  <bje@au.ibm.com>
1655
1656         * gcc.c (main): Compare language[0] with '*' when iterating over
1657         the infiles.
1658
1659 2005-07-13  Adrian StraeĀ½tling  <straetling@de.ibm.com>
1660
1661         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
1662         "s390_emit_compare".  Add handling of CCZ1mode.
1663         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
1664         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
1665         checking.
1666         (s390_branch_condition_mask): Add CCZ1mode handling.
1667         * config/s390/s390.md: ("seq", "*seq"): New pattern.
1668         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
1669         Use CCZ1mode instead of CCZmode.
1670         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
1671
1672 2006-07-13  Adrian StraeĀ½tling  <straetling@de.ibm.com>
1673
1674         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
1675         pattern.
1676         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
1677
1678 2005-07-13  Eric Christopher  <echristo@redhat.com>
1679
1680         * config/mips/mips.c (mips_canonicalize_comparison): New.
1681         (mips_emit_int_relational): Use.
1682
1683 2005-07-13  Eric Christopher  <echristo@redhat.com>
1684
1685         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
1686         static extra parts.
1687         * config/s390/s390.md: Include tpf.md. Move tpf specific
1688         patterns...
1689         * config/s390/tpf.md: To here.
1690         * config/s390/s390.opt: Move tpf specific options...
1691         * config/s390/tpf.opt: to here. Add mmain option.
1692         * config/s390/tpf-unwind.h: Remove unnecessary defines.
1693         * config/s390/tpf.h: Rewrite.
1694
1695 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1696
1697         * doc/tm.texi: Remove @xref{Cross-profiling}.
1698
1699 2005-07-13  Jeff Law  <law@redhat.com>
1700
1701         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
1702         expressions, test their _DECL operands for pointer equality rather
1703         than using operand_equal_p.
1704
1705 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1706
1707         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
1708         (TARGET_POSIX_IO): This.
1709         * config/darwin.h: Likewise.
1710         * config/freebsd.h: Likewise.
1711         * config/linux.h: Likewise.
1712         * config/lynx.h: Likewise.
1713         * config/netbsd.h: Likewise.
1714         * config/rs6000/linux64.h: Likewise.
1715         * config/rs6000/linux.h: Likewise.
1716         * config/s390/tpf.h: Likewise.
1717         * config/sh/embed-elf.h: Likewise.
1718         * config/sparc/linux64.h: Likewise.
1719         * config/sparc/linux.h: Likewise.
1720         * config/svr4.h: Likewise.
1721         * gcov-io.h: Likewise.
1722
1723         * doc/tm.texi: Updated.
1724
1725         * libgcov.c (create_file_directory): Defined only if
1726         TARGET_POSIX_IO is defined.
1727         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
1728         is defined.
1729
1730 2005-07-13  Jan Hubicka  <jh@suse.cz>
1731
1732         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
1733
1734 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
1735
1736         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
1737         structure as argument.
1738
1739 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
1740
1741         PR tree-optimization/21921
1742         * tree-iterator.c (tsi_link_before): Support the case when
1743         tsi_end_p (tsi) == true.
1744
1745 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
1746
1747         PR tree-optimization/22442
1748         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
1749         correctly.
1750
1751 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
1752
1753         PR rtl-optimization/20376
1754         * toplev.c (process_options): Enable -fweb and -frename-registers when
1755         unrolling.
1756         * doc/invoke.texi: Update the information about when -fweb and
1757         -frename-registers are enabled.
1758
1759 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
1760
1761         PR tree-opt/21840
1762         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
1763         if *rhs_p is not a SSA_NAME.
1764
1765 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
1766         
1767         Fix PR tree-optimization/22422 
1768         * tree-ssa-structalias.c (struct variable_info): Add flag for
1769         special vars.
1770         (get_varinfo): Now a static function.
1771         (new_varinfo): init has_union and is_special_var to false.
1772         (solution_set_add): Check has_union.
1773         (do_da_constraint): Move temporary variable so it gets reset
1774         properly.
1775         Also check for special variable.
1776         (do_ds_constraint): Ditto.
1777         (do_sd_constraint): Ditto.
1778         (do_structure_copy): Check for special variable.
1779         (find_func_aliases): Ditto.
1780         (init_base_vars): Set special vars properly.    
1781
1782 2005-07-13  Jan Hubicka  <jh@suse.cz>
1783
1784         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
1785         do unit-at-a-time.
1786
1787         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
1788         (get_expr_operands): Fix thinko wrt flags and subvars.
1789
1790         PR tree-optimize/22379
1791         * tree-inline.c (expand_call_inline): Do not output sorry in early
1792         inlining.
1793
1794 2005-07-12  Dale Johannesen  <dalej@apple.com>
1795
1796         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
1797
1798 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
1799
1800         PR bootstrap/21704
1801         * host-linux.h: Include limits.h.
1802
1803 2005-07-12  Dale Johannesen  <dalej@apple.com>
1804
1805         * expr.c (compress_float_constant):  Add cost check.
1806         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
1807
1808 2005-07-12  Dale Johannesen  <dalej@apple.com>
1809
1810         * gcc.target/i386/compress-float-sse.c:  New.
1811         * gcc.target/i386/compress-float-sse-pic.c:  New.
1812         * gcc.target/i386/compress-float-387.c:  New.
1813         * gcc.target/i386/compress-float-387-pic.c:  New.
1814         * gcc.dg/compress-float-ppc.c:  New.
1815         * gcc.dg/compress-float-ppc-pic.c:  New.
1816
1817 2005-07-12  Eric Christopher  <echristo@redhat.com>
1818
1819         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
1820         static extra parts.
1821         * config/s390/s390.md: Include tpf.md. Move tpf specific
1822         patterns...
1823         * config/s390/tpf.md: To here.
1824         * config/s390/s390.opt: Move tpf specific options...
1825         * config/s390/tpf.opt: to here. Add mmain option.
1826         * config/s390/tpf-unwind.h: Remove unnecessary defines.
1827         * config/s390/tpf.h: Rewrite.
1828
1829 2005-07-12  Eric Christopher  <echristo@redhat.com>
1830
1831         * gcc.c (struct infile): Update comment for language.
1832         (main): Rewrite input file resetting code.
1833
1834 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
1835
1836         PR tree-opt/22335
1837         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
1838         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
1839         (lookup_avail_expr): Use constant_boolean_node instead
1840         of boolean_false_node/boolean_true_node.
1841
1842 2005-07-12  Ben Elliston  <bje@au.ibm.com>
1843
1844         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
1845         and use it when printing num_edges.
1846
1847 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
1848
1849         * doc/extend.texi (Blackfin Built-in Functions): New section.
1850         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
1851         @opindex.
1852
1853 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
1854
1855         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
1856         s/cmpstrsi/cmpstrnsi
1857         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
1858         'cmpstrnsi'.
1859         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
1860         (init_optabs): Initialize cmpstrn_optab.
1861         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
1862         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
1863         * expr.c: (enum insn_code cmpstrn_optab): Declare.
1864         * config/i386/i386.md: s/cmpstr/cmpstrn
1865         * config/c4x/c4x.md: s/cmpstr/cmpstrn
1866         * doc/md.texi: Update documentation.
1867
1868 2005-07-11  Richard Henderson  <rth@redhat.com>
1869
1870         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
1871         build_va_arg_indirect_ref.
1872         (alpha_gimplify_va_arg): Likewise.
1873         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
1874         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
1875         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
1876         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1877         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1878         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
1879         Likewise.
1880         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1881
1882 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
1883
1884         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
1885         * passes.c (init_optimization_passes): Add pass_empty_loop.
1886         * tree-pass.h (pass_empty_loop): Declare.
1887         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
1888         try_remove_empty_loop, remove_empty_loops): New functions.
1889         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
1890         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
1891
1892 2005-07-12  Peter Barada  <peter@the-baradas.com>
1893
1894         PR middle-end/16719
1895         PR middle-end/18421
1896         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
1897         in address registers.
1898         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
1899         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
1900         alternative of addsi3_5200.
1901
1902 2005-07-11  Ian Lance Taylor  <ian@airs.com>
1903
1904         * config/mips/mips.md (ffs<mode>2): Remove.
1905
1906 2005-07-11  Ian Lance Taylor  <ian@airs.com>
1907
1908         * doc/tree-ssa.texi (Cleanups): Improve description of
1909         TRY_FINALLY_EXPR.
1910         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
1911
1912 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
1913         
1914         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
1915         * tree.h (DECL_ARGUMENT_FLD): New macro.
1916
1917 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
1918         
1919         Fix PR tree-optimization/22404
1920
1921         * tree-ssa-structalias.c (create_variable_info_for): Use
1922         correct offset.
1923
1924 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
1925
1926         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
1927         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
1928         for second comparison operand.
1929         * config/bfin/predicates.md (reg_or_const_int_operand): New.
1930
1931         * config/bfin/bfin.md (define_attr "type"): Add "sync".
1932         (define_insn_reservation "alu"): Likewise.
1933         (csync, ssync): Now of type sync.
1934         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
1935         -mcsync-anomaly -mspecld-anomaly.
1936         * config/bfin/bfin.opt (mcsync): Remove.
1937         (mcsync-anomaly, mspecld-anomaly): Add.
1938         * config/bfin/bfin.c: Include "insn-codes.h".
1939         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
1940         (TARGET_DEFAULT_TARGET_FLAGS): New.
1941         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
1942
1943 2005-07-11  Steven Bosscher  <stevenb@suse.de>
1944
1945         * basic-block.h: Give the BB flags enum a name, bb_flags.
1946         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
1947         * cfgcleanup.c (enum bb_flags): Remove here.
1948         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
1949         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
1950         (update_forwarder_flag): Likewise.
1951         (thread_jump): Likewise.
1952         (try_forward_edges): Likewise.
1953         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
1954         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
1955         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
1956
1957 2005-07-11  Richard Guenther  <rguenther@suse.de>
1958
1959         * config/i386/i386.opt: New target option -msseregparm.
1960         * config/i386/i386.c (override_options): Error out for
1961         -msseregparm but no SSE support.
1962         (ix86_function_sseregparm): Check for global sseregparm.
1963         * doc/invoke.texi: Document -msseregparm.
1964
1965 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1966
1967         * config.gcc (m32r-*-linux*): Use the default extra_parts.
1968         (m32rle-*-linux*): Ditto.
1969
1970 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
1971
1972         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
1973         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
1974         bytes.
1975
1976 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1977
1978         PR middle-end/22239
1979         PR target/20126
1980         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
1981         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
1982
1983 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
1984
1985         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
1986         (varmap): Heapify varmap.
1987         (constraints): Heapify constraints.
1988         (struct constraint_graph): Heapify succs and preds.
1989         (constraint_vec_find): Update for heapification.
1990         (constraint_set_union): Ditto.
1991         (insert_into_complex): Ditto.
1992         (constraint_edge_vec_find): Ditto.
1993         (erase_graph_self_edge): Ditto.
1994         (add_graph_edge): Ditto.
1995         (get_graph_weights): Ditto.
1996         (merge_graph_nodes): Ditto.
1997         (build_constraint_graph): Ditto.
1998         (topo_visit): Ditto.
1999         (solve_graph): Ditto.
2000         (create_variable_info_for): Ditto.
2001         (init_base_vars): Ditto.
2002         (delete_points_to_sets): Free graph, varmap, and complex constraints.
2003         (condese_varmap_nodes): Free complex vector.
2004         (clear_edges_for_node): Clear succs and preds vector.
2005
2006 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
2007
2008         * tree-ssa-structalias.c (update_alias_info): Change counting of
2009         references to not include vdefs.
2010         
2011 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
2012
2013         * tree-ssa-alias.c (free_used_part_map): Add missing free.
2014         (up_insert): Ditto.
2015
2016 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2017
2018         * pa.c (pa_commutative_p): Make PLUS commutative when
2019         TARGET_NO_SPACE_REGS is true.
2020
2021 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
2022
2023         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
2024         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
2025         * tree-dfa.c (dump_subvars_for): New.
2026         (debug_subvars_for): New.
2027         (dump_variable): Show subvariables if VAR has them.
2028         * tree-flow-inline.h (get_subvar_at): New.
2029         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
2030         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
2031         Update all users.
2032         (struct subvar): Change fields offset and size to unsigned
2033         HOST_WIDE_INT.
2034         (dump_subvars_for): Declare.
2035         (debug_subvars_for): Declare.
2036         (get_subvar_at): Declare.
2037         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
2038         to unsigned HOST_WIDE_INT *.
2039         (overlap_subvar): Likewise.
2040         * tree-gimple.c (is_gimple_reg): Always return false for
2041         SFTs and memory tags.
2042         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
2043         Update all callers.
2044         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
2045         (compute_may_aliases): Call compute_points_to_sets.
2046         (collect_points_to_info_for): Remove.
2047         (compute_points_to_and_addr_escape): Remove.
2048         (delete_alias_info): Call delete_points_to_sets.
2049         (compute_flow_sensitive_aliasing): If the call to
2050         find_what_p_points_to returns false, call set_pt_anything.
2051         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
2052         (set_pt_anything): Clear pi->pt_vars.
2053         (set_pt_malloc): Remove.
2054         (merge_pointed_to_info): Remove.
2055         (add_pointed_to_expr): Remove.
2056         (add_pointed_to_var): Remove.
2057         (collect_points_to_info_r): Remove.
2058         (is_escape_site): Make extern.
2059         (create_sft): New.
2060         (create_overlap_variables_for): Call it.
2061         * tree-ssa-copy.c (merge_alias_info): Never merge
2062         flow-sensitive alias information.
2063         * tree-ssa-operands.c (get_expr_operands): Adjust variables
2064         offset and size to be unsigned HOST_WIDE_INT.
2065         (add_to_addressable_set): Rename from note_addressable.
2066         Set TREE_ADDRESSABLE as the variables are added to the set.
2067         Update all users.
2068         (add_stmt_operand): Do not try to micro-optimize unmodifiable
2069         operands into VUSEs when adding V_MAY_DEFs for members in an
2070         alias set.
2071         * tree-ssa-operands.h (add_to_addressable_set): Declare.
2072         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
2073         (struct variable_info): Add bitfield is_heap_var.
2074         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
2075         (new_var_info): Initialize is_heap_var.
2076         (get_constraint_for): Add HEAP variables to the symbol table.
2077         Mark them with is_heap_var.
2078         (update_alias_info): New.  Taken mostly from the old
2079         compute_points_to_and_addr_escape.
2080         (handle_ptr_arith): New.
2081         (find_func_aliases): Call update_alias_info.
2082         Call handle_ptr_info for tcc_binary expressions.
2083         Call mark_stmt_modified.
2084         (create_variable_info_for): If DECL has subvars, do not create
2085         variables for its subvars.  Always add all the fields.
2086         (set_uids_in_ptset): If the solution includes ANYOFFSET and
2087         SFTs, then add all the SFTs of the structure.
2088         If VI->DECL is an aggregate with subvariables, add the SFT at
2089         VI->OFFSET.
2090         (find_what_p_points_to): If VI is an artificial variable,
2091         translate to bitfields in SSA_NAME_PTR_INFO.
2092         If the solution is empty, set pi->pt_vars to NULL
2093         (init_base_vars): Create ANYOFFSET.
2094         (compute_points_to_sets): Rename from create_alias_vars.
2095         Make extern.
2096         (pass_build_pta): Remove.
2097         (delete_points_to_sets): Rename from delete_alias_vars.
2098         (pass_del_pta): Remove.
2099         * tree-ssa-structalias.h (struct alias_info): Move from
2100         tree-ssa-alias.h.
2101         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
2102         NUM_REFERENCES_SET): Likewise.
2103         (compute_points_to_sets, delete_points_to_sets): Declare.
2104
2105 2005-07-09  Richard Henderson  <rth@redhat.com>
2106
2107         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
2108         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
2109         alpha_split_lock_test_and_set_12): New functions.
2110         * config/alpha/alpha-protos.h: Update.
2111         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
2112         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
2113         * config/alpha/sync.md (I12MODE): New.
2114         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
2115         (sync_<fetchop_name><I48MODE>): Likewise.
2116         (sync_nand<I48MODE>): Likewise.
2117         (sync_old_<fetchop_name><I48MODE>): Likewise.
2118         (sync_new_<fetchop_name><I48MODE>): Likewise.
2119         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
2120         (sync_compare_and_swap<I48MODE>): Likewise.
2121         (sync_lock_test_and_set<I48MODE>): Likewise.
2122         (sync_compare_and_swap<I12MODE>): New.
2123         (sync_compare_and_swap<I12MODE>_1): New.
2124         (sync_lock_test_and_set<I12MODE>): New.
2125         (sync_lock_test_and_set<I12MODE>_1): New.
2126
2127 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
2128
2129         PR 21356
2130         PR 22332
2131         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
2132
2133 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
2134
2135         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
2136         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
2137
2138 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
2139
2140         PR target/21656
2141         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
2142
2143 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
2144
2145         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
2146         memory_operand constraint.
2147         (store_conditional_<mode>): Same.
2148         (sync_compare_and_swap<mode>): Same.
2149         (sync_lock_test_and_set<mode>): Same.
2150
2151 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
2152
2153         Rewrite PIC support to more closely model actual instructions.
2154         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
2155         (cris_symbol): Remove prototypes for removed functions.
2156         (cris_pic_symbol_type_of, cris_valid_pic_const)
2157         (cris_expand_pic_call_address): Prototypes for new functions.
2158         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
2159         variable.
2160         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
2161         modifiers.
2162         <case ':'>: Add case for new punctuation character.
2163         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
2164         emitting (extra) PIC modifier.
2165         <case UNSPEC>: Do not assert for PLT.
2166         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
2167         (cris_expand_prologue, cris_expand_epilogue): Check
2168         for pic_offset_table_rtx usage instead of taking
2169         current_function_uses_pic_offset_table as the final word.
2170         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
2171         Remove flag_pic difference.
2172         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
2173         the moral equivalents of...
2174         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
2175         functions.
2176         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
2177         (cris_handle_option): Mark ARG as unused.
2178         (cris_expand_pic_call_address): New worker function for "call",
2179         "call_value".
2180         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
2181         output PIC constructs here.
2182         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
2183         as symbol-specific modifers, not whole or part of operands.
2184         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
2185         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
2186         constants and flag_pic.
2187         (CONSTANT_INDEX_P): Adjust for new functions.
2188         (enum cris_pic_symbol_type): New helper type.
2189         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
2190         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
2191         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
2192         define_constants.
2193         ("movsi"): Emit actual instructions for GOT and relative access.
2194         ("*movsi_got_load"): New pattern to set up the register holding
2195         the GOT pointer.
2196         ("*movsi_internal"): Operand 1 is not a plain general_operand.
2197         Adjust FIXME for 'S'.
2198         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
2199         Use "movs" for -fpic cases.
2200         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
2201         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
2202         ("call", "call_value"): Just call cris_expand_pic_call_address for
2203         PIC addresses.
2204         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
2205         Remove special pattern.
2206         ("*expanded_call_side", "*expanded_call_value_side"): New
2207         patterns.
2208         (gotplt-to-plt, gotplt-to-plt-side-call)
2209         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
2210         peephole2:s.
2211         * config/cris/cris/predicates.md
2212         ("cris_general_operand_or_gotless_symbol"): Remove unused
2213         predicate.
2214         ("cris_general_operand_or_symbol"): Adjust for new functions.
2215
2216 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
2217
2218         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
2219
2220 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
2221
2222         * Makefile.in (TREE_H): Add treestruct.def.
2223         (c-decl.o): Add pointer-set.h
2224         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
2225         visibility on regular DECL's.
2226         (merge_decls): Fix the copying of decl nodes of various types for
2227         the new structures.  Don't update RTL, section name, weak status,
2228         etc, on DECL's without RTL.     
2229         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
2230         Don't check volatile on non-variable types.
2231         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
2232         to check whether we have seen arguments.
2233         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
2234         flag is checked before field (flag is common, field is not).    
2235         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
2236         TS_DECL_COMMON could have an origin.
2237         (add_location_or_const_value_attribute): Don't check section name
2238         on non-var/function decls.
2239         (dwarf2out_var_location): Reverse order of tests.
2240         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
2241         with DECL_WRTL_CHECK.
2242         * expmed.c (make_tree): rtl is now in decl_with_rtl.
2243         * fold-const.c (fold_binary): Don't check weakness on
2244         non-var/function decls.
2245         (tree_expr_nonzero_p): Ditto.
2246         (fold_checksum_tree): Use tree_decl_extra as sizeof
2247         buffer.
2248         * ggc-page.c (extra_order_size_table): Add sizes for
2249         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
2250         tree_field_decl.
2251         * gimplify.c (gimplify_bind_expr): Only set
2252         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
2253         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
2254         without RTL.
2255         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
2256         * langhooks.h (init_ts). New langhook.
2257         * passes.c (rest_of_decl_compilation): Reverse order of tests.
2258         * print-tree.c (print_node): Update to only print fields that
2259         exist in the structures the passed decl has.
2260         * toplev.c (wrapup_global_declarations): Don't reset
2261         DECL_DEFER_OUTPUT on DECL's that don't contain it.
2262         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
2263         * tree-inline.c (remap_decl): Ditto.
2264         * tree-outof-ssa.c (create_temp): Reverse order of tests.
2265         * tree-pretty-print.c (print_declaration): Don't print
2266         DECL_REGISTER on things that don't contain it.
2267         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
2268         non-var/function decls.
2269         * tree.c (tree_contains_struct): New structure.
2270         (init_priority_for_decl): New hashtable.
2271         (tree_int_map): New structure.
2272         (tree_int_map_eq): New function.
2273         (tree_int_map_marked_p): Ditto.
2274         (tree_int_map_hash): Ditto.
2275         (tree_map): Move to tree.h.
2276         (tree_map_eq): Externalize.
2277         (tree_map_hash): Ditto.
2278         (tree_map_marked_p): Ditto.
2279         (init_ttree): Set up tree_contains_struct and call langhook.
2280         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
2281         (tree_code_size): Update for new structures.
2282         (tree_node_structure): Update for new structures.
2283         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
2284         without the field.
2285         (copy_node_stat):  Copy init priority.
2286         (build_decl_stat): Ditto for visibility.
2287         (ts_enum_names): New.
2288         (tree_contains_struct_check_failed): New function.
2289         (decl_init_priority_lookup): Ditto.
2290         (decl_init_priority_insert): Ditto.
2291         * treestruct.def: New file.
2292         * tree.h (CODE_CONTAINS_STRUCT): New macro.
2293         (CONTAINS_STRUCT_CHECK): Ditto.
2294         (tree_contains_struct_check_failed): New prototype.
2295         (DECL_CHECK): Removed.
2296         (DECL_MINIMAL_CHECK): New.
2297         (DECL_COMMON_CHECK): Ditto.
2298         (DECL_WRTL_CHECK): Ditto.
2299         (DECL_NON_COMMON_CHECK): Ditto.
2300         (DECL_WITH_VIS_CHECK): Ditto.
2301         (VAR_OR_FUNCTION_DECL_P): Ditto
2302         (struct tree_decl_minimal): New structure.
2303         (struct tree_decl_common): Ditto.
2304         (struct tree_decl_with_rtl): Ditto.
2305         (struct tree_decl_with_vis): Ditto.
2306         (struct tree_decl_non_common): Ditto.
2307         (struct tree_field_decl): Ditto.
2308         (struct tree_parm_decl): Ditto.
2309         (struct tree_var_decl): Ditto.
2310         (struct tree_function_decl): Ditto.
2311         (struct tree_const_decl): Ditto.
2312         (struct tree_result_decl): Ditto.
2313         (union tree_node): Add new structures.
2314         * var-tracking.c (track_expr_p): Reverse order of tests.
2315         
2316         * doc/c-tree.texi: Add documentation on DECL node internal structure.
2317
2318 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
2319
2320         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
2321         * system.h: Poison FINALIZE_PIC.
2322         * doc/tm.texi (FINALIZE_PIC): Remove.
2323
2324 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
2325
2326         PR tree-opt/22329
2327         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
2328         to the correct type if we have a MODIFY_EXPR.
2329
2330 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
2331
2332         PR tree-optimization/22360
2333         * tree.c (upper_bound_in_type): Fix calculations for casting
2334         to a non-wider signed type and casting a signed value to a
2335         wider unsigned type.
2336         (lower_bound_in_type): Fix calculations for casting to a
2337         non-wider signed type.
2338
2339         PR tree-optimization/20139
2340         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
2341         release_defs.
2342         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
2343         fold_cond_expr_cond.
2344         * tree-ssanames.c (release_defs): Assert in_ssa_p.
2345         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
2346
2347 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
2348
2349         PR tree-opt/22356
2350         * tree-complex.c (expand_complex_libcall): Produce
2351         REALPART_EXPR/IMAGPART_EXPR with the correct type.
2352
2353 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
2354
2355         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
2356         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
2357         b" assert and inserted fastpath code for this case.
2358         (bitmap_ior): Removed "a != b" assert.
2359
2360 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2361
2362         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
2363         (ENDFILE_SPEC): Likewise.
2364         * config/m32r/m32r.h (ASM_SPEC): Likewise.
2365
2366         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
2367         a large stack frame at epilogue.
2368
2369 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
2370
2371         * final.c: Include sdbout.h when required.
2372
2373 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
2374
2375         * config.gcc (*-*-darwin*): Only one target-specific header file
2376         for generic darwin.
2377         (powerpc-*-darwin*): Add version-specific header files.
2378         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
2379         * config.in: Regenerate.
2380         * configure: Regenerate.
2381         * gcc.c: Include xregex.h.
2382         (version_compare_spec_function): New.
2383         (spec_function): Add version-compare.
2384         (replace_outfile_spec_function): Reformat comment.
2385         (compare_version_strings): New.
2386         * config/darwin-c.c (version_as_macro): New.
2387         (builtin_define): New.
2388         (darwin_cpp_builtins): New.
2389         * config/darwin-protos.h (darwin_cpp_builtins): New.
2390         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
2391         (LIB_SPEC): Make unconditional, update comment.
2392         (TARGET_C99_FUNCTIONS): Define.
2393         * config/darwin.opt: Sort.
2394         (mmacosx-version-min=): New.
2395         * config/darwin7.h: Delete.
2396         * config/darwin8.h: Delete.
2397         * config/i386/darwin.h (): Call darwin_cpp_builtins.
2398         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
2399         (TARGET_C99_FUNCTIONS): Define.
2400         * config/rs6000/darwin7.h: New.
2401         * config/rs6000/darwin8.h: New.
2402         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
2403         (-mmacosx-version-min): Document.
2404
2405 2005-07-07  Ian Lance Taylor  <ian@airs.com>
2406
2407         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
2408
2409 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
2410
2411         PR middle-end/22239
2412         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
2413
2414 2005-07-07  Khem Raj  <kraj@mvista.com>
2415
2416         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
2417         in bytes, not words.
2418
2419 2005-07-07  Paul Brook  <paul@codesourcery.com>
2420
2421         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
2422         DEFAULT_FUNCTION_ARG_PADDING to upward.
2423
2424 2005-07-07  Richard Henderson  <rth@redhat.com>
2425
2426         * function.c (locate_and_pad_parm): Record parameter alignment in
2427         stack_alignment_needed.
2428
2429 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
2430
2431         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
2432         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
2433         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
2434         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
2435         (define_attr "type"): Add isync, sync, load_l, store_c.
2436         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
2437         Create scratch volatile MEM.
2438         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
2439         sync.
2440         (load_locked_<mode>): New.
2441         (store_conditional_<mode>): New.
2442         (sync_compare_and_swap<mode>): Replace with splitter.
2443         (sync_lock_test_and_set<mode>): Replace with splitter.
2444         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
2445         and UNSPECV_ISYNC.
2446         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
2447         is ics.  Attribute isync.
2448         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
2449         lwsync.
2450         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
2451         and UNSPECV_SYNC_OP.
2452         (emit_unlikely_jump): New.
2453         (emit_load_locked): New.
2454         (emit_store_conditional): New.
2455         (rs6000_split_compare_and_swap): New.
2456         (rs6000_split_lock_test_and_set): New.
2457         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
2458         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
2459         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
2460         rs6000_split_lock_test_and_set): Declare.
2461         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
2462         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
2463         store_c, isync, sync.
2464
2465 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
2466
2467         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
2468         filenames to gtyp-gen.h.
2469         (s-typ-gen): Use it in place of for loops.
2470
2471 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
2472
2473         * hooks.c (hook_bool_rtx_int_false): New function.
2474         * hooks.h (hook_bool_rtx_int_false): Declare.
2475         * target-def.h (TARGET_COMMUTATIVE_P): Define.
2476         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
2477         * target.h (struct gcc_target): Add commutative_p member.
2478         * targhooks.c (hook_bool_rtx_commutative_p): New function.
2479         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
2480         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
2481         (pa_commutative_p): New function.
2482         * jump.c (target.h): Include.
2483         (rtx_renumbered_equal_p): Use targetm.commutative_p.
2484         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
2485
2486 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
2487
2488         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
2489         (s390_expand_setmem): New.
2490         * config/s390/s390.c: Likewise. 
2491         (print_shift_count_operand): Truncate to 12 bits instead of 6.
2492         Adapt comments.
2493         * config/s390/s390.md: ("setmem<mode>"): Accept character as
2494         general_operand.  Call new function "s390_expand_setmem".
2495         ("clrmem_long", "*clrmem_long"): Rewrite to ...
2496         ("setmem_long", "*setmem_long"): ... this.
2497
2498 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
2499         
2500         * config/s390/s390.c: (optimization_options): Enable
2501         TARGET_MVCLE at -Os.
2502         * doc/invoke.texi: Document changes in default behaviour.
2503         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
2504
2505 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
2506
2507         * expr.c: (set_storage_via_setmem): Convert opchar to mode
2508         defined by back-end.
2509
2510 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
2511
2512         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
2513         all sets in the pattern.
2514         * config/rs6000/rs6000.md (stack_protect_testsi,
2515         stack_protect_testdi): Likewise.
2516
2517 2005-07-06  Jeff Law  <law@redhat.com>
2518
2519         * tree-vrp.c (simplify_using_ranges): Kill.
2520         (vrp_finalize): Remove call to simplify_using_ranges.
2521         (simplify_stmt_using_ranges): New function extracted from
2522         simplify_using_ranges.
2523         (simplify_div_or_mod_using_ranges): Likewise.
2524         (simplify_abs_using_ranges): Likewise.
2525         (simplify_cond_using_ranges): New function.
2526         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
2527         * tree-ssa-propagate.c (substitute_and_fold): Call
2528         simplify_stmt_using_ranges if we have range information.
2529
2530 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
2531
2532         * config/ia64/ia64.c (ia64_reorg): Check optimize before
2533         ia64_flag_schedule_isns2.
2534
2535         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
2536         reading/writing general registers.
2537         (ia64_function_arg): Revert 2005-06-18 change.
2538
2539 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
2540
2541         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
2542         (legitimize_tls_address): Use gcc_unreachable instead of abort.
2543
2544 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
2545
2546         * function.c (expand_function_end): Revert part of 2005-06-27
2547         patch.  Do sjlj_emit_function_exit_after after return_label.
2548
2549 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
2550
2551         * doc/install.texi (--disable-libssp): New.
2552
2553 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
2554
2555         * doc/invoke.texi: Update -fforce-mem documentation.
2556         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove 
2557         code for -fforce-mem.
2558         * expmed.c: (store_bit_field,store_fixed_bit_field,
2559         extract_bit_field): Ditto.
2560         * expr.c: (convert_move): Ditto.
2561         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
2562         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
2563         emit_conditional_add,expand_float,expand_fix): Ditto.
2564         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
2565         (common_handle_option): Issue warning when -fforce-mem specified.
2566
2567 2005-07-06  Paul Brook  <paul@codesourcery.com>
2568
2569         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
2570         argument is empty.
2571         * configure: Regenerate.
2572
2573 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
2574
2575         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
2576
2577 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
2578
2579         Fix PR tree-optimization/22319
2580         Fix PR tree-optimization/22140
2581         Fix PR tree-optimization/22310
2582
2583         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
2584         variable sized types.
2585         Use correct type for intermediate structure on *a = *b structure
2586         copies.
2587                 
2588 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
2589
2590         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
2591         Remove.
2592         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
2593         (machine_function): Move typedef to...
2594         * config/rs6000/rs6000.c (machine_function): ... here.  Add
2595         varargs_save_offset field.
2596         (rs6000_stack_t): Remove varargs_size field.
2597         (setup_incoming_varargs): Allocate varargs save area using
2598         assign_stack_local, try to make it as small as possible.
2599         Save offset from virtual_stack_vars_rtx to the save area
2600         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
2601         instead of magic 8 when fp word byte size is used.
2602         (rs6000_va_start): Use cfun->machine->varargs_save_offset
2603         instead of -RS6000_VARARGS_SIZE.
2604         (rs6000_stack_info, debug_stack_info,
2605         rs6000_initial_elimination_offset): Remove all traces of
2606         varargs_size.
2607         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
2608         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
2609         RS6000_VARARGS_AREA.
2610
2611 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
2612
2613         PR tree-optimization/21963
2614         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
2615         constant_multiple_of in the same way get_computation_cost_at does.
2616
2617 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
2618
2619         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
2620         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
2621         (gen_compare_reg): If sparc_compare_emitted is set, clear it
2622         and return its previous value.
2623         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
2624         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
2625         constants.
2626         (stack_protect_set, stack_protect_test): New expanders.
2627         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
2628         stack_protect_testdi): New insns.
2629         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
2630         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
2631
2632 2005-07-06  Jeff Law  <law@redhat.com>
2633
2634         * tree-ssa-dce.c (cfg_altered): New global.
2635         (tree_dce_init): Initialize cfg_altered.
2636         (remove_dead_stmt): If we remove an edge in the CFG, then set
2637         CFG_ALTERED.
2638         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
2639         the dominators.
2640
2641 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
2642
2643         * Makefile.in (stamp-collect-ld): Use
2644         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
2645         ./collect-ld if it already exists.
2646         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
2647         Don't remove ./nm if it already exists.
2648
2649 2005-07-05  Devang Patel  <dpatel@apple.com>
2650
2651         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
2652         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
2653         * tree-vectorizer.c (vect_loop_location): New.
2654         (vect_print_dump_info): Use vect_loop_location.
2655         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
2656         (vectorize_loops): Set vect_loop_location.
2657         * tree-vect-analyze.c (vect_analyze_offset_expr, 
2658         vect_determin_vectorization_factor, vect_analyze_operations,
2659         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
2660         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
2661         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
2662         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
2663         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
2664         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
2665         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
2666         vect_analyze_loop): Adjust vect_print_dump_info API.
2667         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
2668         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
2669         vect_finish_stmt_generation, vectorizable_assignment, 
2670         vectorizable_operation, vectorizable_store, vectorizable_load, 
2671         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
2672         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
2673         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
2674         vect_transform_loop): Same.
2675         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
2676         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
2677         Same.
2678
2679 2005-07-05  Randolph Chung  <tausq@debian.org>
2680
2681         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
2682         * configure: Regenerate.
2683         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
2684         (pa_tls_referenced_p): Declare.
2685         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
2686         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
2687         (legitimize_tls_address): New.
2688         (hppa_legitimize_address): Handle TLS addresses.
2689         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
2690         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2691         (emit_move_sequence): Handle TLS addresses.
2692         (pa_encode_section_info): Call default handler to handle common 
2693         sections.
2694         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
2695         (CONSTANT_ADDRESS_P): Reject TLS operands.
2696         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
2697         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
2698         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
2699         (UNSPEC_TLSLE): Define new constants. 
2700         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
2701         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
2702         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
2703         (tie_symbolic_operand, tle_symbolic_operand): New
2704
2705 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
2706
2707         * aclocal.m4: Update macros for autoconf 2.59 style.
2708         * configure.ac: Likewise.
2709
2710 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2711
2712         * pa.c (function_value): Handle small aggregates on 32-bit targets.
2713         (function_arg): Pass small aggregates in general registers on 32-bit
2714         targets.
2715         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
2716
2717 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
2718
2719         * Makefile.in (final.o): Fix dependencies.
2720
2721 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
2722
2723         PR c/22013
2724         PR c/22098
2725         * langhooks.h (struct lang_hooks): Add expr_to_decl.
2726         * langhooks.c (lhd_expr_to_decl): New.
2727         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
2728         New.
2729         (LANG_HOOKS_INITIALIZER): Update.
2730         * tree.c (recompute_tree_invarant_for_addr_expr): Call
2731         expr_to_decl langhook.
2732         * c-tree.h (c_expr_to_decl): Declare.
2733         * c-typeck.c (c_expr_to_decl): New.
2734         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
2735         specially.
2736         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
2737
2738 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
2739
2740         PR c/22308
2741         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
2742         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
2743
2744 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
2745
2746         * Makefile.in: Adjust dependencies.
2747         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
2748         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
2749         * alias.c (rest_of_handle_cfg, pass_cfg): New.
2750         * bb-reorder.c (duplicate_computed_gotos): Make it static.
2751         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
2752         rest_of_compilation.
2753
2754         * bb-reorder.c (gate_duplicate_computed_gotos,
2755         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
2756         rest_of_handle_reorder_blocks, pass_reorder_blocks,
2757         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
2758         pass_partition_blocks): New.
2759         * bt-load.c (gate_handle_branch_target_load_optimize,
2760         rest_of_handle_branch_target_load_optimize,
2761         pass_branch_target_load_optimize): New.
2762         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
2763         pass_jump2): New.
2764         * cfglayout.c (pass_insn_locators_initialize): New.
2765         * cfgrtl.c (pass_free_cfg): New.
2766         * combine.c (gate_handle_combine, rest_of_handle_combine,
2767         pass_combine): New.
2768         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
2769         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
2770         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
2771         * except.c (pass_set_nothrow_function_flags,
2772         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
2773         pass_rtl_eh): New.
2774         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
2775         rest_of_handle_shorten_branches, pass_shorten_branches,
2776         rest_of_clean_state, pass_clean_state): New.
2777         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
2778         rest_of_handle_remove_death_notes, pass_remove_death_notes,
2779         rest_of_handle_life, pass_life, rest_of_handle_flow2,
2780         pass_flow2): New.
2781         * function.c (pass_instantiate_virtual_regs, pass_init_function,
2782         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
2783         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
2784         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
2785         pass_gcse): New.
2786         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
2787         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
2788         pass_rtl_ifcvt, gate_handle_if_after_combine,
2789         rest_of_handle_if_after_combine, pass_if_after_combine,
2790         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
2791         pass_if_after_reload): New.
2792         * integrate.c (pass_initial_value_sets): New.
2793         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
2794         pass_purge_lineno_notes): New.
2795         * mode-switching.c (rest_of_handle_mode_switching,
2796         pass_mode_switching): New.
2797         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
2798         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
2799         pass_loop2): New.
2800         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
2801         pass_loop_optimize): New.
2802         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
2803         pass_sms): New.
2804         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
2805         pass_gcse2): New.
2806         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
2807         pass_postreload_cse): New.
2808         * profile.c (gate_handle_profiling, pass_profiling,
2809         rest_of_handle_branch_prob, pass_branch_prob): New.
2810         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split, 
2811         pass_split_before_regstack, gate_handle_split_before_regstack,
2812         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
2813         rest_of_handle_split_all_insns, pass_split_all_insns): New.
2814         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
2815         pass_stack_regs): New.
2816         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
2817         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
2818         pass_stack_adjustments): New.
2819         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
2820         pass_regrename): New.
2821         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
2822         pass_delay_slots, gate_handle_machine_reorg,
2823         rest_of_handle_machine_reorg, pass_machine_reorg): New.
2824         * rtl.h (extern void purge_line_number_notes): New.
2825         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
2826         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
2827         pass_sched2): New.
2828         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
2829         pass_tracer): New.
2830         * value-prof.c (gate_handle_value_profile_transformations,
2831         rest_of_handle_value_profile_transformations,
2832         pass_value_profile_transformations): New.
2833         * var-tracking.c (gate_handle_var_tracking,
2834         pass_variable_tracking): New.
2835         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
2836
2837         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
2838         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
2839         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
2840         rest_of_handle_old_regalloc, rest_of_handle_regrename,
2841         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
2842         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
2843         rest_of_handle_gcse2, rest_of_handle_regmove,
2844         rest_of_handle_tracer, rest_of_handle_if_conversion,
2845         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
2846         rest_of_handle_web, rest_of_handle_branch_prob,
2847         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
2848         rest_of_handle_jump_bypass, rest_of_handle_combine,
2849         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
2850         rest_of_handle_gcse, rest_of_handle_loop_optimize,
2851         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
2852         rest_of_handle_mode_switching, rest_of_handle_jump,
2853         rest_of_handle_eh, rest_of_handle_stack_adjustments,
2854         rest_of_handle_flow2, rest_of_handle_jump2,
2855         rest_of_handle_peephole2, rest_of_handle_postreload,
2856         rest_of_handle_shorten_branches, rest_of_clean_state,
2857         rest_of_compilation): Remove.
2858
2859         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
2860         * passes.c (dump_flags, in_gimple_form, all_passes,
2861         all_ipa_passes, all_lowering_passes, register_one_dump_file,
2862         register_dump_files, next_pass_1, last_verified, execute_todo,
2863         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
2864         from tree-optimize.c.
2865         (init_optimization_passes): Moved from tree-optimize.c,
2866         adding the RTL optimizations.
2867         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
2868         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
2869         all_ipa_passes, all_lowering_passes, register_one_dump_file,
2870         register_dump_files, next_pass_1, last_verified, execute_todo,
2871         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
2872         init_tree_optimization_passes, ipa_passes): Delete.
2873         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
2874         the RTL dumps.
2875         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
2876         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
2877         from tree.h.
2878         (ipa_passes): Remove.
2879         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
2880         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
2881         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
2882         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
2883         (dump_info_p, dump_flag): Moved to tree-dump.h.
2884         
2885         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
2886         cgraph.c, opts.c.
2887         * passes.c (finish_optimization_passes): Use dump_begin
2888         and dump_end, TDI_end.
2889         (gate_rest_of_compilation): New.
2890         (pass_rest_of_compilation): Use it.
2891         (gate_postreload, pass_postreload): New.
2892         * toplev.c (general_init): Rename init_tree_optimization_passes.
2893         * toplev.h (init_tree_optimization_passes): Rename to
2894         init_optimizations_passes.
2895         * tree-dump.c (dump_flag): Make static.
2896         (dump_files): Remove RTL dumps.
2897         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
2898         pass_cleanup_cfg, pass_free_cfg_annotations,
2899         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
2900         pass_init_datastructures, pass_fixup_cfg): Make non-static.
2901         * tree-pretty-print.c: Include tree-pass.h.
2902         * cgraph.c: Include tree-dump.h.
2903         
2904 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
2905
2906         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
2907         Only fall back to saying it points to readonly memory if
2908         we can't do better.
2909
2910 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2911
2912         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
2913         * config/m32r/m32r.c (m32r_compute_frame_size,
2914         m32r_expand_prologue): Take current_function_profile into
2915         account whenever we reference
2916         current_function_uses_pic_offset_table.
2917         (m32r_finalize_pic): Remove.
2918         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
2919
2920 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
2921
2922         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
2923         instead of $<.  Don't remove ./as if it already exists.
2924
2925 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2926
2927         PR target/21723
2928         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
2929         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
2930         for complex modes when generating code for PA 1.0.
2931         (VALID_FP_MODE_P): New macro.
2932         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
2933         sets for all general and floating point modes.  Align wide floating
2934         point modes to even register boundaries to comply with architectural
2935         requirements.
2936         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
2937         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
2938         (VALID_FP_MODE_P): New macro.
2939         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
2940         sets for all general and floating point modes.  Align wide floating
2941         point modes to even register boundaries to comply with architectural
2942         requirements.
2943
2944 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
2945
2946         * tree-dump.c (dump_files): Initialize dump number for .cgraph
2947         to 0.
2948
2949 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
2950
2951         * tree-ssa-structalias.c: Don't include expr.h.
2952
2953 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
2954
2955         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
2956         comments.
2957
2958 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
2959
2960         Fix PR tree-optimization/22279
2961         
2962         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
2963         correct operator.
2964         
2965 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
2966
2967         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
2968
2969 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
2970
2971         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
2972         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
2973         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
2974         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
2975         config/stormy16/stormy16.c, config/v850/v850.c,
2976         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
2977         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
2978         Avoid "." or "\n" at end of diagnostics and capital letters at
2979         start of diagnostics.
2980         * combine.c, cse.c: Don't translate dump file output.
2981         * toplev.c (print_version): Only translate output if going to
2982         stderr.
2983
2984 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
2985
2986         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
2987         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
2988         typos.
2989
2990 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2991
2992         * pa.c (fix_range): Fix typo in comment.
2993
2994 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
2995
2996         * tree-vrp.c (extract_range_from_assert): Replace
2997         fold (build (...)) with fold_build2.
2998
2999 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3000
3001         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
3002         gcc_gfc_char_table, init_dynamic_gfc_info): New.
3003         (format_types_orig, handle_format_attribute): Add support for
3004         format "gcc_gfc".
3005
3006 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3007
3008         * varasm.c (assemble_variable): Fix format specifier thinko.
3009
3010 2005-07-03  Ira Rosen  <irar@il.ibm.com>
3011
3012         PR tree-optimization/22029 (and 22135)
3013         * tree-pretty-print.c (dump_generic_node): Check that the node is not
3014         a phi node before calling dump_vops.
3015
3016 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3017
3018         * tree-dump.h (dump_string_field): Declare.
3019         * tree-dump.c: Use it instead of dump_string.
3020         (dump_string_field): Make non-static.
3021
3022 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3023
3024         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
3025         up the minimal CFG stuff always when optimize > 0.  Call
3026         split_all_insns_noflow in PIC case if needed.
3027
3028 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3029             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
3030
3031         PR c++/18279
3032         * c-decl.c (c_write_global_declarations): Dump contents of
3033         external scope to.
3034         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
3035         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
3036         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
3037         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
3038         is enabled.
3039         
3040 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
3041
3042         * c-common.h (GCC_DIAG_STYLE): Define.
3043         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
3044         version for format checking to 4.1.
3045         * c-format.c: Include toplev.h after c-common.h.
3046         (enum format_type): Add gcc_tdiag_format_type.
3047         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
3048         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
3049         (format_types_orig): Add gcc_tdiag.
3050         (init_dynamic_diag_info): Support gcc_tdiag formats.
3051         (handle_format_attribute): Likewise.
3052         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
3053         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
3054         version for format checking to 4.1.
3055         (warning0, warning, error, pedwarn, sorry): Use
3056         ATTRIBUTE_GCC_DIAG.
3057         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
3058         (finish_aliases_1): Do not use %qE.
3059         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
3060         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
3061         Correct format bugs.
3062         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
3063         parameter to unsigned HOST_WIDE_INT.
3064         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
3065
3066 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
3067
3068         PR middle-end/21742
3069         * expr.c (write_complex_part): Use adjust_address for MEM.
3070         (read_complex_part): Same.
3071
3072 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
3073
3074         Fix PR tree-optimization/22280
3075
3076         * tree-sra.c (generate_element_init): Remove useless loop.
3077
3078 2005-07-02  Richard Henderson  <rth@redhat.com>
3079
3080         * config/alpha/alpha.c (alpha_legitimize_address): Check for
3081         TLS_MODEL_NONE.
3082         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
3083
3084 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
3085
3086         PR middle-end/14490
3087         * fold-const.c (fold_binary): Handle the return value of
3088         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
3089         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
3090
3091 2005-07-02  Jeff Law  <law@redhat.com>
3092
3093         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
3094         a eliminate type conversion which feeds an equality comparison
3095         if the original type or either operand in the comparison is a
3096         function pointer.
3097
3098 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
3099
3100         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
3101         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
3102         texts.
3103         * config/avr/avr.c: Do not use '`' as left quote.
3104         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
3105         Remove "." from end of diagnostics.  Make diagnostics start with
3106         lowercase letter.
3107
3108 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
3109             Joseph S. Myers  <joseph@codesourcery.com>
3110
3111         * toplev.c (default_tree_printer): Handle setting location with
3112         '+' flag.
3113         * c-objc.common.c (c_tree_printer): Likewise.
3114         * c-format.c (gcc_diag_flag_specs): Add '+'.
3115         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
3116         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
3117         formats.
3118         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
3119         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
3120         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
3121         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
3122         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
3123         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
3124         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
3125         format arguments where %J is used without %D.
3126
3127 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
3128
3129         * gcc.c (LINK_SSP_SPEC): Define.
3130         (link_ssp_spec): New variable.
3131         (LINK_COMMAND_SPEC): Add %(link_ssp).
3132         (static_specs): Add link_ssp_spec.
3133         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
3134         * configure: Rebuilt.
3135         * config.in: Rebuilt.
3136
3137         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
3138         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
3139         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
3140         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
3141         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
3142         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
3143         -0x7008(2) instead of reading __stack_chk_guard variable.
3144         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
3145         number.
3146         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
3147         (stack_protect_set, stack_protect_test): Use *_tls* patterns
3148         if TARGET_THREAD_SSP_OFFSET is defined.
3149         (stack_tls_protect_set_si, stack_tls_protect_set_di,
3150         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
3151
3152         Revert:
3153         2005-06-27  Richard Henderson  <rth@redhat.com>
3154         * libgcc-std.ver (GCC_4.1.0): New.
3155         * libgcc.h (__stack_chk_guard): Declare.
3156         (__stack_chk_fail, __stack_chk_fail_local): Declare.
3157         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
3158         * mklibgcc.in (lib2funcs): Add them.
3159
3160 2005-07-01  Richard Henderson  <rth@redhat.com>
3161
3162         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
3163         void * before struct sigcontext *.
3164         (x86_fallback_frame_state): Likewise.
3165
3166 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
3167
3168         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
3169
3170 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
3171
3172         PR tree-opt/22269
3173         * tree-ssa-reassoc.c (should_transpose): Fix which operand
3174         we check for SSA_NAME for.
3175
3176 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
3177
3178         Fix PR tree-optimization/22071
3179
3180         * tree-ssa-structalias.c (offset_overlaps_with_access): New
3181         function.
3182         (get_constraint_for_component_ref): Use it.
3183
3184 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
3185
3186         PR other/22264
3187         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
3188         print out the last new line.
3189
3190 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
3191
3192         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
3193         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
3194         * config/cris/cris.c (cris_conditional_register_usage): Adjust
3195         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
3196         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
3197         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
3198         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
3199         (enum reg_class): New member CC0_REGS.
3200         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
3201         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
3202         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
3203         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3204         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
3205         Adjust for register now described.
3206
3207 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
3208
3209         PR target/22262
3210         * config/i386/i386.md (stack_protect_test_si,
3211         stack_protect_test_di): Add earlyclobber for scratch 3.
3212         * config/rs6000/rs6000.md (stack_protect_testsi,
3213         stack_protect_testdi): Add earlyclobber for scratch 3,
3214         remove earlyclobber from scratch 4.
3215
3216 Older entries for 2005 can be found in ChangeLog-2005.