OSDN Git Service

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