OSDN Git Service

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