OSDN Git Service

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