OSDN Git Service

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