OSDN Git Service

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