OSDN Git Service

6e274dafd73f1260bbf5b8c5d8b8a0ef886503e8
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
2
3         PR middle-end/23492
4         * tree-inline.c (setup_one_parameter): If the init_stmt
5         is NULL, don't insert the statement.
6
7 2005-10-30  Jan Hubicka  <jh@suse.cz>
8
9         PR tree-optimization/24172
10         * tree-inline.c (copy_body_r): Unshare the substituted value first.
11
12 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
13
14         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
15         constants for hosts with long != 32 bits.
16
17 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
18
19         PR middle-end/24093
20         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
21
22 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
23
24         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
25         (TARGET_MS1_16_002): New.
26         (TARGET_MS1_16_003): New.
27
28         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
29         ("*decrement_and_branch_until_zero_no_clobber"): New.
30         Add corresponding splitter for decrement_and_branch_until_zero
31         instruction.
32         Key all decrement_and_branch_until_zero patterns off of
33         TARGET_MS1_16_003.
34
35 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
36
37         PR middle-end/24362
38         * tree-complex.c (extract_component): Treat RESULT_DECL
39         like the rest of the decls.
40
41 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
42
43         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
44         indirect call to _mcount if the function needs a static chain.
45
46 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
47             Caroline Tice  <ctice@apple.com>
48
49         PR rtl-optimization/24460
50         * dwarf2out.c (have_switched_text_sections): New boolean variable.
51         (dwarf2out_switch_text_section): Set it to true instead of
52         incrementing separate_line_info_table_in_use.
53         (output_loc_list): Additionally test have_switched_text_sections.
54         (output_ranges): Likewise.
55         (dwarf2out_finish): Likewise.
56         * varasm.c (assemble_start_function): Do not call
57         insert_section_boundary_note.
58         (assemble_end_function): If flag_reorder_blocks_and_partition,
59         switch to the function's section before emitting the .size directive.
60         * bb-reorder.c (insert_section_boundary_note): Staticify.
61         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
62         * output.h (insert_section_boundary_note): Delete.
63
64 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
65
66         PR c/23103
67         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
68         instead of pointer equality when comparing types.
69
70 2005-10-24  James E. Wilson  <wilson@specifix.com>
71
72         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
73         add_dependence_list_and_free calls.
74
75 2005-10-24  Steven Bosscher  <stevenb@suse.de>
76
77         * contrib.texi: Add the names of the LLNL folks who donated
78         Cray pointer support for gfortran.
79
80 2005-10-24  Steven Bosscher  <stevenb@suse.de>
81
82         PR tree-optimization/24225
83         * profile.c (branch_prob): Look from end to start through a
84         basic block when looking for a locus.
85
86 2005-10-24  Richard Henderson  <rth@redhat.com>
87
88         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
89         parallel.
90         (hppa_expand_prologue): Likewise.
91
92 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
93
94         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
95         (NO_DEFERRED_PROFILE_COUNTERS): Define.
96         * pa.h (NO_PROFILE_COUNTERS): Define.
97         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
98         (funcdef_nos): New vector to hold label numbers of deferred profile
99         counters.
100         (output_deferred_profile_counters): New function.
101         (hppa_profile_hook): Push label number onto funcdef_nos.
102         (pa_hpux_file_end): Call output_deferred_profile_counters if
103         NO_DEFERRED_PROFILE_COUNTERS is false.
104
105         * pa-protos.h (get_deferred_plabel): New prototype.
106         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
107         Make global.
108         (output_call): Adjust calls.
109
110 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
111
112         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
113         peculiarity of GOT/TOC section usage.
114
115 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
116
117         PR objc/24435
118          * c-common.c (constant_string_class_name): Add documentation.
119
120 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
121
122         PR target/23832
123         * recog.c (peephole2_optimize): Increment peep2_current_count
124         only when the slot is empty.
125
126 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
127
128         PR ada/23957
129         * except.c (output_function_exception_table): Call
130         assemble_external_libcall if we need a personality function.
131
132 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
133
134         PR rtl-optimization/24460
135         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
136         set the basic block for barriers.
137
138 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
139
140         * var-tracking.c (vt_initialize): Initialize post.
141
142 2005-10-21  Devang Patel  <dpatel@apple.com>
143
144         PR/24220
145         * c-common.c (vector_types_convertible_p): Check vector element type.
146         
147 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
148
149         * config/sh/sh.c (prepare_move_operands): Handle the address
150         constant which is a tls symbolic address plus a constant.
151
152 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
153
154         PR driver/24473
155         * gcc.c (main): Use the correct counter for erroring out
156         about mulitple files.
157
158 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
159
160         PR target/24465
161         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
162         use r2 for 64-bit tls .got access.
163
164 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
165
166         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
167         TRUTH_OR_EXPR.
168
169 2005-10-20  Steven Bosscher  <stevenb@suse.de>
170
171         PR tree-optimization/24307
172         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
173
174 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
175
176         PR middle-end/24295
177         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
178         alias targets.
179         * varasm.c (find_decl_and_mark_needed): After cgraph global info
180         is ready, stop marking functions, but still mark variables.
181
182 2005-10-20  Richard Guenther  <rguenther@suse.de>
183
184         PR c++/24439
185         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
186         void type operands.
187
188 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
189
190         PR rtl-optimization/23585
191         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
192         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
193         (may_trap_p_1): New predicate extracted from...
194         (may_trap_p): ... here.  Invoke may_trap_p_1.
195         (may_trap_or_fault_p): New predicate.
196         * rtl.h (may_trap_or_fault_p): Declare it.
197         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
198         instead of may_trap_p.
199         (steal_delay_list_from_fallthrough): Likewise.
200         (fill_simple_delay_slots): Likewise.
201         (fill_slots_from_thread): Likewise.
202         * function.c (pad_to_arg_alignment): Rework comment about
203         SPARC_STACK_BOUNDARY_HACK.
204         * config/sparc/sparc.h: Likewise.
205
206 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
207
208         * config/s390/s390.c (s390_expand_insv): New.
209         * config/s390/s390-protos.h (s390_expand_insv): Declare.
210         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
211         ("icm_hi"): Remove mode attribute.
212         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
213         Adjust all uses.
214         ("*extracthi", "*extractqi"): Remove.
215         (extv<mode>", "*extzv<mode>"): New.
216         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
217         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
218
219 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
220
221         * cfgexpand.c (discover_nonconstant_array_refs_r,
222         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
223         (tree_expand_cfg): Call discover_nonconstant_array_refs.
224         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
225         discover_nonconstant_array_refs.
226
227 2005-10-19  Steven Bosscher  <stevenb@suse.de>
228
229         PR c/23228
230         * c-decl.c (pop_scope): Don't warn about an unused variable
231         if it is marked with TREE_NO_WARNING.
232         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
233         somenow mismatch and olddecl is to be replaced.
234
235 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
236
237         PR middle-end/23199
238         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
239         whether registers live on the edge can be saved/restored.
240
241 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
242
243         * config/sh/sh.c (fixup_mova): Skip notes.
244
245 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
246
247         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
248         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
249         (s390_can_eliminate): Handle BASE_REGNUM elimination.
250         (s390_initial_elimination_offset): Likewise.
251         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
252         register on TARGET_ZARCH targets.
253         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
254         (INITIAL_FRAME_POINTER_OFFSET): Remove.
255         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
256         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
257
258 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
259
260         * config/s390/s390.md: Comment describing output modifiers updated.
261         * config/s390/s390.c (print_operand): Likewise.
262
263 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
264
265         * config/s390/s390.c (override_options): Added check for -mstack-size
266         64k limitation.
267         * doc/invoke.texi: Mention that limit in the documenation.
268
269 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
270
271         PR #19672
272         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
273
274 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
275
276         Fix PR tree-optimization/24231
277
278         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
279         (compute_avail): Ditto.
280
281 2005-10-18  Richard Henderson  <rth@redhat.com>
282
283         PR target/24428
284         * config/i386/i386.c (legitimate_constant_p): Check
285         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
286         if LABEL_REF.
287         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
288         (legitimate_pic_address_disp_p): Reorg CONST checking to make
289         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
290         directly.
291         (print_operand_address): Likewise.
292         * config/i386/predicates.md (x86_64_immediate_operand): Test
293         SYMBOL_REF_TLS_MODEL properly inside CONST.
294         (x86_64_zext_immediate_operand): Likewise.
295         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
296         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
297         * config/i386/i386-protos.h: Remove predicates.md entries.
298
299 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
300
301         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
302         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
303
304 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
305             Ian Lance Taylor <ian@airs.com>
306
307         PR middle-end/23522
308         * fold-const.c (fold_widened_comparison): Do not allow range based
309         constant folding when right operand cannot be unwidened.
310
311 2005-10-17  Richard Henderson  <rth@redhat.com>
312
313         * builtins.c (expand_builtin_synchronize): Build a new-style asm
314         with a memory clobber.
315
316 2005-10-17  James E Wilson  <wilson@specifix.com>
317
318         PR rtl-optimization/17356
319         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
320         checking for EDGE_EH.
321
322 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
323
324         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
325         the slot on an even boundary for any type with 16-byte alignment.
326
327 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
328
329         PR target/23424
330         * md.texi (Modifiers) <%>: Clarify that % doesn't work
331         after register allocation.
332
333 2005-10-17  DJ Delorie  <dj@redhat.com>
334
335         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
336         as frame related.
337
338 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
339
340         PR c++/22551
341         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
342         overflow flags.
343
344 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
345
346         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
347         to 2 if it's already non-zero.
348         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
349         is set and warn about it if flag_schedule_insns is 1.
350
351 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
352
353         * config/crx/crx.md: Compare-and-branch instructions need to
354         invalidate CC.
355
356 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
357
358         PR target/24315
359         * config/i386/i386.md (*pushdi2_rex64 splitter)
360         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
361         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
362         flow2 pass only when (optimize > 0 && flag_peephole2).
363
364 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
365
366         PR driver/22544
367         * gcc.c (have_c): New static variable.
368         (have_o): Likewise.
369         (process_command): Remove declation of have_c.
370         Set have_o to 1 when handling -o.
371         (main): Add a fatel error if there are multiple
372         files specified and -o and -c/-S is passed witout
373         -combine or multiple languages.
374
375 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
376
377         Fix PR tree-optimization/22444
378         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
379         Assert that we don't hit something with subvars.
380         (setup_pointers_and_addressables): Don't add things with subvars,
381         because we'll already process the subvars for aliasing purposes.
382
383 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
384
385         PR target/23424
386         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
387         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
388         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
389         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
390         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
391         swapped, alternatives for the R constraint.
392
393         PR middle-end/24341
394         * builtins.c (get_builtin_sync_mode): Make unlimited
395         mode_for_size request.
396
397 2005-10-15  Richard Henderson  <rth@redhat.com>
398
399         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
400         (gimplify_expr): ... here.
401         (gimplify_compound_lval): Use it in initial scan loop.  Allow
402         fb_lvalue in base expression.
403
404 2005-10-15  Richard Henderson  <rth@redhat.com>
405
406         PR 23714
407         * builtins.c (expand_builtin_trap): Export.
408         * expr.h (expand_builtin_trap): Declare.
409         * expr.c (expand_assignment): Emit a trap for integral offsets 
410         from registers that weren't reduced to bitpos.
411
412         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
413         (mark_array_ref_addressable): Remove.
414         * tree-flow.h (mark_array_ref_addressable): Remove.
415         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
416
417 2005-10-15  James E Wilson  <wilson@specifix.com>
418
419         PR target/24232
420         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
421         (add_dependence_list_and_free): Likewise.
422         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
423         call.
424
425 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
426
427         PR 23141
428         PR 23142
429         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
430         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
431         anti-range.
432         (vrp_visit_phi_node): Only prevent infinite iterations when
433         the previous result and the new result are both VR_RANGEs.
434
435 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
436
437         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
438         function comment.
439
440 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
441
442         PR c/23439
443         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
444         to initialize loc.
445
446 2005-10-14  Per Bothner  <per@bothner.com>
447
448         PR preprocessor/21250
449         * c-ppoutput.c (print_line): Print internal line 0 as 1.
450
451 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
452
453         PR c++/22551
454         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
455         overflow flags.  Refactor some conditionals.
456
457 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
458
459         PR tree-opt/21304
460         * tree-dfa.c (add_referenced_var): Only look at decls which
461         have TREE_CONSTANT or TREE_READONLY set instead of if
462         !TREE_PUBLIC or !TREE_CONSTANT.
463
464 2005-10-13  James E Wilson  <wilson@specifix.com>
465
466         * doc/invoke.texi: For -x, add f95-cpp-input.
467         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
468
469 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
470
471         PR tree-optimization/24262
472         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
473         in loop all the time.
474
475 2005-10-12  Richard Henderson  <rth@redhat.com>
476
477         PR c/24255
478         * tree.h (DECL_TRANSPARENT_UNION): Remove.
479         * function.c (assign_parm_find_data_types): Don't support it.
480         * print-tree.c (print_node): Likewise.
481         * c-common.c (handle_transparent_union_attribute): Likewise.
482         Use build_duplicate_type.
483         * tree-inline.c (remap_type_1): Split out of remap_type;
484         properly remap aggregate fields.
485         (build_duplicate_type): New.
486         * doc/extend.texi (Variable Attributes): Remove documentation
487         for transparent_union.
488
489 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
490
491         PR target/24284
492         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
493         (gen_stack_pointer_dec): Likewise.
494
495 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
496
497         PR middle-end/21275
498         PR middle-end/21766
499         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
500         target hook.
501         (struct cxx): Add adjust_class_at_definition target hook.
502         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
503         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
504         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to 
505         hook_void_tree. Add to TARGET_CXX.
506         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
507         dllimport_flag.
508         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
509         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
510         instead of attribute. Check for dllexport override.  Warn if
511         inconsistent dll linkage. Don't lose old dllimport if decl has
512         had address referenced.   Tweak lookup of dllimport atribute.  
513         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
514         for target specific rules.  Don't add dllimport attribute if
515         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
516         dllimport attribute. 
517         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
518         * varasm.c (initializer_constant_valid_p): Replace
519         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
520
521         PR target/21801
522         PR target/23589
523         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to 
524         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
525         (i[34567]86-*-mingw32*): Likewise.
526
527         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
528         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
529                         
530         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
531         C++-specific code. Change return value to bool. 
532         (i386_pe_dllimport_p): Likewise.
533         (associated_type): Simplify and make language-independent
534         (i386_pe_encode_section_info): Replace override of ambiguous
535         dllimport symbol refs with a gcc_assert.
536         (i386_pe_valid_dllimport_attribute_p): Define.
537         * config/i386/winnt-cxx.c: New file. Define C++ versions of
538         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
539         i386_pe_adjust_class_at_definition.
540         * config/i386/winnt-stubs.c: New file. Define stub versions of
541         lang-specific functions.
542         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
543         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p, 
544         i386_pe_adjust_class_at_definition.
545         (i386_pe_valid_dllimport_attribute_p): Declare. 
546         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
547         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
548         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
549
550         PR target/19704
551         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
552         dllimport attribute with test of DECL_DLLIMPORT_P.
553
554 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
555
556         * combine.c (make_extraction): Correct offset computation.
557
558 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
559
560         * config/cris/t-linux (LIMITS_H_TEST): Define.
561
562 2005-10-12  Richard Henderson  <rth@redhat.com>
563
564         PR rtl-opt/23324
565         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
566
567 2005-10-12  Richard Guenther  <rguenther@suse.de>
568
569         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
570
571 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
572
573         PR c++/19964
574         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
575         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
576         type.
577
578 2005-10-12  Richard Guenther  <rguenther@suse.de>
579
580         PR c++/23799
581         * varasm.c (output_constant): Correct typo from previous
582         patch by DJ.
583
584 2005-10-11  Ian Lance Taylor  <ian@airs.com>
585
586         PR rtl-optimization/13931
587         * combine.c: Revert patch of 2003-05-14, and:
588         (try_combine): Only set elim_i1 and elim_i2 if the destination is
589         completely killed in the appropriate insn.
590         (distribute_notes): Don't skip multiple hard register test for
591         elim_i1 and elim_i2.
592
593 2005-10-11  Richard Henderson  <rth@redhat.com>
594
595         PR c/24255
596         * c-typeck.c (convert_for_assignment): Use build_constructor_single
597         to initialize a transparent union instead of a nop_expr.
598
599 2005-10-11  Richard Henderson  <rth@redhat.com>
600
601         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
602         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
603         (tree_ssa_dce_loop): Call scev_reset.
604
605         PR tree-opt/24300
606         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
607         * tree-ssa-dce.c: Include cfgloop.h.
608         (tree_ssa_dce_loop, pass_dce_loop): New.
609         * tree-pass.h (pass_dce_loop): Declare it.
610         * passes.c (init_optimization_passes): Use it.
611
612 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
613
614         PR middle-end/24263 
615         * convert.c (convert_to_real): Revert 2005-10-05 patch.
616         Only apply the optimization for rounding builtins if the inner
617         cast is also an extension.
618
619 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
620
621         PR tree-opt/23946
622         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
623         mark_new_vars_to_rename instead of update_stmt.
624
625 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
626
627         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
628
629 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
630
631         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
632         for setting MMX register to 0 rather than mmx.
633
634 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
635
636         PR target/12098
637         * configure.ac: Move gas check from mips specific case to common case.
638         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
639         * configure: Regenerate
640         * doc/install.texi: Update.
641
642 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
643
644         PR target/24284
645         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
646
647 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
648
649         * gcc.c (do_spec_1): Accept numeric characters in file name
650         suffixes.
651
652 2005-10-10  Nick Clifton  <nickc@redhat.com>
653
654         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
655         describing the deleted arm_gen_rotated_half_load function.
656
657 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
658
659         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
660         __fpscr_values.
661
662 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
663
664         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
665         gnu_ld assignments.
666         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
667         (EXTRA_MULTILIB_PARTS): Define.
668         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
669         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
670         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
671         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
672         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
673         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
674
675 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
676
677         PR tree-optimization/24226
678         * tree-cfg.c (remove_bb): Clean up unreachable loops.
679         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
680         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
681         Export.
682
683 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
684
685         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
686
687 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
688
689         PR target/24136
690         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
691         Rewrite for no need for the early clobber.
692
693 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
694
695         Merge from csl-arm-branch:
696         2005-09-07  Paul Brook  <paul@codesourcery.com>
697         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
698         space to string.
699
700         2005-04-30  Paul Brook  <paul@codesourcery.com>
701         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
702         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
703
704         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
705         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
706         (arm_override_options): Use TARGET_AAPCS_BASED.
707         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
708         (PTRDIFF_TYPE): Use int for AAPCS.
709         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
710         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
711         (DEFAULT_SHORT_ENUMS): Delete.
712         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
713
714         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
715         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
716         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
717         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
718
719         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
720         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
721
722         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
723         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
724  
725         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
726         * config.gcc (arm*-*-linux-gnueabi): Add it.
727         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
728         redefining it.
729         (TARGET_OS_CPP_BUILTINS): Likeiwse.
730         * config/arm/linux-eabi.h: New file.
731         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
732         (LINUX_TARET_LINK_SPEC): Likewise.
733         (LINK_SPEC): Use it.
734         * config/arm/t-linux-eabi: New file.
735
736 2005-10-08  Steven Bosscher  <stevenb@suse.de>
737
738         PR other/22202
739         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
740         spaces.
741         (PARAM_SMS_DFA_HISTORY): Likewise.
742
743 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
744
745         PR middle-end/23150
746         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
747         (load_register_parameters): Call it.
748         (check_sibcall_argument_overlap_1): Likewise.
749         (store_one_arg): Likewise.
750
751 2005-10-07  James E. Wilson  <wilson@specifix.com>
752
753         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
754         DImode not VECINT24 for operand 2.
755
756         PR target/23644
757         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
758         -mtune-arch.
759
760         PR target/24193
761         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
762         fr_spill): Use destination_operand for operand 0.
763
764 2005-10-07  DJ Delorie  <dj@redhat.com>
765
766         * varasm.c (output_constant): Limit error to expanding
767         conversions.
768
769 2005-10-07  Richard Guenther  <rguenther@suse.de>
770
771         PR middle-end/24227
772         * fold-const.c (fold_binary): Fix operand types during folding
773         of X op (A, Y).  Evaluation order of the side-effects of
774         X and A are frontend-defined, so ensure we honour that even for
775         tcc_comparison class operands; eased by removing duplicate code.
776
777 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
778
779         * stor-layout.c (layout_type): Do not allow alignment of array
780         elements to be greater than their size.
781
782 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
783
784         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
785         host_xmake_file.
786         (hppa*-*-linux*): Ditto.
787         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
788         * config/host-hpux.c: New.
789         * config/x-hpux: New.
790         * config/pa/x-hpux: Remove.
791         * config/pa/x-linux: Remove.
792         * config/pa/pa-host.c: Remove.
793
794 2005-10-07  Jeff Law  <law@redhat.com>
795
796         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
797         determine whether or not to try and thread outgoing edges.
798
799 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
800
801         * config/rs6000/rs6000.md (eqsi_power): New.
802         (neg_eq0si): Add TARGET_POWER to final condition.
803         (neg_eqsi): Same.
804
805 2005-10-06  Richard Henderson  <rth@redhat.com>
806
807         * config/rs6000/rs6000.c: Revert last change.
808
809 2005-10-06  Richard Henderson  <rth@redhat.com>
810
811         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
812         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
813
814 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
815
816         PR middle-end/22216
817         PR middle-end/23651
818         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
819         out return_label and naked_return_label.
820
821 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
822         
823         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
824         change.
825
826 2005-10-06  Richard Henderson  <rth@redhat.com>
827
828         PR tree-opt/22237
829         * tree-inline.c (declare_return_variable): Handle modify_dest not
830         being a DECL.
831
832 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
833         
834         Fix PR tree-optimization/22488
835         * tree-ssa-structalias.c (check_for_overlaps): New function.
836         (create_variable_info_for): Use it.
837
838 2005-10-06  Richard Henderson  <rth@redhat.com>
839
840         PR debug/24070
841         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
842         (dwarf2out_start_source_file): Print it.
843
844 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
845
846         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
847
848 2005-10-06  Richard Henderson  <rth@redhat.com>
849
850         PR 23706
851         * mode-switching.c (optimize_mode_switching): Clear transp bit
852         for block with incomming abnormal edges.
853
854         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
855         (fpscr_set_from_mem): Use them.
856         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
857         (fpscr postinc splitters): Rewrite as peephole2+split.
858
859 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
860
861         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
862         (eq<mode>_compare): Same.
863
864 2005-10-06  Richard Guenther  <rguenther@suse.de>
865
866         PR tree-optimization/24238
867         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
868
869 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
870
871         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
872         here.  Use AC_PATH_PROG for environment variables instead of
873         test -x.
874         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
875         objdump also.
876         * configure: Regenerated.
877
878 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
879
880         PR target/23783
881         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
882         then force it into a register.
883         (call_value): Likewise.
884
885 2005-10-06  Richard Henderson  <rth@redhat.com>
886
887         PR 24049
888         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
889         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
890         under pass_vectorize.
891
892 2005-10-05  Devang Patel  <dpatel@apple.com>
893
894         PR Debug/23205
895         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
896         handling constants. Check NAMESPACE_DECL context for constants.
897         
898 2005-10-05  Eric Christopher  <echristo@apple.com>
899
900         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
901
902 2005-10-05  Richard Henderson  <rth@redhat.com>
903
904         PR 23714
905         * tree-cfg.c (mark_array_ref_addressable_1): New.
906         (mark_array_ref_addressable): New.
907         * tree-flow.h (mark_array_ref_addressable): Declare.
908         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
909
910 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
911
912         PR middle-end/20606
913         PR middle-end/24069
914         * reload.c (subst_reloads): When adding a REG_LABEL to a
915         jump instruction, also update JUMP_LABEL.
916
917 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
918
919         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
920         * bb-reorder.c (copy_bb_p): Use it.
921         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
922
923 2005-10-05  Richard Henderson  <rth@redhat.com>
924
925         PR target/23602
926         * toplev.c (process_options): Warn about unsupported combinations
927         of unwind tables and omit-frame-pointer.
928         * config/i386/i386.c (override_options): Similarly.  Enable
929         accumulate-outgoing-args if not explicitly disabled.
930
931 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
932
933         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
934         Handle big endian vs. small endian.
935         (vec_initv2sf): Handle big endian vs. small endian.
936         (*vec_extractv2sf_1): Ditto.
937
938 2005-10-05  Dale Johannesen  <dalej@apple.com>
939
940         * convert.c (convert_to_real):  Don't convert
941         (float)floor(double d) to floorf((float)d).
942
943 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
944
945         * config/arm/arm.md (insv): Use gen_int_mode in more places.
946
947 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
948
949         PR tree-optimization/18587
950         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
951         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
952         build_vuses): Change to VEC type.
953         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
954         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
955         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
956         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
957         (get_name_decl): New.  Return DECL_UID of base variable.
958         (operand_build_cmp): New.  qsort comparison routine.
959         (operand_build_sort_virtual): New.  Sort virtual build vector.
960         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
961         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
962         (FINALIZE_BASE): Use get_name_decl.
963         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
964         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
965         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
966         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
967         direct VEC_* manipulations.
968         (build_ssa_operands): Call operand_build_sort_virtual.
969         (copy_virtual_operand, create_ssa_artficial_load_stmt,
970         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
971         with direct VEC_* manipulations.
972         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
973         with direct VEC manipulations.
974
975 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
976
977         PR tree-optimization/21419
978         PR tree-optimization/24146
979         PR tree-optimization/24151
980
981         * c-typeck.c (readonly_error): Handle USE being lv_asm.
982         (build_asm_expr): Call it if outputs are read-only.
983         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
984
985 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
986             Paolo Bonzini  <bonzini@gnu.org>
987
988         PR target/23809
989
990         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
991         enable the instructions and not just the built-ins.
992         * doc/invoke.texi (x86 Options): Likewise.
993
994 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
995
996         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
997
998         * doc/invoke.texi (Option Summary): Correct spelling
999         of -mmacosx-version-min.
1000
1001 2005-10-04  Devang Patel  <dpatel@apple.com>
1002
1003         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
1004         real types.
1005
1006 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
1007
1008         * tree-vect-transform.c (vect_create_epilog_for_reduction):
1009         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
1010
1011 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
1012
1013         * config/s390/s390.md ("TDSI","DP"): New mode macros.
1014         ("TE","tg"): New mode attributes.
1015         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
1016         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
1017         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
1018         dword_mode and one for GPRmode.
1019
1020 2005-10-04  Ian Lance Taylor  <ian@airs.com>
1021
1022         PR preprocessor/13726
1023         * c-ppoutput.c (cb_include): Add comments parameter, and print out
1024         any comments passed in.
1025
1026 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
1027
1028         * tree.c (annotate_with_file_line): Fix typo.
1029
1030 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1031
1032         PR ada/19382
1033         * builtins.c (fold_builtin_memcmp): When constructing the pointer
1034         type used to access data in the inlined length == 1 case, use
1035         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
1036         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1037
1038 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
1039
1040         * config/i386/i386.h (TARGET_FISTTP): Enable also for
1041         TARGET_SSE3 and only for TARGET_80387.
1042         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
1043         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
1044         Do not depend on TARGET_80387.
1045
1046 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
1047
1048         * tree.c (last_annotated_node): Change type to location_t*.
1049         (annotate_with_file_line): Reflect the change of
1050         last_annotated_node type.
1051
1052 2005-10-04  Richard Guenther  <rguenther@suse.de>
1053
1054         PR c/23576
1055         * c-decl.c (grokdeclarator): Don't write to fields
1056         of error_mark_node.
1057
1058 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
1059
1060         PR middle-end/23125
1061         * c-decl.c (finish_decl): Use set_user_assembler_name even for
1062         register variables.
1063         * varasm.c (make_decl_rtl): If a register variable does not
1064         have a set user assmbler name, error out.
1065         Decode the asmspec is now name+1 bypassing '*'.
1066
1067 2005-10-04  Steven Bosscher  <stevenb@suse.de>
1068
1069         PR tree-optimization/23049
1070         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
1071         of a COND_EXPR is folded before calling fold on the whole rhs of a
1072         conditional assignment.
1073         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
1074         document that a COND_EXPR may appear there.
1075
1076 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
1077
1078         PR 23445
1079         * tree-vrp.c (extract_range_from_assert): If the new numeric
1080         range created out of the assertion contradicts the existing
1081         numeric range of the ASSERT_EXPR variable, make the new range
1082         varying.
1083
1084 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1085
1086         * config/sh/sh.c (sh_register_move_cost): Add case for moving
1087         from T_REGS to FP register class.
1088
1089 2005-10-03  Richard Henderson  <rth@redhat.com>
1090
1091         PR 24135
1092         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
1093         before creating a new one.
1094
1095 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
1096
1097         * config/rs6000/t-aix43 (LDFLAGS): New.
1098         * config/rs6000/t-aix52 (LDFLAGS): New.
1099
1100 2005-10-03  Ian Lance Taylor  <ian@airs.com>
1101
1102         * gimplify.c (find_single_pointer_decl_1): New static function.
1103         (find_single_pointer_decl): New static function.
1104         (internal_get_tmp_var): For a formal variable, set restrict base
1105         information if appropriate.
1106         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
1107         return it.
1108         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
1109         (DECL_GET_RESTRICT_BASE): Define.
1110         (SET_DECL_RESTRICT_BASE): Define.
1111         (decl_restrict_base_lookup): Declare.
1112         (decl_restrict_base_insert): Declare.
1113         (struct tree_decl_with_vis): Add based_on_restrict_p field.
1114         * tree.c (restrict_base_for_decl): New static variable.
1115         (init_ttree): Initialize restrict_base_for_decl.
1116         (copy_node_stat): Copy restrict base information.
1117         (decl_restrict_base_lookup): New function.
1118         (decl_restrict_base_insert): New function.
1119         (print_restrict_base_statistics): New static function.
1120         (dump_tree_statistics): Call print_restrict_base_statistics.
1121
1122 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
1123
1124         PR 24142
1125         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
1126         case of anti-ranges.
1127
1128 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
1129
1130         PR c/18851
1131         * c-typeck.c (tagged_tu_seen): Rename to ...
1132         (tagged_tu_seen_cache): this and add val field.
1133         (comptypes): Move functional to comptypes_internal
1134         and free tagged_tu_seen.
1135         (comptypes_internal): New function and call comptypes_internal
1136         instead of comptypes. Speed up by sibcalling
1137         tagged_types_tu_compatible_p.
1138         (alloc_tagged_tu_seen): New function
1139         (free_all_tagged_tu_seen_up_to): New function.
1140         (tagged_types_tu_compatible_p): Return the val of the seen two
1141         types.
1142         Add that the two types are the same to tagged_tu_seen_base
1143         if they are and call comptypes_internal instead of comptypes.
1144         <case UNION_TYPE>: Speed up common type where the fields are
1145         in the same order.
1146         (function_types_compatible_p): Call comptypes_internal instead of
1147         comptypes.
1148         (type_lists_compatible_p): Likewise.
1149         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
1150
1151 2005-10-02  Matthias Klose  <doko@debian.org>
1152
1153         * doc/invoke.texi: Fix typo and speling error.
1154
1155 2005-10-01  Richard Henderson  <rth@redhat.com>
1156
1157         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
1158
1159 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
1160
1161         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
1162         using --start-group and --end-group.
1163
1164 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
1165
1166         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
1167         FIXME note regarding quirky semantics.
1168
1169 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
1170
1171         PR 24141
1172         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
1173         non-null range as a last resort.
1174
1175 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
1176             Diego Novillo  <dnovillo@redhat.com>
1177
1178         PR 23604
1179         * tree-vrp.c (extract_range_from_assert): For !=
1180         assertions, only build an anti-range if LIMIT is a
1181         single-valued range.
1182
1183 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
1184
1185         * arm.md (movqi): On thumb when optimizing, handle loading from
1186         memory by describing this as taking a subreg of a zero-extended load
1187         into an SImode register.
1188         (movhi): Likewise.
1189
1190 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
1191
1192         * reload1.c (merge_assigned_reloads): Do not change any
1193         RELOAD_FOR_OUTPUT_ADDRESS reloads.
1194
1195 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
1196
1197         * Makefile.in (LIPO_FOR_TARGET): Define.
1198         (STRIP_FOR_TARGET): Define.
1199
1200         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
1201         before creating new ones.  Do symlinks before creating the actual
1202         targets.
1203
1204         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
1205         to work out which multilibs are actually being built.
1206
1207 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
1208
1209         * tree-vect-transform.c, config/ms1/ms1.md,
1210         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
1211         Follow spelling conventions.
1212         * doc/invoke.texi, doc/md.texi: Fix typos.
1213
1214 2005-09-30  Andrew Macleod  <amacleod@redat.com>
1215
1216         PR tree-optimization/21430
1217         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
1218         use operands, and set stmt pointer if need be.
1219         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
1220         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
1221         present.
1222
1223 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1224
1225         PR middle-end/24053
1226         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
1227
1228 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
1229
1230         * optabs.c (expand_binop): Initialize first_pass_p.
1231
1232 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
1233
1234         PR middle-end/24109
1235         * c-decl.c (c_write_global_declarations_1): If any
1236         wrapup_global_declaration_2 call returned true, restart the loop.
1237
1238 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
1239
1240         Fix PR tree-optimization/24117
1241         * tree-ssa-structalias.c (find_func_aliases): Strip nops
1242         before considering whether to use anyoffset.
1243
1244 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
1245
1246         Revert this patch:
1247
1248         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
1249
1250         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
1251         to order operands.
1252         (swap_commutative_operands_with_target): New.
1253
1254 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
1255
1256         PR c/21419
1257         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
1258         read-only.
1259
1260 2005-09-29  Steven Bosscher  <stevenb@suse.de>
1261
1262         PR tree-optimization/23911
1263         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
1264         and IMAGPART_EXPR too.
1265
1266 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
1267
1268         PR 17886
1269         * expmed.c (expand_shift): Move logic to reverse rotation
1270         direction when  rotating by constants ...
1271         * optabs.c (expand_binop): ... here.
1272         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
1273         (ix86_rotrdi3): New pattern.
1274         (rotldi3): Handle 32-bit mode.
1275         (ix86_rotldi3): New pattern.
1276
1277 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
1278
1279         PR target/24102
1280         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
1281         check for numbers that need no bit twiddle.
1282
1283 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
1284
1285         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
1286         multilib to be built.
1287
1288         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
1289         (stage1-start): Delete old libgcc and libunwind before moving
1290         anything into the stage directory.
1291         (stage2-start): Likewise.
1292         (stage3-start): Likewise.
1293         (stage4-start): Likewise.
1294         (stageprofile-start): Likewise.
1295         (stagefeedback-start): Likewise.
1296         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
1297         header in tm_file and CPU-specific t-darwin in tmake_file.
1298         (i[34567]86-*-darwin*): Don't change tm_file.
1299         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
1300         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
1301         shared library stub for target OS version.
1302         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
1303         (SHLIB_LINK): Don't make SHLIB_SOLINK.
1304         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
1305         (libgcc_s.%.dylib): New.
1306         (LIBGCC): Define.
1307         (install-darwin-libgcc-stubs): New.
1308         (INSTALL_LIBGCC): New append.
1309         * config/i386/darwin-libgcc.10.4.ver: New.
1310         * config/i386/darwin-libgcc.10.5.ver: New.
1311         * config/i386/t-darwin: New.
1312         * config/rs6000/darwin-libgcc.10.4.ver: New.
1313         * config/rs6000/darwin-libgcc.10.5.ver: New.
1314         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
1315         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
1316
1317 2005-09-28  Paul Brook  <paul@codesourcery.com>
1318
1319         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
1320         denormals.
1321
1322 2005-09-28  Richard Guenther  <rguenther@suse.de>
1323
1324         PR tree-optimization/23853
1325         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
1326         host_integerp to verify misalignment value.
1327
1328 2005-09-28  Richard Henderson  <rth@redhat.com>
1329
1330         * builtins.c (get_builtin_sync_mode): New.
1331         (expand_builtin_sync_operation): Pass in mode argument.
1332         (expand_builtin_compare_and_swap): Likewise.
1333         (expand_builtin_lock_test_and_set): Likewise.
1334         (expand_builtin_lock_release): Likewise.
1335         (expand_builtin): Update to match.
1336
1337 2005-09-28  Nick Clifton  <nickc@redhat.com>
1338
1339         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
1340         formatting.  Add check to PLUS case to ensure that the offset is
1341         within an acceptable range.
1342
1343         * config/v850/v850.md (casesi): Disable the generation of the
1344         switch pattern as it is not being handled properly at the moment.
1345
1346         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
1347         for when the high words are identical.
1348
1349 2005-09-27  Richard Henderson  <rth@redhat.com>
1350
1351         * pretty-print.c (pp_base_format): Fix typo for %>.
1352
1353 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
1354             Devang Patel  <dpatel@apple.com>
1355
1356         PR tree-optimization/23625
1357         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
1358         LABEL_EXPR, assertion check.
1359
1360 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
1361
1362         * optabs.c (no_conflict_move_test): Check if a result of a
1363         to-be-moved insn would be clobbered by an originally
1364         preceding insn.
1365
1366 2005-09-27  Jeff Law  <law@redhat.com>
1367
1368         * passes.c (init_optimization_passes): Replace copy propagation
1369         passes immediately after DOM with phi-only copy propagation
1370         pases.  Add phi-only copy propagation pass after first DOM pass.
1371         * tree-pass.h (pass_phi_only_copy_prop): Declare.
1372         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
1373         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
1374         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
1375         to init_copy_prop.  Callers updated.
1376         (do_phi_only_copy_prop): New function.
1377         (pass_phi_only_copy_prop): New pass descriptor.
1378
1379 2005-09-27  Nick Clifton  <nickc@redhat.com>
1380
1381         * libgcc2.c (__popcount_tab): Remove redundant prototype.
1382
1383 2005-09-26  Jason Merrill  <jason@redhat.com>
1384
1385         PR c++/13764
1386         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
1387
1388         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
1389
1390 2005-09-26  James E Wilson  <wilson@specifix.com>
1391
1392         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
1393         copyright.  Add gcc copyright plus libgcc exception.
1394         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
1395         copyright.
1396         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
1397
1398 2005-09-26  Jeff Law  <law@redhat.com>
1399
1400         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
1401         about when to iterate.
1402
1403 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
1404
1405         PR target/23847
1406         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
1407         for __complex__ double in -mcpu=G5 mode.
1408
1409 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
1410
1411         PR tree-optimization/23942
1412         * Makefile.in (SCEV_H): Depends on PARAMS_H.
1413         * tree-scalar-evolution.c: Include params.h.
1414         (t_bool): New enum.
1415         (follow_ssa_edge, follow_ssa_edge_in_rhs,
1416         follow_ssa_edge_in_condition_phi_branch,
1417         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
1418         Change return type to t_bool.  Use a parameter to limit the size of
1419         trees that are walked before stopping
1420         (analyze_evolution_in_loop): Initialize the limit to 0.
1421         (follow_ssa_edge): Give up by returning t_dont_know if the limit
1422         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1423
1424 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
1425
1426         PR middle-end/23831
1427         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
1428         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
1429
1430 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
1431
1432         * combine.c (make_extraction): Check for valid use of subreg.
1433
1434 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
1435
1436         PR target/24055
1437         * config/i386/i386.md ("*fistdi2_1"): New pattern.
1438         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
1439         ("fist<mode>2_with_temp"): Use only register operands.
1440
1441 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
1442
1443         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
1444         CALL_INSN_FUNCTION_USAGE.
1445
1446 2005-09-26  Richard Guenther  <rguenther@suse.de>
1447
1448         PR middle-end/15855
1449         * gcse.c: Include hashtab.h, define ldst entry hashtable.
1450         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
1451         (ldst_entry): Use the hashtable instead of list-walking.
1452         (find_rtx_in_ldst): Likewise.
1453         (free_ldst_entry): Free the hashtable.
1454         (compute_ld_motion_mems): Create the hashtable.
1455         (trim_ld_motion_mems): Remove entry from hashtable if
1456         removing it from list.
1457         (compute_store_table): Likewise^2.
1458         (store_motion): Free hashtable in case we did not see
1459         any stores.
1460
1461 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
1462
1463         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
1464         and arg1 if we are passing them to fold_build2.
1465
1466 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
1467
1468         PR 23828
1469         * config/i386/i386.c (ix86_function_regparm): Fix the test for
1470         a nested function.
1471
1472 2005-09-25  Richard Henderson  <rth@redhat.com>
1473
1474         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
1475         SYMBOL_REF_TLS_MODEL to be correct.
1476
1477 2005-09-24  Richard Henderson  <rth@redhat.com>
1478
1479         * ipa-type-escape.c (discover_unique_type): Remove dead code at
1480         end of function.  Reindent.
1481
1482 2005-09-24  Ian Lance Taylor  <ian@airs.com>
1483
1484         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
1485         NEGATE_EXPR/BIT_NOT_EXPR case.
1486
1487 2005-09-24  Richard Henderson  <rth@redhat.com>
1488
1489         * c-common.c (handle_mode_attribute): When not modifying in place,
1490         create subtypes for enumerations.
1491         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
1492         * gimplify.c (create_tmp_from_val): Likewise.
1493
1494 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
1495
1496         * config/i386/i386.md (*tls_global_dynamic_64,
1497         *tls_local_dynamic_base_64): Add missing mode to call.
1498         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
1499
1500 2005-09-24  Jan Hubicka  <jh@suse.cz>
1501
1502         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
1503         (cgraph_clone_node): Likewise.
1504         * cgraph.h (cgraph_clone_edge): Update prototype.
1505         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
1506         duplicated prototypes; add updating argument.
1507         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
1508         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
1509         updating profile.
1510         (cgraph_mark_inline_edge): Likewise.
1511         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
1512         (cgraph_flatten_node): Likewise.
1513         (cgraph_decide_recursive_inlining): Likewise.
1514         (cgraph_decide_inlining_of_small_function): Likewise.
1515         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1516
1517 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
1518             Pete Steinmetz <steinmtz@us.ibm.com>
1519
1520         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
1521         (rldic.): Set type to "compare".
1522         (rldicr.): Same.
1523         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
1524         mfjmpr for MFCTR/MFLR.
1525         (movdf_hardfloat64): Same.
1526         (movdf_softfloat64): Same.  Correct order of store and move types.
1527         (movti_string): Set type to store_ux/load_ux.
1528         (load_multiple): Set type to load_ux.
1529         (store_multiple): Set type to store_ux.
1530         (movmemsi): Set type to store_ux.
1531         (output_cbranch direct_return): Set type to jmpreg.
1532         (stmw): Set type to store_ux.
1533         (lmw): Set type to load_ux.
1534         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
1535         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
1536         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
1537         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
1538         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
1539         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
1540         (rios1-fpstore): Increase latency to 3.
1541         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
1542         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
1543
1544 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
1545             Andrew Pinski  <pinskia@physics.uc.edu>
1546
1547         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
1548         operand2 constraint to "b".
1549         (sync_<fetchop_name>di_internal): Same.
1550         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
1551         to "b".
1552         (sync_old_<fetchop_name>di_internal): Same.
1553         (sync_new_<fetchop_name>si_internal): Same.
1554         (sync_new_<fetchop_name>di_internal): Same.
1555
1556 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
1557
1558         PR middle-end/23991
1559         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
1560         case, define as macros.
1561
1562         PR rtl-optimization/23837
1563         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
1564         clobber / clobber match between dest and p->first.
1565
1566         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
1567         (no_conflict_move_test): Update comments.
1568
1569 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
1570
1571         * doc/install.texi: Update URL for Jacks.
1572         * doc/sourcebuild.texi: Likewise.
1573
1574 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
1575
1576         PR target/24007
1577         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
1578         registers when choosing register preferences.
1579         (movdf_hardfloat64): Same.
1580
1581 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
1582
1583         * expmed.c (expand_shift): Don't use the target of the rotate as
1584         target for the first expanded shift insn.
1585         * testsuite/gcc.dg/20050922-1.c: Testcase added.
1586
1587 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
1588
1589         PR tree-optimization/22438
1590         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
1591         preserved iv rhs rewriting specially.
1592
1593 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
1594
1595         * tree-data-ref.c (analyze_array_indexes): Only estimate when
1596         estimate_only  is true.
1597         * tree-flow.h (ref_contains_indirect_ref): New prototype.
1598         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
1599         tree-ssa-structalias.c
1600         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
1601         ref_contains_indirect_ref.
1602         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
1603
1604 2005-09-21  DJ Delorie  <dj@redhat.com>
1605
1606         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
1607         MASK_PTR_A0D0.
1608         (mn10300_return_in_memory): Support variable size types also.
1609         (mn10300_pass_by_reference): Likewise.
1610         (mn10300_function_value): New.
1611         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
1612         (FUNCTION_OUTGOING_VALUE): Likewise.
1613         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
1614         * doc/invoke.texi: Document it.
1615
1616 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
1617
1618         PR target/22585
1619         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
1620         force integer op1 into register for XFmode compares.
1621
1622 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
1623
1624         PR middle-end/23971
1625         * expmed.c (alg_code): Add alg_impossible.
1626         (alg_hash_entry): Add cost.
1627         (synth_mult): Record alg_impossible in the hash table if
1628         multiplication by a given integer is impossble within the
1629         limit.  Speed up using alg_impossible.
1630
1631 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
1632
1633         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
1634         argument.  Allow and set any offset if needs_anyoffset is passed
1635         in.
1636         (get_constraint_for): Add argument here too.
1637         Pass it down.
1638         (do_structure_copy): Pass NULL to get_constraint_for.
1639         (handle_ptr_arith): Ditto.
1640         (find_func_aliases): Ditto.
1641
1642 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
1643
1644         PR rtl-optimization/23898
1645         * output.h (get_attr_min_length): Declare.
1646         * final.c (get_attr_length_1): New function, broken out of:
1647         (get_attr_length).
1648         (get_attr_min_length): New function.
1649         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
1650         (duplicate_computed_gotos): Likewise.
1651         * genattr.c (insn_min_length): Generate declaration.
1652         * genattrtab.c (min_fn, min_attr_value): New functions.
1653         (make_length_attrs): Generate insn_min_length.
1654
1655 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
1656
1657         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
1658
1659 2005-09-20  Richard Henderson  <rth@redhat.com>
1660
1661         PR tree-optimization/24059
1662         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
1663         EXPAND_STACK_PARM.
1664
1665 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
1666
1667         * c.opt (fextended-identifiers): New.
1668         * c-opts.c (c_common_handle_option): Handle
1669         -fextended-identifiers.
1670         * doc/cpp.texi: Update documentation of extended identifiers.
1671         * doc/cppopts.texi (-fextended-identifiers): Document.
1672
1673 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
1674
1675         PR tree-optimization/23929
1676         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
1677         if expr is NULL.
1678
1679         PR tree-optimization/23818
1680         * tree-stdarg.c (execute_optimize_stdarg): Call
1681         calculate_dominance_info.
1682
1683 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
1684
1685         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
1686         (analyze_siv_subscript_cst_affine): Add weak SIV test.
1687         (compute_overlap_steps_for_affine_1_2): Use
1688         get_number_of_iters_for_loop.
1689         (analyze_subscript_affine_affine): Check whether difference is
1690         zero first.
1691         Use get_number_of_iters_for_loop.
1692         Check whether overlap occurs outside of bounds.
1693         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
1694
1695 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
1696
1697         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
1698         base register if possible.
1699
1700 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
1701
1702         PR tree-optimization/18463
1703         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
1704         converting it directly is not possible.
1705         (chrec_convert_aggressive): New function.
1706         * tree-chrec.h (chrec_convert_aggressive): Declare.
1707         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
1708         Fold chrec conversions aggressively if asked to.
1709         (instantiate_parameters): Modified because of changes in
1710         instantiate_parameters_1.
1711
1712 2005-09-19  Richard Henderson  <rth@redhat.com>
1713
1714         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
1715         (reduc_splus_v2df): New.
1716
1717 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
1718
1719         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
1720         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
1721
1722 2005-09-19  Richard Henderson  <rth@redhat.com>
1723
1724         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
1725         vcondu<SSEMODE12>.
1726
1727 2005-09-19  Richard Henderson  <rth@redhat.com>
1728
1729         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
1730         (ia64_expand_dot_prod_v8qi): New.
1731         * config/ia64/ia64-protos.h: Update.
1732         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
1733         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
1734         sdot_prodv8qi, sdot_prodv4hi): New.
1735         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
1736
1737 2005-09-19  Richard Henderson  <rth@redhat.com>
1738
1739         PR 23941
1740         * real.c (exact_real_truncate): Return false if the format cannot
1741         represent the number as a normal.
1742
1743         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
1744         for a memory source.
1745
1746 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
1747
1748         * tree-ssa-operands.c (swap_tree_operands): Export.
1749         * tree.h (swap_tree_operands): Declare.
1750         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
1751         Call swap_tree_operands.
1752
1753 2005-09-19  Richard Henderson  <rth@redhat.com>
1754
1755         * tree-flow.h (merge_alias_info): Declare.
1756         * tree-ssa-copy.c (merge_alias_info): Export.
1757         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
1758         (vect_create_data_ref_ptr): Use create_iv directly.
1759         (vectorizable_load): Use correct types for integer constants.
1760         (vect_generate_tmps_on_preheader): Likewise.
1761         (vect_gen_niters_for_prolog_loop): Likewise.
1762
1763 2005-09-19  Steven Bosscher  <stevenb@suse.de>
1764
1765         PR rtl-optimization/23943
1766         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
1767
1768 2005-09-18  Jan Hubicka  <jh@suse.cz>
1769
1770         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
1771
1772 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
1773
1774         * varasm.c (output_constant): Do not abort on conversions to union
1775         types between different sizes.
1776
1777 2005-09-18  Richard Guenther  <rguenther@suse.de>
1778
1779         PR middle-end/23944
1780         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
1781         fallback.
1782
1783 2005-09-18  Paul Brook  <paul@codesourcery.com>
1784
1785         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
1786
1787 2005-09-17  Richard Henderson  <rth@redhat.com>
1788
1789         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
1790         * tree-ssa-loop.c (pass_vect_dce): Remove.
1791         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
1792         of pass_vectorize.
1793
1794 2005-09-17  Richard Henderson  <rth@redhat.com>
1795
1796         * tree-pass.h (pass_vect_dce): Declare.
1797         * passes.c (init_optimization_passes): Add it.
1798         * tree-flow.h (tree_ssa_dce): Declare.
1799         * tree-ssa-dce.c (tree_ssa_dce): Export.
1800         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
1801         (gate_tree_vectorize): ... here.
1802         (pass_vect_dce): New.
1803
1804 2005-09-17  Jan Hubicka  <jh@suse.cz>
1805
1806         * except.c (struct eh_status): Turn region_array into vec.
1807         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
1808         convert_from_eh_region_ranges, find_exception_handler_labels,
1809         current_function_has_exception_handlers, assign_filter_values,
1810         build_post_landing_pads, dw2_build_landing_pads,
1811         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
1812         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
1813         foreach_reachable_handler, can_throw_internal_1,
1814         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
1815         region_array.
1816         (duplicate_eh_region_1): Update region_array.
1817         (duplicate_eh_regions): Resize region_array and avoid recomputing.
1818
1819 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
1820
1821         PR middle-end/22067
1822         * expmed.c (expand_mult): Substitute simple register for op0 when
1823         computing max_cost.
1824
1825 2005-09-17  Richard Henderson  <rth@redhat.com>
1826
1827         * expr.c (emit_move_via_integer): Add force argument, pass it on
1828         to emit_move_change_mode.  Update callers.
1829         (emit_move_complex): Pass true to new force argument.
1830         * function.c (expand_function_end): Move expand_eh_return call
1831         earlier.  Merge sub-word complex values into a pseudo before
1832         copying to the return hard register.
1833
1834 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
1835
1836         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
1837         between different sizes.
1838
1839 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
1840
1841         PR 23903
1842
1843         * passes.c (init_optimization_passes): Register dump files for
1844         IPA passes first.
1845
1846 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
1847
1848         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
1849         * config/s390/s390.c (s390_overlap_p): New function.
1850         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
1851         peephole2, "*xc" peephole2): Added overlap check to the peephole2
1852         condition.
1853
1854 2005-09-16  Richard Guenther  <rguenther@suse.de>
1855
1856         * ipa-pure-const.c (static_execute): Free auxiliar information.
1857         * ipa-type-escape.c (discover_unique_type): Free temporary key.
1858         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
1859
1860 2005-09-15  DJ Delorie  <dj@redhat.com>
1861
1862         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
1863
1864 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
1865
1866         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
1867         to order operands.
1868         (swap_commutative_operands_with_target): New.
1869
1870 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
1871
1872         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
1873         parameter.
1874         Update callers.
1875         (estimate_iters_using_array): New function.
1876         * tree-data-ref.h (estimate_iters_using_array): Prototype
1877         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1878         Use estimate_iters_using_array instead of analyze_array.
1879
1880 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
1881
1882         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
1883         as addressable.
1884
1885 2005-09-15  Michael Matz  <matz@suse.de>
1886
1887         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
1888
1889 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
1890
1891         PR tree-optimization/23835
1892         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
1893         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
1894
1895 2005-09-14  Richard Henderson  <rth@redhat.com>
1896
1897         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
1898         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
1899
1900 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
1901
1902         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
1903         in the ARRAY_TYPE case.
1904
1905 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
1906
1907         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
1908
1909 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
1910
1911         PR middle-end/22480
1912         * tree-vect-transform.c (vectorizable_operation): Return false for
1913         scalar shift operations and for vector shift operations with
1914         non-invariant shift arguments.  Use scalar tree operand op1 as
1915         a shift operand when vector shift insn pattern uses scalar shift
1916         operand.
1917         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
1918
1919 2005-09-14  Olivier Hainque  <hainque@adacore.com>
1920
1921         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
1922         value if it has side-effects.
1923
1924 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
1925
1926         PR target/22068
1927         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
1928
1929 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
1930
1931         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
1932         passed as NAME as if it were label at start of function code.
1933
1934 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
1935
1936         * config/sh/sh.md (*movv4sf_i): Add general register cases to
1937         the constraints.
1938
1939 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
1940
1941         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
1942         as early clobber.  Rewrite so the PIC register is not implicitly used.
1943
1944 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1945
1946         * tree.c (annotate_with_file_line): Compare line numbers before
1947         file names.
1948
1949 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
1950
1951         PR target/23816
1952         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
1953         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
1954
1955 2005-09-13  Ian Lance Taylor  <ian@airs.com>
1956
1957         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
1958         than a HOST_WIDEST_INT to gen_doloop_begin.
1959
1960 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
1961
1962         * tree-dfa.c (dump_variable): Guard against NULL annotations.
1963
1964 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
1965
1966         PR tree-optimize/23817
1967         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
1968
1969 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
1970
1971         PR target/23774
1972         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
1973         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
1974         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
1975         (restore_stack_nonlocal): Likewise.
1976         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
1977
1978 2005-09-12  Ian Lance Taylor  <ian@airs.com>
1979
1980         PR g++/7874
1981         * c.opt (ffriend-injection): New C++ option.
1982         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
1983         (C++ Dialect Options): Document -ffriend-injection.
1984
1985 2005-09-12  Josh Conner  <jconner@apple.com>
1986
1987         PR middle-end/23237
1988         * ipa-reference.c (static_execute): Don't mark variables in
1989         named sections TREE_READONLY.
1990
1991 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
1992
1993         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
1994         stack_tie.
1995
1996 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
1997
1998         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
1999         V_MUST_DEF instead of just the first_use_p.
2000         Don't mark the virtual variables for renaming on the statement which
2001         is being removed.
2002         (pass_dse): Remove TODO_update_ssa.
2003
2004 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
2005
2006         PR middle-end/23290
2007         * stor-layout.c (compute_record_mode): For records with a single
2008         field, actually check the field's mode size against the type size.
2009
2010         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
2011         registers for TARGET_SHMEDIA.
2012         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
2013         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
2014         of GENERAL_REGS and FP_REGS.
2015
2016 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2017
2018         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
2019
2020 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
2021
2022         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
2023         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
2024         are omitted.  Exclude stack_tie insn too.
2025
2026 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
2027
2028         PR rtl-optimization/23098
2029         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
2030         0.0f is easy.
2031         * config/rs6000/rs6000.md (movdf splitter): Use
2032         const_double_operand predicate for TARGET_POWERPC64.
2033         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
2034         SYMBOL_REF method to ABI_V4.
2035
2036         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
2037         replace_equiv_address.
2038         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
2039         rs6000_sr_alias_set and MEM_NOTRAP.
2040         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
2041
2042 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
2043
2044         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
2045         handle CALL_EXPR again.
2046
2047 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
2048
2049         * arm/predicates.md (alignable_memory_operand): Delete.
2050
2051 2005-09-10  Richard Henderson  <rth@redhat.com>
2052
2053         PR debug/23806
2054         * dbxout.c (dbxout_expand_expr): New.
2055         (dbxout_symbol): Use it.
2056
2057 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
2058
2059         * arm.c (arm_gen_rotated_half_load): Delete.
2060         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
2061         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
2062         (thumb_set_return_address): Likewise.
2063         (thumb_load_double_from_address): Use adjust_address.
2064         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
2065         (extendhsisi2_mem, movhi_bytes): Use change_address.
2066         (movhi): Use widen_memory_access.
2067         (reload_out_df): Use replace_equiv_address.
2068         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
2069
2070 2005-09-09  Richard Henderson  <rth@redhat.com>
2071
2072         PR debug/20998
2073         * dbxout.c: Include expr.h.
2074         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
2075         (dbxout_symbol): Handle DECL_VALUE_EXPR.
2076         * Makefile.in (dbxout.o): Add EXPR_H.
2077
2078 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
2079
2080         PR tree-optimization/23509
2081         * tree-cfg.c (replace_uses_by): Use replace_exp.
2082         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
2083         pointers have name_mem_tag or type_mem_tag set.
2084
2085 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
2086
2087         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
2088         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
2089         of wrongly accessing operands.
2090
2091 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
2092
2093         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
2094         * tree-chrec.c: Include tree-scalar-evolution.h.
2095         (chrec_convert): Instantiate the base and step before calling
2096         scev_probably_wraps_p that would fail on parametric evolutions.
2097         Collect all the fails into a single section failed_to_convert,
2098         print a diagnostic, and return chrec_dont_know instead of calling
2099         fold_convert.
2100         * tree-scalar-evolution.c (loop_closed_phi_def): New.
2101         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
2102         phi nodes.
2103         (scev_const_prop): Don't replace the definition of a loop closed ssa
2104         phi node by itself, or by another loop closed ssa phi node.
2105         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
2106         that base and step are defined.
2107
2108 2005-09-09  Richard Guenther  <rguenther@suse.de>
2109
2110         PR c++/23624
2111         * fold-const.c (fold_ternary): Check truth_value_p before
2112         calling invert_truthvalue.
2113
2114 2005-09-09  Nick Clifton  <nickc@redhat.com>
2115
2116         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
2117         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
2118         dimension of these arrays.
2119         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
2120         these arrays.
2121         * longlong.h: Only provide a prototype for the __clz_tab[] array
2122         if this header has not been included from libgcc2.h.
2123         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
2124         defining own types.
2125         Provide prototypes for exported functions.
2126         Use the __clz_tab[] and __popcount_tab[] arrays provided by
2127         libgcc2.c.
2128
2129 2005-09-08  Josh Conner  <jconner@apple.com>
2130
2131         PR c++/21135
2132         PR c++/23180
2133         * expr.c (expand_expr_addr_expr_1): Don't invoke
2134         expand_simple_binop for EXPAND_INITIALIZER.
2135
2136 2005-09-08  Richard Henderson  <rth@redhat.com>
2137
2138         PR debug/23190
2139         * toplev.c (wrapup_global_declaration_1): Split out ...
2140         (wrapup_global_declaration_2): ... from ...
2141         (wrapup_global_declarations): ... here.  Return bool.
2142         (check_global_declaration_1): Split out ...
2143         (check_global_declarations): from here.
2144         (emit_debug_global_declarations): New.
2145         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
2146         check_global_declaration_1, emit_debug_global_declarations): Declare.
2147         * c-decl.c (c_write_global_declarations_1): Don't create a vector
2148         of decls.  Call wrapup_global_declaration_1,
2149         wrapup_global_declaration_2, check_global_declaration_1 directly.
2150         (c_write_global_declarations_2): New.
2151         (ext_block): New.
2152         (c_write_global_declarations): Call c_write_global_declarations_2.
2153         * langhooks.c (write_global_declarations): Call
2154         emit_debug_global_declarations.
2155
2156         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
2157         remove decls that have DECL_RTL_SET_P.
2158         * passes.c (rest_of_decl_compilation): Invoke
2159         cgraph_varpool_finalize_decl for all but functions.
2160
2161 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2162
2163         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
2164         the result of a conversion if the new min and max cannot be compared.
2165
2166 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
2167
2168         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
2169         (override_options): Setting s390_sr_alias_set removed.
2170         (save_fpr, save_gprs): Set alias set to vararg or frame.
2171         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
2172         s390_sr_alias_set with get_frame_alias_set ().
2173         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
2174         get_varargs_alias_set ().
2175
2176 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
2177
2178         PR objc/20574
2179         PR objc/19324
2180         * c-parser.c (c_parser_objc_method_definition): If the next
2181         token is not "{", error out and don't start the function.
2182
2183 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
2184
2185         * tree-vrp.c (extract_range_from_expr): Move the check for non
2186         nullness after the check for gimple invariant.
2187
2188 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2189
2190         * tree.c (host_integerp, tree_low_cst): Correct function comment.
2191
2192 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2193
2194         PR target/23747
2195         * config/m32r.md (movmemsi_internal): Canonicalize order of
2196         operands in PLUS component of template.
2197
2198 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
2199
2200         * reload1.c (fixup_eh_region_note): Remove assertion.
2201         (fixup_abnormal_edges): Reverted removal of call to
2202         find_many_sub_basic_blocks made on 2005-08-31.
2203
2204 2005-09-07  Richard Henderson  <rth@redhat.com>
2205
2206         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
2207         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
2208         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
2209         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
2210         rearrange for better packing.
2211         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
2212         (lookup_cfa_1): Remove inline marker.
2213         (cfa_equal_p): Split out of ...
2214         (def_cfa_1): ... here.  Use INVALID_REGNUM.
2215         (build_cfa_loc): Handle !cfa->indirect.
2216         (frame_pointer_cfa_offset): New.
2217         (dbx_reg_number): Assert register elimination performed; do
2218         leaf register remapping.
2219         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
2220         (eliminate_reg_to_offset): New.
2221         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
2222         for verifiably local stack frame addresses; re-base to CFA.
2223         (mem_loc_descriptor): Remove can_use_fbreg argument.
2224         (concat_loc_descriptor, loc_descriptor): Likewise.
2225         (containing_function_has_frame_base): Remove.
2226         (rtl_for_decl_location): Don't do register elimination or
2227         leaf register remapping here.
2228         (secname_for_decl): Split out from ..
2229         (add_location_or_const_value_attribute): ... here.
2230         (convert_cfa_to_loc_list): New.
2231         (compute_frame_pointer_to_cfa_displacement): New.
2232         (gen_subprogram_die): Use them.
2233         * tree.h (frame_base_decl): Remove.
2234         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
2235         (prologue_stack_adjust): Remove.
2236         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
2237         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
2238         (set_frame_base_location): Remove.
2239         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
2240         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
2241         (vt_add_function_parameters): Don't eliminate_regs.
2242         (vt_initialize): Don't create frame_base_decl.
2243
2244 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2245
2246         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
2247         version of GNU binutils for 4.x and later.
2248
2249 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
2250
2251         * ggc-page.c (ggc_push_context): Remove.
2252         (ggc_pop_context): Likewise.
2253         * ggc.h (ggc_push_context): Remove.
2254         (ggc_pop_context): Likewise.
2255
2256 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
2257
2258         PR target/8973
2259         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
2260         returning from an interrupt handler.
2261
2262 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
2263
2264         PR target/8972
2265         * config/arc/arc.c (output_shift): Add check for loop count when
2266         optimizing.
2267
2268 2005-09-06  Steven Bosscher  <stevenb@suse.de>
2269
2270         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
2271         form manually.
2272         (abs_replacement): Likewise.
2273         (pass_phiopt): Remove TODO_update_ssa.
2274
2275 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
2276
2277         PR c/23075
2278         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
2279         if "return with no value, in function returning non-void" warning
2280         has been issued.
2281         * tree-cfg.c (execute_warn_function_return): Don't look at
2282         RETURN_EXPRs with TREE_NO_WARNING set.
2283
2284         PR target/22362
2285         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
2286         for internal functions doesn't use registers used by global registers
2287         variables.  Use fewer register parameters if there are global register
2288         variables.
2289
2290 2005-09-06  Olivier Hainque  <hainque@adacore.com>
2291             Eric Botcazou  <ebotcazou@adacore.com>
2292
2293         PR middle-end/14997
2294         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
2295         when we would be extracting outside its bit span (bitpos+bitsize
2296         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
2297         Ada unchecked conversions.
2298
2299 2005-09-06  Steven Bosscher  <stevenb@suse.de>
2300
2301         * tree-ssa-pre.c (try_look_through_load): New function.
2302         (compute_avail): Use it to try to look through loads for some
2303         more useful expressions.
2304
2305 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
2306
2307         * simplify-rtx.c (simplify_binary_operation_1): Correct the
2308         condition for detecting cases like (a&a) and (a^a).
2309
2310 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
2311
2312         * common.opt: Add option ftree-vect-loop-version.
2313         * params.def: Add --param vect-max-version-checks.
2314         * doc/invoke.texi: Document ftree-vect-loop-version and
2315         --param vect-max-version-checks.
2316         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
2317         may_misalign_stmts and defines for accessors.
2318         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
2319         LOOP_VINFO_MAY_MISALIGN_STMTS.
2320         (destroy_loop_vec_info): VEC_free for
2321         LOOP_VINFO_MAY_MISALIGN_STMTS.
2322         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
2323         Update documentation.
2324         (vect_update_misalignment_for_peel): New.
2325         (vect_enhance_data_refs_alignment): Update to choose loop
2326         peeling or loop versioning if appropriate for the (potentially)
2327         unaligned data references in the loop.
2328         (vect_analyze_data_refs_alignment): Remove call to
2329         vect_enhance_data_refs_alignment so the checks can be done
2330         earlier.
2331         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
2332         and move up call to vect_analyze_data_refs_alignment.
2333         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
2334         (vect_transform_loop): Add call to loop_version.
2335
2336 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
2337
2338         PR rtl-optimization/23098
2339         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
2340         * simplify-rtx.c (constant_pool_reference_p): New function.
2341         * rtl.h (constant_pool_reference_p): New prototype.
2342         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
2343         constant_pool_reference_p in condition and
2344         avoid_constant_pool_reference in preparation statements.
2345
2346 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
2347
2348         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
2349         STRICT_LOW_PART SETs.
2350
2351 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
2352
2353         PR middle-end/21460
2354         * except.c (sjlj_emit_function_enter): Find the function begin
2355         note even when it's not in first basic block.
2356
2357 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
2358
2359         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
2360         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
2361         * aclocal.m4: Regenerate.
2362
2363 2005-09-05  DJ Delorie  <dj@redhat.com>
2364
2365         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
2366         of macro.
2367
2368 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
2369
2370         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
2371         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
2372         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
2373         Follow spelling conventions.
2374         * doc/invoke.texi: Follow spelling conventions.
2375
2376 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
2377
2378         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
2379         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
2380         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
2381
2382 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
2383
2384         PR target/23683
2385         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
2386         (output_stack_adjust): Use gen_tmp_stack_mem.
2387         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
2388         (sh_set_return_address, sh_allocate_initial_value): Likewise.
2389         (sh_get_pr_initial_val): Likewise.
2390         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
2391         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
2392         * sh.md (divsi_inv_m0): Use gen_const_mem.
2393         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
2394         (movdf_i4+1): Use gen_tmp_stack_mem.
2395         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
2396         (fpu_switch+2): Likewise.
2397         (movv4sf_i, movv16sf_i): Use adjust_address.
2398         (symGOT_load): Set MEM_NOTRAP_P bit.
2399
2400 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2401
2402         PR target/23721
2403         * pa.c (emit_move_sequence): Fix typo in last change.
2404
2405 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
2406
2407         PR rtl-optimization/23454
2408         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
2409         is true.
2410
2411 2005-09-03  Richard Henderson  <rth@redhat.com>
2412             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2413
2414         PR middle-end/23671
2415         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
2416         gen_rtx_MEM.
2417
2418 2005-09-02  Nicolas Pitre <nico@cam.org>
2419
2420         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
2421         to bit_count to 32 bits.
2422
2423 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
2424
2425         PR c++/23167
2426         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
2427         generating synthetic loads from volatile lvalues.
2428
2429 005-09-02  Nick Clifton  <nickc@redhat.com>
2430
2431         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
2432         __ctzhi2, __clzhi2): New functions.
2433
2434 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
2435
2436         PR middle-end/23547
2437         * tree-nested.c (struct var_map_elt): Mark with GTY.
2438         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
2439         var_map_elt.
2440         (lookup_field_for_decl): Allocate new element in GC memory.
2441         (lookup_tramp_for_decl): Likewise.
2442         (convert_nl_goto_reference): Likewise
2443         (create_nesting_tree): Allocate info in GC memory. Likewise for
2444         info->var_map.
2445         (free_nesting_tree): Free with ggc_free instead of free.
2446         (root): New static variable.
2447         (lower_nested_functions): Remove root as local variable.  And zero out
2448         root at the end of the function.
2449
2450 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
2451
2452         PR rtl-optimization/20365
2453         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
2454         to short.  New member ix.
2455         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
2456         (simplify_plus_minus): Initialize ix members before calling qsort.
2457
2458 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
2459
2460         PR tree-optimization/23626
2461         * tree-cfg.c (replace_uses_by): Clean up eh info.
2462
2463 2005-09-01  DJ Delorie  <dj@redhat.com>
2464
2465         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
2466         fprintf.
2467
2468 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
2469
2470         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
2471         (rs6000_split_multireg_move): Use replace_equiv_address instead of
2472         gen_rtx_MEM.
2473
2474 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2475
2476         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
2477         do not issue warning for a variable definition following
2478         a declaration.
2479
2480 2005-09-01  Richard Henderson  <rth@redhat.com>
2481
2482         PR 23668
2483         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
2484         conversion to CONST_VECTOR.
2485
2486 2005-09-01  Richard Henderson  <rth@redhat.com>
2487
2488         PR 23676
2489         * reload1.c (reload_as_needed): Check !CALL_P before calling
2490         fixup_eh_region_note.
2491         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
2492
2493 2005-09-01  DJ Delorie  <dj@redhat.com>
2494
2495         * varasm.c (output_constant): Let the target resolve
2496         conversions of addresses to non-default pointer sizes.
2497
2498 2005-09-01  Nicolas Pitre <nico@cam.org>
2499
2500         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
2501         to alow matching ARM pre-indexed addressing mode.
2502         (arm_override_options): Remove now irrelevant comment.
2503
2504 2005-09-01  Phil Edwards  <phil@codesourcery.com>
2505
2506         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
2507         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
2508         * config/i386/vxworks.h:  Likewise.
2509         * config/i386/t-vxworksae:  New file, for VxWorks AE.
2510         * config/i386/vxworksae.h:  Likewise.
2511
2512 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
2513
2514         PR tree-optimization/23410
2515         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
2516         sequence is not wrapping during the first step.
2517
2518 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
2519
2520         PR debug/7241
2521         * dwarf2out.c (base_type_die): Compare char_type_node with
2522         TYPE_MAIN_VARIANT (type), not type.
2523
2524 2005-09-01  Richard Guenther  <rguenther@suse.de>
2525
2526         PR tree-optimization/15366
2527         * common.opt: Add -finline-functions-called-once.
2528         Put -fearly-inlining in alphabetically ordered place.
2529         * doc/invoke.texi: Document new option.
2530         * ipa-inline.c (cgraph_decide_inlining): Honour
2531         flag_inline_functions_called_once.
2532
2533 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
2534
2535         PR rtl-optimization/23478
2536         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
2537         (alloc_qty): Initialize it.
2538         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
2539         (combine_regs): Combine also n_throwing_calls_crossed fields.
2540         (find_free_reg): Don't attempt to caller-save pseudos crossing
2541         calls that might throw.
2542         * global.c (struct allocno): Add throwing_calls_crossed field.
2543         (global_alloc): Revert 2005-08-22 change.  Initialize
2544         throwing_calls_crossed.
2545         (find_reg): Don't attempt to caller-save pseudos crossing calls that
2546         might throw.
2547
2548 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
2549
2550         PR target/23649
2551         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
2552         (mask64_operand): Reinstate code prior to 2005-06-11 change.
2553         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
2554         (and64_2_operand): Tweak to use predicate.
2555         (and_operand): Adjust for mask_operand changes.
2556         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
2557         (print_operand): Likewise.
2558         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
2559         (mask64_1or2_operand): Delete.
2560         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
2561         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
2562         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
2563         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
2564         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
2565         (rotldi3_internal4): Likewise.
2566         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
2567         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
2568         (ashldi3_internal7): Likewise.
2569         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
2570         (ashldi3_internal, ashldi3_internal9 split): Likewise.
2571         (anddi3 split): Don't match mask64_operand.
2572         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
2573         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
2574         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
2575         't' splitter predicate.
2576         (movdi_internal64 + 2): Revert 2005-06-11 change.
2577
2578 2005-08-31  DJ Delorie  <dj@redhat.com>
2579
2580         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
2581         (m32c_asm_integer): Add support for 32 bit pointers.
2582
2583 2005-08-31  Richard Henderson  <rth@redhat.com>
2584
2585         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
2586         component-like references for setting MEM_NOTRAP_P.
2587
2588         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
2589         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
2590
2591 2005-08-31  Richard Henderson  <rth@redhat.com>
2592
2593         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
2594         into a pseudo before applying gen_lowpart.
2595
2596 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
2597
2598         * doc/install.texi (Specific): Update cctools version required
2599         for full functionality.
2600         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
2601         linkers as -macosx_version_min.
2602
2603 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
2604
2605         PR target/21255
2606         * sh.c (print_operand, %R and %S): Add handling of floating point
2607         registers, memory, constants and invalid operands.
2608
2609 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
2610
2611         * ipa-pure-const.c: Change dump name.
2612
2613 2005-08-31 Uros Bizjak <uros@kss-loka.si>
2614
2615         PR target/23570
2616         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
2617         to "reg_or_0_operand".
2618         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
2619
2620 2005-08-31  Dale Johannesen  <dalej@apple.com>
2621
2622         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
2623         loops that count down.
2624
2625 2005-08-31  Richard Henderson  <rth@redhat.com>
2626
2627         PR rtl-opt/23601
2628         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
2629         (fixup_eh_region_note): New.
2630         (reload_as_needed): Call it.
2631         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
2632         don't call find_many_sub_basic_blocks; call verify_flow_info.
2633         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
2634         (keep_stack_depressed): Likewise.
2635         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
2636
2637 2005-08-31  Richard Henderson  <rth@redhat.com>
2638
2639         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
2640         fp return matching.
2641
2642 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
2643
2644         * expr.c (expand_expr_real_1): Compare size of address
2645         mode to target's address mode size in deciding expansion of
2646         the constant address.
2647
2648 2005-08-31  Richard Guenther  <rguenther@suse.de>
2649
2650         PR middle-end/23477
2651         * expr.c (all_zeros_p): New function.
2652         (expand_expr_real_1): Handle the case of an all-zero
2653         non-addressable constructor separately.
2654
2655 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
2656
2657         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
2658         arguments, adjust all callers.
2659         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
2660
2661 2005-08-30  Richard Henderson  <rth@redhat.com>
2662
2663         PR target/23630
2664         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
2665         whenever the mode sizes match.
2666
2667 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
2668
2669         * calls.c (load_register_parameters): Fix comment typo.
2670         * expr.c (emit_push_insn): Comment formatting.
2671
2672 2005-08-30  Ian Lance Taylor  <ian@airs.com>
2673
2674         * config/i386/x-cygwin (host-cygwin): Change dependency from
2675         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
2676
2677 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
2678
2679         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
2680         parts of 'vals'.
2681
2682 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
2683
2684         PR middle-end/23408
2685         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
2686         call to ggc_collect.
2687
2688 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
2689
2690         PR bootstrap/21268
2691         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
2692         beginning.  Remove $(INCLUDES) from all the rules, if following
2693         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
2694
2695 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
2696
2697         PR middle-end/23484
2698         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
2699         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
2700         not constant, but maxlen is, don't set len to maxlen, rather
2701         set maxlen to len if len is a constant.
2702
2703 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
2704
2705         PR tree-optimization/23475
2706         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
2707         and counts.
2708
2709 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
2710
2711         Fix PR middle-end/22455
2712
2713         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
2714         Checksum only the parts of the tree that exist for the tree code.
2715
2716 2005-08-28  Dale Johannesen  <dalej@apple.com>
2717
2718         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
2719
2720 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
2721
2722         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
2723
2724 2005-08-28  Richard Henderson  <rth@redhat.com>
2725
2726         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
2727         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
2728         of char_type_node.
2729
2730 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
2731
2732         PR ada/23593
2733         * builtins.c (get_memory_rtx): Don't strip nops
2734         in between COMPONENT_REFs.
2735
2736 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
2737
2738         PR middle-end/23463
2739         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
2740         types.
2741         (gimplify_modify_expr): Check for zero sized types and gimplify the
2742         rhs and lhs as statements.
2743
2744 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
2745
2746         PR libgcj/23508
2747         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
2748         state for return address column of signal frames.
2749
2750 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
2751
2752         PR target/23539
2753         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
2754         bytes >= 2 not bytes == 2.
2755         (expand_block_move): Same.
2756
2757 2005-08-27  Richard Guenther  <rguenther@suse.de>
2758
2759         PR target/23575
2760         * config/i386/sse.md (sse2_movsd): Add missing closing
2761         braces.
2762
2763 2005-08-27  Paul Brook  <paul@codesourcery.com>
2764
2765         * genrecog.c (enum decision_type): Add DT_num_insns.
2766         (struct decision_test): Add u.num_insns.
2767         (add_to_sequence): Add DT_num_insns test.
2768         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
2769         (write_cond, debug_decision_2): Ditto.
2770         (change_state): Assume peep2_next_insn never fails.
2771         Remove "afterward" argument.
2772         (write afterward, write_tree): Update to match.
2773         * recog.c (peep2_current_count): New variable.
2774         (peep2_next_insn): Check it.
2775         (peephole2_optimize): Set peep2_current_count.
2776         * recog.h (peep2_current_count): Declare.
2777
2778 2005-08-26  Josh Conner  <jconner@apple.com>
2779
2780         PR middle-end/23584
2781         * ipa-pure-const.c (check_tree): Check for volatile-ness
2782         when considering a dereference.
2783
2784 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
2785
2786         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
2787
2788 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
2789
2790         PR rtl-optimization/23561
2791         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
2792         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
2793         at most LEN bytes long memory fits into the field.
2794         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
2795         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
2796         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
2797
2798 2005-08-26  Richard Henderson  <rth@redhat.com>
2799
2800         PR rtl-opt/23560
2801         * loop.c (biased_biv_may_wrap_p): New.
2802         (maybe_eliminate_biv_1): Use it to suppress non-equality
2803         comparison transformations.  Delete disabled code.
2804
2805 2005-08-26  Ian Lance Taylor  <ian@airs.com>
2806
2807         * combine.c (make_extraction): Avoid reference outside object.
2808
2809 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
2810
2811         * stor-layout.c (finalize_type_size): Restore behaviour for
2812         non-aggregate types to the status quo ante of the patch for
2813         pr 23467.  Document why it matters.
2814
2815 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
2816
2817         PR c/23506
2818         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
2819         array by one element, initialize the BT_LAST element with NULL.
2820
2821 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
2822
2823         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
2824         optimizing for size.
2825         (plus_eqsi): Same.
2826         (compare_plus_eqsi): Same.
2827         (plus_eqsi_compare): Same.
2828         (neg_eq0<mode>): Same.
2829         (neg_eq<mode>): Same.
2830
2831         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
2832         PROCESSOR_POWER4.
2833
2834 2005-08-26  Nick Clifton  <nickc@redhat.com>
2835
2836         * config/v850/v850.c (ep_memory_operand): Return FALSE if
2837         TARGET_EP is not defined.
2838         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
2839         TARGET_EP is enabled.
2840         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
2841         * config/v850/v850.md (save_all_interrupt): Only use the EP
2842         register if TARGET_EP is defined.
2843         (restore_all_interrupt): Likewise.
2844         * config/v850/lib1funcs.asm: Update functions so that the EP
2845         register is only used if __EP__ is defined.
2846
2847 2005-08-26  David Ung  <davidu@mips.com>
2848
2849         * config/mips/mips.c (mips_expand_prologue): Handle case when
2850         generating for MIPS16 and the outgoing argument area is more than
2851         SMALL_OPERAND. Use the frame pointer as temporary to generate the
2852         add instruction.
2853
2854 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
2855
2856         * config/crx/crx.md: Make doloop_end pattern usage controllable
2857         via mloop-nesting=<max-nesting> command line switch. Make sure
2858         the combiner cannot use doloop_end_<mode> in an illegal way.
2859         * config/crx/crx.c: Use regs up to r6 for argument passing.
2860         Refine crx_address_cost (non cst4 displacements are expensive).
2861         * config/crx/crx.opt: Add switch for mloop-nesting=.
2862
2863 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
2864
2865         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
2866         (UNSPEC_MVST): New constant.
2867
2868 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
2869
2870         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
2871         Reject operands containing eliminable registers.
2872         * testsuite/gcc.dg/20050825-1.c: New testcase.
2873
2874 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
2875             Jan Hubicka  <jh@suse.cz>
2876
2877         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
2878
2879 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
2880
2881         PR tree-optimization/23546
2882         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
2883         and REAL_CST nodes.
2884
2885 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
2886
2887         * params.def (PARAM_MIN_SPEC_PROB): New.
2888         * sched-rgn.c (MIN_PROBABILITY): Delete.
2889         (compute_trg_info): Convert to PARAM_VALUE.
2890         * doc/invoke.texi (param): Document min-spec-prob.
2891
2892 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
2893
2894         * config/darwin.h: define __PIC__
2895         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
2896         TARGET_OS_CPP_BUILTINS macro.
2897
2898 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
2899
2900         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
2901         yesterday.
2902
2903 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
2904
2905         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
2906         to duplicate_block.
2907         * cfghooks.c (duplicate_block): Added position where to place
2908         new block as argument.
2909         * cfghooks.h (duplicate_block): Declaration changed.
2910         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
2911         duplicate_block.
2912         * cfglayout.h (copy_bbs): Declaration changed.
2913         * cfgloop.h (loop_version): Declaration changed.
2914         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
2915         position to copy_bbs.
2916         (loop_version): Pass position to duplicate_loop_to_header_edge.
2917         Add place_after argument and position new blocks according to
2918         it.
2919         * modulo-sched.c (sms_schedule): Pass place_after argument
2920         to loop_version.
2921         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
2922         * tree-cfg.c (split_edge_bb_loc): New function.
2923         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
2924         to determine position of new blocks.
2925         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
2926         to loop_version.
2927         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
2928         argument to duplicate_block.
2929         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2930         Pass position to copy_bbs.
2931
2932 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
2933
2934         * fold-const.c (ptr_difference_const): Use
2935         cst_and_fits_in_hwi instead of host_integerp.
2936
2937 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
2938
2939         * config/darwin.c (gen_pic_offset): New.
2940         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
2941         Use it.
2942
2943 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
2944
2945         PR tree-optimization/23486
2946         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
2947
2948 2005-08-23  Phil Edwards  <phil@codesourcery.com>
2949
2950         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
2951         remove use_collect2.
2952         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
2953
2954         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
2955         configuration files to override the default value.
2956
2957         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
2958         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
2959         * config/vx-common.h:  New file, split out from...
2960         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
2961         * config/vxworksae.h:  New file, for VxWorks AE.
2962         * config/vxworks.opt:  New file.
2963         * config/vxlib.c:  Update for VxWorks 6.
2964
2965         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
2966         other MULTILIB_* variables appropriately.
2967         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
2968         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
2969         * config/rs6000/vxworks.h:  Update for VxWorks 6.
2970         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
2971
2972 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
2973
2974         PR target/20799
2975         * config/darwin.c (machopic_select_section): Remove the hack to
2976         mark "::operator new" and "::operator delete" for coalescing
2977         even though they are not weak.
2978
2979 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
2980
2981         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
2982         * configure: Regenerate.
2983
2984 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
2985
2986         PR middle-end/23517
2987         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
2988         between vectors.
2989         * convert.c (convert_to_integer, convert_to_vector): Likewise.
2990         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
2991         Likewise.
2992
2993 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
2994
2995         * config/rs6000/predicates.md (equality_operator): New.
2996         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
2997         comparison with a large constant.
2998
2999 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
3000
3001         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
3002
3003 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
3004
3005         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
3006         registers is even, and we have a hardware double precision fp,
3007         align the buffer.
3008         (sh_gimplify_va_arg_expr): For floating point arguments, consider
3009         size of current argument when checking if argument was passed in
3010         registers.
3011
3012         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
3013
3014         PR middle-end/23467
3015         * stor-layout.c (finalize_type_size): Dont override
3016         existing alignment with a smaller alignment from the mode.
3017
3018 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
3019
3020         * lambda-code.c (lambda_vector_lexico_pos): Moved...
3021         * lambda.h (lambda_vector_lexico_pos): ... here.
3022         * tree-data-ref.c (build_classic_dist_vector): Return false when
3023         the distance vector is lexicographically negative.
3024
3025 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
3026
3027         PR tree-optimization/23511
3028         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
3029         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
3030
3031 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
3032
3033         PR tree-optimization/22043
3034         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
3035         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
3036         If ALLOW_FLEXARR, handle types ending with flexible array member.
3037         Pass false as second argument to recursive count_type_elements calls.
3038         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
3039         argument to count_type_elements call.
3040         * tree-sra.c (decide_block_copy): Likewise.
3041         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
3042         for a constant-sized object, set cleared as well.  Pass true as
3043         second argument to count_type_elements call.
3044
3045 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
3046
3047         PR target/21571
3048         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
3049         from legitimate_small_data_p, and make global.  Update use.
3050         Remove forward declaration.
3051         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
3052         Declare.
3053         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
3054
3055 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
3056
3057         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
3058         of scratch intermediates.
3059         (eq<mode>_compare): Same.
3060         (neg_eq0<mode>): New.
3061         (neg_eq<mode>): Convert to define_insn_and_split.
3062
3063 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
3064
3065         PR target/23070
3066         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
3067         stdarg functions, set/clear the fp marker even when no variable
3068         args are passed.
3069         * config/rs6000/sysv4.opt (mprototype): Describe.
3070
3071 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
3072
3073         PR rtl-optimization/23478
3074         * regs.h (reg_info): Add throw_calls_crossed.
3075         (REG_N_THROWING_CALLS_CROSSED): Define.
3076         * flow.c (allocate_reg_life_data): Initialize
3077         REG_N_THROWING_CALLS_CROSSED.
3078         (propagate_one_insn, attempt_auto_inc): Update
3079         REG_N_THROWING_CALLS_CROSSED.
3080         * global.c (global_alloc): Don't allocate pseudos across
3081         calls that may throw.
3082
3083 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
3084
3085         PR c/18715
3086         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
3087         value is inbetween the range if we did not find an exact match.
3088
3089 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
3090
3091         * doc/invoke.texi (Option Summary): Add ms1 options.
3092         * doc/extend.texi: Document interrupt handler attribute for ms1.
3093         * doc/md.texi: Document ms1 constraints.
3094         * config.gcc: Add ms1-*-elf.
3095         * config/ms1/ms1.h: New.
3096         * config/ms1/ms1.c: New.
3097         * config/ms1/ms1.md: New.
3098         * config/ms1/ms1-protos.h: New.
3099         * config/ms1/ABI.txt: New.
3100         * config/ms1/crti.asm: New.
3101         * config/ms1/crtn.asm: New.
3102         * config/ms1/lib2extra-funcs.c: New.
3103         * config/ms1/t-ms1: New.
3104         * config/ms1/ms1.opt: New.
3105
3106 2005-08-22 Ira Rosen <irar@il.ibm.com>
3107
3108         * config/rs6000/altivec.md (xorv4sf3): New.
3109         (negv4sf2, neg<mode>2): Likewise.
3110
3111 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
3112
3113         PR target/23485
3114         * config/ia64/ia64.md (divsi3): Check divide by zero.
3115         (udivsi3): Likewise.
3116         (divdi3): Likewise.
3117         (udivdi3): Likewise.
3118
3119 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
3120
3121         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
3122         up to elem_bitsize bits, not max_bitsize.
3123
3124 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
3125
3126         PR tree-optimization/23433
3127         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
3128         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
3129
3130 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
3131
3132         PR tree-optimization/23434
3133         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
3134         the iteration bound is not an INTEGER_CST.
3135
3136 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
3137
3138         * tree-vect-transform.c (get_initial_def_for_reduction): Set
3139         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
3140         NULL if need_epilog_adjust is false.
3141         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
3142         Case 3 always peels first itration, not just for PLUS case, and no need
3143         to use scalar_initial_def here. Create an epilog adjustment only if
3144         scalar_initial_def is not NULL.
3145
3146         (vectorizable_reduction): Remove assert.
3147
3148 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3149
3150         PR target/23485
3151         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
3152         (__moddi3): Likewise.
3153         (__udivdi3): Likewise.
3154         (__umoddi3): Likewise.
3155         (__divsi3): Likewise.
3156         (__modsi3): Likewise.
3157         (__udivsi3): Likewise.
3158         (__umodsi3): Likewise.
3159
3160 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
3161
3162         * tree-pass.h (TDF_GRAPH): Define.
3163         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
3164         * passes.c (finish_optimization_passes): Only call
3165         finish_graph_dump_file if TDF_GRAPH is set.
3166         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
3167         NULL.  Set TDF_GRAPH bit.
3168         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
3169
3170 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
3171
3172         * arm.h (arm_stack_offsets): Add locals_base field.
3173         * arm.c (arm_get_frame_offsets): Compute it.
3174         (thumb_compute_initial_elimination offset): Make the Thumb frame
3175         pointer point to the base of the local variables.
3176         (thumb_expand_prologue): Update accordingly.
3177         (thumb_expand_epilogue): Likewise.
3178
3179         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
3180         mode of clobbered scratch to DImode.  Handle a case that's known to
3181         need this.
3182
3183 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
3184
3185         * config/rs6000/rs6000.md (gt0<mode>): Delete.
3186         (gt0<mode>_compare): Delete.
3187         (neg_gt0<mode>): Delete.
3188
3189 2005-08-19  Eric Christopher  <echristo@apple.com>
3190
3191         * optabs.h: Change CTI_ to COI_.
3192         * optabs.c: Ditto.
3193
3194 2005-08-19  James E Wilson  <wilson@specifix.com>
3195
3196         * builtins.c (expand_builtin_return_addr): Set
3197         current_function_accesses_prior_frames when count != 0.  Use
3198         frame_pointer_rtx when count == 0.
3199         * function.h (struct function): Add accesses_prior_frames field.
3200         (current_function_accesses_prior_frames): Define.
3201         * reload1.c (init_elim_table): Check
3202         current_function_accesses_prior_frames.
3203         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
3204
3205 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
3206
3207         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
3208         indicator.  Return true if the flowgraph changed during
3209         cleanup.
3210
3211 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
3212
3213         PR 23476
3214         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
3215         conditional expression before testing its value.
3216
3217 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
3218
3219         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
3220
3221 2005-08-19  Devang Patel  <dpatel@apple.com>
3222
3223         PR tree-optimization/23048
3224         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
3225         third parameter. Check whether latch is dominated by exit
3226         block or not.
3227         (if_convertible_loop_p): Supply exit block itself to
3228         if_convertible_bb_p.
3229
3230 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
3231
3232         PR target/23473
3233         * arm.md (arm_load_pic_register): Change argument to the mask of
3234         saved registers.  Call thumb_find_work_register if we need a
3235         scratch register on Thumb.
3236         (arm_expand_prologue): Pass empty register set to
3237         arm_load_pic_register.
3238         (thumb_expand_prologue): Pass live_regs_mask directly to
3239         arm_load_pic_register.
3240         * arm-protos.h (arm_load_pic_register): Update prototype.
3241
3242 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
3243
3244         * sh.c (find_sole_member): New function.
3245         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
3246         if the record's alignment is larger than the size of its only member.
3247
3248 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
3249
3250         PR target/23436
3251         * arm.c (thumb_legitimize_reload_address): New function.
3252         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
3253         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
3254
3255 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
3256
3257         * config/crx/crx.c: Implement crx_decompose_address. Reject
3258         symbolic displacements since CRX register relative adressing
3259         mode can't handle unsigned 32-bit values as displacements.
3260         * config/crx/crx.h: Simplify definitions, remove redundant
3261         parenthesis and obsolete macros.
3262         * config/crx/crx.opt: Add new switch for debugging addresses.
3263         * config/crx/crx-protos.h: Add new declarations for above.
3264
3265 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
3266
3267         PR middle-end/20624
3268         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
3269         looking past it.
3270
3271 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3272
3273         * collect2.c (dup2): Delete.
3274         * configure.ac: Don't check for dup2.
3275
3276         * config.in, configure: Regenerate.
3277
3278 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
3279
3280         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
3281         record with the type of its only member.
3282
3283 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
3284
3285         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
3286         define_insn_and_split.
3287         (plus_ltu<mode>_compare): Same.
3288         (gtu<mode>_compare): Same.
3289         (plus_gtu<mode>_compare): Same.
3290
3291 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
3292
3293         PR tree-optimization/22228
3294         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
3295         todo_flags_start.
3296         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
3297         are recorded in vect_vnames_to_rename for renaming.
3298         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
3299         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
3300         in vect_vnames_to_rename.
3301         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
3302         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
3303
3304 2005-08-18  Jan Hubicka  <jh@suse.cz>
3305
3306         PR c++/22034
3307         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
3308         info only for local statics, not for member variables.
3309
3310 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3311
3312         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
3313
3314 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3315
3316         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
3317
3318 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
3319
3320         PR middle-end/16045
3321         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
3322
3323 2005-08-17  James E Wilson  <wilson@specifix.com>
3324
3325         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
3326         array size check.
3327
3328 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
3329
3330         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
3331         (leu<mode>_compare): Same.
3332         (plus_leu<mode>): Same.
3333         (neg_leu<mode>): Same.
3334         (and_neg_leu<mode): Same.
3335         (ltu<mode>_compare): Same.
3336         (plus_ltu<mode>): Same.
3337         (geu<mode>): Same.
3338         (geu<mode>_compare): Same.
3339         (plus_geu<mode>): Same.
3340         (neg_geu<mode>): Same.
3341         (and_neg_geu<mode>): Same.
3342         (plus_gt<mode>): Same.
3343         (gtu<mode>_compare): Same.
3344         (plus_gtu<mode>): Same.
3345
3346 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
3347
3348         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
3349         Move call_table_data to end.  Delete spurious .text.
3350         (callt_save_all_interrupt): Fix comment typo.
3351
3352 2005-08-17  James E Wilson  <wilson@specifix.com>
3353             Kevin Winchester  <winchester@amirix.com>
3354
3355         PR target/21684
3356         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
3357
3358 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
3359
3360         PR target/23268
3361         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
3362         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
3363
3364 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
3365
3366         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
3367         record with the type of its only member if the modes don't match.
3368
3369         * varasm.c (decode_reg_name): Skip empty additional register names.
3370
3371 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
3372
3373         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
3374         lsm_tmp_name_length): New.
3375         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
3376         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
3377
3378 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3379             Andreas Krebbel  <krebbel1@de.ibm.com>
3380
3381         * config.gcc: Added z9-109 switch.
3382         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
3383         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
3384         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
3385         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
3386         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
3387         for "z9_109" cpu attribute.
3388         * config/s390/s390.c (z9_109_cost): New processor cost structure.
3389         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
3390         (s390_handle_arch_option): Added z9-109 switch.
3391         (override_options): Set respective cost function for z9-109.
3392         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
3393         (legitimate_reload_constant_p): Accept extended immediates.
3394         (print_operand): Three new output modifiers added: k, m and o.
3395         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
3396         (s390_output_mi_thunk): Use extended immediate when possible.
3397         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
3398         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
3399         (CONSTRAINT_LEN): Added length of O constraint.
3400         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
3401         * config/s390/s390.md ("cpu"): New value z9_109 added.
3402         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
3403         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
3404         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
3405         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
3406         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
3407         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
3408         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
3409         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
3410         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
3411         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
3412         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
3413         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
3414         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
3415         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
3416         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
3417         immediates.
3418         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
3419         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
3420         insns for TARGET_EXTIMM.
3421
3422 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
3423
3424         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
3425
3426 2005-08-17  Nick Clifton  <nickc@redhat.com>
3427
3428         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
3429         Call default_encode_section_info.
3430
3431 2005-08-17  Steven Bosscher  <stevenb@suse.de>
3432
3433         PR tree-optimization/21574
3434         * tree-ssa-ccp.c (likely_value): If the right hand side is a
3435         constant, return CONSTANT.
3436         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
3437         (ccp_fold, visit_assignment): Likewise.
3438         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
3439
3440 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
3441
3442         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
3443         fold_buildN instead of buildN then fold_initializer or fold.
3444         (build_unary_op): Likewise.
3445         (build_binary_op): Likewise.
3446         * fold-const.c (fold_initializer): Remove.
3447         (fold_build1_initializer): New function.
3448         (fold_build2_initializer): New function.
3449         (fold_build3_initializer): New function.
3450         * tree.h (fold_initializer): Remove.
3451         (fold_build1_initializer): New function.
3452         (fold_build2_initializer): New function.
3453         (fold_build3_initializer): New function.
3454
3455 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
3456
3457         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
3458         (try_move_mult_to_index): Call fold_build2 instead of build2.
3459         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
3460         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
3461         fold_binary_to_constant.
3462         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
3463         fold (build.
3464         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
3465         check if A == gcd (A, B).  Remove TYPE argument.
3466         (analyze_offset) Use fold_build2 instead of fold (build.
3467         (create_data_ref): Likewise.
3468         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
3469         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
3470         then fold.
3471
3472 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
3473
3474         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
3475         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
3476
3477 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
3478
3479         PR tree-opt/23402
3480         * gimplify.c (zero_sized_type): New function.
3481         (gimplify_modify_expr_rhs): If we have a zero sized type,
3482         replace the statement with an empty statement.
3483
3484 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
3485
3486         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
3487         fxsave.
3488
3489 2005-08-16  Ian Lance Taylor  <ian@airs.com>
3490
3491         * doc/tm.texi (Label Output): Correct typo.
3492
3493 2005-08-16  Steven Bosscher  <stevenb@suse.de>
3494
3495         PR target/23376
3496         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
3497         force_operand will work later on using have_insn_for.
3498
3499 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3500
3501         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
3502
3503 2005-08-16  Ian Lance Taylor  <ian@airs.com>
3504
3505         PR c++/23337
3506         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
3507         vector type, don't try to construct it element by element.  Add an
3508         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
3509
3510 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3511
3512         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
3513
3514 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
3515
3516         * doc/invoke.texi (Precompiled Headers): Document some more options
3517         which are known to be safe.
3518
3519 2005-08-16  James E Wilson  <wilson@specifix.com>
3520
3521         PR tree-optimization/21105
3522         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
3523         TREE_OVERFLOW check.
3524
3525 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
3526
3527         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
3528         (neg_ltu<mode>): Same.
3529         (gtu<mode>): Same.
3530         (neg_gtu<mode>): Same.
3531
3532 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3533
3534         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
3535         (fold_builtin_isdigit): Use fold_buildN.
3536         (build_function_call_expr): Likewise.
3537         * c-typeck.c (c_finish_loop): Likewise.
3538
3539 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
3540             Richard Shann <rshann@superh.com>
3541
3542         PR middle-end/20396:
3543         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
3544
3545 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
3546
3547         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
3548
3549 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
3550
3551         PR target/23355
3552         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
3553         arm_compure_save_reg0_reg12_mask to determine when the PIC register
3554         must be saved.
3555
3556 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3557
3558         PR middle-end/23369
3559         * fold-const.c (build_range_check): Disable optimization for function
3560         pointer expressions on targets that require function pointer
3561         canonicalization.
3562
3563 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
3564
3565         * simplify-rtx.c (simplify_const_relational_operation): When
3566         extracting arguments of a COMPARE, recompute the mode as well.
3567
3568 2005-08-15  Ian Lance Taylor  <ian@airs.com>
3569
3570         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
3571
3572 2005-08-15  DJ Delorie  <dj@redhat.com>
3573
3574         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
3575         the stack.
3576         (movsi_splittable): Allow, but split, moves to the stack.
3577         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
3578         stack.
3579
3580 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3581
3582         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
3583         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
3584         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
3585
3586         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
3587         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
3588         Delete HOST_PTR_PRINTF.
3589
3590         * configure, config.in: Regenerate.
3591
3592 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
3593
3594         * config/rs6000/rs6000.md (QHSI): New mode macro.
3595         (wd): Extend mode attr for QImode and HImode
3596         (dbits): New mode attr.
3597         (zero_extend<mode>di2): Convert to mode macro.
3598
3599 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
3600
3601         PR target/21841
3602         * doc/invoke.texi (-mgnu-ld): Update description.
3603         (-mhp-ld): Ditto.
3604
3605 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
3606
3607         PR 23391
3608         * Makefile.in (tree-chrec.o): Depends on real.h.
3609         * tree-chrec.c: Include real.h.
3610         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
3611         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
3612         * tree-scalar-evolution.c (add_to_evolution_1,
3613         interpret_rhs_modify_expr): Ditto.
3614
3615 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
3616
3617         PR 23386
3618         * tree-data-ref.c (estimate_niter_from_size_of_data): When
3619         step is negative compute the estimation from init downwards to zero.
3620
3621 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
3622
3623         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
3624
3625 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
3626
3627         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
3628         constraint.
3629         (legitimate_reload_constant_p): Fix handling of lliXX operands.
3630         Accept double-word constants that can be split.
3631         * config/s390/s390.md ("movti"): Use 'P' constraint.
3632         ("*movdi_31", "*movdf_31"): Likewise.
3633
3634 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
3635
3636         Fix PR tree-optimization/22615
3637
3638         * tree-ssa-structalias.c (solution_set_add): Handle
3639         first_vi_for_offset returning NULL.
3640         (do_da_constraint): Ditto.
3641         (do_sd_constraint): Ditto.
3642         (do_ds_constraint): Ditto
3643         (find_func_aliases): Ditto.
3644         (build_constraint_graph): RHS is allowed be ANYTHING.
3645         (first_vi_for_offset): Return NULL if we couldn't find anything at
3646         the offset.
3647
3648 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
3649
3650         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
3651         over memory as first operand.
3652
3653 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
3654
3655         PR target/23360
3656         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
3657         available for setting it.
3658
3659 2005-08-14  Ira Rosen  <irar@il.ibm.com>
3660
3661         PR tree-optimization/23320
3662         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
3663         data-refs' types instead of base object nullness. Add check for
3664         pointer type data-refs before first location comparison. Remove
3665         assert.
3666
3667 2005-08-14  Andreas Schwab  <schwab@suse.de>
3668
3669         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
3670
3671 2005-08-13  James E Wilson  <wilson@specifix.com>
3672
3673         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
3674         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
3675         -fstack-protector-all, --param ssp-buffer-size): Document.
3676         (-Wvariadic-macros): Alphabetize.
3677         (-fsched-stalled-insns-dep): Add missing 'f'.
3678
3679         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
3680         macros.
3681
3682 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
3683
3684         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
3685         or indirect address operand.
3686         (EXTRA_ADDRESS_CONSTRAINT): New.
3687         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
3688
3689 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
3690
3691         PR tree-optimization/22236
3692         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
3693         successors and predecessors.
3694         * tree-chrec.c (chrec_convert): Before converting, check that
3695         sequences don't wrap.
3696         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
3697         (analyze_array): Extern.
3698         (find_data_references_in_loop): Remove call to
3699         compute_estimated_nb_iterations.
3700         * tree-data-ref.h (analyze_array): Declared.
3701         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
3702         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
3703         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
3704         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
3705         condition.
3706         * tree-ssa-loop-ivcanon.c: Fix documentation.
3707         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
3708         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
3709         (infer_loop_bounds_from_undefined): New.
3710         (estimate_numbers_of_iterations_loop): Use
3711         infer_loop_bounds_from_undefined.
3712         (used_in_pointer_arithmetic_p): New.
3713         (scev_probably_wraps_p): Pass an extra parameter.  Call
3714         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
3715         (convert_step): Fix documentation.
3716         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
3717         Use initial_condition_in_loop_num and evolution_part_in_loop_num
3718         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
3719         scev_probably_wraps_p.
3720
3721 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
3722
3723         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
3724         (s390_register_info): Ignore clobbered_regs information for fixed
3725         registers, and only fixed registers.
3726         (s390_init_frame_layout): Remove redundant call.
3727
3728 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
3729
3730         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
3731         description of -Wold-style-casts.
3732
3733 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
3734             Jakub Jelinek  <jakub@redhat.com>
3735
3736         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
3737         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
3738         * config/s390/s390.c (print_operand): New output modifier 'G' added.
3739         (get_thread_pointer): Renamed to s390_get_thread_pointer.
3740         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
3741         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
3742         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
3743         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
3744         ("stack_protect_set", "stack_protect_test"): New expanders.
3745         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
3746         "stack_protect_testdi"): New insn definitions.
3747
3748 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
3749
3750         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
3751
3752 2005-08-12  Paul Brook  <paul@codesourcery.com>
3753
3754         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
3755
3756 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
3757
3758         * config/s390/predicates.md (setmem_operand): New predicate.
3759         (shift_count_operand): Accept ANDs with special constants as
3760         operand.
3761         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
3762         with special constants.
3763         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
3764         shift_count_operand with setmem_operand.
3765
3766 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
3767
3768         * config/s390/s390.c (s390_extract_part, s390_single_part):
3769         Type cast added.
3770         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
3771         (s390_output_mi_thunk): Don't use lg on 31 bit.
3772         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
3773         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
3774
3775 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
3776
3777         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
3778         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
3779         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
3780         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
3781         with one of the new macros.
3782
3783 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
3784
3785         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
3786         Don't set save_return_addr_p.
3787         (s390_register_info): Make clobbered_regs not depending on
3788         save_return_addr_p.
3789
3790 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
3791
3792         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
3793         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
3794
3795 2005-08-11  James E. Wilson  <wilson@specifix.com>
3796
3797         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
3798
3799 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
3800
3801         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
3802         locations gathered by var-tracking in single entry loc_list
3803         over loc_descriptor_from_tree.
3804
3805         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
3806         pass it down to loc_descriptor.
3807         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
3808         (containing_function_has_frame_base): Move earlier in the file.
3809         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
3810         instead of always assuming fbreg can't be used.
3811
3812 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
3813
3814         * config/rs6000/altivec.md: Change constraint "m" to "Z".
3815         * config/rs6000/predicates.md (indexed_or_indirect_operand):
3816         Accept address wrapped in AND for Altivec.
3817         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3818         Strip AND wrapping offset address for Altivec.
3819
3820 2005-08-11  Richard Henderson  <rth@redhat.com>
3821
3822         PR middle-end/23312
3823         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
3824         before using TYPE_IS_SIZETYPE.
3825
3826 2005-08-11  Richard Henderson  <rth@redhat.com>
3827
3828         PR target/22225
3829         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
3830         insn types not present on ev4.
3831         (alphaev5_insn_pipe): Similarly.
3832
3833 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
3834
3835         PR target/23250
3836         * arm.c (arm_override_options): If the user has selected callee-super-
3837         interworking, then enable normal interworking.
3838
3839 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3840
3841         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
3842         redefinition.
3843
3844 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
3845
3846         * doc/rtl.texi: Fix two typos.
3847
3848 2005-08-11  Richard Guenther  <rguenther@suse.de>
3849
3850         PR target/23289
3851         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
3852         cases where we call to/from functions returning void.
3853
3854 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
3855
3856         PR c++/23225
3857         * tree.c (build_pointer_type_for_mode): Robustify.
3858
3859 2005-08-10  James E Wilson  <wilson@specifix.com>
3860
3861         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
3862         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
3863
3864         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
3865         "cum->".
3866
3867 2005-08-10  Eric Christopher  <echristo@apple.com>
3868
3869         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
3870         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
3871         V2DFmode.
3872
3873 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
3874
3875         PR target/21887
3876         * config/darwin.c (machopic_indirect_data_reference): Use a new register
3877         for the high part when generating dynamic-no-pic code.
3878
3879 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
3880
3881         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
3882         (x86_64-*-linux*): Likewise.
3883
3884         * config/i386/crtfastmath.c: New file.
3885         * config/i386/t-crtfm: Likewise.
3886
3887         * config/i386/linux.h (ENDFILE_SPEC): New.
3888         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
3889
3890         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
3891         crtfastmath.o.
3892
3893 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
3894
3895         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
3896         (vec_shl, vec_shr): Document new operations.
3897         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
3898
3899 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
3900
3901         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
3902         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
3903         change predicate to indexed_or_indirect_address.
3904
3905 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
3906
3907         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
3908         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
3909         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
3910         and __aeabi_uwrite8.
3911         * config/arm/unaligned-funcs.c: New file.
3912         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
3913
3914 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
3915
3916         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
3917         Add dump.
3918         * cfglayout.c (pass_insn_locators_initialize): Add dump.
3919         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
3920         Add dump.
3921         * except.c (pass_convert_to_eh_region_ranges): Add dump.
3922         * final.c (pass_shorten_branches): Add dump.
3923         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
3924         (pass_life): Rename dump.
3925         (rest_of_handle_flow2): Remove initial verify_flow_info.
3926         * function.c (pass_instantiate_virtual_regs): Add dump.
3927         * integrate.c (pass_initial_value_sets): Add dump.
3928         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
3929         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
3930         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
3931         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
3932         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
3933         gate_rtl_unrool_and_peel_loops): New.
3934         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
3935         rtl_doloop): Do not look at flags.
3936         * mode-switching.c (pass_mode_switching): Add dump.
3937         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
3938         pass_split_before_regstack): Add dump.
3939         * regmove.c (pass_stack_adjustments): Add dump.
3940         * tree-optimize.c (pass_fixup_cfg): Add dump.
3941
3942 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3943
3944         PR 23309
3945         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
3946         deciding which instruction sequence to use.
3947
3948 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
3949
3950         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
3951         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
3952
3953 2005-08-09  Richard Guenther  <rguenther@suse.de>
3954
3955         * c-common.c (builtin_function_2): Remove.
3956         (def_builtin_1): New function.
3957         (c_common_nodes_and_builtins): Use def_builtin_1 to
3958         build builtin functions.
3959
3960 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
3961
3962         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
3963         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
3964         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
3965         Visual DSP.
3966
3967 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
3968
3969         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
3970         fold_binary instead of fold_build2 since we don't care about the
3971         resulting tree.
3972         (loop_niter_by_eval): Likewise.
3973         (compare_trees): Likewise.
3974         (proved_non_wrapping_p): Likewise.
3975
3976 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
3977
3978         PR c/23161
3979         PR c/23165
3980         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
3981         if the if is really empty.
3982
3983 2005-08-09  Steven Bosscher  <stevenb@suse.de>
3984
3985         PR tree-optimization/23234
3986         * tree-ssa-math-opts.c (place_reciprocal): New enum.
3987         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
3988         argument of the new enum.
3989         (execute_cse_reciprocals): Add reciprocals for function arguments
3990         on the unique successor edge of the entry block.  Update other calls
3991         to execute_cse_reciprocals_1.
3992
3993 2005-08-08  Richard Henderson  <rth@redhat.com>
3994
3995         PR 22439
3996         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
3997
3998 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
3999
4000         * expr.c (write_complex_part): Return after handling MEM.
4001
4002 2005-08-08  Josh Conner  <jconner@apple.com>
4003
4004         PR rtl-optimization/23241
4005         * combine.c (simplify_comparison): Fix error in determining
4006         whether to lift a subreg from comparison.
4007
4008 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
4009
4010         PR target/18506
4011         * config/rs6000/altivec.md (vec_init<mode>): New.
4012         (vec_set<mode>): New.
4013         (vec_extract<mode>): New.
4014         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
4015         (rs6000_expand_vector_set): New.
4016         (rs6000_expand_vector_extract): New.
4017         (rs6000_legitimate_offset_address_p): Offset addresses are valid
4018         for Altivec modes before reload.
4019         (altivec_expand_vec_init_builtin): New.
4020         (get_element_number): New.
4021         (altivec_expand_vec_set_builtin): New.
4022         (altivec_expand_vec_ext_builtin): New.
4023         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
4024         builtins.
4025         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
4026         builtins.
4027         * config/rs6000/rs6000.h (rs6000_builtins): Add
4028         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
4029         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
4030         * config/rs6000/rs6000-protos.h: Declare new functions.
4031
4032 2005-08-08  Jan Hubicka  <jh@suse.cz>
4033
4034         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
4035         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
4036         * i386.md (movdi*): Use pic_32bit_operand.
4037         * predicates.md (pic_32bit_operand): New.
4038
4039 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
4040
4041         PR c++/21166
4042         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
4043
4044 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
4045
4046         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
4047         (test_for_singularity): Use fold_build2.
4048
4049 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4050
4051         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
4052
4053 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
4054
4055         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
4056         (COMMON_ASM_OP) Define.
4057         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
4058         (ix86_encode_section_info): Likewise.
4059         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
4060         SUBTARGET_ENCODE_SECTION_INFO.
4061
4062 2005-08-06  Richard Henderson  <rth@redhat.com>
4063
4064         PR 21894
4065         * tree-nested.c (convert_local_reference): Save and restore val_only
4066         around component_ref and friends.  Clear walk_subtrees by default.
4067
4068 2005-08-06  Peter O'Gorman  <peter@pogma.com>
4069
4070         PR 21366
4071         * gcc.c (process_command): Check the argument to -b has a dash.
4072         * doc/invoke.texi: Update -b and -V docs.
4073
4074 2005-08-06  James E Wilson  <wilson@specifix.com>
4075
4076         * config/mips/cross64.h, config/mips/t-cross64: Delete.
4077
4078 2005-08-06  Michael Matz  <matz@suse.de>
4079
4080         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
4081         member only if only one insn is associated with the value.
4082
4083 2005-08-06  Nick Clifton  <nickc@redhat.com>
4084
4085         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
4086         New define.
4087         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
4088         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
4089         Check symbol flags instead of symbol name mangling.
4090         (xstormy16_asm_output_aligned_common): Likewise.  Also
4091         simplify code since the bss100_section cass is the only case
4092         where the below100 code will be triggered.
4093         (xstormy16_encode_section_info): Encode below100 attribute
4094         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
4095         the name.
4096         (xstormy16_strip_name_encoding): Delete - this function is no
4097         longer needed.
4098         (TARGET_STRIP_NAME_ENCODING): Undefine.
4099         * config/stormy16/stormy16-protos.h: Delete prototype for
4100         xstormy16_strip_name_encoding.
4101
4102 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
4103
4104         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
4105         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
4106         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
4107         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
4108         config/alpha/predicates.md, config/arc/arc.h,
4109         config/arm/arm.h, config/arm/ieee754-df.S,
4110         config/arm/ieee754-sf.S, config/bfin/bfin.c,
4111         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
4112         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
4113         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
4114         config/m68hc11/m68hc11.h, config/mips/mips.c,
4115         config/mips/mips.h, config/mips/openbsd.h,
4116         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
4117         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
4118         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
4119         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
4120         config/sparc/linux.h, config/sparc/linux64.h,
4121         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
4122         doc/extend.texi, doc/gcov.texi, doc/install.texi,
4123         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
4124         typos.  Follow spelling conventions.
4125
4126 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
4127
4128         PR c/23113
4129         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
4130         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
4131         specially.  Check for side effects only for COND_EXPR.
4132         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
4133         return with TREE_NO_WARNING.
4134
4135 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
4136
4137         PR rtl-optimization/23233
4138         * loop.c (combine_movables): Require the modes to be the same.
4139         (move_movables): Remove handling of cases where the replacement
4140         had a different mode to the original.
4141
4142 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
4143
4144         PR tree-optimization/23128
4145         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
4146         subtraction wrap, and set TREE_OVERFLOW if they do.
4147
4148 2005-08-05  Richard Henderson  <rth@redhat.com>
4149
4150         PR 21728
4151         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
4152         FORCED_LABEL labels.
4153
4154 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
4155
4156         PR middle-end/23135
4157         * reload.c (find_reloads_subreg_address): Pass down TYPE
4158         unchanged.  Change all callers except find_reloads_toplev.
4159
4160 2005-08-05  Michael Matz  <matz@suse.de>
4161
4162         * genattrtab.c (current_alternative_string): Remove.
4163         (SIMPLIFY_ALTERNATIVE): Ditto.
4164         (attr_alt_bit_p): Ditto.
4165         (alternative_name): Make const char *.
4166         (evaluate_eq_attr): Remove use of above things.
4167         (simplify_test_exp): Ditto.
4168         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
4169         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
4170
4171 2005-08-04  James E Wilson  <wilson@specifix.com>
4172
4173         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
4174         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
4175         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
4176         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
4177         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
4178
4179 2005-08-04  Richard Henderson  <rth@redhat.com>
4180
4181         PR 21529
4182         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
4183         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
4184         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
4185         if we'd have to instantiate too many members.
4186
4187 2005-08-04  Richard Henderson  <rth@redhat.com>
4188
4189         PR 21291
4190         * tree-outof-ssa.c (coalesce_asm_operands): New.
4191         (coalesce_ssa_name): Use it.  Split out ...
4192         (coalesce_phi_operands, coalesce_result_decls): ... these.
4193
4194 2005-08-04  Paul Brook  <paul@codesourcery.com>
4195
4196         * read-rtl.c (read_quoted_string): Break if EOF.
4197
4198 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
4199
4200         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
4201         (fold_build2): Likewise.
4202         (fold_build3): Likewise.
4203         (fold_build1_stat): New function prototype.
4204         (fold_build2_stat): Likewise.
4205         (fold_build3_stat): Likewise.
4206         * fold-const.c (fold_build1): Rename to ..
4207         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
4208         through to build1_stat.
4209         (fold_build2): Rename to ..
4210         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
4211         through to build2_stat.
4212         (fold_build3): Rename to ..
4213         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
4214         through to build3_stat.
4215
4216 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
4217             Ian Lance Taylor  <ian@airs.com>
4218
4219         * function.c (assign_stack_local_1): Do not correct stack slot
4220         address if allocation size is smaller than mode size.
4221
4222 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
4223
4224         PR 22037
4225         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
4226         (tree_merge_blocks): Propagate anything allowed by
4227         may_propagate_copy.
4228         Clarify documentation.
4229         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
4230         SSA form, schedule an update if necessary.
4231
4232 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
4233
4234         * doc/install.texi (Binaries): Remove broken link to
4235         Sinix/Reliant Unix binaries.
4236
4237 2005-08-03  Richard Henderson  <rth@redhat.com>
4238
4239         PR 23221
4240         * function.c (stack_protect_epilogue): Export.
4241         * tree.h (stack_protect_epilogue): Declare.
4242         * calls.c (expand_call): Call it.
4243
4244 2005-08-03  Eric Christopher  <echristo@apple.com>
4245
4246         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
4247         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
4248         spec.
4249
4250 2005-08-04  Jan Hubicka  <jh@suse.cz>
4251
4252         * profile.c (branch_prob): Split edges with goto locus on them
4253         to get proper line counts.
4254         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
4255
4256 2005-08-03  Paul Brook  <paul@codesourcery.com>
4257
4258         * function.c (assign_parms): Round current_function_args_size
4259         to PARM_BOUNDARY, not STACK_BOUNDARY.
4260
4261 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
4262
4263         * config/i386/i386.c (x86_elf_aligned_common)
4264         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
4265
4266 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
4267
4268         PR tree-optimization/23157
4269         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
4270         before emitting them.
4271
4272 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4273
4274         PR tree-optimization/19899
4275         * Makefile.in (tree-scalar-evolution.o): Add real.h.
4276         * tree-scalar-evolution.c: Include real.h.
4277         (add_to_evolution): Build constant -1 of correct type.
4278
4279 2005-08-03  Jan Hubicka  <jh@suse.cz>
4280
4281         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
4282         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
4283         profile updating for complette unrolling.
4284         * loop-unroll.c (peel_loop_completely): Use it.
4285         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4286         (tree_unroll_loops_completely): Disable code growing unrolling of cold
4287         loops.
4288
4289 2005-08-03  Paul Brook  <paul@codesourcery.com>
4290
4291         * combine.c (can_change_dest_mode): New function.
4292         (try_combine, simplify_set): Use it.
4293
4294 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
4295
4296         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
4297         TFmode to BLKmode.
4298
4299 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
4300
4301         * doc/install.texi (Specific): Adjust link to openavr.org.
4302         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
4303         (Binaries): Adjust HP-UX Porting Center link.
4304         (Binaries): Adjust Free Software Foundation ordering link.
4305
4306 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
4307
4308         * convert.c (convert_to_integer): Use fold_build1 instead of
4309         build1 when converting an integer to an integer.
4310
4311 2005-08-02  Richard Henderson  <rth@redhat.com>
4312
4313         * combine.c (combine_instructions): Don't use reg_equal/equiv
4314         results if the mode doesn't match.
4315
4316 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
4317
4318         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
4319         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
4320
4321 2005-08-02  Richard Henderson  <rth@redhat.com>
4322
4323         PR 23196
4324         * explow.c (memory_address): Remove special-case for
4325         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
4326
4327 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
4328
4329         PR 23164
4330         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
4331         number of calls to cleanup_tree_cfg_1.
4332
4333 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
4334
4335         * doc/invoke.texi: document file extensions .F90 and .F95
4336
4337 2005-08-02  Richard Guenther  <rguenther@suse.de>
4338
4339         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
4340         positive if its first argument is positive.
4341
4342 2005-08-02  Richard Guenther  <rguenther@suse.de>
4343
4344         PR tree-optimization/23177
4345         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
4346         on TMR_TAG.
4347
4348 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
4349
4350         PR tree-optimization/23129
4351         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
4352         varying for divisions with anti-ranges.
4353
4354 2005-08-02  Jan Hubicka  <jh@suse.cz>
4355
4356         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
4357         * tree-ssa-threadupdate.c (thread_block): Add it here.
4358
4359 2005-08-01  James E Wilson  <wilson@specifix.com>
4360
4361         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
4362         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
4363         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
4364         New.
4365         * config/mips/predicates.md (const_call_insn_operand): Add check for
4366         SYMBOL_REF_LONG_CALL_P.
4367         * doc/extend.texi (long_call): Document the new attribute.
4368
4369 2005-08-01  Ian Lance Taylor  <ian@airs.com>
4370             Richard Henderson  <rth@redhat.com>
4371
4372         * Makefile.in (RTL_BASE_H): Add real.h.
4373         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
4374         instead of memcpy.
4375         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
4376         directly.
4377         * rtl.c (rtl_check_failed_code_mode): New.
4378         * rtl.h (struct rtx_def): Add u.rv.
4379         (XCMWINT, XCNMPRV): New.
4380         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
4381         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
4382
4383 2005-08-01  Richard Henderson  <rth@redhat.com>
4384
4385         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
4386         with auto-inc codes.
4387
4388         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
4389
4390 2005-08-01  Jan Hubicka  <jh@suse.cz>
4391
4392         * i386-protos.h (asm_preferred_eh_data_format): Declare.
4393         * i386.c: Include dwarf2.h
4394         (asm_preferred_eh_data_format): New.
4395         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
4396
4397 2005-08-01  Ian Lance Taylor  <ian@airs.com>
4398
4399         * config/host-linux.c (linux_gt_pch_get_address): Add new name
4400         randomize_va_space for virtual address randomization control.
4401
4402 2005-08-01  Steven Bosscher  <stevenb@suse.de>
4403
4404         * common.opt (flag_ipa_cp): Put in right place to maintain
4405         alphabetic sort.
4406
4407 2005-08-01  Jan Hubicka  <jh@suse.cz>
4408
4409         * profile.c (compute_value_histograms): Fix thinko.
4410         * value-prof.c: Include toplev.h
4411         (check_counter): New function.
4412         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4413         tree_mod_subtract_transform): Add sanity check.
4414
4415 2005-08-01  Richard Guenther  <rguenther@suse.de>
4416
4417         PR tree-optimization/23133
4418         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
4419         current functions parameter decls to find defs to cse
4420         reciprocals of.
4421
4422 2005-08-01  Richard Guenther  <rguenther@suse.de>
4423
4424         PR tree-optimization/23109
4425         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
4426         If trapping math is in effect, use post-dominator information
4427         to check if we'd in any case reach a trapping point before
4428         doing the reciprocal insertion.
4429         (execute_cse_reciprocals): Compute post-dominators, if necessary.
4430         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
4431         expressions are invariant only if trapping math is not in effect.
4432
4433 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
4434
4435         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
4436         cgraph_function_versioning): New declarations.
4437         * cgraphunit.c: Add include to ipa-prop.h.
4438         (update_call_expr, cgraph_copy_node_for_versioning,
4439         cgraph_function_versioning): New functions.
4440         * integrate.c (copy_decl_for_inlining): Remove.
4441         * ipa-prop.h (ipa_replace_map): New struct.
4442         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
4443         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
4444         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
4445         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
4446         ipcp_iterate_stage, ipcp_method_scale_print,
4447         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
4448         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
4449         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
4450         ipcp_update_bb_counts, ipcp_update_profiling,
4451         ipcp_update_edges_counts): New functions.
4452         (ipcp_method_cval_init): Remove restriction regarding local methods.
4453         (ipcp_init_stage): Add ipcp_method_compute_scale.
4454         (ipcp_insert_stage): Add versioning.
4455         (ipcp_structures_print): Add ipcp_method_scale_print.
4456         (ipcp_driver): Dump profiling info.
4457         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
4458         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
4459         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
4460         (struct inline_data): Add versioning_p, ipa_info, new fields.
4461         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
4462         declare_return_variable): Replace calls to copy_decl_for_inlining with
4463         copy_decl_for_dup.
4464         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
4465         versioning support.
4466         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
4467         Add argument VERSIONING.
4468         (copy_arguments_for_versioning, copy_static_chain,
4469         function_versionable_p, tree_versionable_function_p,
4470         tree_function_versioning, replace_ref_tree): New functions.
4471         * tree-inline.h: Include varray.h.
4472         (tree_versionable_function_p,  tree_function_versioning,
4473         tree copy_decl_for_dup): New declarations.
4474
4475 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
4476
4477         * ipa-cp.c: New file. Contains IPCP specific functionality.
4478         * ipa-prop.h: New file. Contains structures/definitions that can be
4479         used by several interprocedural data flow optimizations (and also IPCP).
4480         * ipa-prop.c: New file.
4481         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
4482         * common.opt: Add ipa-cp flag.
4483         * timevar.def: Add IPCP optimization.
4484         * tree-optimize.c (init_tree_optimization_passes): Schedule
4485         pass_ipa_cp.
4486         * tree-pass.h (pass_ipa_cp): Declare.
4487
4488 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
4489
4490         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
4491         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
4492         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
4493         config/i386/i386.c, config/mips/mips.h,
4494         config/rs6000/rs6000.h, config/sh/sh.c,
4495         config/stormy16/stormy16.c: Fix comment typos.
4496
4497 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
4498
4499         PR c/22311
4500         * c-typeck.c (build_binary_op): Use common_type wrapper on
4501         shortened types.
4502         (common_type): Update comment.
4503
4504 2005-07-31  Steven Bosscher  <stevenb@suse.de>
4505
4506         PR target/23095
4507         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
4508         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
4509         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
4510
4511 2005-07-31  Jan Hubicka  <jh@suse.cz>
4512
4513         * pretty-print.h (pp_widest_integer): New macro.
4514         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
4515         counts.
4516
4517 2005-07-31  Jan Hubicka  <jh@suse.cz>
4518
4519         * output.h (enum section_category): Export from varasm.c
4520         (categorize_decl_for_section): Likewise.
4521         * varasm.c (enum section_category): Kill.
4522         (categorize_decl_for_section): Make global.
4523         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
4524         Declare.
4525         * i386.c (ix86_section_threshold): New static variable.
4526         (ix86_in_large_data_p, ix86_encode_section_info,
4527         x86_64_elf_unique_section,
4528         x86_64_elf_select_section): New functions.
4529         (TARGET_ENCODE_SECTION_INFO): Define
4530         (override_options): Enable medium model for PIC.
4531         (ix86_expand_prologue): Expand gen_set_got_rex64.
4532         (legitimate_constant_p): Handle new UNSPECs.
4533         (legitimate_pic_address_disp_p): Likewise.
4534         (legitimize_pic_address): Lower MEDIUM model addressing.
4535         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
4536         (enum cmodel): Add MEDIUM_PIC.
4537         (SYMBOL_REF_FAR_ADDR_P): New macro.
4538         (SYMBOL_FLAG_FAR_ADDR): New flag.
4539         * i386.md (movdi): Support medium model.
4540         (set_got_rex64): New pattern.
4541         * i386.opt (mlarge-data-threshold): New flag.
4542         * predicates.md (zext_operand/sext_operand): Deal with medium model.
4543         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
4544         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
4545         TARGET_ASM_UNIQUE_SECTION): New.
4546
4547         * invoke.texi (-mlarge_data_threshold): Document
4548
4549 2005-07-31  Jan Hubicka  <jh@suse.cz>
4550
4551         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
4552         (coalesce_vars): Likewise.
4553         * tree-ssa-live.c (coalesce_cost): New.
4554         (build_tree_conflict_graph): Use coalesce_cost.
4555         * tree-ssa-live.h (coalesce_cost): Declare.
4556
4557 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
4558
4559         * arm.md (all peepholes for post-increment operations): Delete.
4560         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
4561         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
4562         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
4563         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
4564         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
4565
4566 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
4567
4568         * fold-const.c (tree_expr_nonnegative_p): Always return true for
4569         non-integral types.
4570
4571 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
4572
4573         PR target/22582
4574         * doc/invoke.texi: Document -rdynamic.
4575
4576 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
4577
4578         PR c/23143
4579         * c-parser.c (c_parser_parms_list_declarator): Call
4580         mark_forward_parm_decls.
4581         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
4582         decls with visibility structure.
4583
4584 2005-07-30  Paul Brook  <paul@codesourcery.com>
4585
4586         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
4587
4588 2005-07-30  Paul Brook  <paul@codesourcery.com>
4589
4590         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
4591         prototype.
4592         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
4593         value for mode.
4594         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
4595
4596 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
4597
4598         PR c/529
4599         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
4600         nested function declarators.
4601         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
4602         (grokparms): Call warn_if_shadowing for parameters used within the
4603         parameter list.
4604         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
4605         not used within the parameter list.
4606         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
4607
4608 2005-07-30  Jan Hubicka  <jh@suse.cz>
4609
4610         * expr.c (expand_expr_real_1): Do not load mem targets into register.
4611         * i386.c (ix86_fixup_binary_operands): Likewise.
4612         (ix86_expand_unary_operator): Likewise.
4613         (ix86_expand_fp_absneg_operator): Likewise.
4614         * optabs.c (expand_vec_cond_expr): Validate dest.
4615
4616 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
4617
4618         PR c/21720
4619         * real.c (real_from_string): Also set last bit if there is a
4620         nonzero hex digit beyond GCC's internal precision after ".".
4621
4622 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
4623
4624         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
4625         define_constants.  Change duplicate values to unassigned numbers.
4626         Change UNSPEC_SUBS to UNSPEC_VSUBS.
4627         (*altivec_vspltsf): New.
4628         (altivec_vperm_v4sf): Delete.
4629         (altivec_vperm_<mode>): Use mode macro V.
4630         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
4631         (altivec_predicate_v4sf): Delete.
4632         (altivec_predicate_<mode>): Use mode macro V.
4633         (*altivec_lvesfx): New.
4634         (*altivec_stvesfx): New.
4635         (vec_realign_load_v4sf): Delete.
4636         (vec_realign_load_<mode>): Use mode macro V.
4637         * config/rs6000/rs6000.c (generate_set_vrsave): Use
4638         UNSPECV_SET_VRSAVE.
4639
4640 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
4641
4642         PR bootstrap/23131
4643         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
4644         string.
4645         * configure: Regenerated.
4646
4647 2005-07-29  Paul Brook  <paul@codesourcery.com>
4648
4649         * doc/install.texi: Add link to GFortran binaries wiki page.
4650
4651 2005-07-29  David Ung  <davidu@mips.com>
4652
4653         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
4654         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
4655         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
4656         * config/mips/mips.md (cpu): Add 5kf name.
4657         (includes): Includes 5k.md.
4658         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
4659         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
4660         -march flag.
4661
4662 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
4663
4664         PR 22550
4665         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
4666         (cleanup_tree_cfg): ... here.
4667         Call cleanup_tree_cfg_1 until there are no more cleanups to
4668         do.
4669
4670 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
4671
4672         * tree-vrp.c (compare_range_with_value): Return true or false
4673         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
4674         EQ_EXPR respectively.
4675
4676 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
4677
4678         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
4679         Fix comment typos.
4680
4681 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
4682
4683         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
4684         (tree_ssa_dominator_optimize): Increment it.
4685         (dump_dominator_optimization_stats): Print it.
4686
4687 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
4688             Steven Bosscher  <stevenb@suse.de>
4689
4690         PR rtl-optimization/23117
4691         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
4692         when head == tail.  Tidy comment.
4693
4694 2005-07-28  Richard Henderson  <rth@redhat.com>
4695
4696         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
4697         * cselib.c (rtx_equal_for_cselib_p): Likewise.
4698         * jump.c (rtx_renumbered_equal_p): Likewise.
4699         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
4700         CONST_INT and CONST_DOUBLE.
4701         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
4702         * reload.c (operands_match_p): Special case CONST_INT and
4703         CONST_DOUBLE; check mode earlier.
4704
4705 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
4706
4707         PR c/22240
4708         * c-typeck.c (convert_for_assignment): Do not check
4709         DECL_IN_SYSTEM_HEADER on NULL fundecl.
4710
4711 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
4712
4713         PR c/22192
4714         * c-typeck.c (composite_type): Prefer constant size arrays to
4715         VLAs.
4716
4717 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
4718
4719         PR c/21720
4720         * real.c (real_from_string): Set last bit if there is a nonzero
4721         hex digit beyond GCC's internal precision.
4722
4723 2005-07-28  Richard Henderson  <rth@redhat.com>
4724
4725         PR rtl-opt/22619
4726         * cfgcleanup.c (try_forward_edges): Watch out for end of
4727         insn chain.
4728
4729 2005-07-28  James E Wilson  <wilson@specifixinc.com>
4730
4731         PR c/23106
4732         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
4733
4734 2005-07-28  Jan Hubicka  <jh@suse.cz>
4735
4736         * Makefile.in (rtl-profile.o): Kill all traces of it.
4737         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
4738         * coverage.h (rtl_coverage_counter_ref): Kill.
4739         * opts.c (flag_speculative_prefetching_set): Kill.
4740         (flag_loop_optimize_set): New.
4741         (common_handle_option): Disable loop optimizer when profiling;
4742         do not handle speculative prefetching.
4743         * passes.c (init_optimization_passes): Replace pass_profiling combo
4744         by branch_prob pass.
4745         * profile.c (compute_value_histograms): Update for simplified value
4746         profiles.
4747         (rtl_register_profile_hooks): Kill.
4748         (pass_profiling): Kill.
4749         (rest_of_handle_branch_prob): Do not profile.
4750         * toplev.c (process_options): Remove speculative prefetching.
4751         * toplev.h (flag_tree_based_profiling): Kill.
4752         * tree-profile.c (prepare_instrumented_value,
4753         tree_gen_interval_profiler, tree_gen_pow2_profiler,
4754         tree_gen_one_value_profiler, do_tree_profiling): Update for
4755         simplified datastructures.
4756         * value-prof.c: Add comment that speculative prefetching was dropped;
4757         update rest of file for simplified datastructures.
4758         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
4759         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
4760         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
4761         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
4762         rtl_mod_subtract, gen_speculative_prefetch,
4763         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
4764         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
4765         (gate_handle_value_profile_transformations,
4766         rest_of_handle_value_profile_transformations,
4767         pass_value_profile_transformations): Kill.
4768         * value-prof.h (histogram_value_t): Remove IL based unions.
4769         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
4770         rtl_profile_hooks): Remove hooks.
4771
4772         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
4773
4774         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
4775         (cgraph_clone_node): Likewise.
4776         * cgraph.h (cgraph_clone_edge): Update prototype.
4777         (cgraph_clone_node): Likewise.
4778         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
4779         cgraph_clone_node.
4780         (lookup_recursive_calls): Consider profile.
4781         (cgraph_decide_recursive_inlining): Fix updating; use new
4782         probability argument; use profile.
4783         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
4784         * tree-inline.c (copy_bb): Update clal of clone_edge.
4785         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
4786
4787         * invoke.texi (min-inline-recursive-probability): Document.
4788
4789 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
4790
4791         * doc/install.texi (Configuration): Update Valgrind homepage.
4792
4793 2005-07-28  Richard Henderson  <rth@redhat.com>
4794
4795         PR middle-end/21362
4796         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
4797         labels we want to delete.
4798         (cfg_layout_merge_blocks): Likewise.
4799
4800 2005-07-28  Richard Henderson  <rth@redhat.com>
4801
4802         PR target/17692
4803         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
4804         when expanding to nothing.
4805
4806 2005-07-28  Josh Conner  <jconner@apple.com>
4807
4808         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
4809         (cgraph_decide_inlining_of_small_functions): Likewise.
4810
4811 2005-07-28  Josh Conner  <jconner@apple.com>
4812
4813         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
4814         direction of badness if negative.
4815         (cgraph_default_inline_p): Add reason to parameters, and assign it
4816         a value.
4817         (cgraph_decide_inlining_of_small_functions): New parameter in call
4818         to cgraph_default_inline_p.
4819         (cgraph_decide_inlining_incrementally): Likewise.
4820         * cgraphunit.c (decide_is_function_needed): Likewise.
4821         * cgraph.h (cgraph_default_inline_p): Likewise.
4822
4823 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4824
4825         * builtins.c: Fix comment typo(s).
4826         * genautomata.c: Likewise.
4827         * gimplify.c: Likewise.
4828         * tree-dfa.c: Likewise.
4829         * tree-flow-inline.h: Likewise.
4830         * tree-into-ssa.c: Likewise.
4831         * tree-ssa-alias.c: Likewise.
4832         * tree-ssa-ccp.c: Likewise.
4833         * tree-ssa-copy.c: Likewise.
4834         * tree-ssa-dce.c: Likewise.
4835         * tree-ssa-dom.c: Likewise.
4836         * tree-ssa-operands.c: Likewise.
4837         * tree-tailcall.c: Likewise.
4838         * tree-vectorizer.c: Likewise.
4839         * tree-vrp.c: Likewise.
4840         * tree.c: Likewise.
4841
4842 2005-07-28  Jeff Law  <law@redhat.com>
4843
4844         * tree-vrp.c (test_for_singularity): Extracted from  ...
4845         (simplify_cond_using_ranges): Attempt to simplify a relational
4846         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
4847
4848 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
4849
4850         PR tree-optimization/22506
4851         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
4852         phis whose argument is constant.
4853
4854 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
4855
4856         PR rtl-optimization/18992
4857         Back out this patch:
4858           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4859           PR optimization/12142
4860           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
4861           uses of the register in the SET_SRC.  Remove unnecessary argument.
4862
4863         Replace it with this:
4864         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
4865         if flag_non_call_exceptions is set and the insn may trap, pass
4866         pc_rtx as dest for recursion.
4867         In SET_SRC part of SET case, if dest is already set, pass it down
4868         unchanged.
4869
4870 2005-07-28  Jan Hubicka  <jh@suse.cz>
4871
4872         * cfg.c (update_bb_profile_for_threading): Use RDIV.
4873         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
4874         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
4875         roundoff errors.
4876         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
4877         profile when available.
4878
4879 2005-07-28  Jan Beulich <jbeulich@novell.com>
4880
4881         * config/ia64/ia64.c (ia64_load_pair_ok): New.
4882         (ia64_print_operand): Describe and handle 'X'.
4883         (ia64_register_move_cost): Also handle FP_REGS.
4884         (ia64_preferred_reload_class): Likewise.
4885         (ia64_secondary_reload_class): Likewise.
4886         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
4887         it. Also check for ITANIUM_CLASS_FLDP.
4888         * config/ia64/ia64.h (FP_REGNO_P): New.
4889         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
4890         (reg_class): Add FP_REGS.
4891         (REG_CLASS_NAMES): Adjust for it.
4892         (REG_CLASS_CONTENTS): Likewise.
4893         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
4894         (REG_CLASS_FROM_LETTER): Handle 'x'.
4895         (CLASS_MAX_NREGS): Handle FP_REGS.
4896         (MEMORY_MOVE_COST): Likewise.
4897         * config/ia64/ia64.md (itanium_class): Add fldp.
4898         (type): Handle fldp.
4899         (movti_internal): More allowable operand combinations. Use ldfp8 when
4900         splitting unnecessary. Remove predicable attribute. Adjust
4901         itanium_class attribute.
4902         (smuldi3_highpart): Remove outdated comment.
4903         (mulditi3, umulditi3, rotlti3): New expanders.
4904         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
4905         (absti2): Disabled new insn for future reference.
4906         Respective new splitters.
4907         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
4908         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
4909         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
4910
4911 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
4912
4913         PR rtl-optimization/23047
4914         * simplify-rtx.c (simplify_const_relational_operation): Respect
4915         flag_wrapv for comparisons with ABS.
4916
4917 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
4918
4919         PR tree-optimization/22493
4920         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
4921         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
4922
4923 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
4924
4925         * config/frv/frv.opt (moptimize-membar): New.
4926
4927         * doc/invoke.texi: Document -moptimize-membar and its inverse.
4928
4929         * config/frv/frv.h: Remove machine_function definition.
4930
4931         * config/frv/frv.c (struct frv_io): New.
4932         (struct machine_function): Moved from frv.h.  Add has_membar_p.
4933         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
4934         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
4935         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
4936         (frv_optimize_membar_global, frv_optimize_membar): New functions.
4937         (frv_reorg): Call frv_optimize_membar when appropriate.
4938         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
4939         (frv_expand_builtin): Adjust calls accordingly.
4940         (frv_io_address_cookie): New function.
4941         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
4942         load or store rather than a special insn.  Add ccnstant address and
4943         io-type operands to the membar.
4944         (frv_ifcvt_modify_tests): Unsign regno.
4945         (frv_ifcvt_modify_tests): Same.
4946
4947         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
4948         UNSPEC_OPTIONAL_MEMBAR constant.
4949         (builtin_read_<mode>): Delete.
4950         (builtin_write_<mode>): Delete.
4951         ("optional_membar_<mode>"): Add operand.
4952
4953         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
4954         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
4955         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
4956         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
4957         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
4958         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
4959         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
4960         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
4961         * testsuite/gcc.target/frv/all-read-write-1.c: New.
4962
4963 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
4964
4965         * df.c (df_uses_record): Handle SCRATCH.
4966
4967 2005-07-28  Steven Bosscher  <stevenb@suse.de>
4968
4969         PR debug/20161
4970         * passes.c (rest_of_decl_compilation): If decl is a type and
4971         we have encountered errors, don't emit debug information.
4972
4973 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
4974
4975         * params.def: Fixed comment.
4976
4977 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
4978
4979         PR target/19885
4980         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
4981         (TARGET_ASM_UNALIGNED_HI_OP): Add.
4982         (TARGET_ASM_UNALIGNED_SI_OP): Add.
4983
4984 2005-07-27  Steven Bosscher  <stevenb@suse.de>
4985
4986         PR c++/22003
4987         * varasm.c (assemble_start_function): Don't do anything that may
4988         require a CFG if the current function is a thunk.
4989
4990 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
4991
4992         * doc/install.texi (Prerequisites): Mention that perl is needed
4993         to do export control in libstdc++ targetting Darwin.
4994
4995 2005-07-27  Steven Bosscher  <stevenb@suse.de>
4996
4997         PR rtl-optimization/17808
4998         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
4999         (sched_insns_conditions_mutex_p): Split out from...
5000         (add_dependence): ...here.  But don't call it from here.
5001         (add_dependence_list): Check sched_insns_conditions_mutex_p
5002         before calling add_dependence.
5003         (add_dependence_list_and_free): Likewise.
5004         (fixup_sched_groups): Likewise.
5005         (sched_analyze_1): Likewise.
5006         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
5007         (sched_analyze): Likewise.
5008         (sched_analyze_insn): Likewise.
5009         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
5010         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
5011         dependencies on all COND_EXEC insns to jumps ending basic blocks
5012         when doing intrablock scheduling.
5013         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
5014
5015 2005-07-27  Jeff Law  <law@redhat.com>
5016
5017         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
5018         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
5019         equivalency sets, correctly handle the case were vr0 has an
5020         equivalency set, but vr1 does not.
5021
5022 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
5023
5024         PR tree-optimization/23073
5025         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
5026         vect_print_dump_info before fprintf.
5027
5028 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
5029
5030         PR tree-optimize/22348
5031         * tree-ssa-loop-niter.c (number_of_iterations_cond):
5032         Fold the partial computation.
5033
5034 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
5035
5036         PR tree-optimization/22325
5037         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
5038         Declare.
5039         * tree-scalar-evolution.c (scev_const_prop): Add generic final
5040         value replacement.
5041         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
5042         (force_var_cost): ... this function.
5043         (compute_phi_arg_on_exit): Export.
5044
5045 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
5046
5047         PR tree-optimization/20773
5048         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
5049         edge.
5050
5051 2005-07-27  Richard Guenther  <rguenther@suse.de>
5052
5053         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
5054         Avoid pushing again if current struct contains only
5055         fields we decomposed.
5056
5057 2005-07-27  Jan Hubicka  <jh@suse.cz>
5058
5059         PR tree-optimization/22574
5060         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
5061         not available.
5062
5063         * tree-tailcall.c (decrease_profile): New function.
5064         (eliminate_tail_call): Use it.
5065
5066         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
5067         visibility flags correctly in whole program mode.
5068
5069 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
5070
5071         PR rtl-optimization/22472
5072         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
5073
5074 2005-07-26  Steven Bosscher  <stevenb@suse.de>
5075
5076         PR tree-optimization/22504
5077         * tree-complex.c (expand_complex_addition): Use 'code' instead
5078         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
5079
5080 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
5081
5082         * config.gcc (cpu_type): Add frv case.
5083         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
5084         (supported_defaults): Add fr550 case.
5085
5086 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
5087
5088         PR 22591
5089         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
5090         whether a pointer of type T * may point to objects of type T *.
5091
5092 2005-07-26  DJ Delorie  <dj@redhat.com>
5093
5094         * configure: Regenerate.
5095
5096 2005-07-26  Dale Johannesen  <dalej@apple.com>
5097
5098         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
5099
5100 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
5101
5102         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
5103         Clarify use of "build" in name.
5104
5105 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
5106
5107         * doc/extend.texi (Raw read/write Functions): New section.
5108         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
5109         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
5110         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
5111         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
5112         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
5113         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
5114         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
5115         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
5116         * config/frv/frv.c: Add bdesc_loads global.
5117         Add bdesc_stores global.
5118         (frv_init_builtins): Add support for __builtin_{read/write}*.
5119         (frv_volatile_memref): New.
5120         (frv_expand_load_builtin): New.
5121         (frv_expand_store_builtin): New.
5122         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
5123         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
5124         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
5125         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
5126         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
5127         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
5128         (builtin_read_<mode>): New.
5129         (builtin_write_<mode>): New.
5130         (builtin_write64): New.
5131         (optional_membar_<mode>): New.
5132
5133 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
5134
5135         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
5136         (rather than units) against HOST_BITS_PER_WIDE_INT.
5137
5138 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
5139
5140         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
5141         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
5142         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
5143         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
5144         FSF address.
5145
5146         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
5147         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
5148         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
5149         comment typos.
5150         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
5151
5152 2005-07-26  Richard Guenther  <rguenther@suse.de>
5153
5154         PR tree-optimization/22486
5155         * fold-const.c (fold_unary): Fold away useless component
5156         references of the form (T *)&T.x, if the address
5157         doesn't change.
5158
5159 2005-07-25  James E Wilson  <wilson@specifixinc.com>
5160
5161         * dwarf2out.c (add_call_src_coords_attributes): New.
5162         (gen_inlined_subroutine_die): Call it.
5163         (maybe_emit_file, init_file_table): Add comments.
5164         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
5165         maybe_emit_file.
5166         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
5167         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
5168         * tree.h (BLOCK_SOURCE_LOCATION): New.
5169         (struct tree_block): New field locus.
5170
5171 2005-07-26  Andreas Schwab  <schwab@suse.de>
5172
5173         PR rtl-optimization/23043
5174         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
5175         when allocating a struct unoccr.
5176
5177 2005-07-25  Richard Henderson  <rth@redhat.com>
5178
5179         PR 22626
5180         * tree-complex.c (gate_no_optimization): True if errors.
5181         * Makefile.in (tree-complex.o): Update dependencies.
5182
5183 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
5184
5185         * config/frv/predicates.md (integer_register_operand): Use
5186         GPR_AP_OR_PSEUDO_P.
5187
5188 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
5189
5190         PR tree-opt/22484
5191         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
5192         after fold.
5193         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
5194
5195 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
5196
5197         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
5198         types when flag_unsafe_math_optimizations is true.
5199
5200 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
5201
5202         * gcc.c (option_map): Add --sysroot.
5203         (process_command): Handle --sysroot.
5204         (display_help): Document it.
5205         * doc/cppopts.tex (-isysroot): Document.
5206         * doc/invoke.texi (--sysroot): Document.
5207         * doc/install.texi (--with-build-sysroot): Document.
5208
5209         * Makefile.in (inhibit_libc): New variable.
5210         (INHIBIT_LIBC_CFLAGS): Likewise.
5211         (LIBGCC2_CFLAGS): Include
5212         $(INHIBIT_LIBC_CFLAGS).
5213         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
5214         ($(T)crtbegin.o): Do not use @inhibit_libc@.
5215         ($(T)crtend.o): Likewise.
5216         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
5217         ($(T)crtendS.o): Likewise.
5218         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
5219         ($(T)crtendT.o): Likewise.
5220         (stmp-fixinc): Do not complain about missing headers if
5221         inhibit_libc.
5222         * configure.ac (inhibit_libc): Set it to true/false.
5223         (--with-build-sysroot): New option.  Use it to set
5224         SYSTEM_HEADER_DIR.
5225         * configure: Regenerated.
5226
5227 2005-07-25  Manfred Hollstein  <mh@suse.com>
5228
5229         * calls.c (store_one_arg): Fix unsigned comparison warning.
5230
5231 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
5232
5233         PR other/22337
5234         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
5235         (ggc_print_statistics): Initialize variable before use.
5236
5237 2005-07-25  Richard Guenther  <rguenther@suse.de>
5238
5239         * tree-dfa.c (mark_new_vars_to_rename): Protect against
5240         calling with a PHI_NODE argument.
5241
5242         * tree-flow-inline.h (overlap_subvar): Protect against
5243         possible overflow.
5244
5245 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
5246
5247         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
5248         * configure: Regenerate.
5249
5250 2005-07-25  Ira Rosen  <irar@il.ibm.com>
5251
5252         * expr.c (highest_pow2_factor): Make extern.
5253         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
5254         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
5255         record_array_differ_p, array_ptr_differ_p): Likewise.
5256         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
5257         additional cases. Call the above functions.
5258         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
5259         base_object_differ_p when there are two base objects. Otherwise, compare
5260         base address and offset. Call may_alias_p.
5261         (dump_data_reference): Use a correct field name.
5262         (analyze_array): Make static. Initialize new data-ref fields.
5263         (analyze_indirect_ref): New function.
5264         (init_data_ref): Initialize new data-ref fields.
5265         (strip_conversion): Moved from tree-vect-analyze.c.
5266         (analyze_offset_expr, get_ptr_offset, address_analysis,
5267         object_analysis): Likewise.
5268         (analyze_offset): New function.
5269         (create_data_ref): Likewise.
5270         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
5271         dimensions for ARRAY_REFs only.
5272         (build_classic_dist_vector): Make static.
5273         (access_functions_are_affine_or_constant_p): Call macro to get the
5274         address of access functions.
5275         (compute_all_dependences): Add new parameter
5276         compute_self_and_read_read_dependences. Compute self and read-read
5277         dependences if it is true.
5278         (find_data_references_in_loop): Call create_data_ref. Initialize new
5279         data-ref fields.
5280         (compute_data_dependences_for_loop): Add new parameter
5281         compute_self_and_read_read_dependences. Remove parameter nb_loops,
5282         compute nb_loops. Call compute_all_dependences,
5283         build_classic_dist_vector and build_classic_dir_vector with correct
5284         parameters.
5285         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
5286         with correct parameters. Compare dimensions for ARRAY_REFs only.
5287         (free_data_refs): Call macro to free access functions.
5288         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
5289         fields from stmt_vinfo.
5290         (struct base_object_info): New structure.
5291         (struct data_reference): Move fields to base_object_info. Add fields
5292         first_location and object_info for above structures. Move fields from
5293         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
5294         aligned_to.  Add macros to access the new fields.
5295         Update functions declarations.
5296         * tree-flow.h (is_aliased_with): Declare.
5297         * tree-loop-linear.c (linear_transform_loops): Call
5298         compute_data_dependences_for_loop with correct parameters.
5299         * tree-ssa-alias.c (is_aliased_with): New function.
5300         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
5301         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
5302         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
5303         vect_base_addr_differ_p, compute_subscript_distance and
5304         build_classic_dist_vector. Add printings. Check absolute value of
5305         distance.
5306         (vect_analyze_data_ref_dependences): Go through ddrs instead of
5307         data-refs.
5308         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
5309         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
5310         to bytes. Add printing.
5311         (vect_compute_data_refs_alignment): Go through loads and stores in one
5312         loop.
5313         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
5314         vect_analyze_data_ref_access): Likewise.
5315         (vect_analyze_pointer_ref_access): Remove.
5316         (vect_address_analysis, vect_object_analysis): Likewise.
5317         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
5318         and analyze data-refs in the loop.
5319         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
5320         fields of data-ref instead of stmt. Add init to the offset from the
5321         base.
5322         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
5323         (vect_update_init_of_dr): Likewise.
5324         (vect_update_inits_of_drs): Go through loads and stores in one loop.
5325         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
5326         removed fields.
5327         (new_loop_vec_info): Initialize new fields.
5328         (destroy_loop_vec_info): Free new fields.
5329         (vect_strip_conversion): Remove.
5330         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
5331         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
5332         datarefs. Add new field ddrs.
5333         Add macros for the new fields access.
5334         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
5335         base_aligned_p, misalignment, memtag, ptr_info and subvars.
5336         Remove their macros.
5337         * tree.h (highest_pow2_factor): Declare.
5338
5339 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
5340
5341         * calls.c (store_one_arg): Check for sibling call MEM arguments
5342         from already clobbered incoming argument area.
5343
5344 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5345
5346         * c-common.c (check_missing_format_attribute): New.
5347         * c-common.h (check_missing_format_attribute): Likewise.
5348         * c-typeck.c (convert_for_assignment): Use it.
5349
5350 2005-07-24  Andreas Schwab  <schwab@suse.de>
5351
5352         * config/m68k/m68k.md ("extendqidi2"): When source is an address
5353         register use a word move.  Correct operand of ext.w in 68000 code.
5354
5355 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
5356
5357         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
5358         variables as declarations, rather than definitions.
5359
5360 2005-07-24  Ira Rosen  <irar@il.ibm.com>
5361
5362         PR tree-optimization/22526
5363         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
5364         of the zero node.
5365
5366 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
5367
5368         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
5369         that C99 reserve for future use. Use it to define clog10,
5370         clog10f and clog10l.
5371
5372 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5373
5374         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
5375         * configure.ac: Check for -Wmissing-format-attribute.
5376
5377         * configure: Regenerate.
5378
5379 2005-07-23  Richard Henderson  <rth@redhat.com>
5380
5381         PR tree-optimization/22623
5382         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
5383
5384 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
5385
5386         PR target/22577
5387         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
5388
5389 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5390
5391         * Makefile.in (C_TREE_H): Update dependencies.
5392         * c-tree.h: Include toplev.h.
5393         * diagnostic.h (diagnostic_set_info): Add format attribute.
5394         * rtl-error.c (diagnostic_for_asm): Likewise.
5395
5396 2005-07-23  Chao-ying Fu  <fu@mips.com>
5397
5398         * config/mips/mips-dsp.md: New file.
5399         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
5400         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
5401         functions.
5402         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
5403         MIPS_BUILTIN_BPOSGE32.
5404         (mips_expand_builtin_direct): Add one parameter to indicate that
5405         builtin functions need to return a value.
5406         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
5407         functions.
5408         (mips_regno_to_class): Add classes for 12 new DSP registers.
5409         (mips_subword): Change to check four HI registers.
5410         (mips_output_move): Output move to and from 6 new DSP accumulators.
5411         (override_options): Make sure -mdsp and -mips16 are not used together.
5412         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
5413         for machine modes.
5414         (mips_conditional_register_usage): Disable 6 new DSP accumulators
5415         when !TARGET_DSP.
5416         (print_operand): Add 'q' for printing DSP accumulators.
5417         (mips_cannot_change_mode_class): Check ACC_REGS.
5418         (mips_secondary_reload_class): Check ACC_REGS.
5419         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
5420         (mips_register_move_cost): Check ACC_REGS.
5421         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
5422         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
5423         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
5424         (dsp_bdesc): New array.
5425         (bdesc_arrays): Add DSP builtin function table.
5426         (mips_prepare_builtin_arg): Check predicate again after
5427         copy_to_mode_reg.
5428         (mips_expand_builtin): Add one more parameter to
5429         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
5430         MIPS_BUILTIN_BPOSGE32.
5431         (mips_init_builtins): Initialize new function types.
5432         (mips_expand_builtin_direct): Check if builtin functions need to
5433         return a value and pass operands properly.
5434         (mips_expand_builtin_bposge): New function.
5435         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
5436         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
5437         (FIRST_PSEUDO_REGISTER): Increase to 188.
5438         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5439         Update for 12 new DSP registers.
5440         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
5441         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
5442         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
5443         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
5444         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
5445         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
5446         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
5447         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
5448         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
5449         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
5450         (REGISTER_NAMES): Add names for 12 new DSP registers.
5451         * config/mips/mips.md: Include mips-dsp.md.
5452         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5453         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5454         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5455         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5456         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5457         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5458         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5459         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5460         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5461         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5462         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5463         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5464         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5465         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5466         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5467         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5468         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5469         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5470         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5471         (UNSPEC_RDDSP): New constants.
5472         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
5473         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
5474         A<-d alternative.
5475         * config/mips/mips.opt (-mdsp): New option.
5476         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
5477         (reg_imm10_operand): New predicates.
5478         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
5479         * doc/invoke.texi (-mdsp): Document new option.
5480
5481 2005-07-22  DJ Delorie  <dj@redhat.com>
5482
5483         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
5484         to warning calls.
5485         * tree-inline.c (inlinable_function_p): Likewise.
5486
5487 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
5488
5489         PR debug/21828
5490         * toplev.c (check_global_declarations): Do not mark undefined
5491         variables as DECL_IGNORED_P.
5492         * varasm.c (first_global_object_name): GTY it.
5493         (weak_global_object_name): Likewise.
5494         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
5495         a string to go into {weak,first}_global_object_name.
5496
5497 2005-07-22  DJ Delorie  <dj@redhat.com>
5498
5499         * c-format.c (check_function_format): Change warning control
5500         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
5501
5502 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
5503
5504         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
5505         &PTR->FLD a dereference of PTR.
5506         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
5507         a potential dereference of PTR.
5508
5509 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
5510
5511         PR rtl-optimization/20370
5512         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
5513         call allocate_reg_info if necessary.
5514
5515         PR rtl-optimization/21848
5516         * calls.c (emit_library_call_value_1): For const functions, add
5517         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
5518
5519         PR rtl-optimization/22445
5520         * cselib.c (target.h): Include.
5521         (rtx_equal_for_cselib_p): Allow commutative matches.
5522         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
5523         Remove MODE parameter.  Changed all callers.
5524
5525         PR rtl-optimization/22258
5526         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
5527         New functions.
5528         (try_combine): Use likely_spilled_retval_p.
5529
5530 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
5531
5532         * config.gcc: Add crx-elf support.
5533
5534         * doc/contrib.texi: Mention crx.
5535         * doc/extend.texi: Document crx extensions.
5536         * doc/install.texi: Document crx install.
5537         * doc/invoke.texi: Document crx options.
5538         * doc/md.texi: Document crx constraints.
5539
5540         * config/crx/crx-protos.h: New file.
5541         * config/crx/crx.c: New file.
5542         * config/crx/crx.h: New file.
5543         * config/crx/crx.md: New file.
5544         * config/crx/crx.opt: New file.
5545         * config/crx/t-crx: New file.
5546
5547 2005-07-22  Manfred Hollstein  <mh@suse.com>
5548
5549         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
5550         warnings.
5551         (int_add_graph_edge): Likewise.
5552         (collapse_nodes): Likewise.
5553         (process_unification_queue): Likewise.
5554
5555 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5556             Laurent GUERBY  <laurent@guerby.net>
5557
5558         PR tree-optimization/22336
5559         * function.c (record_block_change): Check for
5560         cfun->ib_boundaries_block.
5561
5562 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
5563
5564         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
5565         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
5566
5567 2005-07-21  DJ Delorie  <dj@redhat.com>
5568
5569         * toplev.c (warn_deprecated_use): Add warning control to warning
5570         call.
5571         * c-typeck.c (parser_build_binary_op): Likewise.
5572         (c_finish_if_stmt): Likewise.
5573         * c-common.c (check_function_sentinel): Likewise.
5574         (check_nonnull_arg): Likewise.
5575
5576 2005-07-21  Richard Henderson  <rth@redhat.com>
5577
5578         PR tree-opt/22504
5579         * tree-complex.c (complex_ssa_name_components): New.
5580         (cvc_lookup): Allow entry not found.
5581         (create_components): Remove.
5582         (create_one_component_var, get_component_var): New.
5583         (get_component_ssa_name, set_component_ssa_name): New.
5584         (extract_component): Use get_component_ssa_name.
5585         (update_complex_components): Use set_component_ssa_name.
5586         (update_complex_components_on_edge): Likewise.
5587         (update_phi_components): Create new PHI nodes directly, instead
5588         of adding insns to edges.
5589         (tree_lower_complex): Allocate and free complex_variable_components
5590         and complex_ssa_name_components here.
5591
5592 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
5593
5594         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
5595         revert to returning false.
5596
5597 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
5598
5599         PR target/21149
5600         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
5601
5602 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
5603
5604         PR target/22576
5605         * config/i386/i386.md (cmpxf): Change operand constraints
5606         to "nonmemory_operand".
5607
5608 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
5609
5610         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
5611
5612 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
5613
5614         PR middle-end/21180
5615         * fold-const.c (fold_build1): Add checksum for the operands.
5616         (fold_build2): Likewise.
5617         (fold_build3): Likewise.
5618
5619 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
5620
5621         PR middle-end/19055
5622         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
5623
5624 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
5625
5626         * common.opt (-fforward-propagate): Committed by mistake,
5627         removed.
5628
5629 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5630
5631         * reg-stack.c: Fix comment typo(s).
5632         * tree-ssa-operands.c: Likewise.
5633         * tree-vectorizer: Likewise.
5634
5635 2005-07-21  Nick Clifton  <nickc@redhat.com>
5636
5637         * config/sh/symbian.c: Replace C++ style line comments with C
5638         style line comments.
5639         (symbian_add_attribute): Do not use a ? operator on the LHS of
5640         an assignment.
5641         (sh_symbian_handle_dll_attribute): Change the type of the
5642         method vector to "VEC(tree,gc)*" and use vector accessor
5643         macros to walk over the elements.
5644         (symbian_export_vtable_and_rtti_p): Likewise.
5645         (symbian_class_needs_attribute_p): Likewise.
5646
5647 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
5648
5649         PR target/22085
5650         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
5651         initialize targetm.resolve_overloaded_builtin here.
5652         (altivec_expand_overloaded_builtin): Make it non-static.
5653         * config/rs6000/rs6000-protos.h
5654         (altivec_expand_overloaded_builtin): New prototype.
5655         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
5656         targetm.resolve_overloaded_builtin here.
5657         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
5658
5659 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
5660             Zdenek Dvorak  <dvorakz@suse.cz>
5661
5662         PR tree-optimization/19210
5663         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
5664         New.
5665         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
5666         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
5667         rely on unproven assumptions.
5668         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
5669         * tree-flow.h (number_of_iterations_exit): Add final parameter.
5670         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
5671         to number_of_iterations_exit.
5672         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
5673         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
5674         * tree-ssa-loop-niter.c (find_loop_niter,
5675         estimate_numbers_of_iterations_loop): Likewise.
5676         (number_of_iterations_exit): Honor the new options.
5677         * doc/invoke.texi (Wunsafe-loop-optimizations,
5678         funsafe-loop-optimizations): Document them.
5679
5680 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
5681
5682         PR rtl-optimization/22167
5683         * gcse.c (hoist_code): Fix hoist_exprs[] check.
5684
5685 2005-07-20  Adam Nemet  <anemet@lnxw.com>
5686
5687         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
5688         __do_global_dtors_aux longcall.
5689
5690 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
5691
5692         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
5693         (old_special_pred_table): Don't reference
5694         SPECIAL_MODE_PREDICATES.
5695         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
5696         * config/arc/arc.h: Don't mention PREDICATE_CODES.
5697         * config/sh/predicates.h: Don't mention
5698         SPECIAL_MODE_PREDICATES.
5699         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
5700         Remove.
5701
5702 2005-07-20  DJ Delorie  <dj@redhat.com>
5703
5704         * config.gcc: Add m32c-elf support.
5705
5706         * doc/contrib.texi: Mention m32c.
5707         * doc/extend.texi: Document m32c extensions.
5708         * doc/install.texi: Mention m32c.
5709         * doc/invoke.texi: Document m32c options.
5710         * doc/md.texi: Document m32c constraints.
5711
5712         * config/m32c/addsub.md: New file.
5713         * config/m32c/bitops.md: New file.
5714         * config/m32c/cond.md: New file.
5715         * config/m32c/jump.md: New file.
5716         * config/m32c/m32c-lib1.S: New file.
5717         * config/m32c/m32c-lib2.c: New file.
5718         * config/m32c/m32c-modes.def: New file.
5719         * config/m32c/m32c-pragma.c: New file.
5720         * config/m32c/m32c-protos.h: New file.
5721         * config/m32c/m32c.abi: New file.
5722         * config/m32c/m32c.c: New file.
5723         * config/m32c/m32c.h: New file.
5724         * config/m32c/m32c.md: New file.
5725         * config/m32c/m32c.opt: New file.
5726         * config/m32c/minmax.md: New file.
5727         * config/m32c/mov.md: New file.
5728         * config/m32c/muldiv.md: New file.
5729         * config/m32c/predicates.md: New file.
5730         * config/m32c/prologue.md: New file.
5731         * config/m32c/shift.md: New file.
5732         * config/m32c/t-m32c: New file.
5733
5734 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5735
5736         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
5737         (stack_protect_set, stack_protect_test): New expanders.
5738         (stack_protect_set_si, stack_protect_set_si_media,
5739         stack_protect_set_di_media, stack_protect_test_si,
5740         stack_protect_test_si_media, stack_protect_test_di_media):
5741         New insns.
5742
5743 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
5744
5745         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
5746
5747 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
5748
5749         * tree.h (tree_expr_nonzero_p): Export.
5750         * fold-const.c (tree_expr_nonzero_p): Likewise.
5751         Return true for CALL_EXPRs that are alloca calls.
5752         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
5753         against zero.
5754         * tree-flow.h (expr_computes_nonzero): Remove.
5755         * tree-vrp.c (expr_computes_nonzero): Remove.
5756         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
5757         (extract_range_from_unary_expr): Likewise.
5758         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
5759         tree_expr_nonzero_p.
5760
5761 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
5762
5763         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
5764         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
5765         extra arg "picreg" and use it instead of pic_offset_table_rtx.
5766         All callers changed.
5767         (frame_related_constant_load): New arg "related" which controls
5768         setting of RTX_FRAME_RELATED_P.  All callers changed.
5769         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
5770         (bfin_expand_prologue): Add stack limit checking.
5771         * config/bfin/bfin.md (trapifcc): New pattern.
5772
5773         * config/bfin/bfin.c: Include "langhooks.h".
5774         (def_builtin): Go through lang_hooks to call builtin_function.
5775
5776         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
5777         * config/bfin/predicates.md (symbol_ref_operand): New.
5778         (call_insn_operand): Delete.  All callers changed to use
5779         register_no_elim_operand.
5780         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
5781         call_cookie field.
5782         (function_arg): Use it to generate the call's operand 2.
5783         (bfin_longcall_p): New function.
5784         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
5785         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
5786         determine if the address needs to be in a REG.
5787         (bfin_handle_longcall_attribute): New function.
5788         (bfin_attribute_table): Add "longcall" and "shortcall".
5789         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
5790         (CUMULATIVE_ARGS): New member call_cookie.
5791         (PREDICATE_CODES): Add symbol_ref_operand.
5792         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
5793         extra USE to the pattern.
5794         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
5795         New patterns, split off call_insn, sibcall_insn, call_value_insn and
5796         sibcall_value_insn; now the new patterns handle direct calls and the
5797         old ones indirect calls.
5798         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
5799
5800 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
5801
5802         * doc/trouble.texi: Update section on handling of empty loops.
5803
5804 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
5805
5806         * config.gcc: Remove support for sparc-*-openbsd*,
5807         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
5808         ns32k-*-netbsd*.
5809         * config.host: Remove support for i860-*-sysv4* as a host.
5810         * config/i860/*, config/ip2k/*, config/ns32k/*,
5811         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
5812         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
5813         mention obsolete ports.
5814
5815 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5816
5817         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
5818         soft frame pointer.
5819         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
5820         of frame_pointer_rtx.
5821         (sh_expand_epilogue): Likewise.
5822         (sh_set_return_address): Likewise.
5823         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
5824         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
5825         offsets from FRAME_POINTER_REGNUM.
5826         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
5827         (sh_register_names): Add initializer for sfp.
5828         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
5829         (VALID_REGISTER_P): Likewise.
5830         (FIRST_PSEUDO_REGISTER): Update.
5831         (DWARF_FRAME_REGISTERS): Define.
5832         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
5833         (HARD_FRAME_POINTER_REGNUM): Define.
5834         (FRAME_POINTER_REGNUM): Redefine.
5835         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
5836         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
5837         from FRAME_POINTER_REGNUM.
5838         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
5839         FRAME_POINTER_REGNUM.
5840         (REG_CLASS_CONTENTS): Add sfp.
5841         (REG_ALLOC_ORDER): Likewise.
5842         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
5843         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
5844         of frame_pointer_rtx.
5845         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5846
5847 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
5848
5849         * fold-const.c (tree_expr_nonnegative_p): Only return true for
5850         ABS_EXPR when flag_wrapv is false because of INT_MIN.
5851         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
5852         of an ABS_EXPR.
5853         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
5854         ABS_EXPR<x>.
5855
5856 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
5857
5858         Make CONSTRUCTOR use VEC to store initializers.
5859         * c-common.c (complete_array_type): Update to cope with VEC in
5860         CONSTRUCTOR_ELTS.
5861         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
5862         (pp_c_constructor_elts): New function.
5863         * c-pretty-print.h (pp_c_constructor_elts): Declare.
5864         * c-typeck.c (build_function_call, build_c_cast, digest_init,
5865         struct constructor_stack, struct initializer_stack,
5866         constructor_elements, push_init_level, pop_init_level,
5867         add_pending_init, find_init_member, output_init_element): Update to
5868         cope with VEC in CONSTRUCTOR_ELTS.
5869         * coverage.c (build_fn_info_value, build_ctr_info_value,
5870         build_gcov_info): Likewise.
5871         * expr.c (categorize_ctor_elements_1, store_constructor,
5872         expand_expr_real_1): Likewise.
5873         * fold-const.c (fold_ternary): Likewise.
5874         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
5875         gimplify_init_constructor, gimplify_expr): Likewise.
5876         * tree-dump.c (dequeue_and_dump): Likewise.
5877         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
5878         node.
5879         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
5880         CONSTRUCTOR_ELTS.
5881         * tree-sra.c (generate_element_init_1): Likewise.
5882         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
5883         * tree-ssa-operands.c (get_expr_operands): Likewise.
5884         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5885         * tree-vect-transform.c (vect_get_vec_def_for_operand):
5886         (get_initial_def_for_reduction): Likewise.
5887         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
5888         value handle in annotations.
5889         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
5890         tree_node_structure): Add support for constr_kind.
5891         (build_vector_from_ctor, build_constructor_single,
5892         build_constructor_from_list): New functions.
5893         (build_constructor): Update to take a VEC instead of a TREE_LIST.
5894         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
5895         Update to cope with VEC in CONSTRUCTOR_ELTS.
5896         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
5897         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
5898         CONSTRUCTOR_APPEND_ELT): New macros.
5899         (struct constructor_elt, struct tree_constructor): New data types.
5900         (union tree_node): Add tree_constructor field.
5901         * treestruct.def: Define TS_CONSTRUCTOR.
5902         * varasm.c (const_hash_1, compare_constant, copy_constant,
5903         compute_reloc_for_constant, output_addressed_constants,
5904         initializer_constant_valid_p, output_constant,
5905         array_size_for_constructor, output_constructor): Update to cope with
5906         VEC in CONSTRUCTOR_ELTS.
5907         * vec.h (VEC_empty, VEC_copy): New macros.
5908
5909 2005-07-19  Devang Patel  <dpatel@apple.com>
5910
5911         * dbxout.c (dbxout_type): Check Objective-C++ lang.
5912
5913 2005-07-19  Richard Henderson  <rth@redhat.com>
5914
5915         PR tree-opt/22278
5916         * gimplify.c (gimplify_expr): Use main variant type for the temp
5917         destination for a discarded volatile read.
5918         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
5919         casts between non-void types that change volatility.
5920
5921 2005-07-15  DJ Delorie  <dj@redhat.com>
5922
5923         * toplev.h: Add comment about the first parameter for warning().
5924         * errors.h: Likewise.
5925
5926         * c.opt (Wpragmas): New.
5927         * doc/invoke.texi: Document it.
5928
5929         * function.c (do_warn_unused_parameter): Add warning control to
5930         warning call.
5931         * c-decl.c (warn_if_shadowing): Likewise.
5932         * c-lex.c (cb_def_pragma): Likewise.
5933         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
5934         (pop_alignment): Likewise.
5935         (handle_pragma_pack): Likewise.
5936         (apply_pragma_weak): Likewise.
5937         (handle_pragma_weak): Likewise.
5938         (handle_pragma_redefine_extname): Likewise.
5939         (add_to_renaming_pragma_list): Likewise.
5940         (handle_pragma_extern_prefix): Likewise.
5941         (maybe_apply_renaming_pragma): Likewise.
5942         (handle_pragma_visibility): Likewise.
5943
5944         * config/c4x/c4x-c.c (BAD): Likewise.
5945         (c4x_parse_pragma): Likewise.
5946         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
5947         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
5948         (rs6000_pragma_longcall): Likewise.
5949         * config/v850/v850-c.c (pop_data_area): Likewise.
5950         (ghs_pragma_section): Likewise.
5951         (ghs_pragma_section): Likewise.
5952         (ghs_pragma_interrupt): Likewise.
5953         (ghs_pragma_starttda): Likewise.
5954         (ghs_pragma_startsda): Likewise.
5955         (ghs_pragma_startzda): Likewise.
5956         (ghs_pragma_endtda): Likewise.
5957         (ghs_pragma_endsda): Likewise.
5958         (ghs_pragma_endzda): Likewise.
5959
5960 2005-07-19  Danny Berlin <dberlin@dberlin.org>
5961             Kenneth Zadeck <zadeck@naturalbridge.com>
5962
5963         * Makefile.in: Removed tree-promote-statics.c
5964         * tree-promote-statics.c: Removed.
5965         * common.opt: Removed flag-promote-statics.
5966         * opts.c: Ditto.
5967         * passes.c: Removed tree-promote-statics pass.
5968         * tree-pass.h: Ditto.
5969         * timevar.def: Removed TV_PROMOTE_STATICS.
5970
5971
5972 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
5973
5974         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
5975         and *-*-freebsd9.
5976         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
5977
5978 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5979
5980         PR c/22476
5981         * c-common.c (check_function_arguments): Call
5982         'check_function_format' if either -Wformat or
5983         -Wmissing-format-attribute are specified.
5984         * c-format.c (check_function_format): Check -Wformat before
5985         calling 'check_format_info'.
5986         * c-opts.c (c_common_post_options): Don't warn for
5987         -Wmissing-format-attribute without -Wformat.
5988         * c-typeck.c (convert_for_assignment): Detect additional cases for
5989         -Wmissing-format-attribute.
5990         * doc/invoke.texi (-Wmissing-format-attribute): Document new
5991         behavior.
5992
5993 2005-07-19  Richard Guenther  <rguenther@suse.de>
5994
5995         * config/i386/i386.md (lrint<mode>2): Use temporary
5996         instead of clobbering non-existent memory.
5997
5998 2005-07-19  Nick Clifton  <nickc@redhat.com>
5999
6000         * config/avr/avr.c (legitimate_address_p): Fix debugging print
6001         statement to avoid displaying ASCII control characters.
6002
6003 2005-07-19  Ben Elliston  <bje@au.ibm.com>
6004
6005         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
6006         * cfganal.c (find_edge_index): Ditto.
6007         * combine.c (combine_instructions): Ditto.
6008         * ddg.c (create_scc): Ditto.
6009         (find_successors): Ditto.
6010         (find_predecessors): Ditto.
6011         (find_nodes_on_paths): Ditto.
6012         (longest_simple_path): Ditto.
6013         * flow.c (update_life_info): Ditto.
6014         (count_or_remove_death_notes): Ditto.
6015         (clear_log_links): Ditto.
6016         * modulo-sched.c (generate_reg_moves): Ditto.
6017         (find_max_asap): Ditto.
6018         (find_max_hv_min_mob): Ditto.
6019         (find_max_dv_min_mob): Ditto.
6020         * sbitmap.c (sbitmap_first_set_bit): Ditto.
6021         * sched-rgn.c (extract_edgelst): Ditto.
6022         * tree-into-ssa.c (prepare_names_to_update): Ditto.
6023         (dump_update_ssa): Ditto.
6024         (ssa_names_to_replace) Ditto.
6025         (switch_virtuals_to_full_rewrite): Ditto.
6026         (update_ssa): Ditto.
6027         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
6028
6029 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
6030
6031         Fix PR tree-optimization/22483
6032
6033         * tree-complex.c (create_components): Use
6034         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
6035         * tree-flow-inline.h (fill_referenced_var_vec): New function.
6036         * tree-flow.h (safe_referenced_var_iterator): New structure.
6037         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
6038         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
6039         safe_referenced_var iterator.
6040         (add_type_alias): Ditto.
6041
6042 2005-07-19  Steven Bosscher  <stevenb@suse.de>
6043
6044         * loop-init.c (rest_of_handle_loop2): Remove.
6045         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
6046         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
6047         (pass_rtl_loop_init, pass_rtl_loop_done,
6048         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
6049         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
6050         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
6051         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
6052         pass_tree_loop_done, and pass_tree_unswitch.
6053         (gate_loop): Rename to gate_tree_loop.
6054         * passes.c (init_optimization_passes): Update for renamed tree
6055         loop passes.  Add the new loop2 passes as subpasses of loop2.
6056         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
6057         Update for the renamed tree loop passes.
6058
6059 2005-07-18  Ian Lance Taylor  <ian@airs.com>
6060
6061         PR middle-end/22057
6062         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
6063         blocks when optimizing.
6064
6065 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
6066
6067         * common.opt (frename-registers): Initialize to 2.
6068         (fweb): Ditto.
6069         (fgcse-after-reload): Ditto.
6070         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
6071         (process_options): Only change flag_web, flag_rename_registers,
6072         and flag_rerun_cse_after_loop if not explicitly set by user.
6073
6074 2005-07-18  Jan Beulich  <jbeulich@novell.com>
6075
6076         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
6077         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
6078         in 64-bit mode the same as DImode in 32-bit mode.
6079         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
6080         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
6081         mode. Add new mode parameter.
6082         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
6083         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
6084         x86_64_shift_adj): New expanders.
6085         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
6086         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
6087         insns.
6088         Respective new splitters. Use renamed shift splitter helpers in 32-bit
6089         DImode shift splitters.
6090         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
6091         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
6092         mode parameter.
6093
6094 2005-07-18  Jan Beulich  <jbeulich@novell.com>
6095
6096         * i386.md (movdi_extzv_1): New.
6097         (zero_extendhidi2): Combine alternatives and never force use of
6098         REX64 prefix.
6099         (zero_extendqidi2): Likewise. Don't restrict input selection.
6100
6101 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
6102
6103         Fix PR tree-optimization/22531
6104         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
6105          moment.
6106
6107 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
6108
6109         * tree-promote-statics.c (pass_promote_statics): Change dump file
6110          name.
6111
6112 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
6113
6114         * tree-optimize.c (init_tree_optimization_passes): Add
6115         pass_eliminate_useless_stores pass.
6116         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
6117         * tree-ssa-pre.c (is_copy_stmt): New function.
6118         (follow_copies_till_vuse): Ditto.
6119         (do_eustores): Ditto.
6120         (gate_eustores): Ditto.
6121
6122 2005-07-16  Richard Henderson  <rth@redhat.com>
6123
6124         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
6125
6126 2005-07-16 Danny Berlin <dberlin@dberlin.org>
6127            Kenneth Zadeck <zadeck@naturalbridge.com>
6128
6129         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
6130         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
6131         ipa-type-escape.h, tree-promote-statics.c
6132         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
6133         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
6134         tree-promote-statics.c: new files.
6135         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
6136         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
6137         int nonlocal_set_p, mark_constant_function): Deleted.
6138         (rest_of_handle_cfg): Removed call to mark_constant_function.
6139         (nonoverlapping_component_refs_p): Added calls to support
6140         type based aliasing.
6141         * tree-ssa-alias.c (may_alias_p,
6142         compute_flow_insensitive_aliasing): Ditto.
6143         * calls.c (flags_from_decl_or_type): Removed reference to
6144         cgraph_rtl_info.
6145         * c-typeck.c (convert_arguments): Make builtins tolerant of having
6146         too many arguments.  This is necessary for Spec 2000.
6147         * cgraph.h (const_function, pure_function): Removed.
6148         * common.opt: Added "fipa-pure-const", "fipa-reference",
6149         "fipa-type-escape", and "ftree-promote-static".
6150         * opts.c: Ditto.
6151         * passes.c: Added ipa and tree-promote-statics passes.
6152         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
6153         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
6154         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
6155         * tree-flow.h: Added exposed sra calls and addition of
6156         reference_vars_info field for FUNCTION_DECLS.
6157         * tree-pass.h: Added passes.
6158         * tree-sra.c: (sra_init_cache): New function.
6159         (sra_insert_before, sra_insert_after) Made public.
6160         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
6161         and made public.
6162         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
6163         aliasing. (may_alias_p): Added code to use type escape analysis to
6164         improve alias sets.
6165         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
6166         code to prune clobbers of static variables based on information
6167         produced in ipa-reference pass.  Changed call clobbering so that
6168         statics are not marked as clobbered if the call does not clobber
6169         them.
6170
6171 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
6172
6173         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
6174         too.
6175
6176 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
6177
6178         * doc/install.texi (*-*-solaris2*): Document recommended version
6179         of GNU binutils and mention GNU linker problem on Solaris 10.
6180
6181 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
6182
6183         PR c/22421
6184         * c-decl.c (c_build_bitfield_integer_type): New function.
6185         (finish_struct): Call it.
6186         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
6187
6188 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6189
6190         * c-typeck.c (digest_init): Call 'convert_for_assignment'
6191         before returning.
6192
6193 2005-07-16  Jan Hubicka  <jh@suse.cz>
6194
6195         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
6196         (scale_bbs_frequencies_int): Watch roundoff errors.
6197         * predict.c (return_prediction): Initialize return_stmt.
6198
6199 2005-07-16  Jan Hubicka  <jh@suse.cz>
6200
6201         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
6202         after RTL profiling.
6203
6204 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
6205
6206         PR middle-end/22398
6207         * fold-const.c (build_range_check): Convert high/low to etype
6208         if we are only comparing against exp.
6209
6210 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
6211
6212         Fix PR tree-optimization/22376
6213         * tree-ssa-structalias.c (build_constraint_graph): We really meant
6214         special var here.
6215         (need_to_solve): New function.
6216         (compute_points_to_sets): Use it.
6217
6218 2005-07-15  Jan Hubicka  <jh@suse.cz>
6219
6220         * cfg.c (update_bb_profile_for_threading): More diagnostic.
6221         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
6222
6223 2005-07-15  Richard Guenther  <rguenther@suse.de>
6224
6225         * c-common.c (handle_flatten_attribute): New function.
6226         Add flatten function attribute.
6227         * doc/extend.texi: Document flatten function attribute.
6228         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
6229         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
6230         New functions.
6231         (cgraph_decide_inlining): Handle functions with flatten
6232         attribute.
6233
6234 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
6235
6236         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
6237         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
6238         UNSPEC_XCHG, UNSPEC_AND): New.
6239         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
6240         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
6241         * config/rs6000/sync.md (FETCHOP): New code macro.
6242         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
6243         New code attrs.
6244         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
6245         (sync_compare_and_swap<mode>): Same.
6246         (sync_lock_test_and_set<mode>): Same.
6247         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
6248         for QImode and HImode, and not PPC405.
6249         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
6250         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
6251         (sync_<fetchop>{si,di}_internal): New.
6252         (sync_nand{si,di}_internal): New.
6253         (sync_old_<fetchop>{si,di}_internal): New.
6254         (sync_old_nand{si,di}_internal): New
6255         (sync_new_<fetchop>{si,di}_internal): New.
6256         (sync_new_nand{si,di}_internal): New.
6257         (atomic_and{si,di}): New.
6258         (sync_new_nand{si,di}_internal): New.
6259         (atomic_and{si,di}): New.
6260         (sync_add<mode>_internal): Delete.
6261         (sync_addshort_internal): Use unspec instead of unspec_volatile.
6262         (sync_sub<mode>_internal): Delte.
6263         (sync_subshort_internal): New.
6264         (sync_andsi_internal): Use unspec instead of unspec_volatile.
6265         (sync_anddi_internal): Delete.
6266         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
6267         (sync_booldi_internal): Delete.
6268         (sync_boolc<mode>_internal): Delete.
6269         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
6270         (sync_boolc<mode>_internal2): Delete.
6271         (sync_boolcc<mode>_internal): Delete.
6272         (isync, lwsync): Use unspec instead of unspec_volatile.
6273         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
6274         Revert UNSPEC_VOLATILE.
6275         (rs6000_split_atomic_op): New.
6276         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
6277
6278 2005-07-14  Eric Christopher  <echristo@redhat.com>
6279
6280         * config/mips/mips.c (mips_canonicalize_comparison): Cast
6281         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
6282
6283 2005-07-14  Eric Christopher  <echristo@redhat.com>
6284
6285         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
6286
6287 2005-07-14  Steven Bosscher  <stevenb@suse.de>
6288
6289         PR tree-optimization/22230
6290         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
6291         the computation of the four cross productions for "range op range".
6292
6293 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
6294             Ulrich Weigand  <uweigand@de.ibm.com>
6295
6296         PR target/20126
6297         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
6298         in some insn.
6299
6300 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
6301
6302         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
6303
6304 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
6305
6306         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
6307
6308 2005-07-14  Richard Guenther  <rguenther@suse.de>
6309
6310         PR middle-end/22347
6311         * config/i386/i386-protos.h (ix86_function_value): Change
6312         prototype to match new target hook.
6313         * config/i386/i386.c (ix86_value_regno): Change prototype
6314         to take extra type argument.
6315         (TARGET_FUNCTION_VALUE): Define.
6316         (ix86_function_ok_for_sibcall): Pass extra argument to
6317         ix86_value_regno, check return slot rtx for exact match.
6318         (ix86_function_value): Take extra parameter.  Dispatch to
6319         ix86_value_regno with fndecl/fntype as provided.
6320         (ix86_value_regno): Handle extra type argument.
6321         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
6322
6323         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
6324         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
6325         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
6326         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
6327         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
6328
6329 2005-07-14  Richard Guenther  <rguenther@suse.de>
6330
6331         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
6332         * calls.c (expand_call): Pass fntype to hard_function_value.
6333         (emit_library_call_value_1): Likewise.
6334         * explow.c: Include target.h.
6335         (hard_function_value): Take extra argument, the fntype.
6336         Use new target hook for function_value.
6337         * expr.h (hard_function_value): Change prototype.
6338         * function.c (aggregate_value_p): Pass 0 as fntype to
6339         hard_function_value.
6340         (assign_parms): Use new target hook for function_value.
6341         Pass 0 as fntype to hard_function_value.
6342         (expand_function_end): Likewise.
6343         * reg-stack.c: Include target.h.
6344         (stack_result): Use new target hook for function_value.
6345         * target-def.h: New target hook function_value.
6346         * target.h: Likewise.
6347         * targhooks.c (default_function_value): New function.
6348         * targhooks.h (default_function_value): Declare.
6349
6350 2005-07-13  Ian Lance Taylor  <ian@airs.com>
6351
6352         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
6353
6354 2005-07-14  Jan Hubicka  <jh@suse.cz>
6355
6356         * tree-dfa.c (dump_variable): Use default_def function.
6357         * tree-ssa-alias.c (dump_points_to_info): Likewise.
6358         * tree-ssa.c (verify_use): Likewise.
6359         * tree-ssanames.c (release_ssa_name): Likewise.
6360         * tree-tailcall.c (eliminate_tail_call): Likewise.
6361         (tree_optimize_tail_calls_1): Likewise.
6362         * tree-vrp.c (get_value_range): Likewise.
6363
6364 2005-07-14  Ben Elliston  <bje@au.ibm.com>
6365
6366         * gcc.c (main): Compare language[0] with '*' when iterating over
6367         the infiles.
6368
6369 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
6370
6371         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
6372         "s390_emit_compare".  Add handling of CCZ1mode.
6373         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
6374         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
6375         checking.
6376         (s390_branch_condition_mask): Add CCZ1mode handling.
6377         * config/s390/s390.md: ("seq", "*seq"): New pattern.
6378         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
6379         Use CCZ1mode instead of CCZmode.
6380         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
6381
6382 2006-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
6383
6384         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
6385         pattern.
6386         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
6387
6388 2005-07-13  Eric Christopher  <echristo@redhat.com>
6389
6390         * config/mips/mips.c (mips_canonicalize_comparison): New.
6391         (mips_emit_int_relational): Use.
6392
6393 2005-07-13  Eric Christopher  <echristo@redhat.com>
6394
6395         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
6396         static extra parts.
6397         * config/s390/s390.md: Include tpf.md. Move tpf specific
6398         patterns...
6399         * config/s390/tpf.md: To here.
6400         * config/s390/s390.opt: Move tpf specific options...
6401         * config/s390/tpf.opt: to here. Add mmain option.
6402         * config/s390/tpf-unwind.h: Remove unnecessary defines.
6403         * config/s390/tpf.h: Rewrite.
6404
6405 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6406
6407         * doc/tm.texi: Remove @xref{Cross-profiling}.
6408
6409 2005-07-13  Jeff Law  <law@redhat.com>
6410
6411         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
6412         expressions, test their _DECL operands for pointer equality rather
6413         than using operand_equal_p.
6414
6415 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6416
6417         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
6418         (TARGET_POSIX_IO): This.
6419         * config/darwin.h: Likewise.
6420         * config/freebsd.h: Likewise.
6421         * config/linux.h: Likewise.
6422         * config/lynx.h: Likewise.
6423         * config/netbsd.h: Likewise.
6424         * config/rs6000/linux64.h: Likewise.
6425         * config/rs6000/linux.h: Likewise.
6426         * config/s390/tpf.h: Likewise.
6427         * config/sh/embed-elf.h: Likewise.
6428         * config/sparc/linux64.h: Likewise.
6429         * config/sparc/linux.h: Likewise.
6430         * config/svr4.h: Likewise.
6431         * gcov-io.h: Likewise.
6432
6433         * doc/tm.texi: Updated.
6434
6435         * libgcov.c (create_file_directory): Defined only if
6436         TARGET_POSIX_IO is defined.
6437         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
6438         is defined.
6439
6440 2005-07-13  Jan Hubicka  <jh@suse.cz>
6441
6442         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
6443
6444 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
6445
6446         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
6447         structure as argument.
6448
6449 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
6450
6451         PR tree-optimization/21921
6452         * tree-iterator.c (tsi_link_before): Support the case when
6453         tsi_end_p (tsi) == true.
6454
6455 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
6456
6457         PR tree-optimization/22442
6458         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
6459         correctly.
6460
6461 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
6462
6463         PR rtl-optimization/20376
6464         * toplev.c (process_options): Enable -fweb and -frename-registers when
6465         unrolling.
6466         * doc/invoke.texi: Update the information about when -fweb and
6467         -frename-registers are enabled.
6468
6469 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
6470
6471         PR tree-opt/21840
6472         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
6473         if *rhs_p is not a SSA_NAME.
6474
6475 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
6476
6477         Fix PR tree-optimization/22422
6478         * tree-ssa-structalias.c (struct variable_info): Add flag for
6479         special vars.
6480         (get_varinfo): Now a static function.
6481         (new_varinfo): init has_union and is_special_var to false.
6482         (solution_set_add): Check has_union.
6483         (do_da_constraint): Move temporary variable so it gets reset
6484         properly.
6485         Also check for special variable.
6486         (do_ds_constraint): Ditto.
6487         (do_sd_constraint): Ditto.
6488         (do_structure_copy): Check for special variable.
6489         (find_func_aliases): Ditto.
6490         (init_base_vars): Set special vars properly.
6491
6492 2005-07-13  Jan Hubicka  <jh@suse.cz>
6493
6494         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
6495         do unit-at-a-time.
6496
6497         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
6498         (get_expr_operands): Fix thinko wrt flags and subvars.
6499
6500         PR tree-optimize/22379
6501         * tree-inline.c (expand_call_inline): Do not output sorry in early
6502         inlining.
6503
6504 2005-07-12  Dale Johannesen  <dalej@apple.com>
6505
6506         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
6507
6508 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
6509
6510         PR bootstrap/21704
6511         * host-linux.h: Include limits.h.
6512
6513 2005-07-12  Dale Johannesen  <dalej@apple.com>
6514
6515         * expr.c (compress_float_constant):  Add cost check.
6516         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
6517
6518 2005-07-12  Dale Johannesen  <dalej@apple.com>
6519
6520         * gcc.target/i386/compress-float-sse.c:  New.
6521         * gcc.target/i386/compress-float-sse-pic.c:  New.
6522         * gcc.target/i386/compress-float-387.c:  New.
6523         * gcc.target/i386/compress-float-387-pic.c:  New.
6524         * gcc.dg/compress-float-ppc.c:  New.
6525         * gcc.dg/compress-float-ppc-pic.c:  New.
6526
6527 2005-07-12  Eric Christopher  <echristo@redhat.com>
6528
6529         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
6530         static extra parts.
6531         * config/s390/s390.md: Include tpf.md. Move tpf specific
6532         patterns...
6533         * config/s390/tpf.md: To here.
6534         * config/s390/s390.opt: Move tpf specific options...
6535         * config/s390/tpf.opt: to here. Add mmain option.
6536         * config/s390/tpf-unwind.h: Remove unnecessary defines.
6537         * config/s390/tpf.h: Rewrite.
6538
6539 2005-07-12  Eric Christopher  <echristo@redhat.com>
6540
6541         * gcc.c (struct infile): Update comment for language.
6542         (main): Rewrite input file resetting code.
6543
6544 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
6545
6546         PR tree-opt/22335
6547         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
6548         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
6549         (lookup_avail_expr): Use constant_boolean_node instead
6550         of boolean_false_node/boolean_true_node.
6551
6552 2005-07-12  Ben Elliston  <bje@au.ibm.com>
6553
6554         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
6555         and use it when printing num_edges.
6556
6557 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
6558
6559         * doc/extend.texi (Blackfin Built-in Functions): New section.
6560         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
6561         @opindex.
6562
6563 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
6564
6565         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
6566         s/cmpstrsi/cmpstrnsi
6567         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
6568         'cmpstrnsi'.
6569         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
6570         (init_optabs): Initialize cmpstrn_optab.
6571         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
6572         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
6573         * expr.c: (enum insn_code cmpstrn_optab): Declare.
6574         * config/i386/i386.md: s/cmpstr/cmpstrn
6575         * config/c4x/c4x.md: s/cmpstr/cmpstrn
6576         * doc/md.texi: Update documentation.
6577
6578 2005-07-11  Richard Henderson  <rth@redhat.com>
6579
6580         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
6581         build_va_arg_indirect_ref.
6582         (alpha_gimplify_va_arg): Likewise.
6583         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
6584         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
6585         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
6586         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6587         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6588         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
6589         Likewise.
6590         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6591
6592 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
6593
6594         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
6595         * passes.c (init_optimization_passes): Add pass_empty_loop.
6596         * tree-pass.h (pass_empty_loop): Declare.
6597         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
6598         try_remove_empty_loop, remove_empty_loops): New functions.
6599         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
6600         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
6601
6602 2005-07-12  Peter Barada  <peter@the-baradas.com>
6603
6604         PR middle-end/16719
6605         PR middle-end/18421
6606         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
6607         in address registers.
6608         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
6609         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
6610         alternative of addsi3_5200.
6611
6612 2005-07-11  Ian Lance Taylor  <ian@airs.com>
6613
6614         * config/mips/mips.md (ffs<mode>2): Remove.
6615
6616 2005-07-11  Ian Lance Taylor  <ian@airs.com>
6617
6618         * doc/tree-ssa.texi (Cleanups): Improve description of
6619         TRY_FINALLY_EXPR.
6620         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
6621
6622 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
6623
6624         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
6625         * tree.h (DECL_ARGUMENT_FLD): New macro.
6626
6627 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
6628
6629         Fix PR tree-optimization/22404
6630
6631         * tree-ssa-structalias.c (create_variable_info_for): Use
6632         correct offset.
6633
6634 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
6635
6636         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
6637         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
6638         for second comparison operand.
6639         * config/bfin/predicates.md (reg_or_const_int_operand): New.
6640
6641         * config/bfin/bfin.md (define_attr "type"): Add "sync".
6642         (define_insn_reservation "alu"): Likewise.
6643         (csync, ssync): Now of type sync.
6644         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
6645         -mcsync-anomaly -mspecld-anomaly.
6646         * config/bfin/bfin.opt (mcsync): Remove.
6647         (mcsync-anomaly, mspecld-anomaly): Add.
6648         * config/bfin/bfin.c: Include "insn-codes.h".
6649         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
6650         (TARGET_DEFAULT_TARGET_FLAGS): New.
6651         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
6652
6653 2005-07-11  Steven Bosscher  <stevenb@suse.de>
6654
6655         * basic-block.h: Give the BB flags enum a name, bb_flags.
6656         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
6657         * cfgcleanup.c (enum bb_flags): Remove here.
6658         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
6659         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
6660         (update_forwarder_flag): Likewise.
6661         (thread_jump): Likewise.
6662         (try_forward_edges): Likewise.
6663         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
6664         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
6665         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
6666
6667 2005-07-11  Richard Guenther  <rguenther@suse.de>
6668
6669         * config/i386/i386.opt: New target option -msseregparm.
6670         * config/i386/i386.c (override_options): Error out for
6671         -msseregparm but no SSE support.
6672         (ix86_function_sseregparm): Check for global sseregparm.
6673         * doc/invoke.texi: Document -msseregparm.
6674
6675 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6676
6677         * config.gcc (m32r-*-linux*): Use the default extra_parts.
6678         (m32rle-*-linux*): Ditto.
6679
6680 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
6681
6682         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
6683         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
6684         bytes.
6685
6686 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6687
6688         PR middle-end/22239
6689         PR target/20126
6690         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
6691         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
6692
6693 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
6694
6695         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
6696         (varmap): Heapify varmap.
6697         (constraints): Heapify constraints.
6698         (struct constraint_graph): Heapify succs and preds.
6699         (constraint_vec_find): Update for heapification.
6700         (constraint_set_union): Ditto.
6701         (insert_into_complex): Ditto.
6702         (constraint_edge_vec_find): Ditto.
6703         (erase_graph_self_edge): Ditto.
6704         (add_graph_edge): Ditto.
6705         (get_graph_weights): Ditto.
6706         (merge_graph_nodes): Ditto.
6707         (build_constraint_graph): Ditto.
6708         (topo_visit): Ditto.
6709         (solve_graph): Ditto.
6710         (create_variable_info_for): Ditto.
6711         (init_base_vars): Ditto.
6712         (delete_points_to_sets): Free graph, varmap, and complex constraints.
6713         (condese_varmap_nodes): Free complex vector.
6714         (clear_edges_for_node): Clear succs and preds vector.
6715
6716 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
6717
6718         * tree-ssa-structalias.c (update_alias_info): Change counting of
6719         references to not include vdefs.
6720
6721 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
6722
6723         * tree-ssa-alias.c (free_used_part_map): Add missing free.
6724         (up_insert): Ditto.
6725
6726 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6727
6728         * pa.c (pa_commutative_p): Make PLUS commutative when
6729         TARGET_NO_SPACE_REGS is true.
6730
6731 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
6732
6733         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
6734         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
6735         * tree-dfa.c (dump_subvars_for): New.
6736         (debug_subvars_for): New.
6737         (dump_variable): Show subvariables if VAR has them.
6738         * tree-flow-inline.h (get_subvar_at): New.
6739         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
6740         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
6741         Update all users.
6742         (struct subvar): Change fields offset and size to unsigned
6743         HOST_WIDE_INT.
6744         (dump_subvars_for): Declare.
6745         (debug_subvars_for): Declare.
6746         (get_subvar_at): Declare.
6747         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
6748         to unsigned HOST_WIDE_INT *.
6749         (overlap_subvar): Likewise.
6750         * tree-gimple.c (is_gimple_reg): Always return false for
6751         SFTs and memory tags.
6752         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
6753         Update all callers.
6754         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
6755         (compute_may_aliases): Call compute_points_to_sets.
6756         (collect_points_to_info_for): Remove.
6757         (compute_points_to_and_addr_escape): Remove.
6758         (delete_alias_info): Call delete_points_to_sets.
6759         (compute_flow_sensitive_aliasing): If the call to
6760         find_what_p_points_to returns false, call set_pt_anything.
6761         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
6762         (set_pt_anything): Clear pi->pt_vars.
6763         (set_pt_malloc): Remove.
6764         (merge_pointed_to_info): Remove.
6765         (add_pointed_to_expr): Remove.
6766         (add_pointed_to_var): Remove.
6767         (collect_points_to_info_r): Remove.
6768         (is_escape_site): Make extern.
6769         (create_sft): New.
6770         (create_overlap_variables_for): Call it.
6771         * tree-ssa-copy.c (merge_alias_info): Never merge
6772         flow-sensitive alias information.
6773         * tree-ssa-operands.c (get_expr_operands): Adjust variables
6774         offset and size to be unsigned HOST_WIDE_INT.
6775         (add_to_addressable_set): Rename from note_addressable.
6776         Set TREE_ADDRESSABLE as the variables are added to the set.
6777         Update all users.
6778         (add_stmt_operand): Do not try to micro-optimize unmodifiable
6779         operands into VUSEs when adding V_MAY_DEFs for members in an
6780         alias set.
6781         * tree-ssa-operands.h (add_to_addressable_set): Declare.
6782         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
6783         (struct variable_info): Add bitfield is_heap_var.
6784         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
6785         (new_var_info): Initialize is_heap_var.
6786         (get_constraint_for): Add HEAP variables to the symbol table.
6787         Mark them with is_heap_var.
6788         (update_alias_info): New.  Taken mostly from the old
6789         compute_points_to_and_addr_escape.
6790         (handle_ptr_arith): New.
6791         (find_func_aliases): Call update_alias_info.
6792         Call handle_ptr_info for tcc_binary expressions.
6793         Call mark_stmt_modified.
6794         (create_variable_info_for): If DECL has subvars, do not create
6795         variables for its subvars.  Always add all the fields.
6796         (set_uids_in_ptset): If the solution includes ANYOFFSET and
6797         SFTs, then add all the SFTs of the structure.
6798         If VI->DECL is an aggregate with subvariables, add the SFT at
6799         VI->OFFSET.
6800         (find_what_p_points_to): If VI is an artificial variable,
6801         translate to bitfields in SSA_NAME_PTR_INFO.
6802         If the solution is empty, set pi->pt_vars to NULL
6803         (init_base_vars): Create ANYOFFSET.
6804         (compute_points_to_sets): Rename from create_alias_vars.
6805         Make extern.
6806         (pass_build_pta): Remove.
6807         (delete_points_to_sets): Rename from delete_alias_vars.
6808         (pass_del_pta): Remove.
6809         * tree-ssa-structalias.h (struct alias_info): Move from
6810         tree-ssa-alias.h.
6811         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
6812         NUM_REFERENCES_SET): Likewise.
6813         (compute_points_to_sets, delete_points_to_sets): Declare.
6814
6815 2005-07-09  Richard Henderson  <rth@redhat.com>
6816
6817         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
6818         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
6819         alpha_split_lock_test_and_set_12): New functions.
6820         * config/alpha/alpha-protos.h: Update.
6821         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
6822         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
6823         * config/alpha/sync.md (I12MODE): New.
6824         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
6825         (sync_<fetchop_name><I48MODE>): Likewise.
6826         (sync_nand<I48MODE>): Likewise.
6827         (sync_old_<fetchop_name><I48MODE>): Likewise.
6828         (sync_new_<fetchop_name><I48MODE>): Likewise.
6829         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
6830         (sync_compare_and_swap<I48MODE>): Likewise.
6831         (sync_lock_test_and_set<I48MODE>): Likewise.
6832         (sync_compare_and_swap<I12MODE>): New.
6833         (sync_compare_and_swap<I12MODE>_1): New.
6834         (sync_lock_test_and_set<I12MODE>): New.
6835         (sync_lock_test_and_set<I12MODE>_1): New.
6836
6837 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
6838
6839         PR 21356
6840         PR 22332
6841         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
6842
6843 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
6844
6845         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
6846         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
6847
6848 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
6849
6850         PR target/21656
6851         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
6852
6853 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
6854
6855         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
6856         memory_operand constraint.
6857         (store_conditional_<mode>): Same.
6858         (sync_compare_and_swap<mode>): Same.
6859         (sync_lock_test_and_set<mode>): Same.
6860
6861 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
6862
6863         Rewrite PIC support to more closely model actual instructions.
6864         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
6865         (cris_symbol): Remove prototypes for removed functions.
6866         (cris_pic_symbol_type_of, cris_valid_pic_const)
6867         (cris_expand_pic_call_address): Prototypes for new functions.
6868         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
6869         variable.
6870         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
6871         modifiers.
6872         <case ':'>: Add case for new punctuation character.
6873         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
6874         emitting (extra) PIC modifier.
6875         <case UNSPEC>: Do not assert for PLT.
6876         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
6877         (cris_expand_prologue, cris_expand_epilogue): Check
6878         for pic_offset_table_rtx usage instead of taking
6879         current_function_uses_pic_offset_table as the final word.
6880         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
6881         Remove flag_pic difference.
6882         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
6883         the moral equivalents of...
6884         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
6885         functions.
6886         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
6887         (cris_handle_option): Mark ARG as unused.
6888         (cris_expand_pic_call_address): New worker function for "call",
6889         "call_value".
6890         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
6891         output PIC constructs here.
6892         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
6893         as symbol-specific modifers, not whole or part of operands.
6894         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
6895         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
6896         constants and flag_pic.
6897         (CONSTANT_INDEX_P): Adjust for new functions.
6898         (enum cris_pic_symbol_type): New helper type.
6899         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
6900         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
6901         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
6902         define_constants.
6903         ("movsi"): Emit actual instructions for GOT and relative access.
6904         ("*movsi_got_load"): New pattern to set up the register holding
6905         the GOT pointer.
6906         ("*movsi_internal"): Operand 1 is not a plain general_operand.
6907         Adjust FIXME for 'S'.
6908         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
6909         Use "movs" for -fpic cases.
6910         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
6911         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
6912         ("call", "call_value"): Just call cris_expand_pic_call_address for
6913         PIC addresses.
6914         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
6915         Remove special pattern.
6916         ("*expanded_call_side", "*expanded_call_value_side"): New
6917         patterns.
6918         (gotplt-to-plt, gotplt-to-plt-side-call)
6919         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
6920         peephole2:s.
6921         * config/cris/cris/predicates.md
6922         ("cris_general_operand_or_gotless_symbol"): Remove unused
6923         predicate.
6924         ("cris_general_operand_or_symbol"): Adjust for new functions.
6925
6926 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
6927
6928         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
6929
6930 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
6931
6932         * Makefile.in (TREE_H): Add treestruct.def.
6933         (c-decl.o): Add pointer-set.h
6934         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
6935         visibility on regular DECL's.
6936         (merge_decls): Fix the copying of decl nodes of various types for
6937         the new structures.  Don't update RTL, section name, weak status,
6938         etc, on DECL's without RTL.
6939         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
6940         Don't check volatile on non-variable types.
6941         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
6942         to check whether we have seen arguments.
6943         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
6944         flag is checked before field (flag is common, field is not).
6945         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
6946         TS_DECL_COMMON could have an origin.
6947         (add_location_or_const_value_attribute): Don't check section name
6948         on non-var/function decls.
6949         (dwarf2out_var_location): Reverse order of tests.
6950         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
6951         with DECL_WRTL_CHECK.
6952         * expmed.c (make_tree): rtl is now in decl_with_rtl.
6953         * fold-const.c (fold_binary): Don't check weakness on
6954         non-var/function decls.
6955         (tree_expr_nonzero_p): Ditto.
6956         (fold_checksum_tree): Use tree_decl_extra as sizeof
6957         buffer.
6958         * ggc-page.c (extra_order_size_table): Add sizes for
6959         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
6960         tree_field_decl.
6961         * gimplify.c (gimplify_bind_expr): Only set
6962         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
6963         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
6964         without RTL.
6965         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
6966         * langhooks.h (init_ts). New langhook.
6967         * passes.c (rest_of_decl_compilation): Reverse order of tests.
6968         * print-tree.c (print_node): Update to only print fields that
6969         exist in the structures the passed decl has.
6970         * toplev.c (wrapup_global_declarations): Don't reset
6971         DECL_DEFER_OUTPUT on DECL's that don't contain it.
6972         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
6973         * tree-inline.c (remap_decl): Ditto.
6974         * tree-outof-ssa.c (create_temp): Reverse order of tests.
6975         * tree-pretty-print.c (print_declaration): Don't print
6976         DECL_REGISTER on things that don't contain it.
6977         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
6978         non-var/function decls.
6979         * tree.c (tree_contains_struct): New structure.
6980         (init_priority_for_decl): New hashtable.
6981         (tree_int_map): New structure.
6982         (tree_int_map_eq): New function.
6983         (tree_int_map_marked_p): Ditto.
6984         (tree_int_map_hash): Ditto.
6985         (tree_map): Move to tree.h.
6986         (tree_map_eq): Externalize.
6987         (tree_map_hash): Ditto.
6988         (tree_map_marked_p): Ditto.
6989         (init_ttree): Set up tree_contains_struct and call langhook.
6990         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
6991         (tree_code_size): Update for new structures.
6992         (tree_node_structure): Update for new structures.
6993         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
6994         without the field.
6995         (copy_node_stat):  Copy init priority.
6996         (build_decl_stat): Ditto for visibility.
6997         (ts_enum_names): New.
6998         (tree_contains_struct_check_failed): New function.
6999         (decl_init_priority_lookup): Ditto.
7000         (decl_init_priority_insert): Ditto.
7001         * treestruct.def: New file.
7002         * tree.h (CODE_CONTAINS_STRUCT): New macro.
7003         (CONTAINS_STRUCT_CHECK): Ditto.
7004         (tree_contains_struct_check_failed): New prototype.
7005         (DECL_CHECK): Removed.
7006         (DECL_MINIMAL_CHECK): New.
7007         (DECL_COMMON_CHECK): Ditto.
7008         (DECL_WRTL_CHECK): Ditto.
7009         (DECL_NON_COMMON_CHECK): Ditto.
7010         (DECL_WITH_VIS_CHECK): Ditto.
7011         (VAR_OR_FUNCTION_DECL_P): Ditto
7012         (struct tree_decl_minimal): New structure.
7013         (struct tree_decl_common): Ditto.
7014         (struct tree_decl_with_rtl): Ditto.
7015         (struct tree_decl_with_vis): Ditto.
7016         (struct tree_decl_non_common): Ditto.
7017         (struct tree_field_decl): Ditto.
7018         (struct tree_parm_decl): Ditto.
7019         (struct tree_var_decl): Ditto.
7020         (struct tree_function_decl): Ditto.
7021         (struct tree_const_decl): Ditto.
7022         (struct tree_result_decl): Ditto.
7023         (union tree_node): Add new structures.
7024         * var-tracking.c (track_expr_p): Reverse order of tests.
7025
7026         * doc/c-tree.texi: Add documentation on DECL node internal structure.
7027
7028 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
7029
7030         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
7031         * system.h: Poison FINALIZE_PIC.
7032         * doc/tm.texi (FINALIZE_PIC): Remove.
7033
7034 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
7035
7036         PR tree-opt/22329
7037         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
7038         to the correct type if we have a MODIFY_EXPR.
7039
7040 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
7041
7042         PR tree-optimization/22360
7043         * tree.c (upper_bound_in_type): Fix calculations for casting
7044         to a non-wider signed type and casting a signed value to a
7045         wider unsigned type.
7046         (lower_bound_in_type): Fix calculations for casting to a
7047         non-wider signed type.
7048
7049         PR tree-optimization/20139
7050         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
7051         release_defs.
7052         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
7053         fold_cond_expr_cond.
7054         * tree-ssanames.c (release_defs): Assert in_ssa_p.
7055         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
7056
7057 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
7058
7059         PR tree-opt/22356
7060         * tree-complex.c (expand_complex_libcall): Produce
7061         REALPART_EXPR/IMAGPART_EXPR with the correct type.
7062
7063 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
7064
7065         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
7066         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
7067         b" assert and inserted fastpath code for this case.
7068         (bitmap_ior): Removed "a != b" assert.
7069
7070 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7071
7072         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
7073         (ENDFILE_SPEC): Likewise.
7074         * config/m32r/m32r.h (ASM_SPEC): Likewise.
7075
7076         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
7077         a large stack frame at epilogue.
7078
7079 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
7080
7081         * final.c: Include sdbout.h when required.
7082
7083 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
7084
7085         * config.gcc (*-*-darwin*): Only one target-specific header file
7086         for generic darwin.
7087         (powerpc-*-darwin*): Add version-specific header files.
7088         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
7089         * config.in: Regenerate.
7090         * configure: Regenerate.
7091         * gcc.c: Include xregex.h.
7092         (version_compare_spec_function): New.
7093         (spec_function): Add version-compare.
7094         (replace_outfile_spec_function): Reformat comment.
7095         (compare_version_strings): New.
7096         * config/darwin-c.c (version_as_macro): New.
7097         (builtin_define): New.
7098         (darwin_cpp_builtins): New.
7099         * config/darwin-protos.h (darwin_cpp_builtins): New.
7100         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
7101         (LIB_SPEC): Make unconditional, update comment.
7102         (TARGET_C99_FUNCTIONS): Define.
7103         * config/darwin.opt: Sort.
7104         (mmacosx-version-min=): New.
7105         * config/darwin7.h: Delete.
7106         * config/darwin8.h: Delete.
7107         * config/i386/darwin.h (): Call darwin_cpp_builtins.
7108         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
7109         (TARGET_C99_FUNCTIONS): Define.
7110         * config/rs6000/darwin7.h: New.
7111         * config/rs6000/darwin8.h: New.
7112         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
7113         (-mmacosx-version-min): Document.
7114
7115 2005-07-07  Ian Lance Taylor  <ian@airs.com>
7116
7117         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
7118
7119 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
7120
7121         PR middle-end/22239
7122         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
7123
7124 2005-07-07  Khem Raj  <kraj@mvista.com>
7125
7126         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
7127         in bytes, not words.
7128
7129 2005-07-07  Paul Brook  <paul@codesourcery.com>
7130
7131         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
7132         DEFAULT_FUNCTION_ARG_PADDING to upward.
7133
7134 2005-07-07  Richard Henderson  <rth@redhat.com>
7135
7136         * function.c (locate_and_pad_parm): Record parameter alignment in
7137         stack_alignment_needed.
7138
7139 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
7140
7141         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
7142         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
7143         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
7144         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
7145         (define_attr "type"): Add isync, sync, load_l, store_c.
7146         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
7147         Create scratch volatile MEM.
7148         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
7149         sync.
7150         (load_locked_<mode>): New.
7151         (store_conditional_<mode>): New.
7152         (sync_compare_and_swap<mode>): Replace with splitter.
7153         (sync_lock_test_and_set<mode>): Replace with splitter.
7154         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
7155         and UNSPECV_ISYNC.
7156         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
7157         is ics.  Attribute isync.
7158         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
7159         lwsync.
7160         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
7161         and UNSPECV_SYNC_OP.
7162         (emit_unlikely_jump): New.
7163         (emit_load_locked): New.
7164         (emit_store_conditional): New.
7165         (rs6000_split_compare_and_swap): New.
7166         (rs6000_split_lock_test_and_set): New.
7167         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
7168         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
7169         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
7170         rs6000_split_lock_test_and_set): Declare.
7171         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
7172         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
7173         store_c, isync, sync.
7174
7175 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
7176
7177         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
7178         filenames to gtyp-gen.h.
7179         (s-typ-gen): Use it in place of for loops.
7180
7181 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
7182
7183         * hooks.c (hook_bool_rtx_int_false): New function.
7184         * hooks.h (hook_bool_rtx_int_false): Declare.
7185         * target-def.h (TARGET_COMMUTATIVE_P): Define.
7186         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
7187         * target.h (struct gcc_target): Add commutative_p member.
7188         * targhooks.c (hook_bool_rtx_commutative_p): New function.
7189         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
7190         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
7191         (pa_commutative_p): New function.
7192         * jump.c (target.h): Include.
7193         (rtx_renumbered_equal_p): Use targetm.commutative_p.
7194         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
7195
7196 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
7197
7198         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
7199         (s390_expand_setmem): New.
7200         * config/s390/s390.c: Likewise.
7201         (print_shift_count_operand): Truncate to 12 bits instead of 6.
7202         Adapt comments.
7203         * config/s390/s390.md: ("setmem<mode>"): Accept character as
7204         general_operand.  Call new function "s390_expand_setmem".
7205         ("clrmem_long", "*clrmem_long"): Rewrite to ...
7206         ("setmem_long", "*setmem_long"): ... this.
7207
7208 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
7209
7210         * config/s390/s390.c: (optimization_options): Enable
7211         TARGET_MVCLE at -Os.
7212         * doc/invoke.texi: Document changes in default behaviour.
7213         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
7214
7215 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
7216
7217         * expr.c: (set_storage_via_setmem): Convert opchar to mode
7218         defined by back-end.
7219
7220 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
7221
7222         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
7223         all sets in the pattern.
7224         * config/rs6000/rs6000.md (stack_protect_testsi,
7225         stack_protect_testdi): Likewise.
7226
7227 2005-07-06  Jeff Law  <law@redhat.com>
7228
7229         * tree-vrp.c (simplify_using_ranges): Kill.
7230         (vrp_finalize): Remove call to simplify_using_ranges.
7231         (simplify_stmt_using_ranges): New function extracted from
7232         simplify_using_ranges.
7233         (simplify_div_or_mod_using_ranges): Likewise.
7234         (simplify_abs_using_ranges): Likewise.
7235         (simplify_cond_using_ranges): New function.
7236         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
7237         * tree-ssa-propagate.c (substitute_and_fold): Call
7238         simplify_stmt_using_ranges if we have range information.
7239
7240 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
7241
7242         * config/ia64/ia64.c (ia64_reorg): Check optimize before
7243         ia64_flag_schedule_isns2.
7244
7245         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
7246         reading/writing general registers.
7247         (ia64_function_arg): Revert 2005-06-18 change.
7248
7249 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
7250
7251         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
7252         (legitimize_tls_address): Use gcc_unreachable instead of abort.
7253
7254 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
7255
7256         * function.c (expand_function_end): Revert part of 2005-06-27
7257         patch.  Do sjlj_emit_function_exit_after after return_label.
7258
7259 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
7260
7261         * doc/install.texi (--disable-libssp): New.
7262
7263 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
7264
7265         * doc/invoke.texi: Update -fforce-mem documentation.
7266         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
7267         code for -fforce-mem.
7268         * expmed.c: (store_bit_field,store_fixed_bit_field,
7269         extract_bit_field): Ditto.
7270         * expr.c: (convert_move): Ditto.
7271         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
7272         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
7273         emit_conditional_add,expand_float,expand_fix): Ditto.
7274         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
7275         (common_handle_option): Issue warning when -fforce-mem specified.
7276
7277 2005-07-06  Paul Brook  <paul@codesourcery.com>
7278
7279         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
7280         argument is empty.
7281         * configure: Regenerate.
7282
7283 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
7284
7285         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
7286
7287 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
7288
7289         Fix PR tree-optimization/22319
7290         Fix PR tree-optimization/22140
7291         Fix PR tree-optimization/22310
7292
7293         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
7294         variable sized types.
7295         Use correct type for intermediate structure on *a = *b structure
7296         copies.
7297
7298 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
7299
7300         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
7301         Remove.
7302         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
7303         (machine_function): Move typedef to...
7304         * config/rs6000/rs6000.c (machine_function): ... here.  Add
7305         varargs_save_offset field.
7306         (rs6000_stack_t): Remove varargs_size field.
7307         (setup_incoming_varargs): Allocate varargs save area using
7308         assign_stack_local, try to make it as small as possible.
7309         Save offset from virtual_stack_vars_rtx to the save area
7310         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
7311         instead of magic 8 when fp word byte size is used.
7312         (rs6000_va_start): Use cfun->machine->varargs_save_offset
7313         instead of -RS6000_VARARGS_SIZE.
7314         (rs6000_stack_info, debug_stack_info,
7315         rs6000_initial_elimination_offset): Remove all traces of
7316         varargs_size.
7317         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
7318         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
7319         RS6000_VARARGS_AREA.
7320
7321 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
7322
7323         PR tree-optimization/21963
7324         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
7325         constant_multiple_of in the same way get_computation_cost_at does.
7326
7327 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
7328
7329         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
7330         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
7331         (gen_compare_reg): If sparc_compare_emitted is set, clear it
7332         and return its previous value.
7333         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
7334         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
7335         constants.
7336         (stack_protect_set, stack_protect_test): New expanders.
7337         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
7338         stack_protect_testdi): New insns.
7339         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
7340         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
7341
7342 2005-07-06  Jeff Law  <law@redhat.com>
7343
7344         * tree-ssa-dce.c (cfg_altered): New global.
7345         (tree_dce_init): Initialize cfg_altered.
7346         (remove_dead_stmt): If we remove an edge in the CFG, then set
7347         CFG_ALTERED.
7348         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
7349         the dominators.
7350
7351 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
7352
7353         * Makefile.in (stamp-collect-ld): Use
7354         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
7355         ./collect-ld if it already exists.
7356         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
7357         Don't remove ./nm if it already exists.
7358
7359 2005-07-05  Devang Patel  <dpatel@apple.com>
7360
7361         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
7362         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
7363         * tree-vectorizer.c (vect_loop_location): New.
7364         (vect_print_dump_info): Use vect_loop_location.
7365         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
7366         (vectorize_loops): Set vect_loop_location.
7367         * tree-vect-analyze.c (vect_analyze_offset_expr,
7368         vect_determin_vectorization_factor, vect_analyze_operations,
7369         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
7370         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
7371         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
7372         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
7373         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
7374         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
7375         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
7376         vect_analyze_loop): Adjust vect_print_dump_info API.
7377         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
7378         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
7379         vect_finish_stmt_generation, vectorizable_assignment,
7380         vectorizable_operation, vectorizable_store, vectorizable_load,
7381         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
7382         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
7383         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
7384         vect_transform_loop): Same.
7385         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
7386         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
7387         Same.
7388
7389 2005-07-05  Randolph Chung  <tausq@debian.org>
7390
7391         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
7392         * configure: Regenerate.
7393         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
7394         (pa_tls_referenced_p): Declare.
7395         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
7396         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
7397         (legitimize_tls_address): New.
7398         (hppa_legitimize_address): Handle TLS addresses.
7399         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
7400         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7401         (emit_move_sequence): Handle TLS addresses.
7402         (pa_encode_section_info): Call default handler to handle common
7403         sections.
7404         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
7405         (CONSTANT_ADDRESS_P): Reject TLS operands.
7406         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
7407         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
7408         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
7409         (UNSPEC_TLSLE): Define new constants.
7410         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
7411         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
7412         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
7413         (tie_symbolic_operand, tle_symbolic_operand): New
7414
7415 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
7416
7417         * aclocal.m4: Update macros for autoconf 2.59 style.
7418         * configure.ac: Likewise.
7419
7420 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7421
7422         * pa.c (function_value): Handle small aggregates on 32-bit targets.
7423         (function_arg): Pass small aggregates in general registers on 32-bit
7424         targets.
7425         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
7426
7427 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
7428
7429         * Makefile.in (final.o): Fix dependencies.
7430
7431 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
7432
7433         PR c/22013
7434         PR c/22098
7435         * langhooks.h (struct lang_hooks): Add expr_to_decl.
7436         * langhooks.c (lhd_expr_to_decl): New.
7437         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
7438         New.
7439         (LANG_HOOKS_INITIALIZER): Update.
7440         * tree.c (recompute_tree_invarant_for_addr_expr): Call
7441         expr_to_decl langhook.
7442         * c-tree.h (c_expr_to_decl): Declare.
7443         * c-typeck.c (c_expr_to_decl): New.
7444         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
7445         specially.
7446         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
7447
7448 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
7449
7450         PR c/22308
7451         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
7452         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
7453
7454 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
7455
7456         * Makefile.in: Adjust dependencies.
7457         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
7458         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
7459         * alias.c (rest_of_handle_cfg, pass_cfg): New.
7460         * bb-reorder.c (duplicate_computed_gotos): Make it static.
7461         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
7462         rest_of_compilation.
7463
7464         * bb-reorder.c (gate_duplicate_computed_gotos,
7465         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
7466         rest_of_handle_reorder_blocks, pass_reorder_blocks,
7467         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
7468         pass_partition_blocks): New.
7469         * bt-load.c (gate_handle_branch_target_load_optimize,
7470         rest_of_handle_branch_target_load_optimize,
7471         pass_branch_target_load_optimize): New.
7472         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
7473         pass_jump2): New.
7474         * cfglayout.c (pass_insn_locators_initialize): New.
7475         * cfgrtl.c (pass_free_cfg): New.
7476         * combine.c (gate_handle_combine, rest_of_handle_combine,
7477         pass_combine): New.
7478         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
7479         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
7480         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
7481         * except.c (pass_set_nothrow_function_flags,
7482         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
7483         pass_rtl_eh): New.
7484         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
7485         rest_of_handle_shorten_branches, pass_shorten_branches,
7486         rest_of_clean_state, pass_clean_state): New.
7487         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
7488         rest_of_handle_remove_death_notes, pass_remove_death_notes,
7489         rest_of_handle_life, pass_life, rest_of_handle_flow2,
7490         pass_flow2): New.
7491         * function.c (pass_instantiate_virtual_regs, pass_init_function,
7492         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
7493         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
7494         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
7495         pass_gcse): New.
7496         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
7497         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
7498         pass_rtl_ifcvt, gate_handle_if_after_combine,
7499         rest_of_handle_if_after_combine, pass_if_after_combine,
7500         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
7501         pass_if_after_reload): New.
7502         * integrate.c (pass_initial_value_sets): New.
7503         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
7504         pass_purge_lineno_notes): New.
7505         * mode-switching.c (rest_of_handle_mode_switching,
7506         pass_mode_switching): New.
7507         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
7508         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
7509         pass_loop2): New.
7510         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
7511         pass_loop_optimize): New.
7512         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
7513         pass_sms): New.
7514         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
7515         pass_gcse2): New.
7516         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
7517         pass_postreload_cse): New.
7518         * profile.c (gate_handle_profiling, pass_profiling,
7519         rest_of_handle_branch_prob, pass_branch_prob): New.
7520         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
7521         pass_split_before_regstack, gate_handle_split_before_regstack,
7522         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
7523         rest_of_handle_split_all_insns, pass_split_all_insns): New.
7524         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
7525         pass_stack_regs): New.
7526         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
7527         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
7528         pass_stack_adjustments): New.
7529         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
7530         pass_regrename): New.
7531         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
7532         pass_delay_slots, gate_handle_machine_reorg,
7533         rest_of_handle_machine_reorg, pass_machine_reorg): New.
7534         * rtl.h (extern void purge_line_number_notes): New.
7535         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
7536         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
7537         pass_sched2): New.
7538         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
7539         pass_tracer): New.
7540         * value-prof.c (gate_handle_value_profile_transformations,
7541         rest_of_handle_value_profile_transformations,
7542         pass_value_profile_transformations): New.
7543         * var-tracking.c (gate_handle_var_tracking,
7544         pass_variable_tracking): New.
7545         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
7546
7547         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
7548         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
7549         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
7550         rest_of_handle_old_regalloc, rest_of_handle_regrename,
7551         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
7552         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
7553         rest_of_handle_gcse2, rest_of_handle_regmove,
7554         rest_of_handle_tracer, rest_of_handle_if_conversion,
7555         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
7556         rest_of_handle_web, rest_of_handle_branch_prob,
7557         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
7558         rest_of_handle_jump_bypass, rest_of_handle_combine,
7559         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
7560         rest_of_handle_gcse, rest_of_handle_loop_optimize,
7561         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
7562         rest_of_handle_mode_switching, rest_of_handle_jump,
7563         rest_of_handle_eh, rest_of_handle_stack_adjustments,
7564         rest_of_handle_flow2, rest_of_handle_jump2,
7565         rest_of_handle_peephole2, rest_of_handle_postreload,
7566         rest_of_handle_shorten_branches, rest_of_clean_state,
7567         rest_of_compilation): Remove.
7568
7569         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
7570         * passes.c (dump_flags, in_gimple_form, all_passes,
7571         all_ipa_passes, all_lowering_passes, register_one_dump_file,
7572         register_dump_files, next_pass_1, last_verified, execute_todo,
7573         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
7574         from tree-optimize.c.
7575         (init_optimization_passes): Moved from tree-optimize.c,
7576         adding the RTL optimizations.
7577         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
7578         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
7579         all_ipa_passes, all_lowering_passes, register_one_dump_file,
7580         register_dump_files, next_pass_1, last_verified, execute_todo,
7581         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
7582         init_tree_optimization_passes, ipa_passes): Delete.
7583         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
7584         the RTL dumps.
7585         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
7586         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
7587         from tree.h.
7588         (ipa_passes): Remove.
7589         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
7590         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
7591         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
7592         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
7593         (dump_info_p, dump_flag): Moved to tree-dump.h.
7594
7595         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
7596         cgraph.c, opts.c.
7597         * passes.c (finish_optimization_passes): Use dump_begin
7598         and dump_end, TDI_end.
7599         (gate_rest_of_compilation): New.
7600         (pass_rest_of_compilation): Use it.
7601         (gate_postreload, pass_postreload): New.
7602         * toplev.c (general_init): Rename init_tree_optimization_passes.
7603         * toplev.h (init_tree_optimization_passes): Rename to
7604         init_optimizations_passes.
7605         * tree-dump.c (dump_flag): Make static.
7606         (dump_files): Remove RTL dumps.
7607         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
7608         pass_cleanup_cfg, pass_free_cfg_annotations,
7609         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
7610         pass_init_datastructures, pass_fixup_cfg): Make non-static.
7611         * tree-pretty-print.c: Include tree-pass.h.
7612         * cgraph.c: Include tree-dump.h.
7613
7614 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
7615
7616         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
7617         Only fall back to saying it points to readonly memory if
7618         we can't do better.
7619
7620 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
7621
7622         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
7623         * config/m32r/m32r.c (m32r_compute_frame_size,
7624         m32r_expand_prologue): Take current_function_profile into
7625         account whenever we reference
7626         current_function_uses_pic_offset_table.
7627         (m32r_finalize_pic): Remove.
7628         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
7629
7630 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
7631
7632         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
7633         instead of $<.  Don't remove ./as if it already exists.
7634
7635 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7636
7637         PR target/21723
7638         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
7639         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
7640         for complex modes when generating code for PA 1.0.
7641         (VALID_FP_MODE_P): New macro.
7642         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
7643         sets for all general and floating point modes.  Align wide floating
7644         point modes to even register boundaries to comply with architectural
7645         requirements.
7646         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
7647         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
7648         (VALID_FP_MODE_P): New macro.
7649         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
7650         sets for all general and floating point modes.  Align wide floating
7651         point modes to even register boundaries to comply with architectural
7652         requirements.
7653
7654 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
7655
7656         * tree-dump.c (dump_files): Initialize dump number for .cgraph
7657         to 0.
7658
7659 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
7660
7661         * tree-ssa-structalias.c: Don't include expr.h.
7662
7663 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
7664
7665         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
7666         comments.
7667
7668 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
7669
7670         Fix PR tree-optimization/22279
7671
7672         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
7673         correct operator.
7674
7675 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
7676
7677         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
7678
7679 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
7680
7681         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
7682         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
7683         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
7684         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
7685         config/stormy16/stormy16.c, config/v850/v850.c,
7686         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
7687         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
7688         Avoid "." or "\n" at end of diagnostics and capital letters at
7689         start of diagnostics.
7690         * combine.c, cse.c: Don't translate dump file output.
7691         * toplev.c (print_version): Only translate output if going to
7692         stderr.
7693
7694 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
7695
7696         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
7697         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
7698         typos.
7699
7700 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7701
7702         * pa.c (fix_range): Fix typo in comment.
7703
7704 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
7705
7706         * tree-vrp.c (extract_range_from_assert): Replace
7707         fold (build (...)) with fold_build2.
7708
7709 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7710
7711         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
7712         gcc_gfc_char_table, init_dynamic_gfc_info): New.
7713         (format_types_orig, handle_format_attribute): Add support for
7714         format "gcc_gfc".
7715
7716 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7717
7718         * varasm.c (assemble_variable): Fix format specifier thinko.
7719
7720 2005-07-03  Ira Rosen  <irar@il.ibm.com>
7721
7722         PR tree-optimization/22029 (and 22135)
7723         * tree-pretty-print.c (dump_generic_node): Check that the node is not
7724         a phi node before calling dump_vops.
7725
7726 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7727
7728         * tree-dump.h (dump_string_field): Declare.
7729         * tree-dump.c: Use it instead of dump_string.
7730         (dump_string_field): Make non-static.
7731
7732 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
7733
7734         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
7735         up the minimal CFG stuff always when optimize > 0.  Call
7736         split_all_insns_noflow in PIC case if needed.
7737
7738 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7739             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
7740
7741         PR c++/18279
7742         * c-decl.c (c_write_global_declarations): Dump contents of
7743         external scope to.
7744         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
7745         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
7746         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
7747         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
7748         is enabled.
7749
7750 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
7751
7752         * c-common.h (GCC_DIAG_STYLE): Define.
7753         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
7754         version for format checking to 4.1.
7755         * c-format.c: Include toplev.h after c-common.h.
7756         (enum format_type): Add gcc_tdiag_format_type.
7757         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
7758         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
7759         (format_types_orig): Add gcc_tdiag.
7760         (init_dynamic_diag_info): Support gcc_tdiag formats.
7761         (handle_format_attribute): Likewise.
7762         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
7763         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
7764         version for format checking to 4.1.
7765         (warning0, warning, error, pedwarn, sorry): Use
7766         ATTRIBUTE_GCC_DIAG.
7767         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
7768         (finish_aliases_1): Do not use %qE.
7769         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
7770         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
7771         Correct format bugs.
7772         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
7773         parameter to unsigned HOST_WIDE_INT.
7774         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
7775
7776 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
7777
7778         PR middle-end/21742
7779         * expr.c (write_complex_part): Use adjust_address for MEM.
7780         (read_complex_part): Same.
7781
7782 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
7783
7784         Fix PR tree-optimization/22280
7785
7786         * tree-sra.c (generate_element_init): Remove useless loop.
7787
7788 2005-07-02  Richard Henderson  <rth@redhat.com>
7789
7790         * config/alpha/alpha.c (alpha_legitimize_address): Check for
7791         TLS_MODEL_NONE.
7792         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
7793
7794 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
7795
7796         PR middle-end/14490
7797         * fold-const.c (fold_binary): Handle the return value of
7798         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
7799         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
7800
7801 2005-07-02  Jeff Law  <law@redhat.com>
7802
7803         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
7804         a eliminate type conversion which feeds an equality comparison
7805         if the original type or either operand in the comparison is a
7806         function pointer.
7807
7808 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
7809
7810         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
7811         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
7812         texts.
7813         * config/avr/avr.c: Do not use '`' as left quote.
7814         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
7815         Remove "." from end of diagnostics.  Make diagnostics start with
7816         lowercase letter.
7817
7818 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
7819             Joseph S. Myers  <joseph@codesourcery.com>
7820
7821         * toplev.c (default_tree_printer): Handle setting location with
7822         '+' flag.
7823         * c-objc.common.c (c_tree_printer): Likewise.
7824         * c-format.c (gcc_diag_flag_specs): Add '+'.
7825         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
7826         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
7827         formats.
7828         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
7829         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
7830         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
7831         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
7832         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
7833         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
7834         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
7835         format arguments where %J is used without %D.
7836
7837 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
7838
7839         * gcc.c (LINK_SSP_SPEC): Define.
7840         (link_ssp_spec): New variable.
7841         (LINK_COMMAND_SPEC): Add %(link_ssp).
7842         (static_specs): Add link_ssp_spec.
7843         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
7844         * configure: Rebuilt.
7845         * config.in: Rebuilt.
7846
7847         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
7848         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
7849         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
7850         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
7851         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
7852         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
7853         -0x7008(2) instead of reading __stack_chk_guard variable.
7854         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
7855         number.
7856         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
7857         (stack_protect_set, stack_protect_test): Use *_tls* patterns
7858         if TARGET_THREAD_SSP_OFFSET is defined.
7859         (stack_tls_protect_set_si, stack_tls_protect_set_di,
7860         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
7861
7862         Revert:
7863         2005-06-27  Richard Henderson  <rth@redhat.com>
7864         * libgcc-std.ver (GCC_4.1.0): New.
7865         * libgcc.h (__stack_chk_guard): Declare.
7866         (__stack_chk_fail, __stack_chk_fail_local): Declare.
7867         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
7868         * mklibgcc.in (lib2funcs): Add them.
7869
7870 2005-07-01  Richard Henderson  <rth@redhat.com>
7871
7872         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
7873         void * before struct sigcontext *.
7874         (x86_fallback_frame_state): Likewise.
7875
7876 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
7877
7878         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
7879
7880 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
7881
7882         PR tree-opt/22269
7883         * tree-ssa-reassoc.c (should_transpose): Fix which operand
7884         we check for SSA_NAME for.
7885
7886 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
7887
7888         Fix PR tree-optimization/22071
7889
7890         * tree-ssa-structalias.c (offset_overlaps_with_access): New
7891         function.
7892         (get_constraint_for_component_ref): Use it.
7893
7894 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
7895
7896         PR other/22264
7897         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
7898         print out the last new line.
7899
7900 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
7901
7902         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
7903         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
7904         * config/cris/cris.c (cris_conditional_register_usage): Adjust
7905         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
7906         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
7907         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
7908         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
7909         (enum reg_class): New member CC0_REGS.
7910         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
7911         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
7912         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
7913         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
7914         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
7915         Adjust for register now described.
7916
7917 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
7918
7919         PR target/22262
7920         * config/i386/i386.md (stack_protect_test_si,
7921         stack_protect_test_di): Add earlyclobber for scratch 3.
7922         * config/rs6000/rs6000.md (stack_protect_testsi,
7923         stack_protect_testdi): Add earlyclobber for scratch 3,
7924         remove earlyclobber from scratch 4.
7925
7926 Older entries for 2005 can be found in ChangeLog-2005.