OSDN Git Service

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