OSDN Git Service

a1b0097cb8dcb2e1ef4f84cb47b5109150a79143
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
2
3         Fix PR tree-optimization/24351
4
5         * tree-ssa-structalias.c (struct variable_info): Add
6         collapsed_into.
7         (get_varinfo_fc): New function to follow collapsing.
8         (new_var_info): Set collapsed_to to NULL.
9         (dump_constraint): Follow collapsing.
10         (build_constraint_graph): Handle collapsing.
11         (do_simple_structure_copy): Return false if something bad
12         happened.
13         (collapse_rest_of_var): New function.
14         (do_structure_copy): Collapse if do_simple_structure_copy returns
15         false.
16         
17 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
18
19         PR middle-end/24589
20         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
21         expressions to a statement list instead of gimplifying them.
22
23 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
24
25         PR rtl-optimization/23585
26         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
27         that can't trap plus a constant integer, if the mode has zero size.
28
29 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
30
31         PR target/24620
32         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
33         as operand 2.
34         ("*insv<mode>_reg_extimm"): Likewise.
35
36 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
37
38         PR c/24329
39         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
40         c_common_type_for_mode returns an unnamed type.
41
42 2005-11-02  Richard Henderson  <rth@redhat.com>
43
44         PR target/9350
45         PR target/24374
46         * dwarf2out.c (dwarf2out_reg_save_reg): New.
47         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
48         * function.c (assign_parms): Use calls.internal_arg_pointer.
49         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
50         code.
51         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
52         (TARGET_CALLS): Add it.
53         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
54         * targhooks.c (default_internal_arg_pointer): New.
55         * targhooks.h (default_internal_arg_pointer): Declare.
56         * tree.h (dwarf2out_reg_save_reg): Declare.
57         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
58         * config/i386/i386.c (dbx_register_map): Add return column.
59         (dbx64_register_map, svr4_dbx_register_map): Likewise.
60         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
61         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
62         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
63         (ix86_save_reg): Save force_align_arg_pointer.
64         (ix86_emit_save_regs): Make regno unsigned.
65         (ix86_emit_save_regs_using_mov): Likewise.
66         (ix86_expand_prologue): Handle force_align_arg_pointer.
67         (ix86_expand_epilogue): Likewise.
68         * config/i386/i386.h: (dbx_register_map): Update.
69         (dbx64_register_map, svr4_dbx_register_map): Update.
70         (struct machine_function): Add force_align_arg_pointer.
71         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
72         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
73         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
74
75 2005-11-02  Jan Hubicka  <jh@suse.cz>
76
77         PR target/23303
78         * i386.md: Add peep2 for simplyfing array accesses.
79
80 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
81
82         PR target/24615
83         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
84         * config/s390/s390.c (s390_decompose_shift_count): New function.
85         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
86         (print_shift_count_operand): Use s390_decompose_shift_count.
87         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
88         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
89
90 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
91
92         PR target/24600
93         * loop.c (loop_givs_rescan): Use force_operand to expand
94         complex GIVs.
95
96 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
97
98         PR 22429
99         * fold-const.c (build_range_check): Use unsigned when signed
100         overflow is undefined also.  If etype is subtype, make sure that
101         the subtraction is in the supertype.
102
103 2005-11-02  Richard Henderson  <rth@redhat.com>
104
105         PR target/24178
106         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
107         by MEM_ALIGN.
108
109 2005-11-01  Richard Henderson  <rth@redhat.com>
110
111         PR 21518
112         * loop.c (scan_loop): Do not propagate computations to a hard
113         register destination with SMALL_REGISTER_CLASSES.
114
115 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
116
117         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
118         costs for MULT inside PLUS or MINUS.
119
120 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
121
122         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
123         (TRAMPOLINE_SIZE): Round up to 60.
124         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
125
126 2005-10-31  James E. Wilson  <wilson@specifix.com>
127
128         PR debug/24444
129         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
130         ifdef.  Put ifdefs around call in gen_subprogram_die.
131         (compute_frame_pointer_to_cfa_displacement): Likewise.
132         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
133         not defined.
134         
135         PR rtl-optimization/17356
136         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
137         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
138
139 2005-10-31  Jan Hubicka  <jh@suse.cz>
140
141         PR middle-end/24093
142         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
143
144         PR target/20928
145         * i386.c (legitimize_pic_address): Deal with large immediates.
146
147         PR profile/20815
148         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
149         from symbol names while computing checkup.
150
151         PR profile/24487
152         * predict.c (predict_loops): Do not estimate more than
153         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
154         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
155
156 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
157         
158         PR tree-optimization/19097
159         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
160
161 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
162
163         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
164
165 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
166
167         PR middle-end/23492
168         * tree-inline.c (setup_one_parameter): If the init_stmt
169         is NULL, don't insert the statement.
170
171 2005-10-30  Jan Hubicka  <jh@suse.cz>
172
173         PR tree-optimization/24172
174         * tree-inline.c (copy_body_r): Unshare the substituted value first.
175
176 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
177
178         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
179         constants for hosts with long != 32 bits.
180
181 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
182
183         PR middle-end/24093
184         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
185
186 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
187
188         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
189         (TARGET_MS1_16_002): New.
190         (TARGET_MS1_16_003): New.
191
192         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
193         ("*decrement_and_branch_until_zero_no_clobber"): New.
194         Add corresponding splitter for decrement_and_branch_until_zero
195         instruction.
196         Key all decrement_and_branch_until_zero patterns off of
197         TARGET_MS1_16_003.
198
199 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
200
201         PR middle-end/24362
202         * tree-complex.c (extract_component): Treat RESULT_DECL
203         like the rest of the decls.
204
205 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
206
207         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
208         indirect call to _mcount if the function needs a static chain.
209
210 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
211             Caroline Tice  <ctice@apple.com>
212
213         PR rtl-optimization/24460
214         * dwarf2out.c (have_switched_text_sections): New boolean variable.
215         (dwarf2out_switch_text_section): Set it to true instead of
216         incrementing separate_line_info_table_in_use.
217         (output_loc_list): Additionally test have_switched_text_sections.
218         (output_ranges): Likewise.
219         (dwarf2out_finish): Likewise.
220         * varasm.c (assemble_start_function): Do not call
221         insert_section_boundary_note.
222         (assemble_end_function): If flag_reorder_blocks_and_partition,
223         switch to the function's section before emitting the .size directive.
224         * bb-reorder.c (insert_section_boundary_note): Staticify.
225         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
226         * output.h (insert_section_boundary_note): Delete.
227
228 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
229
230         PR c/23103
231         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
232         instead of pointer equality when comparing types.
233
234 2005-10-24  James E. Wilson  <wilson@specifix.com>
235
236         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
237         add_dependence_list_and_free calls.
238
239 2005-10-24  Steven Bosscher  <stevenb@suse.de>
240
241         * contrib.texi: Add the names of the LLNL folks who donated
242         Cray pointer support for gfortran.
243
244 2005-10-24  Steven Bosscher  <stevenb@suse.de>
245
246         PR tree-optimization/24225
247         * profile.c (branch_prob): Look from end to start through a
248         basic block when looking for a locus.
249
250 2005-10-24  Richard Henderson  <rth@redhat.com>
251
252         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
253         parallel.
254         (hppa_expand_prologue): Likewise.
255
256 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
257
258         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
259         (NO_DEFERRED_PROFILE_COUNTERS): Define.
260         * pa.h (NO_PROFILE_COUNTERS): Define.
261         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
262         (funcdef_nos): New vector to hold label numbers of deferred profile
263         counters.
264         (output_deferred_profile_counters): New function.
265         (hppa_profile_hook): Push label number onto funcdef_nos.
266         (pa_hpux_file_end): Call output_deferred_profile_counters if
267         NO_DEFERRED_PROFILE_COUNTERS is false.
268
269         * pa-protos.h (get_deferred_plabel): New prototype.
270         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
271         Make global.
272         (output_call): Adjust calls.
273
274 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
275
276         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
277         peculiarity of GOT/TOC section usage.
278
279 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
280
281         PR objc/24435
282          * c-common.c (constant_string_class_name): Add documentation.
283
284 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
285
286         PR target/23832
287         * recog.c (peephole2_optimize): Increment peep2_current_count
288         only when the slot is empty.
289
290 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
291
292         PR ada/23957
293         * except.c (output_function_exception_table): Call
294         assemble_external_libcall if we need a personality function.
295
296 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
297
298         PR rtl-optimization/24460
299         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
300         set the basic block for barriers.
301
302 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
303
304         * var-tracking.c (vt_initialize): Initialize post.
305
306 2005-10-21  Devang Patel  <dpatel@apple.com>
307
308         PR/24220
309         * c-common.c (vector_types_convertible_p): Check vector element type.
310         
311 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
312
313         * config/sh/sh.c (prepare_move_operands): Handle the address
314         constant which is a tls symbolic address plus a constant.
315
316 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
317
318         PR driver/24473
319         * gcc.c (main): Use the correct counter for erroring out
320         about mulitple files.
321
322 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
323
324         PR target/24465
325         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
326         use r2 for 64-bit tls .got access.
327
328 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
329
330         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
331         TRUTH_OR_EXPR.
332
333 2005-10-20  Steven Bosscher  <stevenb@suse.de>
334
335         PR tree-optimization/24307
336         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
337
338 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
339
340         PR middle-end/24295
341         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
342         alias targets.
343         * varasm.c (find_decl_and_mark_needed): After cgraph global info
344         is ready, stop marking functions, but still mark variables.
345
346 2005-10-20  Richard Guenther  <rguenther@suse.de>
347
348         PR c++/24439
349         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
350         void type operands.
351
352 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
353
354         PR rtl-optimization/23585
355         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
356         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
357         (may_trap_p_1): New predicate extracted from...
358         (may_trap_p): ... here.  Invoke may_trap_p_1.
359         (may_trap_or_fault_p): New predicate.
360         * rtl.h (may_trap_or_fault_p): Declare it.
361         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
362         instead of may_trap_p.
363         (steal_delay_list_from_fallthrough): Likewise.
364         (fill_simple_delay_slots): Likewise.
365         (fill_slots_from_thread): Likewise.
366         * function.c (pad_to_arg_alignment): Rework comment about
367         SPARC_STACK_BOUNDARY_HACK.
368         * config/sparc/sparc.h: Likewise.
369
370 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
371
372         * config/s390/s390.c (s390_expand_insv): New.
373         * config/s390/s390-protos.h (s390_expand_insv): Declare.
374         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
375         ("icm_hi"): Remove mode attribute.
376         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
377         Adjust all uses.
378         ("*extracthi", "*extractqi"): Remove.
379         (extv<mode>", "*extzv<mode>"): New.
380         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
381         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
382
383 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
384
385         * cfgexpand.c (discover_nonconstant_array_refs_r,
386         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
387         (tree_expand_cfg): Call discover_nonconstant_array_refs.
388         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
389         discover_nonconstant_array_refs.
390
391 2005-10-19  Steven Bosscher  <stevenb@suse.de>
392
393         PR c/23228
394         * c-decl.c (pop_scope): Don't warn about an unused variable
395         if it is marked with TREE_NO_WARNING.
396         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
397         somenow mismatch and olddecl is to be replaced.
398
399 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
400
401         PR middle-end/23199
402         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
403         whether registers live on the edge can be saved/restored.
404
405 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
406
407         * config/sh/sh.c (fixup_mova): Skip notes.
408
409 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
410
411         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
412         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
413         (s390_can_eliminate): Handle BASE_REGNUM elimination.
414         (s390_initial_elimination_offset): Likewise.
415         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
416         register on TARGET_ZARCH targets.
417         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
418         (INITIAL_FRAME_POINTER_OFFSET): Remove.
419         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
420         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
421
422 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
423
424         * config/s390/s390.md: Comment describing output modifiers updated.
425         * config/s390/s390.c (print_operand): Likewise.
426
427 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
428
429         * config/s390/s390.c (override_options): Added check for -mstack-size
430         64k limitation.
431         * doc/invoke.texi: Mention that limit in the documenation.
432
433 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
434
435         PR #19672
436         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
437
438 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
439
440         Fix PR tree-optimization/24231
441
442         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
443         (compute_avail): Ditto.
444
445 2005-10-18  Richard Henderson  <rth@redhat.com>
446
447         PR target/24428
448         * config/i386/i386.c (legitimate_constant_p): Check
449         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
450         if LABEL_REF.
451         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
452         (legitimate_pic_address_disp_p): Reorg CONST checking to make
453         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
454         directly.
455         (print_operand_address): Likewise.
456         * config/i386/predicates.md (x86_64_immediate_operand): Test
457         SYMBOL_REF_TLS_MODEL properly inside CONST.
458         (x86_64_zext_immediate_operand): Likewise.
459         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
460         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
461         * config/i386/i386-protos.h: Remove predicates.md entries.
462
463 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
464
465         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
466         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
467
468 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
469             Ian Lance Taylor <ian@airs.com>
470
471         PR middle-end/23522
472         * fold-const.c (fold_widened_comparison): Do not allow range based
473         constant folding when right operand cannot be unwidened.
474
475 2005-10-17  Richard Henderson  <rth@redhat.com>
476
477         * builtins.c (expand_builtin_synchronize): Build a new-style asm
478         with a memory clobber.
479
480 2005-10-17  James E Wilson  <wilson@specifix.com>
481
482         PR rtl-optimization/17356
483         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
484         checking for EDGE_EH.
485
486 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
487
488         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
489         the slot on an even boundary for any type with 16-byte alignment.
490
491 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
492
493         PR target/23424
494         * md.texi (Modifiers) <%>: Clarify that % doesn't work
495         after register allocation.
496
497 2005-10-17  DJ Delorie  <dj@redhat.com>
498
499         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
500         as frame related.
501
502 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
503
504         PR c++/22551
505         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
506         overflow flags.
507
508 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
509
510         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
511         to 2 if it's already non-zero.
512         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
513         is set and warn about it if flag_schedule_insns is 1.
514
515 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
516
517         * config/crx/crx.md: Compare-and-branch instructions need to
518         invalidate CC.
519
520 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
521
522         PR target/24315
523         * config/i386/i386.md (*pushdi2_rex64 splitter)
524         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
525         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
526         flow2 pass only when (optimize > 0 && flag_peephole2).
527
528 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
529
530         PR driver/22544
531         * gcc.c (have_c): New static variable.
532         (have_o): Likewise.
533         (process_command): Remove declation of have_c.
534         Set have_o to 1 when handling -o.
535         (main): Add a fatel error if there are multiple
536         files specified and -o and -c/-S is passed witout
537         -combine or multiple languages.
538
539 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
540
541         Fix PR tree-optimization/22444
542         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
543         Assert that we don't hit something with subvars.
544         (setup_pointers_and_addressables): Don't add things with subvars,
545         because we'll already process the subvars for aliasing purposes.
546
547 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
548
549         PR target/23424
550         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
551         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
552         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
553         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
554         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
555         swapped, alternatives for the R constraint.
556
557         PR middle-end/24341
558         * builtins.c (get_builtin_sync_mode): Make unlimited
559         mode_for_size request.
560
561 2005-10-15  Richard Henderson  <rth@redhat.com>
562
563         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
564         (gimplify_expr): ... here.
565         (gimplify_compound_lval): Use it in initial scan loop.  Allow
566         fb_lvalue in base expression.
567
568 2005-10-15  Richard Henderson  <rth@redhat.com>
569
570         PR 23714
571         * builtins.c (expand_builtin_trap): Export.
572         * expr.h (expand_builtin_trap): Declare.
573         * expr.c (expand_assignment): Emit a trap for integral offsets 
574         from registers that weren't reduced to bitpos.
575
576         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
577         (mark_array_ref_addressable): Remove.
578         * tree-flow.h (mark_array_ref_addressable): Remove.
579         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
580
581 2005-10-15  James E Wilson  <wilson@specifix.com>
582
583         PR target/24232
584         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
585         (add_dependence_list_and_free): Likewise.
586         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
587         call.
588
589 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
590
591         PR 23141
592         PR 23142
593         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
594         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
595         anti-range.
596         (vrp_visit_phi_node): Only prevent infinite iterations when
597         the previous result and the new result are both VR_RANGEs.
598
599 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
600
601         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
602         function comment.
603
604 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
605
606         PR c/23439
607         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
608         to initialize loc.
609
610 2005-10-14  Per Bothner  <per@bothner.com>
611
612         PR preprocessor/21250
613         * c-ppoutput.c (print_line): Print internal line 0 as 1.
614
615 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
616
617         PR c++/22551
618         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
619         overflow flags.  Refactor some conditionals.
620
621 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
622
623         PR tree-opt/21304
624         * tree-dfa.c (add_referenced_var): Only look at decls which
625         have TREE_CONSTANT or TREE_READONLY set instead of if
626         !TREE_PUBLIC or !TREE_CONSTANT.
627
628 2005-10-13  James E Wilson  <wilson@specifix.com>
629
630         * doc/invoke.texi: For -x, add f95-cpp-input.
631         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
632
633 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
634
635         PR tree-optimization/24262
636         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
637         in loop all the time.
638
639 2005-10-12  Richard Henderson  <rth@redhat.com>
640
641         PR c/24255
642         * tree.h (DECL_TRANSPARENT_UNION): Remove.
643         * function.c (assign_parm_find_data_types): Don't support it.
644         * print-tree.c (print_node): Likewise.
645         * c-common.c (handle_transparent_union_attribute): Likewise.
646         Use build_duplicate_type.
647         * tree-inline.c (remap_type_1): Split out of remap_type;
648         properly remap aggregate fields.
649         (build_duplicate_type): New.
650         * doc/extend.texi (Variable Attributes): Remove documentation
651         for transparent_union.
652
653 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
654
655         PR target/24284
656         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
657         (gen_stack_pointer_dec): Likewise.
658
659 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
660
661         PR middle-end/21275
662         PR middle-end/21766
663         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
664         target hook.
665         (struct cxx): Add adjust_class_at_definition target hook.
666         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
667         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
668         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to 
669         hook_void_tree. Add to TARGET_CXX.
670         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
671         dllimport_flag.
672         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
673         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
674         instead of attribute. Check for dllexport override.  Warn if
675         inconsistent dll linkage. Don't lose old dllimport if decl has
676         had address referenced.   Tweak lookup of dllimport atribute.  
677         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
678         for target specific rules.  Don't add dllimport attribute if
679         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
680         dllimport attribute. 
681         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
682         * varasm.c (initializer_constant_valid_p): Replace
683         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
684
685         PR target/21801
686         PR target/23589
687         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to 
688         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
689         (i[34567]86-*-mingw32*): Likewise.
690
691         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
692         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
693                         
694         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
695         C++-specific code. Change return value to bool. 
696         (i386_pe_dllimport_p): Likewise.
697         (associated_type): Simplify and make language-independent
698         (i386_pe_encode_section_info): Replace override of ambiguous
699         dllimport symbol refs with a gcc_assert.
700         (i386_pe_valid_dllimport_attribute_p): Define.
701         * config/i386/winnt-cxx.c: New file. Define C++ versions of
702         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
703         i386_pe_adjust_class_at_definition.
704         * config/i386/winnt-stubs.c: New file. Define stub versions of
705         lang-specific functions.
706         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
707         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p, 
708         i386_pe_adjust_class_at_definition.
709         (i386_pe_valid_dllimport_attribute_p): Declare. 
710         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
711         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
712         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
713
714         PR target/19704
715         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
716         dllimport attribute with test of DECL_DLLIMPORT_P.
717
718 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
719
720         * combine.c (make_extraction): Correct offset computation.
721
722 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
723
724         * config/cris/t-linux (LIMITS_H_TEST): Define.
725
726 2005-10-12  Richard Henderson  <rth@redhat.com>
727
728         PR rtl-opt/23324
729         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
730
731 2005-10-12  Richard Guenther  <rguenther@suse.de>
732
733         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
734
735 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
736
737         PR c++/19964
738         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
739         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
740         type.
741
742 2005-10-12  Richard Guenther  <rguenther@suse.de>
743
744         PR c++/23799
745         * varasm.c (output_constant): Correct typo from previous
746         patch by DJ.
747
748 2005-10-11  Ian Lance Taylor  <ian@airs.com>
749
750         PR rtl-optimization/13931
751         * combine.c: Revert patch of 2003-05-14, and:
752         (try_combine): Only set elim_i1 and elim_i2 if the destination is
753         completely killed in the appropriate insn.
754         (distribute_notes): Don't skip multiple hard register test for
755         elim_i1 and elim_i2.
756
757 2005-10-11  Richard Henderson  <rth@redhat.com>
758
759         PR c/24255
760         * c-typeck.c (convert_for_assignment): Use build_constructor_single
761         to initialize a transparent union instead of a nop_expr.
762
763 2005-10-11  Richard Henderson  <rth@redhat.com>
764
765         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
766         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
767         (tree_ssa_dce_loop): Call scev_reset.
768
769         PR tree-opt/24300
770         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
771         * tree-ssa-dce.c: Include cfgloop.h.
772         (tree_ssa_dce_loop, pass_dce_loop): New.
773         * tree-pass.h (pass_dce_loop): Declare it.
774         * passes.c (init_optimization_passes): Use it.
775
776 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
777
778         PR middle-end/24263 
779         * convert.c (convert_to_real): Revert 2005-10-05 patch.
780         Only apply the optimization for rounding builtins if the inner
781         cast is also an extension.
782
783 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
784
785         PR tree-opt/23946
786         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
787         mark_new_vars_to_rename instead of update_stmt.
788
789 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
790
791         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
792
793 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
794
795         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
796         for setting MMX register to 0 rather than mmx.
797
798 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
799
800         PR target/12098
801         * configure.ac: Move gas check from mips specific case to common case.
802         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
803         * configure: Regenerate
804         * doc/install.texi: Update.
805
806 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
807
808         PR target/24284
809         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
810
811 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
812
813         * gcc.c (do_spec_1): Accept numeric characters in file name
814         suffixes.
815
816 2005-10-10  Nick Clifton  <nickc@redhat.com>
817
818         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
819         describing the deleted arm_gen_rotated_half_load function.
820
821 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
822
823         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
824         __fpscr_values.
825
826 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
827
828         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
829         gnu_ld assignments.
830         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
831         (EXTRA_MULTILIB_PARTS): Define.
832         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
833         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
834         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
835         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
836         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
837         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
838
839 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
840
841         PR tree-optimization/24226
842         * tree-cfg.c (remove_bb): Clean up unreachable loops.
843         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
844         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
845         Export.
846
847 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
848
849         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
850
851 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
852
853         PR target/24136
854         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
855         Rewrite for no need for the early clobber.
856
857 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
858
859         Merge from csl-arm-branch:
860         2005-09-07  Paul Brook  <paul@codesourcery.com>
861         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
862         space to string.
863
864         2005-04-30  Paul Brook  <paul@codesourcery.com>
865         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
866         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
867
868         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
869         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
870         (arm_override_options): Use TARGET_AAPCS_BASED.
871         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
872         (PTRDIFF_TYPE): Use int for AAPCS.
873         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
874         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
875         (DEFAULT_SHORT_ENUMS): Delete.
876         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
877
878         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
879         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
880         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
881         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
882
883         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
884         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
885
886         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
887         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
888  
889         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
890         * config.gcc (arm*-*-linux-gnueabi): Add it.
891         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
892         redefining it.
893         (TARGET_OS_CPP_BUILTINS): Likeiwse.
894         * config/arm/linux-eabi.h: New file.
895         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
896         (LINUX_TARET_LINK_SPEC): Likewise.
897         (LINK_SPEC): Use it.
898         * config/arm/t-linux-eabi: New file.
899
900 2005-10-08  Steven Bosscher  <stevenb@suse.de>
901
902         PR other/22202
903         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
904         spaces.
905         (PARAM_SMS_DFA_HISTORY): Likewise.
906
907 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
908
909         PR middle-end/23150
910         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
911         (load_register_parameters): Call it.
912         (check_sibcall_argument_overlap_1): Likewise.
913         (store_one_arg): Likewise.
914
915 2005-10-07  James E. Wilson  <wilson@specifix.com>
916
917         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
918         DImode not VECINT24 for operand 2.
919
920         PR target/23644
921         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
922         -mtune-arch.
923
924         PR target/24193
925         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
926         fr_spill): Use destination_operand for operand 0.
927
928 2005-10-07  DJ Delorie  <dj@redhat.com>
929
930         * varasm.c (output_constant): Limit error to expanding
931         conversions.
932
933 2005-10-07  Richard Guenther  <rguenther@suse.de>
934
935         PR middle-end/24227
936         * fold-const.c (fold_binary): Fix operand types during folding
937         of X op (A, Y).  Evaluation order of the side-effects of
938         X and A are frontend-defined, so ensure we honour that even for
939         tcc_comparison class operands; eased by removing duplicate code.
940
941 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
942
943         * stor-layout.c (layout_type): Do not allow alignment of array
944         elements to be greater than their size.
945
946 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
947
948         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
949         host_xmake_file.
950         (hppa*-*-linux*): Ditto.
951         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
952         * config/host-hpux.c: New.
953         * config/x-hpux: New.
954         * config/pa/x-hpux: Remove.
955         * config/pa/x-linux: Remove.
956         * config/pa/pa-host.c: Remove.
957
958 2005-10-07  Jeff Law  <law@redhat.com>
959
960         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
961         determine whether or not to try and thread outgoing edges.
962
963 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
964
965         * config/rs6000/rs6000.md (eqsi_power): New.
966         (neg_eq0si): Add TARGET_POWER to final condition.
967         (neg_eqsi): Same.
968
969 2005-10-06  Richard Henderson  <rth@redhat.com>
970
971         * config/rs6000/rs6000.c: Revert last change.
972
973 2005-10-06  Richard Henderson  <rth@redhat.com>
974
975         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
976         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
977
978 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
979
980         PR middle-end/22216
981         PR middle-end/23651
982         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
983         out return_label and naked_return_label.
984
985 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
986         
987         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
988         change.
989
990 2005-10-06  Richard Henderson  <rth@redhat.com>
991
992         PR tree-opt/22237
993         * tree-inline.c (declare_return_variable): Handle modify_dest not
994         being a DECL.
995
996 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
997         
998         Fix PR tree-optimization/22488
999         * tree-ssa-structalias.c (check_for_overlaps): New function.
1000         (create_variable_info_for): Use it.
1001
1002 2005-10-06  Richard Henderson  <rth@redhat.com>
1003
1004         PR debug/24070
1005         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
1006         (dwarf2out_start_source_file): Print it.
1007
1008 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
1009
1010         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
1011
1012 2005-10-06  Richard Henderson  <rth@redhat.com>
1013
1014         PR 23706
1015         * mode-switching.c (optimize_mode_switching): Clear transp bit
1016         for block with incomming abnormal edges.
1017
1018         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
1019         (fpscr_set_from_mem): Use them.
1020         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
1021         (fpscr postinc splitters): Rewrite as peephole2+split.
1022
1023 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
1024
1025         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
1026         (eq<mode>_compare): Same.
1027
1028 2005-10-06  Richard Guenther  <rguenther@suse.de>
1029
1030         PR tree-optimization/24238
1031         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
1032
1033 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
1034
1035         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
1036         here.  Use AC_PATH_PROG for environment variables instead of
1037         test -x.
1038         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
1039         objdump also.
1040         * configure: Regenerated.
1041
1042 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
1043
1044         PR target/23783
1045         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
1046         then force it into a register.
1047         (call_value): Likewise.
1048
1049 2005-10-06  Richard Henderson  <rth@redhat.com>
1050
1051         PR 24049
1052         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
1053         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
1054         under pass_vectorize.
1055
1056 2005-10-05  Devang Patel  <dpatel@apple.com>
1057
1058         PR Debug/23205
1059         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
1060         handling constants. Check NAMESPACE_DECL context for constants.
1061         
1062 2005-10-05  Eric Christopher  <echristo@apple.com>
1063
1064         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
1065
1066 2005-10-05  Richard Henderson  <rth@redhat.com>
1067
1068         PR 23714
1069         * tree-cfg.c (mark_array_ref_addressable_1): New.
1070         (mark_array_ref_addressable): New.
1071         * tree-flow.h (mark_array_ref_addressable): Declare.
1072         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
1073
1074 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
1075
1076         PR middle-end/20606
1077         PR middle-end/24069
1078         * reload.c (subst_reloads): When adding a REG_LABEL to a
1079         jump instruction, also update JUMP_LABEL.
1080
1081 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
1082
1083         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
1084         * bb-reorder.c (copy_bb_p): Use it.
1085         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
1086
1087 2005-10-05  Richard Henderson  <rth@redhat.com>
1088
1089         PR target/23602
1090         * toplev.c (process_options): Warn about unsupported combinations
1091         of unwind tables and omit-frame-pointer.
1092         * config/i386/i386.c (override_options): Similarly.  Enable
1093         accumulate-outgoing-args if not explicitly disabled.
1094
1095 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
1096
1097         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
1098         Handle big endian vs. small endian.
1099         (vec_initv2sf): Handle big endian vs. small endian.
1100         (*vec_extractv2sf_1): Ditto.
1101
1102 2005-10-05  Dale Johannesen  <dalej@apple.com>
1103
1104         * convert.c (convert_to_real):  Don't convert
1105         (float)floor(double d) to floorf((float)d).
1106
1107 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
1108
1109         * config/arm/arm.md (insv): Use gen_int_mode in more places.
1110
1111 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
1112
1113         PR tree-optimization/18587
1114         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
1115         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
1116         build_vuses): Change to VEC type.
1117         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
1118         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
1119         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
1120         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
1121         (get_name_decl): New.  Return DECL_UID of base variable.
1122         (operand_build_cmp): New.  qsort comparison routine.
1123         (operand_build_sort_virtual): New.  Sort virtual build vector.
1124         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
1125         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
1126         (FINALIZE_BASE): Use get_name_decl.
1127         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
1128         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
1129         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
1130         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
1131         direct VEC_* manipulations.
1132         (build_ssa_operands): Call operand_build_sort_virtual.
1133         (copy_virtual_operand, create_ssa_artficial_load_stmt,
1134         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
1135         with direct VEC_* manipulations.
1136         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
1137         with direct VEC manipulations.
1138
1139 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
1140
1141         PR tree-optimization/21419
1142         PR tree-optimization/24146
1143         PR tree-optimization/24151
1144
1145         * c-typeck.c (readonly_error): Handle USE being lv_asm.
1146         (build_asm_expr): Call it if outputs are read-only.
1147         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
1148
1149 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
1150             Paolo Bonzini  <bonzini@gnu.org>
1151
1152         PR target/23809
1153
1154         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
1155         enable the instructions and not just the built-ins.
1156         * doc/invoke.texi (x86 Options): Likewise.
1157
1158 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
1159
1160         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
1161
1162         * doc/invoke.texi (Option Summary): Correct spelling
1163         of -mmacosx-version-min.
1164
1165 2005-10-04  Devang Patel  <dpatel@apple.com>
1166
1167         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
1168         real types.
1169
1170 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
1171
1172         * tree-vect-transform.c (vect_create_epilog_for_reduction):
1173         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
1174
1175 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
1176
1177         * config/s390/s390.md ("TDSI","DP"): New mode macros.
1178         ("TE","tg"): New mode attributes.
1179         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
1180         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
1181         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
1182         dword_mode and one for GPRmode.
1183
1184 2005-10-04  Ian Lance Taylor  <ian@airs.com>
1185
1186         PR preprocessor/13726
1187         * c-ppoutput.c (cb_include): Add comments parameter, and print out
1188         any comments passed in.
1189
1190 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
1191
1192         * tree.c (annotate_with_file_line): Fix typo.
1193
1194 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1195
1196         PR ada/19382
1197         * builtins.c (fold_builtin_memcmp): When constructing the pointer
1198         type used to access data in the inlined length == 1 case, use
1199         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
1200         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1201
1202 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
1203
1204         * config/i386/i386.h (TARGET_FISTTP): Enable also for
1205         TARGET_SSE3 and only for TARGET_80387.
1206         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
1207         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
1208         Do not depend on TARGET_80387.
1209
1210 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
1211
1212         * tree.c (last_annotated_node): Change type to location_t*.
1213         (annotate_with_file_line): Reflect the change of
1214         last_annotated_node type.
1215
1216 2005-10-04  Richard Guenther  <rguenther@suse.de>
1217
1218         PR c/23576
1219         * c-decl.c (grokdeclarator): Don't write to fields
1220         of error_mark_node.
1221
1222 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
1223
1224         PR middle-end/23125
1225         * c-decl.c (finish_decl): Use set_user_assembler_name even for
1226         register variables.
1227         * varasm.c (make_decl_rtl): If a register variable does not
1228         have a set user assmbler name, error out.
1229         Decode the asmspec is now name+1 bypassing '*'.
1230
1231 2005-10-04  Steven Bosscher  <stevenb@suse.de>
1232
1233         PR tree-optimization/23049
1234         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
1235         of a COND_EXPR is folded before calling fold on the whole rhs of a
1236         conditional assignment.
1237         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
1238         document that a COND_EXPR may appear there.
1239
1240 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
1241
1242         PR 23445
1243         * tree-vrp.c (extract_range_from_assert): If the new numeric
1244         range created out of the assertion contradicts the existing
1245         numeric range of the ASSERT_EXPR variable, make the new range
1246         varying.
1247
1248 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1249
1250         * config/sh/sh.c (sh_register_move_cost): Add case for moving
1251         from T_REGS to FP register class.
1252
1253 2005-10-03  Richard Henderson  <rth@redhat.com>
1254
1255         PR 24135
1256         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
1257         before creating a new one.
1258
1259 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
1260
1261         * config/rs6000/t-aix43 (LDFLAGS): New.
1262         * config/rs6000/t-aix52 (LDFLAGS): New.
1263
1264 2005-10-03  Ian Lance Taylor  <ian@airs.com>
1265
1266         * gimplify.c (find_single_pointer_decl_1): New static function.
1267         (find_single_pointer_decl): New static function.
1268         (internal_get_tmp_var): For a formal variable, set restrict base
1269         information if appropriate.
1270         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
1271         return it.
1272         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
1273         (DECL_GET_RESTRICT_BASE): Define.
1274         (SET_DECL_RESTRICT_BASE): Define.
1275         (decl_restrict_base_lookup): Declare.
1276         (decl_restrict_base_insert): Declare.
1277         (struct tree_decl_with_vis): Add based_on_restrict_p field.
1278         * tree.c (restrict_base_for_decl): New static variable.
1279         (init_ttree): Initialize restrict_base_for_decl.
1280         (copy_node_stat): Copy restrict base information.
1281         (decl_restrict_base_lookup): New function.
1282         (decl_restrict_base_insert): New function.
1283         (print_restrict_base_statistics): New static function.
1284         (dump_tree_statistics): Call print_restrict_base_statistics.
1285
1286 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
1287
1288         PR 24142
1289         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
1290         case of anti-ranges.
1291
1292 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
1293
1294         PR c/18851
1295         * c-typeck.c (tagged_tu_seen): Rename to ...
1296         (tagged_tu_seen_cache): this and add val field.
1297         (comptypes): Move functional to comptypes_internal
1298         and free tagged_tu_seen.
1299         (comptypes_internal): New function and call comptypes_internal
1300         instead of comptypes. Speed up by sibcalling
1301         tagged_types_tu_compatible_p.
1302         (alloc_tagged_tu_seen): New function
1303         (free_all_tagged_tu_seen_up_to): New function.
1304         (tagged_types_tu_compatible_p): Return the val of the seen two
1305         types.
1306         Add that the two types are the same to tagged_tu_seen_base
1307         if they are and call comptypes_internal instead of comptypes.
1308         <case UNION_TYPE>: Speed up common type where the fields are
1309         in the same order.
1310         (function_types_compatible_p): Call comptypes_internal instead of
1311         comptypes.
1312         (type_lists_compatible_p): Likewise.
1313         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
1314
1315 2005-10-02  Matthias Klose  <doko@debian.org>
1316
1317         * doc/invoke.texi: Fix typo and speling error.
1318
1319 2005-10-01  Richard Henderson  <rth@redhat.com>
1320
1321         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
1322
1323 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
1324
1325         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
1326         using --start-group and --end-group.
1327
1328 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
1329
1330         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
1331         FIXME note regarding quirky semantics.
1332
1333 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
1334
1335         PR 24141
1336         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
1337         non-null range as a last resort.
1338
1339 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
1340             Diego Novillo  <dnovillo@redhat.com>
1341
1342         PR 23604
1343         * tree-vrp.c (extract_range_from_assert): For !=
1344         assertions, only build an anti-range if LIMIT is a
1345         single-valued range.
1346
1347 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
1348
1349         * arm.md (movqi): On thumb when optimizing, handle loading from
1350         memory by describing this as taking a subreg of a zero-extended load
1351         into an SImode register.
1352         (movhi): Likewise.
1353
1354 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
1355
1356         * reload1.c (merge_assigned_reloads): Do not change any
1357         RELOAD_FOR_OUTPUT_ADDRESS reloads.
1358
1359 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
1360
1361         * Makefile.in (LIPO_FOR_TARGET): Define.
1362         (STRIP_FOR_TARGET): Define.
1363
1364         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
1365         before creating new ones.  Do symlinks before creating the actual
1366         targets.
1367
1368         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
1369         to work out which multilibs are actually being built.
1370
1371 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
1372
1373         * tree-vect-transform.c, config/ms1/ms1.md,
1374         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
1375         Follow spelling conventions.
1376         * doc/invoke.texi, doc/md.texi: Fix typos.
1377
1378 2005-09-30  Andrew Macleod  <amacleod@redat.com>
1379
1380         PR tree-optimization/21430
1381         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
1382         use operands, and set stmt pointer if need be.
1383         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
1384         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
1385         present.
1386
1387 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1388
1389         PR middle-end/24053
1390         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
1391
1392 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
1393
1394         * optabs.c (expand_binop): Initialize first_pass_p.
1395
1396 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
1397
1398         PR middle-end/24109
1399         * c-decl.c (c_write_global_declarations_1): If any
1400         wrapup_global_declaration_2 call returned true, restart the loop.
1401
1402 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
1403
1404         Fix PR tree-optimization/24117
1405         * tree-ssa-structalias.c (find_func_aliases): Strip nops
1406         before considering whether to use anyoffset.
1407
1408 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
1409
1410         Revert this patch:
1411
1412         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
1413
1414         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
1415         to order operands.
1416         (swap_commutative_operands_with_target): New.
1417
1418 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
1419
1420         PR c/21419
1421         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
1422         read-only.
1423
1424 2005-09-29  Steven Bosscher  <stevenb@suse.de>
1425
1426         PR tree-optimization/23911
1427         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
1428         and IMAGPART_EXPR too.
1429
1430 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
1431
1432         PR 17886
1433         * expmed.c (expand_shift): Move logic to reverse rotation
1434         direction when  rotating by constants ...
1435         * optabs.c (expand_binop): ... here.
1436         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
1437         (ix86_rotrdi3): New pattern.
1438         (rotldi3): Handle 32-bit mode.
1439         (ix86_rotldi3): New pattern.
1440
1441 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
1442
1443         PR target/24102
1444         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
1445         check for numbers that need no bit twiddle.
1446
1447 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
1448
1449         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
1450         multilib to be built.
1451
1452         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
1453         (stage1-start): Delete old libgcc and libunwind before moving
1454         anything into the stage directory.
1455         (stage2-start): Likewise.
1456         (stage3-start): Likewise.
1457         (stage4-start): Likewise.
1458         (stageprofile-start): Likewise.
1459         (stagefeedback-start): Likewise.
1460         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
1461         header in tm_file and CPU-specific t-darwin in tmake_file.
1462         (i[34567]86-*-darwin*): Don't change tm_file.
1463         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
1464         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
1465         shared library stub for target OS version.
1466         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
1467         (SHLIB_LINK): Don't make SHLIB_SOLINK.
1468         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
1469         (libgcc_s.%.dylib): New.
1470         (LIBGCC): Define.
1471         (install-darwin-libgcc-stubs): New.
1472         (INSTALL_LIBGCC): New append.
1473         * config/i386/darwin-libgcc.10.4.ver: New.
1474         * config/i386/darwin-libgcc.10.5.ver: New.
1475         * config/i386/t-darwin: New.
1476         * config/rs6000/darwin-libgcc.10.4.ver: New.
1477         * config/rs6000/darwin-libgcc.10.5.ver: New.
1478         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
1479         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
1480
1481 2005-09-28  Paul Brook  <paul@codesourcery.com>
1482
1483         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
1484         denormals.
1485
1486 2005-09-28  Richard Guenther  <rguenther@suse.de>
1487
1488         PR tree-optimization/23853
1489         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
1490         host_integerp to verify misalignment value.
1491
1492 2005-09-28  Richard Henderson  <rth@redhat.com>
1493
1494         * builtins.c (get_builtin_sync_mode): New.
1495         (expand_builtin_sync_operation): Pass in mode argument.
1496         (expand_builtin_compare_and_swap): Likewise.
1497         (expand_builtin_lock_test_and_set): Likewise.
1498         (expand_builtin_lock_release): Likewise.
1499         (expand_builtin): Update to match.
1500
1501 2005-09-28  Nick Clifton  <nickc@redhat.com>
1502
1503         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
1504         formatting.  Add check to PLUS case to ensure that the offset is
1505         within an acceptable range.
1506
1507         * config/v850/v850.md (casesi): Disable the generation of the
1508         switch pattern as it is not being handled properly at the moment.
1509
1510         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
1511         for when the high words are identical.
1512
1513 2005-09-27  Richard Henderson  <rth@redhat.com>
1514
1515         * pretty-print.c (pp_base_format): Fix typo for %>.
1516
1517 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
1518             Devang Patel  <dpatel@apple.com>
1519
1520         PR tree-optimization/23625
1521         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
1522         LABEL_EXPR, assertion check.
1523
1524 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
1525
1526         * optabs.c (no_conflict_move_test): Check if a result of a
1527         to-be-moved insn would be clobbered by an originally
1528         preceding insn.
1529
1530 2005-09-27  Jeff Law  <law@redhat.com>
1531
1532         * passes.c (init_optimization_passes): Replace copy propagation
1533         passes immediately after DOM with phi-only copy propagation
1534         pases.  Add phi-only copy propagation pass after first DOM pass.
1535         * tree-pass.h (pass_phi_only_copy_prop): Declare.
1536         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
1537         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
1538         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
1539         to init_copy_prop.  Callers updated.
1540         (do_phi_only_copy_prop): New function.
1541         (pass_phi_only_copy_prop): New pass descriptor.
1542
1543 2005-09-27  Nick Clifton  <nickc@redhat.com>
1544
1545         * libgcc2.c (__popcount_tab): Remove redundant prototype.
1546
1547 2005-09-26  Jason Merrill  <jason@redhat.com>
1548
1549         PR c++/13764
1550         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
1551
1552         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
1553
1554 2005-09-26  James E Wilson  <wilson@specifix.com>
1555
1556         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
1557         copyright.  Add gcc copyright plus libgcc exception.
1558         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
1559         copyright.
1560         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
1561
1562 2005-09-26  Jeff Law  <law@redhat.com>
1563
1564         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
1565         about when to iterate.
1566
1567 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
1568
1569         PR target/23847
1570         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
1571         for __complex__ double in -mcpu=G5 mode.
1572
1573 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
1574
1575         PR tree-optimization/23942
1576         * Makefile.in (SCEV_H): Depends on PARAMS_H.
1577         * tree-scalar-evolution.c: Include params.h.
1578         (t_bool): New enum.
1579         (follow_ssa_edge, follow_ssa_edge_in_rhs,
1580         follow_ssa_edge_in_condition_phi_branch,
1581         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
1582         Change return type to t_bool.  Use a parameter to limit the size of
1583         trees that are walked before stopping
1584         (analyze_evolution_in_loop): Initialize the limit to 0.
1585         (follow_ssa_edge): Give up by returning t_dont_know if the limit
1586         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1587
1588 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
1589
1590         PR middle-end/23831
1591         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
1592         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
1593
1594 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
1595
1596         * combine.c (make_extraction): Check for valid use of subreg.
1597
1598 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
1599
1600         PR target/24055
1601         * config/i386/i386.md ("*fistdi2_1"): New pattern.
1602         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
1603         ("fist<mode>2_with_temp"): Use only register operands.
1604
1605 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
1606
1607         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
1608         CALL_INSN_FUNCTION_USAGE.
1609
1610 2005-09-26  Richard Guenther  <rguenther@suse.de>
1611
1612         PR middle-end/15855
1613         * gcse.c: Include hashtab.h, define ldst entry hashtable.
1614         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
1615         (ldst_entry): Use the hashtable instead of list-walking.
1616         (find_rtx_in_ldst): Likewise.
1617         (free_ldst_entry): Free the hashtable.
1618         (compute_ld_motion_mems): Create the hashtable.
1619         (trim_ld_motion_mems): Remove entry from hashtable if
1620         removing it from list.
1621         (compute_store_table): Likewise^2.
1622         (store_motion): Free hashtable in case we did not see
1623         any stores.
1624
1625 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
1626
1627         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
1628         and arg1 if we are passing them to fold_build2.
1629
1630 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
1631
1632         PR 23828
1633         * config/i386/i386.c (ix86_function_regparm): Fix the test for
1634         a nested function.
1635
1636 2005-09-25  Richard Henderson  <rth@redhat.com>
1637
1638         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
1639         SYMBOL_REF_TLS_MODEL to be correct.
1640
1641 2005-09-24  Richard Henderson  <rth@redhat.com>
1642
1643         * ipa-type-escape.c (discover_unique_type): Remove dead code at
1644         end of function.  Reindent.
1645
1646 2005-09-24  Ian Lance Taylor  <ian@airs.com>
1647
1648         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
1649         NEGATE_EXPR/BIT_NOT_EXPR case.
1650
1651 2005-09-24  Richard Henderson  <rth@redhat.com>
1652
1653         * c-common.c (handle_mode_attribute): When not modifying in place,
1654         create subtypes for enumerations.
1655         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
1656         * gimplify.c (create_tmp_from_val): Likewise.
1657
1658 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
1659
1660         * config/i386/i386.md (*tls_global_dynamic_64,
1661         *tls_local_dynamic_base_64): Add missing mode to call.
1662         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
1663
1664 2005-09-24  Jan Hubicka  <jh@suse.cz>
1665
1666         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
1667         (cgraph_clone_node): Likewise.
1668         * cgraph.h (cgraph_clone_edge): Update prototype.
1669         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
1670         duplicated prototypes; add updating argument.
1671         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
1672         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
1673         updating profile.
1674         (cgraph_mark_inline_edge): Likewise.
1675         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
1676         (cgraph_flatten_node): Likewise.
1677         (cgraph_decide_recursive_inlining): Likewise.
1678         (cgraph_decide_inlining_of_small_function): Likewise.
1679         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1680
1681 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
1682             Pete Steinmetz <steinmtz@us.ibm.com>
1683
1684         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
1685         (rldic.): Set type to "compare".
1686         (rldicr.): Same.
1687         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
1688         mfjmpr for MFCTR/MFLR.
1689         (movdf_hardfloat64): Same.
1690         (movdf_softfloat64): Same.  Correct order of store and move types.
1691         (movti_string): Set type to store_ux/load_ux.
1692         (load_multiple): Set type to load_ux.
1693         (store_multiple): Set type to store_ux.
1694         (movmemsi): Set type to store_ux.
1695         (output_cbranch direct_return): Set type to jmpreg.
1696         (stmw): Set type to store_ux.
1697         (lmw): Set type to load_ux.
1698         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
1699         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
1700         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
1701         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
1702         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
1703         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
1704         (rios1-fpstore): Increase latency to 3.
1705         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
1706         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
1707
1708 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
1709             Andrew Pinski  <pinskia@physics.uc.edu>
1710
1711         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
1712         operand2 constraint to "b".
1713         (sync_<fetchop_name>di_internal): Same.
1714         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
1715         to "b".
1716         (sync_old_<fetchop_name>di_internal): Same.
1717         (sync_new_<fetchop_name>si_internal): Same.
1718         (sync_new_<fetchop_name>di_internal): Same.
1719
1720 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
1721
1722         PR middle-end/23991
1723         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
1724         case, define as macros.
1725
1726         PR rtl-optimization/23837
1727         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
1728         clobber / clobber match between dest and p->first.
1729
1730         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
1731         (no_conflict_move_test): Update comments.
1732
1733 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
1734
1735         * doc/install.texi: Update URL for Jacks.
1736         * doc/sourcebuild.texi: Likewise.
1737
1738 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
1739
1740         PR target/24007
1741         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
1742         registers when choosing register preferences.
1743         (movdf_hardfloat64): Same.
1744
1745 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
1746
1747         * expmed.c (expand_shift): Don't use the target of the rotate as
1748         target for the first expanded shift insn.
1749         * testsuite/gcc.dg/20050922-1.c: Testcase added.
1750
1751 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
1752
1753         PR tree-optimization/22438
1754         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
1755         preserved iv rhs rewriting specially.
1756
1757 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
1758
1759         * tree-data-ref.c (analyze_array_indexes): Only estimate when
1760         estimate_only  is true.
1761         * tree-flow.h (ref_contains_indirect_ref): New prototype.
1762         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
1763         tree-ssa-structalias.c
1764         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
1765         ref_contains_indirect_ref.
1766         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
1767
1768 2005-09-21  DJ Delorie  <dj@redhat.com>
1769
1770         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
1771         MASK_PTR_A0D0.
1772         (mn10300_return_in_memory): Support variable size types also.
1773         (mn10300_pass_by_reference): Likewise.
1774         (mn10300_function_value): New.
1775         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
1776         (FUNCTION_OUTGOING_VALUE): Likewise.
1777         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
1778         * doc/invoke.texi: Document it.
1779
1780 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
1781
1782         PR target/22585
1783         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
1784         force integer op1 into register for XFmode compares.
1785
1786 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
1787
1788         PR middle-end/23971
1789         * expmed.c (alg_code): Add alg_impossible.
1790         (alg_hash_entry): Add cost.
1791         (synth_mult): Record alg_impossible in the hash table if
1792         multiplication by a given integer is impossble within the
1793         limit.  Speed up using alg_impossible.
1794
1795 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
1796
1797         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
1798         argument.  Allow and set any offset if needs_anyoffset is passed
1799         in.
1800         (get_constraint_for): Add argument here too.
1801         Pass it down.
1802         (do_structure_copy): Pass NULL to get_constraint_for.
1803         (handle_ptr_arith): Ditto.
1804         (find_func_aliases): Ditto.
1805
1806 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
1807
1808         PR rtl-optimization/23898
1809         * output.h (get_attr_min_length): Declare.
1810         * final.c (get_attr_length_1): New function, broken out of:
1811         (get_attr_length).
1812         (get_attr_min_length): New function.
1813         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
1814         (duplicate_computed_gotos): Likewise.
1815         * genattr.c (insn_min_length): Generate declaration.
1816         * genattrtab.c (min_fn, min_attr_value): New functions.
1817         (make_length_attrs): Generate insn_min_length.
1818
1819 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
1820
1821         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
1822
1823 2005-09-20  Richard Henderson  <rth@redhat.com>
1824
1825         PR tree-optimization/24059
1826         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
1827         EXPAND_STACK_PARM.
1828
1829 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
1830
1831         * c.opt (fextended-identifiers): New.
1832         * c-opts.c (c_common_handle_option): Handle
1833         -fextended-identifiers.
1834         * doc/cpp.texi: Update documentation of extended identifiers.
1835         * doc/cppopts.texi (-fextended-identifiers): Document.
1836
1837 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
1838
1839         PR tree-optimization/23929
1840         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
1841         if expr is NULL.
1842
1843         PR tree-optimization/23818
1844         * tree-stdarg.c (execute_optimize_stdarg): Call
1845         calculate_dominance_info.
1846
1847 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
1848
1849         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
1850         (analyze_siv_subscript_cst_affine): Add weak SIV test.
1851         (compute_overlap_steps_for_affine_1_2): Use
1852         get_number_of_iters_for_loop.
1853         (analyze_subscript_affine_affine): Check whether difference is
1854         zero first.
1855         Use get_number_of_iters_for_loop.
1856         Check whether overlap occurs outside of bounds.
1857         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
1858
1859 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
1860
1861         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
1862         base register if possible.
1863
1864 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
1865
1866         PR tree-optimization/18463
1867         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
1868         converting it directly is not possible.
1869         (chrec_convert_aggressive): New function.
1870         * tree-chrec.h (chrec_convert_aggressive): Declare.
1871         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
1872         Fold chrec conversions aggressively if asked to.
1873         (instantiate_parameters): Modified because of changes in
1874         instantiate_parameters_1.
1875
1876 2005-09-19  Richard Henderson  <rth@redhat.com>
1877
1878         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
1879         (reduc_splus_v2df): New.
1880
1881 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
1882
1883         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
1884         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
1885
1886 2005-09-19  Richard Henderson  <rth@redhat.com>
1887
1888         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
1889         vcondu<SSEMODE12>.
1890
1891 2005-09-19  Richard Henderson  <rth@redhat.com>
1892
1893         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
1894         (ia64_expand_dot_prod_v8qi): New.
1895         * config/ia64/ia64-protos.h: Update.
1896         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
1897         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
1898         sdot_prodv8qi, sdot_prodv4hi): New.
1899         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
1900
1901 2005-09-19  Richard Henderson  <rth@redhat.com>
1902
1903         PR 23941
1904         * real.c (exact_real_truncate): Return false if the format cannot
1905         represent the number as a normal.
1906
1907         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
1908         for a memory source.
1909
1910 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
1911
1912         * tree-ssa-operands.c (swap_tree_operands): Export.
1913         * tree.h (swap_tree_operands): Declare.
1914         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
1915         Call swap_tree_operands.
1916
1917 2005-09-19  Richard Henderson  <rth@redhat.com>
1918
1919         * tree-flow.h (merge_alias_info): Declare.
1920         * tree-ssa-copy.c (merge_alias_info): Export.
1921         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
1922         (vect_create_data_ref_ptr): Use create_iv directly.
1923         (vectorizable_load): Use correct types for integer constants.
1924         (vect_generate_tmps_on_preheader): Likewise.
1925         (vect_gen_niters_for_prolog_loop): Likewise.
1926
1927 2005-09-19  Steven Bosscher  <stevenb@suse.de>
1928
1929         PR rtl-optimization/23943
1930         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
1931
1932 2005-09-18  Jan Hubicka  <jh@suse.cz>
1933
1934         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
1935
1936 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
1937
1938         * varasm.c (output_constant): Do not abort on conversions to union
1939         types between different sizes.
1940
1941 2005-09-18  Richard Guenther  <rguenther@suse.de>
1942
1943         PR middle-end/23944
1944         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
1945         fallback.
1946
1947 2005-09-18  Paul Brook  <paul@codesourcery.com>
1948
1949         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
1950
1951 2005-09-17  Richard Henderson  <rth@redhat.com>
1952
1953         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
1954         * tree-ssa-loop.c (pass_vect_dce): Remove.
1955         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
1956         of pass_vectorize.
1957
1958 2005-09-17  Richard Henderson  <rth@redhat.com>
1959
1960         * tree-pass.h (pass_vect_dce): Declare.
1961         * passes.c (init_optimization_passes): Add it.
1962         * tree-flow.h (tree_ssa_dce): Declare.
1963         * tree-ssa-dce.c (tree_ssa_dce): Export.
1964         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
1965         (gate_tree_vectorize): ... here.
1966         (pass_vect_dce): New.
1967
1968 2005-09-17  Jan Hubicka  <jh@suse.cz>
1969
1970         * except.c (struct eh_status): Turn region_array into vec.
1971         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
1972         convert_from_eh_region_ranges, find_exception_handler_labels,
1973         current_function_has_exception_handlers, assign_filter_values,
1974         build_post_landing_pads, dw2_build_landing_pads,
1975         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
1976         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
1977         foreach_reachable_handler, can_throw_internal_1,
1978         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
1979         region_array.
1980         (duplicate_eh_region_1): Update region_array.
1981         (duplicate_eh_regions): Resize region_array and avoid recomputing.
1982
1983 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
1984
1985         PR middle-end/22067
1986         * expmed.c (expand_mult): Substitute simple register for op0 when
1987         computing max_cost.
1988
1989 2005-09-17  Richard Henderson  <rth@redhat.com>
1990
1991         * expr.c (emit_move_via_integer): Add force argument, pass it on
1992         to emit_move_change_mode.  Update callers.
1993         (emit_move_complex): Pass true to new force argument.
1994         * function.c (expand_function_end): Move expand_eh_return call
1995         earlier.  Merge sub-word complex values into a pseudo before
1996         copying to the return hard register.
1997
1998 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
1999
2000         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
2001         between different sizes.
2002
2003 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
2004
2005         PR 23903
2006
2007         * passes.c (init_optimization_passes): Register dump files for
2008         IPA passes first.
2009
2010 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
2011
2012         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
2013         * config/s390/s390.c (s390_overlap_p): New function.
2014         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
2015         peephole2, "*xc" peephole2): Added overlap check to the peephole2
2016         condition.
2017
2018 2005-09-16  Richard Guenther  <rguenther@suse.de>
2019
2020         * ipa-pure-const.c (static_execute): Free auxiliar information.
2021         * ipa-type-escape.c (discover_unique_type): Free temporary key.
2022         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
2023
2024 2005-09-15  DJ Delorie  <dj@redhat.com>
2025
2026         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
2027
2028 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
2029
2030         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2031         to order operands.
2032         (swap_commutative_operands_with_target): New.
2033
2034 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
2035
2036         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
2037         parameter.
2038         Update callers.
2039         (estimate_iters_using_array): New function.
2040         * tree-data-ref.h (estimate_iters_using_array): Prototype
2041         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
2042         Use estimate_iters_using_array instead of analyze_array.
2043
2044 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2045
2046         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
2047         as addressable.
2048
2049 2005-09-15  Michael Matz  <matz@suse.de>
2050
2051         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
2052
2053 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
2054
2055         PR tree-optimization/23835
2056         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
2057         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
2058
2059 2005-09-14  Richard Henderson  <rth@redhat.com>
2060
2061         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
2062         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
2063
2064 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
2065
2066         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
2067         in the ARRAY_TYPE case.
2068
2069 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
2070
2071         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
2072
2073 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
2074
2075         PR middle-end/22480
2076         * tree-vect-transform.c (vectorizable_operation): Return false for
2077         scalar shift operations and for vector shift operations with
2078         non-invariant shift arguments.  Use scalar tree operand op1 as
2079         a shift operand when vector shift insn pattern uses scalar shift
2080         operand.
2081         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
2082
2083 2005-09-14  Olivier Hainque  <hainque@adacore.com>
2084
2085         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
2086         value if it has side-effects.
2087
2088 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
2089
2090         PR target/22068
2091         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
2092
2093 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
2094
2095         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
2096         passed as NAME as if it were label at start of function code.
2097
2098 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2099
2100         * config/sh/sh.md (*movv4sf_i): Add general register cases to
2101         the constraints.
2102
2103 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
2104
2105         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
2106         as early clobber.  Rewrite so the PIC register is not implicitly used.
2107
2108 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2109
2110         * tree.c (annotate_with_file_line): Compare line numbers before
2111         file names.
2112
2113 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
2114
2115         PR target/23816
2116         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
2117         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
2118
2119 2005-09-13  Ian Lance Taylor  <ian@airs.com>
2120
2121         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
2122         than a HOST_WIDEST_INT to gen_doloop_begin.
2123
2124 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
2125
2126         * tree-dfa.c (dump_variable): Guard against NULL annotations.
2127
2128 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
2129
2130         PR tree-optimize/23817
2131         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
2132
2133 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
2134
2135         PR target/23774
2136         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
2137         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
2138         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
2139         (restore_stack_nonlocal): Likewise.
2140         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
2141
2142 2005-09-12  Ian Lance Taylor  <ian@airs.com>
2143
2144         PR g++/7874
2145         * c.opt (ffriend-injection): New C++ option.
2146         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
2147         (C++ Dialect Options): Document -ffriend-injection.
2148
2149 2005-09-12  Josh Conner  <jconner@apple.com>
2150
2151         PR middle-end/23237
2152         * ipa-reference.c (static_execute): Don't mark variables in
2153         named sections TREE_READONLY.
2154
2155 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
2156
2157         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
2158         stack_tie.
2159
2160 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
2161
2162         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
2163         V_MUST_DEF instead of just the first_use_p.
2164         Don't mark the virtual variables for renaming on the statement which
2165         is being removed.
2166         (pass_dse): Remove TODO_update_ssa.
2167
2168 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
2169
2170         PR middle-end/23290
2171         * stor-layout.c (compute_record_mode): For records with a single
2172         field, actually check the field's mode size against the type size.
2173
2174         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
2175         registers for TARGET_SHMEDIA.
2176         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
2177         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
2178         of GENERAL_REGS and FP_REGS.
2179
2180 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2181
2182         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
2183
2184 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
2185
2186         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
2187         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
2188         are omitted.  Exclude stack_tie insn too.
2189
2190 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
2191
2192         PR rtl-optimization/23098
2193         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
2194         0.0f is easy.
2195         * config/rs6000/rs6000.md (movdf splitter): Use
2196         const_double_operand predicate for TARGET_POWERPC64.
2197         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
2198         SYMBOL_REF method to ABI_V4.
2199
2200         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
2201         replace_equiv_address.
2202         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
2203         rs6000_sr_alias_set and MEM_NOTRAP.
2204         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
2205
2206 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
2207
2208         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
2209         handle CALL_EXPR again.
2210
2211 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
2212
2213         * arm/predicates.md (alignable_memory_operand): Delete.
2214
2215 2005-09-10  Richard Henderson  <rth@redhat.com>
2216
2217         PR debug/23806
2218         * dbxout.c (dbxout_expand_expr): New.
2219         (dbxout_symbol): Use it.
2220
2221 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
2222
2223         * arm.c (arm_gen_rotated_half_load): Delete.
2224         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
2225         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
2226         (thumb_set_return_address): Likewise.
2227         (thumb_load_double_from_address): Use adjust_address.
2228         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
2229         (extendhsisi2_mem, movhi_bytes): Use change_address.
2230         (movhi): Use widen_memory_access.
2231         (reload_out_df): Use replace_equiv_address.
2232         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
2233
2234 2005-09-09  Richard Henderson  <rth@redhat.com>
2235
2236         PR debug/20998
2237         * dbxout.c: Include expr.h.
2238         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
2239         (dbxout_symbol): Handle DECL_VALUE_EXPR.
2240         * Makefile.in (dbxout.o): Add EXPR_H.
2241
2242 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
2243
2244         PR tree-optimization/23509
2245         * tree-cfg.c (replace_uses_by): Use replace_exp.
2246         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
2247         pointers have name_mem_tag or type_mem_tag set.
2248
2249 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
2250
2251         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
2252         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
2253         of wrongly accessing operands.
2254
2255 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
2256
2257         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
2258         * tree-chrec.c: Include tree-scalar-evolution.h.
2259         (chrec_convert): Instantiate the base and step before calling
2260         scev_probably_wraps_p that would fail on parametric evolutions.
2261         Collect all the fails into a single section failed_to_convert,
2262         print a diagnostic, and return chrec_dont_know instead of calling
2263         fold_convert.
2264         * tree-scalar-evolution.c (loop_closed_phi_def): New.
2265         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
2266         phi nodes.
2267         (scev_const_prop): Don't replace the definition of a loop closed ssa
2268         phi node by itself, or by another loop closed ssa phi node.
2269         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
2270         that base and step are defined.
2271
2272 2005-09-09  Richard Guenther  <rguenther@suse.de>
2273
2274         PR c++/23624
2275         * fold-const.c (fold_ternary): Check truth_value_p before
2276         calling invert_truthvalue.
2277
2278 2005-09-09  Nick Clifton  <nickc@redhat.com>
2279
2280         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
2281         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
2282         dimension of these arrays.
2283         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
2284         these arrays.
2285         * longlong.h: Only provide a prototype for the __clz_tab[] array
2286         if this header has not been included from libgcc2.h.
2287         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
2288         defining own types.
2289         Provide prototypes for exported functions.
2290         Use the __clz_tab[] and __popcount_tab[] arrays provided by
2291         libgcc2.c.
2292
2293 2005-09-08  Josh Conner  <jconner@apple.com>
2294
2295         PR c++/21135
2296         PR c++/23180
2297         * expr.c (expand_expr_addr_expr_1): Don't invoke
2298         expand_simple_binop for EXPAND_INITIALIZER.
2299
2300 2005-09-08  Richard Henderson  <rth@redhat.com>
2301
2302         PR debug/23190
2303         * toplev.c (wrapup_global_declaration_1): Split out ...
2304         (wrapup_global_declaration_2): ... from ...
2305         (wrapup_global_declarations): ... here.  Return bool.
2306         (check_global_declaration_1): Split out ...
2307         (check_global_declarations): from here.
2308         (emit_debug_global_declarations): New.
2309         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
2310         check_global_declaration_1, emit_debug_global_declarations): Declare.
2311         * c-decl.c (c_write_global_declarations_1): Don't create a vector
2312         of decls.  Call wrapup_global_declaration_1,
2313         wrapup_global_declaration_2, check_global_declaration_1 directly.
2314         (c_write_global_declarations_2): New.
2315         (ext_block): New.
2316         (c_write_global_declarations): Call c_write_global_declarations_2.
2317         * langhooks.c (write_global_declarations): Call
2318         emit_debug_global_declarations.
2319
2320         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
2321         remove decls that have DECL_RTL_SET_P.
2322         * passes.c (rest_of_decl_compilation): Invoke
2323         cgraph_varpool_finalize_decl for all but functions.
2324
2325 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2326
2327         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
2328         the result of a conversion if the new min and max cannot be compared.
2329
2330 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
2331
2332         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
2333         (override_options): Setting s390_sr_alias_set removed.
2334         (save_fpr, save_gprs): Set alias set to vararg or frame.
2335         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
2336         s390_sr_alias_set with get_frame_alias_set ().
2337         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
2338         get_varargs_alias_set ().
2339
2340 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
2341
2342         PR objc/20574
2343         PR objc/19324
2344         * c-parser.c (c_parser_objc_method_definition): If the next
2345         token is not "{", error out and don't start the function.
2346
2347 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
2348
2349         * tree-vrp.c (extract_range_from_expr): Move the check for non
2350         nullness after the check for gimple invariant.
2351
2352 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2353
2354         * tree.c (host_integerp, tree_low_cst): Correct function comment.
2355
2356 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2357
2358         PR target/23747
2359         * config/m32r.md (movmemsi_internal): Canonicalize order of
2360         operands in PLUS component of template.
2361
2362 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
2363
2364         * reload1.c (fixup_eh_region_note): Remove assertion.
2365         (fixup_abnormal_edges): Reverted removal of call to
2366         find_many_sub_basic_blocks made on 2005-08-31.
2367
2368 2005-09-07  Richard Henderson  <rth@redhat.com>
2369
2370         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
2371         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
2372         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
2373         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
2374         rearrange for better packing.
2375         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
2376         (lookup_cfa_1): Remove inline marker.
2377         (cfa_equal_p): Split out of ...
2378         (def_cfa_1): ... here.  Use INVALID_REGNUM.
2379         (build_cfa_loc): Handle !cfa->indirect.
2380         (frame_pointer_cfa_offset): New.
2381         (dbx_reg_number): Assert register elimination performed; do
2382         leaf register remapping.
2383         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
2384         (eliminate_reg_to_offset): New.
2385         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
2386         for verifiably local stack frame addresses; re-base to CFA.
2387         (mem_loc_descriptor): Remove can_use_fbreg argument.
2388         (concat_loc_descriptor, loc_descriptor): Likewise.
2389         (containing_function_has_frame_base): Remove.
2390         (rtl_for_decl_location): Don't do register elimination or
2391         leaf register remapping here.
2392         (secname_for_decl): Split out from ..
2393         (add_location_or_const_value_attribute): ... here.
2394         (convert_cfa_to_loc_list): New.
2395         (compute_frame_pointer_to_cfa_displacement): New.
2396         (gen_subprogram_die): Use them.
2397         * tree.h (frame_base_decl): Remove.
2398         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
2399         (prologue_stack_adjust): Remove.
2400         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
2401         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
2402         (set_frame_base_location): Remove.
2403         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
2404         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
2405         (vt_add_function_parameters): Don't eliminate_regs.
2406         (vt_initialize): Don't create frame_base_decl.
2407
2408 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2409
2410         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
2411         version of GNU binutils for 4.x and later.
2412
2413 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
2414
2415         * ggc-page.c (ggc_push_context): Remove.
2416         (ggc_pop_context): Likewise.
2417         * ggc.h (ggc_push_context): Remove.
2418         (ggc_pop_context): Likewise.
2419
2420 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
2421
2422         PR target/8973
2423         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
2424         returning from an interrupt handler.
2425
2426 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
2427
2428         PR target/8972
2429         * config/arc/arc.c (output_shift): Add check for loop count when
2430         optimizing.
2431
2432 2005-09-06  Steven Bosscher  <stevenb@suse.de>
2433
2434         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
2435         form manually.
2436         (abs_replacement): Likewise.
2437         (pass_phiopt): Remove TODO_update_ssa.
2438
2439 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
2440
2441         PR c/23075
2442         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
2443         if "return with no value, in function returning non-void" warning
2444         has been issued.
2445         * tree-cfg.c (execute_warn_function_return): Don't look at
2446         RETURN_EXPRs with TREE_NO_WARNING set.
2447
2448         PR target/22362
2449         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
2450         for internal functions doesn't use registers used by global registers
2451         variables.  Use fewer register parameters if there are global register
2452         variables.
2453
2454 2005-09-06  Olivier Hainque  <hainque@adacore.com>
2455             Eric Botcazou  <ebotcazou@adacore.com>
2456
2457         PR middle-end/14997
2458         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
2459         when we would be extracting outside its bit span (bitpos+bitsize
2460         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
2461         Ada unchecked conversions.
2462
2463 2005-09-06  Steven Bosscher  <stevenb@suse.de>
2464
2465         * tree-ssa-pre.c (try_look_through_load): New function.
2466         (compute_avail): Use it to try to look through loads for some
2467         more useful expressions.
2468
2469 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
2470
2471         * simplify-rtx.c (simplify_binary_operation_1): Correct the
2472         condition for detecting cases like (a&a) and (a^a).
2473
2474 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
2475
2476         * common.opt: Add option ftree-vect-loop-version.
2477         * params.def: Add --param vect-max-version-checks.
2478         * doc/invoke.texi: Document ftree-vect-loop-version and
2479         --param vect-max-version-checks.
2480         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
2481         may_misalign_stmts and defines for accessors.
2482         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
2483         LOOP_VINFO_MAY_MISALIGN_STMTS.
2484         (destroy_loop_vec_info): VEC_free for
2485         LOOP_VINFO_MAY_MISALIGN_STMTS.
2486         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
2487         Update documentation.
2488         (vect_update_misalignment_for_peel): New.
2489         (vect_enhance_data_refs_alignment): Update to choose loop
2490         peeling or loop versioning if appropriate for the (potentially)
2491         unaligned data references in the loop.
2492         (vect_analyze_data_refs_alignment): Remove call to
2493         vect_enhance_data_refs_alignment so the checks can be done
2494         earlier.
2495         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
2496         and move up call to vect_analyze_data_refs_alignment.
2497         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
2498         (vect_transform_loop): Add call to loop_version.
2499
2500 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
2501
2502         PR rtl-optimization/23098
2503         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
2504         * simplify-rtx.c (constant_pool_reference_p): New function.
2505         * rtl.h (constant_pool_reference_p): New prototype.
2506         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
2507         constant_pool_reference_p in condition and
2508         avoid_constant_pool_reference in preparation statements.
2509
2510 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
2511
2512         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
2513         STRICT_LOW_PART SETs.
2514
2515 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
2516
2517         PR middle-end/21460
2518         * except.c (sjlj_emit_function_enter): Find the function begin
2519         note even when it's not in first basic block.
2520
2521 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
2522
2523         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
2524         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
2525         * aclocal.m4: Regenerate.
2526
2527 2005-09-05  DJ Delorie  <dj@redhat.com>
2528
2529         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
2530         of macro.
2531
2532 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
2533
2534         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
2535         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
2536         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
2537         Follow spelling conventions.
2538         * doc/invoke.texi: Follow spelling conventions.
2539
2540 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
2541
2542         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
2543         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
2544         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
2545
2546 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
2547
2548         PR target/23683
2549         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
2550         (output_stack_adjust): Use gen_tmp_stack_mem.
2551         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
2552         (sh_set_return_address, sh_allocate_initial_value): Likewise.
2553         (sh_get_pr_initial_val): Likewise.
2554         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
2555         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
2556         * sh.md (divsi_inv_m0): Use gen_const_mem.
2557         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
2558         (movdf_i4+1): Use gen_tmp_stack_mem.
2559         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
2560         (fpu_switch+2): Likewise.
2561         (movv4sf_i, movv16sf_i): Use adjust_address.
2562         (symGOT_load): Set MEM_NOTRAP_P bit.
2563
2564 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2565
2566         PR target/23721
2567         * pa.c (emit_move_sequence): Fix typo in last change.
2568
2569 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
2570
2571         PR rtl-optimization/23454
2572         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
2573         is true.
2574
2575 2005-09-03  Richard Henderson  <rth@redhat.com>
2576             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2577
2578         PR middle-end/23671
2579         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
2580         gen_rtx_MEM.
2581
2582 2005-09-02  Nicolas Pitre <nico@cam.org>
2583
2584         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
2585         to bit_count to 32 bits.
2586
2587 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
2588
2589         PR c++/23167
2590         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
2591         generating synthetic loads from volatile lvalues.
2592
2593 005-09-02  Nick Clifton  <nickc@redhat.com>
2594
2595         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
2596         __ctzhi2, __clzhi2): New functions.
2597
2598 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
2599
2600         PR middle-end/23547
2601         * tree-nested.c (struct var_map_elt): Mark with GTY.
2602         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
2603         var_map_elt.
2604         (lookup_field_for_decl): Allocate new element in GC memory.
2605         (lookup_tramp_for_decl): Likewise.
2606         (convert_nl_goto_reference): Likewise
2607         (create_nesting_tree): Allocate info in GC memory. Likewise for
2608         info->var_map.
2609         (free_nesting_tree): Free with ggc_free instead of free.
2610         (root): New static variable.
2611         (lower_nested_functions): Remove root as local variable.  And zero out
2612         root at the end of the function.
2613
2614 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
2615
2616         PR rtl-optimization/20365
2617         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
2618         to short.  New member ix.
2619         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
2620         (simplify_plus_minus): Initialize ix members before calling qsort.
2621
2622 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
2623
2624         PR tree-optimization/23626
2625         * tree-cfg.c (replace_uses_by): Clean up eh info.
2626
2627 2005-09-01  DJ Delorie  <dj@redhat.com>
2628
2629         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
2630         fprintf.
2631
2632 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
2633
2634         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
2635         (rs6000_split_multireg_move): Use replace_equiv_address instead of
2636         gen_rtx_MEM.
2637
2638 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2639
2640         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
2641         do not issue warning for a variable definition following
2642         a declaration.
2643
2644 2005-09-01  Richard Henderson  <rth@redhat.com>
2645
2646         PR 23668
2647         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
2648         conversion to CONST_VECTOR.
2649
2650 2005-09-01  Richard Henderson  <rth@redhat.com>
2651
2652         PR 23676
2653         * reload1.c (reload_as_needed): Check !CALL_P before calling
2654         fixup_eh_region_note.
2655         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
2656
2657 2005-09-01  DJ Delorie  <dj@redhat.com>
2658
2659         * varasm.c (output_constant): Let the target resolve
2660         conversions of addresses to non-default pointer sizes.
2661
2662 2005-09-01  Nicolas Pitre <nico@cam.org>
2663
2664         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
2665         to alow matching ARM pre-indexed addressing mode.
2666         (arm_override_options): Remove now irrelevant comment.
2667
2668 2005-09-01  Phil Edwards  <phil@codesourcery.com>
2669
2670         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
2671         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
2672         * config/i386/vxworks.h:  Likewise.
2673         * config/i386/t-vxworksae:  New file, for VxWorks AE.
2674         * config/i386/vxworksae.h:  Likewise.
2675
2676 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
2677
2678         PR tree-optimization/23410
2679         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
2680         sequence is not wrapping during the first step.
2681
2682 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
2683
2684         PR debug/7241
2685         * dwarf2out.c (base_type_die): Compare char_type_node with
2686         TYPE_MAIN_VARIANT (type), not type.
2687
2688 2005-09-01  Richard Guenther  <rguenther@suse.de>
2689
2690         PR tree-optimization/15366
2691         * common.opt: Add -finline-functions-called-once.
2692         Put -fearly-inlining in alphabetically ordered place.
2693         * doc/invoke.texi: Document new option.
2694         * ipa-inline.c (cgraph_decide_inlining): Honour
2695         flag_inline_functions_called_once.
2696
2697 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
2698
2699         PR rtl-optimization/23478
2700         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
2701         (alloc_qty): Initialize it.
2702         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
2703         (combine_regs): Combine also n_throwing_calls_crossed fields.
2704         (find_free_reg): Don't attempt to caller-save pseudos crossing
2705         calls that might throw.
2706         * global.c (struct allocno): Add throwing_calls_crossed field.
2707         (global_alloc): Revert 2005-08-22 change.  Initialize
2708         throwing_calls_crossed.
2709         (find_reg): Don't attempt to caller-save pseudos crossing calls that
2710         might throw.
2711
2712 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
2713
2714         PR target/23649
2715         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
2716         (mask64_operand): Reinstate code prior to 2005-06-11 change.
2717         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
2718         (and64_2_operand): Tweak to use predicate.
2719         (and_operand): Adjust for mask_operand changes.
2720         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
2721         (print_operand): Likewise.
2722         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
2723         (mask64_1or2_operand): Delete.
2724         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
2725         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
2726         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
2727         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
2728         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
2729         (rotldi3_internal4): Likewise.
2730         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
2731         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
2732         (ashldi3_internal7): Likewise.
2733         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
2734         (ashldi3_internal, ashldi3_internal9 split): Likewise.
2735         (anddi3 split): Don't match mask64_operand.
2736         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
2737         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
2738         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
2739         't' splitter predicate.
2740         (movdi_internal64 + 2): Revert 2005-06-11 change.
2741
2742 2005-08-31  DJ Delorie  <dj@redhat.com>
2743
2744         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
2745         (m32c_asm_integer): Add support for 32 bit pointers.
2746
2747 2005-08-31  Richard Henderson  <rth@redhat.com>
2748
2749         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
2750         component-like references for setting MEM_NOTRAP_P.
2751
2752         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
2753         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
2754
2755 2005-08-31  Richard Henderson  <rth@redhat.com>
2756
2757         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
2758         into a pseudo before applying gen_lowpart.
2759
2760 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
2761
2762         * doc/install.texi (Specific): Update cctools version required
2763         for full functionality.
2764         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
2765         linkers as -macosx_version_min.
2766
2767 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
2768
2769         PR target/21255
2770         * sh.c (print_operand, %R and %S): Add handling of floating point
2771         registers, memory, constants and invalid operands.
2772
2773 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
2774
2775         * ipa-pure-const.c: Change dump name.
2776
2777 2005-08-31 Uros Bizjak <uros@kss-loka.si>
2778
2779         PR target/23570
2780         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
2781         to "reg_or_0_operand".
2782         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
2783
2784 2005-08-31  Dale Johannesen  <dalej@apple.com>
2785
2786         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
2787         loops that count down.
2788
2789 2005-08-31  Richard Henderson  <rth@redhat.com>
2790
2791         PR rtl-opt/23601
2792         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
2793         (fixup_eh_region_note): New.
2794         (reload_as_needed): Call it.
2795         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
2796         don't call find_many_sub_basic_blocks; call verify_flow_info.
2797         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
2798         (keep_stack_depressed): Likewise.
2799         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
2800
2801 2005-08-31  Richard Henderson  <rth@redhat.com>
2802
2803         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
2804         fp return matching.
2805
2806 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
2807
2808         * expr.c (expand_expr_real_1): Compare size of address
2809         mode to target's address mode size in deciding expansion of
2810         the constant address.
2811
2812 2005-08-31  Richard Guenther  <rguenther@suse.de>
2813
2814         PR middle-end/23477
2815         * expr.c (all_zeros_p): New function.
2816         (expand_expr_real_1): Handle the case of an all-zero
2817         non-addressable constructor separately.
2818
2819 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
2820
2821         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
2822         arguments, adjust all callers.
2823         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
2824
2825 2005-08-30  Richard Henderson  <rth@redhat.com>
2826
2827         PR target/23630
2828         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
2829         whenever the mode sizes match.
2830
2831 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
2832
2833         * calls.c (load_register_parameters): Fix comment typo.
2834         * expr.c (emit_push_insn): Comment formatting.
2835
2836 2005-08-30  Ian Lance Taylor  <ian@airs.com>
2837
2838         * config/i386/x-cygwin (host-cygwin): Change dependency from
2839         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
2840
2841 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
2842
2843         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
2844         parts of 'vals'.
2845
2846 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
2847
2848         PR middle-end/23408
2849         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
2850         call to ggc_collect.
2851
2852 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
2853
2854         PR bootstrap/21268
2855         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
2856         beginning.  Remove $(INCLUDES) from all the rules, if following
2857         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
2858
2859 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
2860
2861         PR middle-end/23484
2862         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
2863         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
2864         not constant, but maxlen is, don't set len to maxlen, rather
2865         set maxlen to len if len is a constant.
2866
2867 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
2868
2869         PR tree-optimization/23475
2870         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
2871         and counts.
2872
2873 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
2874
2875         Fix PR middle-end/22455
2876
2877         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
2878         Checksum only the parts of the tree that exist for the tree code.
2879
2880 2005-08-28  Dale Johannesen  <dalej@apple.com>
2881
2882         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
2883
2884 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
2885
2886         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
2887
2888 2005-08-28  Richard Henderson  <rth@redhat.com>
2889
2890         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
2891         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
2892         of char_type_node.
2893
2894 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
2895
2896         PR ada/23593
2897         * builtins.c (get_memory_rtx): Don't strip nops
2898         in between COMPONENT_REFs.
2899
2900 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
2901
2902         PR middle-end/23463
2903         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
2904         types.
2905         (gimplify_modify_expr): Check for zero sized types and gimplify the
2906         rhs and lhs as statements.
2907
2908 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
2909
2910         PR libgcj/23508
2911         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
2912         state for return address column of signal frames.
2913
2914 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
2915
2916         PR target/23539
2917         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
2918         bytes >= 2 not bytes == 2.
2919         (expand_block_move): Same.
2920
2921 2005-08-27  Richard Guenther  <rguenther@suse.de>
2922
2923         PR target/23575
2924         * config/i386/sse.md (sse2_movsd): Add missing closing
2925         braces.
2926
2927 2005-08-27  Paul Brook  <paul@codesourcery.com>
2928
2929         * genrecog.c (enum decision_type): Add DT_num_insns.
2930         (struct decision_test): Add u.num_insns.
2931         (add_to_sequence): Add DT_num_insns test.
2932         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
2933         (write_cond, debug_decision_2): Ditto.
2934         (change_state): Assume peep2_next_insn never fails.
2935         Remove "afterward" argument.
2936         (write afterward, write_tree): Update to match.
2937         * recog.c (peep2_current_count): New variable.
2938         (peep2_next_insn): Check it.
2939         (peephole2_optimize): Set peep2_current_count.
2940         * recog.h (peep2_current_count): Declare.
2941
2942 2005-08-26  Josh Conner  <jconner@apple.com>
2943
2944         PR middle-end/23584
2945         * ipa-pure-const.c (check_tree): Check for volatile-ness
2946         when considering a dereference.
2947
2948 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
2949
2950         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
2951
2952 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
2953
2954         PR rtl-optimization/23561
2955         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
2956         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
2957         at most LEN bytes long memory fits into the field.
2958         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
2959         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
2960         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
2961
2962 2005-08-26  Richard Henderson  <rth@redhat.com>
2963
2964         PR rtl-opt/23560
2965         * loop.c (biased_biv_may_wrap_p): New.
2966         (maybe_eliminate_biv_1): Use it to suppress non-equality
2967         comparison transformations.  Delete disabled code.
2968
2969 2005-08-26  Ian Lance Taylor  <ian@airs.com>
2970
2971         * combine.c (make_extraction): Avoid reference outside object.
2972
2973 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
2974
2975         * stor-layout.c (finalize_type_size): Restore behaviour for
2976         non-aggregate types to the status quo ante of the patch for
2977         pr 23467.  Document why it matters.
2978
2979 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
2980
2981         PR c/23506
2982         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
2983         array by one element, initialize the BT_LAST element with NULL.
2984
2985 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
2986
2987         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
2988         optimizing for size.
2989         (plus_eqsi): Same.
2990         (compare_plus_eqsi): Same.
2991         (plus_eqsi_compare): Same.
2992         (neg_eq0<mode>): Same.
2993         (neg_eq<mode>): Same.
2994
2995         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
2996         PROCESSOR_POWER4.
2997
2998 2005-08-26  Nick Clifton  <nickc@redhat.com>
2999
3000         * config/v850/v850.c (ep_memory_operand): Return FALSE if
3001         TARGET_EP is not defined.
3002         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
3003         TARGET_EP is enabled.
3004         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
3005         * config/v850/v850.md (save_all_interrupt): Only use the EP
3006         register if TARGET_EP is defined.
3007         (restore_all_interrupt): Likewise.
3008         * config/v850/lib1funcs.asm: Update functions so that the EP
3009         register is only used if __EP__ is defined.
3010
3011 2005-08-26  David Ung  <davidu@mips.com>
3012
3013         * config/mips/mips.c (mips_expand_prologue): Handle case when
3014         generating for MIPS16 and the outgoing argument area is more than
3015         SMALL_OPERAND. Use the frame pointer as temporary to generate the
3016         add instruction.
3017
3018 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
3019
3020         * config/crx/crx.md: Make doloop_end pattern usage controllable
3021         via mloop-nesting=<max-nesting> command line switch. Make sure
3022         the combiner cannot use doloop_end_<mode> in an illegal way.
3023         * config/crx/crx.c: Use regs up to r6 for argument passing.
3024         Refine crx_address_cost (non cst4 displacements are expensive).
3025         * config/crx/crx.opt: Add switch for mloop-nesting=.
3026
3027 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
3028
3029         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
3030         (UNSPEC_MVST): New constant.
3031
3032 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
3033
3034         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
3035         Reject operands containing eliminable registers.
3036         * testsuite/gcc.dg/20050825-1.c: New testcase.
3037
3038 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
3039             Jan Hubicka  <jh@suse.cz>
3040
3041         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
3042
3043 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
3044
3045         PR tree-optimization/23546
3046         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
3047         and REAL_CST nodes.
3048
3049 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
3050
3051         * params.def (PARAM_MIN_SPEC_PROB): New.
3052         * sched-rgn.c (MIN_PROBABILITY): Delete.
3053         (compute_trg_info): Convert to PARAM_VALUE.
3054         * doc/invoke.texi (param): Document min-spec-prob.
3055
3056 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
3057
3058         * config/darwin.h: define __PIC__
3059         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
3060         TARGET_OS_CPP_BUILTINS macro.
3061
3062 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
3063
3064         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
3065         yesterday.
3066
3067 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
3068
3069         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
3070         to duplicate_block.
3071         * cfghooks.c (duplicate_block): Added position where to place
3072         new block as argument.
3073         * cfghooks.h (duplicate_block): Declaration changed.
3074         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
3075         duplicate_block.
3076         * cfglayout.h (copy_bbs): Declaration changed.
3077         * cfgloop.h (loop_version): Declaration changed.
3078         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
3079         position to copy_bbs.
3080         (loop_version): Pass position to duplicate_loop_to_header_edge.
3081         Add place_after argument and position new blocks according to
3082         it.
3083         * modulo-sched.c (sms_schedule): Pass place_after argument
3084         to loop_version.
3085         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
3086         * tree-cfg.c (split_edge_bb_loc): New function.
3087         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
3088         to determine position of new blocks.
3089         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
3090         to loop_version.
3091         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
3092         argument to duplicate_block.
3093         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3094         Pass position to copy_bbs.
3095
3096 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
3097
3098         * fold-const.c (ptr_difference_const): Use
3099         cst_and_fits_in_hwi instead of host_integerp.
3100
3101 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
3102
3103         * config/darwin.c (gen_pic_offset): New.
3104         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
3105         Use it.
3106
3107 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
3108
3109         PR tree-optimization/23486
3110         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
3111
3112 2005-08-23  Phil Edwards  <phil@codesourcery.com>
3113
3114         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
3115         remove use_collect2.
3116         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
3117
3118         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
3119         configuration files to override the default value.
3120
3121         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
3122         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
3123         * config/vx-common.h:  New file, split out from...
3124         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
3125         * config/vxworksae.h:  New file, for VxWorks AE.
3126         * config/vxworks.opt:  New file.
3127         * config/vxlib.c:  Update for VxWorks 6.
3128
3129         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
3130         other MULTILIB_* variables appropriately.
3131         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
3132         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
3133         * config/rs6000/vxworks.h:  Update for VxWorks 6.
3134         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
3135
3136 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
3137
3138         PR target/20799
3139         * config/darwin.c (machopic_select_section): Remove the hack to
3140         mark "::operator new" and "::operator delete" for coalescing
3141         even though they are not weak.
3142
3143 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
3144
3145         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
3146         * configure: Regenerate.
3147
3148 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
3149
3150         PR middle-end/23517
3151         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
3152         between vectors.
3153         * convert.c (convert_to_integer, convert_to_vector): Likewise.
3154         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
3155         Likewise.
3156
3157 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
3158
3159         * config/rs6000/predicates.md (equality_operator): New.
3160         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
3161         comparison with a large constant.
3162
3163 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
3164
3165         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
3166
3167 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
3168
3169         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
3170         registers is even, and we have a hardware double precision fp,
3171         align the buffer.
3172         (sh_gimplify_va_arg_expr): For floating point arguments, consider
3173         size of current argument when checking if argument was passed in
3174         registers.
3175
3176         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
3177
3178         PR middle-end/23467
3179         * stor-layout.c (finalize_type_size): Dont override
3180         existing alignment with a smaller alignment from the mode.
3181
3182 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
3183
3184         * lambda-code.c (lambda_vector_lexico_pos): Moved...
3185         * lambda.h (lambda_vector_lexico_pos): ... here.
3186         * tree-data-ref.c (build_classic_dist_vector): Return false when
3187         the distance vector is lexicographically negative.
3188
3189 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
3190
3191         PR tree-optimization/23511
3192         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
3193         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
3194
3195 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
3196
3197         PR tree-optimization/22043
3198         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
3199         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
3200         If ALLOW_FLEXARR, handle types ending with flexible array member.
3201         Pass false as second argument to recursive count_type_elements calls.
3202         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
3203         argument to count_type_elements call.
3204         * tree-sra.c (decide_block_copy): Likewise.
3205         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
3206         for a constant-sized object, set cleared as well.  Pass true as
3207         second argument to count_type_elements call.
3208
3209 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
3210
3211         PR target/21571
3212         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
3213         from legitimate_small_data_p, and make global.  Update use.
3214         Remove forward declaration.
3215         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
3216         Declare.
3217         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
3218
3219 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
3220
3221         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
3222         of scratch intermediates.
3223         (eq<mode>_compare): Same.
3224         (neg_eq0<mode>): New.
3225         (neg_eq<mode>): Convert to define_insn_and_split.
3226
3227 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
3228
3229         PR target/23070
3230         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
3231         stdarg functions, set/clear the fp marker even when no variable
3232         args are passed.
3233         * config/rs6000/sysv4.opt (mprototype): Describe.
3234
3235 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
3236
3237         PR rtl-optimization/23478
3238         * regs.h (reg_info): Add throw_calls_crossed.
3239         (REG_N_THROWING_CALLS_CROSSED): Define.
3240         * flow.c (allocate_reg_life_data): Initialize
3241         REG_N_THROWING_CALLS_CROSSED.
3242         (propagate_one_insn, attempt_auto_inc): Update
3243         REG_N_THROWING_CALLS_CROSSED.
3244         * global.c (global_alloc): Don't allocate pseudos across
3245         calls that may throw.
3246
3247 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
3248
3249         PR c/18715
3250         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
3251         value is inbetween the range if we did not find an exact match.
3252
3253 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
3254
3255         * doc/invoke.texi (Option Summary): Add ms1 options.
3256         * doc/extend.texi: Document interrupt handler attribute for ms1.
3257         * doc/md.texi: Document ms1 constraints.
3258         * config.gcc: Add ms1-*-elf.
3259         * config/ms1/ms1.h: New.
3260         * config/ms1/ms1.c: New.
3261         * config/ms1/ms1.md: New.
3262         * config/ms1/ms1-protos.h: New.
3263         * config/ms1/ABI.txt: New.
3264         * config/ms1/crti.asm: New.
3265         * config/ms1/crtn.asm: New.
3266         * config/ms1/lib2extra-funcs.c: New.
3267         * config/ms1/t-ms1: New.
3268         * config/ms1/ms1.opt: New.
3269
3270 2005-08-22 Ira Rosen <irar@il.ibm.com>
3271
3272         * config/rs6000/altivec.md (xorv4sf3): New.
3273         (negv4sf2, neg<mode>2): Likewise.
3274
3275 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
3276
3277         PR target/23485
3278         * config/ia64/ia64.md (divsi3): Check divide by zero.
3279         (udivsi3): Likewise.
3280         (divdi3): Likewise.
3281         (udivdi3): Likewise.
3282
3283 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
3284
3285         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
3286         up to elem_bitsize bits, not max_bitsize.
3287
3288 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
3289
3290         PR tree-optimization/23433
3291         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
3292         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
3293
3294 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
3295
3296         PR tree-optimization/23434
3297         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
3298         the iteration bound is not an INTEGER_CST.
3299
3300 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
3301
3302         * tree-vect-transform.c (get_initial_def_for_reduction): Set
3303         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
3304         NULL if need_epilog_adjust is false.
3305         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
3306         Case 3 always peels first itration, not just for PLUS case, and no need
3307         to use scalar_initial_def here. Create an epilog adjustment only if
3308         scalar_initial_def is not NULL.
3309
3310         (vectorizable_reduction): Remove assert.
3311
3312 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3313
3314         PR target/23485
3315         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
3316         (__moddi3): Likewise.
3317         (__udivdi3): Likewise.
3318         (__umoddi3): Likewise.
3319         (__divsi3): Likewise.
3320         (__modsi3): Likewise.
3321         (__udivsi3): Likewise.
3322         (__umodsi3): Likewise.
3323
3324 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
3325
3326         * tree-pass.h (TDF_GRAPH): Define.
3327         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
3328         * passes.c (finish_optimization_passes): Only call
3329         finish_graph_dump_file if TDF_GRAPH is set.
3330         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
3331         NULL.  Set TDF_GRAPH bit.
3332         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
3333
3334 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
3335
3336         * arm.h (arm_stack_offsets): Add locals_base field.
3337         * arm.c (arm_get_frame_offsets): Compute it.
3338         (thumb_compute_initial_elimination offset): Make the Thumb frame
3339         pointer point to the base of the local variables.
3340         (thumb_expand_prologue): Update accordingly.
3341         (thumb_expand_epilogue): Likewise.
3342
3343         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
3344         mode of clobbered scratch to DImode.  Handle a case that's known to
3345         need this.
3346
3347 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
3348
3349         * config/rs6000/rs6000.md (gt0<mode>): Delete.
3350         (gt0<mode>_compare): Delete.
3351         (neg_gt0<mode>): Delete.
3352
3353 2005-08-19  Eric Christopher  <echristo@apple.com>
3354
3355         * optabs.h: Change CTI_ to COI_.
3356         * optabs.c: Ditto.
3357
3358 2005-08-19  James E Wilson  <wilson@specifix.com>
3359
3360         * builtins.c (expand_builtin_return_addr): Set
3361         current_function_accesses_prior_frames when count != 0.  Use
3362         frame_pointer_rtx when count == 0.
3363         * function.h (struct function): Add accesses_prior_frames field.
3364         (current_function_accesses_prior_frames): Define.
3365         * reload1.c (init_elim_table): Check
3366         current_function_accesses_prior_frames.
3367         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
3368
3369 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
3370
3371         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
3372         indicator.  Return true if the flowgraph changed during
3373         cleanup.
3374
3375 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
3376
3377         PR 23476
3378         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
3379         conditional expression before testing its value.
3380
3381 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
3382
3383         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
3384
3385 2005-08-19  Devang Patel  <dpatel@apple.com>
3386
3387         PR tree-optimization/23048
3388         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
3389         third parameter. Check whether latch is dominated by exit
3390         block or not.
3391         (if_convertible_loop_p): Supply exit block itself to
3392         if_convertible_bb_p.
3393
3394 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
3395
3396         PR target/23473
3397         * arm.md (arm_load_pic_register): Change argument to the mask of
3398         saved registers.  Call thumb_find_work_register if we need a
3399         scratch register on Thumb.
3400         (arm_expand_prologue): Pass empty register set to
3401         arm_load_pic_register.
3402         (thumb_expand_prologue): Pass live_regs_mask directly to
3403         arm_load_pic_register.
3404         * arm-protos.h (arm_load_pic_register): Update prototype.
3405
3406 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
3407
3408         * sh.c (find_sole_member): New function.
3409         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
3410         if the record's alignment is larger than the size of its only member.
3411
3412 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
3413
3414         PR target/23436
3415         * arm.c (thumb_legitimize_reload_address): New function.
3416         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
3417         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
3418
3419 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
3420
3421         * config/crx/crx.c: Implement crx_decompose_address. Reject
3422         symbolic displacements since CRX register relative adressing
3423         mode can't handle unsigned 32-bit values as displacements.
3424         * config/crx/crx.h: Simplify definitions, remove redundant
3425         parenthesis and obsolete macros.
3426         * config/crx/crx.opt: Add new switch for debugging addresses.
3427         * config/crx/crx-protos.h: Add new declarations for above.
3428
3429 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
3430
3431         PR middle-end/20624
3432         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
3433         looking past it.
3434
3435 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3436
3437         * collect2.c (dup2): Delete.
3438         * configure.ac: Don't check for dup2.
3439
3440         * config.in, configure: Regenerate.
3441
3442 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
3443
3444         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
3445         record with the type of its only member.
3446
3447 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
3448
3449         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
3450         define_insn_and_split.
3451         (plus_ltu<mode>_compare): Same.
3452         (gtu<mode>_compare): Same.
3453         (plus_gtu<mode>_compare): Same.
3454
3455 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
3456
3457         PR tree-optimization/22228
3458         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
3459         todo_flags_start.
3460         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
3461         are recorded in vect_vnames_to_rename for renaming.
3462         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
3463         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
3464         in vect_vnames_to_rename.
3465         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
3466         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
3467
3468 2005-08-18  Jan Hubicka  <jh@suse.cz>
3469
3470         PR c++/22034
3471         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
3472         info only for local statics, not for member variables.
3473
3474 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3475
3476         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
3477
3478 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3479
3480         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
3481
3482 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
3483
3484         PR middle-end/16045
3485         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
3486
3487 2005-08-17  James E Wilson  <wilson@specifix.com>
3488
3489         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
3490         array size check.
3491
3492 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
3493
3494         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
3495         (leu<mode>_compare): Same.
3496         (plus_leu<mode>): Same.
3497         (neg_leu<mode>): Same.
3498         (and_neg_leu<mode): Same.
3499         (ltu<mode>_compare): Same.
3500         (plus_ltu<mode>): Same.
3501         (geu<mode>): Same.
3502         (geu<mode>_compare): Same.
3503         (plus_geu<mode>): Same.
3504         (neg_geu<mode>): Same.
3505         (and_neg_geu<mode>): Same.
3506         (plus_gt<mode>): Same.
3507         (gtu<mode>_compare): Same.
3508         (plus_gtu<mode>): Same.
3509
3510 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
3511
3512         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
3513         Move call_table_data to end.  Delete spurious .text.
3514         (callt_save_all_interrupt): Fix comment typo.
3515
3516 2005-08-17  James E Wilson  <wilson@specifix.com>
3517             Kevin Winchester  <winchester@amirix.com>
3518
3519         PR target/21684
3520         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
3521
3522 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
3523
3524         PR target/23268
3525         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.