OSDN Git Service

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