OSDN Git Service

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