OSDN Git Service

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