OSDN Git Service

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