OSDN Git Service

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