OSDN Git Service

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