OSDN Git Service

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