OSDN Git Service

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