OSDN Git Service

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