OSDN Git Service

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