* config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
[official-gcc.git] / gcc / ChangeLog
blobbc9ad2a90426f6fe193925b6c950870d51c45993
1 2004-10-14  Richard Sandiford  <rsandifo@redhat.com>
3         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
4         global for -mcaller-super-interworking.
5         (CALLER_INTERWORKING_SLOT_SIZE): New macro.
6         * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
7         CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
8         not need a frame pointer.
9         (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
10         the soft frame pointer offset.
11         (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
12         * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
13         _interwork_{r7,r11}_call_via_rN if some arguments are passed on
14         the stack.  Use frame_pointer_needed to choose between them.
15         * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
16         (interwork_with_frame): New macro.
17         (interwork): Add _interwork_{r7,r11}_call_via_rN().
19 2004-10-14  Ben Elliston  <bje@au.ibm.com>
21         PR other/17900
22         * diagnostic.c (trim_filename): Fix logic bug in walking backwards
23         up the filename looking for a previous directory separator.
25 2004-10-14  Joseph S. Myers  <jsm@polyomino.org.uk>
27         * c-tree.h (enum c_typespec_kind, struct c_typespec,
28         parser_xref_tag): New.
29         (struct c_declspecs): Add tag_defined_p.  Adjust definition of
30         typedef_p.
31         (declspecs_add_type): Adjust prototypes.
32         * c-parse.in (%union): Add tstype.
33         (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
34         typespec_reserved_attr, typespec_nonreserved_nonattr,
35         structsp_attr, structsp_nonattr): Change to tstype.  Update
36         actions.
37         * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
38         (declspecs_add_type): Update to take struct c_typespec argument.
39         Set tag_defined_p and typedef_p as appropriate.
40         (xref_tag): Rename to parser_xref_tag and replace by wrapper.
41         Update to return struct c_typespec.
42         (shadow_tag_warned): Don't let empty declarations with qualifiers
43         or storage class specifiers redeclare a tag if a previous
44         declaration is visible.
46 2004-10-13  Richard Henderson  <rth@redhat.com>
48         PR debug/15860
49         * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
50         for DECL_INCOMING_RTL.
52 2004-10-14  Hans-Peter Nilsson  <hp@axis.com>
54         PR target/17984
55         * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
56         trunc_int_for_mode for constants used in shortened mode.
58 2004-10-13  Richard Henderson  <rth@redhat.com>
60         PR c/17384
61         * c-common.c (handle_mode_attribute): Disallow mode changes that
62         alter the CODE of the top-level type.
64         * crtstuff.c (__FRAME_END__): Remove mode attribute.  Find 32-bit
65         integer from internal limits macros.
66         * config/i386/mm3dnow.h (__v2sf): Fix base type.
68 2004-10-13  Richard Henderson  <rth@redhat.com>
70         PR debug/13841
71         * function.c (instantiate_decl): Recurse for CONCAT.
73 2004-10-13  David Edelsohn  <edelsohn@gnu.org>
75         * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
76         andi./andis.
77         (anddi3): Same.
78         (extzvdi_internal1): Add attribute "compare".
79         (extzvdi_internal2): Same.
81 2004-10-12  Tom Tromey  <tromey@redhat.com>
83         * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
85 2004-10-13  Dale Johannesen  <dalej@apple.com>
87         * doc/extend.texi (Extended Asm):  Rewrite asm volatile description.
89 2004-10-13  Frank Ch. Eigler  <fche@redhat.com>
91         * toplev.c (compile_file): Call mudflap_finish_file from here ...
92         * c-decl.c (c_write_global_declarations): ... instead of here ...
93         * cp/decl.c (cp_finish_file): ... and here.
94         * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
96 2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
98         * tree-ssa-dom.c (record_range): Free the element if we are not
99         going to use it.
101 2004-10-13  Tom Tromey  <tromey@redhat.com>
103         PR java/15578:
104         * gcc.c (option_map): Added --extdirs and --encoding.
106 2004-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
108         PR target/14454
109         * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
110         sparc_can_output_mi_thunk.
111         (sparc_output_mi_thunk): Simplify handling of delta offset.  Add
112         handling of vcall offset.
113         (sparc_can_output_mi_thunk): New predicate.
114         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
115         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
116         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
118         * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
120         * config/sparc/sparc.md (movdi): Remove redundant test.
122 2004-10-13  Paolo Bonzini  <bonzini@gnu.org>
124         * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
125         TDF_IPA from -fdump-tree-*-all.
127 2004-10-13  Paul Brook  <paul@codesourcery.com>
129         * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
130         * config/arm/arm.c (thumb_find_work_register): Update comments.
131         (arm_load_pic_register): Add argument for scratch register.
132         (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
133         * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
135 2004-10-13  Kazu Hirata  <kazu@cs.umass.edu>
137         * tree-data-ref.c: Fix comment typos.
139 2004-10-13  Jakub Jelinek  <jakub@redhat.com>
140             Zdenek Dvorak  <dvorakz@suse.cz>
142         PR tree-optimization/17724
143         * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
145 2004-10-13  Dorit Naishlos  <dorit@il.ibm.com>
147         * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
148         (altivec_builtin_mask_for_store): Likewise.
149         (altivec_init_builtins): Use lang_hooks.builtin_function to
150         create the decls for builtin_altivec_mask_for_load/store.
152 2004-10-13  Nick Clifton  <nickc@redhat.com>
154         * config/c4x/c4x.c: Remove inclusion of loop.h.
156 2004-10-12  Ben Elliston  <bje@au.ibm.com>
158         * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
159         (ei_container): New; renamed.
160         (ei_start, ei_last): New macros.
161         (ei_start_1, ei_last_1): Renamed from ei_start.
162         (ei_last_1, ei_end_p): Use ei_container() where applicable.
163         (ei_one_before_end_p, ei_next, ei_edge): Likewise.
164         * gcse.c (remove_reachable_equiv_notes): Use ei_container().
166 2004-10-11  Sebastian Pop  <pop@cri.ensmp.fr>
168         * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
169         * cfgloop.c (initialize_loops_parallel_p): New.
170         (flow_loops_find): Initialize the parallel_p field to true for all 
171         the loops.
172         * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
173         (estimate_numbers_of_iterations_loop): Infers the loop bounds from 
174         the size of the data accessed in the loop.
175         (struct nb_iter_bound): Moved... 
176         * cfgloop.h (struct nb_iter_bound): ... here.
177         (estimated_nb_iterations, parallel_p): New fields in struct loop.
178         (record_estimate): Declare extern here.
179         * tree-chrec.c: Fix comments.
180         (nb_vars_in_chrec): New function.
181         * tree-chrec.h (nb_vars_in_chrec): Declared here.
182         * tree-data-ref.c: Don't include lambda.h, that is already included 
183         in tree-data-ref.h.
184         (tree_fold_divides_p): Don't check for integer_onep.
185         (tree_fold_bezout): Removed.
186         (gcd): New static duplicated function.
187         (int_divides_p, dump_subscript): New.
188         (dump_data_dependence_relation): Use dump_subscript.
189         (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations, 
190         estimate_niter_from_size_of_data): New.
191         (analyze_array_indexes, analyze_array): Call 
192         estimate_niter_from_size_of_data during the detection of array 
193         references.  Pass in a pointer to the statement that contains the 
194         array reference.
195         (all_chrecs_equal_p): New.
196         (compute_distance_vector): Renamed compute_subscript_distance.
197         Deal with multivariate conflict functions.
198         (initialize_data_dependence_relation): Initialize DDR_AFFINE_P, 
199         DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
200         (non_affine_dependence_relation): New.
201         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine, 
202         analyze_siv_subscript, analyze_miv_subscript, 
203         analyze_overlapping_iterations, subscript_dependence_tester): 
204         Initialize and return last_conflicts function.
205         (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
206         compute_overlap_steps_for_affine_1_2): New.
207         (analyze_siv_subscript_affine_cst): Removed.
208         (analyze_subscript_affine_affine): Disprove dependences based on the 
209         iteration domains.  Solve the univariate dependence case as before, 
210         but use lambda_matrix_right_hermite instead of tree_fold_bezout.
211         Implement the multivariate case of 2 versus 1 variables.
212         (build_classic_dist_vector, build_classic_dir_vector): Implement some 
213         unhandled cases.
214         (find_data_references_in_loop): Compute and initialize 
215         loop->estimated_nb_iterations and loop->parallel_p.
216         (analyze_all_data_dependences): Modify the debug dump order.
217         * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
218         subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
219         (SUB_LAST_CONFLICT, subscript->last_conflict, 
220         data_dependence_relation->affine_p, data_dependence_relation->size_vect,
221         DDR_AFFINE_P, DDR_SIZE_VECT): New.
222         (find_data_references_in_loop, initialize_data_dependence_relation,
223         dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
225 2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>
227         * configure: Regenerate.
229 2004-10-12  Fariborz Jahanian <fjahanian@apple.com>
231         PR 17892
232         * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
233         (simplify_rhs_and_lookup_avail_expr): Disallow associativity
234         and constant folding of floating point MULT_EXPR/PLUS_EXPR 
235         expressions.
237 2004-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
239         * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
240         (s390_gimplify_va_arg): Likewise.
242 2004-10-12  Daniel Jacobowitz  <dan@debian.org>
244         * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
245         (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
246         (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
247         * regclass.c (record_address_regs): Remove ifdef.  Use
248         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
249         * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
250         definition.
251         (scan_rtx_address, replace_oldest_value_addr): Use
252         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
253         * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
254         unnecessary definitions.
255         (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
256         and MODE_BASE_REG_REG_CLASS.
257         * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
258         (MODE_BASE_REG_REG_CLASS): Define.
259         (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
260         (REG_MODE_OK_FOR_REG_BASE_P): Define.
261         * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
262         REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
264 2004-10-12  Daniel Berlin <dberlin@dberlin.org>
266         * tree-ssa-alias.c (verify_name_tags): New function.
267         (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
268         (verify_alias_info): Call verify_name_tags.
270 2004-10-12  Kazu Hirata  <kazu@cs.umass.edu>
272         PR rtl-optimization/17931
273         * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
274         ZERO_EXTRACT in it.
276 2004-10-12  Richard Earnshaw  <rearnsha@arm.com>
278         * arm.c (arm_print_operand): Use output_operand_lossage where possible
279         rather than aborting.
281 2004-10-12  Paul Brook  <paul@coudesourcery.com>
283         * config.gcc: Add armv6{k,z,zk}
284         * config/arm/arm-cores.def: Add arm1176 and mpcore.
285         * config/arm/tune.md: Regenerate.
286         * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
287         Define.
288         (all_architectures): Add armv6k, armv6z, armv6zk.
289         * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
290         * doc/invoke.texi: Document new arch and cpu values.
292 2004-10-12  Paul Brook  <paul@coodesourcery.com>
294         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
295         meabi=4.
297 2004-10-12  Paul Brook  <paul@codesourcery.com>
299         * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
300         Handle negative constants.
302 2004-10-12  Joseph S. Myers  <jsm@polyomino.org.uk>
304         PR c/17301
305         * c-typeck.c (convert_arguments): Return error_mark_node if there
306         are too few arguments.
307         (build_function_call): Handle error_mark_node return from
308         convert_arguments.
310 2004-10-06  Paolo Bonzini  <bonzini@gnu.org>
312         * configure.ac (symbolic_link): Replace with $LN_S.
313         (Assembler/Linker): Hard link from gas and binutils trees.
314         * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
315         * configure: Regenerate.
317 2004-10-12  Paul Brook  <paul@codesourcery.com>
319         * configure.ac: Don't look for host assembler when building a canadian
320         cross.
321         * configure: Regenerate.
323 2004-10-11  Roger Sayle  <roger@eyesopen.com>
325         PR other/17361
326         * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
327         (c_common_init_options): Remove #ifdef CL_F77 code.  Scan command
328         line options for "-lang-asm" and if found allow any of the C-family
329         front-end options.
330         (c_common_handle_option): Remove last use of permit_fortran_options.
332 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
334         * config/s390/s390.c (print_operand): Support 'S' format flag.
335         * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
336         ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
337         ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
338         ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
339         ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
340         ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
341         ("*movstricthi"): Likewise.
342         ("*load_multiple_di", "*load_multiple_si"): Likewise.
343         ("*store_multiple_di", "*store_multiple_si"): Likewise.
344         ("*sethiqisi", "*sethihisi"): Likewise.
345         ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
346         ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
347         ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
348         ("*xorqi3", "*xc", "*xc_zero"): Likewise.
349         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
351         ("*tmhi_full"): Fix incorrect op_type attribute.
353         ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
354         ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
355         ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
356         ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
358 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu
360         PR middle-end/16266
361         * function.c (temp_slots_at_level): Fix typo which creates too
362         many temp stack slots levels.
364 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
366         * config/s390/s390.c (s390_trampoline_template): Generate shorter
367         trampoline code.
368         (s390_trampoline_instantiate): Adapt.
369         * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
371 2004-10-11  Roger Sayle  <roger@eyesopen.com>
373         PR middle-end/17657
374         * stmt.c (add_case_node): Add additional type argument.  Declare
375         as static to match prototype.  Convert the upper and lower bounds
376         to the specified index type.  Optimize away case ranges/values 
377         that are outside the index type's bounds.  Truncate case ranges
378         that span the index type's bounds.
379         (expand_case): Avoid unnessary computation and memory allocation
380         when index type is error_mark_node.  Pass index_type as required
381         by change to add_case_node API.  No need to convert case range
382         bounds to index_type, this is now done by add_case_node.
384 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
386         * config/s390/s390-protos.h (s390_offset_p): Add prototype.
387         * config/s390/s390.c (s390_offset_p): New function.
388         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
389         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
390         transform Q->Q alternatives to *clc pattern.
391         ("*clc"): Move.
392         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
393         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
394         to transform Q->Q alternatives to *mvc pattern.
395         ("*mvc"): Move.  Add peephole to merge adjacent MVCs.
396         ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
397         "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
398         transform Q->Q alternatives to *nc pattern.
399         ("*nc"): New insn.  New peephole to merge adjacent NCs.
400         ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
401         "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
402         transform Q->Q alternatives to *oc pattern.
403         ("*oc"): New insn.  New peephole to merge adjacent OCs.
404         ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
405         transform Q->Q alternatives to *xc pattern.
406         ("*xc"): New insn.  New peephole to merge adjacent XCs.
407         ("*xc_zero"): Move.  Add peephole to merge adjacent XCs.
409 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
411         * gimplify.c (gimple_push_condition): Make sure that we don't
412         have any saved condition cleanup if we were at the top level.
414 2004-10-11  Richard Sandiford  <rsandifo@redhat.com>
416         * config/frv/frv.md (*adddi3_internal): Change name to...
417         (adddi3): ...replacing the exisiting define_expand.  Combine
418         alternatives.  Fix the range of the constant constraints ('J' instead
419         of 'NOP').  Remove bogus operands[2] check.  Use simplify_gen_subreg
420         to extract the lower and upper halves of the DImode operands.
421         Always use addi3_lower and adddi3_upper, not the subdi3 forms.
422         (adddi3_lower): Fix the range of the constant constraints and
423         remove the bogus operands[2] check.
424         (adddi3_upper): Use gpr_or_int10_operand as the predicate for
425         operand 2.  Use addxi to handle constant operands.
426         (subdi3_lower, subdi3_upper): Don't handle constant operands.
428 2004-10-11  Nathan Sidwell  <nathan@codesourcery.com>
430         * gengtype-lex.l: Add commented } & ) characters to unconfuse
431         editor's paren matching. Allow #define inside a struct.
433 2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>
435         PR middle-end/17703
436         part of PR c++/17657
437         * fold-const.c (fold_build_cleanup_point_expr): New function.
438         * tree.h (fold_build_cleanup_point_expr): Prototype.
440 2004-10-10  Eric Christopher  <echristo@redhat.com>
442         * dwarf2out.c: Move attribute to subprogram declaration
443         instead of subroutine type.
445 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
447         * basic-block.h: Remove the prototypes for can_hoist_insn_p,
448         hoist_insn_after, and hoist_insn_to_edge.
449         * rtl.h: Remove the prototypes for reg_referenced_between_p,
450         no_jumps_between_p, and insn_dependent_p.
451         * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
452         insn_dependent_p, insn_dependent_p_1, hoist_test_store,
453         can_hoist_insn_p, hoist_update_store, hoist_insn_after,
454         hoist_insn_to_edge): Remove.
456 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
458         PR c/17881
459         * c-decl.c (grokparms): Don't warn for parameters of incomplete
460         type in declarations that are not definitions except for the case
461         of parameters of void type.
463 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
465         * tree-cfg.c: Fix comment typos.
467 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
469         PR c/17301
470         * builtins.c (expand_builtin_va_start): Check for too few
471         arguments to va_start.
473 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
475         PR c/17189
476         * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
477         fields a pedwarn.  Pedwarn here for unnamed structs/unions if
478         pedantic.
479         * c-parse.in (component_decl): Don't pedwarn here for unnamed
480         fields.
482 2004-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
484         PR tree-optimization/17906
485         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
486         copy non-gimple reg arguments.
488 2004-10-09  Roger Sayle  <roger@eyesopen.com>
490         PR rtl-optimization/17853
491         * simplify-rtx.c (simplify_relational_operation): Correct comment.
492         Reorganize handling of comparison operations with floating point
493         results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
494         Likewise, introduce support for comparison operations with vector
495         result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
497         * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
498         * doc/tm.texi: Likewise.
500 2004-10-09  Steven Bosscher  <stevenb@suse.de>
502         * regs.h (struct reg_info_def): Remove the last_node_uid and
503         changes_mode fields.
504         (REGNO_LAST_NOTE_UID): Don't define.
505         * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
506         * regmove.c (copy_src_to_dest): Likewise.
508 2004-10-09  Roger Sayle  <roger@eyesopen.com>
510         PR middle-end/17894
511         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
512         relational comparison operator op needs to be swapped/reversed when
513         C1 is negative.  i.e. X/-10 < 1 becomes X >= -9, not X < -9.
515 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
517         PR tree-opt/17902
518         * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
519         instead of bsi_start.
520         (value_replacement): Likewise.
521         (abs_replacement): Likewise
523 2004-10-09  Steven Bosscher  <stevenb@suse.de>
525         * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
526         (expand_gimple_cond_expr, expand_gimple_tailcall,
527         expand_gimple_basic_block): Use it to dump RTL for each stmt.
528         (tree_expand_cfg): Announce full RTL function dump.
529         * tree-optimize.c (execute_one_pass): Use normal RTL printing,
530         not the graph version.
531         * tree-pretty-print.c (dump_generic_node): Allow empty statements
532         in the arms of a COND_EXPR for lowered nodes.
534 2004-10-08  Joseph S. Myers  <joseph@codesourcery.com>
536         * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
537         atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
538         strtoufix16, strtoufix32, strtoufix64): Declare.
540 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
542         * c-lex.c (interpret_float): Give a pedwarn rather than a warning
543         for an out-of-range floating point constant.
544         * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
545         warning if the target format does not support infinities.
547 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
549         * emit-rtl.c (last_label_num, base_label_num): Remove.
550         (max_label_num): Always return label_num.
551         (set_new_last_label_num, restore_emit_status): Remove.
552         (init_emit): Don't initialize last_label_num.
553         * function.c (pop_function_context_from): Don't call
554         restore_emit_status.
555         * function.h: Remove the prototype for restore_emit_status.
556         * rtl.h: Remove the prototype for set_new_last_label_num.
558 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
560         * stmt.c (expand_decl_init): Remove.
561         * tree.h: Remove the corresponding prototype.
563 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
565         * integrate.c (try_constants, subst_constants, mark_stores):
566         Remove.
567         * integrate.h: Remove the prototype for try_constants.
569 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
571         * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
572         (convert_for_assignment): Handle ic_argpass_nonproto.  Add
573         comments about its relevance to errors.
574         (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
576 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
578         PR c/16999
579         * c-ppoutput.c (cb_ident): Don't quote string as it is already
580         quoted.
582 2004-10-08  Diego Novillo  <dnovillo@redhat.com>
584         * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
585         reference_node_pool.
587 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
589         * tree-cfg.c: Fix a comment typo.
591 2004-10-08  Andreas Krebbel  <krebbel1@de.ibm.com>
593         * config/s390/s390.c (s390_register_info): Don't save fprs for
594         -msoft-float.
595         (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
597 2004-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
599         * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
600         (TARGET_DEFAULT): Use symbolic values.
601         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
602         (TARGET_DEFAULT): Use symbolic values.
603         * config/s390/s390.c (s390_backchain_string): Initialize to
604         TARGET_DEFAULT_BACKCHAIN.
606 2004-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
608         * builtins.c (expand_builtin_mempcpy): Move tree handling code to
609         fold_builtin_mempcpy.  Accept a type parameter.  Delete duplicate
610         code.
611         (expand_builtin_strcat): Accept a type parameter.
612         (fold_builtin_mempcpy): Accept a type and endp parameter.
614         * builtins.c (expand_builtin_strncpy): Delete duplicate code.
615         Accept an `exp' instead of an `arglist'.
617 2004-10-08  Nathan Sidwell  <nathan@codesourcery.com>
619         * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
620         reverting my 2004-09-07 patch to use build_int_cst.
622 2004-10-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
624         PR target/17245
625         * config/sparc/sparc.c (input_operand): Remove redundant code
626         for handling LO_SUM.
627         (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
628         <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
629         Otherwise only accept it for TFmode if quad move insns are available.
631 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
633         * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
634         common cases will be caught earlier than others.
636 2004-10-08  Michael Matz  <matz@suse.de>
638         * loop-doloop.c (doloop_optimize): Extend count.
640 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
642         * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
643         (prefetch): Convert to expander.
645 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
647         * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
648         first argument of CALL.
649         (tls_local_dynamic): Likewise.
651 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
653         * c-typeck.c (enum impl_conv): New.
654         (convert_for_assignment): Use it.  Take tree for function called
655         instead of its name.  Handle ObjC selectors for diagnostics at
656         start of function.  Select diagnostic text within the function
657         using full sentences for diagnsotics.  Use %qE to name functions
658         in diagnostics.
659         (convert_arguments, build_modify_expr,
660         c_convert_parm_for_inlining, digest_init, c_finish_return): Update
661         callers to convert_for_assignment.
662         (warn_for_assignment): Remove.
664 2004-10-08  Nick Clifton  <nickc@redhat.com>
666         * config/sh/symbian.c (symbian_possibly_export_base_class):
667         Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
668         TYPE_CONTAINS_VPTR_P.
670 2004-10-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
672         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
673         fixed registers form all_used_regs. Update call_really_used_regs.
674         (CALL_REALLY_USED_REGISTERS): Define.
675         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
676         with call_really_used_regs.
678 2004-10-08  Alan Modra  <amodra@bigpond.net.au>
680         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
681         for -profile as well as -p and -pg.
683 2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>
685         * libgcc2.c (__moddi3): Cast &w to UDWtype*.
687 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
689         * tree-cfg.c (tree_block_forwards_to): Remove.
690         * tree-flow.h: Remove the corresponding prototype.
692 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
694         * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
695         for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
697 2004-10-07  Geoffrey Keating  <geoffk@apple.com>
699         Radar 3813796
700         * config/rs6000/rs6000.c (rs6000_generate_compare): When
701         flag_trapping_math is in effect, don't generate subtract
702         instructions.
704 2004-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
706         * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
707         * config/s390/s390.c (s390_narrow_logical_operator): New function.
708         (s390_extra_constraint_str): Add 'A' constraints.
709         (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
710         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
711         (CONSTRAINT_LEN): Likewise.
712         * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
713         ("*andsi3_zarch", "*andsi3_esa"): Likewise.
714         ("*andhi3_zarch", "*andhi3_esa"): Likewise.
715         ("*iordi3"): Add OI alternative and splitter.
716         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
717         ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
718         ("*xordi3"): Add XI alternative and splitter.
719         ("*xorsi3", "*xorhi3"): Likewise.
721 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
723         * config/mips/mips.c (mips_function_rodata_section): New function.
724         (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
726 2004-10-07  Devang Patel  <dpatel@apple.com>
728         * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
729         UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
730         UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
731         UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
732         UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
733         UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
734         UNSPEC_VCONDU_V16QI): New constant defines.
735         (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
736         vconduv16qi): New patterns.
737         * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
738         * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
739         (get_vec_cmp_insn): Same.
740         (get_vsel_insn): Same.
741         (rs6000_emit_vector_compare): Same.
742         (rs6000_emit_vector_select): Same.
743         (INSN_NOT_AVAILABLE): New.
745 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
747         PR tree-optimization/17749
748         * tree-tailcall.c (find_tail_calls): Check that parameter is
749         a gimple_reg.
751 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
753         * config/ia64/ia64.c: Fix a comment typo.
755 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
757         * doc/install.texi (*-*-solaris2*): Fix marker for URL.
759 2004-10-07  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
761         PR c++/17115
762         * tree-inline.c (expand_call_inline): Do not warn for functions
763         marked with attribute noinline.
765 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
767         PR target/17862
768         * config/sparc/sparc.c (sparc_output_mi_thunk): Set
769         current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
771         * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
772         of 0 as 4th argument to pass_by_reference.
773         Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
775 2004-10-06  Eric Christopher  <echristo@redhat.com>
777         * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
778         attribute.
780 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
782         PR target/17770
783         * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
785 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
787         PR rtl-optimization/17791
788         * loop-doloop.c (doloop_modify): Take number of iterations as
789         argument.
790         (doloop_optimize): Extend or shorten the number of iterations
791         when changing mode of counter register.
792         * loop-iv.c (lowpart_subreg): Export.
793         * rtl.h (lowpart_subreg): Declare.
795 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
797         PR tree-optimization/17806
798         * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
799         * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
800         flags moved to split_edge.
802 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
804         PR middle-end/17835
805         * expmed.c (expand_sdiv_pow2): Force a stack adjustment
806         before tentatively building the conditional move sequence.
808 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
810         PR target/16815
811         * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
812         check.
813         * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
814         function_arg_padding.
816 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
818         PR bootstrap/17857
819         * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
821 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
823         * hooks.c (hook_int_void_1, hook_void_int): Remove.
824         * hooks.h: Remove the corresponding prototypes.
826 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
828         PR middle-end/17849
829         * tree-nested.c (walk_stmt_info): Add changed field.
830         (convert_nonlocal_reference): Set changed to when we
831         change a decl to unnested decl.
832         <case ADDR_EXPR>: Instead of checking if the immediate part
833         of the ADDR_EXPR changed, check the field changed.
834         Use recompute_tree_invarant_for_addr_expr instead of unsetting
835         TREE_INVARIANT.
836         (convert_local_reference):  Set changed to when we
837         change a decl to unnested decl.
838         <case ADDR_EXPR>: Instead of checking if the immediate part
839         of the ADDR_EXPR changed, check the field changed.
840         Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
842 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
844         * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
845         * dwarf2out.c (dwarf2out_init): Remove references to
846         DWARF2_GENERATE_TEXT_SECTION_LABEL.
847         * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
848         * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
850 2004-10-06  Joseph S. Myers  <jsm@polyomino.org.uk>
852         * c-typeck.c (convert_arguments): Take expression for called
853         function rather than its name.  Handle ObjC selectors directly
854         rather than relying on warn_for_assignment to do so.  Call warning
855         directly rather than warn_for_assignment.  Use %qE in diagnostics.
856         Say "argument" rather than "arg" in diagnostics.
857         (build_function_call): Update call to convert_arguments.
859 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
861         PR debug/17787
862         * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
863         ENUMs specially instead of just saying we do.
865 2004-10-06  Eric Christopher  <echristo@redhat.com>
867         * dwarf2.h: Sync with include/elf/dwarf2.h
869 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
871         * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
872         and TREE_VEC nodes.
874 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
876         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
877         to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
879 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
881         * lambda-code.c (compute_nest_using_fourier_motzkin): New
882         function.
883         (lambda_compute_auxillary_space): Split from here.
885 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
887         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
888         * tree-flow.h: Add prototype.
889         * lambda-code.c (invariant_in_loop_and_outer_loops): Use
890         expr_invariant_in_loop.
892 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
894         * tree-cfg.c (thread_jumps): Remove a duplicate check for
895         EXIT_BLOCK_PTR.
897 2004-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
899         * config/s390/s390-protos.h (s_imm_operand): Remove.
900         (s390_pool_operand): Add prototype.
901         * config/s390/s390.c (general_s_operand): Remove.
902         (s_imm_operand): Remove.
903         (s_operand): Merge contents of general_s_operand.
904         (s390_pool_operand): New function.
905         * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
906         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
907         ("*cmpdi_ccu"): Merge Q->Q alternative.
908         ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
909         ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
910         ("*cli"): Remove.
911         ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
912         ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
913         ("*movstricthi"): Use memory_operand instead of s_imm_operand.
915 2004-10-06  Steve Ellcey  <sje@cup.hp.com>
917         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
918         call ia64_function_arg_boundary.
919         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
920         * config/ia64/ia64.c (ia64_function_arg_boundary): New.
921         (ia64_function_arg_advance): Do not put 128 bit floats into
922         FP registers.
924 2004-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
926         * builtins.c (expand_builtin_strcpy): Delete duplicate code.
927         Accept an expression instead of an arglist.
928         (expand_builtin_stpcpy): Accept an expression instead of an
929         arglist.
931 2004-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
933         PR target/16007
934         * doc/install.texi (*-*-solaris2*): Mention potential problem
935         with Sun assembler + GNU linker and C++ programs.
936         Document status of binutils 2.15 release.
938 2004-10-06  Jan Hubicka  <jh@suse.cz>
940         * cse.c (cse_main): Kill push/pop context.
942 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
944         * pretty-print.c: Include tree.h.
945         (pp_base_prepare_to_format): New function, logic from
946         text_specifies_location.
947         (pp_base_format_text): Use gcc_assert.
948         * pretty-print.h (pp_prepare_to_format): New macro.
949         (pp_base_prepare_to_format): Prototype.
950         * diagnostic.c (text_specifies_location): Delete.
951         (bug_report_request): Delete.
952         (diagnostic_set_info): Don't call text_specifies_location.
953         (diagnostic_action_after_output): Put text from
954         bug_report_request inline here.  Use gcc_unreachable.
955         (diagnostic_report_current_function): Fix comment.
956         (diagnostic_report_diagnostic): Clarify logic for error recursion.
957         Call pp_prepare_to_format before diagnostic_starter.
958         (trim_filename): Use IS_DIR_SEPARATOR.
959         (fatal_error, internal_error): Use gcc_unreachable.
960         (error_recursion): Call diagnostic_action_after_output to
961         issue the bug_report_request message and exit.
962         * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
964         * c-parse.in: Add list of diagnostic messages to insulate
965         translation template from version of yacc/bison used to
966         compile the grammar.
968 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
970         PR 16406
971         * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
973 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
975         * basic-block.h: Remove the prototype for
976         flow_preorder_transversal_compute.
977         * cfganal.c (dfst_node): Remove.
978         (flow_preorder_transversal_compute): Likewise.
979         * rtl.h: Remove the prototype for get_jump_table_offset.
980         * rtlanal.c (get_jump_table_offset): Remove.
982 2004-10-05  Richard Henderson  <rth@redhat.com>
984         PR 17756
985         * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
987 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
989         PR bootstrap/17817
990         * Makefile.in: Stage the build directory too.
992 2004-10-05  Aldy Hernandez  <aldyh@redhat.com>
994         * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
996         * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
997         (frv_emit_move): Same.
999         * config/frv/frv.c (frv_emit_move): New.
1000         (frv_legitimize_address): New.
1002         * config/frv/frv.md ("movsi"): Call frv_emit_move.
1003         ("movqi"): Same.
1004         ("movhi"): Same.
1005         ("movdi"): Same.
1006         ("movsf"): Same.
1007         ("movdf"): Same.
1009 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1011         * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
1012         system headers.
1014 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1016         * c-decl.c (pushdecl): When an extern declaration at block scope
1017         refers to a visible entity with internal linkage, use the old DECL
1018         rather than the new one.
1020 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1022         * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
1023         comments.
1025 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1027         * tree-cfg.c (thread_jumps): Remove a duplicate check for
1028         an infinite loop.
1030 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1032         * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
1033         of FOR_BB_BETWEEN.  Remove a useless check for unreachable
1034         blocks.
1036 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1038         * tree-cfg.c (cleanup_tree_cfg): Don't call
1039         delete_unreachable_blosk() after thread_jumps().
1040         (thread_jumps): Always remove basic blocks as they become
1041         unreachable.
1043 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1045         * tree-cfg.c (cleanup_tree_cfg): Remove variable
1046         something_changed.  Simplify the while loop.
1048 2004-10-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1050         * builtins.c (expand_builtin_memmove): Delete duplicate code
1051         and accept a tree type for the result.
1052         (expand_builtin_bcopy): Accept a tree type for the result.
1053         (fold_builtin_memmove): Accept an arglist and tree type for
1054         the result.
1056 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
1058         * config/s390/s390.c (s390_dump_pool): Remove return value.
1059         Use gen_pool_align, gen_pool_section_start/end instead of
1060         gen_pool_start/end_31/64.
1061         * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
1062         (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
1063         ("pool_start_31", "pool_end_31"): Remove.
1064         ("pool_start_64", "pool_end_64"): Likewise.
1065         ("pool_align", "pool_section_start", "pool_section_end": New insns.
1067         * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
1068         (TARGET_CANNOT_COPY_INSN_P): Define.
1069         (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
1070         (struct constant_pool): New member 'execute'.
1071         (s390_add_execute, s390_find_execute): New functions.
1072         (s390_execute_label, s390_execute_target): Likewise.
1073         (s390_dump_pool): Output in-pool execute target templates.
1074         (s390_dump_execute): New function.
1075         (s390_alloc_pool, s390_free_pool): Handle execute templates.
1076         (s390_mainpool_start, s390_mainpool_finish): Likewise.
1077         (s390_chunkify_start, s390_chunkify_finish): Likewise.
1078         * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
1079         ("*execute"): New insn pattern.
1080         ("movmem_short", "*movmem_short"): Use splitters to generate
1081         explicit execute pattern, remove embedded execute.
1082         ("clrmem_short", "*clrmem_short"): Likewise.
1083         ("cmpmem_short", "*cmpmem_short"): Likewise.
1085 2004-10-05  Daniel Berlin  <dberlin@dberlin.org>
1087         * tree-ssa.c (verify_ssa): Verify phi arguments only
1088         contain renamed names.
1090 2004-10-05  Alan Modra  <amodra@bigpond.net.au>
1092         * config/rs6000/linux.h: Formatting, whitespace.
1093         * config/rs6000/linux64.h: Likewise.
1094         * config/rs6000/rs6000-protos.h: Likewise.
1095         * config/rs6000/rs6000.c: Likewise.
1096         (easy_vector_splat_const): Add fall thru comments.
1097         (output_vec_const_move): Likewise.
1099 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
1101         * Makefile.in: Update -Wno-error exceptions for move to build dir.
1103 2004-10-05  Chao-Ying Fu  <fu@mips.com>
1104             Richard Sandiford  <rsandifo@redhat.com>
1106         * doc/invoke.texi (-mpaired-single): Link to the new description of the
1107         built-in functions.  Document dependencies.
1108         (-mips3d): Add link here too.
1109         * doc/extend.texi (MIPS Paired-Single Support): New section.
1111 2004-10-04  Chao-ying Fu  <fu@mips.com>
1113         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
1115 2004-10-04  Diego Novillo  <dnovillo@redhat.com>
1117         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
1118         Initialize OPT_STATS to 0.
1120 2004-10-04  Kazu Hirata  <kazu@cs.umass.edu>
1122         * tree-data-ref.c: Fix comment typos.
1124 2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>
1126         * tree-data-ref.c (array_base_name_differ_p): Fix comments.  When
1127         the predicate cannot be computed, don't initialize the result to
1128         false.
1130 2004-10-01  Eric Christopher  <echristo@redhat.com>
1132         * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
1133         locally defined enum.
1134         * dwarf2out.c (add_calling_convention_attribute): Don't
1135         emit DW_CC_normal.
1137 2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>
1139         PR c/17178, PR c/17820
1140         * c-decl.c (pop_scope): Do not warn about unused static
1141         variables as they warned in the middle-end.
1143 2004-10-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1145         * builtins.c (expand_builtin_memcpy): Delete duplicate code
1146         and make the first parameter the expression not the arglist.
1148 2004-10-03  Ulrich Weigand  <uweigand@de.ibm.com>
1150         * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
1151         as valid modes to expand address expressions.
1153 2004-10-03  Joseph S. Myers  <jsm@polyomino.org.uk>
1155         * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
1156         c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
1157         c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
1158         code formatting conventions.
1160 2004-10-03  Richard Sandiford  <rsandifo@redhat.com>
1162         * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
1164 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
1166         PR tree-optimization/16632
1167         * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
1168         fold (A & C) == D into 0, fold ~C.  Similarly, for the case
1169         where | is used instead of &.
1171 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
1173         * ginclude/stddef.h: Fix a comment typo.
1175 2004-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1177         PR target/17443
1178         * config.gcc (i?86-*-solaris2*): Restore correct logic
1179         for --enable-threads option.
1180         (sparc64-*-solaris2*): Likewise.
1181         (sparc-*-solaris2*): Likewise.
1183 2004-10-03  Alan Modra  <amodra@bigpond.net.au>
1185         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
1186         (OS_MISSING_POWERPC64): Move, and comment.
1187         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
1188         (OS_MISSING_POWERPC64): Move, and comment.
1190 2004-10-02  Ian Lance Taylor  <ian@wasabisystems.com>
1192         * arm.c (output_call_mem): Add missing \t.
1194 2004-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1196         * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
1197         expand_builtin_strncmp): Delete duplicate code.
1199 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
1201         * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
1202         take check-base and -limit arguments.
1203         (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
1204         check ranges for ARRAY_REF and COMPONENT_REF.
1205         (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
1206         instrumentation.
1208 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
1210         * c-objc-common.c (c_tree_printer): Correct description of %E.
1211         Don't fall through after printing an expression.
1213 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
1215         * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
1217 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
1219         * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
1220         delete_unrechable_blocks() only when necessary.
1222 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
1224         * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
1225         (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
1226         (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
1227         __gthread_recursive_mutex_unlock): New functions.
1229 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
1231         * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
1232         * config/s390/tpf-eh.c: Remove file.
1233         * config/s390/tpf-unwind.h: New file.
1234         * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
1235         (MD_UNWIND_SUPPORT): Define.
1237 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
1239         * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
1241 2004-10-01  Ulrich Weigand  <uweigand@de.ibm.com>
1243         * config/s390/s390-protos.h (s390_comparison): Add prototype.
1244         * config/s390/s390.c (s390_comparison): New function.
1245         (s390_branch_condition_mask): Return -1 for invalid comparisons.
1246         (s390_branch_condition_mnemonic): Assert valid comparison.
1247         * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
1248         * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
1249         "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
1250         s390_comparison instead of comparison_operator.
1252         * config/s390/s390.md (UNSPEC_CMPINT): New constant.
1253         ("cmpmemdi"): Remove.
1254         ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
1255         ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
1256         ("cmpint_si"): Rename to ...
1257         ("*cmpint_si"): ... this.  Use UNSPEC_CMPINT.
1258         ("cmpint_di", "*cmpint_di"): Likewise.
1259         * config/s390/s390.c (s390_canonicalize_comparison): Remove
1260         redundant UNSPEC_CMPINT conversions.
1261         (s390_expand_cmpmem): Adapt to cmpint pattern changes.
1263 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
1265         * collect2.c (COLLECT_PARSE_FLAG): Remove.
1266         (main): Remove a reference to COLLECT_PARSE_FLAG
1267         * system.h: Poison COLLECT_PARSE_FLAG.
1268         * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
1270 2004-10-01  Paul Brook  <paul@codesourcery.com>
1272         * config/arm/crti.asm: Give _init and _fini function type.
1274 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
1276         * common.opt (ftree-loop-ivcanon): Enable by default.
1277         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
1278         Enable complete loop unrolling.
1279         (canonicalize_induction_variables, tree_unroll_loops_completely):
1280         Reset scev info.
1282 2004-10-01  Paul Brook  <paul@codesourcery.com>
1284         * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
1285         not register number.
1286         (thumb_find_work_register): Search full register range.
1288 2004-10-01  Andrew Pinski  <pinskia@physics.uc.edu>
1290         PR tree-opt/17343
1291         * tree-cfg.c (group_case_labels): Get the label and not
1292         the case expr for the default case.
1293         When the label we looking at is the default, decrement the
1294         new_size.
1296 2004-10-01  Jan Hubicka  <jh@suse.cz>
1298         * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
1299         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1300         * toplev.h (tree_rest_of_compilation): Update prototype.
1301         * tree-optimize.c (tree_rest_of_compilation):  Kill nested_p argument.
1303 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
1305         * tree-cfg.c (cleanup_tree_cfg): Pull a call to
1306         cleanup_control_flow() out of the while loop.
1308 2004-10-01  Paolo Bonzini  <bonzini@gnu.org>
1310         * tree-vectorizer.c (vectorizable_operation): Fail unless
1311         the mode for the vector type is indeed a vector mode.
1313 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
1315         * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
1316         chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
1317         of convert.
1318         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
1319         add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
1320         follow_ssa_edge_in_rhs): Ditto.
1321         * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
1322         (dump_iv): Dump base_object.
1323         (dump_use, dump_cand): Use dump_iv.
1324         (determine_base_object): New function.
1325         (alloc_iv): Initialize base_object field.
1326         (record_use): Clear the ssa_name field of iv.
1327         (get_computation_cost_at): Do not use difference of addresses of
1328         two different objects.
1329         (may_eliminate_iv): Do not require the loop to have just single exit.
1330         * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
1331         (nonzero_p): New function.
1332         (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
1333         tree_simplify_using_condition, simplify_using_initial_conditions,
1334         loop_niter_by_eval, find_loop_niter_by_eval,
1335         estimate_numbers_of_iterations_loop, compare_trees,
1336         upper_bound_in_type, lower_bound_in_type,
1337         can_count_iv_in_wider_type_bound): Use buildN instead of build.  Use
1338         fold_convert or build_int_cst_type instead of convert.  Use (non)zero_p
1339         instead of integer_(non)zerop.
1341 2004-10-01  Jakub Jelinek  <jakub@redhat.com>
1343         Revert
1344         2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1346         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
1347         and TI_VA_LIST_FPR_COUNTER_FIELD.
1348         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
1349         * tree-pass.h (pass_stdarg): Add.
1350         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
1351         * tree-stdarg.c: New file.
1352         * Makefile.in (OBJS-common): Add tree-stdarg.o.
1353         (tree-stdarg.o): Add dependencies.
1354         * function.h (struct function): Add va_list_gpr_size and
1355         va_list_fpr_size fields.
1356         * function.c (allocate_struct_function): Initialize them.
1358         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
1359         va_list_{g,f}pr_counter_field.
1360         (ix86_setup_incoming_varargs): Don't do anything if reg_save
1361         area will not be used.  Only save registers that tree-stdarg.c
1362         detected they need saving.
1363         (ix86_va_start): Don't set up fields that won't be used.
1365         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
1366         va_list_{g,f}pr_counter_field.
1367         (setup_incoming_varargs): Don't do anything if reg_save
1368         area will not be used.  Only save registers that tree-stdarg.c
1369         detected they need saving.
1370         (rs6000_va_start): Don't set up fields that won't be used.
1372 2004-09-30  Eric Christopher  <echristo@redhat.com>
1374         * dwarf2.h (dwarf_calling_convention): Add enum for renesas
1375         sh abi.
1376         * dwarf2out.c (add_calling_convention_attribute): New function.
1377         (gen_subroutine_type_die): Use.
1378         * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
1379         * target.h (gcc_target): Add dwarf_calling_convention.
1380         * hooks.c (hook_int_tree_0): New function.
1381         * hooks.h: Prototype.
1382         * config/sh/sh.c: Include dwarf2.h.
1383         (sh_dwarf_calling_convention): New function.
1384         (TARGET_DWARF_CALLING_CONVENTION): Use.
1385         * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
1387 2004-09-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1389         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
1390         expand_builtin_strrchr, expand_builtin_strpbrk,
1391         expand_builtin_strncat, expand_builtin_strspn,
1392         expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
1393         code.
1395 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
1397         * config/s390/s390-protos.h (s390_expand_logical_operator): Add
1398         prototype.
1399         (s390_logical_operator_ok_p): Likewise.
1400         * config/s390/s390.c (s390_expand_logical_operator): New function.
1401         (s390_logical_operator_ok_p): Likewise.
1402         * config/s390/s390.md ("anddi3"): New expander.
1403         ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
1404         ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
1405         ("andsi3"): Use s390_expand_logical_operator.
1406         ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
1407         ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
1408         ("andhi3"): New expander.
1409         ("*andhi3_zarch", "*andhi3_esa"): New patterns.
1410         ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
1411         ("andqi3"): New expander.
1412         ("*andqi3_zarch", "*andqi3_esa"): New patterns.
1413         ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
1414         ("iordi3"): New expander.
1415         ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
1416         ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
1417         ("iorsi3"): Use s390_expand_logical_operator.
1418         ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
1419         ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
1420         ("iorhi3"): New expiorer.
1421         ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
1422         ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
1423         ("iorqi3"): New expiorer.
1424         ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
1425         ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
1426         ("xordi3"): New expander.
1427         ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
1428         ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
1429         ("xorsi3"): New expander.
1430         ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
1431         ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
1432         ("xorhi3"): New expander.
1433         ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
1434         ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
1435         ("xorqi3"): New expander.
1436         ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
1437         ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
1439 2004-09-30  Roger Sayle  <roger@eyesopen.com>
1441         * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
1442         (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
1443         machine mode as the result.
1445 2004-09-30  Ben Elliston  <bje@au.ibm.com>
1447         PR bootstrap/17761
1448         * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
1449         FOR_EACH_EDGE macros.
1451 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
1453         * c-tree.h (readonly_error): Remove.
1454         * c-typeck (enum lvalue_use): New.
1455         (lvalue_or_else, readonly_error): Use it.  All callers changed.
1456         (readonly_error): Make static.
1458 2004-09-30  Jan Hubicka  <jh@suse.cz>
1460         PR debug/13974
1461         * cfgrtl.c (try_redirect_by_replacing_jump,
1462         force_nonfallthru_and_redirect, commit_one_edge_insertion,
1463         cfg_layout_merge_blocks):  Do not attach any line number information
1464         to newly inserted instructions.
1465         * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
1466         emit_insn_*_noloc.
1467         (emit_*insn_before, emit_insn*_after): New.
1468         (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
1469         existing locators.
1470         * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
1471         (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
1473 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
1475         * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
1476         (s390_return_address_offset): Remove.
1477         (s390_can_eliminate): Add prototype.
1478         (s390_initial_elimination_offset): Add prototype.
1479         * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
1480         (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
1481         * config/s390/s390.c (s390_arg_frame_offset): Remove.
1482         (s390_return_address_offset): Remove.
1483         (s390_can_eliminate, s390_initial_elimination_offset): New functions.
1484         (struct machine_function): New member split_branches_pending_p.
1485         (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
1486         (s390_mainpool_finish): Likewise.  Clear base_reg if pool empty.
1487         (s390_optimize_prologue): Remove base_used argument.  Call
1488         s390_update_frame_layout instead of s390_register_info.  Handle
1489         prologue/epilogue insns that touch only RETURN_REGNUM.
1490         (s390_reorg): Remove base_used.  Clear split_branches_pending_p.
1491         (s390_register_info): Remove base_used and return_addr_used
1492         arguments, compute special register usage inline.  Return live
1493         register data to caller.
1494         (s390_frame_info): Remove arguments, do not call s390_register_info.
1495         (s390_init_frame_layout): New function.
1496         (s390_update_frame_layout): Likewise.
1497         (s390_emit_prologue): Call s390_update_frame_layout; some code
1498         move to there.  Do not emit pool placeholder insn if unnecessary.
1500 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
1502         * config/s390/s390.c (legitimate_reload_constant_p): Remove
1503         floating point constant workaround.
1504         (s390_secondary_input_reload_class): Handle PLUS reloads
1505         with too-large constant.
1506         (s390_expand_plus_operand): Likewise.
1507         * config/s390/s390.md ("movdi"): Do not call force_const_mem.
1508         ("movsi"): Likewise.  Also, remove workaround for non-general
1509         operands.
1510         ("movdf"): Do not call force_const_mem.
1511         ("movsf"): Likewise.  Merge expander with *movsf insn.
1512         ("*movsf"): Remove, merge with movsf expander.
1514 2004-09-30  Paul Brook  <paul@codesourcery.com>
1516         * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
1517         (ENDFILE_SPEC): Define.
1518         * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
1520 2004-09-30  Richard Henderson  <rth@redhat.com>
1522         * config/alpha/qrnnd.asm: Mark for noexecstack.
1524 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
1526         * protoize.c, tree-cfg.c: Fix comment typos.
1528 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
1530         PR c/17730
1531         * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
1533 2004-09-30  Diego Novillo  <dnovillo@redhat.com>
1535         * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
1536         expressions...
1537         (add_pointed_to_expr): ... here.
1538         Call add_pointed_to_expr for variables with DECL_INITIAL set.
1539         * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
1540         pointer variable, if set.
1542 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
1544         * config/sh/sh.c: Follow spelling conventions.
1546 2004-09-29  Richard Henderson  <rth@redhat.com>
1548         * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
1549         * doc/tm.texi (DWARF_ZERO_REG): New.
1551         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
1552         alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
1553         * config/alpha/alpha.h (DWARF_ZERO_REG): New.
1555 2004-09-29  Ulrich Weigand  <uweigand@de.ibm.com>
1557         * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
1558         with a PLUS as source operand.
1559         (expand_movstr): Likewise.
1560         (expand_builtin_stpcpy): Likewise.
1562 2004-09-29  Richard Henderson  <rth@redhat.com>
1564         PR 17739
1565         * tree-gimple.c (is_gimple_reg): Reject hard registers.
1566         (is_gimple_asm_val): New.
1567         * tree-gimple.h (is_gimple_asm_val): Declare.
1568         * gimplify.c (gimplify_asm_expr): Use it.
1569         * tree-pretty-print.c (print_declaration): Dump hard regs.
1570         * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
1571         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
1572         * tree-ssa-pre.c (is_undefined_value): Likewise.
1573         * tree-ssa-copy.c (may_propagate_copy): Likewise.
1574         (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
1575         * tree-ssa.c (warn_uninit): Likewise.
1576         * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
1578 2004-09-29  Fariborz Jahanian <fjahanian@apple.com>
1580         * c-decl.c (merge_decls): Use comptype when comparing
1581         types to decide on DECL_SIZE save of olddecl.
1583 2004-09-29  Daniel Berlin  <dberlin@dberlin.org>
1585         * tree.h (INDIRECT_REF_P): New macro.
1586         * alias.c (get_alias_set): Use it
1587         (nonoverlapping_memrefs_p): Ditto.
1588         * emit-rtl.c (mem_expr_equal_p): Ditto.
1589         (set_mem_attributes_minus_bitpos): Ditto.
1590         (is_gimple_addressable): Ditto.
1591         (get_base_address): Ditto.
1592         * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
1593         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
1594         * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
1595         * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
1596         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
1597         (add_address_candidates): Ditto.
1598         (rewrite_address_base): Ditto.
1600 2004-09-30  Ben Elliston  <bje@au.ibm.com>
1602         * tree-flow.h (struct bb_ann_d): Remove num_preds member.
1603         * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
1604         (rewrite_ssa_into_ssa): Likewise.
1605         * tree-phinodes.c (create_phi_node): Access the number of
1606         predecessor edges using EDGE_COUNT() and not num_preds.
1608 2004-09-29  Joseph S. Myers  <jsm@polyomino.org.uk>
1610         PR c/7425
1611         * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
1613 2004-09-29  Eric Christopher  <echristo@redhat.com>
1615         * fold-const.c (tree_swap_operands_p): Remove duplicated code.
1617 2004-09-29  Hans-Peter Nilsson  <hp@axis.com>
1619         * config/cris/cris.md (moverside, movemside): With MEM, make sure
1620         the address is (plus reg mem).
1622 2004-09-29  David Edelsohn  <edelsohn@gnu.org>
1624         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
1626 2004-09-29  Nathan Sidwell  <nathan@codesourcery.com>
1628         * tree.c (make_node_stat): Fix uninitialized warning.  Replace
1629         cascaded if ... else if with a switch.
1631 2004-09-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1633         * read-rtl.c (apply_macro_to_string): Replace index with strchr.
1635 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1637         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
1638         and TI_VA_LIST_FPR_COUNTER_FIELD.
1639         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
1640         * tree-pass.h (pass_stdarg): Add.
1641         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
1642         * tree-stdarg.c: New file.
1643         * Makefile.in (OBJS-common): Add tree-stdarg.o.
1644         (tree-stdarg.o): Add dependencies.
1645         * function.h (struct function): Add va_list_gpr_size and
1646         va_list_fpr_size fields.
1647         * function.c (allocate_struct_function): Initialize them.
1649         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
1650         va_list_{g,f}pr_counter_field.
1651         (ix86_setup_incoming_varargs): Don't do anything if reg_save
1652         area will not be used.  Only save registers that tree-stdarg.c
1653         detected they need saving.
1654         (ix86_va_start): Don't set up fields that won't be used.
1656         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
1657         va_list_{g,f}pr_counter_field.
1658         (setup_incoming_varargs): Don't do anything if reg_save
1659         area will not be used.  Only save registers that tree-stdarg.c
1660         detected they need saving.
1661         (rs6000_va_start): Don't set up fields that won't be used.
1663 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1665         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
1666         BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
1667         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
1668         BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
1669         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
1670         ATTR_NONNULL_1_4): New.
1672 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1674         PR tree-optimization/17697
1675         * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
1676         cfg if needed.
1678 2004-09-28  Per Bothner  <per@bothner.com>
1680         * profile.c (branch_prob): Pass correct value to output_location,
1681         even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
1683 2004-09-28  Richard Henderson  <rth@redhat.com>
1685         PR 15089
1686         * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
1687         * tree-flow.h (may_propagate_copy_into_asm): Declare.
1688         * tree-ssa-ccp.c (replace_uses_in): Use it.
1689         * tree-ssa-dom.c (cprop_operand): Likewise.
1691 2004-09-28 Jeff Law  <law@redhat.com>
1693         * tree-ssa-threadupdate.c (create_block_for_threading):  Request
1694         that no outgoing edges be left in the duplicate block.  Do no
1695         update information on outgoing edges or PHI nodes in target
1696         blocks here.
1697         (remove_ctrl_stmt_and_useless_edges): Renamed from
1698         remove_last_stmt_and_useless_edges.  Handle case where the
1699         block is empty or has no control statements.  Do not update edge
1700         flags here.
1701         (thread_block): Create a template block rather than copying the
1702         original block every time.  Create outgoing edges from the
1703         duplicate blocks and update PHIs at the target of the outgoing
1704         edges here.  Fix edge flags for the original block if necessary.
1705         * cfghooks (duplicate_block): No longer assert that the original
1706         block has incoming edges.
1708 2004-09-29  Hans-Peter Nilsson  <hp@bitrange.com>
1710         * doc/extend.texi (Extended Asm): Add blurb about using Explicit
1711         Reg Vars to enforce register allocation with general constraints.
1712         (Explicit Reg Vars): Clarify relation to asm statements.
1713         (Local Reg Vars): Similar.
1715 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
1717         * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
1718         TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
1719         build_control_flow, new_edge): Remove.
1720         (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
1721         (bitlst, bitlst_table_last, bitlst_table): Remove.
1722         (bblst): Store basic_block pointer instead of block index.
1723         (bblst_table): Likewise.
1724         (edgelst): Store edge pointer instead of edge index.
1725         (edgelst_table, edgelst_last): New variables.
1726         (extract_bitlst): Rename to ...
1727         (extract_edgelst): ... this.  Return edge pointers, not indices.
1728         (split_edges): Update call.
1729         (rgn_edges): Store edge pointers instead of indices.
1730         (edge_to_bit): Remove.
1731         (EDGE_TO_BIT): Store per-region edge index in edge->aux.
1732         (SET_EDGE_TO_BIT): New macro.
1733         (is_cfg_nonregular): Check for simple cases of unreachable blocks.
1734         (find_rgns): Remove edge_list parameter.  Traverse standard CFG
1735         data structures instead of haifa_edge et al.  Use edge pointers
1736         instead of edge indices everywhere.
1737         (compute_dom_prob_ps): Use standard CFG data structures.  Account
1738         for exit edges.
1739         (compute_trg_info): Likewise.
1740         (propagate_deps): Likewise.
1741         (debug_candidate): Account for bblst data structure change.
1742         (check_live_1, update_live_1, is_pfree): Likewise.
1743         (IS_REACHABLE): Use standard CFG data structures.
1744         (init_ready_list): Update bblst_table/edgelst_table allocation.
1745         (schedule_region): Update alloc/cleanup code to data structure
1746         changes.  Use edge->aux to store per-region edge index.
1747         (init_regions): No longer call build_control_flow.  Do not
1748         create edge list any more.
1750 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
1752         * cse.c (cse_insn): Avoid creating direct non-local jumps.
1753         * combine.c (can_combine_p): Likewise.
1754         * local-alloc. (update_equiv_regs): Likewise.
1756 2004-09-28  Richard Henderson  <rth@redhat.com>
1758         PR 17531
1759         * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
1760         Don't check VOIDmode here.  Force PLUS operands to common type.
1761         (expand_expr_addr_expr): Do VOIDmode check earlier.  Force use of
1762         Pmode if given a non pointer type.
1764 2004-09-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1766         PR 17531
1767         * optabs.c (expand_binop): Force constants to the correct mode.
1769 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
1771         * config/s390/s390.c (s390_adjust_cost): Remove.
1772         (TARGET_SCHED_ADJUST_COST): Do not redefine.
1773         (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
1774         * config/s390/s390.md ("main_pool"): Use "larl" type
1775         attribute if TARGET_CPU_ZARCH.
1777 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
1779         * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
1780         variable.
1782 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
1784         * tree-ssa-loop.c (pass_record_bounds): Do not assign a
1785         name to the pass.
1787 2004-09-28  Steven Bosscher  <stevenb@suse.de>
1789         * common.opt (flag_gcse_sm): Disable by default.
1790         (flag_gcse_las): Likewise.
1791         (flag_web): Likewise.  Create from this file.
1792         * flags.h: Remove flag_web declaration.
1793         * toplev.c (flag_web): Likewise.
1794         (process_options): Never set flag_web.
1796 2004-09-28  Steven Bosscher  <stevenb@suse.de>
1798         * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
1799         * tree-ssa-propagate.c: Include vec.h.
1800         (interesting_ssa_edges, varying_ssa_edges): Make these VECs
1801         instead of varrays.
1802         (cfg_blocks_add): Assert the block is not already in the worklist.
1803         Update uses of interesting_ssa_edges and varying_ssa_edges.
1804         (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
1805         ssa_propagate): Likewise.
1807 2004-09-28  Joseph S. Myers  <jsm@polyomino.org.uk>
1809         PR c/16409
1810         * c-decl.c (start_decl): Check for initializing incomplete array
1811         of VLAs.
1812         (build_compound_literal): Check for TYPE being error_mark_node.
1813         * c-parse.in (primary): Check for VLA compound literals.
1815 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
1817         * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
1818         with --disable-checking.
1820 2004-09-28  Devang Patel  <dpatel@apple.com>
1822         * tree-pretty-print.c (dump_generic_node): Print vector types.
1824 2004-09-28  Nick Clifton  <nickc@redhat.com>
1826         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
1827         invocation of the function sh_init_cumulative_args.
1828         (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
1829         (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
1830         * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
1831         * config/sh/sh.c (sh_init_cumulative_args): New function based
1832         on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
1833         heuristic added to determine the setting of force_mem when a
1834         library function is being called.
1836 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
1838         * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
1839         Skip constant arguments.
1841 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
1843         * tree-ssa-alias.c (create_name_tags): If PTR points to a
1844         volatile type, mark the tag volatile.
1845         (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
1846         volatile.
1848 2004-09-28  Andrew Pinski  <pinskia@physics.uc.edu>
1850         * tree.def (vec_cond_expr): Fix. Change 'e'
1851         to tcc_expression.
1853 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
1855         * basic-block.h: Fix a comment typo.
1857 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
1859         * optabs.c, optabs.h: Fix comment typos.
1861 2004-09-28  Eric Botcazou  <ebotcazou@act-europe.fr>
1863         * config/sparc/sparc.md (call_address_struct_value_sp32):
1864         Properly mask the immediate field of the 'unimp' instruction.
1865         (call_symbolic_struct_value_sp32): Likewise.
1867 2004-09-28  Ben Elliston  <bje@au.ibm.com>
1868             Steven Bosscher  <stevenb@suse.de>
1869             Andrew Pinski  <pinskia@physics.uc.edu>
1871         Merge from edge-vector-branch:
1872         * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
1873         (struct edge_def): Remove pred_next, succ_next members.
1874         (struct basic_block_def): Remove pred, succ members.  Add preds
1875         and succs members of type VEC(edge).
1876         (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
1877         (BRANCH_EDGE): Likewise.
1878         (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
1879         (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
1880         (edge_iterator): New.
1881         (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
1882         (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
1883         (FOR_EACH_EDGE): New.
1884         * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
1885         where applicable.
1886         (rotate_loop): Likewise.
1887         (find_traces_1_route): Likewise.
1888         (bb_to_key): Likewise.
1889         (connect_traces): Likewise.
1890         (copy_bb_p): Likewise.
1891         (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
1892         (add_labels_and_missing_jumps): Likewise.
1893         (fix_up_fall_thru_edges): Likewise.
1894         (find_jump_block): Likewise.
1895         (fix_crossing_conditional_branches): Likewise.
1896         (fix_crossing_unconditional_branches): Likewise.
1897         (add_reg_crossing_jump_notes): Likewise.
1898         * bt-load.c (augment_live_range): Likewise.
1899         * cfg.c (clear_edges): Likewise.
1900         (unchecked_make_edge): Likewise.
1901         (cached_make_edge): Likewise.
1902         (make_single_succ_edge): Likewise.
1903         (remove_edge): Likewise.
1904         (redirect_edge_succ_nodup): Likewise.
1905         (check_bb_profile): Likewise.
1906         (dump_flow_info): Likewise.
1907         (alloc_aux_for_edges): Likewise.
1908         (clear_aux_for_edges): Likewise.
1909         (dump_cfg_bb_info): Likewise.
1910         * cfganal.c (forwarder_block_p): Likewise.
1911         (can_fallthru): Likewise.
1912         (could_fall_through): Likewise.
1913         (mark_dfs_back_edges): Likewise.
1914         (set_edge_can_fallthru_flag): Likewise.
1915         (find_unreachable_blocks): Likewise.
1916         (create_edge_list): Likewise.
1917         (verify_edge_list): Likewise.
1918         (add_noreturn_fake_exit_edges): Likewise.
1919         (connect_infinite_loops_to_exit): Likewise.
1920         (flow_reverse_top_sort_order_compute): Likewise.
1921         (flow_depth_first_order_compute): Likewise.
1922         (flow_preorder_transversal_compute): Likewise.
1923         (flow_dfs_compute_reverse_execute): Likewise.
1924         (dfs_enumerate_from): Likewise.
1925         (compute_dominance_frontiers_1): Likewise.
1926         * cfgbuild.c (make_edges): Likewise.
1927         (compute_outgoing_frequencies): Likewise.
1928         (find_many_sub_basic_blocks): Likewise.
1929         (find_sub_basic_blocks): Likewise.
1930         * cfgcleanup.c (try_simplify_condjump): Likewise.
1931         (thread_jump): Likewise.
1932         (try_forward_edges): Likewise.
1933         (merge_blocks_move): Likewise.
1934         (outgoing_edges_match): Likewise.
1935         (try_crossjump_to_edge): Likewise.
1936         (try_crossjump_bb): Likewise.
1937         (try_optimize_cfg): Likewise.
1938         (merge_seq_blocks): Likewise.
1939         * cfgexpand.c (expand_gimple_tailcall): Likewise.
1940         (expand_gimple_basic_block): Likewise.
1941         (construct_init_block): Likewise.
1942         (construct_exit_block): Likewise.
1943         * cfghooks.c (verify_flow_info): Likewise.
1944         (dump_bb): Likewise.
1945         (delete_basic_block): Likewise.
1946         (split_edge): Likewise.
1947         (merge_blocks): Likewise.
1948         (make_forwarder_block): Likewise.
1949         (tidy_fallthru_edges): Likewise.
1950         (can_duplicate_block_p): Likewise.
1951         (duplicate_block): Likewise.
1952         * cfglayout.c (fixup_reorder_chain): Likewise.
1953         (fixup_fallthru_exit_predecessor): Likewise.
1954         (can_copy_bbs_p): Likewise.
1955         (copy_bbs): Likewise.
1956         * cfgloop.c (flow_loops_cfg_dump): Likewise.
1957         (flow_loop_entry_edges_find): Likewise.
1958         (flow_loop_exit_edges_find): Likewise.
1959         (flow_loop_nodes_find): Likewise.
1960         (mark_single_exit_loops): Likewise.
1961         (flow_loop_pre_header_scan): Likewise.
1962         (flow_loop_pre_header_find): Likewise.
1963         (update_latch_info): Likewise.
1964         (canonicalize_loop_headers): Likewise.
1965         (flow_loops_find): Likewise.
1966         (get_loop_body_in_bfs_order): Likewise.
1967         (get_loop_exit_edges): Likewise.
1968         (num_loop_branches): Likewise.
1969         (verify_loop_structure): Likewise.
1970         (loop_latch_edge): Likewise.
1971         (loop_preheader_edge): Likewise.
1972         * cfgloopanal.c (mark_irreducible_loops): Likewise.
1973         (expected_loop_iterations): Likewise.
1974         * cfgloopmanip.c (remove_bbs): Likewise.
1975         (fix_bb_placement): Likewise.
1976         (fix_irreducible_loops): Likewise.
1977         (remove_path): Likewise.
1978         (scale_bbs_frequencies): Likewise.
1979         (loopify): Likewise.
1980         (unloop): Likewise.
1981         (fix_loop_placement): Likewise.
1982         (loop_delete_branch_edge): Likewise.
1983         (duplicate_loop_to_header_edge): Likewise.
1984         (mfb_keep_just): Likewise.
1985         (create_preheader): Likewise.
1986         (force_single_succ_latches): Likewise.
1987         (loop_split_edge_with): Likewise.
1988         (create_loop_notes): Likewise.
1989         * cfgrtl.c (rtl_split_block): Likewise.
1990         (rtl_merge_blocks): Likewise.
1991         (rtl_can_merge_blocks): Likewise.
1992         (try_redirect_by_replacing_jump): Likewise.
1993         (force_nonfallthru_and_redirect): Likewise.
1994         (rtl_tidy_fallthru_edge): Likewise.
1995         (commit_one_edge_insertion): Likewise.
1996         (commit_edge_insertions): Likewise.
1997         (commit_edge_insertions_watch_calls): Likewise.
1998         (rtl_verify_flow_info_1): Likewise.
1999         (rtl_verify_flow_info): Likewise.
2000         (purge_dead_edges): Likewise.
2001         (cfg_layout_redirect_edge_and_branch): Likewise.
2002         (cfg_layout_can_merge_blocks_p): Likewise.
2003         (rtl_flow_call_edges_add): Likewise.
2004         * cse.c (cse_cc_succs): Likewise.
2005         * df.c (hybrid_search): Likewise.
2006         * dominance.c (calc_dfs_tree_nonrec): Likewise.
2007         (calc_dfs_tree): Likewise.
2008         (calc_idoms): Likewise.
2009         (recount_dominator): Likewise.
2010         * domwalk.c (walk_dominator_tree): Likewise.
2011         * except.c (emit_to_new_bb_before): Likewise.
2012         (connect_post_landing_pads): Likewise.
2013         (sjlj_emit_function_enter): Likewise.
2014         (sjlj_emit_function_exit): Likewise.
2015         (finish_eh_generation): Likewise.
2016         * final.c (compute_alignments): Likewise.
2017         * flow.c (calculate_global_regs_live): Likewise.
2018         (initialize_uninitialized_subregs): Likewise.
2019         (init_propagate_block_info): Likewise.
2020         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2021         * gcse.c (find_implicit_sets): Likewise.
2022         (bypass_block): Likewise.
2023         (bypass_conditional_jumps): Likewise.
2024         (compute_pre_data): Likewise.
2025         (insert_insn_end_bb): Likewise.
2026         (insert_store): Likewise.
2027         (remove_reachable_equiv_notes): Likewise.
2028         * global.c (global_conflicts): Likewise.
2029         (calculate_reg_pav): Likewise.
2030         * graph.c (print_rtl_graph_with_bb): Likewise.
2031         * ifcvt.c (mark_loop_exit_edges): Likewise.
2032         (merge_if_block): Likewise.
2033         (find_if_header): Likewise.
2034         (block_jumps_and_fallthru_p): Likewise.
2035         (find_if_block): Likewise.
2036         (find_cond_trap): Likewise.
2037         (block_has_only_trap): Likewise.
2038         (find_if_case1): Likewise.
2039         (find_if_case_2): Likewise.
2040         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
2041         (perfect_nestify): Likewise.
2042         * lcm.c (compute_antinout_edge): Likewise.
2043         (compute_laterin): Likewise.
2044         (compute_available): Likewise.
2045         (compute_nearerout): Likewise.
2046         * loop-doloop.c (doloop_modify): Likewise.
2047         * loop-init.c (loop_optimizer_init): Likewise.
2048         * loop-invariant.c (find_exits): Likewise.
2049         * loop-iv.c (simplify_using_initial_values): Likewise.
2050         (check_simple_exit): Likewise.
2051         (find_simple_exit): Likewise.
2052         * loop-unroll.c (peel_loop_completely): Likewise.
2053         (unroll_loop_constant_iterations): Likewise.
2054         (unroll_loop_runtime_iterations): Likewise.
2055         * loop-unswitch.c (may_unswitch_on): Likewise.
2056         (unswitch_loop): Likewise.
2057         * modulo-sched.c (generate_prolog_epilog): Likewise.
2058         (sms_schedule): Likewise.
2059         * postreload-gcse.c (eliminate_partially_redundant_load):
2060         Likewise.
2061         * predict.c (can_predict_insn_p): Likewise.
2062         (set_even_probabilities): Likewise.
2063         (combine_predictions_for_bb): Likewise.
2064         (predict_loops): Likewise.
2065         (estimate_probability): Likewise.
2066         (tree_predict_by_opcode): Likewise.
2067         (tree_estimate_probability): Likewise.
2068         (last_basic_block_p): Likewise.
2069         (propagate_freq): Likewise.
2070         (estimate_loops_at_level): Likewise.
2071         (estimate_bb_frequencies): Likewise.
2072         * profile.c (instrument_edges): Likewise.
2073         (get_exec_counts): Likewise.
2074         (compute_branch_probabilities): Likewise.
2075         (branch_prob): Likewise.
2076         * ra-build.c (live_in): Likewise.
2077         * ra-rewrite.c (rewrite_program2): Likewise.
2078         * ra.c (reg_alloc): Likewise.
2079         * reg-stack.c (reg_to_stack): Likewise.
2080         (convert_regs_entry): Likewise.
2081         (compensate_edge): Likewise.
2082         (convert_regs_1): Likewise,
2083         (convert_regs_2): Likewise.
2084         (convert_regs): Likewise.
2085         * regrename.c (copyprop_hardreg_forward): Likewise.
2086         * reload1.c (fixup_abnormal_edges): Likewise.
2087         * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
2088         (sbitmap_insersection_of_preds): Likewise.
2089         (sbitmap_union_of_succs): Likewise.
2090         (sbitmap_union_of_preds): Likewise.
2091         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
2092         (fix_basic_block_boundaries): Likewise.
2093         (sched_ebbs): Likewise.
2094         * sched-rgn.c (build_control_flow): Likewise.
2095         (find_rgns): Likewise.
2096         * tracer.c (find_best_successor): Likewise.
2097         (find_best_predecessor): Likewise.
2098         (tail_duplicate): Likewise.
2099         * tree-cfg.c (make_edges): Likewise.
2100         (make_ctrl_stmt_edges): Likewise.
2101         (make_goto_expr_edges): Likewise.
2102         (tree_can_merge_blocks_p): Likewise.
2103         (tree_merge_blocks): Likewise.
2104         (cfg_remove_useless_stmts_bb): Likewise.
2105         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
2106         (tree_block_forwards_to): Likewise.
2107         (cleanup_control_expr_graph): Likewise.
2108         (find_taken_edge): Likewise.
2109         (dump_cfg_stats): Likewise.
2110         (tree_cfg2vcg): Likewise.
2111         (disband_implicit_edges): Likewise.
2112         (tree_find_edge_insert_loc): Likewise.
2113         (bsi_commit_edge_inserts): Likewise.
2114         (tree_split_edge): Likewise.
2115         (tree_verify_flow_info): Likewise.
2116         (tree_make_forwarder_block): Likewise.
2117         (tree_forwarder_block_p): Likewise.
2118         (thread_jumps): Likewise.
2119         (tree_try_redirect_by_replacing_jump): Likewise.
2120         (tree_split_block): Likewise.
2121         (add_phi_args_after_copy_bb): Likewise.
2122         (rewrite_to_new_ssa_names_bb): Likewise.
2123         (dump_function_to_file): Likewise.
2124         (print_pred_bbs): Likewise.
2125         (print_loop): Likewise.
2126         (tree_flow_call_edges_add): Likewise.
2127         (split_critical_edges): Likewise.
2128         (execute_warn_function_return): Likewise.
2129         (extract_true_false_edges_from_block): Likewise.
2130         * tree-if-conv.c (tree_if_conversion): Likewise.
2131         (if_convertable_bb_p): Likewise.
2132         (find_phi_replacement_condition): Likewise.
2133         (combine_blocks): Likewise.
2134         * tree-into-ssa.c (compute_global_livein): Likewise.
2135         (ssa_mark_phi_uses): Likewise.
2136         (ssa_rewrite_initialize_block): Likewise.
2137         (rewrite_add_phi_arguments): Likewise.
2138         (ssa_rewrite_phi_arguments): Likewise.
2139         (insert_phi_nodes_for): Likewise.
2140         (rewrite_into_ssa): Likewise.
2141         (rewrite_ssa_into_ssa): Likewise.
2142         * tree-mudflap.c (mf_build_check_statement_for): Likewise.
2143         * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
2144         (rewrite_trees): Likewise.
2145         * tree-pretty-print.c (dump_bb_header): Likewise.
2146         (dump_implicit_edges): Likewise.
2147         * tree-sra.c (insert_edge_copies): Likewise.
2148         (find_obviously_necessary_stmts): Likewise.
2149         (remove_data_stmt): Likewise.
2150         * tree-ssa-dom.c (thread_across_edge): Likewise.
2151         (dom_opt_finalize_block): Likewise.
2152         (single_incoming_edge_ignoring_loop_edges): Likewise.
2153         (record_equivalences_from_incoming_edges): Likewise.
2154         (cprop_into_successor_phis): Likewise.
2155         * tree-ssa-live.c (live_worklist): Likewise.
2156         (calculate_live_on_entry): Likewise.
2157         (calculate_live_on_exit): Likewise.
2158         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
2159         (copy_loop_headers): Likewise.
2160         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2161         (fill_always_executed_in): Likewise.
2162         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
2163         * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
2164         (compute_phi_arg_on_exit): Likewise.
2165         * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
2166         (get_loops_exit): Likewise.
2167         (split_loop_exit_edge): Likewise.
2168         (ip_normal_pos): Likewise.
2169         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
2170         Likewise.
2171         * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
2172         (replace_phi_with_stmt): Likewise.
2173         (value_replacement): Likewise.
2174         * tree-ssa-pre.c (compute_antic_aux): Likewise.
2175         (insert_aux): Likewise.
2176         (init_pre): Likewise.
2177         * tree-ssa-propagate.c (simulate_stmt): Likewise.
2178         (simulate_block): Likewise.
2179         (ssa_prop_init): Likewise.
2180         * tree-ssa-threadupdate.c (thread_block): Likewise.
2181         (create_block_for_threading): Likewise.
2182         (remove_last_stmt_and_useless_edges): Likewise.
2183         * tree-ssa.c (verify_phi_args): Likewise.
2184         (verify_ssa): Likewise.
2185         * tree_tailcall.c (independent_of_stmt_p): Likewise.
2186         (find_tail_calls): Likewise.
2187         (eliminate_tail_call): Likewise.
2188         (tree_optimize_tail_calls_1): Likewise.
2189         * tree-vectorizer.c (vect_transform_loop): Likewise.
2190         * var-tracking.c (prologue_stack_adjust): Likewise.
2191         (vt_stack_adjustments): Likewise.
2192         (vt_find_locations): Likewise.
2193         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2194         * config/i386/i386.c (ix86_pad_returns): Likewise.
2195         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2196         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2198 2004-09-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
2200         PR target/16532
2201         * config/sparc/sparc.c (struct machine_function): New field
2202         'leaf_function_p' and 'prologue_data_valid_p'.
2203         (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
2204         to conveniently access the above fields.
2205         (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
2206         (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
2207         of the generic flavor 'current_function_uses_only_leaf_regs'.
2208         (eligible_for_sibcall_delay): Likewise.
2209         (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
2210         'sparc_prologue_data_valid_p'.  Use 'sparc_leaf_function_p'.
2211         (sparc_asm_function_prologue): Add sanity check for the assumption
2212         made in 'sparc_expand_prologue'.  Use 'sparc_leaf_function_p'.
2213         (sparc_can_use_return_insn_p): New function.
2214         (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
2215         (output_restore): Likewise.
2216         (output_sibcall): Likewise.
2217         (sparc_output_mi_thunk): Likewise.
2218         * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
2219         * config/sparc/sparc.md (return): New expander.
2221         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
2223 2004-09-27  Mark Mitchell  <mark@codesourcery.com>
2225         PR c++/17642
2226         * stor-layout.c (layout_decl): Use fold_convert, not convert.
2227         (bit_from_pos): Likewise.
2228         (byte_from_pos): Likewise.
2229         (pos_from_bit): Likewise.
2230         (normalize_offset): Likewise.
2231         (place_field): Likewise.
2232         (finalize_type_size): Likewise.
2233         (layout_type): Likewise.
2234         * tree.c (build_index_type): Likewise.
2236 2004-09-27  Devang Patel  <dpatel@apple.com>
2238         * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
2239         * genopinit.c (optabs): New entry for vcond_gen_code and
2240         vcondu_gen_code.
2241         * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
2242         (get_rtx_code): New function.
2243         (vector_compare_rtx): New function.
2244         (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
2245         (expand_vec_cond_expr_p): New function.
2246         (expand_vec_cond_expr): New function.
2247         (get_vcond_icode): New function.
2248         * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
2249         (vcond_gen_code, vcondu_gen_code): Same.
2251 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
2253         * Makefile.in (STAGESTUFF): Split into ...
2254         (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
2255         (mostlyclean): Update.
2256         (stage1-start, stage2-start, stage3-start, stage4-start,
2257         stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
2258         Move the STAGEMOVESTUFF.
2260 2004-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2262         * system.h (getpagesize): Return 'int' instead of 'long'.
2264 2004-09-27  Michael Matz <matz@suse.de>
2266         PR bootstrap/17698
2267         PR bootstrap/17702
2268         * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
2269         bmp_iter_and_init): Shift by bit_in_word.
2271 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
2273         * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
2274         * configure.ac: Don't sinclude it here.
2275         * configure: Regenerate.
2277 2004-09-27  Dorit Naishlos  <dorit@il.ibm.com>
2279         * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
2280         Handle AND pattern
2282 2004-09-27  Joseph S. Myers  <jsm@polyomino.org.uk>
2284         PR c/13804
2285         * c-typeck.c (build_component_ref): Name type involved in
2286         diagnostic for structure or union without a member of the given
2287         name.
2289 2004-09-27  DJ Delorie  <dj@redhat.com>
2291         * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
2292         .comm alignment is bytes, not bits.
2294 2004-09-27  Devang Patel  <dpatel@apple.com>
2296         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
2297         (print_call_name): Do not print VEC_COND_EXPR.
2299 2004-09-27  Devang Patel  <dpatel@apple.com>
2301         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
2303 2004-09-27  Jan Hubicka  <jh@suse.cz>
2305         * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
2307 2004-09-27  Kazu Hirata  <kazu@cs.umass.edu>
2309         * bitmap.h: Fix a comment typo.
2311 2004-09-27  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2313         * libgcc2.c (getpagesize): Change type of return value to int.
2315 2004-09-26  Matt Austern  <austern@apple.com>
2317         * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
2318         using mmap.
2320 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2322         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
2323         EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
2324         (bitmap_iterator): New type.
2325         (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
2326         bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
2327         bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
2328         bmp_iter_and_init, bmp_iter_and_next): New functions.
2329         * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
2330         EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
2331         use iterator-style EXECUTE_IF_IN_BITMAP macros.
2332         * bitmap.c (bitmap_print): Ditto.
2333         * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
2334         btr_def_live_range): Ditto.
2335         * cfganal.c (compute_dominance_frontiers_1) Ditto.
2336         * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
2337         Ditto.
2338         * ddg.c (build_inter_loop_deps): Ditto.
2339         * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
2340         Ditto.
2341         * except.c (remove_eh_handler): Ditto.
2342         * flow.c (reg_set_to_hard_reg_set): Ditto.
2343         * gcse.c (clear_modify_mem_tables): Ditto.
2344         * global.c (build_insn_chain): Ditto.
2345         * ifcvt.c (dead_or_predicable): Ditto.
2346         * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
2347         Ditto.
2348         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
2349         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
2350         detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
2351         * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
2352         tree_purge_all_dead_eh_edges): Ditto.
2353         * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
2354         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
2355         rewrite_ssa_into_ssa): Ditto.
2356         * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
2357         * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
2358         Ditto.
2359         * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
2360         compute_flow_sensitive_aliasing, maybe_create_global_var,
2361         dump_points_to_info_for): Ditto.
2362         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
2363         * tree-ssa-dse.c (dse_finalize_block): Ditto.
2364         * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
2365         calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
2366         Ditto.
2367         * tree-ssa-loop-ivopts.c (find_induction_variables,
2368         find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
2369         determine_use_iv_costs, determine_set_costs, find_best_candidate,
2370         set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
2371         Ditto.
2372         * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
2373         * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
2374         add_call_read_ops): Ditto.
2375         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
2377 2004-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2379         * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
2380         UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
2382 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
2384         * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
2385         reflect size of memory regions being compared.
2387 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
2389         * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
2390         expressions.  Always clear MEM_SIZE and alias set.
2392 2004-09-26  Roger Sayle  <roger@eyesopen.com>
2393             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2395         PR middle-end/17112
2396         * stor-layout.c (compute_record_mode): For records with a single
2397         field, only use the field's mode if its size matches what we'd
2398         have choosen for the record ourselves.  This forces the use of
2399         BLKmode for packed records that don't completely fill a mode.
2401 2004-09-26  Roger Sayle  <roger@eyesopen.com>
2403         PR middle-end/17151
2404         * combine.c (force_to_mode): Remove dubious early return test that
2405         inhibits further optimization.
2407 2004-09-26  Kazu Hirata  <kazu@cs.umass.edu>
2409         * profile.c: Fix a comment typo.
2411 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2413         PR bootstrap/17591
2414         * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
2415         with varying offset.
2416         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
2417         (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
2418         ARRAY_REFS.
2419         (expr_invariant_in_loop_p): New function.
2420         (idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
2421         component_ref_field_offset for COMPONENT_REFs.  Do not allow
2422         ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
2423         (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
2424         MISALIGNED_INDIRECT_REFs.
2425         (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
2426         (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
2427         MISALIGNED_INDIRECT_REFs.
2429 2004-09-26  Joseph S. Myers  <jsm@polyomino.org.uk>
2431         PR c/11459
2432         * gcc.c (cpp_options, cc1_options): Preserve relative order of
2433         -std and -ansi options.
2435 2004-09-26  Jan Hubicka  <jh@suse.cz>
2437         * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
2438         for nested functions whose proper parent has not been output.
2440         * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
2441         when re-constructing profile previously invalidated by loop.
2443 2004-09-25  Dale Johannesen  <dalej@apple.com>
2445         * tree-gimple.c:  Move GIMPLE definition...
2446         * doc/tree-ssa.texi:  here.
2448 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2450         * tree-vectorizer.c: Fix a comment typo.
2452 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2454         * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
2455         gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
2456         lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
2457         tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
2459 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2461         * tree-ssa-loop-unswitch.c: Fix a comment typo.
2463 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2465         * doc/passes.texi: Fix a typo.
2467 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2469         * tree-optimize.c (init_tree_optimization_passes): Add
2470         pass_record_bounds.
2471         * tree-pass.h (pass_record_bounds): Declare.
2472         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
2473         New pass.
2475 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2477         PR tree-optimization/17474
2478         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
2479         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
2481 2004-09-25  Jan Hubicka  <jh@suse.cz>
2483         * predict.c (counts_to_freqs): Make global.
2484         * predict.h (counts_to_freqa): Declare.
2485         * profile.c (compute_branch_probabilities): Compute frequencies
2486         * tree-profile.c (do_tree_profiling): Refine conditional on when
2487         tree profiling pass is needed.
2489         * passes.c (rest_of_handle_cfg): Disable const/pure function
2490         detection when doing tree based profiling.
2492         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
2493         conditional.
2495 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
2497         * config/mips/mips.h (struct mips_args): Clarify comments.
2498         * config/mips/mips.c (struct mips_arg_info): Likewise.
2499         (mips_arg_info): Don't allow fpr_p to affect the register or
2500         stack alignment.  Remove o64 silliness.
2501         (function_arg): Deal with the o32 float,float case specially.
2503 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
2505         * config/mips/mips.md (loadx, storex): Define for V2SF.
2507 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2509         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
2510         * config/s390/s390.c (s390_back_chain_rtx): New function.
2511         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
2512         Call anti_adjust_stack.
2513         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
2514         only if compiling with back chain.
2515         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
2516         back chain only if back chain enabled.  Use s390_back_chain_rtx.
2518 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
2520         * doc/trouble.texi: Remove obsolete information.  Update
2521         information on how to regenerate fixincluded headers.
2523 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
2525         PR c/12951
2526         * doc/invoke.texi: Document that
2527         -Wno-error-implicit-function-declaration is not accepted.
2529 2004-09-24  Richard Henderson  <rth@redhat.com>
2531         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
2532         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
2533         on TARGET_MAX.
2534         (alpha_expand_mov): Allow unaligned vectors.
2535         (alpha_expand_unaligned_store): Use CONST0_RTX.
2536         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
2538 2004-09-24 Jeff Law  <law@redhat.com>
2540         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
2541         aliasing rules.
2542         (simplify_cond_and_lookup_avail_expr): Likewise.
2544 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2546         PR c/12802
2547         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
2548         title.  Document interaction with -fms-extensions.
2549         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
2550         section.
2552 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2554         PR c/12713
2555         * doc/extend.texi: Document interaction of attribute noreturn and
2556         longjmp.
2558 2004-09-24  Richard Henderson  <rth@redhat.com>
2560         PR rtl-opt/17503
2561         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
2562         (som_hash, som_eq): New.
2563         (init_subregs_of_mode, record_subregs_of_mode): New.
2564         (cannot_change_mode_set_regs): Rewrite for htab implementation.
2565         (invalid_mode_change_p): Likewise.
2566         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
2567         * flow.c (mark_used_regs): Likewise.
2568         (life_analysis): Use init_subregs_of_mode.
2569         * regs.h (subregs_of_mode): Remove.
2570         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
2572 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
2574         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
2575         type with the copy of the conditional.
2577 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
2579         PR tree-opt/16954
2580         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
2581         Prevent renaming if the aliasing sets of the type which the
2582         pointer points to are different.
2584 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2586         PR c/17188
2587         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
2588         declarations of enumerators.
2589         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
2590         for redefinition.  Check for nested redefinition.
2591         (finish_struct): Don't check for nested redefinition.
2592         (start_enum): Check for nested redefinition.
2594 2004-09-24  Devang Patel  <dpatel@apple.com>
2596         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
2597         only when necesssary.
2598         (combine_blocks): Combine loop header and exit block.
2600 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
2602         * hooks.c (hook_tree_tree_bool_null): New.
2603         * hooks.h (hook_tree_tree_bool_null): Declare it.
2604         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
2605         * targhooks.c (default_fold_builtin): Remove.
2606         * targhooks.h (default_fold_builtin): Remove.
2608 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2610         PR rtl-optimization/17625
2611         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
2613 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
2615         PR tree-opt/17624
2616         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
2617         Reject if any of the operands occur in an abnormal PHI.
2619 2004-09-24  Andreas Schwab  <schwab@suse.de>
2621         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
2622         rules.
2624 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2626         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
2627         if the GNU assembler is used.
2628         (sparc-*-solaris2*): Likewise.
2629         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
2630         (dbxout_function_end): Protect N_ENSYM with it.
2631         (dbxout_begin_prologue): Protect N_BNSYM with it.
2632         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
2633         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
2634         * config/sparc/sol2-gas.h: New file.
2636 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
2638         PR bootstrap/17369
2639         * Makefile.in (@set_gcc_lib_path@): Added.
2641         * configure.ac: Include ../config/gcc-lib-path.m4. Use
2642         TL_AC_GNU_MAKE_GCC_LIB_PATH.
2643         * configure: Regenerated.
2645 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2647         PR c/6980
2648         * c-typeck.c (build_c_cast): Improve wording of
2649         -Wbad-function-cast diagnostic.
2651 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
2653         PR target/17626
2654         * config/cris/cris.md (moverside, movemside): Rename variable
2655         "reg" to "otherop".  To generate canonical RTX, check that otherop
2656         isn't constant instead of checking that operand 1 is a register.
2658 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
2660         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
2662 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
2663             Jakub Jelinek  <jakub@redhat.com>
2665         * tree-flow.h (find_new_referenced_vars): Add prototype.
2666         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
2667         Move to...
2668         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
2669         ... here.
2670         (mark_new_vars_to_rename): Walk through all operands.
2671         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
2672         (execute_fold_all_builtins): Use it.
2673         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
2675 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
2677         * gthr-tpf.h: New file.
2678         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
2679         * gthr.h: Use gthr-tpf.h on TPF OS.
2681 2004-09-23 Jeff Law  <law@redhat.com>
2683         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
2684         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
2685         (substitute_and_fold):  Likewise.
2686         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
2687         except invariants from SSA_NAME_VALUE.
2688         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
2689         and SET_SSA_NAME_EQUIV.
2690         (restore_vars_to_original_value, record_const_or_copy): Likewise.
2691         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
2692         (record_equality, cprop_into_successor_phis): Likewise.
2693         (record_equivalences_from_stmt, cprop_operand): Likewise.
2694         (lookup_avail_expr): Likewise.
2695         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
2696         from SSA_NAME_VALUE.
2697         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
2698         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
2699         annotation from the VALUE_HANDLE field.
2701 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
2703         PR c++/13989
2704         PR c++/9844
2705         * tree.c (reconstruct_complex_type): Remove extra "this".
2706         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
2707         Add V4SFmode to case statement.
2709 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
2711         PR c/16833
2712         * doc/extend.texi, doc/invoke.texi: Document interaction of
2713         -fno-builtin with format checks.  Note that built-in functions
2714         have effects beyond generating code that avoids calls to those
2715         functions.
2717 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
2719         PR tree-optimization/17533
2720         * dominance.c (verify_dominators): Tolerate even more incorrect
2721         dominance data during error message printing.
2722         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
2723         and edges more correctly.
2725 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
2727         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
2728         New tree-codes.
2729         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
2730         MISALIGNED_INDIRECT_REF.
2731         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
2732         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
2733         Likewise.
2734         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
2735         (find_interesting_uses_address): Likewise.
2736         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
2737         (build_fold_addr_expr_with_type): Likewise.
2738         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
2739         * print-rtl.c (print_mem_expr): Likewise.
2740         * tree-dump.c (dequeue_and_dump): Likewise.
2741         * tree-eh.c (tree_could_trap_p): Likewise.
2742         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
2743         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
2744         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
2745         Likewise.
2746         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2747         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
2748         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
2749         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
2750         (add_address_candidates, rewrite_address_base): Likewise.
2751         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
2752         Likewise.
2753         * tree.c (staticp, build1_stat): Likewise.
2755         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
2756         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
2757         * tree-ssa-operands.c (get_expr_operands): Likewise.
2758         * expr.c (expand_expr_real_1): Likewise.
2760         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
2761         optabs.
2762         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
2763         for the new optabs.
2764         (expand_ternary_op): New function.
2765         * genopinit.c (optabs): Handle the new optabs.
2766         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
2767         (init_optabs): Initialize vec_realign_load_optab.
2768         (expand_ternary_op): New functions.
2770         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
2771         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
2772         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
2773         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
2774         * target.h (struct vectorize): New member for struct gcc_target.
2775         (misaligned_mem_ok): New member for targetm.vectorize.
2776         (builtin_mask_for_load): Likewise.
2777         (builtin_mask_for_store): Likewise.
2778         * targethooks.c (default_vect_misaligned_mem_ok): New function.
2779         * targethooks.h (default_vect_misaligned_mem_ok): New function.
2781         * config/rs6000/altivec.md (build_vector_mask_for_load): New
2782         define_expand.
2783         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
2784         (vec_realign_load_v16qi): New define_insn.
2785         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
2786         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
2787         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
2788         (altivec_builtin_mask_for_store): New variables.
2789         (rs6000_builtin_mask_for_load): New function. Implements
2790         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
2791         (rs6000_builtin_mask_for_store): New function. Implements
2792         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
2793         (rs6000_expand_builtin): Expand the target builtins
2794         builtin_mask_for_load and builtin_mask_for_store.
2795         (altivec_init_builtins): Initialize the new target builtins.
2796         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
2797         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
2799         * tree-vectorizer.c (vect_create_data_ref): Renamed to
2800         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
2801         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
2802         (vectorizable_store): Call vect_create_data_ref_ptr with additional
2803         arguments, and create an indirect_ref with its return value data_ref.
2804         Check aligned_access_p.
2805         (vectorizable_load): Handle misaligned loads, using software-pipelined
2806         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
2807         vec_realign_load_optab is supported, or using a scheme without
2808         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
2809         misaligned_mem_ok is supported.
2811         (vect_finish_stmt_generation): Typo.
2812         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
2813         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
2814         presence of misaligned loads.
2815         (vect_analyze_data_ref_access): Add check for constant init.
2816         (vect_get_symbl_and_dr): Remove duplicate line.
2817         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
2819 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
2821         * builtins.c: Fix a comment typo.
2823 2004-09-23  Jan Hubicka  <jh@suse.cz>
2825         * profile.c (branch_prob): Do not verify flow info in the middle of the
2826         pass.
2828 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2830         * cfgloop.h (update_single_exits_after_duplication): Declare.
2831         (loopify, split_loop_bb): Declaration changed.
2832         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
2833         of rtx.
2834         (loopify): Added redirect_all_edges argument.
2835         (update_single_exits_after_duplication): Export.
2836         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
2837         * tree-flow.h (tree_duplicate_loop_to_header_edge,
2838         tree_ssa_loop_version): Declare.
2839         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
2840         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
2841         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
2842         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
2844         * tree-ssa-loop-unswitch.c: New file.
2845         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
2846         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
2847         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
2848         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
2849         * tree-pass.h (pass_unswitch): Declare.
2850         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
2851         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
2852         * doc/passes.texi: Documen tree level loop unswitching.
2854 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
2856         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
2858 2004-09-22  Eric Christopher  <echristo@redhat.com>
2860         * builtins.c (simplify_builtin_va_start): Remove.
2861         (simplify_builtin): Ditto.
2862         (fold_builtin_strchr): Ditto.
2863         (simplify_builtin_*): Rename remainders to fold_builtin_*.
2864         (expand_builtin): Fix up for above changes.
2865         (fold_builtin_1): Add new folders. Change for above.
2866         (expand_builtin_va_start): Call fold_builtin_next_arg.
2867         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
2868         * tree.h: Remove prototype for simplify_builtin.
2870 2004-09-23  Jan Hubicka  <jh@suse.cz>
2872         PR debug/17389
2873         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
2874         of fully inlined functions.
2875         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
2876         inlined.
2878         * cfgexpand.c (add_reg_br_prob_note): New function.
2879         (expand_gimple_cond_expr): Use it.
2880         (tree_expand_cfg): No longer kill the profile.
2881         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
2882         only if it is present.
2883         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
2884         * predict.c (combine_predictions_for_insn): Set the probabilities
2885         based on REG_BR_PROB note if present.
2886         * predict.c (branch_prob): Profile is read only with
2887         flag_branch_probabilities.
2889 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
2891         * aclocal.m4: Add in gettext's m4 includes.
2892         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
2893         * configure.ac: Add in check for iconv.h
2894         * configure: Regenerate.
2896 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
2898         * aclocal.m4: Update for rename of gettext-sister.m4.
2900 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
2902         Fix PR tree-optimization/17587
2903         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
2904         (insert_aux): Instead of here.
2906 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
2908         PR tree-optimization/16721
2909         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
2910         * tree-ssa-alias.c (create_memory_tag): Move setting of
2911         TREE_THIS_VOLATILE ...
2912         (get_tmt_for): ... here.
2914 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2916         * config/sparc/sparc.md (cmove splitter): Fix formatting.
2917         (conditional_trap expander): Reject inappropriate CCmodes.
2918         (conditional trap insn): Use V9 syntax if possible.
2920 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
2922         PR c/16566
2923         * c-typeck.c (build_component_ref): Don't special-case
2924         COMPOUND_EXPR.
2926 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
2928         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
2929         returns NULL.
2931 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
2933         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
2934         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
2935         TRUTH_XOR_EXPR): Mention the restriction on types.
2937 2004-09-22  Matt Austern  <austern@apple.com>
2939         * config/darwin.c (darwin_make_decl_one_only):
2940         Allow coalesced symbol to appear in static archive's table of contents
2942 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
2944         PR tree-optimization/17512
2945         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
2946         special cases.
2948 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
2950         * dbxout.c (get_lang_number): Do not define if
2951         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
2953 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
2955         PR target/15583
2956         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
2957         builtin_define ("__USE_INIT_FINI__").
2959 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
2961         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
2962         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
2963         * config/s390/s390.h (TARGET_TPF): New macro.
2964         * config/s390/s390.md ("eh_return"): New expander.
2965         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
2966         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
2967         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
2968         * config/s390/tpf.h (TARGET_TPF): Define to 1.
2969         (STACK_POINTER_OFFSET): Increase to 448.
2970         (TARGET_DEFAULT): Set -mtpf-trace on as default.
2971         (TPF_LOC_DIFF_OFFSET): New macro.
2972         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
2973         encoding.
2974         (__isPATrange): Add prototype.
2975         (MD_FALLBACK_FRAME_STATE_FOR): Define.
2976         * config/s390/tpf-eh.c: New file.
2978 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
2980         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
2981         operands in an integer comparison.
2982         * tree-cfg.c (find_taken_edge): Call fold() to determine
2983         whether the predicate is known.
2985 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
2987         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
2988         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
2989         Create build and doc directories along with the language directories.
2990         Don't create doc directory separately.
2991         * configure: Regenerate.
2992         * Makefile.in: Create all object and executables files built
2993         with the build compiler in a build/ directory.
2994         (genobjnames): Add missing build objects.
2995         (STAGESTUFF): Don't stage the gen* programs.
2996         (ggc-none.o): Define dependencies for the target compiler.
2997         (build-print-rtl.o): Rename to build/print-rtl.o.
2998         (build-errors.o): Rename to build/errors.o.
2999         (build-varray.o): Rename to build/varray.o.
3000         (maintainerclean): Delete the contents of the build directory.
3001         ($(genobjs): %.o): Explicitly use -o.
3002         (build/insn-conditions.o): Delete specfic rule to use generic rule.
3003         (build/gengtype-lex.o): Likewise.
3004         (build/gengtype-yacc.o): Likewise.
3005         (build/gcov-iov.o): Likewise.
3007 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
3009         * vec.h (VEC_space): Return true if there _is_ space.
3010         (VEC_reserve): Adjust.
3012 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
3014         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
3015         use FPRs for scalar, complex and vector types only.
3017 2004-09-21 Jeff Law  <law@redhat.com>
3019         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
3020         the opt_stats_d structure.
3021         (vrp_data): Change from a varray into a hash table.
3022         (vrp_hash_elt): New structure for elements in the vrp hash table.
3023         (vrp_hash, vrp_eq):New functions for hashing and testing equality
3024         in the vrp hash table.
3025         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
3026         initialization slightly to make it easier to read.  No longer need
3027         to grow/clear the varray.  Instead empty and delete the hash table.
3028         (dom_opt_finalize_block): Update due to change of VRP_DATA from
3029         a varray to a hash table.
3030         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
3032         * tree-ssa-ccp.c (get_default_value): If we have a constant
3033         value recorded for an SSA_NAME, then use that constant as
3034         the initial lattice value.
3035         (substitute_and_fold): Transfer equivalences discovered into
3036         SSA_NAME_EQUIV.
3038         * tree.h (SSA_NAME_EQUIV): Add comments.
3039         (SET_SSA_NAME_EQUIV): Similarly.
3041 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
3043         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
3045         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
3047 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
3049         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
3050         (finish_decl): Likewise.
3052 2004-09-21  Devang Patel  <dpatel@apple.com>
3054         * tree.def (VEC_COND_EXPR): New tree node.
3055         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
3057 2004-09-21  Stan Shebs  <shebs@apple.com>
3059         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
3060         * config/rs6000/darwin-world.asm: Likewise.
3062 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
3064         * tree-ssa.c (verify_def): Use print_generic_stmt,
3065         not debug_generic_stmt.
3066         (verify_use): Ditto.
3067         (verify_phi_args): Ditto.
3068         (verify_ssa): Ditto.
3070 2004-09-21  Paul Brook  <paul@codesourcery.com>
3072         * varasm.c (default_assemble_integer): Return false for values wider
3073         than the target word size.  Works around GAS bug.
3075 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
3077         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
3078         gets value 0.
3079         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
3080         if it has value 0.
3082 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
3084         * c-typeck.c (build_function_call): Give name of object
3085         we are attempting to call in error message.
3086         * c-objc-common.c (c_tree_printer): Call pp_expression,
3087         not return false, for 'E' case.
3089 2004-09-21  Steven Bosscher  <stevenb@suse.de>
3091         PR rtl-optimization/17482
3092         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
3093         load_killed_in_block_p): Clarify comments.
3094         (record_last_reg_set_info): Make static inline.
3095         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
3096         (record_opr_changes): New function to replace the above.
3097         (compute_hash_table): Clarify comments.  Use record_opr_changes.
3098         (reg_set_between_after_reload_p): Clean up.
3099         (reg_used_between_after_reload_p): Likewise.
3100         (eliminate_partially_redundant_load): Clarify comments.
3102 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3104         PR rtl-optimization/17266
3105         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
3107 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
3109         PR rtl-optimization/14851
3110         * rtlanal.c (commutative_operand_precedence): Calculate
3111         precedence of stripped constant.
3113 2004-09-20 Jeff Law  <law@redhat.com>
3114            Jan Hubicka  <jh@suse.cz>
3116         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
3117         initialize key elements here.
3118         (release_ssa_name): Zero the released SSA_NAME here.
3119         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
3120         (struct tree_ssa_name): Add new "equiv" field.
3121         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
3122         (tree_ssa_dominator_optimize): No longer allocate, resize or
3123         clear CONST_AND_COPIES.
3124         (get_value_for, set_value_for): Kill.
3125         (thread_across_edge): Get/set the equivalency using
3126         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
3127         (restore_vars_to_original_value): Likewise.
3128         (record_equivalences_from_phis): Likewise.
3129         (record_dominating_conditions): Likewise.
3130         (record_const_or_copy, record_equality): Likewise.
3131         (lookup_avail_expr): Likewise.
3132         (record_equivalences_from_stmt, cprop_operand): Likewise.
3133         (cprop_into_successor_phis): No longer need to pass around
3134         CONST_AND_COPIES.  Callers updated. Get equivalences via
3135         SSA_NAME_EQUIV.
3136         (cprop_into_phis): Likewise.
3138 2004-09-20  Matt Austern <austern@apple.com>
3139             Zack Weinberg  <zack@codesourcery.com>
3141         * c-common.c (fix_string_type): Build the unqualified array
3142         type unconditionally, then use c_build_qualified_type to get
3143         the proper const-qualified variant, and set its
3144         TYPE_MAIN_VARIANT to refer to the unqualified type.
3145         * c-lex.c (c_lex_return_raw_string): New global.
3146         (c_lex_with_flags): Honor it.
3147         * c-pragma.h: Declare it.
3149 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
3151         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
3153 2004-09-21  Jan Hubicka  <jh@suse.cz>
3155         PR middle-end/17126
3156         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
3157         (tree_rest_of_compilation): Cleanup.
3159 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
3161         * config/s390/s390.c (s390_select_rtx_section): Remove.
3162         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
3164 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3166         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
3167         note to pretend a direct save from the original register when an
3168         intermediate register is used for the save.
3170 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3172         * tsystem.h (alloca): Provide a default definition.
3174         Revert:
3175         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3176             * unwind-dw2.c: Call __builtin_alloca, not alloca.
3178 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
3180         PR tree-opt/17558
3181         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
3182         aliasing sets are the same rather than just conflicting.
3184 2004-09-20  Jan Hubicka  <jh@suse.cz>
3186         PR middle-end/16460
3188         * cgraph.c (cgraph_unnest_node): New function.
3189         (c_finalize): Rename to ....
3190         (c_warn_unused_result_recursivly): ... this one; do only the warning
3191         (finish_function): Finalize the toplevel function; do not lower nested tree.
3192         * cgraph.h (cgraph_unnest_node): Declare.
3193         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
3194         nestedness datastructure.
3195         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
3196         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
3197         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
3199 2004-09-20  Richard Henderson  <rth@redhat.com>
3201         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
3202         from some_small_symbolic_operand_1; export.
3203         (some_small_symbolic_operand): Remove.
3204         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
3205         extra C check.
3206         * config/alpha/predicates.md (some_small_symbolic_operand): New.
3208 2004-09-20  Jan Hubicka  <jh@suse.cz>
3210         * predict.c (return_prediction): New function.
3211         (apply_return_prediction): Likewise.
3212         (tree_bb_level_predictions): Likewise.
3213         (tree_estimate_probability): Add noreturn exit edges; call
3214         bb_level_predictions; fix logic of return heuristics.
3215         (predict_paths_leading_to):  Rescuesce from old CVS version of
3216         process_note_prediction function.
3217         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
3219 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
3221         * config/s390/s390.c (s390_frame_info): Added alignment statement for
3222         floating point register area on stack.
3224 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
3226         * predict.c (expr_expected_value): Use *_CLASS_P macros.
3228 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
3230         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
3231         generating useless garbage.
3233 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
3235         * builtins.c (fold_builtin): Call the new omonymous
3236         target hook for machine-dependent built-ins.
3237         * target-def.h (TARGET_FOLD_BUILTIN): New.
3238         * target.h (struct gcc_target): Add the fold_builtin hook.
3239         * targhooks.c (default_fold_builtin): New.
3240         * targhooks.h (default_fold_builtin): Declare it.
3242 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
3244         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
3245         comment typos.
3247 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
3249         PR target/17565
3250         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
3252 2004-09-20  Jan Hubicka  <jh@suse.cz>
3254         * predict.c (estimate_probability): Remove unnecesary code.
3256 2004-09-19  Ira Rosen  <irar@il.ibm.com>
3258         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
3259         (STMT_VINFO_VECT_DR_BASE): Declare.
3260         (VECT_SMODULO): Declare.
3261         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
3262         (vect_compute_array_base_alignment): New function.
3263         (vect_analyze_data_ref_access): Check array indices. Remove one
3264         dimensional arrays restriction.
3265         (vect_get_ptr_offset): New function.
3266         (vect_get_symbl_and_dr): New function.
3267         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
3268         (former name vect_get_base_decl_and_bit_offset).
3269         (vect_create_index_for_array_ref): Removed.
3270         (vect_create_index_for_vector_ref): New function.
3271         (vect_create_addr_base_for_vector_ref): New function.
3272         (vect_create_data_ref): Handle additional data refs. Call
3273         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
3274         (vect_compute_data_ref_alignment): Support the changes. Call
3275         vect_get_base_and_bit_offset.
3276         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
3277         data refs. Store vect_dr_base.
3278         (vect_analyze_data_ref_accesses): Support nonconstant init.
3279         (new_stmt_vec_info): Initialize vect_dr_base field.
3280         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
3281         (get_vectype_for_scalar_type): Check for BLKmode.
3282         * tree-chrec.h (initial_condition_in_loop_num): Declare.
3283         * tree-chrec.c (initial_condition_in_loop_num): New function.
3284         (chrec_component_in_loop_num): New function.
3285         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
3286         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
3287         to be pointer to varray_type.
3289 2004-09-19  Jan Hubicka  <jh@suse.cz>
3291         * basic-block.h (update_bb_profile_after_threading): Declare.
3292         * cfg.c (update_bb_profile_after_threading): Break out from ...
3293         * cfgcleanup.c (try_forward_edges): ... here; use it.
3294         * tree-ssa-dom.c (thread_across_edge): Use it.
3295         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
3296         profile of the new BB.
3298 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
3300         * tree-ssa-pre.c (insert_into_set): Don't put
3301         is_gimple_min_invariant values into the set.
3303 2004-09-19  Andreas Jaeger  <aj@suse.de>
3305         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
3306         prototype.
3308 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
3310         * config/cris/cris.h: Preserve the original spelling in a
3311         quote.
3313 2004-09-18 Jeff Law  <law@redhat.com>
3315         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
3316         global varrays to replace the block local varrays.
3317         (struct dom_walk_block_data): Remove, no longer used.
3318         (get_eq_expr_value): No longer need to pass around pointers to local
3319         varrays.  Callers updated.  Unused markers added to unused parameters.
3320         (record_range, record_equivalences_from_stmt): Likewise.
3321         (record_equivalences_from_incoming_edge): Likewise.
3322         (record_var_is_nonzero): Likewise.  Update now that we have a
3323         single global varray of SSA_NAMEs that need restoring.
3324         (dom_opt_initialize_block_local_data): Kill, no longer used.
3325         (tree_ssa_dominator_optimize): Initialize new global varrays.
3326         Update callbacks in dominator walker structure.
3327         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
3328         VRP_VARIABLES_STACK.
3329         (restore_nonzero_vars_to_original_value): Update now that we have
3330         a single global varray of SSA_NAMEs that need restoring.
3331         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
3332         Remove unused variables.
3333         (optimize_stmt): Remove unused variable.
3335 2004-09-18  Jan Hubicka  <jh@suse.cz>
3337         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
3339         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
3340         verify_cgraph call.
3342 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
3344         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
3345         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
3346         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
3347         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
3348         tree-ssa-operands.c, tree-ssa-phiopt.c,
3349         tree-ssa-threadupdate.c: Fix comment typos.
3351 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
3353         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
3354         config/arm/README-interworking, config/arm/arm-cores.def,
3355         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
3356         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
3357         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
3358         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
3359         config/frv/frv.md, config/i386/winnt.c,
3360         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
3361         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
3362         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
3363         config/mcore/mcore.c, config/mips/mips.h,
3364         config/mn10300/mn10300.md, config/pa/pa.c,
3365         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
3366         config/rs6000/rs6000.c, config/sh/symbian.c,
3367         config/sparc/sparc.h: Fix comment typos.  Follow spelling
3368         conventions.
3370 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
3372         PR c/17424
3373         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
3375 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
3377         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
3378         remove TREE_ADDRESSABLE from RESULT_DECL.
3380 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
3382         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
3384 2004-09-18  Jan Hubicka  <jh@suse.cz>
3386         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
3387         NULL.
3388         * tree-ssa-alias.c (init_alias_info): Likewise.
3389         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
3390         (verify_ssa): Likewise.
3391         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
3393 2004-09-18  Jan Hubicka  <jh@suse.cz>
3395         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
3396         huge offset.
3398 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3400         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
3401         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3402         DW_EH_PE_sdata* for data.
3403         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
3405 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
3407         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
3408         shared anyway.
3410         PR pch/13361
3411         * c-typeck.c (constructor_asmspec): Delete.
3412         (struct initializer_stack): Delete field 'asmspec'.
3413         (start_init): Delete saving of asmspec.
3414         (finish_init): Don't update constructor_asmspec.
3415         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
3416         * stmt.c (expand_asm): Duplicate strings from tree.
3417         (expand_asm_operands): Likewise.
3418         * tree.c (tree_size): Update computation of size of STRING_CST.
3419         (make_node): Don't make STRING_CST nodes.
3420         (build_string): Allocate string with tree node.
3421         (tree_code_size): Clean up assertions, don't allow requests
3422         for "the size of a STRING_CST".
3423         * tree.def (STRING_CST): Update comment.
3424         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
3425         (tree_string): Place contents of string in tree node.
3426         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
3427         from tree.
3429 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
3431         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
3432         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
3434 2004-09-17  Jones Desougi  <jones@ingate.com>
3436         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
3437         * configure, config.in: Regenerate.
3439 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
3441         * tree.c, tree.h (tree_class_strings): Make array const.
3442         Reindent per coding convention.  Move asterisk to proper place
3443         per coding convention.
3445 2004-09-18  Andreas Schwab  <schwab@suse.de>
3447         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
3448         (tree-vectorizer.o): Likewise.
3449         (targhooks.o): Likewise.
3451 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
3452             Zack Weinberg  <zack@codesourcery.com>
3454         * alias.c (find_base_decl): Remove unreachable case '3' block.
3455         * expr.c (safe_from_p): Abort if passed a type.
3456         * tree-gimple.c (recalculate_side_effects): Abort if passed
3457         anything other than an expression.
3458         * tree-ssa-pre.c (phi_translate): Return expr immediately if
3459         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
3460         Abort on un-handled tree classes.
3461         (valid_in_set): Likewise.
3462         * tree.c (tree_code_class_strings): New static data.
3464         * tree.h (enum tree_code_class): New.
3465         (tree_code_class_strings): Declare.
3466         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
3467         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
3468         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
3469         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
3470         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
3472         * tree.def, c-common.def, objc/objc-tree.def: Use
3473         tree_code_class enumeration constants instead of code letters.
3475         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
3476         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
3477         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
3478         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
3479         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
3480         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
3481         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
3482         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
3483         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
3484         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
3485         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
3486         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
3487         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
3488         Update to match.
3490         * LANGUAGES: Add note about change.
3492 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
3494         PR tree-optimization/17319
3495         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
3496         examine pointers on the LHS of an assignment.
3497         (collect_points_to_info_r): Handle RETURN_EXPR.
3499 2004-09-17 Jeff Law  <law@redhat.com>
3501         * tree-ssa-dom.c (const_and_copies_stack): New.
3502         (dom_walk_block_data): Remove const_and_copies field.
3503         (record_const_or_copy): No longer need to pass in varray_type *.
3504         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
3505         Callers updated.
3506         (record_equality): Similarly.
3507         (restore_vars_to_original_value): Similarly.  Revamp to use new
3508         single global stack rather than per-block stacks.
3509         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
3510         (thread_across_edge): Remove now unused parameters.
3511         (dom_opt_initialize_block_local_data): No longer test the block
3512         local CONST_AND_COPIES.
3513         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
3515 2004-09-17  Jan Hubicka  <jh@suse.cz>
3517         PR tree-optimization/17509
3518         * tree-optimize.c (update_inlined_to_pointers): New function.
3519         (tree_rest_of_compilation): Use it.
3521 2004-09-17  Devang Patel  <dpatel@apple.com>
3523         * dbxout.c (get_lang_number): New.
3524         (dbxout_init): Include lang number in N_SO  stab.
3525         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
3526         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
3528 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
3530         PR tree-optimization/17273
3531         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
3532         replacement is a constant.
3534 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
3536         * c-tree.h (enum c_typespec_keyword): New.
3537         (struct c_declspecs): Adjust description of "type".  Remove
3538         specbits, explicit_int_p and explicit_char_p.  Rename
3539         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
3540         short_p, signed_p, unsigned_p and complex_p.
3541         (finish_declspecs): New.
3542         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
3543         typename): Call finish_declspecs.
3544         * c-decl.c (finish_declspecs): New.
3545         (declspecs_add_type): Check for combinations which cannot occur in
3546         valid specifier lists.  Update comments.
3547         (shadow_tag_warned): Remove checks done in finish_declspecs.
3548         Don't report useless type name if type defaulted to int.
3549         (grokdeclarator): Remove checks and actions done in
3550         finish_declspecs.  Don't allow for type being NULL.  Update for
3551         datastructures changes.  Initialize decl_attr.
3552         (build_null_declspecs, quals_from_declspecs): Update for
3553         datastructures changes.
3555 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
3557         * doc/extend.texi: Fix duplicated word.
3559 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
3561         * doc/invoke.texi: Remove stray explanation on
3562         -freduce-all-givs and -fmove-all-movables.
3564 2004-09-17  James Morrison  <phython@gcc.gnu.org>
3566         * doc/cfg.texi: Use @smallexample.
3567         * doc/md.texi: Likewise.
3568         * doc/tree-ssa.texi: Likewise.
3569         * doc/extend.texi: Likewise.  Use @r{} in comments.
3570         * doc/trouble.texi: Use @r{} in comments.
3572 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
3574         * configure.ac (gcc_cv_gld_version): Handle whitespace before
3575         "VERSION=".
3576         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
3577         * configure: Regenerate.
3579 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
3581         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
3582         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
3583         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
3584         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
3585         slashes in substitutions.
3586         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
3588 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
3590         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
3591         gimplify.c, lambda-code.c, optabs.c, predict.c,
3592         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
3593         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
3594         conventions.
3596 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
3598         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
3599         doc/extend.texi, doc/install.texi, doc/invoke.texi,
3600         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
3601         doc/trouble.texi: Use @option around options.
3603 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
3605         * Makefile.in (gen-protos.o): Depend on errors.h.
3607 2004-09-17  Steven Bosscher  <stevenb@suse.de>
3609         PR tree-optimization/17513
3610         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
3611         for successors of the entry block.
3613 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
3615         PR rtl-optimization/15187
3616         * ifcvt.c (noce_try_cmove_arith): Exit early if total
3617         insn_rtx_cost of both branches > BRANCH_COST
3619 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
3621         PR tree-optimization/17528
3622         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
3623         erase the may-alias set for a tag when merging it with
3624         another.
3626 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3628         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
3629         for 32-bit TARGET_SHMEDIA.
3630         (call_value): Likewise.
3632 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
3634         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
3635         test apply only to TREE_STATIC and DECL_EXTERNAL.
3637 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3639         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
3640         * basic-block.h (get_dominated_by_region): Declare.
3641         * dominance.c (get_dominated_by_region): New function.
3642         * tree-cfg.c: Include cfglayout.h.
3643         (tree_duplicate_bb): Duplicate also phi nodes.
3644         (struct ssa_name_map_entry): New type.
3645         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
3646         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
3647         allocate_ssa_names, rewrite_to_new_ssa_names_def,
3648         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
3649         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
3650         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
3651         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
3652         rewrite_to_new_ssa_names, allocate_ssa_names,
3653         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
3654         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
3655         (copy_loop_headers): Use tree_duplicate_sese_region.
3657 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
3659         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
3661 2004-09-16 Jeff Law  <law@redhat.com>
3663         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
3664         (rewrite_block_data): Remove, no longer used.
3665         (rewrite_initialize_block_local_data): Remove, no longer used.
3666         (rewrite_initialize_block): Mark parameters as unused as needed.
3667         Change references to the block local block_defs to be block_defs_stack.
3668         Push a marker onto the block_defs_stack.
3669         (ssa_rewrite_initialize_block): Similarly.
3670         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
3671         (ssa_register_new_def): No longer needs varray argument.  Use
3672         block_defs_stack instead.  No longer handle possibly null block_defs
3673         varray.  Reverse order of items we push on the stack to make it
3674         easier to identify our marker.
3675         (register_new_def): No longer handle possibly null block_defs
3676         varray.
3677         (rewrite_finalize_block): Revamp to look for markers in the global
3678         block_defs_stack varray rather than wiping a block local varray.
3679         Mark arguments as unused as needed.
3680         (ssa_rewrite_finalize_block): Similarly.
3681         (rewrite_into_ssa): Update initialization of dom walker structure
3682         to reflect that we don't need block local data anymore.  Initialize
3683         the block_defs_stack varray.
3684         (rewrite_ssa_into_ssa): Similarly.
3685         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
3686         (struct dom_walk_data): Kill block_defs field.
3687         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
3688         (thread_across_edge): Use the global block_defs_stack instead of
3689         the old block_defs varray.
3690         (dom_opt_initialize_block_local_data): Update now that we don't have
3691         block_defs field to check anymore.
3692         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
3693         (restore_currdefs_to_original_value): Use the new block_defs_stack
3694         instead of a block local varray.
3695         (dom_opt_finalize_block): Similarly.
3696         (record_equivalencs_from_phis): Similarly.
3697         (optimize_stmt, register_definitions_for_stmt): Similarly.
3699 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
3701         PR tree-optimization/17517
3702         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
3703         coalesce same-root variables without checking for abnormal PHI usage.
3705 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
3707         * cfgloop.h (duplicate_loop):  Add prototype.
3708         * cfgloopmanip.c (duplicate_loop): Make non-static.
3709         * lambda-code.c (perfect_nestify): Factor out test whether
3710         we can handle this loop into separate function.
3711         Call it.
3712         (can_convert_to_perfect_nest): New function.
3713         (replace_uses_of_x_with_y): Add modify_stmt call.
3714         * tree-loop-linear.c (linear_transform_loops): Call
3715         rewrite_into_loop_closed_ssa and free_df.
3717 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
3719         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
3720         loop invariant as well.
3721         (perfect_nestify): new function.
3722         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
3723         upper bounds, and steps.
3724         Set outerinductionvar properly.
3725         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
3726         parameters.
3727         Return NULL if we need a perfect loop and can't make one.
3728         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
3729         (not_interesting_stmt): New function.
3730         (phi_loop_edge_uses_def): Ditto.
3731         (stmt_uses_phi_result): Ditto.
3732         (stmt_is_bumper_for_loop): Ditto.
3733         (perfect_nest_p): Ditto.
3734         (nestify_update_pending_stmts): Ditto.
3735         (replace_uses_of_x_with_y): Ditto.
3736         (stmt_uses_op): Ditto.
3737         (perfect_nestify): Ditto.
3738         * lambda-mat.c (lambda_matrix_id_p): New function.
3739         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
3740         * lambda.h: Update prototypes.
3741         * tree-loop-linear (linear_transform_loop): Use new
3742         perfect_nest_p. Detect and ignore identity transform.
3743         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
3745 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
3747         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
3748         Gather also strides of accessed data.  Pass in the data references
3749         array.
3750         (try_interchange_loops): Add a new heuristic for handling the temporal
3751         locality.  Pass in the data references array.
3752         (linear_transform_loops): Pass the data references array to
3753         try_interchange_loops.
3755 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
3757         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
3759 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
3761         * doc/c-tree.texi (Classes): Remove index entries for
3762         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
3764 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3766         * fold-const.c (fold): Fold difference of addresses.
3767         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
3768         get_inner_reference.
3769         * tree-ssa-loop-ivopts.c (peel_address): Removed.
3770         (ptr_difference_const): Moved to fold-const.c.
3771         (split_address_cost): Use get_inner_reference instead of peel_address.
3772         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
3773         * tree.h (ptr_difference_const): Export.
3775         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
3776         variable type to the dump.  Fix indentation.
3777         (idx_find_step): Handle nonconstant array_ref_element_size and
3778         array_ref_low_bound.
3779         (idx_record_use): Handle array_ref_element_size and
3780         array_ref_low_bound.
3781         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
3782         statements correctly.
3783         (get_computation_at, iv_value): Do not unshare expressions here.
3784         (rewrite_use_outer): Unshare the expression before it is emitted
3785         to code.
3786         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
3787         Moved to tree.c.
3788         * tree.c (unsigned_type_for, signed_type_for): Moved from
3789         tree-ssa-loop-niter.c.  Use langhooks.
3790         * tree.h (signed_type_for): Export.
3792 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
3794         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
3795         prototype.
3797 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
3799         PR target/11572
3800         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
3801         Add two parameters to extra_includes.
3802         (C_INCPATH_INIT): Remove.
3803         * c-incpath.c (register_include_chains): Call extra_pre_includes
3804         before adding the standard include directory.
3805         Update call to extra_includes.
3806         (!defined TARGET_EXTRA_INCLUDES): Update
3807         hook_void_charptr_charptr_int and add !define
3808         TARGET_EXTRA_PRE_INCLUDES.
3809         (!define TARGET_EXTRA_INCLUDES): Define as
3810         hook_void_charptr_charptr_int.
3811         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
3812         (target_c_incpath): Always declare.
3813         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
3814         empty function.
3815         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
3816         * config/darwin.h: (darwin_register_frameworks): Update for
3817         the two new parameters.
3818         (darwin_register_objc_includes): Add prototype.
3819         (TARGET_EXTRA_PRE_INCLUDES): Define.
3820         * config/darwin-c.c (darwin_register_objc_includes): New function.
3821         (darwin_register_frameworks): Update for the two new parameters.
3822         (target_c_incpath): Remove.
3823         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
3824         the compile line.
3825         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
3826         parameters.
3827         (TARGET_EXTRA_PRE_INCLUDES): Document.
3829         * gcc.c (spec_function): Add replace-outfile.
3830         (replace_outfile_spec_function): New function.
3831         * config/darwin.h (LINK_SPEC): Add replace
3832         -lobjc with -lobjc-gnu if -fgnu-runtime is
3833         supplied.
3834         * invoke.texi (replace-outfile): Document.
3836 2004-09-13  Jan Hubicka  <jh@suse.cz>
3838         * predict.c (expr_expected_value, strip_builtin_expect): New function.
3839         (tree_predict_by_opcode): Use it.
3840         (tree_estimate_probability): Add, for now disabled,
3841         strip_builtin_expect call.
3843 2004-09-15  James E Wilson  <wilson@specifixinc.com>
3845         PR target/17455
3846         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
3847         if current_function_decl is a sibcall.
3849 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
3851         * varasm.c (default_function_rdodata_section): Make sure to pass
3852         along a decl for a link-once section.
3854 2004-09-15  Richard Henderson  <rth@redhat.com>
3856         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
3857         warning with code disable.  Fix formatting.
3859 2004-09-15  Steven Bosscher  <stevenb@suse.de>
3861         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
3862         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
3863         after propagating into an ADDR_EXPR.
3865 2004-09-15  Andrew Pinski  <apinski@apple.com>
3867         PR rtl-opt/17427
3868         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
3869         Move it out of gcc_assert.
3871 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
3873         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
3874         except.c, fold-const.c, function.c, langhooks.c, params.c,
3875         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
3876         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
3877         for quoting in diagnostics going through pretty-print.c.  Use ''
3878         for quoting in other diagnostic text.
3879         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
3880         translation.
3881         * Makefile.in (langhooks.o): Update dependencies.
3882         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
3883         formats.
3885 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
3887         * configure.ac: Check for COMDAT support.  Robustify check for
3888         SHF_MERGE support.
3889         * configure: Regenerated.
3890         * config.in: Likewise.
3891         * langhooks-def.h (lhd_comdat_group): New function.
3892         (LANG_HOOKS_COMDAT_GROUP): New macro.
3893         (LANG_HOOKS_DECLS): Use it.
3894         * langhooks.c (lhd_comdat_group): Define.
3895         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
3896         * output.h (named_section_flags): Make it a macro.
3897         (named_section_real): New function.
3898         (default_no_named_section): Add decl parameter.
3899         (default_elf_asm_named_section): Likewise.
3900         (default_coff_asm_named_section): Likewise.
3901         (default_pe_asm_named_section): Likewise.
3902         * target.h (gcc_target): Adjust type of named_section.
3903         * varasm.c (named_section_flags): Rename to named_section_real.
3904         Add decl parameter.
3905         (default_no_named_section): Add decl parameter.
3906         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
3907         with the case that ASM_COMMENT_START is "@".
3908         (default_coff_asm_named_section): Add decl parameter.
3909         (default_pe_asm_named_section): Likewise.
3910         * config/alpha/alpha.c (vms_asm_named_section): Add decl
3911         parameter.
3912         (unicosmk_asm_named_section): Likewise.
3913         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
3914         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
3915         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
3916         * config/cris/cris-protos.h (cris_target_asm_named_section):
3917         Likewise.
3918         * config/cris/cris.c (cris_target_asm_named_section):
3919         Likewise.
3920         * config/darwin/darwin-protos.h (darwin_asm_named_section):
3921         Likewise.
3922         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
3923         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
3924         * config/i386/i386-protos.h (i386_pe_asm_named_section):
3925         Likewise.
3926         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
3927         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
3928         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
3929         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
3930         Likewise.
3931         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
3932         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
3933         * cp/cp-tree.h (cxx_comdat_group): Declare.
3934         * cp/decl.c (cxx_comdat_group): New function.
3936 2004-09-15  Jan Hubicka  <jh@suse.cz>
3938         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
3939         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
3941         * tree-cfg.c (remove_bb): Release SSA defs.
3943 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
3945         * doc/tm.texi: Follow spelling conventions.
3947 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
3949         * tree-ssa-dom.c: Fix comment typos.
3951 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
3953         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
3954         include ccr.
3955         (ppc_fallback_frame_state): Save location of CR.
3957 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
3959         * expr.c (string_constant): Handle also read-only variables
3960         initialized to string literals.
3962         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
3963         into memcpy (x, y, 1) if memcpy can be expanded inline.
3965 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3967         PR tree-optimization/17468
3968         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
3969         definition inside a block precede uses.
3970         * tree-tailcall.c (adjust_return_value): Emit statements in the
3971         correct order.
3973 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
3975         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
3977 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
3979         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
3981 2004-09-14 Jeff Law  <law@redhat.com>
3983         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
3984         (struct dom_walk_block_data): Remove avail_exprs member.
3985         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
3986         (lookup_avail_expr): No longer need to pass in address of
3987         the block local available exprs stack.  All callers changed.
3988         (simplify_cond_and_lookup_avail_expr): Similarly.
3989         (simplify_switch_and_lookup_avail_expr): Similarly.
3990         (get_eq_expr_value, record_cond): Likewise.
3991         (record_dominating_conditions): Likewise.
3992         (update_rhs_and_lookup_avail_expr): Likewise.
3993         (record_equivalences_from_stmt): Likewise.
3994         (dom_opt_initialize_block_local_data): No longer test state of
3995         block local avail_exprs.
3996         (dom_opt_initialize_block): Mark unwind point in the global
3997         avail_expr stack.
3998         (remove_expressions_from_table): Update to unwind to the
3999         most recent unwind marker in the global avail_expr stack.
4000         All callers changed.
4001         (dom_opt_finalize_block): Mark unwind point in the global
4002         avail_expr stack as needed.
4003         (record_cond): Push elements into the global avail_exprs stack.
4005         * tree-dfa.c (free_df_for_stmt): No longer static.
4006         (free_df): Update comments.
4007         * tree-flow.h (free_df_for_stmt): Prototype.
4008         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
4009         call release_defs.
4011 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
4013         PR tree-optimization/17252
4014         * tree-ssa-alias.c (may_alias_p): Don't assume that a
4015         pointer may not point to itself when using relaxed
4016         aliasing rules.
4018 2004-09-14  Richard Henderson  <rth@redhat.com>
4020         PR middle-end/17397
4021         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
4022         while folding <ADDR_EXPR <INDIRECT_REF X>>.
4024 2004-09-14  Andrew Pinski  <apinski@apple.com>
4026         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
4027         sets of the pointers but the aliasing sets of what they point to.
4029 2004-09-14  Roger Sayle  <roger@eyesopen.com>
4031         PR rtl-optimization/9771
4032         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
4033         conditional compilation in init_reg_sets_1.
4034         (init_reg_sets_1): Let global_regs[i] take priority over the frame
4035         (but not stack) pointer exceptions to regs_invalidated_by_call.
4036         (globalize_reg): Globalizing a fixed register may need to update
4037         regs_invalidated_by_call.
4039 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
4041         PR tree-optimization/15262
4042         * tree-dfa.c (dump_variable): Also print the type of the
4043         variable.
4044         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
4045         memory tags are of conflicting alias sets but have no aliased
4046         symbols in common, add one tag to the alias set of the other.
4047         (setup_pointers_and_addressables): Remove hack to deal with
4048         programs with no aliased symbols.
4049         (may_alias_p): Don't special case aggregate types.
4051 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
4053         PR c/15498
4054         * doc/invoke.texi (Environment Variables): Correct example locale.
4056 2004-09-14  Jan Hubicka  <jh@suse.cz>
4058         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
4060 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
4062         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
4064 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
4066         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
4067         restrict_p.
4068         (struct c_declarator): Change u.array.quals and pointer_quals to
4069         int.  Add u.array.attrs.
4070         (quals_from_declspecs): New.
4071         * c-decl.c (quals_from_declspecs): New.
4072         (shadow_tag_warned): Give more specific message for useless type
4073         qualifiers.
4074         (build_array_declarator, set_array_declarator_inner,
4075         grokdeclarator, make_pointer_declarator, build_null_declspecs,
4076         declspecs_add_qual): Update for changed structures.
4078 2004-09-14  Jeff Law  <law@redhat.com>
4080         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
4081         to a global varray.
4082         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
4083         (dom_opt_initialize_block_local_data): No longer test state
4084         of stmts_to_rescan.
4085         (dom_opt_finalize_block): Update due to change in scope of
4086         stmts_to_rescan.
4087         (optimize_stmt): Similarly.
4089 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
4091         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
4092         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
4093         comment typos.  Follow spelling conventions.
4095 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
4097         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
4098         config/i386/predicates.md, config/sparc/sparc.c: Follow
4099         spelling conventions.
4101 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4102             Steven Bosscher  <stevenb@suse.de>
4104         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
4105         * basic-block.h (struct reorder_block_def): Add copy_number field.
4106         * cfgloop.h (biv_p): Declare.
4107         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
4108         * common.opt (fsplit-ivs-in-unroller): New flag.
4109         * loop-iv.c (biv_p): New function.
4110         * loop-unroll.c: Include hashtab.h and recog.h.
4111         (struct iv_to_split, struct split_ivs_info): New types.
4112         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
4113         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
4114         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
4115         insert_base_initialization, split_iv): New functions.
4116         (peel_loop_completely, unroll_loop_constant_iterations,
4117         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
4118         Use them.
4119         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
4121 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4123         * tree-cfg.c (thread_jumps): Update dominators correctly in
4124         case destination of threaded edge dominates its source.
4126 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4128         * unroll.c: Removed.
4129         * loop.h: Removed.
4130         * Makefile.in (LOOP_H, unroll.o): Removed.
4131         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
4132         dependency.
4133         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
4134         reference.
4135         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
4136         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
4137         * loop.c: Do not include loop.h.
4138         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
4139         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
4140         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
4141         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
4142         struct loop_regs, struct loop_movables, struct loop_info): Moved
4143         from loop.h.
4144         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
4145         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
4146         find_common_reg_term, loop_iterations, final_giv_value): Moved
4147         from unroll.c.
4148         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
4149         loop_dump_stream, for_each_insn_in_loop, express_from,
4150         extend_value_for_giv, loop_iv_add_mult_emit_before,
4151         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
4152         loop_insn_first_p, get_condition_for_loop,
4153         loop_insn_emit_before, loop_insn_hoist,
4154         loop_insn_sink): Made static.
4155         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
4156         reference.
4157         (strength_reduce): Do not call unroller.
4158         (record_giv): Do not initialize unrolled field.
4159         (prescan_loop): Do not set loop_info->preconditioned.
4160         * passes.c: Do not include loop.h.
4161         (rest_of_handle_loop_optimize): Do not call unroller.
4162         * predict.c: Do not include loop.h.
4163         * rtl.h (NOTE_PRECONDITIONED): Removed.
4164         * stmt.c: Do not include loop.h.
4165         * toplev.c: Do not include loop.h.
4166         (process_options): Do not handle flag_old_unroll_loops.
4168         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
4169         Documentation removed.
4170         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
4172 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
4174         * Makefile.in (STAGE1_CHECKING): New variable.
4175         (stage1_build): Use it.
4176         * tree-ssa.c (verify_ssa): Preserve state of dominance
4177         information.
4179 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
4181         * config/i386/i386.c (output_fp_compare): Add generation
4182         of ftst instruction.
4183         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
4184         Use output_fp_compare () function.
4185         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
4186         (fix_truncdi_memory): Remove operands[5] copy.
4188 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
4190         * config/m32r/m32r.md, config/m68k/m68kelf.h,
4191         config/mcore/mcore.md, config/rs6000/linux64.h,
4192         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
4193         typos.
4195 2004-09-13  James E Wilson  <wilson@specifixinc.com>
4197         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
4198         * gen-protos.c: Include errors.h.
4199         (progname): Delete.
4201 2004-09-14  Jan Hubicka  <jh@suse.cz>
4203         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
4204         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
4205         (predict_loops): Use number_of_iterations_exit to predict
4206         number of iterations on trees.
4208 2004-09-13  Dale Johannesen  <dalej@apple.com>
4210         PR 17408
4211         PR 17409
4212         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
4213         objects declared extern.
4215 2004-09-14  Paul Brook  <paul@codesourcery.com>
4217         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
4218         HOST_WIDE_INT.
4220 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
4222         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
4223         Only use TYPE_BINFO for aggregates.
4225 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
4227         * expmed.c (synth_mult): Initialize latency.  Check cost before
4228         checking ops count.
4230 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
4232         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
4233         add_call_clobber_ops and add_call_read_ops.
4234         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
4235         the number of vdefs and vuses inserted based on analysis of global
4236         variables across calls.  * tree-dfa.c (find_referenced_vars):
4237         Needed to reset static var maps before each function is compiled.
4238         * cgraphunit.c:
4239         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
4240         static_vars_info,functions_to_static_vars_info,module_statics_escape,
4241         all_module_statics,searchc_env,dfs_info): New fields to support
4242         analysis of static global variables.
4243         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
4244         cgraph_reset_static_var_maps, get_global_static_vars_info,
4245         get_global_statics_not_read, get_global_statics_not_written,
4246         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
4247         check_rhs_var, check_lhs_var, get_asm_expr_operands,
4248         process_call_for_static_vars, scan_for_static_refs,
4249         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
4250         clear_static_vars_maps, cgraph_propagate_bits,
4251         cgraph_characterize_statics): New. Functions to support analysis
4252         of static global variables.
4253         (cgraph_mark_local_and_external_functions): Renamed from:
4254         (cgraph_mark_local_functions)
4255         (cgraph_expand_all_functions): Remove call to
4256         cgraph_mark_local_and_external_functions.
4257         (cgraph_optimize): Added driver to analyze static variables whose
4258         scope is within the compilation unit.  * cgraph.h (struct
4259         cgraph_local_info, GTY): Added statics_read, statics_written,
4260         local, calls_read_all, calls_write_all, for_functions_valid.
4261         (struct cgraph_node): Added next_cycle.  * cgraph.c
4262         (dump_cgraph_node): Added print routines for new fields.  *
4263         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
4264         list.
4266 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
4268         * c-decl.c (grokdeclarator): Correct comments about where storage
4269         class specifiers are rejected by grammar and add corresponding
4270         asserts.  Diagnose typedefs and parameters declared inline.
4271         Change warning for inline main to a pedwarn.  Only diagnose inline
4272         main if hosted.
4273         (declspecs_add_scspec): Allow duplicate "inline".
4275 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
4277         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
4278         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
4280 2004-09-13  Richard Henderson  <rth@redhat.com>
4282         PR 17436
4283         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
4284         (tree_type): Replace spare with contains_placeholder_bits.
4285         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
4286         make static.  Remove seen_types list.
4287         (type_contains_placeholder_p): New.
4289 2004-09-13  James E Wilson  <wilson@specifixinc.com>
4291         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
4292         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
4293         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
4294         bdesc_arrays instead of mips_bdesc.
4295         (mips_init_builtins): Likewise.
4296         * config/mips/mips.h (TARGET_SB1): New.
4297         (HAVE_SQRT_P): Delete.
4298         * config/mips/mips.md (divide_condition): Support V2SF.
4299         (sqrt_condition, recip_condition): New.
4300         (div<mode>3): Use ANYF instead of SCALARF.
4301         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
4302         MODE.
4303         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
4304         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
4305         instead of MODE.
4306         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
4307         instead of SCALARF.  Use UNITMODE instead of MODE.
4309 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
4311         * config.in: Regenerate after removal of libbanshee.
4313 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
4315         PR tree-optimization/17400
4316         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
4317         coalesce partitions when one occurs in an abnormal PHI.
4319 2004-09-13  Andrew Pinski  <apinski@apple.com>
4321         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
4322         name to _new_size.
4324 2004-09-13  Richard Henderson  <rth@redhat.com>
4326         PR inline-asm/6806
4327         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
4328         (cselib_invalidate_rtx_note_stores): New.
4329         (cselib_record_sets, cselib_process_insn): Update to match.
4330         * cselib.h (cselib_invalidate_rtx): Declare.
4331         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
4333 2004-09-13  Richard Henderson  <rth@redhat.com>
4335         PR tree-opt/10528
4336         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
4337         after copying its argument.
4339 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
4341         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
4342         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
4343         in diagnostics.  Use %' for English apostrophes.
4344         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
4345         (pedwarn_c90, pedwarn_c99): Use it.
4346         * c-decl.c (lookup_label): Quote label name in diagnostic.
4347         * c-parse.in (yyprint): Use ' instead of ` for left quote.
4348         * c-typeck.c (warn_for_assignment): Likewise.
4350 2004-09-13  Jan Hubicka  <jh@suse.cz>
4352         * i386.c (x86_schedule): New global variable.
4353         (override_options): Disable scheduling when not supported.
4354         * i386.h (x86_schedule): Declare.
4355         (TARGET_SCHEDULE): New macro.
4357 2004-09-12  Richard Henderson  <rth@redhat.com>
4359         PR c++/16254
4360         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
4361         * tree.c, tree.h (has_cleanups): Remove.
4363 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4365         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
4366         arguments of the phi nodes correctly.
4368 2004-09-12  Jan Hubicka  <jh@suse.cz>
4370         * ggc-common.c (cmp_statistics): Fix sorting.
4372 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
4374         PR target/16795
4375         * expmed.c (expand_divmod): If cheap power of 2 divide is
4376         available, use it for negative constant as well.
4378 2004-09-12  Andrew Pinski  <apinski@apple.com>
4380         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
4381         size of 0.
4383         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
4385 2004-09-12  Richard Henderson  <rth@redhat.com>
4387         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
4388         or minus one.
4389         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
4390         post-reload, and scratch NULL.
4391         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
4392         (x86_shift_adj_2): Use ix86_expand_clear.
4393         (ashldi3): Remove CMOVE expansion difference.
4394         (ashldi3_1): Remove.
4395         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
4396         add constraints for immediates.  New peephole for split-with-temp.
4397         Run splitter after peep2 pass.
4398         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
4399         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
4400         (setcc_2): Rename with *.
4401         * config/i386/predicates.md (reg_or_pm1_operand): New.
4402         (ashldi_input_operand): New.
4404 2004-09-12  Richard Henderson  <rth@redhat.com
4406         * print-rtl.c (print_decl_name): New.
4407         (print_mem_expr): Use it.
4409 2004-09-12  Richard Henderson  <rth@redhat.com
4411         PR 17186, part deux
4412         * except.c (sjlj_emit_function_exit): Fix logic locating
4413         sjlj_exit_after in final block.
4415 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
4417         * common.opt: Remove flags -fmove-all-movables and
4418         -freduce-all-givs.
4419         * loop-invariant.c (find_invariants_to_move):
4420         Remove all uses of flag_move_all_movables.
4421         * loop.c (move_movables): Remove all uses of
4422         flag_move_all_movables.
4423         (strength_reduce): Remove all uses of
4424         flag_reduce_all_givs.
4425         * doc/invoke.texi: Remove documentation of flags
4426         -fremove-all-movables and -freduce-all-givs.
4428 2004-09-11  Roger Sayle  <roger@eyesopen.com>
4430         PR middle-end/17411
4431         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
4432         change. elt->type may be a floating point type, so use fold_convert.
4434 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
4436         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
4437         the thing referenced as used, not the stub itself.
4439 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
4441         * c-tree.h (enum c_storage_class): New.
4442         (struct c_declspecs): Add storage_class, inline_p and thread_p.
4443         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
4444         declarations and "auto" or "register" in file scope empty
4445         declarations.  Give more specific warnings for other cases of
4446         storage class specifiers in empty declarations.
4447         (grokdeclarator): Update for new structures.  Don't check for
4448         multiple storage classes.  Diagnose file-scope "register" if
4449         pedantic.
4450         (build_null_declspecs): Update.
4451         (declspecs_add_scspec): Update.  Diagnose multiple storage class
4452         specifiers and invalid uses of "__thread".
4454 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
4456         * tree.c (tree_code_size): New function, bulk of code from tree_size.
4457         (tree_size, make_node): Use it.
4458         * tree-ssa-pre.c (init_pre): Use it.
4459         * tree.h: Prototype it.
4461 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4463         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
4464         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
4465         redirect_immediate_use): Use PHI_DF.
4466         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
4467         (bb_for_stmt): Use PHI_BB.
4468         (get_immediate_uses): Use PHI_DF.
4469         * tree-ssa-dse.c (max_stmt_uid): New variable.
4470         (get_stmt_uid): New function.
4471         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
4472         node annotations.
4473         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
4474         (max_uid): Renamed to max_stmt_uid.
4475         (get_stmt_uid): New function.
4476         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
4477         phi node annotations.
4478         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
4479         * tree.h (PHI_BB, PHI_DF): New accessor functions.
4480         (struct tree_phi_node): Add bb and df fields.
4482 2004-09-11  Richard Henderson  <rth@redhat.com>
4484         PR middle-end/17416
4485         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
4486         in conflict loop.
4488 2004-09-11  Jan Hubicka  <jh@suse.cz>
4490         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
4491         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
4492         * i386.md (i387_cw): Add 'uninitialized' mode.
4494         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
4495         (output_location): Break out from ....
4496         (branch_prob): ... here; handle gcov output on trees.
4497         * toplev.c (process_options): No longer be sorry about coverage for
4498         trees.
4500 2004-09-11  Steven Bosscher  <stevenb@suse.de>
4502         PR c++/17412
4503         * fold-const.c (fold): Do not try to fold the operand of a
4504         CLEANUP_POINT_EXPR if that operand does itself not have any
4505         operands.
4507         PR middle-end/17417
4508         * langhooks.c (lhd_decl_printable_name): Make sure that this
4509         function is called with is a decl node that has an identifier.
4510         * tree-pretty-print.c (dump_function_name): New function to
4511         wrap PRINT_FUNCTION_NAME and dump_decl_name.
4512         (print_call_name): Use it.
4514 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
4516         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
4517         "config.h" if not.
4519 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
4521         * tree-ssa-alias.c (collect_points_to_info_r): Handle
4522         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
4523         to OFFSET.
4525 2004-09-11  Richard Henderson  <rth@redhat.com>
4527         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
4528         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
4529         operand of the ADDR_EXPR.
4530         (expand_expr_real_1): Update to match.
4532 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
4534         PR target/17277
4535         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
4536         choose 64-bit version.
4538 2004-09-11  Richard Henderson  <rth@redhat.com>
4540         PR c/17396
4541         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
4543 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
4545         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
4546         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
4547         Insert @: after i.e. or e.g.
4549 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
4551         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
4552         D.xxx rather than <Dxxx>.
4554 2004-09-10  Adam Nemet  <anemet@lnxw.com>
4556         * configure.ac (AC_MSG_CHECKING(what linker to use)):
4557         in_tree_ld_is_elf should be true for LynxOS.
4558         * configure: Regenerate.
4560 2004-09-10  Adam Nemet  <anemet@lnxw.com>
4562         * Makefile.in (all.cross): Add srcextra.
4564 2004-09-10  Roger Sayle  <roger@eyesopen.com>
4566         PR middle-end/17024
4567         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
4568         floating point comparison operators.  Change aborts to gcc_asserts.
4570 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
4572         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
4574 2004-09-10  James E Wilson  <wilson@specifixinc.com>
4576         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
4577         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
4579         * convert.c (convert_to_vector): Replace recursive call with
4580         error_mark_node.
4582         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
4583         Add integer argument named constant.  Use const_tiny_rtx instead of
4584         CONST0_RTX.
4585         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
4586         and CONST1_RTX.
4587         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
4588         vector types.
4589         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
4590         of gen_rtx_raw_CONST_VECTOR.
4592 2004-09-10  Eric Christopher  <echristo@redhat.com>
4594         PR c/16046
4595         * c-parse.in (attribute): Add NULL_TREE for error case
4596         for error recovery.
4598 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
4600         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
4601         (extract_interface_info): Delete prototype.
4602         * c-decl.c (extract_interface_info): Delete stub.
4603         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
4604         it's not already been done ...
4605         (init_c_lex): ... not here.
4606         (fe_file_change): Don't call extract_interface_info.
4608 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
4610         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
4611         typedef_p and typedef_signed_p.
4612         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
4613         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
4614         Check typedef_p and typedef_signed_p, not typedef_decl.
4615         (grokfield): Check typedef_p, not typedef_decl.
4616         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
4617         not typedef_decl.
4618         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
4619         typedef_decl.
4621 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4623         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
4625 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
4627         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
4628         temporary variables.
4630         * dbxout.c (dbxout_block): Update for
4631         current_function_func_begin_label a string.
4632         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
4633         * except.c (dw2_output_call_site_table): Likewise.
4634         * toplev.c (current_function_func_begin_label): Likewise.
4635         * tree.h (current_function_func_begin_label): Likewise.
4636         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
4638         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
4639         loop.
4641         * config/darwin.c: Include target.h.
4642         (struct machopic_indirection): Make ptr_name a string.
4643         (machopic_indirection_hash): Update for ptr_name a string.
4644         (machopic_indirection_eq): Likewise.
4645         (machopic_indirection_name): Likewise.
4646         (machopic_output_indirection): Likewise.
4647         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
4648         string.  Don't expect stub names to be in the identifier hash table.
4649         Do call strip_name_encoding before looking up entry in ID hash table.
4650         * config/t-darwin (darwin.o): Add target.h to dependencies.
4652         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
4653         of fprintf for register names.
4655         * output.h (unlikely_section_label): Delete declaration.
4656         (unlikely_text_section_name): Likewise.
4657         * varasm.c (unlikely_section_label_printed): Make static.
4658         (unlikely_section_label): Likewise.
4659         (unlikely_text_section_name): Likewise.
4660         (assemble_start_function): Use reconcat.
4662         * rtl.def (REG): Add comment to describe third field.
4664 2004-09-10  Andrew Pinski  <apinski@apple.com>
4666         * config/darwin.c (machopic_mcount_stub_name): Call
4667         machopic_indirection_name instead of making the string
4668         ourselves.
4670 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
4672         Revert
4674         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
4676             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
4677             memory tag is call clobbered, so are its aliases.
4678             (group_aliases): When two memory tags being grouped, if one is
4679             call clobbered, so are the other and its aliases.
4680             (add_may_alias): Remove call-clobbering stuff.
4681             (replace_may_alias): Likewise.
4682             (merge_pointed_to_info): Merge pt_global_mem
4684 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4686         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
4687         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
4688         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
4689         tree-scalar-evolution.c, tree-ssa-copyrename.c,
4690         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
4692 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
4694         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
4695         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
4696         pair.  Remove match_dup from inputs.  Remove masaccs handling.
4697         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
4698         (masaccs, mdasaccs): Turn into define_insns.
4700 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
4702         * tree-tailcall.c (process_assignment): Only do accumulator transforms
4703         for floating-point types if flag_unsafe_math_optimizations.
4705 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4707         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
4708         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
4709         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
4710         config/h8300/h8300.md, config/i386/gmm_malloc.h,
4711         config/ia64/ia64.md, config/ip2k/libgcc.S,
4712         config/mips/mips-ps-3d.md, config/mips/mips.c,
4713         config/rs6000/rs6000.c, config/s390/s390.c,
4714         config/sh/symbian.c: Fix comment typos.
4716 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
4718         * config/s390/s390.c (s390_emit_prologue): Added missing
4719         "{}" brackets.
4721 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4723         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
4724         typos.  Follow spelling conventions.
4726 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
4728         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
4729         in diagnostic.  Don't dereference NULL TYPE_NAME.
4731 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4733         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
4734         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
4735         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
4736         value-prof.c: Fix comment typos.  Follow spelling conventions.
4738 2004-09-10  Jan Hubicka  <jh@suse.cz>
4740         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
4741         * tree-split_edge.c (tree_split_edge): Likewise.
4742         (thread_jumps): Likewise.
4744 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4746         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
4747         typos.
4749 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
4751         * cgraph.h (cgraph_dump_file): Do not declare.
4752         * cgraphunit.c (cgraph_dump_file): Declare as static.
4753         (init_cgraph): New.
4754         * toplev.c (cgraph_dump_file): Do not declare.
4755         (compile_file): Call init_cgraph.
4756         * tree-dump.c (dump_files): Add IPA dump file, remove
4757         XML dump of call graph.
4758         (get_dump_file_name): Support IPA dump file naming scheme.
4759         * tree.h (enum tree_dump_index): Add IPA dump file, remove
4760         XML dump of call graph.
4761         * doc/invoke.texi (Debugging Options): Document the new options.
4763 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
4765         * doc/extend.texi: Document the FR-V built-in functions.
4767 2004-09-09  James E Wilson  <wilson@specifixinc.com>
4769         * doc/sourcebuild.texi: Delete libbanshee reference.
4771 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
4773         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
4775 2004-09-09  James E Wilson  <wilson@specifixinc.com>
4777         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
4778         before calling vector_types_convertible_p.
4779         (digest_init): Check that inside_init has VECTOR_TYPE before calling
4780         vector_types_convertible_p.  Don't give another error if
4781         convert_for_assignment returns error_mark_node.
4783 2004-09-09  Roger Sayle  <roger@eyesopen.com>
4785         PR middle-end/17055
4786         * fold-const.c (build_zero_vector): New function to construct a
4787         vector (either floating point or integer) of zeros.
4788         (fold_convert): Internally, enable conversions of integer zero
4789         to arbitrary vector types, using the new build_zero_vector.
4791 2004-09-09  Roger Sayle  <roger@eyesopen.com>
4793         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
4794         expand a left shift by an immediate constant as either an ashl or
4795         a sequence of additions.
4796         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
4797         instead of calling gen_ashlsi3 with a constant directly.
4799 2004-09-09  Roger Sayle  <roger@eyesopen.com>
4801         * config/i386/i386.c (ix86_split_long_move): When optimizing for
4802         size, and the low and high parts of a DImode constant are equal,
4803         copy one register to another instead of loading the same immediate
4804         value twice.
4806 2004-09-09  Richard Henderson  <rth@redhat.com>
4808         PR middle-end/17367
4809         * function.c (assign_parm_setup_block): Only put PARALLELs into
4810         a register if use_register_for_decl.
4812 2004-09-09  Eric Christopher  <echristo@redhat.com>
4814         * ra-colorize.c (reset_lists): Move variable declaration inside
4815         ENABLE_CHECKING to avoid unused variable warnings when
4816         not --enable-checking.
4817         (check_colors): Ditto.
4819 2004-09-09  Mike Stump  <mrs@apple.com>
4821         * version.c (version_string): Bump to 4.0.0.
4822         * doc/include/gcc-common.texi (version-GCC): Likewise.
4824 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
4826         * doc/extend.texi (nothrow attribute): The attribute is not
4827         implemented in 3.2 and earlier.
4829 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
4831         * genrecog.c (compute_predicate_codes): Use op0_codes
4832         instead of codes.
4834 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
4836         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
4837         implementation changes.
4839 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
4841         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
4842         a PARALLEL instead of a SET due to added clobbers.
4844 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
4846         * reload.c (find_reloads_address): Pass correct operand to
4847         maybe_memory_address_p.
4849 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
4851         * Makefile.in: Remove libbanshee, tree-alias-*.
4852         Remove tree-alias-common.h dependencies.
4853         * common.opt: Remove -ftree-points-to.
4854         * configure.ac: Remove libbanshee.
4855         * flags.h: Remove pta_type, flag_tree_points_to.
4856         * gengtype.c (open_base_files): Remove tree-alias-type.h.
4857         * opts.c (OPT_ftree_points_to): Remove.
4858         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
4859         * tree-dfa.c: Remove tree-alias-common.h
4860         * tree-into-ssa.c: Ditto.
4861         * tree-outof-ssa.c: Ditto.
4862         * tree-ssa-copyrename.c: Ditto.
4863         * tree-ssa-live.c: Ditto.
4864         * tree-optimize.c: Ditto.
4865         * tree-ssa.c: Ditto.
4866         Remove pass_build_pta, pass_del_pta.
4867         * tree-pass.h: Ditto.
4868         * tree-ssa-alias.c: Remove tree-alias-common.h.
4869         (struct alias_stats_d): Remove pta_queries, pta_resolved.
4870         (pass_may_alias): Remove PROP_pta requirement.
4871         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
4872         (get_tmt_for): Ditto.
4873         (dump_alias_stats): Ditto.
4874         * doc/passes.texi: Remove blurb about points-to analysis.
4875         * fortran/Make-lang.in: Remove tree-alias-*.o.
4877 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
4879         * genattrtab.c (write_insn_cases): New function, split out from
4880         write_attr_case.  Correctly handle define_peepholes when printing
4881         the instruction name.
4882         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
4884 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
4886         PR target/17377
4887         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
4888         * config/cris/cris.c (cris_return_address_on_stack): New function.
4889         * config/cris/cris.md ("return"): For location of return address,
4890         also check cris_return_address_on_stack.
4892 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
4894         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
4895         calling phi_ssa_name_p.
4897 2004-09-09  Richard Henderson  <rth@redhat.com>
4899         PR c/17322
4900         * c-typeck.c (valid_compound_expr_initializer): Use only
4901         initializer_constant_valid_p, and not TREE_CONSTANT.
4902         (digest_init): Likewise.
4903         (output_init_element): Likewise.
4905 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
4907         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
4908         live_out_1, prune_hardregs_for_mode, init_one_web_common,
4909         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
4910         record_conflict, compare_and_free_webs, init_webs_defs_uses,
4911         parts_to_webs_1, parts_to_webs, reset_conflicts,
4912         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
4913         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
4914         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
4915         put_move, remove_move, combine, select_spill, colorize_one_web,
4916         try_recolor_web, insert_coalesced_conflicts, check_colors,
4917         break_precolored_alias, restore_conflicts_from_coalesce,
4918         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
4919         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
4920         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
4921         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
4922         check_df): Likewise.
4923         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
4924         real_arithmetic, real_compare, real_exponent, real_ldexp,
4925         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
4926         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
4927         real_digit, real_nan, real_maxval, round_for_format, real_convert,
4928         real_to_target, real_from_target, real_hash, encode_ieee_single,
4929         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
4930         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
4931         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
4932         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
4933         extract_insn, peep2_next_insn, peep2_reg_dead_p,
4934         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
4935         if_test_bypass_p): Likewise.
4936         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
4937         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
4938         emit_swap_insn, swap_to_top, move_for_stack_reg,
4939         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
4940         compensate_edge, convert_regs_1): Likewise.
4941         * regclass.c (init_reg_sets, init_reg_sets_1,
4942         memory_move_secondary_cost): Likewise.
4943         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
4944         Likewise.
4945         * reload.c (push_secondary_reload, find_valid_class, push_reload,
4946         operands_match_p, decompose, immune_p, find_reloads,
4947         find_reloads_toplev, find_reloads_address_1, subst_reloads,
4948         copy_replacements, refers_to_regno_for_reload_p,
4949         reg_overlap_mentioned_for_reload_p): Likewise.
4950         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
4951         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
4952         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
4953         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
4954         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
4955         do_output_reload, fixup_abnormal_edges): Likewise.
4956         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
4957         fill_slots_from_thread, relax_delay_slots): Likewise.
4958         * resource.c (mark_referenced_resources, mark_set_resources):
4959         Likewise.
4960         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
4961         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
4962         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
4963         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
4964         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
4965         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
4966         * rtlhooks.c (gen_lowpart_general): Likewise.
4967         * sbitmap.c (sbitmap_difference): Likewise.
4968         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
4969         sched_analyze, add_forward_dependence): Likewise.
4970         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
4971         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
4972         schedule_insns): Likewise.
4973         * sched-vis.c (print_pattern): Likewise.
4974         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
4975         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
4976         simplify_const_relational_operation, simplify_ternary_operation,
4977         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
4978         Likewise.
4979         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
4980         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
4981         resolve_operand_name_1, expand_return, expand_decl,
4982         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
4983         * stor-layout.c (put_pending_size, smallest_mode_for_size,
4984         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
4985         set_sizetype, get_mode_bounds): Likewise.
4987 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
4989         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
4990         * config/arm/pecoff.h, config/i386/beos-elf.h
4991         * config/i386/cygming.h, config/i386/i386-interix.h:
4992         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
4993         comment cloned from manual.
4994         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
4996 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
4998         * builtins.c (build_va_arg_indirect_ref): New function.
4999         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
5000         build_fold_indirect_ref.
5001         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
5002         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
5003         * tree.h: Declare new function.
5005 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5007         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
5008         dumping for development builds.
5009         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
5010         development builds only.
5011         * genattrtab.c (write_eligible_delay): Fix typo in previous
5012         commit.
5013         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
5014         gcc_assert.
5016 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5018         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
5019         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
5020         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
5021         hoist_code, extract_mentioned_regs_helper, compute_store_table,
5022         insert_store): Use gcc_assert and gcc_unreachable.
5023         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
5024         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
5025         ggc_record_overhead): Likewise.
5026         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
5027         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
5028         ggc_pop_context, clear_marks, validate_free_objects,
5029         ggc_pch_read): Likewise.
5030         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
5031         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
5032         ggc_push_context, check_cookies, ggc_collect,
5033         ggc_print_statistics): Likewise.
5034         * gimple-low.c (lower_function_body, lower_stmt,
5035         lower_bind_expr): Likewise.
5036         * gimplify.c (gimple_tree_eq, push_gimplify_context,
5037         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
5038         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
5039         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
5040         gimplify_case_label_expr, gimplify_exit_block_expr,
5041         canonicalize_component_ref, gimplify_compound_lval,
5042         gimplify_self_mod_expr, gimplify_call_expr,
5043         gimplify_init_ctor_eval, gimplify_init_constructor,
5044         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
5045         gimplify_expr, check_pointer_types_r,
5046         force_gimple_operand): Likewise.
5047         * global.c (global_alloc, build_insn_chain): Likewise.
5048         * graph.c (clean_graph_dump_file,
5049         finish_graph_dump_file): Likewise.
5050         gcov-io.c (gcov_open): Use GCOV_CHECK.
5052 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
5054         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
5056 2004-09-09  Jan Hubicka  <jh@suse.cz>
5058         middle-end/17128
5059         * tree-inline.c (expand_call_inline): Make overactive sanity check
5060         happy.
5062 2004-09-09  Jan Hubicka  <jh@suse.cz>
5064         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
5065         VIEW_CONVERT_EXPR.
5067 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5069         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
5070         (gengtype.o): Depend on errors.h.
5071         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
5072         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
5073         attr_alt_subset_p, attr_alt_subset_of_compl_p,
5074         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
5075         write_test_expr, write_attr_value, write_eligible_delay,
5076         make_internal_attr, make_numeric_value): Likewise.
5077         * genautomata.c (regexp_name, get_str_vect,
5078         gen_presence_absence_set, automaton_decl_hash,
5079         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
5080         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
5081         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
5082         test_unit_reserv, it_is_empty_reserv_sets,
5083         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
5084         reserv_sets_and, output_cycle_reservs, get_free_state,
5085         intersected_state_reservs_p, states_union, remove_arc,
5086         copy_insn_regexp, transform_1, transform_2, transform_3,
5087         regexp_transform_func, store_alt_unit_usage,
5088         check_regexp_units_distribution, process_seq_for_forming_states,
5089         process_alts_for_forming_states, make_automaton,
5090         form_arcs_marked_by_insn, create_composed_state,
5091         set_out_arc_insns_equiv_num, partition_equiv_class,
5092         process_insn_equiv_class, set_insn_equiv_classes,
5093         units_to_automata_heuristic_distr, form_regexp,
5094         longest_path_length, output_dfa_max_issue_rate, add_vect,
5095         out_state_arcs_num, add_vect_el, output_trans_table,
5096         output_state_alts_table, output_dead_lock_vect,
5097         output_max_insn_queue_index_def,
5098         output_min_insn_conflict_delay_func,
5099         output_internal_insn_latency_func, output_print_reservation_func,
5100         output_cpu_unit_reservation_p, output_state_arcs,
5101         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
5102         make_default_insn_latency_attr,
5103         form_important_insn_automata_lists): Likewise.
5104         * genemit.c (gen_exp, output_add_clobbers,
5105         output_added_clobbers_hard_reg_p): Likewise.
5106         * genextract.c (print_path, main): Likewise.
5107         * genflags.c (gen_macro): Likewise.
5108         * gengenrtl.c: Include errors.h
5109         (type_from_format, accessor_from_format): Likewise.
5110         * gengtype.c (get_file_basename, output_mangled_typename,
5111         walk_type, write_types_process_field,
5112         write_types_local_process_field): Likewise.
5113         * genmodes.c (complete_mode): Likewise.
5114         * genopinit.c (gen_insn): Likewise.
5115         * genoutput.c (output_insn_data, check_constraint_len,
5116         constraint_len): Likewise.
5117         * genpreds.c (add_mode_tests):Likewise.
5118         * gen-protos.c (add_hash): Likewise.
5119         * genrecog.c (find_operand, find_matching_operand,
5120         validate_pattern, add_to_sequence, maybe_both_true,
5121         nodes_identical_1, merge_trees, write_switch, write_cond,
5122         write_action, is_unconditional, make_insn_sequence,
5123         debug_decision_2): Likewise.
5124         * gensupport.c (is_predicable, collect_insn_data,
5125         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
5127 2004-09-09  Jan Hubicka  <jh@suse.cz>
5129         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
5130         * cfgbuild.c (compute_outgoing_frequencies): When probability is
5131         missing, guess it.
5132         (find_many_sub_basic_blocks): Do update profile only when it is
5133         present.
5134         * predict.c (set_even_probabilities): Break out from ...
5135         (combine_predictions_for_insn): ... here; deal with
5136         !can_predict_insn_p insns.
5137         (combine_predictions_for_bb): Use set_even_probabilities.
5138         (bb_estimate_probability_locally): Break out from ....
5139         (estimate_probability): ... here.
5140         (guess_outgoing_edge_probabilities): New entry point.
5142 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5144         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
5145         handle_braces, process_brace_body, main, used_arg,
5146         set_multilib_dir, print_multilib_info): Use fatal, not abort.
5148         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
5150         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
5151         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
5152         Morgan's theorem in last checkin.
5154 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5155             Nathan Sidwell  <nathan@codesourcery.com>
5157         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
5158         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
5159         * timevar.c (timevar_push, timevar_pop, timevar_start,
5160         timevar_stop): Likewise.
5161         * toplev.c (default_pch_valid_p): Likewise.
5162         * tracer.c (tail_duplicate): Likewise.
5163         * tree-alias-common.c (get_alias_var_decl,
5164         get_values_from_constructor, create_alias_var, delete_alias_vars,
5165         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
5166         Likewise.
5167         * tree.c (tree_size, make_node_stat, copy_node_stat,
5168         build_int_cst_wide, integer_all_onesp, list_length, chainon,
5169         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
5170         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
5171         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
5172         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
5173         build_method_type_directly, decl_type_context, get_callee_fndecl,
5174         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
5175         tree_fold_gcd): Likewise.
5176         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
5177         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
5178         cleanup_control_expr_graph, find_taken_edge,
5179         find_taken_edge_switch_expr, phi_alternatives_equal,
5180         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
5181         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
5182         tree_split_edge, tree_verify_flow_info, thread_jumps,
5183         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
5184         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
5185         chrec_fold_multiply_poly_poly): Likewise.
5186         * tree-complex.c (extract_component, expand_complex_division,
5187         expand_complex_comparison, expand_complex_operations_1,
5188         build_replicated_const, expand_vector_operations_1): Likewise.
5189         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
5190         build_classic_dir_vector): Likewise.
5191         * tree-dfa.c (compute_immediate_uses_for_phi,
5192         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
5193         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
5194         * tree-dump.c (dequeue_and_dump): Likewise.
5195         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
5196         record_in_finally_tree, replace_goto_queue_1,
5197         maybe_record_in_goto_queue, verify_norecord_switch_expr,
5198         do_return_redirection): Likewise.
5199         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
5200         add_to_dst_predicate_list, find_phi_replacement_condition,
5201         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
5202         Likewise.
5203         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
5204         initialize_inlined_parameters, declare_return_variable,
5205         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
5206         optimize_inline_calls, copy_tree_r): Likewise.
5207         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
5208         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
5209         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
5210         tsi_split_statement_list_after, tsi_split_statement_list_before):
5211         Likewise.
5212         * tree-mudflap.c (mf_varname_tree): Likewise.
5213         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
5214         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
5215         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5216         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
5217         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
5218         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
5219         Likewise.
5220         * tree-phinodes.c (resize_phi_node, add_phi_arg,
5221         remove_all_phi_nodes_for): Likewise.
5222         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
5223         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
5224         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
5225         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
5226         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
5227         generate_one_element_ref, generate_element_copy,
5228         generate_element_zero, scalarize_copy, scalarize_init,
5229         scalarize_ldst): Likewise.
5230         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
5231         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
5232         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
5233         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
5234         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
5235         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
5236         widen_bitfield, ccp_fold_builtin): Likewise.
5237         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
5238         replace_exp_1, propagate_tree_value): Likewise.
5239         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
5240         * tree-ssa-dce.c (set_control_dependence_map_bit,
5241         find_control_dependence, find_pdom, mark_operand_necessary,
5242         mark_stmt_if_obviously_necessary,
5243         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
5244         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
5245         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
5246         eliminate_redundant_computations, avail_expr_eq): Likewise.
5247         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
5248         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
5249         duplicate_blocks): Likewise.
5250         * tree-ssa-loop-im.c (for_each_index, set_level,
5251         is_call_clobbered_ref): Likewise.
5252         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
5253         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
5254         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
5255         peel_address, ptr_difference_cost, may_replace_final_value,
5256         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
5257         rewrite_use, rewrite_uses): Likewise.
5258         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
5259         check_loop_closed_ssa_use): Likewise.
5260         * tree-ssanames.c (make_ssa_name): Likewise.
5261         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
5262         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
5263         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
5264         get_indirect_ref_operands, add_stmt_operand): Likewise.
5265         * tree-ssa-pre.c (value_exists_in_set_bitmap,
5266         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
5267         phi_translate, valid_in_set, compute_antic,
5268         find_or_generate_expression, create_expression_by_pieces, insert_aux,
5269         create_value_expr_from, eliminate): Likewise.
5270         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
5271         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
5272         Likewise.
5273         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
5274         eliminate_tail_call): Likewise.
5275         * tree-vectorizer.c (vect_create_index_for_array_ref,
5276         vect_align_data_ref, vect_create_data_ref,
5277         vect_create_destination_var, vect_get_vec_def_for_operand,
5278         vect_finish_stmt_generation, vect_transform_stmt,
5279         vect_transform_loop_bound, vect_transform_loop,
5280         vect_analyze_operations): Likewise.
5281         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
5282         Likewise.
5283         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
5284         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
5285         bsi_after_labels, bsi_last): Likewise.
5286         * tree-ssa-live.c (var_union, change_partition_var,
5287         create_ssa_var_map, calculate_live_on_entry, root_var_init,
5288         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
5289         Likewise.
5290         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
5291         tpa_find_tree): Likewise.
5292         (register_ssa_partition_check): Declare.
5293         (register_ssa_partition): use it.
5294         * tree-ssa-live.c: Include errors.h.
5295         (register_ssa_partition_check): New.
5296         * tree-ssa-operands.c: Include errors.h.
5297         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
5299 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
5300             Catherine Moore  <clm@redhat.com>
5302         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
5303         (FRV_CPU_FR405): New processor enums.
5304         (frv_issue_rate, frv_acc_group): Declare.
5305         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
5306         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
5307         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
5308         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
5309         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
5310         handled by CPP_SPEC.
5311         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
5312         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
5313         (ACC_MASK): New macro.
5314         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
5315         (TARGET_MEDIA_FR450): New macro.
5316         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
5317         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
5318         (LABEL_ALIGN_AFTER_BARRIER): Define.
5319         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
5320         (IACC_FIRST, IACC_LAST): New pair of SPRs.
5321         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
5322         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
5323         (REGISTER_NAMES): Add entries for new registers.
5324         (REG_CLASS_CONTENTS): Update for new register ranges.
5325         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
5326         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
5327         (PACKING_FLAG_USED_P): Delete.
5328         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
5329         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
5330         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
5331         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
5332         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
5333         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
5334         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
5335         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
5336         (CPU_UNITS_QUERY): Define to 1.
5337         * config/frv/frv.c: Include gt-frv.h
5338         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
5339         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
5340         (frv_insn_group): New enumeration.
5341         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
5342         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
5343         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
5344         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
5345         gap left by REGSTATE_LIVE.
5346         (regstate_t): New typedef.
5347         (TARGET_MACHINE_DEPENDENT_REORG): Define.
5348         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
5349         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
5350         Initialize frv_unit_codes[] and frv_type_to_unit[].
5351         (frv_conditional_register_usage): Remove redundant fixing of
5352         accumulator registers.
5353         (frv_insn_packing_flag): Update specification.
5354         (frv_function_prologue): Don't set frv_insn_packing_flag here.
5355         Zero out frv_nops[].
5356         (frv_expand_epilogue): Remove comments about the no-longer-present
5357         SIBCALL_P argument.
5358         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
5359         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
5360         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
5361         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
5362         packing is disabled and if INSN can only issue to M1.
5363         (call_operand): Check TARGET_LONG_CALLS.
5364         (acc_operand, even_acc_operand, quad_acc_operand)
5365         (accg_operand): Simplify.  Don't accept pseudo registers.
5366         (output_move_single): Handle SPR<-zero moves.
5367         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
5368         (frv_registers_update, frv_registers_used_p): Delete.
5369         (frv_registers_set_p): Delete.
5370         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
5371         (frv_issues_to_branch_unit_p): New function.
5372         (frv_packet): New structure.
5373         (frv_cond_flags, frv_regstate_conflict_p): New functions.
5374         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
5375         (frv_registers_update_1, frv_registers_update): New functions.
5376         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
5377         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
5378         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
5379         (frv_sort_insn_group, frv_reorder_packet): New functions.
5380         (frv_pack_insns): Use frv_reorder_packet.
5381         (frv_packet_address): New variable.
5382         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
5383         (frv_register_nop, frv_reorg): New functions.
5384         (bdesc_1arg): Add __SCUTSS.
5385         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
5386         __SUBSS, __SLASS and __SCAN.
5387         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
5388         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
5389         (frv_init_builtins): Register the above builtins.
5390         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
5391         registers.  Turn the referenced accumulators into global registers.
5392         (frv_read_iacc_argument): New function.
5393         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
5394         (frv_split_iacc_move): New function.
5395         (frv_expand_builtin): Handle the new builtins.
5396         * config/frv/frv.md: Replace old schedulers with new order-independent
5397         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
5398         packing algorithm.
5399         (cpu): Add fr550, fr450 and fr405.
5400         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
5401         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
5402         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
5403         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
5404         (fnop, mnop): New patterns.
5405         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
5406         New constants.
5407         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
5408         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
5409         registers.
5410         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
5411         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
5412         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
5413         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
5414         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
5415         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
5416         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
5417         (frv_prefetch0, frv_prefetch): New patterns.
5418         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
5419         -mcpu=simple.  Add -mcpu=fr550.
5420         (MULTILIB_DIRNAMES): Update accordingly.
5421         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
5422         -mcpu=fr450.
5423         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
5424         -mlong-calls and -malign-labels options for FR-V.
5426 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
5428         PR c/8420
5429         * c-tree.h (struct c_declspecs): New.
5430         (struct c_declarator, struct c_type_name, struct c_parm): Update
5431         element types.
5432         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
5433         start_function, start_decl, build_c_parm,
5434         make_pointer_declarator): Update prototypes.
5435         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
5436         declspecs_add_scspec, declspecs_add_attrs): New.
5437         (split_specs_attrs): Remove.
5438         * c-parse.in (%union): Add dsptype.
5439         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
5440         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
5441         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
5442         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
5443         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
5444         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
5445         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
5446         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
5447         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
5448         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
5449         maybe_type_quals_attrs): Change to dsptype.
5450         (struct c_declspec_stack): New.
5451         (current_declspecs, declspec_stack): Change type.
5452         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
5453         structures.
5454         (extdefs): Likewise.
5455         (setspecs): Likewise.
5456         (fndef): Use current_declspecs for empty declspecs list.
5457         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
5458         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
5459         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
5460         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
5461         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
5462         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
5463         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
5464         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
5465         structures and helper functions.  Update comments.
5466         (typespec_nonattr): Correct comment.
5467         (maybe_type_quals_attrs, typename): Update to new structures.
5468         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
5469         shadow_tag, shadow_tag_warned, start_function, start_decl,
5470         build_c_parm, make_pointer_declarator,
5471         set_array_declarator_inner, groktypename): Update to new
5472         structures.
5473         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
5474         declspecs_add_scspec, declspecs_add_attrs): New.
5475         (split_specs_attrs): Remove.
5476         (shadow_tag_warned): Make warning for useless type names a
5477         pedwarn.  Give hard error for long, short, signed, unsigned or
5478         _Complex used with struct, union or enum in empty declaration.
5479         Make found_tag a bool.
5480         (grokdeclarator): Remove checks now done at parse time.
5482 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
5484         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
5485         c_declarator, struct c_type_name, struct c_parm): New.
5486         (build_array_declarator, set_array_declarator_inner,
5487         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
5488         start_function, start_decl, build_c_parm, build_attrs_declarator,
5489         build_function_declarator, make_pointer_declarator, c_cast_expr,
5490         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
5491         (build_id_declarator): New.
5492         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
5493         structures.
5494         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
5495         ARG_INFO_OTHERS): Remove.
5496         (build_id_declarator): New.
5497         (build_array_declarator, set_array_declarator_inner, groktypename,
5498         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
5499         grokfield, start_function, store_parm_decls_newstyle,
5500         store_parm_decls_oldstyle, store_parm_decls,
5501         build_c_parm, build_attrs_declarator, build_function_declarator,
5502         make_pointer_declarator, grokdeclarator): Update to new
5503         structures.
5504         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
5505         parmtype.
5506         (declarator, notype_declarator, after_type_declarator,
5507         parm_declarator, parm_declarator_starttypename,
5508         parm_declarator_nostarttypename, array_declarator, typename,
5509         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
5510         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
5511         parmlist_1, parmlist_2, parmlist_or_identifiers,
5512         parmlist_or_identifiers_1): Use these types.
5513         (primary, after_type_declarator, parm_declarator_starttypename,
5514         notype_declarator, component_decl, component_declarator,
5515         component_notype_declarator, typename, absdcl,
5516         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
5517         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
5519 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
5521         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
5522         in_typeof, record_maybe_used_decl, pop_maybe_used,
5523         c_expr_sizeof_expr, c_expr_sizeof_type): New.
5524         * c-decl.c (parser_obstack): New.
5525         (c_init_decl_processing): Initialize parser_obstack.
5526         (c_write_global_declarations_1): Check for used but undefined
5527         static functions.
5528         * c-parse.in (%union): Add otype.
5529         (save_obstack_position): New.
5530         (extdefs): Use it.
5531         (unary_expr): Update in_sizeof and in_alignof.  Use
5532         c_expr_sizeof_expr and c_expr_sizeof_type.
5533         (sizeof): Update in_sizeof.
5534         (alignof): Update in_alignof.
5535         (typeof): Update in_typeof.
5536         (typespec_nonreserved_nonattr): Call pop_maybe_used.
5537         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
5538         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
5539         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
5540         (build_external_ref): Set C_DECL_USED or call
5541         record_maybe_used_decl if appropriate.
5542         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
5544 2004-09-08  Eric Christopher  <echristo@redhat.com>
5546         * builtins.c: Fix prototype for fold_builtin_atan.
5548 2004-09-08  Eric Christopher  <echristo@redhat.com>
5550         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
5551         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
5552         fold_builtin_atan): New functions. Migrate function bodies...
5553         (fold_builtin_1): ... from here.
5555 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
5557         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
5558         save_size.
5560 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
5562         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
5563         * config/rs6000/power5.md (power5-lmul): Same.
5565 2004-09-08  Richard Henderson  <rth@redhat.com>
5567         PR rtl-opt/17186
5568         * function.c (expand_function_end): Have fall-off-the-end
5569         return path jump around return register setup.
5571 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
5573         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
5574         (output_return): Do not test for the presence of the 'unimp' insn.
5575         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
5576         as predicates instead of custom ones.  Return raw strings when
5577         possible.
5578         (output_sibcall): Likewise.  Concatenate strings.
5579         (output_ubranch): Remove kludge for TurboSPARC.
5580         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
5581         (output_v9branch): Likewise.
5582         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
5583         <#>: Set sparc_indent_opcode if the delay slot is filled.
5584         <(>: Likewise.
5585         <)>: New operand to emit the displacement from the saved PC on return.
5586         <@>: Remove.
5587         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
5588         (ASM_OUTPUT_OPCODE): New macro.
5589         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
5590         * config/sparc/sparc.md (normal_branch, inverted_branch,
5591         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5592         inverted_fpe_branch): Adjust call to output_cbranch.
5593         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
5594         call to output_v9branch.
5595         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
5596         (output_v9branch): Likewise.
5598 2004-09-08  Devang Patel  <dpatel@apple.com>
5600         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
5601         -segs_read_only_addr and -segs_read_write_addr.
5602         (WORD_SWITCH_TAKES_ARG): Same.
5603         (LINK_SPEC): Same.
5604         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
5605         -segs_read_write_addr.
5607 2004-09-08  Richard Henderson  <rth@redhat.com>
5609         * function.c (reference_callee_copied): New.
5610         (assign_parm_setup_reg): Use it.
5611         * calls.c (initialize_argument_information): Likewise.
5612         (emit_library_call_value_1): Likewise.
5613         * function.h (reference_callee_copied): Declare.
5615         * target.h (struct gcc_target): Add callee_copies.
5616         * target-def.h (TARGET_CALLEE_COPIES): New.
5617         (TARGET_PASS_BY_REFERENCE): Update default.
5618         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5619         * targhooks.c (hook_callee_copies_named): New.
5620         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
5621         hook_pass_by_reference_false.
5622         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
5623         * targhooks.h: Update decls.
5624         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
5625         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5626         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
5627         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
5628         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5629         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
5630         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5631         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
5632         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5633         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
5634         (mips_callee_copies): New.
5635         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5636         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
5637         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5638         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
5639         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5640         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
5641         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5642         * config/sh/sh.c (sh_callee_copies): New.
5643         (TARGET_CALLEE_COPIES): New.
5644         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5645         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
5646         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5647         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
5648         for FUNCTION_ARG_CALLEE_COPIES.
5649         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
5651 2004-09-08  Devang Patel  <dpatel@apple.com>
5653         * tree-if-conv.c (find_phi_replacement_condition): Return true
5654         edge block.
5655         (replace_phi_with_cond_modify_expr): Select conditional expr args
5656         based on true edge basic block.
5658 2004-09-08  Jan Hubicka  <jh@suse.cz>
5660         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
5661         variables being alias set.
5663 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
5665         * final.c (shorten_branches, final, get_insn_template,
5666         output_alternate_entry_point, final_scan_insn, alter_subreg,
5667         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
5668         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
5669         * fix-header.c (lookup_std_proto): Likewise.
5670         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
5671         verify_local_live_at_start, update_life_info, mark_reg,
5672         calculate_global_regs_live, allocate_reg_life_data,
5673         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
5674         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
5675         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
5676         * fold-const.c (force_fit_type, div_and_round_double,
5677         may_negate_without_overflow_p, int_const_binop, const_binop,
5678         size_binop, size_diffop, fold_convert_const, fold_convert,
5679         invert_tree_comparison, swap_tree_comparison,
5680         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
5681         range_binop, make_range, fold_cond_expr_with_comparison,
5682         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
5683         fold_abs_const, fold_not_const, fold_relational_const, round_up,
5684         round_down): Likewise.
5685         * function.c (find_function_data, assign_stack_temp_for_type,
5686         instantiate_virtual_regs_lossage, aggregate_value_p,
5687         assign_parm_find_entry_rtl, assign_parm_setup_block,
5688         expand_function_start, expand_function_end, keep_stack_depressed,
5689         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
5691 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
5693         * Makefile.in (tree-loop-linear.o): Added.
5694         (OBJS-common): Add tree-loop-linear.o
5695         * common.opt: New flag, ftree-loop-linear.
5696         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
5697         * tree-flow.h: Add prototype for linear_transform_loops.
5698         * tree-optimize.c: Add linear transform after vectorization.
5699         * tree-pass.h: Add struct pass_linear_transform.
5700         * tree-ssa-loop.c: Add pass_linear_transform.
5701         * tree-loop-linear.c: New file.
5702         * lambda-code.c: gcc_assertify.
5703         (gcc_loop_to_lambda_loop): Handle all exit tests.
5704         Handle case where we have (invariant >= induction var).
5705         (find_induction_var_from_exit_cond): Ditto.
5707 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
5709         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
5710         memory tag is call clobbered, so are its aliases.
5711         (group_aliases): When two memory tags being grouped, if one is
5712         call clobbered, so are the other and its aliases.
5713         (add_may_alias): Remove call-clobbering stuff.
5714         (replace_may_alias): Likewise.
5715         (merge_pointed_to_info): Merge pt_global_mem
5717 2004-09-08  Jan Hubicka  <jh@suse.cz>
5719         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
5720         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
5721         (cgraph_expand_function): Remove stale cgraph edges of currently
5722         compiled function; fix non-unit-at-a-time code copying function
5723         node for later reuse.
5725 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
5727         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
5728         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
5729         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
5730         (vec_gc_free, vec_heap_free): New.
5731         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
5732         (DEF_VEC_P): Add allocator argument. Adjust.
5733         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
5734         (DEF_VEC_O): Add allocator argument. Adjust.
5735         (VEC(free)): New.
5737         * tree.h (tree): Define a GC'd vector.
5738         * lamba-code.c (lambda_loop): Likewise.
5739         * value-prof.h (histogram_value): Likewise.
5741 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
5743         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
5744         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
5745         gen_lowpart_common, gen_highpart, gen_highpart_mode,
5746         subreg_highpart_offset, operand_subword, operand_subword_force,
5747         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
5748         set_mem_alias_set, change_address_1, verify_rtx_sharing,
5749         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
5750         try_split, add_insn_after, add_insn_before, remove_insn,
5751         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
5752         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
5753         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
5754         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
5755         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
5756         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
5757         record_path_before_1, check_path_after_1, check_path_after): Likewise.
5758         * except.c (gen_eh_region, resolve_one_fixup_region,
5759         remove_unreachable_regions, convert_from_eh_region_ranges_1,
5760         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
5761         connect_post_landing_pads, sjlj_emit_function_exit,
5762         remove_exception_handler_label, remove_eh_handler,
5763         reachable_next_level, collect_one_action_chain,
5764         output_function_exception_table): Likewise.
5765         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
5766         optimize_save_area_alloca, allocate_dynamic_stack_space,
5767         probe_stack_range, hard_function_value): Likewise.
5768         * expmed.c (mode_for_extraction, store_bit_field,
5769         store_fixed_bit_field, extract_bit_field, expand_shift,
5770         expand_mult_const, expand_mult, choose_multiplier,
5771         expand_mult_highpart, expand_divmod, emit_store_flag,
5772         do_cmp_and_jump): Likewise.
5773         * expr.c (convert_move, convert_modes, move_by_pieces,
5774         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
5775         move_block_from_reg, gen_group_rtx, emit_group_load,
5776         emit_group_move, emit_group_store, use_reg, use_regs,
5777         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
5778         emit_move_insn, emit_move_insn_1, emit_push_insn,
5779         expand_assignment, store_expr, count_type_elements,
5780         store_constructor, store_field, safe_from_p, expand_var,
5781         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
5783 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
5785         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
5786         gcc_assert and gcc_unreachable.
5787         * ddg.c (create_ddg_dependence, add_deps_for_def,
5788         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
5789         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
5790         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
5791         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
5792         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
5793         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
5794         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
5795         dataflow_set_copy, hybrid_search, diagnostic.c,
5796         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
5797         * dojump.c (do_jump): Likewise.
5798         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
5799         compute_dom_fast_query, calculate_dominance_info,
5800         free_dominance_info, get_immediate_dominator,
5801         set_immediate_dominator, get_dominated_by,
5802         redirect_immediate_dominators, nearest_common_dominator,
5803         dominated_by_p, verify_dominators, recount_dominator,
5804         iterate_fix_dominators, add_to_dominance_info,
5805         delete_from_dominance_info): Likewise.
5806         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
5807         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
5808         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
5809         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
5810         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
5811         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
5812         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
5813         output_call_frame_info, output_loc_operands, build_cfa_loc,
5814         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
5815         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
5816         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
5817         splice_child_die, attr_checksum, same_dw_val_p,
5818         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
5819         unmark_dies, value_format, output_loc_list, output_die,
5820         output_pubnames, output_aranges, base_type_die, is_base_type,
5821         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
5822         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
5823         field_byte_offset, add_data_member_location_attribute,
5824         add_const_value_attribute, rtl_for_decl_location,
5825         add_location_or_const_value_attribute, add_byte_size_attribute,
5826         add_bit_offset_attribute, add_bit_size_attribute,
5827         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
5828         decl_start_label, gen_formal_parameter_die,
5829         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
5830         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
5831         force_decl_die, force_type_die, gen_decl_die,
5832         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
5833         dwarf2out_finish): Likewise.
5835 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
5837         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
5838         * builtins.c: Include tree-mudflap.h.
5840 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
5842         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
5843         force operand 0.0 into register in XFmode. Also do not force
5844         operand 0.0 into register if !TARGET_CMOVE.
5845         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
5846         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
5847         implement ftst x87 instruction.
5848         (*fp_jcc_7): New insn pattern. Change corresponding split
5849         pattern to handle "general_operand" instead of
5850         "nonimmediate_operand".
5852 2004-09-08  Ben Elliston  <bje@au.ibm.com>
5854         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
5856 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
5858         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
5859         generated from standard va_arg expansion.
5860         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
5861         marked nodes.
5862         (mf_varname_tree, mf_file_function_line_tree): Add some support
5863         for column numbers if compiled with USE_MAPPED_LOCATION.
5865 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
5867         * c-decl.c (groktypename_in_parm_context): Remove function.
5868         * c-tree.h (groktypename_in_parm_context): Remove prototype.
5870 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
5872         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
5873         * c-parse.in: Include c-common.h instead of objc-act.h.
5874         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
5875         myparms, myparm): Remove %type declarations.
5876         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
5877         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
5878         declarations.
5879         (objc_inherit_code, objc_public_flag): Remove.
5880         (typespec_nonreserved_nonattr): Call
5881         objc_get_protocol_qualified_type() instead of get_static_reference()
5882         and get_protocol_reference().
5883         (stmt_nocomp): Call grokparm() on @catch parameter.
5884         (objcdef): Move semantic action to objc_finish_implementation().
5885         (classdef): Move semantic action to objc_start_class_interface(),
5886         objc_continue_interface(), objc_finish_interface(),
5887         objc_start_class_implementation(), objc_continue_implementation(),
5888         objc_start_category_interface() and
5889         objc_start_category_implementation().
5890         (protocoldef): Move semantic actions to objc_start_protocol() and
5891         objc_finish_interface().
5892         (ivar_decl_list): Remove nonterminal.
5893         (visibility_spec): Move semantic actions to objc_set_visibility().
5894         (ivar_decls): Remove assignment to $$.
5895         (ivar_decl): Rephrase in terms of component_decl; call
5896         objc_add_instance_variable().
5897         (ivars, ivar_declarator): Remove nonterminals.
5898         (opt_semi): New nonterminal.
5899         (methodtype): Remove semantic actions.
5900         (methoddef): Move semantic actions to objc_set_method_type(),
5901         objc_start_method_definition() and objc_finish_method_definition().
5902         (methodproto): Move semantic actions to objc_set_method_type() and
5903         objc_add_method_declaration().
5904         (methoddecl): Use objc_typename instead of typename; move semantic
5905         actions to objc_build_method_signature().
5906         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
5907         (optparmlist): Express in terms of optparms and optellipsis.
5908         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
5909         nonterminals.
5910         (keyworddecl): Use objc_typename instead of typename.
5911         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
5912         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
5914 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
5916         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
5917         (MD_FALLBACK_FRAME_STATE_FOR): Update.
5918         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
5919         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
5920         (MD_FROB_UPDATE_CONTEXT): Remove default.
5921         (uw_update_context_1): Instead #ifdef invocation.
5922         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
5923         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
5924         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
5925         (MD_UNWIND_SUPPORT): Undefine this instead.
5926         * config/i386/gnu.h: Likewise.
5927         * config/alpha/linux-unwind.h: New file, macro converted to
5928         function, extracted from..
5929         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
5930         (MD_UNWIND_SUPPORT): Define.
5931         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
5932         * config/i386/linux-unwind.h, config/i386/linux.h,
5933         config/i386/linux64.h: Likewise.
5934         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
5935         MD_HANDLE_UNWABI too.
5936         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
5937         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
5938         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
5939         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
5940         * config/sparc/linux-unwind.h, config/sparc/linux.h,
5941         config/sparc/linux64.h: Likewise.
5942         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
5943         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
5944         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
5945         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
5946         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
5948 2004-09-07  Jan Hubicka  <jh@suse.cz>
5950         * cse.c (fold_rtx):  Avoid building of
5951         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
5953         * tree-ssa-pre.c (grand_bitmap_obstack): New.
5954         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
5955         (init_pre): Initialize obstack.
5956         (fini_pre): Free obstack.
5958 2004-09-07  David Daney  <ddaney@avtrex.com>
5960         * config.gcc: Added support for --with-divide=[breaks|traps] for
5961         mips targets.
5962         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
5963         (TARGET_DIVIDE_TRAPS): New macro.
5964         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
5965         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
5966         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
5967         GENERATE_DIVIDE_TRAPS.
5968         (mips_output_division): Emit conditional trap if
5969         GENERATE_DIVIDE_TRAPS is set.
5970         * doc/install.texi: Document --with-divide.
5971         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
5973 2004-09-07  Caroline Tice  <ctice@apple.com>
5975         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
5976         EDGE_CROSSING, to flags test case.
5978 2004-09-07  Jan Hubicka  <jh@suse.cz>
5980         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
5981         class too.
5983 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
5985         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
5986         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
5987         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
5988         or gcc_unreachable.
5989         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
5990         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
5991         alloc_aux_for_edges, free_aux_for_edges): Likewise.
5992         * cfgcleanup.c (try_forward_edges,
5993         merge_blocks_move_predecessor_nojumps,
5994         merge_blocks_move_successor_nojumps): Likewise.
5995         * cfgexpand.c (expand_gimple_cond_expr,
5996         expand_gimple_tailcall): Likewise.
5997         * cfghooks.c (duplicate_block): Likewise.
5998         * cfglayout.c (record_effective_endpoints,
5999         insn_locators_initialize, change_scope, fixup_reorder_chain,
6000         verify_insn_chain, fixup_fallthru_exit_predecessor,
6001         duplicate_insn_chain, cfg_layout_finalize): Likewise.
6002         * cfgloopanal.c (check_irred): Likewise.
6003         * cfgloop.c (superloop_at_depth, flow_loops_free,
6004         flow_loop_entry_edges_find, flow_loops_find,
6005         flow_loop_outside_edge_p, get_loop_body,
6006         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
6007         get_loop_exit_edges, num_loop_branches, cancel_loop,
6008         verify_loop_structure): Likewise.
6009         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
6010         duplicate_loop_to_header_edge, create_preheader,
6011         create_loop_notes): Likewise.
6012         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
6013         edirect_branch_edge, force_nonfallthru_and_redirect,
6014         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
6015         commit_edge_insertions, commit_edge_insertions_watch_calls,
6016         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
6017         cfg_layout_redirect_edge_and_branch_force,
6018         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
6019         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
6020         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
6021         cgraph_varpool_node): Likewise.
6022         * cgraphunit.c (cgraph_finalize_function,
6023         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
6024         cgraph_expand_function, cgraph_remove_unreachable_nodes,
6025         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6026         cgraph_mark_inline, cgraph_expand_all_functions,
6027         cgraph_build_static_cdtor): Likewise.
6028         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
6029         simplify_logical, distribute_notes, insn_cuid): Likewise.
6030         * conflict.c (conflict_graph_add, print_conflict): Likewise.
6031         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
6032         coverage_checksum_string): Likewise.
6033         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
6034         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
6035         cse_cc_succs, cse_condition_code_reg): Likewise.
6036         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
6037         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
6038         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
6039         cselib_record_set): Likewise.
6041 2004-09-07  Jan Hubicka  <jh@suse.cz>
6043         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
6045 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
6047         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
6048         fold_convert.
6049         (fold_builtin_strpbrk): Likewise.
6050         * expr.c (array_ref_low_bound): Likewise.
6051         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
6052         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
6053         * tree-sra.c (generate_element_zero): Likewise.
6054         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
6055         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
6056         add_old_iv_candidates, add_iv_candidates): Likewise.
6057         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
6059 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
6061         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
6062         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
6063         c_expand_expr, boolean_increment, nonnull_check_p,
6064         check_function_arguments_recurse, fold_offsetof_1): Likewise.
6065         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
6066         builtin_define_type_max): Likewise.
6067         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
6068         implicit_decl_warning, builtin_function, build_compound_literal,
6069         complete_array_type, grokdeclarator, get_parm_info,
6070         start_function, store_parm_decls_oldstyle,
6071         c_write_global_declarations): Likewise.
6072         * c-format.c (get_constant, decode_format_attr,
6073         maybe_read_dollar_number, get_flag_spec, check_format_arg,
6074         check_format_types, format_type_warning,
6075         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
6076         init_dynamic_diag_info, handle_format_attribute): Likewise.
6077         * c-gimplify.c (push_context, pop_context, finish_bc_block):
6078         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
6079         * c-objc-common.c (c_tree_printer): Likewise.
6080         * c-pch.c (pch_init): Likewise.
6081         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
6082         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
6083         * c-typeck.c (c_incomplete_type_error, composite_type,
6084         common_pointer_type, common_type, same_translation_unit_p,
6085         tagged_types_tu_compatible_p, finish_init, pop_init_level,
6086         set_designator, set_nonincremental_init_from_string,
6087         process_init_element, c_finish_if_stmt): Likewise.
6088         * caller-save.c (init_caller_save, save_call_clobbered_regs,
6089         insert_restore, insert_save, insert_one_insn): Likewise.
6090         * calls.c (emit_call_1, compute_argument_block_size,
6091         precompute_arguments, expand_call, emit_library_call_value_1,
6092         store_one_arg): Likewise.
6094 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
6096         * configure.ac (enable-checking): Add release option. Reorganize
6097         to avoid repetition.
6098         * configure: Rebuilt.
6099         * doc/install.texi (enable-checking): Amend documentation.
6101 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6103         PR bootstrap/17313
6104         * Makefile.in (specs.ready): Depend on cc1$(exeext).
6106 2004-09-06  James E Wilson  <wilson@specifixinc.com>
6108         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
6109         movdf_hardfloat_32bit): Split fG into two alternatives.
6110         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
6112         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
6114 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
6116         * final.c (output_in_slot): Delete.
6117         (final_scan_insn): Revert 2004-09-03 change.
6118         (output_asm_insn): Likewise.
6119         * config/sparc/sparc.c (output_return): Likewise.
6120         (output_sibcall): Likewise.
6122 2004-09-06  Jan Hubicka  <jh@suse.cz>
6124         * loop.c (loop_dump_aux): Do not print RTL when not available.
6125         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
6126         frontend specific type nodes.
6127         (produce_memory_decl_rtl): Break out from ...
6128         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
6129         (get_computation_at): Avoid random tree sharing.
6130         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
6132 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
6134         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
6135         unnecessary commands.
6137 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
6139         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
6140         (bitmap.o): Likewise.
6142 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
6144         Unify the management of RTL and tree-level dump files.
6146         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
6147         Don't print function name to the dump file, the pass manager
6148         would do this for us. Add code from the top of
6149         rest_of_compilation, up to the initial RTL dump.
6150         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
6151         close the DFI_sibling dump file.
6152         (rest_of_compilation): Don't do that here.  Remove code up to the
6153         initial RTL dump.
6154         (init_optimization_passes): Remove.
6155         (pass_rest_of_compilation): Change pass name to NULL.
6156         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
6157         Do not call init_optimization_passes.
6158         * toplev.h (init_optimization_passes): Remove.
6160         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
6161         finish_graph_dump_file): Remove SUFFIX parameter.
6162         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
6163         finish_graph_dump_file): Likewise.
6165         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
6166         * cfgexpand.c (pass_expand): Adjust.
6167         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
6168         * passes.c (pass_rest_of_compilation): Adjust.
6169         * predict.c (pass_profile): Adjust.
6170         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
6171         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
6172         pass_split_crit_edges, pass_warn_function_return): Adjust.
6173         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
6174         * tree-dfa.c (pass_referenced_vars): Adjust.
6175         * tree-eh.c (pass_lower_eh): Adjust.
6176         * tree-if-conv.c (pass_build_ssa): Adjust.
6177         * tree-into-ssa.c (pass_build_ssa): Adjust.
6178         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
6179         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
6180         * tree-nrv.c (pass_nrv): Adjust.
6181         * tree-optimize.c (pass_gimple, pass_all_optimizations,
6182         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
6183         pass_init_datastructures): Adjust.
6184         * tree-outof-ssa.c (pass_del_ssa): Adjust.
6185         * tree-profile.c (pass_tree_profile): Adjust.
6186         * tree-sra.c (pass_sra): Adjust.
6187         * tree-ssa-alias.c (pass_may_alias): Adjust.
6188         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
6189         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
6190         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
6191         * tree-ssa-dom.c (pass_dominator): Adjust.
6192         * tree-ssa-dse.c (pass_dse): Adjust.
6193         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
6194         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
6195         * tree-ssa-loop-ch.c (pass_ch): Adjust.
6196         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
6197         pass_loop_done, pass_complete_unroll, pass_iv_canon,
6198         pass_iv_optimize, pass_vectorize): Adjust.
6199         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
6200         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
6201         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
6202         pass_late_warn_uninnitialized): Adjust.
6203         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
6205         * Makefile.in (tree-dump.o): Add new dependencies.
6206         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
6207         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
6208         Likewise.
6209         * toplev.c (dump_file_name): New.
6210         * tree-dump.c (dump_enable_all): Add LETTER parameter.
6211         (struct dump_file_info): Add NUM and LETTER fields.
6212         (dump_files): Adjust and add RTL dump files.
6213         (dump_register): Add NUM and LETTER fields.
6214         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
6215         (dump_begin): Use get_dump_file_name.
6216         (dump_switch_p_1): Adjust call to dump_enable_all.
6217         * tree-dump.h (dump_register): Adjust prototype.
6218         * tree-optimize.c (register_one_dump_file): Take dump file index.
6219         Support flags for RTL dumps.
6220         (register_dump_files): Fill in NUM field of struct dump_file_info.
6221         Track properties both when the gate is executed and when it is not.
6222         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
6223         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
6224         dumps of RTL.
6225         * tree-pass.h (dump_file_name): New.
6226         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
6227         New.
6229         * Makefile.in (passes.o): Add new dependencies.
6230         * passes.c (struct dump_file_info, enum dump_file_index,
6231         dump_file_tbl, init_optimization_passes): Remove.
6232         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
6233         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
6234         dump_enabled_p.
6235         (finish_optimization_passes): Update finish_graph_dump_file loop.
6236         (enable_rtl_dump_file): Remove.
6237         * tree-dump.c (dump_files): Adjust and add RTL dump files.
6238         (enable_rtl_dump_file): Add here.
6239         * tree.h (enum tree_dump_index): Add RTL dump file indices.
6240         * doc/invoke.texi (Debugging options): Document new RTL debugging
6241         options.  Update.
6243 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
6245         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
6246         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
6247         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
6248         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
6249         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
6250         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
6251         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
6252         vec.h: Fix comment formatting.
6254 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
6256         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
6257         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
6258         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
6259         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
6260         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
6261         tree-ssa-loop-niter.c, tree-ssa-operands.c,
6262         tree-ssa-operands.h, tree-ssa-propagate.c,
6263         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
6264         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
6266 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
6268         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
6269         vectorizer is enabled.
6271 2004-09-05  Andreas Jaeger  <aj@suse.de>
6273         * tree-if-conv.c: Spell check comments and clean up whitespace.
6275 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6277         * tree-ssa-loop-ivopts.c: New file.
6278         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
6279         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
6280         target_pres_cost, target_spill_cost): Declare.
6281         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
6282         spill_cost): Renamed to ...
6283         (target_avail_regs, target_res_regs, target_small_cost,
6284         target_pres_cost, target_spill_cost): ... and exported.
6285         (init_set_costs, global_cost_for_size): Work with renamed variables.
6286         * common.opt (flag_ivopts): New flag.
6287         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
6288         REF_ORIGINAL.
6289         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
6290         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
6291         generating SSA form.
6292         (force_gimple_operand): New function.
6293         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
6294         * tree-cfg.c (stmt_bsi): New function.
6295         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
6296         PARAM_IV_MAX_CONSIDERED_USES): New.
6297         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
6298         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
6299         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
6300         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
6301         * tree-nested.c (build_addr): Export.
6302         * tree-optimize.c (init_tree_optimization_passes): Add
6303         pass_iv_optimize.
6304         * tree-pass.h (pass_iv_optimize): Declare.
6305         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
6306         IMAGPART_EXPR.
6307         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
6308         as a phi node argument.
6309         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
6310         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
6311         functions.
6312         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
6313         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
6314         pass_iv_optimize): New pass.
6315         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
6316         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
6317         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
6318         * tree.h (REF_ORIGINAL): New macro.
6319         (build_int_cst_type, unsigned_type_for, zero_p,
6320         cst_and_fits_in_hwi, build_addr): Declare.
6321         * doc/invoke.texi (-fivopts): Document.
6322         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
6323         PARAM_IV_MAX_CONSIDERED_USES): Document.
6324         * doc/passes.texi: Document induction variable optimizations pass.
6326 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6328         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
6329         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
6330         * c-common.c (c_common_attribute_table): Accept parameters to
6331         sentinel attribute.
6332         (check_function_sentinel, handle_sentinel_attribute): Likewise.
6333         * doc/extend.texi: Update accordingly.
6335 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6337         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
6338         New.
6339         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
6340         attribute.
6341         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
6342         New functions.
6343         (c_common_attribute_table): Add `sentinel' attribute.
6344         (check_function_arguments): Handle `sentinel' attribute.
6345         * doc/extend.texi: Document `sentinel' attribute.
6347 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6349         * configure: Regenerated.
6351 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6353         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
6355         * tree.c (save_expr): No longer TREE_READONLY.
6357 2004-09-04  Jan Hubicka  <jh@suse.cz>
6359         * passes.c (rest_of_clean_state):  Fix merge conflict made during
6360         commiting the patch.
6362 2004-09-04  Jan Hubicka  <jh@suse.cz>
6364         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
6366 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
6368         * doc/md.texi (shift patterns): New anchor.  Add reference to
6369         TARGET_SHIFT_TRUNCATION_MASK.
6370         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
6371         * target.h (shift_truncation_mask): New target hook.
6372         * targhook.h (default_shift_truncation_mask): Declare.
6373         * targhook.c (default_shift_truncation_mask): Define.
6374         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
6375         (TARGET_INITIALIZER): Include it.
6376         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
6377         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
6378         reject all out-of-range values.  Fix sign-extension code for modes
6379         whose width is smaller than HOST_BITS_PER_WIDE_INT.
6380         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
6381         (expand_superword_shift, expand_subword_shift): Likewise.
6382         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
6383         (expand_binop): Use them to implement double-word shifts.
6384         * config/arm/arm.c (arm_shift_truncation_mask): New function.
6385         (TARGET_SHIFT_TRUNCATION_MASK): Define.
6387 2004-09-04  Jan Hubicka  <jh@suse.cz>
6389         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
6390         (mix): New macro copied from hashtab.c
6391         (iterative_hash_hashval_t, iterative_hash_pointer,
6392         iterative_hash_host_wide_int): New functions based on hashtab.c
6393         implementation.
6395 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
6397         * config/mips/mips.md (mask): New mode attribute.
6398         (zero_extendsidi2): Add memory alternative.
6399         (*zero_extendsidi2_mem): Delete.
6400         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
6401         memory_operand in the TARGET_MIPS16 check.
6402         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
6403         Redefine using :GPR and :SHORT.
6404         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
6406 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
6408         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
6409         using rint_optab.
6410         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
6411         expand_builtin_mathfn.
6412         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
6413         btrunc?f patterns for btrunc_optab. Implement rint_optab using
6414         rint?f patterns.
6415         * optabs.c (init_optabs): Initialize rint_optab.
6416         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
6417         Add new OTI_rint.
6418         (btrunc_optab): Rename macro from trunc_optab.
6419         (rint_optab): Define corresponding macro.
6421         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
6422         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
6424         * config/i386/i386-protos.h (emit_i387_cw_initialization):
6425         Change prototype. Add new int parameter.
6426         * config/i386/i386.c (emit_i387_cw_initialization):
6427         Handle new rounding modes.
6429         * config/i386/i386.h (enum fp_cw_mode): Delete.
6430         (MODE_NEEDED): Handle new rounding modes.
6431         (EMIT_MODE_SET): Change condition to handle new rounding modes.
6433         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
6434         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
6435         represent different rounding modes of frndint insn.
6436         (type): Add frndint type.
6437         (i387, length, memory): Handle this type.
6438         (i387_cw): New attribute definition.
6439         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
6440         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
6441         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
6442         Add "i387_cw" attribute defined to "trunc".
6443         (x86_fnstcw_1): Remove comment.
6444         (*frndintxf2): Rename insn definition to frndintxf2. Move
6445         insn definition near rint?f2 expanders.
6446         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
6447         rintf and rintl built-ins as inline x87 intrinsics.
6448         (frndintxf2_floor): New pattern to implement floor rounding
6449         mode with frndint x87 instruction.
6450         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
6451         floorf and floorl built-ins as inline x87 intrinsics.
6452         (frndintxf2_ceil): New pattern to implement ceil rounding
6453         mode with frndint x87 instruction.
6454         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
6455         ceilf and ceill built-ins as inline x87 intrinsics.
6456         (frndintxf2_trunc): New pattern to implement trunc rounding
6457         mode with frndint x87 instruction.
6458         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
6459         truncf and truncl built-ins as inline x87 intrinsics.
6460         (frndintxf2_mask_pm): New pattern to implement rounding
6461         mode with exceptions with frndint x87 instruction.
6462         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
6463         implement nearbyint, nearbyintf and nearbyintl built-ins as
6464         inline x87 intrinsics.
6466 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
6468         * config/mips/mips.md (SHORT): New mode macro.
6469         (size): New mode attribute.
6470         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
6471         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
6472         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
6473         !ISA_HAS_SEB_SEH.
6474         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
6475         *extend[qh]isi2_hw patterns and extending them to di.
6476         (extendqihi2): Implement as define_insn_and_split that produces
6477         extendqisi2 after reload.
6479 2004-09-03  Devang Patel  <dpatel@apple.com>
6481         * Makefile.in (OBJS-common): Add tree-if-conv.o
6482         (tree-if-conv.o): New rule.
6483         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
6484         (get_loop_body_in_bfs_order): New.
6485         * cfgloop.h (get_loop_body_in_bfs_order): New.
6486         * tree-flow.h (enum move_pos): Move here from ..
6487         * tree-ssa-loop-im.c (enum move_pos): here.
6488         (movement_possibility): Make externally visible.
6489         * tree-optimize.c (init_tree_optimization_passes): New entry for
6490         if conversion pass.
6491         * tree-pass.h (pass_if_conversion): New.
6492         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
6493         * tree-if-conv.c: New file.
6494         * doc/passes.texi: Document tree if-conversion pass.
6495         * doc/tree-ssa.texi: Same.
6497 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
6499         PR target/14925:
6500         Makefile.in (LIB2ADDEHSTATIC): New.
6501         (LIB2ADDEHSHARED): New.
6502         (LIBUNWIND): New.
6503         (LIBUNWINDDEP): New.
6504         (SHLIBUNWIND_LINK): New.
6505         (SHLIBUNWIND_INSTALL): New.
6506         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
6507         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
6508         (clean): Remove libunwind*
6509         (stage1-start): Remove and copy stage1/libunwind*.
6510         (stage2-start): Remove and copy stage2/libunwind*.
6511         (stage3-start): Remove and copy stage3/libunwind*.
6512         (stage4-start): Remove and copy stage4/libunwind*.
6513         (stageprofile-start): Remove and copy stageprofile/libunwind*.
6514         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
6516         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
6517         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
6518         tmake_file if --with-system-libunwind isn't used.
6520         * config/ia64/t-glibc-libunwind: New file.
6521         * config/t-libunwind-elf: Likewise.
6522         * unwind-compat.c: Likewise.
6523         * unwind-compat.h: Likewise.
6524         * unwind-dw2-fde-compat.c: Likewise.
6526         * config/ia64/t-glibc (LIB2ADDEH): Updated.
6527         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
6529         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
6530         aliases if needed.
6531         * unwind-dw2-fde-glibc.c: Likewise.
6532         * unwind-dw2.c: Likewise.
6534         * config/t-libunwind (LIB2ADDEH): Updated.
6535         (LIB2ADDEHSTATIC): New.
6536         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
6537         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
6539         * configure.ac: Change --enable-libunwind-exceptions to
6540         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
6541         * configure: Regenerated.
6542         * config.in: Updated.
6544         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
6545         above and mention --with-system-libunwind.
6546         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
6547         removed in gcc 3.4.3 and later.
6549         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
6550         USE_LIBUNWIND_EXCEPTIONS is defined.
6552         * mklibgcc.in: Support libunwind.
6554 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
6556         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
6557         m_NOCONA.
6559 2004-09-03  Richard Henderson  <rth@redhat.com>
6561         PR middle-end/9997
6562         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
6563         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
6564         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
6565         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
6566         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
6567         resize_stack_vars_conflict, add_stack_var_conflict,
6568         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
6569         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
6570         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
6571         expand_one_static_var, expand_one_hard_reg_var,
6572         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
6573         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
6574         (expand_used_vars): Rewrite.
6575         * Makefile.in (cfgexpand.o): Update dependencies.
6577 2004-09-04  Jan Hubicka  <jh@suse.cz>
6579         * cfg.c (free_edge): Use ggc_free.
6580         (expunge_block): Use ggc_free.
6581         * passes.c (rest_of_clean_state): Free after compilation.
6582         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
6583         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
6585 2004-09-03  James E Wilson  <wilson@specifixinc.com>
6587         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
6588         DECL_EXTERNAL check.
6590 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
6592         * final.c (output_in_slot): New global variable.
6593         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
6594         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
6595         'output_in_slot' before invoking output_asm_insn.
6596         (output_asm_insn): Add a space after the tab if 'output_in_slot'
6597         is set.
6598         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
6599         final_scan_insn.
6600         (output_sibcall): Likewise.
6602 2004-09-03  Jan Hubicka  <jh@suse.cz>
6604         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
6605         * tree-ssanames (init_ssanames): Likewise.
6607 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
6609         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
6610         objc_declare_protocols, objc_start_protocol,
6611         objc_start_class_interface, objc_start_category_interface,
6612         objc_continue_interface, objc_finish_interface,
6613         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
6614         objc_start_class_implementation, objc_start_category_implementation,
6615         objc_continue_implementation, objc_finish_implementation,
6616         objc_add_method_declaration, objc_start_method_definition,
6617         objc_finish_method_definition, objc_build_keyword_decl,
6618         objc_build_method_signature, objc_build_encode_expr,
6619         objc_build_protocol_expr, objc_build_selector_expr,
6620         objc_build_message_expr, objc_build_string_object,
6621         objc_get_class_reference, objc_get_protocol_qualified_type,
6622         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
6624 2004-09-03  James E Wilson  <wilson@specifixinc.com>
6626         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
6628         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
6629         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
6630         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
6631         (mips_recip1_<fmt>): Use frdiv1 type.
6632         (mips_recip2_<fmt>): Use frdiv2 type.
6633         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
6634         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
6635         and frsqrt1.
6636         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
6638 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
6640         * reload.c (find_reloads): Swap operand_loc pointers for
6641         find_dummy_reload if we have swapped two operands.
6643 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
6645         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
6646         to get the tablejump-insn before the jump-table label.
6648 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
6650         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
6651         objc_declare_protocols, objc_build_message_expr,
6652         objc_finish_message_expr, objc_build_selector_expr,
6653         objc_build_protocol_expr, objc_build_encode_expr,
6654         objc_build_string_object, objc_get_protocol_qualified_type,
6655         objc_get_class_reference, objc_get_class_ivars,
6656         objc_start_class_interface, objc_start_category_interface,
6657         objc_start_protocol, objc_continue_interface, objc_finish_interface,
6658         objc_start_class_implementation, objc_start_category_implementation,
6659         objc_continue_implementation, objc_finish_implementation,
6660         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
6661         objc_add_method_declaration, objc_start_method_definition,
6662         objc_finish_method_definition, objc_add_instance_variable,
6663         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
6664         objc_finish_try_stmt, objc_begin_catch_clause,
6665         objc_finish_catch_clause, objc_build_finally_clause,
6666         objc_build_synchronized, objc_static_init_needed_p,
6667         objc_generate_static_init_call): New prototypes.
6669 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
6671         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
6672         is only one reg.
6673         (ia64_function_value): Ditto.
6675 2004-09-03  Jan Beulich  <jbeulich@novell.com>
6677         * config.gcc: Resurrect NetWare as a target. Handle special case of
6678         Novell linker to be used (specified through --with-ld=) and threading
6679         model of either Posix (default) or NKS.
6680         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
6681         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
6682         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
6683         * config/i386/netware.c, config/i386/netware.h: New.
6684         * config/i386/nwld.c, config/i386/nwld.h: New.
6685         * config/i386/netware-crt0.c: New.
6686         * config/i386/netware-libgcc.c: New.
6687         * config/i386/netware-libgcc.def: New.
6688         * config/i386/netware-libgcc.exp: New.
6689         * config/i386/t-netware, config/i386/t-nwld: New.
6690         * gthr-nks.h: New.
6691         * doc/install.texi: Document NKS threading model.
6693 2004-09-03  Jan Beulich  <jbeulich@novell.com>
6695         PR c/7054
6696         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
6697         * tree.h (initial_max_fld_align): Declare
6698         * stor-layout.c (initial_max_fld_align): Define and initialize.
6699         (maximum_field_alignment): Initialize to the same value.
6700         * common.opt: Add -fpack-struct= variant of switch.
6701         * opts.c: Handle -fpack-struct= variant of switch.
6702         * c-pragma.c: Change #pragma pack() handling so that it becomes
6703         compatible to other compilers: accept individual 'push' argument,
6704         make final pop restore (command line) default, correct interaction
6705         of push/pop and sole specification of a new alignment (so that the
6706         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
6707         to #pragma pack(push, <n>).
6708         * doc/extend.texi: New node "Structure-Packing Pragmas" under
6709         "Pragmas", describing #pragma pack.
6710         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
6711         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
6712         Document new TARGET_DEFAULT_PACK_STRUCT.
6714 2004-09-03  Devang Patel  <dpatel@apple.com>
6716         * dwarf2out.c (gen_field_die). Equate decl number to die.
6718 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
6720         PR target/15832
6721         * global.c (modify_reg_pav): New function.
6722         (make_accurate_live_analysis): Call the new function.  Move pavin
6723         modification by earlyclobber set into the new function.
6725 2004-09-03  Andreas Schwab  <schwab@suse.de>
6727         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
6728         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
6729         extended.
6731 2004-09-02  Jan Beulich  <jbeulich@novell.com>
6733         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
6734         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
6735         not unwind code specific ones.
6736         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
6737         Remove unwind code specific dependencies.
6738         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
6739         Remove gbl-ctors.h.
6740         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
6741         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
6742         * tsystem.h: Declare memcpy and memset when inhibit_libc.
6744 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
6746         * combine.c (try_combine): Delay modifying of insns which cannot
6747         be easily undone.
6749 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
6751         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
6752         tree-loop-im.
6753         * gcc/tree-ssa-loop.c: Ditto
6754         * gcc/tree-ssa-loop-ivcanon.c: Ditto
6755         * gcc/doc/invoke.texi: Ditto.
6757 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
6759         * c-decl.c (store_parm_decls_newstyle): Make static.
6760         (store_parm_decls_from): New function.
6761         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
6762         (store_parm_decls_from): New prototype.
6764 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
6766         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
6767         HImode with STRICT_ALIGNMENT.
6769 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
6771         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
6772         (TARGET_OS_CPP_BUILTINS): Likewise.
6773         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
6774         TARGET_BPABI_CPP_BUILTINS.
6776 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
6778         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
6780 2004-09-02  Eric Christopher  <echristo@redhat.com>
6782         * builtins.c (expand_builtin_cabs): Delete.
6783         (expand_builtin): If unable to fold the values do a normal
6784         library call for builtin_cab*.
6785         (fold_builtin_cabs): Depend on optimize and optimize_size.
6786         * optabs.c (expand_cmplxdiv_straight): Delete.
6787         (expand_cmplxdiv_wide): Ditto.
6788         (expand_vector_binop): Ditto.
6789         (expand_vector_unop): Ditto.
6790         (expand_complex_abs): Delete.
6791         (expand_binop): Remove calls to above functions.
6792         Remove open coding of complex arithmetic.
6793         (expand_unop): Ditto.
6794         * optabs.h: Remove prototypes.
6796 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
6798         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
6799         * c-tree.h (store_parm_decls_newstyle): New prototype.
6801 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
6803         * config/rs6000/rs6000.c (expand_block_clear): Use vector
6804         instructions if available.
6805         (expand_block_move): Likewise.
6807 2004-09-03  Jan Hubicka  <jh@suse.cz>
6809         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
6811 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
6813         * config/arm/symbian.h (LIB_SPEC): Define to empty.
6814         * config/arm/t-symbian (SHLIB_LC): Likewise.
6816 2004-09-02  Paul Brook  <paul@codesourcery.com>
6818         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
6820 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
6822         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
6823         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
6824         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
6825         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
6826         (mips_issue_rate): Remove unreachable abort.
6827         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
6828         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
6829         (mips_block_move_straight, print_operand_address, mips_file_start)
6830         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
6831         (mips_output_conditional_branch, mips_expand_builtin_direct)
6832         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
6833         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
6834         with gcc_assert.
6836 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
6838         * config/mips/mips.md (*lea_high64): Change split condition to
6839         flow2_completed.  Add a peephole2 to generate a more parallel version.
6841 2004-09-02  Jan Hubicka  <jh@suse.cz>
6843         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
6844         GGC.
6846         * ggc-page.c: include tree-flow.h.
6847         (extra_order_size_table): Add stmt_ann_d.
6848         (STAT_LABEL): Rename from ....
6849         (LABEL): ... this one.
6850         * Makefile.in (ggc-page.o): Add dependency.
6852         * ggc-common.c (ggc_force_collect): New global variable.
6853         (loc_description): Add fields "freed", "collected"
6854         (ptr_hash): New static hash
6855         (ptr_hash_entry): New structure.
6856         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
6857         (ggc_record_overhead): Take ptr argument, record it
6858         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
6859         (cmp_statistics): Imrove sorting.
6860         (dump_ggc_loc_statistics): Output newly collected statistics
6861         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
6862         (ggc_free): Call ggc_free_overhead.
6863         (ggc_collect): Force collection when asked to be forced.
6864         (ggc_collect): Call ggc_prune_overhead_list.
6865         * ggc.h (ggc_force_collect): Declare
6866         (ggc_record_overhead): Update prototype.
6867         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
6869 2004-09-02  James E Wilson  <wilson@specifixinc.com>
6871         * common.opt (ftrapping-math): Default to on.
6873 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
6875         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
6877 2004-09-02  Denis Chertykov  <denisc@overta.ru>
6879         PR target/16884
6880         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
6881         match_scratch.
6882         (*movmemqi_insn): Likewise.
6883         (*movmemhi): Likewise.
6884         (clrmemhi): Likewise.
6885         (*clrmemqi): Likewise.
6886         (*clrmemhi): Likewise.
6888 2004-09-02  Paul Brook  <paul@codesourcery.com>
6890         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
6891         default_use_cxa_atexit=yes.
6893 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
6895         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
6896         (struct kernel_old_ucontext): Delete.
6897         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
6898         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
6899         when IN_LIGGCC2.
6901 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
6903         * toplev.c (process_options): Fix typo.
6905 2004-09-01  Richard Henderson  <rth@redhat.com>
6907         PR middle-end/17258
6908         * calls.c (initialize_argument_information): Tighten pass-through
6909         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
6910         Use build_fold_addr_expr.
6911         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
6912         that assumes ADDR_EXPR allocates stack space.
6913         * fold-const.c (build_fold_addr_expr_with_type): Look through
6914         WITH_SIZE_EXPR.
6916 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
6918         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
6919         * ggc.h (ggc_alloc_rtx): Delete.
6921 2004-09-01  Roger Sayle  <roger@eyesopen.com>
6923         * expmed.c (enum alg_code): Remove long unused enumeration values.
6924         (struct mult_cost): New structure to hold the "score" of a synthetic
6925         multiply sequence, including both a rtx_cost and a latency field.
6926         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
6927         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
6928         (struct algorithm): Change type of cost field to be mult_cost.
6929         (synth_mult): Change type of cost_limit argument to be a
6930         pointer to a mult_cost.  Update all cost comparisons to use the
6931         new mult_cost infrastructure.  For alg_add_factor and
6932         alg_sub_factor operations, latency is lower than the rtx_cost.
6933         (choose_mult_variant):  Update calls to synth_mult.  Perform
6934         cost comparisons using the new mult_cost infrastructure.
6935         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
6936         to optain the total rtx_cost of a synth_mult "algorithm".
6938 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
6940         * config/rs6000/power4.md: Increase store latency to 12.
6941         * config/rs6000/power5.md: Same.
6943 2004-09-01  James E Wilson  <wilson@specifixinc.com>
6945         PR target/14064
6946         * config/avr/avr.c (avr_unique_section): Delete prototype and
6947         definition.
6948         (TARGET_ASM_UNIQUE_SECTION): Delete.
6950 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
6952         * c-parse.in (primary): Call objc_build_message_expr(),
6953         objc_build_selector_expr(), objc_build_protocol_expr(),
6954         objc_build_encode_expr() and objc_build_string_object() instead of
6955         build_message_expr(), build_selector_expr(), build_protocol_expr(),
6956         build_encode_expr() and build_objc_string_object(), respectively.
6957         (component_decl_list2): Call objc_get_class_ivars() instead of
6958         get_class_ivars_from_name().
6959         (keyworddecl): Call objc_build_keyword_decl() instead of
6960         build_keyword_decl().
6961         (receiver): Call objc_get_class_reference() instead of
6962         get_class_reference().
6963         (reswords): Add blank line before @@ifobjc section, for clarity.
6965 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
6967         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
6968         to Altivec vetors.
6970 2004-09-01  Wu Yongwei  <adah@sh163.net>
6971             Danny Smith  <dannysmith@users.sourceforge.net>
6973         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
6974         not Windows 'DWORD'.
6975         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
6976         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
6977         (__gthr_win32_recursive_mutex_init_function): Add prototype for
6978         __GTHREAD_HIDE_WIN32API case..
6979         (__gthr_win32_recursive_mutex_lock): Likewise.
6980         (__gthr_win32_recursive_mutex_trylock): Likewise.
6981         (__gthr_win32_recursive_mutex_unlock): Likewise.
6982         (__gthread_recursive_mutex_init_function); Add definition for
6983         __GTHREAD_HIDE_WIN32API case.
6984         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
6985         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
6986         call to InterlockedDecrement.
6988 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6990         * tree-tailcall.c (find_tail_calls): Also fail is statement has
6991         volatile operands.
6993         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
6995         * doc/c-tree.texi: Document new operands for ARRAY_REF and
6996         COMPONENT_REF.
6998 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7000         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
7001         * common.opt (fspeculative-prefetching): New.
7002         * flags.h (flag_speculative_prefetching_set): Declare.
7003         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
7004         values.
7005         * opts.c (flag_sepculative_prefetching_set): New variable.
7006         (common_handle_option): Handle -fspeculative-prefetching.
7007         * passes.c (rest_of_compilation): Ditto.
7008         * profile.c (instrument_values, compute_value_histograms, branch_prob):
7009         Use vectors instead of arrays.
7010         * toplev.c (process_options): Handle -fspeculative-prefetching.
7011         * rtl-profile.c: Include ggc.h.
7012         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
7013         rtl_gen_one_value_profiler_no_edge_manipulation,
7014         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
7015         argument changed.
7016         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
7017         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
7018         argument changed.
7019         * value-prof.c: Include ggc.h.
7020         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
7021         macros.
7022         (insn_prefetch_values_to_profile, find_mem_reference_1,
7023         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
7024         speculative_prefetching_transform): New.
7025         (value_profile_transformations): Call speculative_prefetching_transform.
7026         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
7027         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
7028         tree_find_values_to_profile, find_values to profile): Use vectors
7029         instead of arrays.
7030         (free_profiled_values): Removed.
7031         * value-prof.h (struct histogram_value): Renamed to
7032         struct histogram_value_t.
7033         (histogram_value, histogram_values): New types.
7034         (find_values_to_profile): Declaration changed.
7035         (free_profiled_values): Removed.
7036         (struct profile_hooks): Type of argument of the hooks changed to
7037         histogram_value.
7038         * doc/invoke.texi (-fspeculative-prefetching): Document.
7040 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7042         PR rtl-optimization/16408
7043         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
7045 2004-09-01  Richard Henderson  <rth@redhat.com>
7047         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
7048         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
7050 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
7052         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
7054 2004-09-01  Mike Stump  <mrs@apple.com>
7056         * config/darwin.c (machopic_symbol_defined_p): In addition to
7057         being SYMBOL_REF_LOCAL_P, a symbol must also be
7058         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
7059         defined in this output file, or translation unit in the case
7060         of IMA not being used.
7061         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
7062         never need .indirect_symbol when indirecting.
7064 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
7066         * Makefile.in (bb-reorder.o): Add several dependencies.
7068 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
7070         * fold-const.c (operand_equal_p): Require equal sign also for
7071         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
7073 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
7075         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
7076         for use in configargs.h.  Put the cname in a separate variable.  Use
7077         that to set target_cpu_default2.
7079 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
7080             Nick Clifton  <nickc@redhat.com>
7082         * config/sh/sh.md ("length"): Increase branch length when
7083         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
7084         constant, 2 byte for aligning the constant.
7086 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
7088         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
7089         CPU.
7090         (arm7tdmi-s): New CPU name.
7091         * arm/arm.c (ARM_CORE): Update for new format.
7092         * arm/arm.h (ARM_CORE): Likewise.
7093         * arm/gentune.sh: Update for extra field.
7094         * config.gcc: Likewise.
7095         * arm/arm-tune.md: Regenerate.
7096         * doc/invoke.texi: Document the real processor names for ARM cpus.
7098 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
7100         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
7101         (floatdidf): New functions.
7102         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
7103         (floatdisf): New functions.
7104         * t-arm-elf: Use them.
7106 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
7108         * c-common.h (lookup_interface): Remove prototype.
7109         (is_class_name): Rename to objc_is_class_name.
7110         (lookup_objc_ivar): Rename to objc_lookup_ivar.
7111         (get_current_scope): Rename to objc_get_current_scope.
7112         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
7113         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
7114         (yylexname): Call objc_is_class_name() instead of is_class_name().
7115         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
7116         instead of lookup_objc_ivar().
7117         * stub-objc.c (lookup_interface): Remove stub.
7118         (is_class_name): Rename to objc_is_class_name.
7119         (lookup_objc_ivar): Rename to objc_lookup_ivar.
7121 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
7123         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
7124         * config/arm/lib1funcs.asm: Do not include supplemental .S files
7125         when compiling for Symbian.
7126         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
7127         (TARGET_OS_CPP_BUILTINS): Likewise.
7128         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
7130 2004-08-31  Stan Shebs  <shebs@apple.com>
7132         * toplev.c (process_options): Ensure debug_hooks is initialized.
7134 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
7136         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
7137         * target.h (cxx): Add export_class_data.
7138         * config/arm/arm.c (arm_cxx_export_class_data): New function.
7139         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
7140         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
7142 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7144         * config/sh/sh.c (output_branch): Check the insn length possibly
7145         in the delayed slot.
7147 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7149         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
7150         blank after ')'.
7151         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
7153         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
7154         (c_sizeof_of_alignof_type): Likewise.
7155         * expr.c (array_ref_element_size): Likewise.
7156         (highest_pow2_factor_for_target): Likewise.
7157         * gimplify.c (canonicalize_addr_expr): Likewise.
7158         (gimplify_compound_lval): Likewise.
7159         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
7160         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
7161         * varasm.c (assemble_variable): Likewise.
7162         (output_constant_def_contents): Alignments are unsigned.
7164 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7165             Jeff Law  <law@redhat.com>
7167         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
7168         gets modified.
7170 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
7172         * hooks.c (hook_bool_void_true): New function.
7173         * hooks.h (hook_bool_void_true): Declare.
7174         * target-def.h (TARGET_CXX): Add
7175         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
7176         * target.h (struct cxx): Add key_method_may_be_inline.
7177         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
7178         function.
7179         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
7180         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
7181         __THUMB_INTERWORK.
7183 2004-08-31  Denis Chertykov  <denisc@overta.ru>
7185         PR target/15417
7186         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
7187         frame pointer register only in Pmode while reload in progress.
7189 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
7191         PR target/15334
7192         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
7193         because it breaks the 32-bit shift patterns that rely on a match_dup.
7195 2004-08-31  Matt Austern  <austern@apple.com>
7197         * config/darwin.c (darwin_make_decl_one_only): Allocate section
7198         names once per compilation, instead of once per symbol.
7200 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
7202         * Makefile.in (build_subdir): New substitution.
7203         (fixinc.sh): Simplify heavily since fixincludes is already built.
7204         (stmp-fixinc): Depend on specs.ready.
7205         (install-mkheaders): Use new location of fixincludes.
7206         (clean): Do not descend into fixinc.
7207         (FORBUILD): Replace with ../$(build_subdir).
7208         * configure.ac (build_subdir): Substitute.
7209         (FORBUILD): Do not set.
7210         (all_outputs): Remove fixinc/Makefile.
7211         (default commands): Do not create links in fixinc.
7212         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
7213         the fixincludes configuration steps and substituting
7214         @FIXINCL@ in fixinc.in.
7215         * fixinc.in: New, from fixinc/fixincl.sh.
7217         * fixinc/*: Removed.
7219 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
7221         * attribs.c (strip_attrs): Remove.
7222         (split_specs_attrs): Move ...
7223         * c-decl.c: ... to here.
7224         * tree.h (split_specs_attrs, strip_attrs): Remove.
7225         * c-tree.h (split_specs_attrs): Declare.
7227 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
7229         * read-rtl.c: Disable RTL checking.
7230         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
7232 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
7234         * config/mips/mips.md (fcond): New code macro and attribute.
7235         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
7236         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
7237         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
7239 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
7241         Revert:
7242         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
7243         PR rtl-optimization/16590
7244         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
7246 2004-08-30  Andrew Pinski  <apinski@apple.com>
7248         * hard-reg-set.h:
7249         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
7250         * ChangeLog: Fix previous ChangeLog entry.
7252         PR rtl-opt/13987
7253         * config.host (use_long_long_for_widest_fast_int): New, default is
7254         off.
7255         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
7256         * configure.ac: If use_long_long_for_widest_fast_int, then
7257         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
7258         * configure: Regenerate.
7259         * config.in: Regenerate.
7260         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
7261         New: widest integer type supported efficiently in hardware for the
7262         host.
7263         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
7264         HOST_BITS_PER_WIDEST_FAST_INT.
7265         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
7266         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
7267         HOST_WIDEST_FAST_INT
7268         instead of HOST_WIDE_INT.
7269         (HARD_REG_SET_LONGS): Likewise.
7270         (UHOST_BITS_PER_WIDE_INT): Likewise.
7271         Change the checks for the fast cases to be based on
7272         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
7274 2004-08-30  Steven Bosscher  <stevenb@suse.de>
7276         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
7277         not the pointers.
7279 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
7281         PR 12738
7282         PR 17205
7283         Radar 3460526
7284         Radar 3775729
7285         * c-decl.c (grokdeclarator): Produce error for 'static' on local
7286         function declaration.
7288 2004-08-30  Richard Henderson  <rth@redhat.com>
7290         * expr.c (array_ref_element_size): Force aligned_size back to
7291         sizetype.
7292         (component_ref_field_offset): Similarly for aligned_offset.
7293         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
7294         low-bound, element-size, field-offset fields rather than
7295         computed values.
7297 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7299         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
7300         redundant code.
7302 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7304         * c-tree.h (struct language_function): Add arg_info element.
7305         * c-decl.c (current_function_arg_info): New.
7306         (grokdeclarator, store_parm_decls): Use it instead of
7307         DECL_ARGUMENTS.
7308         (c_push_function_context, c_pop_function_context): Save and
7309         restore it.
7311 2004-08-30  Richard Henderson  <rth@redhat.com>
7313         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
7314         COMPONENT_REF to pointer arithmetic.
7315         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
7316         constant "c" as a valid constant initializer.  Allow narrowing of
7317         differences against the same base object, for any base object.
7319 2004-08-30  Richard Henderson  <rth@redhat.com>
7321         * expr.c (expand_expr_addr_expr): New.
7322         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
7324 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
7326         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
7327         (mips_fp_condition): New enum.
7328         (mips_fp_conditions): New array.
7329         (print_fcc_operand): Delete.
7330         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
7331         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
7332         (builtin_description): Add "cond" field.
7333         (DIRECT_BUILTIN): Initialize it.
7334         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
7335         into INSN and CODE.  Initialize the "cond" field.
7336         (CMP_BUILTINS): Update accordingly.
7337         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
7338         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
7339         mips_fp_condition as argument.  Make it the final operand of the
7340         comparison instruction.
7341         (mips_expand_builtin): Update accordingly.
7342         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
7343         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
7344         the gaps.
7345         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
7346         Don't use the 'Q' operand prefix; just print the operand normally.
7347         (mips_cabs_*, mips_c_*): Delete, replacing with...
7348         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
7349         patterns.  Split the 4s versions into 2 ps patterns after reload.
7351 2004-08-30  Richard Henderson  <rth@redhat.com>
7353         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
7354         assuming an ADDR_EXPR is non-null.
7356 2004-08-30  Jason Merrill  <jason@redhat.com>
7358         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
7360 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
7362         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
7363         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
7364         gcc_assert and gcc_unreachable instead of abort.
7365         * alloc-pool.c (abort, fancy_abort): Remove.
7366         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
7367         gcc_assert or gcc_unreachable.
7368         * attribs.c (init_attributes, decl_attributes): Likewise.
7369         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
7370         mark_bb_for_unlikely_executed_section,
7371         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
7372         fix_crossing_unconditional_branches):  Likewise.
7373         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
7374         bitmap_operation):  Likewise.
7375         * bt-load.c (insn_sets_btr_p, augment_live_range,
7376         move_btr_def):  Likewise.
7377         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
7378         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
7379         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
7380         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
7381         expand_builtin_memcmp, expand_builtin_args_info,
7382         std_gimplify_va_arg_expr, expand_builtin_unop,
7383         expand_builtin_fputs, expand_builtin_profile_func,
7384         expand_builtin_fork_or_exec, fold_builtin_bitop,
7385         fold_builtin_classify, fold_builtin_fputs): Likewise.
7387 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
7389         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
7390         * gcov.c (abort): Remove undef.
7392         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
7393         (struct tree_binfo): Remove primary field.
7395 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
7397         * fixinc/Makefile.in (machname.h): Remove.
7398         (fixincl.x): Do not pass $@ to genfixes.
7399         * fixinc/genfixes: Remove code to produce machname.h.
7400         * fixinc/fixincl.sh: Move it here instead.
7401         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
7402         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
7403         return a bool indicating whether pz_mn_name_pat is NULL.
7404         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
7405         Declare extern C variables for the ENV_TABLE.
7406         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
7407         instead use the result of mn_get_regexps.
7408         * fixinc/fixtests.c: Likewise.
7410 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
7412         * configure.ac: Do not run fixincludes after stage1 during
7413         toplevel bootstrap.
7414         * configure: Regenerate.
7416 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
7418         * sched-deps.c (get_condition): Partially revert previous, by never
7419         trying to extract the condition from a condjump.
7421 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
7423         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
7424         (handle_visibility_attribute, c_determine_visibility): Likewise.
7425         * c-common.h (my_friendly_assert): Remove.
7427 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
7429         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
7430         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
7431         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
7432         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
7433         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
7435 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
7437         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
7438         in COMPONENT_REF nodes.
7440 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7442         PR c++/15378
7443         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
7444         global_dc->warning_as_error_requested.
7445         * diagnostic.c (diagnostic_initialize): Tidy.
7446         * diagnostic.h (diagnostic_context::x_data): Remove
7447         (diagnostic_context::issue_warnings_are_errors_message): Rename
7448         from warnings_are_errors_message.
7449         (diagnostic_context::warning_as_error_requested): New.
7451 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
7453         * sched-deps.c (get_condition): Fix breakage in previous patch.
7455 2004-08-30  Paul Brook  <paul@codesourcery.com>
7457         * doc/install.texi: Fix broken mpfr link.
7459 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
7461         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
7462         other FreeBSD platforms.
7464 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
7466         * arm.h (REVERSE_CONDITION): Define.
7467         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
7469 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
7471         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
7472         just the codes, call reversed_comparison_code ().
7473         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
7474         (not_reg_cond): Use reversed_comparison_code.
7475         (and_reg_cond): Likewise.
7476         * ifcvt.c (cond_exec_process_if_block): Likewise.
7477         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
7479 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
7481         * sched-deps.c (get_condition): Rewrite using jump support functions.
7482         Use reversed_comparison_code.
7483         (conditions_mutex_p): Use reversed_comparison_code.
7485 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7487         * config/mips/mips.c (override_options): Disable hot/cold partitioning
7488         for MIPS16.
7490 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7492         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
7493         (mips_function_type): Move to mips.c.
7494         * config/mips/mips.c (mips_builtin_type): New enum.
7495         (builtin_description): Replace code and ftype with builtin_type
7496         and function_type.
7497         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
7498         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
7499         (CODE_FOR_mips_abs_ps): Define.
7500         (mips_bdesc): Use new macros.
7501         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
7502         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
7503         (mips_expand_builtin_direct): New function.
7504         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
7505         builtin.  Replace boolean parameter with builtin_type.
7506         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
7507         (mips_expand_4s_compare_builtin): Delete, replacing with...
7508         (mips_expand_builtin_compare): ...this new function.
7510 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
7512         PR rtl-optimization/16590
7513         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
7515 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
7517         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
7518         * tree-ssa-propagate.c: Fix documentation.
7520 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7522         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
7523         (mov[sd]fcc): Likewise.
7525 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7527         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
7529 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7531         * config/mips/mips.md (divide_condition): New mode attribute.
7532         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
7533         (sqrt[sd]f3): Redefine using SCALARF.
7534         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
7535         patterns.
7537 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7539         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
7540         (loadx, storex, fmt, UNITMODE): New mode attributes.
7541         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
7542         (mul[sd]f3): Redefine using :SCALARF.
7543         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
7544         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
7545         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
7546         Check TARGET_FUSED_MADD for V2SF too.
7547         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
7548         were already named.
7549         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
7550         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
7552 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7554         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
7555         V2SF_type_node if it will be needed.
7557 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7559         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
7560         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
7561         (mips_prepare_builtin_target): New function.
7562         (mips_expand_builtin): Use them.  Update calls to subroutines.
7563         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
7564         cmp_choice with a boolean argument to select between movt and movf.
7565         Take the comparison's icode as an argument, not the function's fcode.
7566         (mips_expand_compare_builtin): New function.  Rename existing function
7567         to mips_expand_scalar_compare_builtin.
7568         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
7569         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
7570         comparison's icode as an argument, not the builtin's fcode.
7572 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7574         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
7575         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
7576         registers are false and -1 if all registers are true.
7577         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
7578         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
7579         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
7580         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
7581         (bc1any2t, bc1any2f): Likewise CCV2.
7582         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
7584 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7586         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
7587         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
7588         UNSPEC rather than an IF_THEN_ELSE.
7589         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
7590         mips_cond_move_tf_ps by name.
7592 2004-08-29  Chao-ying Fu  <fu@mips.com>
7593             James E Wilson  <wilson@specifixinc.com>
7595         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
7596         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
7597         * config/mips/mips-ps-3d.md: New file.
7598         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
7599         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7600         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
7601         (mips_output_move): Emit "mov.ps" for V2SFmode.
7602         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
7603         MODE_VECTOR_FLOAT.
7604         (override_options): Check if TARGET_MIPS3D and there was an explicit
7605         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
7606         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
7607         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
7608         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
7609         and allow CCV2 and CCV4 to occupy two and four CC registers.
7610         (print_fcc_operand): New function.
7611         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
7612         %Z to call print_fcc_operand.
7613         (mips_function_value): Handle MODE_VECTOR_FLOAT.
7614         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
7615         (mips_vector_mode_supported_p): New function.
7616         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
7617         (builtin_description): New struct.
7618         (mips_bdesc): New array of struct builtin_description.
7619         (mips_expand_builtin, mips_init_builtins,
7620         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
7621         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
7622         functions.
7623         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
7624         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
7625         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
7626         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
7627         "-mips3d", and "-mno-mips3d".
7628         (ASM_SPEC): Map -mips3d to -mips3d in gas.
7629         (EXTRA_CONSTRAINT_Y): New macro.
7630         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
7631         multi-letter constraint 'Y'.
7632         (CONSTRAINT_LEN): New macro.
7633         (enum mips_builtins): New for MIPS builtin functions.
7634         (enum mips_function_type): New for the types of MIPS builtin functions.
7635         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
7636         * config/mips/mips.md: New constants for paired single and MIPS-3D
7637         instructions.  Include the new mips-ps-3d.md file.
7638         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
7639         movv2sf_hardfloat_64bit): New named patterns.
7640         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
7641         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
7642         sdxc1_v2sf_di): New unnamed patterns.
7643         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
7644         const_vector support.
7645         (const_0_or_1_operand): New predicate.
7646         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
7648 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
7650         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
7651         (tree-ssa-propagate.o): New rule.
7652         (GTFILES): Add tree-ssa-propagate.c.
7653         * tree-flow.h (struct stmt_ann_d): Remove field
7654         in_ccp_worklist.
7655         * tree-ssa-propagate.c: New file.
7656         * tree-ssa-propagate.h: New file.
7657         * tree-ssa-ccp.c: Re-write to use the routines from
7658         tree-ssa-propagate.c.
7660 2004-08-28  Andrew Pinski  <apinski@apple.com>
7662         * tree-ssa-loop.c: Remove extra include of basic-block.h.
7664 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
7666         * c-common.h: Update comments about ObjC/ObjC++ entry points.
7667         (objc_is_reserved_word): New prototype.
7668         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
7669         separate section; these are call-backs.
7670         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
7671         ObjC/ObjC++ "@" keywords.
7672         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
7673         prototypes; they already live in c-common.h.
7674         * stub-objc.c: Update copyright notice.
7675         (objc_is_reserved_word): New stub.
7677 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
7679         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
7680         even when not checking.
7682 2004-08-27  Jason Merrill  <jason@redhat.com>
7684         PR c++/13684
7685         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
7686         (gimple_push_cleanup): Add eh_only parm.
7687         (gimplify_target_expr): Pass it.
7688         * c.opt (-fno-threadsafe-statics): New option.
7689         * c-opts.c (c_common_handle_option): Handle it.
7690         * c-common.h (flag_threadsafe_statics): Declare it.
7691         * c-common.c (flag_threadsafe_statics): Record it.
7692         * doc/invoke.texi: Document it.
7693         * tsystem.h (_GNU_SOURCE): Define.
7694         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
7695         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
7696         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
7697         (__gthread_recursive_mutex_init_function): New fn.
7698         (__gthread_recursive_mutex_lock): New fn.
7699         (__gthread_recursive_mutex_trylock): New fn.
7700         (__gthread_recursive_mutex_unlock): New fn.
7701         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
7702         * gthr-win32.h, gthr-vxworks.h: Likewise.
7703         * gthr.h: Document.
7705 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
7707         * config/rs6000/rs6000.c (rs6000_override_options): Increase
7708         maximum skip to 15.  Set function alignment, jump alignment, and
7709         loop alignment to 16 for processors that form dispatch groups.
7710         (rs6000_rtx_costs): outer_code is used.
7712 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
7714         * stor-layout.c (sizetype_set): Remove.
7715         (set_sizetype): Don't test or set it.
7717         * tree.h (size_int_type): Remove.
7718         * fold-const.c: Do not #include gt-fold-const.h.
7719         (size_htab_hash, size_htab_eq): Remove.
7720         (size_int_kind): Use build_int_cst.
7721         (new_const, size_htab): Remove.
7722         (size_int_type): Remove.
7723         (round_up): Use build_int_cst.
7724         (round_down): Likewise. Remove spurious constant build.
7726 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
7728         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
7729         Add is_release variable, use it for --enable-werror and
7730         --enable-checking defaults.
7731         * system.h (gcc_assert, gcc_unreachable): New.
7732         * doc/install.texi (--enable-checking): Update.
7733         * configure, config.in: Rebuilt.
7735 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
7737         * rtl.h (read_rtx): Change prototype.
7738         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
7739         line number.  Return true on success.
7740         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
7741         callers accordingly.
7743 2004-08-26  Richard Henderson  <rth@redhat.com>
7745         * c-typeck.c (build_offsetof): Remove.
7746         * c-tree.h (build_offsetof): Remove.
7747         * c-common.c (fold_offsetof_1, fold_offsetof): New.
7748         * c-common.h (fold_offsetof): Declare.
7749         * c-parse.in (offsetof_base): New.
7750         (offsetof_member_designator): Use it.  Build references, not just
7751         a tree list.
7752         (primary): Use fold_offsetof, not build_offsetof.
7754 2004-08-26  Richard Henderson  <rth@redhat.com>
7756         * tree.c (staticp): Return the static object.
7757         * tree.h (staticp): Update decl.
7758         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
7759         * langhooks.c (lhd_staticp): Return NULL_TREE.
7760         * langhooks-def.h (lhd_staticp): Update decl.
7761         * c-common.c (c_staticp): Return the static object.
7762         * c-common.h (c_staticp): Update decl.
7764 2004-08-26  Richard Henderson  <rth@redhat.com>
7766         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
7767         modes.
7769 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
7771         PR c/13801
7772         * c-decl.c (struct c_binding): Add type and inner_comp fields.
7773         (bind): Set type and inner_comp fields.
7774         (pop_scope): Restore type of decl to the correct type from an
7775         outer scope.  Give error when popping file scope for incomplete
7776         arrays completed incompatibly with default initialization in an
7777         inner scope.
7778         (diagnose_mismatched_decls): Handle externs with initializers at
7779         block scope.
7780         (pushdecl): Set type of external declaration at block scope based
7781         only on the visible declarations.  Save type when changing the
7782         type of a declaration.  Merge an external declaration at block
7783         scope with a visible static declaration at file scope.
7784         (implicitly_declare): Give recycled old declaration the new type
7785         except for incompatible declarations of built-in functions, saving
7786         the old type.
7788 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
7790         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
7792 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
7794         * tree-alias-common.c (gate_pta): New function.
7795         (pass_build_pta): Use it.
7796         (pass_del_pta): Use it.
7797         (delete_alias_vars): Don't check flag_tree_points_to.
7799 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
7801         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
7802         TFmode as additional register mode cloberred by call.
7804 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
7806         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
7807         parallel pattern for library call returning DImode in
7808         mixed mode.
7810 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
7812         * config/rs6000/rs6000.c (function_arg): Generate parallel
7813         pattern for more split args.
7815 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
7817         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
7818         either gen_movdi_di_update or gen_movdi_si_update depending on
7819         target mode.
7820         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
7821         to generate two versions.
7823 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
7825         * Makefile.in (lambda-code.o): New.
7826         (lambda-trans.o): Ditto.
7827         (TREE_DATA_REF_H): Ditto.
7828         (LAMBDA_H): Ditto.
7829         (lambda-mat.o): Use LAMBDA_H.
7830         (tree-data-ref.o): Ditto.
7831         * lambda-code.c: New file.  Lambda code generation algorithm.
7832         * lambda-trans.c: Ditto. Lambda transformation matrix support.
7833         * lambda.h: Add lambda loop structures.
7834         Add lambda loopnest structures.
7835         Add lambda body vector structure.
7836         Add lambda linear expression structures.
7837         Add prototypes for functions in new files.
7838         * lambda-mat.c: Include tree.h
7840 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
7841             Sebastian Pop  <pop@cri.ensmp.fr>
7843         * tree-data-ref.h: Include lambda.h
7844         (free_dependence_relation): Declared here.
7845         (free_dependence_relations): Ditto.
7846         (free_data_refs): Ditto.
7847         * tree-data-ref.c (free_dependence_relation): New function.
7848         (free_dependence_relations): Ditto.
7849         (free_data_refs): Ditot.
7850         (analyze_all_data_dependences): Free datarefs and dependence_relations.
7851         (build_classic_dist_vector): Store in the dependence_relations the
7852         information. Each arc in the dependence_relations graph is labelled
7853         with the distance and direction vectors.
7854         (build_classic_dir_vector): Ditto.
7855         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
7856         Now computes again the whole dependence graph including read-read
7857         relations.
7858         (compute_data_dependences_for_loop): Now dependence_relations contains
7859         all the data, and thus it doesn't need to initialize the classic_dir
7860         and classic_dist vectors.
7861         (analyze_all_data_dependences): Adjusted for using the new interface of
7862         compute_data_dependences_for_loop.  Remove the statistics dump.
7864 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
7866         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
7867         (xtensa_expand_block_move): Update comment.
7868         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
7870 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
7872         PR target/13506
7873         * toplev.c (crash_signal): If we crashed while emitting
7874         a user asm, then die more gracefully.
7876 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
7878         PR target/17119.
7879         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
7880         checking for a valid constant, regardless of sign.
7882 2004-08-25  Richard Henderson  <rth@redhat.com>
7884         PR target/16974
7885         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
7886         if the constant satisfies add_operand.
7888 2004-08-25  Richard Henderson  <rth@redhat.com>
7890         PR debug/10695
7891         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
7892         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
7893         unwind info for >16-bit frames.
7895 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
7897         PR target/17171
7898         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
7900 2004-08-25  Richard Henderson  <rth@redhat.com>
7902         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
7903         (TARGET_CANNOT_FORCE_CONST_MEM): New.
7905 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
7907         * doc/tree-ssa.texi: Document new operand iterator.
7909 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
7911         PR target/16480
7912         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
7913         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
7914         as PLUS base regs.
7916 2005-08-28  Paul Brook  <paul@codesourcery.com>
7918         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
7919         -mfpu=vfp -march=armv5t
7920         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
7922 2004-08-25  Richard Henderson  <rth@redhat.com>
7924         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
7925         * target.h (struct gcc_target): Add scalar_mode_supported_p.
7926         * targhooks.c (default_scalar_mode_supported_p): New.
7927         * targhooks.h (default_scalar_mode_supported_p): Declare.
7928         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
7930         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
7931         before attempting to create types.  Tidy.
7932         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
7934         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
7935         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
7937 2004-08-25  Richard Henderson  <rth@redhat.com>
7939         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
7940         set REAL_MODE_FORMAT for TFmode.
7942 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
7944         * c-decl.c (grokparm): New function.
7945         * c-tree.h (grokparm): New prototype.
7947 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
7949         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
7950         iterator controlling structure.
7951         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
7952         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
7953         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
7954         iterator flags.
7955         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
7956         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
7957         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
7958         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
7959         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
7960         Empty operand pointers.
7961         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
7962         (op_iter_next_use): New.  Return next use_operand_p.
7963         (op_iter_next_def): New.  Return next def_operand_p.
7964         (op_iter_next_tree): New.  Return next operands as a tree.
7965         (op_iter_init): New.  Initialize an iterator structure.
7966         (op_iter_init_use): New.  Initialize structure and get the first use.
7967         (op_iter_init_def): New.  Initialize structure and get the first def.
7968         (op_iter_init_tree): New.  Initialize structure and get the first tree.
7969         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
7970         (op_iter_init_maydef): New.  Initialize structure and get the first
7971         V_MAY_DEF operands.
7972         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
7973         * tree-dfa.c (compute_immediate_uses_for_stmt,
7974         redirect_immediate_uses): Use new operand iterator.
7975         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
7976         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
7977         operands instead of using *_disappeared_p routines.
7978         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
7979         ssa_rewrite_stmt): Use new operand iterator.
7980         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
7981         rewrite_trees): Use new operand iterator.
7982         * tree-pretty-print.c (dump_vops): Use new operand iterator.
7983         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
7984         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
7985         dump_points_to_info): Use new operand iterator.
7986         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
7987         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
7988         operand iterator.
7989         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
7990         propagate_necessity): Use new operand iterator.
7991         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
7992         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
7993         a parameter instead of a stmt_ann_t.
7994         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
7995         build_tree_conflict_graph): Use new operand iterator.
7996         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
7997         rewrite_mem_refs): Use new operand iterator.
7998         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7999         check_loop_closed_ssa_use): Use new operand iterator.
8000         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
8001         * tree-ssanames.c (release_defs): Use new operand iterator.
8002         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
8004 2004-08-25  Adam Nemet  <anemet@lnxw.com>
8006         * tlink.c (initial_cwd): New variable.
8007         (tlink_init): Initialize it.
8008         (recompile_files): Use tlink_execute() instead of system().  Don't
8009         duplicate verbose output of collect_execute.  Restore initial_cwd.
8010         Update comment before the function.
8012 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
8014         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
8015         accept) a cast from one Objective-C pointer type to another.
8017 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
8019         * doc/install.texi: Document that libstdc++-v3 requires
8020         now automake 1.9.1.
8022 2004-08-25  Caroline Tice  <ctice@apple.com>
8024         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
8025         to comments at start of function.
8026         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
8027         comment.
8028         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
8029         merge_blocks_move_predecessor_nojumps,
8030         merge_blocks_move_successor_nojumps, merge_blocks_move,
8031         try_crossjump_to_edge, try_crossjump_bb): Likewise.
8032         * cfglayout.c (fixup_reorder_chain): Likewise.
8033         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
8034         cfg_layout_can_merge_blocks_p):  Likewise.
8035         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
8036         * passes.c (rest_of_compilation): Update comments for calling
8037         optimization that partitions hot/cold basic blocks.
8038         * doc/invoke.texi:  Update documentation of
8039         freorder-blocks-and-partition flag.
8041 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
8043         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
8044         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
8046 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
8048         * config/mips/mips.md (any_shift): New code macro.
8049         (optab, insn): New code attributes.
8050         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
8051         Use the standard rather than internal patterns for the MIPS16
8052         double-shift optimization.
8053         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
8054         Redefine using :GPR and any_shift.
8055         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
8056         to cover all three shifts.
8057         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
8058         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
8059         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
8061 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
8063         * gimplify.c (lookup_tmp_var): Separate temporaries when not
8064         optimizing.
8066 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8068         PR libstdc++/17005 (fix for HP-UX 11.11)
8069         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
8070         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
8071         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
8072         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
8073         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
8074         (LINK_SPEC): Handle march=1.0 option.
8075         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
8076         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
8077         (SUBTARGET_OPTIONS): New define.
8078         (LINK_SPEC): Handle march=1.0 option.
8079         (STARTFILE_SPEC): New define.
8080         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
8081         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
8082         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
8083         (SUBTARGET_OPTIONS): New define.
8084         (LINK_SPEC): Handle march=1.0 option.
8085         (STARTFILE_SPEC): New define.
8086         * config/pa/pa.c (override_options): Add code to process -munix= option.
8087         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
8088         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
8089         defines.
8090         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
8091         (SUBTARGET_OPTIONS): Provide default define.
8092         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
8093         STANDARD_STARTFILE_PREFIX_2): New defines.
8094         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
8095         (ENDFILE_SPEC): Use %O.
8096         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
8097         Mention issue caused by changing namespace and runtime to UNIX 95/98.
8098         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
8099         Document -munix=std option.
8101 2004-08-25  Steven Bosscher  <stevenb@suse.de>
8103         * cse.c (cse_around_loop, cse_check_loop_start,
8104         cse_set_around_loop): Remove.
8105         (cse_basic_block): Remove the around_loop argument.
8106         (cse_end_of_basic_block): Remove the after_loop argument.
8107         (cse_main): Likewise.
8108         * rtl.h (cse_main): Update prototype.
8109         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
8110         rest_of_handle_gcse): Update cse_main calls.
8112 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
8114         * tree.h  (build_int_cst): New, sign extended constant.
8115         (build_int_cstu): New, zero extended constant.
8116         (build_int_cst_wide): Renamed from build_int_cst.
8117         * tree.c (build_int_cst, build_int_cstu): New.
8118         (build_int_cst_wide): Renamed from build_int_cst.
8119         (make_vector_type, build_common_tree_nodes,
8120         build_common_tree_nodes_2): Adjust build_int_cst calls.
8121         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
8122         expand_builtin_strpbrk, expand_builtin_fputs,
8123         build_string_literal, expand_builtin_printf,
8124         expand_builtin_sprintf, fold_builtin_classify_type,
8125         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
8126         fold_builtin_toascii, fold_builtin_isdigit,
8127         simplify_builtin_strstr, simplify_builtin_strpbrk,
8128         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
8129         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
8130         DEF_ATTR_INT): Likewise.
8131         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
8132         Likewise.
8133         * c-lex.c (interpret_integer, lex_charconst): Likewise.
8134         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
8135         * c-pretty-print.c (pp_c_integer_constant): Likewise.
8136         * c-typeck.c (really_start_incremental_init, push_init_level,
8137         set_nonincremental_init_from_string): Likewise.
8138         * calls.c (load_register_parameters): Likewise.
8139         convert.c (convert_to_pointer): Likewise.
8140         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
8141         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
8142         build_gcov_info): Likewise.
8143         * except.c (init_eh, assign_filter_values): Likewise.
8144         * expmed.c (store_fixed_bit_field, extract_bit_field,
8145         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
8146         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
8147         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
8148         * expr.c (convert_move, emit_group_load, emit_group_store,
8149         expand_assignment, store_constructor, store_field,
8150         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
8151         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
8152         invert_truthvalue, optimize_bit_field_compare,
8153         decode_field_reference, all_ones_mask_p, constant_boolean_node,
8154         fold_div_compare, fold, fold_read_from_constant_string,
8155         fold_negate_const, fold_abs_const, fold_not_const, round_up,
8156         round_down): Likewise.
8157         * function.c (assign_parm_setup_block): Likewise.
8158         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
8159         Likewise.
8160         * stor-layout.c (layout_type, initialize_sizetypes,
8161         set_min_and_max_values_for_integral_type): Likewise.
8162         * tree-chrec.c (chrec_fold_multiply_poly_poly,
8163         reset_evolution_in_loop): Likewise.
8164         * tree-chrec.h (build_polynomial_chrec): Likewise.
8165         * tree-complex.c (build_replicated_const): Likewise.
8166         * tree-eh.c (honor_protect_cleanup_actions,
8167         lower_try_finally_onedest, lower_try_finally_copy,
8168         lower_try_finally_switch): Likewise.
8169         * tree-mudflap.c (mf_build_string, mx_register_decls,
8170         mudflap_register_call, mudflap_enqueue_constant): Likewise.
8171         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
8172         * tree-pretty-print.c (dump_generic_node): Likewise.
8173         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
8174         Likewise.
8175         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
8176         * tree-ssa-loop-niter.c (number_of_iterations_cond,
8177         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
8178         Likewise.
8179         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
8180         canonicalize_loop_induction_variables): Likewise.
8181         * tree-vectorizer.c (vect_create_index_for_array_ref,
8182         vect_transform_loop_bound, vect_compute_data_ref_alignment):
8183         Likewise.
8185         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
8186         alpha_gimplify_va_arg_1): Likewise.
8187         * config/arm/arm.c (arm_get_cookie_size): Likewise.
8188         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
8189         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
8190         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8191         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
8192         mips_gimplify_va_arg_expr): Likewise.
8193         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8194         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
8195         add_compiler_branch_island): Likewise.
8196         * config/s390/s390.c (s390_va_start): Likewise.
8197         * config/sh/sh.c (sh_va_start): Likewise.
8198         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8199         Likewise.
8200         * config/xtensa/xtensa.c (xtensa_va_start,
8201         xtensa_gimplify_va_arg_expr): Likewise.
8203         * objc/objc-act.c (build_objc_string_object,
8204         build_objc_symtab_template, init_def_list, init_objc_symtab,
8205         init_module_descriptor, generate_static_references,
8206         build_selector_translation_table, get_proto_encoding,
8207         build_typed_selector_reference, build_selector_reference,
8208         build_next_objc_exception_stuff,
8209         build_method_prototype_list_template, generate_descriptor_table,
8210         generate_protocols, build_protocol_initializer,
8211         build_ivar_list_template, build_method_list_template,
8212         build_ivar_list_initializer, generate_ivars_list,
8213         generate_dispatch_table, generate_protocol_list,
8214         build_category_initializer, build_shared_structure_initializer,
8215         generate_shared_structures, handle_impent,
8216         generate_objc_image_info): Likewise.
8218 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
8220         * cfglayout.c (duplicate_insn_chain): Remove references to
8221         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
8222         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
8223         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
8224         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
8225         and NOTE_INSN_LOOP_CONT.
8226         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
8227         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
8228         and NOTE_INSN_LOOP_CONT.
8229         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
8230         check_dbra_loop, loop_dump_aux): Remove references to removed notes
8231         and fields.
8232         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
8233         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
8234         references to removed notes and fields.
8235         (subtract_reg_term, ujump_to_loop_cont): Remove.
8237 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
8239         * doc/install.texi: Document that libcpp does not require
8240         Automake any longer.  Document that Automake 1.9.1 should
8241         work everywhere.
8243 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
8245         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
8246         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
8247         DWARF_DEBUGGING_INFO from choice-of-definition chain;
8248         restructure using C89 features (#elif, #error).
8249         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
8250         * config/sh/sh.h: Remove references to DWARF_DEBUG.
8251         * doc/invoke.texi: Remove references to DWARF version 1;
8252         clarify why -gdwarf-2<n> doesn't work.
8254 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
8256         * basic-block.h (BB_SET_PARTITION): Clear old value first.
8257         * cfg.c (clear_bb_flags): Don't clear partition setting.
8258         * ifcvt.c (find_if_case_1): Remove ??? comment.
8260 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
8262         PR target/17052
8263         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
8264         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
8265         current_function_stdarg in place of sysv_varargs_p.
8266         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
8267         sysv_varargs_p.
8269 2004-08-24  Richard Henderson  <rth@redhat.com>
8271         PR target/16298
8272         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
8273         random codes within CONST.
8275 2004-08-24  James E Wilson  <wilson@specifixinc.com>
8277         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
8278         -freorder-blocks-and-partition.
8280 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8282         PR middle-end/17044
8283         * tree-ssa-threadupdate.c (redirection_data): Make static.
8284         (thread_block): Use ggc_alloc_cleared to allocate struct
8285         redirection_data.  Don't free elements in redirection_data.
8287 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8289         * config/mips/predicates.md (small_data_pattern): Match prefetches.
8291 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8293         PR tree-optimization/17016
8294         * tree-ssa-loop-niter.c (number_of_iterations_cond,
8295         number_of_iterations_exit): Use POINTER_TYPE_P instead
8296         of testing for POINTER_TYPE.
8298 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8300         * tree-ssa-loop-ivcanon.c: New file.
8301         * tree-ssa-loop-manip.c (create_iv): New function.
8302         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
8303         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
8304         * cfgloop.c (mark_single_exit_loops): New function.
8305         (verify_loop_structure): Verify single-exit loops.
8306         * cfgloop.h (struct loop): Add single_exit field.
8307         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
8308         (mark_single_exit_loops): Declare.
8309         (tree_num_loop_insns): Declare.
8310         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
8311         (duplicate_loop_to_header_edge): Use it.
8312         * common.opt (fivcanon): New flag.
8313         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
8314         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
8315         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
8316         (bsi_insert_on_edge_immediate): New function.
8317         * tree-flow.h (bsi_insert_on_edge_immediate,
8318         canonicalize_induction_variables, tree_unroll_loops_completely,
8319         create_iv): Declare.
8320         * tree-optimize.c (init_tree_optimization_passes): Add
8321         pass_iv_canon and pass_complete_unroll.
8322         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
8323         * tree-scalar-evolution.c (get_loop_exit_condition,
8324         get_exit_conditions_rec, number_of_iterations_in_loop,
8325         scev_initialize): Use single_exit information.
8326         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
8327         missing assumptions.
8328         (loop_niter_by_eval):  Return number of iterations as unsigned
8329         int.
8330         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
8331         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
8332         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
8333         New passes.
8334         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
8335         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
8336         the defining statement is ready.
8337         * tree-vectorizer.c (vect_create_iv_simple): Removed.
8338         (vect_create_index_for_array_ref, vect_transform_loop_bound):
8339         Use create_iv.
8340         (vect_transform_loop_bound): Use single_exit information.
8341         (vect_analyze_loop_form): Cleanup bogus tests.
8342         (vectorize_loops): Do not call flow_loop_scan.
8343         * tree.h (may_negate_without_overflow_p): Declare.
8344         * fold-const.c (may_negate_without_overflow_p): Split out from ...
8345         (negate_expr_p): ... this function.
8346         (tree_expr_nonzero_p): Handle overflowed constants correctly.
8347         * doc/invoke.texi (-fivcanon): Document.
8348         * doc/passes.texi: Document canonical induction variable creation.
8350 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8352         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
8353         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
8354         using the mode of the operand to decide between them.
8355         * config/mips/mips.md (MOVECC): New mode macro.
8356         (ccreg): New mode attribute.
8357         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
8358         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
8359         (mov[sd]icc): Redefine using :GPR.
8361 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8363         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
8364         (mips_prefetch_cookie): New function.
8365         * config/mips/mips.c (print_operand_address): Fix handling of
8366         ADDRESS_CONST_INT.
8367         (mips_emit_prefetch): Delete.
8368         (mips_prefetch_cookie): New function.
8369         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
8370         mode of QImode for the address_operand.  Use mips_prefetch_cookie
8371         to calculate the first "pref" operand.
8372         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
8373         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
8375 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
8377         * arm.md: Include predicates.md.
8378         * predicates.md: New file.
8379         * arm.c (s_register_operand, arm_hard_register_operand)
8380         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
8381         (arm_immediate_operand, arm_neg_immediate_operand)
8382         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
8383         (arm_add_operand, arm_addimm_operand, arm_not_operand)
8384         (offsettable_memory_operand, alignable_memory_operand)
8385         (arm_reload_memory_operand, arm_float_rhs_operand)
8386         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
8387         (index_operand, shiftable_operator, logical_binary_operator)
8388         (shift_operator, equality_operator, arm_comparison_operator)
8389         (minmax_operator, cc_register, dominant_cc_register)
8390         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
8391         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
8392         (const_shift_operand, load_multiple_operation)
8393         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
8394         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
8395         (cirrus_register_operand, cirrus_fp_register)
8396         (cirrus_shift_const): Delete, replaced with equivalents in
8397         predicates.md.
8398         (shift_op): Handle ROTATE.
8399         * arm-protos.h: Delete declarations for above.
8400         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
8401         * t-arm (MD_INCLUDES): Add predicates.md.
8402         (s-preds): Depends on MD_INCLUDES.
8404 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8406         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
8407         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
8408         patterns.  Redefine using :GPR.  Give the match_operator a mode.
8409         Use '%2' rather than '%z2' for operand 2.
8411 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8413         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
8414         attribute.
8416 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8418         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
8419         of internal patterns.
8420         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
8421         Redefine using :P.
8422         (tablejump): Use expand_binop to calculate address.  Adjust names
8423         of internal patterns.
8424         (tablejump[sd]i): Renamed from tablejump_internal[12].
8425         Redefine using :P.
8426         (tablejump_mips16[12]): Delete.
8428 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8430         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
8431         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
8432         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
8433         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
8434         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
8436 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8438         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
8439         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
8440         using :GPR.
8441         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
8442         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
8443         (*branch_equality[sd]i_inverted): Likewise
8444         branch_equality{,_di}_inverted.
8445         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
8446         Redefine using :GPR.
8448 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
8450         * rtl.def: Reorganize, placing all codes used only in machine
8451         descriptions at the end.
8453         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
8454         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
8455         rtx_name, rtx_format arrays by direct reference to rtl.def,
8456         first undefining GENERATOR_FILE.  Define enum insn_note and
8457         note_insn_name array by direct reference to insn-notes.def.
8458         (adjust_field_rtx_def): Remove local definition of rtx_name.
8459         Use symbolic names for insn notes.
8460         * Makefile.in (gengtype.o): Update dependencies.
8462 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
8464         * basic-block.h (struct basic_block_def): Reorder fields to
8465         eliminate interior padding.  Remove 'partition' field.
8466         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
8467         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
8468         (BB_COPY_PARTITION): New macros.
8469         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
8470         Replace all references to the 'partition' field of a basic
8471         block with new macros.
8473         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
8474         * final.c (final_scan_insn): Don't handle it.
8475         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
8476         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
8477         * sched-rgn.c (sched_is_disabled_for_current_region_p):
8478         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
8480 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
8482         * c-decl.c (c_init_decl_processing): Adjust
8483         build_common_tree_nodes call.
8484         * expmed.c (const_mult_add_overflow_p): Use
8485         build_distinct_type_copy.
8486         * stor-layout.c (early_type_list): Remove.
8487         (layout_type): Don't append to early_type_list.
8488         (initialize_sizetypes): Add signed_p argument.
8489         (set_sizetype): Overwrite the stub type nodes directly.
8490         * tree.c (copy_node_stat): Clear a type's value cache here ...
8491         (build_distinct_type): ... not here.
8492         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
8493         * tree.h (initialize_sizetypes): Add signed_p argument.
8494         (build_common_tree_nodes): Likewise.
8496         * objc/objc-act.c (get_static_reference): Use
8497         build_variant_type_copy.
8498         (get_protocol_reference): Likewise.
8499         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
8501 2004-08-24  Richard Henderson  <rth@redhat.com>
8502             Andrew Pinski  <apinski@apple.com>
8504         * gimplify.c (gimplify_array_ref_to_plus): Delete.
8505         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
8506         for ARRAY_REF.
8508         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
8509         ARRAY_REF also to get to the STRING_CST.
8511 2004-08-24  Paul Brook  <paul@codesourcery.com>
8513         * config/arm/arm.c (arm_override_options): Update error message.
8514         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
8515         TARGET_HARD_FLOAT_ABI.
8516         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
8517         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
8519 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8521         PR target/17093
8522         * config/m32r.md (movsi_sda): Add SI mode specification to
8523         UNSPEC.
8525 2004-08-24  Nick Clifton  <nickc@redhat.com>
8527         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
8528         of seth_add3_operand.
8530 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
8532         * Makefile.in (PROTO_OBJS): Add errors.o.
8533         * protoize.c (fancy_abort): Remove.
8534         * mips-tfile.c (fancy_abort): Add parameters.
8536 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
8538         * doc/trouble.texi (C++ misunderstandings): Fix example code.
8540 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
8542         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
8543         (host-default.o): Add dependency on HOOKS_H.
8544         * config/x-linux: Likewise.
8545         * config/x-solaris: Likewise.
8546         * config/i386/x-mingw32: Likewise.
8547         * config/rs6000/x-darwin: Likewise.
8549 2004-08-23  James E Wilson  <wilson@specifixinc.com>
8551         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
8552         DEF_REG_NOTE.
8554 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
8556         PR c/14492
8557         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
8559 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
8561         * cfg.c (check_bb_profile): Fix typos.
8562         * function.c (assign_parm_is_stack_parm): Likewise.
8563         * tree-nested.c: Likewise.
8565 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
8567         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
8568         Remove TYPECODE.
8569         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
8571 2004-08-23  Eric Christopher  <echristo@redhat.com>
8573         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
8574         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
8575         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
8576         * target.h: Ditto.
8577         * hooks.h: Include machmode.h.
8578         (hook_bool_mode_false): Declare.
8579         * hooks.c (hook_bool_mode_false): Define.
8580         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
8581         * stor-layout.c (layout_type): Ditto.
8582         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
8583         Define to target macro.
8584         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
8585         * config/arm/arm.c: Ditto. Use.
8586         * config/arm/arm.h: Ditto.
8587         * config/arm/arm-protos.h: Ditto.
8588         * config/i386/i386.c: Ditto.
8589         * config/i386/i386.h: Ditto.
8590         * config/rs6000/rs6000.c: Ditto.
8591         * config/rs6000/rs6000.h: Ditto.
8592         * config/sh/sh.c: Ditto.
8593         * config/sh/sh.h: Ditto.
8594         * config/sh/sh-protos.h: Ditto.
8595         * config/sh/sh.md: Use.
8596         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
8597         to TARGET_VECTOR_MODE_SUPPORTED_P.
8599 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
8601         * Makefile.in (BUILD_ERRORS): Set to build-errors.
8602         (errors.o): New target for host.
8603         (build-errors.o): New target for build.
8604         (genobjs): Replace errors.o with build-errors.
8605         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
8606         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
8607         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
8608         (fix-header.o): Add errors.h
8609         * collect2.c (fancy_abort): Add parameters.
8610         * collect2.h (fancy_abort): Don't declare.
8611         * errors.h (fancy_abort): Don't declare.
8612         * errors.c: Include either bconfig.h or config.h.
8613         (fancy_abort): Trim filename.
8614         * fix-header.c (v_fatal, fatal): Remove.
8615         (progname): Remove definition.
8616         (main): Set progname here.
8617         * gcc.c (fancy_abort): Add parameters.
8618         * gcc.h (fancy_abort): Remove declaration.
8619         * gcov.c (fancy_abort): Remove.
8620         * rtl.h (fancy_abort): Don't declare.
8621         (abort): Don't define.
8622         * tree.h (fancy_abort): Don't declare.
8623         (abort): Don't define.
8624         * system.h (fancy_abort): Declare.
8625         (abort): Define to fancy_abort.
8626         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
8628         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
8629         (usize_type, ubitsizetype): Remove.
8630         * stor-layout.c (set_sizetype): Don't initialize usizetype,
8631         ubitsizetype.
8632         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
8634         * tree.h (build_distinct_type_copy): New.
8635         (build_type_copy): ... here.  Rename to ...
8636         (build_variant_type_copy): ... here.
8637         * tree.c (build_qualified_type): Rename build_type_copy call.
8638         (build_distinct_type_copy): New, broken out of ...
8639         (build_type_copy): ... here.  Rename to ...
8640         (build_variant_type_copy): ... here.  Use
8641         build_distinct_type_copy.
8642         (build_common_tree_nodes_2): Rename build_type_copy call.
8643         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
8644         call.
8645         (handle_packed_attribute, handle_unused_attribute,
8646         handle_transparanet_union_attribute, handle_aligned_attribute,
8647         handle_deprecated_attribute): Likewise.
8648         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
8649         Likewise.
8650         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
8651         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
8652         build_distinct_type_copy.
8654 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8656         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
8657         attribute.
8659 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8661         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
8662         loads and stores.
8663         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
8664         formerly unnamed patterns.  Redefine using :P for the address.  Remove
8665         explicit length attributes.
8667 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8669         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
8670         New functions.
8671         (single_reachable_address): Use them.
8672         (schedule_sm): Add dump.
8673         (is_call_clobbered_ref): New function.
8674         (determine_lsm_reg): Check whether the reference is call clobbered.
8675         Only work for gimple_reg_type values.
8677 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8679         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
8680         $31 store insns.  Redefine using :GPR.
8682 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8684         * config/mips/mips.md (P): New mode macro.
8685         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
8686         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
8687         Add mode attributes.
8689 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8691         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
8692         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
8693         later constants to cover the gap.
8694         (load, store): New mode attributes.
8695         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
8696         Use new unspec constants.
8698 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8700         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
8701         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
8702         to use register_operand rather than uns_arith_operand as the predicate
8703         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
8704         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
8705         Redefine using :GPR.  Make same predicate change here.  Extend the
8706         commutativity of operands 1 and 2 from the SImode version to the
8707         DImode one.
8708         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
8709         but with no predicate changes.
8710         (*nor[sd]i3): Redefine using :GPR.
8712 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8714         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
8715         noreturn functions.
8717 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8719         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
8720         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
8721         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
8722         rather than "%z2" (with a fake const0_rtx for operand 2).
8723         (ffs[sd]i2): Redefine using :GPR.
8724         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
8726 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8728         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
8730 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8732         * config/mips/mips.md (any_extend): New code macro.
8733         (u, su): New code attributes.
8734         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
8735         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
8736         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
8737         (*{s,u}mul_acc_di): Redefine using any_extend.
8738         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
8739         to reflect real insn names.
8740         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
8741         with an any_extend template.
8742         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
8743         Add '*' to name.
8745 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8747         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
8748         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
8749         (mul[sd]i3_r4000): Redefine using :GPR.
8750         (mulsi3_mult3): Don't check TARGET_MAD separately.
8751         (muldi3_mult3): Moved after mulsi_mult3.
8753 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8755         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
8756         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
8757         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
8758         (TARGET_GAS, TARGET_MIPS_AS): Delete.
8759         (TARGET_GPWORD): Define to true for n32 on IRIX.
8760         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
8761         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
8762         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
8763         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
8764         (MDEBUG_ASM_SPEC): Delete, folding into...
8765         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
8766         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
8767         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
8768         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
8769         to define asm_abi_default_spec.
8770         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
8771         (TARGET_ASM_SELECT_SECTION): Delete.
8772         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
8773         for non-mips16 code, removing previous workaround for SGI assemblers.
8774         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
8775         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
8776         (override_options): Remove !TARGET_GAS and !have_named_sections code.
8777         (print_operand): Fold TARGET_GAS conditionals into asm strings.
8778         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
8779         ASM_STABS_OP and ASM_STABN_OP.
8780         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
8781         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
8782         (mips_output_function_prologue): Remove !TARGET_GAS code.
8783         (mips_select_rtx_section): Remove !have_named_sections code.
8784         (mips_select_section): Delete.
8785         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
8786         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
8787         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
8788         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
8789         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
8790         * config/mips/windiss.h (ASM_SPEC): Likewise.
8792 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8794         * read-rtl.c (map_value, mapping, macro_group): New structures.
8795         (BELLWETHER_CODE): New macro.
8796         (modes, codes, bellwether_codes): New variables.
8797         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
8798         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
8799         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
8800         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
8801         (add_map_value, initialize_macros): New functions.
8802         (def_hash, def_hash_eq_p): Generalize to anything that points to,
8803         or starts with, a char * field.
8804         (find_macro, read_mapping, check_code_macro): New functions.
8805         (read_rtx_1): New, split out from read_rtx.  Handle the new
8806         define_{mode,code}_{macro,attr} constructs.  Use find_macro
8807         to parse the name of a code or mode.  Use BELLWETHER_CODE to
8808         extract the format and to choose a suitable code for rtx_alloc.
8809         Modify recursive invocations to use read_rtx_1.
8810         (read_rtx): Call initialize_macros.  Apply code and mode macros
8811         to the rtx returned by read_rtx_1.  Cache everything after the
8812         first macro expansion for subsequent read_rtx calls.
8813         * doc/md.texi: Document new .md constructs.
8814         * config/mips/mips.md (GPR): New mode macro.
8815         (d, si8_di5): New mode attributes.
8816         (any_cond): New code macro.
8817         (add[sd]i3): Redefine using :GPR.
8818         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
8819         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
8820         previously unnamed MIPS16 patterns.
8821         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
8822         lines.  Don't match (plus (const_int 0) ...).
8823         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
8824         Use a define_split to generate the addition.
8825         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
8826         (subsi3_internal): Delete.
8827         (*subsi3_extended): Renamed from subsi3_internal_2.
8828         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
8829         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
8830         using an any_cond template.
8832 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8834         * read-rtl.c (read_rtx): Tidy use of format_ptr.
8836 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8838         * read-rtl.c (string_obstack): New file-scope variable.
8839         (read_string, read_quoted_string, read_braced_string)
8840         (read_escape): Remove obstack parameter and use string_obstack instead.
8841         (read_rtx): Remove function-local rtl_obstack and initialize
8842         string_obstack instead.  Update call to read_string.
8844 2004-08-22  Andrew Pinski  <apinski@apple.com>
8846         PR c/15262
8847         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
8848         expression is not constant.
8849         (c_finish_return): Do not go through INDIRECT_REF when looking
8850         for the inner expression of an ADDR_EXPR for warning about.
8852 2004-08-22  Richard Henderson  <rth@redhat.com>
8854         PR 17075
8855         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
8856         create new blocks and fall through.
8857         (expand_gimple_basic_block): Update to match.
8859 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
8861         * reload.c (find_reloads_address): Make return value tri-state.
8862         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
8863         (find_reloads): Assume that reloaded addresses match 'o' or
8864         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
8865         returned 1 (not -1).  Omit optional reloads for address operands
8866         only if find_reloads_address returned 1 (not -1).
8868         * config/s390/s390.c (legitimize_reload_address): New function.
8869         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
8870         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
8871         legitimize_reload_address.
8873 2004-08-22  Richard Hendersion  <rth@redhat.com>
8875         * tree.h (SAVE_EXPR_RESOLVED_P): New.
8876         * gimplify.c (gimplify_save_expr): Use it.
8877         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
8878         on the temporary variable.
8880 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
8882         * fold-const.c (rtl_expr_nonnegative_p): Delete.
8883         * tree.h (rtl_expr_nonnegative_p): Remove.
8885 2004-08-22  Steven Bosscher  <stevenb@suse.de>
8887         * config/i386/ppro.md (ppro_complex_insn): Add missing check
8888         for cpu==pentiumpro.
8890         * combine.c (struct reg_stat): Fix comment typo.
8892 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
8894         * c-tree.h (c_sizeof_nowarn): Remove.
8896 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
8898         * c-decl.c (set_array_declarator_type): Rename to
8899         set_array_declarator_inner.
8900         (build_c_parm, build_attrs_declarator, build_function_declarator):
8901         New functions.
8902         (make_pointer_declarator): Call build_attrs_declarator.
8903         * c-tree.h (set_array_declarator_type): Rename to
8904         set_array_declarator_inner.
8905         (build_c_parm, build_attrs_declarator, build_function_declarator):
8906         New prototypes.
8907         * c-parse.in (after_type_declarator,
8908         parm_declarator_starttypename, parm_declarator_nostarttypename,
8909         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
8910         firstparm): Use these functions
8912 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
8914         * c-decl.c (build_array_declarator, set_array_declarator_type,
8915         start_decl, grokdeclarator, grokparms): Change boolean parameters
8916         to type bool.
8917         * c-tree.h (build_array_declarator, set_array_declarator_type,
8918         start_decl): Update prototypes.
8919         * c-decl.c, c-parse.in: All callers changed.
8921 2004-08-21  Mike Stump  <mrs@apple.com>
8923         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
8924         (darwin_fix_and_continue): Likewise.
8925         (darwin_fix_and_continue_switch): Likewise.
8926         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
8927         (darwin_fix_and_continue): Likewise.
8928         (darwin_fix_and_continue_switch): Likewise.
8930 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
8932         PR  c++/16030
8933         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
8934         Remove, merging into ...
8935         (gen_stdcall_or_fastcall_suffix): New function, returning tree
8936         rather than const char*, and accepting additional parameter.
8937         Don't add suffix to '*'-prefixed symbols or variadic functions.
8938         (i386_pe_encode_section_info): Adjust for call to new function.
8939         Call change_decl_assembler_name.
8941 2004-08-20  Mike Stump  <mrs@apple.com>
8943         * config/darwin.c (machopic_indirect_data_reference): Mark
8944         stubs as defined.
8945         * config/386/386.c (darwin_local_data_pic): Add.
8946         (legitimate_constant_p): Reorder so that PLUS handling runs
8947         before darwin_local_data_pic to match the ordering in
8948         legitimate_pic_address_disp_p and so that MINUS runs after
8949         darwin_local_data_pic as otherwise the darwin_local_data_pic
8950         logic can be skipped, which would be very bad.
8951         (legitimate_pic_address_disp_p): Move from from here to
8952         darwin_local_data_pic so it can be reused.
8954 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
8956         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
8957         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
8958         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
8959         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
8960         (RS6000_ABI_NAME): Define as "linux".
8961         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
8962         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
8963         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
8964         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
8965         * config/rs6000/rs6000.c (dot_symbols): New global var.
8966         (rs6000_output_function_entry): New function, modified for
8967         !DOT_SYMBOLS..
8968         (print_operand <case 'z'>): ..extracted from here.
8969         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
8970         (rs6000_output_function_epilogue): Likewise.
8971         (rs6000_elf_declare_function_name): Likewise.
8972         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
8973         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
8974         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
8975         * configure: Regenerate.
8976         * config.in: Regenerate.
8978 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
8980         * reload.c (find_reloads_address): Fix thinko in previous change.
8982         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
8983         a CONST_INT.
8985 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
8987         PR rtl-optimization/17099
8988         * combine.c (force_to_mode): Check if inner_mask has any bits set
8989         outside of GET_MODE (x) instead of op_mode.
8991 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
8993         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
8994         fragment.
8995         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
8996         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
8997         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
8998         architecture.
8999         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
9000         configurations.
9001         * config/arm/t-symbian: New file.
9003 2004-08-20  Andrew Pinski  <apinski@apple.com>
9005         * regrename.c (kill_value_regno): ANSIfy.
9007 2004-08-20  Dale Johannesen  <dalej@apple.com>
9009         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
9011 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
9013         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
9014         (kill_value_regno): New function, derived from kill_value.
9015         (kill_value): Update.
9016         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
9018 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
9020         Fix PR tree-optimization/17111
9021         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
9022         of non-value_handles.
9023         (bitmap_set_contains): All constants are in every set.
9025 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
9027         * fold-const.c (round_up, round_down): Use build_int_cst.
9028         Optimize common case.
9030 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
9031             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9033         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
9034         one_only_data_section): Rename to som_readonly_data_section,
9035         som_one_only_readonly_data_section and som_one_only_data_section.
9036         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
9037         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
9038         conditional defines.
9039         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
9040         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
9041         string values.
9042         (pa_select_section): Use renamed section functions.
9043         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
9044         SOM_READONLY_DATA_SECTION_FUNCTION,
9045         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
9046         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
9047         Define here ...
9048         * config/pa/som.h: ... not here.
9049         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
9050         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
9051         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
9052         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
9053         (READONLY_DATA_SECTION): Use som_readonly_data_section.
9055 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
9057         * fold-const.c (int_const_binop): Don't generate non-overflowing
9058         size-types specially.
9059         (fold_convert_const): Likewise.
9061         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
9062         clear cache on copied sizetype.
9064 2004-08-20  Ben Elliston  <bje@au.ibm.com>
9066         * configure.ac: Don't escape apostrophe in --enable-coverage help.
9067         * configure: Regenerate.
9069 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
9071         PR 5620
9072         * gcc.c (struct stat input_stat): Don't define if
9073         HOST_LACKS_INODE_NUMBERS
9074         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
9075         than stat to determine if temp file is same as input file.
9076         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
9077         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
9079 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
9081         * configure.ac (mips*-*-*): Print an error if not using GAS.
9082         * configure: Regenerated.
9083         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
9084         comments about buggy MIPSpro assemblers.
9085         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
9086         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
9087         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
9088         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
9089         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
9090         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
9091         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
9092         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
9093         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
9094         of more general IRIX 6 definitions.
9095         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
9096         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
9097         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
9098         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
9099         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
9100         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
9101         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
9102         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
9103         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
9104         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
9105         (LINK_SPEC): Move most of definition to iris.h.
9106         (SUBTARGET_LINK_SPEC): New macro.
9107         (IRIX_STARTFILE_SPEC): Fold into...
9108         (STARTFILE_SPEC): ...here.
9109         (IRIX_ENDFILE_SPEC): Fold into...
9110         (ENDFILE_SPEC): ...here.
9111         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
9112         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
9113         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
9114         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
9115         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
9116         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
9117         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
9118         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
9119         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
9120         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
9121         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
9122         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
9123         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
9124         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
9125         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
9126         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
9127         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
9128         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
9129         (TARGET_IRIX6): Define to 1.
9130         (DRIVER_SELF_SPECS): Define.
9131         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
9132         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
9133         (SUBTARGET_LINK_SPEC): New macro.
9134         (IRIX_STARTFILE_SPEC): Fold into...
9135         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
9136         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
9137         (LIB_SPEC, LIBGCC_SPEC): Use them.
9138         (LIB_SPEC): Remove !mabi=* case.
9139         (IRIX_ENDFILE_SPEC): Fold into...
9140         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
9141         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
9142         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
9143         (TARGET_IRIX6): New macro.
9144         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
9145         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
9146         (LABEL_AFTER_LOC): Delete.
9147         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
9148         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
9149         (mips_build_builtin_va_list): Check TARGET_IRIX6.
9150         (override_options): Remove TARGET_SGI_O32_AS-related code.
9151         (irix_output_external_libcall): Make static.
9152         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
9153         LABEL_AFTER_LOC.
9154         (mips_file_start): Tidy guard for ABI sections.  Remove use of
9155         ABICALLS_ASM_OP; use .abicalls instead.
9156         (mips_output_aligned_decl_common, mips_declare_object_name)
9157         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
9158         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
9159         .globl foo .text directives.
9160         (irix_asm_named_section_1, irix_asm_named_section)
9161         (irix_section_align_entry, irix_section_align_htab)
9162         (irix_orig_asm_out_file, irix_section_align_entry_eq)
9163         (irix_section_align_entry_hash, irix_asm_output_align)
9164         (irix_file_start, irix_section_align_1, copy_file_data)
9165         (irix_file_end, irix_section_type_flags): Delete.
9166         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
9167         Use standard section syntax.  Remove protective "jr $31".
9168         (__gcc_fini): Likewise .gcc_fini.
9169         * config/mips/irix-crtn.asm: Adjust sections accordingly.
9170         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
9171         iris5gas.h.
9172         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
9173         from t-irix-gld.
9174         (EXTRA_MULTILIB_PARTS): Define.
9175         * config/mips/t-iris6: Remove bogus comment.
9176         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
9177         * config/mips/iris5gas.h, config/mips/iris5gld.h,
9178         config/mips/iris6gas.h, config/mips/iris6gld.h,
9179         config/mips/t-iris5-as, config/mips/t-iris5-gas
9180         config/mips/t-irix-gld: Delete.
9181         * config/mips/iris.h: New file.
9182         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
9184 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
9186         * postreload.c (reload_cse_move2add): Allow any condjump, but check
9187         that the implicit set isn't clobbered in the jump insn.
9189 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
9191         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
9192         * optabs.c (init_optabs): Don't check it.
9193         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
9194         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
9196 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
9198         * config/s390/s390.md (s390_warn_framesize_string)
9199         (s390_warn_dynamic_string, s390_stack_size_string)
9200         (s390_stack_guard_string): New global string variables.
9201         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
9202         (s390_stack_guard): New global variables.
9203         (override_options): Added checks for the new options.
9204         (s390_emit_prologue): Emit stack check and trap code and perform
9205         compile time stack size checking.
9207         * config/s390/s390.h (TARGET_OPTIONS): Added new options
9208         "warn-framesize", "warn-dynamicstack", "stack-size" and
9209         "stack-guard".
9211         * doc/invoke.texi: Added documentation for the new options.
9213 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
9215         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
9216         to eliminate warning.
9217         (linear_search_fdes): Declare p as unsigned.
9218         (binary_search_mixed_encoding_fdes): Likewise.
9219         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
9220         to eliminate warning.
9221         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
9222         type cast.
9224 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
9226         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
9227         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
9228         instead of one.  Check for strictly legitimate address.
9229         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
9230         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
9232 2004-08-19  Eric Christopher  <echristo@redhat.com>
9234         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
9235         * langhooks.h (unsave_expr_now): Ditto.
9236         * tree.h (unsave_expr_1): Remove prototype.
9237         (lhd_unsave_expr_now): Rename to unsave_expr_now.
9238         * tree-inline.c (unsave_expr_1): Move here
9239         from tree.c. Make static.
9240         (unsave_expr_now): Rename from lhd_unsave_expr_now.
9241         * tree-sra.c: Fix up for rename.
9242         * tree-ssa-copy.c: Ditto.
9243         * tree-eh.c: Ditto.
9244         * tree.c (unsave_expr_1): Move to tree-inline.c.
9246 2004-08-19  Caroline Tice  <ctice@apple.com>
9248         * config/i386/cygming.h (switch_to_section):  Fix typo (change
9249         in_unlikely_text_section to in_unlikely_executed_text).
9251 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
9253         * vec.h (VEC_lower_bound): New macro.
9255 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
9257         PR target/16446
9258         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
9259         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
9260         treat each ABI separately.  Deal with n32/n64 complex float arguments.
9261         (function_arg): Add associated complex handling here.
9263 2004-08-19  Richard Henderson  <rth@redhat.com>
9265         * config/arm/arm.c (arm_gen_load_multiple): Use
9266         adjust_automodify_address.  Take base memory and offset instead
9267         of unchanging/struct/scalar bits.
9268         (arm_gen_store_multiple): Likewise.
9269         (arm_gen_movmemqi): Use adjust_automodify_address.
9270         * config/arm/arm-protos.h: Update decls.
9271         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
9272         (store_multiple): Similarly.
9274 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
9276         * regclass.c (globalize_reg): Update call_really_used_regs.
9278 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
9280         * doc/invoke.texi (integer-share-limit): Document.
9282         * tree.h (TYPE_CACHED_VALUES_P): New.
9283         (TYPE_CACHED_VALUES): New.
9284         (TYPE_ORIG_SIZE_TYPE): Adjust.
9285         * tree.def (INTEGER_CST): Update documentation.
9286         * tree.c: Inlcude params.h.
9287         (build_int_cst): Cache small values.
9288         (build_type_copy): Do not copy the value cache.
9289         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
9290         unneeded zeroing.
9291         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
9292         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
9293         cache.
9294         * fold-const.c (force_fit_type): Copy value when setting
9295         overflows.
9296         (int_const_binop): Likewise.
9297         * stor-layout.c: Include params.h
9298         (set_sizetype): Create values cache.
9299         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
9300         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
9301         * params.h (INTEGER_SHARE_LIMIT): New.
9302         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
9304 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
9306         * gimplify.c (gimplify_minimax_expr): Remove.
9307         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
9309 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
9311         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
9312         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
9314 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
9316         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
9318 2004-08-18  Andrew Pinski  <apinski@apple.com>
9320         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
9322 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
9324         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
9325         (__aeabi_ul2f): Likewise.
9327 2004-08-18  Richard Henderson  <rth@redhat.com>
9329         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
9330         move to rtl completely.
9331         (struct meminsnbuf, xtensa_emit_block_move): Remove.
9332         (xtensa_find_mode_for_size): Remove.
9333         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
9334         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
9336 2004-08-18  Richard Henderson  <rth@redhat.com>
9338         * config/mcore/mcore.c (mode_from_align): Remove DImode.
9339         (block_move_sequence): Rewrite to use adjust_address.
9340         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
9341         Return boolean indicating success/failure.
9342         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
9343         * config/mcore/mcore.md (movmemsi): Update to match.
9345 2004-08-18  Mike Stump  <mrs@apple.com>
9347         * doc/invoke.texi (-mfix-and-continue): Add support for
9348         fast turn around debugging.
9349         (-ffix-and-continue): Likewise.
9350         (-mindirect-data): Likewise.
9351         (-findirect-data): Likewise.
9352         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
9353         (indirect_data): Likewise.
9354         (machopic_data_defined_p): Likewise.
9355         (machopic_output_indirection): Likewise.
9356         (darwin_encode_section_info): Likewise.
9357         (darwin_fix_and_continue): Likewise.
9358         (darwin_fix_and_continue_switch): Likewise.
9359         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
9360         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
9361         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
9362         (SUBTARGET_OPTIONS): Likewise.
9363         (darwin_fix_and_continue): Likewise.
9364         (darwin_fix_and_continue_switch): Likewise.
9365         (TARGET_FIX_AND_CONTINUE): Likewise.
9366         * config/rs6000.c (rs6000_emit_prologue): Likewise.
9368 2004-08-19  Steven Bosscher  <stevenb@suse.de>
9370         * basic-block.h (struct edge_def): Remove crossing_edge.
9371         (EDGE_CROSSING): New define.
9372         (EDGE_ALL_FLAGS): Update.
9373         * bb-reorder.c (find_traces_1_round, better_edge_p,
9374         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
9375         find_jump_block, fix_crossing_conditional_branches,
9376         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
9377         Replace all occurences of crossing_edge with an edge flag check
9378         or set/reset.
9379         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
9380         try_crossjump_bb): Likewise.
9381         * cfglayout.c (fixup_reorder_chain): Likewise.
9382         * cfgrtl.c (force_nonfallthru_and_redirect,
9383         commit_one_edge_insertion): Likewise.
9385         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
9386         * tree-flow.h (compute_dominance_frontiers): Move prototype...
9387         * basic-block.h:  ...here.
9388         * tree-cfg.c (compute_dominance_frontiers_1,
9389         compute_dominance_frontiers): Move from here...
9390         * cfganal.c: ...to here.  Include timevar.h.
9392 2004-08-18  James E Wilson  <wilson@specifixinc.com>
9394         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
9395         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
9397         * config/mips/mips.md (type): Add frdiv.
9398         (divsf3+1, divsf3+2): Change type to frdiv.
9399         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
9400         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
9402         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
9403         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
9404         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
9405         * config/mips/5000.md (r5k_fdiv_single): Likewise.
9406         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
9407         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
9408         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
9409         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
9410         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
9411         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
9412         Likewise.
9413         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
9415 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
9417         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
9418         get regression tester working again.
9420 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
9422         * insn-notes.def, reg-notes.def: New files.
9423         * rtl.h: Use them to define enum insn_note and enum reg_note.
9424         * rtl.c: Use them to define note_insn_name and reg_note_name.
9425         * Makefile.in (RTL_BASE_H): Update.
9427         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
9428         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
9430 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
9432         * arm.c (arm_size_rtx_costs): New function.
9433         (arm_override_options): Use it if optimizing for space.
9435 2004-08-18  Richard Henderson  <rth@redhat.com>
9437         * emit-rtl.c (gen_const_mem): New.
9438         * rtl.h (gen_const_mem): Declare.
9439         * expr.c (do_tablejump): Use it.
9440         * varasm.c (force_const_mem): Likewise.
9441         * config/darwin.c (machopic_indirect_data_reference): Likewise.
9442         (machopic_legitimize_pic_address): Likewise.
9443         * config/arm/arm.c (legitimize_pic_address): Likewise.
9444         * config/i386/i386.c (legitimize_pic_address): Likewise.
9445         (legitimize_tls_address): Likewise.
9446         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
9447         * config/ia64/ia64.md (load_fptr): Likewise.
9448         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
9449         * config/pa/pa.c (legitimize_pic_address): Likewise.
9450         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
9451         (rs6000_emit_move): Likewise.
9452         * config/s390/s390.c (legitimize_pic_address): Likewise.
9453         (legitimize_tls_address): Likewise.
9454         * config/s390/s390.md (casesi): Likewise.
9455         * config/sh/sh.c (sh_reorg): Likewise.
9456         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
9457         * config/v850/v850.md (casesi): Likewise.
9459         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
9460         * config/sh/sh.c (prepare_move_operands): Remove incorrect
9461         use of MEM_READONLY_P.
9463 2004-08-18  Steven Bosscher  <stevenb@suse.de>
9465         * Makefile.in (OBJS-common): Add postreload-gcse.c.
9466         Add new postreload-gcse.o.
9467         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
9468         (lookup_as_function, insert, rehash_using_reg, use_related_value,
9469         equiv_constant): Use SAFE_HASH instead of safe_hash.
9470         (exp_equiv_p): Export.  Add for_gcse argument when comparing
9471         for GCSE.
9472         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
9473         find_comparison_args, fold_rtx, cse_insn): Update callers.
9474         (hash_rtx): New function derived from old canon_hash and bits
9475         from gcse.c hash_expr_1.
9476         (canon_hash_string): Rename to hash_rtx_string.
9477         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
9478         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
9479         (cselib_lookup): Update this caller.
9480         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
9481         Make static.
9482         (hash_expr): Call hash_rtx.
9483         (ldst_entry): Likewise.
9484         (expr_equiv_p): Call exp_equiv_p.
9485         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
9486         reg_used_on_edge, reg_set_between_after_reload_p,
9487         reg_used_between_after_reload_p, get_avail_load_store_reg,
9488         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
9489         get_bb_avail_insn, hash_scan_set_after_reload,
9490         compute_hash_table_after_reload,
9491         eliminate_partially_redundant_loads, gcse_after_reload,
9492         get_bb_avail_insn, gcse_after_reload_main): Remove.
9493         * postreload-gcse.c: New file, reincarnating most of the above.
9494         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
9495         (gcse_after_reload_main): Update prototype.
9496         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
9497         * passes.c (rest_of_handle_gcse2): Use it.
9499 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
9501         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
9502         (pass_loop_done): Likewise.
9504 2004-08-18  Andrew Pinski  <apinski@apple.com>
9506         * config/rs6000/darwin.md: Delete the altivec patterns which are
9507         handled differently now.
9508         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
9509         (macho_correct_pic_di): Likewise.
9510         (call_indirect_nonlocal_darwin64): Likewise.
9511         Delete the save world/saveFP/saveVec patterns.
9513         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
9514         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
9515         * config/rs6000/rs6000.md: Include darwin.md.
9516         (builtin_setjmp_receiver): Add DImode case.
9517         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
9518         Darwin bits.
9520 2004-08-18  Matt Austern  <austern@apple.com>
9522         Dead code stripping
9523         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
9524         * darwin.c (darwin_file_end): Mark file as potentially strippable.
9526 2004-08-18  Richard Henderson  <rth@redhat.com>
9528         * alias.c (readonly_fields_p): Remove.
9529         (objects_must_conflict_p): Don't call it.
9530         * tree.h (readonly_fields_p): Remove.
9531         * langhooks.h (struct lang_hooks): Remove honor_readonly.
9532         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
9534 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
9536         * tree-dfa.c (add_referenced_var): Only global variables are
9537         call-clobbered.
9538         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
9539         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
9540         all pointers dereferenced if the statement dereferences them.
9541         (create_name_tags): Do not create memory tags for pointers
9542         that have PT_ANYTHING set.
9543         Also check if PT_VARS is not empty before creating a name tag.
9544         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
9545         variables that share the same alias set with a pointer that
9546         may point anywhere.
9547         (add_may_alias): Add FIXME comment to remove clobbering
9548         aliased variables and tags.
9549         (replace_may_alias): Likewise.
9550         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
9551         (merge_pointed_to_info): If the original variable has not
9552         points-to information, call set_pt_anything.
9553         (add_pointed_to_var): Do not prevent adding a pointed-to
9554         variable if the pointers is PT_ANYTHING.
9555         If the variable is a global, set PT_GLOBAL_MEM.
9556         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
9557         pointer type only come in PTR+OFFSET flavours.
9558         Always call merge_pointed_to_info on PHI arguments that are
9559         SSA_NAMEs.
9560         (get_nmt_for): Mark call-clobbered tags whose pointer points
9561         to global memory.
9562         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
9563         values.
9564         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
9565         FLAGS.
9566         (add_stmt_operand): Abort if the caller tried to add a killing
9567         definition for a memory tag.
9568         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
9569         unnecessary checks.
9571 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
9573         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
9574         from call_used_regs.  Update call_really_used_regs.
9575         (CALL_REALLY_USED_REGISTERS): Define.
9576         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
9577         Replace call_used_regs with call_really_used_regs.
9578         (calc_live_regs, sh_media_register_for_return): Likewise.
9579         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
9580         * sh.md (return_media): Likewise.
9582 2004-08-18  Andrew Pinski  <apinski@apple.com>
9584         * config/darwin.c (machopic_legitimize_pic_address): Only set
9585         MEM_READONLY_P in the non TARGET_TOC case.
9587 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
9589         * rtl.def (NIL): Delete.
9590         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
9591         Tighten the syntax a little.
9593         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
9594         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
9595         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
9596         * config/i386/predicates.md, config/m32r/m32r.h
9597         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
9598         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
9599         * config/sparc/sparc.h, doc/tm.texi:
9600         Replace all occurrences of NIL with UNKNOWN.
9602 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
9604         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
9605         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
9606         sequence inline.  Move drop_through_label code into this
9607         block, being the only place it is used.  Adjust comments.
9609 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
9611         * config/rs6000/altivec.md: Add new patterns for calls to
9612         save_world/rest_world functions.
9614         * config/rs6000/rs6000-protos.h: (save_world_operation,
9615         restore_world_operation) new declarations.
9617         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
9618         field added.
9619         (rs6000_stack_info): Set world_save_p field.
9620         (save_world_operation): New function.
9621         (restore_world_operation): New function.
9622         (compute_save_world_info): New function.
9623         (rs6000_stack_info): Call compute_save_world_info.
9624         (rs6000_emit_prologue): Check for world_save_p and generate
9625         pattern to call save_world for saving all non-volatile and
9626         special registers.
9627         (rs6000_emit_epilogue): Check for world_save_p and generate
9628         pattern to call rest_world to restore saved registers.
9630         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
9631         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
9632         (rs6000_reg_names): New entries added for save_world_operation and
9633         restore_world_operation.
9635 2004-08-18  Caroline Tice  <ctice@apple.com>
9637         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
9638         "-freorder-blocks-and-partition" to the flags used in second
9639         stage of profiledbootstrap.
9640         * bb-reorder.c (push_to_next_round_p): Add new variable,
9641         next_round_is_last; set and use variable to make sure, when
9642         partitioning, that the last trace construction round consists
9643         of all (and only) cold basic blocks.
9644         (rotate_loop): Don't copy blocks that end in a section
9645         crossing jump.
9646         (copy_bb): Correctly initialize "partition" of duplicated bb.
9647         (add_unlikely_executed_notes): Add a comment.
9648         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
9649         to make sure, if function contains hot blocks, that the
9650         successors of ENTRY_BLOCK_PTR are hot; also, only look for
9651         crossing edges if the architecture supports named sections.
9652         (mark_bb_for_unlikely_executed_section): Modify to always
9653         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
9654         the basic block note insn.
9655         (fix_crossing_unconditional_branches): Remove extra space.
9656         (fix_edges_for_rarely_executed_code): Modify to only do
9657         partitioning work if the architecture supports named sections.
9658         (reorder_basic_blocks): Modify to only add
9659         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
9660         supports named sections.
9661         * c-common.c (handle_section_attribute): Initialize new global
9662         variable, user_defined_section_attribute, to true if user has
9663         specified one.
9664         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
9665         forward edges that cross section boundaries.
9666         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
9667         partitioning information if the architecture supports named
9668         sections.
9669         * cfgrtl.c (target.h): Add statement to include this.
9670         (rtl_split_block): Make sure newly created bb gets correct
9671         partition.
9672         (try_redirect_by_replacing_jump): Make sure redirection isn't
9673         attempting to cross section boundaries.
9674         (force_nonfallthru_and_redirect): Only do partition fix up if
9675         architecture supports named sections.
9676         (rtl_split_edge): Make sure newly created bb ends up in
9677         correct partition.
9678         (commit_one_edge_insertion): Remove code that incorrectly
9679         updated basic block partition; Make sure partition fix up only
9680         happens if architecture supports named sections and it's not
9681         already done.
9682         (rtl_verify_flow_info_1): Fix if-condition on test/error
9683         condition that fallthru edges are not allowed to cross section
9684         boundaries.
9685         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
9686         * final.c (final_scan_insn): Remove redundant test from if-statement;
9687         change calls to text_section into calls to function_section; add code
9688         to only to partitioning fix up if architecture supports named
9689         sections.
9690         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
9691         partition.
9692         (if_convert): Add targetm.have_named_sections to test.
9693         * output.h (unlikely_section_label): Extern declaration for new global
9694         variable.
9695         (unlikely_text_section_name): Likewise.
9696         * opts.c (decode_options): If both partitioning and DWARF debugging
9697         are turned on, issue a warning that this doesn't work, and change
9698         partitiong to basic block reordering (without hot/cold partitions).
9699         * passes.c (rest_of_handle_final): Re-set new global variable,
9700         user_defined_section_attribute, to false.
9701         (rest_of_compilation): Change options for calling partitioning
9702         function: Don't call if the user defined the section attribute, and
9703         don't call if DECL_ONE_ONLY is true for the current function.
9704         * predict.c (choose_function_section): Return immediately if we
9705         are doing hot/cold partitioning (i.e. let the basic block partitioning
9706         determine where the function belongs).
9707         * reg-stack.c (emit_swap_insn): Add condition to step over
9708         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
9709         * toplev.c (user_defined_section_attribute): New global variable.
9710         * toplev.h (user_defined_section_attribute): Extern declaration
9711         for new global variable.
9712         * varasm.c (unlikely_section_label): New global variable.
9713         (unlikely_text_section_name): New global variable.
9714         (unlikely_text_section): Add code to initialize
9715         unlikely_text_section_name if necessary; modify to use
9716         unlikely_text_section_name and unlikely_section_label; also to use
9717         named_section properly.
9718         (in_unlikely_text_section):  Modify to work correctly with
9719         named_section and to use unlikely_text_section_name.
9720         (named_section):  Add code to work properly with cold section.
9721         (function_section): Clean up if-statement.
9722         * config/darwin.c (darwin_asm_named_section): Return to original
9723         code, removing use of SECTION_FORMAT_STRING.
9724         * config/arm/pe.h (switch_to_section):  Add case for
9725         in_unlikely_executed_text to switch statement.
9726         * config/i386/cygming.h (switch_to_section): Likewise.
9727         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
9728         (SECTION_FORMAT_STRING): Likewise.
9729         * config/mcore/mcore.h (switch_to_section): Likewise.
9730         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
9731         (SECTION_FORMAT_STRING): Remove.
9733 2004-08-18  Roger Sayle  <roger@eyesopen.com>
9735         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
9736         -ffixed-reg safe, by preserving the meanings of zero and one.
9737         (CALL_USED_REGISTERS): Likewise.
9738         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
9740 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9742         * config/sh/sh.c (split_branches): Check the result of
9743         next_active_insn.
9744         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
9745         Call rtl_register_cfg_hooks.
9747 2004-08-18  Richard Henderson  <rth@redhat.com>
9749         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
9750         * alias.c (true_dependence): Update to match new semantics.
9751         (canon_true_dependence, write_dependence_p): Likewise.
9752         (anti_dependence, output_dependence): Update write_dependence_p args.
9753         (unchanging_anti_dependence): Remove.
9754         * calls.c (purge_mem_unchanging_flag): Remove.
9755         (fixup_tail_calls): Don't call it.
9756         (expand_call): Don't add unchanging memory to function usage.
9757         * expr.c (emit_block_move_via_libcall): Likewise.
9758         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
9759         (get_subtarget): Don't use RTX_UNCHANGING_P.
9760         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
9761         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
9762         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
9763         * cse.c (insert): Don't use RTX_UNCHANGING_P.
9764         (cse_insn, canon_hash): Use MEM_READONLY_P.
9765         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
9766         instead of RTX_UNCHANGING_P.
9767         * explow.c (maybe_set_unchanging): Remove.
9768         * expr.h (maybe_set_unchanging): Remove.
9769         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
9770         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
9771         (assign_parm_setup_reg, expand_function_start): Likewise.
9772         * integrate.c (copy_rtx_and_substitute): Likewise.
9773         * ra-rewrite.c (emit_colors): Likewise.
9774         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
9775         (fixup_match_1): Likewise.
9776         * reload1.c (reload, alter_reg): Likewise.
9777         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
9778         not RTX_UNCHANGING_P.
9779         (equiv_init_varies_p): Likewise.
9780         * loop-invariant.c (check_maybe_invariant): Likewise.
9781         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
9782         * loop.c (note_addr_stored): Likewise.
9783         (prescan_loop): Likewise. Don't check function usage for clobbered
9784         unchanging memory.
9785         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
9786         not RTX_UNCHANGING_P.
9787         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
9788         * varasm.c (force_const_mem): Likewise.
9789         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
9790         * web.c (entry_register): Likewise.
9791         * tree-gimple.h (get_base_address): Move decl ...
9792         * tree.h: ... here.
9793         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
9795         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
9796         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
9797         (alpha_set_memflags): Update to match.
9799         * config/darwin.c (machopic_indirect_data_reference): Set
9800         MEM_READONLY_P instead of RTX_UNCHANGING_P.
9801         (machopic_indirect_call_target): Likewise.
9802         (machopic_legitimize_pic_address): Likewise.
9803         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
9804         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
9805         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
9806         * config/frv/frv.md (symGOT2reg): Likewise.
9807         * config/i386/i386.c (legitimize_pic_address,
9808         legitimize_tls_address, ix86_split_to_parts): Likewise.
9809         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
9810         * config/ia64/ia64.md (load_fptr): Likewise.
9811         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
9812         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
9813         * config/mcore/mcore.c (block_move_sequence): Likewise.
9814         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
9815         * config/pa/pa.c (legitimize_pic_address): Likewise.
9816         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
9817         (rs6000_emit_move): Likewise.
9818         * config/s390/s390.c (legitimize_pic_address): Likewise.
9819         (legitimize_tls_address): Likewise.
9820         * config/s390/s390.md (casesi): Likewise.
9821         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
9822         * config/sh/sh.md (symGOT2reg): Likewise.
9823         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
9824         * config/v850/v850.md (casesi): Likewise.
9826         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
9827         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
9828         * config/mips/mips.c (mips_restore_gp): Likewise.
9829         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
9830         * config/sh/sh.c (sh_reorg): Likewise.
9832 2004-08-18  Richard Henderson  <rth@redhat.com>
9834         * tree.h (struct tree_decl): Add gimple_formal_temp.
9835         (DECL_GIMPLE_FORMAL_TEMP_P): New.
9836         * gimplify.c (pop_gimplify_context): Clear it.
9837         (lookup_tmp_var): Set it, if is_formal.
9838         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
9839         Use is_gimple_val for VECTOR.  Simplify return value.
9840         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
9841         (gimplify_expr): Likewise.
9842         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
9843         is_gimple_tmp_rhs for clarity.  Update all callers.
9844         (is_gimple_reg_rhs): Simplify logic.
9845         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
9846         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
9847         (is_gimple_formal_tmp_reg): Similarly.
9848         * tree-gimple.h: Update decls.
9849         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
9850         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
9851         * tree-ssa-live.c (var_union, type_var_init): Likewise.
9853 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
9855         * c4x.c (legitimize_operands): Remove calls to
9856         preserve_subexpressions_p.
9858 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
9860         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
9861         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
9863 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
9865         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
9866         Objective-C++ extensions.
9867         * gengtype.c (get_file_basename): Match entire subdirectory name
9868         ('cp', 'objc', 'objcp') rather than just its suffix.
9869         (get_base_file_bitmap): Allow for files to belong to more than one
9870         language.
9871         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
9872         used by more than one front-end.
9874 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
9876         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
9877         avoid use of preserve_subexpressions_p.
9879 2004-08-17  Richard Henderson  <rth@redhat.com>
9881         PR 17051
9882         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
9884 2004-08-17  DJ Delorie  <dj@redhat.com>
9886         * doc/extend.texi: Document new xstormy16 attribute.
9888         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
9889         (xstormy16_splittable_below100_or_register): New.
9890         (combine_bnp): New.
9891         (xstormy16_reorg): New.
9892         (TARGET_MACHINE_DEPENDENT_REORG): Define.
9894         * config/stormy16/stormy16.md (movqi_internal): Make name public.
9895         (movhi_internal): Likewise.
9896         (cbhranchhi): Likewise.
9897         (cbhranchhi_neg): Likewise.
9898         (andhi3): Only allow splittable below100 operands.
9899         (iorhi3): Likewise.
9900         (peephole2): New and/zero_extend->and peephole.
9901         (peephole2): New load/ior/save->set1 peephole.
9902         (peephole2): New load/and/save->clr1 peephole.
9903         (bclrx, bclrx2, bclr7, bclr15): New.
9904         (bsetx, bsetx2, bset7, bset15): New.
9906         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
9907         liberal about acceptable 'B' masks.
9909         * config/stormy16/stormy16-protos.h
9910         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
9911         xstormy16_below100_operand, xstormy16_below100_or_register,
9912         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
9913         (PREDICATE_CODES): Add new predicates.
9915         * config/stormy16/stormy16.c
9916         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
9917         xstormy16_below100_operand, xstormy16_below100_or_register,
9918         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
9919         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
9920         (xstormy16_legitimate_address_p): Allow below100 symbols.
9921         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
9922         (xstormy16_expand_move): Leave below100 operands as-is.
9923         (xstormy16_encode_section_info): Encode below100 symbols.
9924         (xstormy16_strip_name_encoding): New.
9925         (xstormy16_print_operand): Print 'b' as shift mask.
9926         (xstormy16_attribute_table): Add below100 attributes.
9927         (xstormy16_handle_below100_attribute): New.
9929         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
9930         (XSTORMY16_SECTION_FUNCTION): New.
9931         (EXTRA_SECTION_FUNCTIONS): Define using the above.
9932         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
9933         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
9934         (ASM_OUTPUT_LABELREF): Define.
9936         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
9937         (movhi_internal): Add below100 support.
9938         (andhi3): Add below100 support.
9939         (iorhi3): Add below100 support.
9940         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
9942 2004-08-17  James E Wilson  <wilson@specifixinc.com>
9944         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
9945         of VOIDmode for comparison code mode.
9946         * config/mips/mips.md: For conditional move patterns, use mode of
9947         first compare operand for comparison mode, instead of VOIDmode.
9949         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
9950         normal and -ffast-math code.
9952 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
9954         PR c++/15871
9955         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
9957 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
9959         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
9961 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
9963         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
9964         for non Darwin targets.
9965         (*call_value_nonlocal_darwin64): Likewise.
9967 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
9969         * config/rs6000/rs6000.c (rs6000_function_value): Check for
9970         altivec mode for altivec return register.
9972 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
9974         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
9975         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
9976         * config/rs6000/rs6000.md: Include darwin.md.
9977         (builtin_setjmp_receiver): Add DImode case.
9978         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
9979         Darwin bits.
9981 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
9983         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
9984         trees.
9985         * tree-vectorizer.h: New File: Same.
9986         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
9987         * common.opt (ftree-vectorize): New flag to enable vectorization.
9988         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
9989         vectorization pass.
9990         * tree-data-ref.h (init_data_ref): Additional argument.
9991         (array_base_name_differ_p): Moved to tree-data-ref.c.
9992         * tree-data-ref.c (array_base_name_differ_p): Revised.
9993         (initialize_data_dependence_relation): Call array_base_name_differ_p
9994         with an extra argument.
9995         (analyze_all_data_dependences): Same.
9996         (init_data_ref): Additional argument is_read to set DR_IS_READ.
9997         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
9998         file.
9999         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
10000         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
10001         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
10002         vectorization pass.
10003         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
10004         (tree_ssa_loop_done): Call scev_finalize.
10005         (tree_vectorize): Define the new vectorization pass.
10006         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
10007         size of the vector they support (until support for multiple vector
10008         sizes is added to the vectorizer).
10009         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
10010         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
10011         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
10012         documentation.
10014 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
10016         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
10017         usage.
10018         (generate_protocol_list, handle_impent): Likewise.
10020 2004-08-17  Roger Sayle  <roger@eyesopen.com>
10022         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
10023         ensure that call_used_regs is a superset of both fixed_regs and
10024         call_really_used_regs.
10026 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
10028         PR target/17019
10029         * arm.md (addsi3_cbranch_scratch): Correct case labels.
10031 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
10033         PR middle-end/17036
10034         * fold-const.c (fold): Check for integer operand when
10035         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
10036         Pinski  <pinskia@physics.uc.edu>.
10038 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
10040         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
10041         No need to check if in a cross configuration.
10042         * configure: Regenerate.
10044         * calls.c (precompute_register_parameters):
10045         Inline preserve_subexpressions_p ().
10046         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
10047         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
10048         Likewise.
10049         * expr.c (get_subtarget): Likewise.
10050         * rtl.h (preserve_subexpressions_p): Remove.
10051         * stmt.c (preserve_subexpressions_p): Remove.
10053         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
10054         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
10055         Abort on gimplified cases.
10057 2004-08-16  James E Wilson  <wilson@specifixinc.com>
10059         * tree.h (VECTOR_FLOAT_TYPE_P): New.
10060         (FLOAT_TYPE_P): Use it.
10061         * c-typeck.c (build_binary_op): After convert calls, check for
10062         check for ERROR_MARK operands.
10064 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
10066         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
10067         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
10068         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
10069         (genobjs static pattern rule): Remove %.c dependency.
10070         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
10071         Rename rules; delete commands; fix dependencies.
10072         (mostlyclean): Do not delete temporary source copies.
10073         * configure.ac: Delete all references to BUILD_PREFIX and
10074         BUILD_PREFIX_1.
10075         * configure: Regenerate.
10077         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
10078         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
10079         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
10080         with #ifndef GENERATOR_FILE so that nothing from those headers
10081         is used.
10083         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
10085 2004-08-16  Adam Nemet  <anemet@lnxw.com>
10087         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
10089 2004-08-16  Andrew Pinski  <apinski@apple.com>
10091         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
10092         extraneous semicolon.
10094 2004-08-16  Devang Patel  <dpatel@apple.com>
10096         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
10097         * print-tree.c (print_node): Print DECL_PRESERVE_P.
10098         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
10099         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
10100         * target.h (struct gcc_target): New member, mark_decl_preserved.
10101         * hooks.c (hook_void_charptr): Rename to ...
10102         (hook_void_constcharptr): ... new name.
10103         * hooks.h (hook_void_charptr): Rename to ..
10104         (hook_void_constcharptr): ... new name.
10105         * tree.h (DECL_PRESERVE_P): New #define.
10106         (struct tree_decl): New member, preserve_flag.
10107         * varasm.c (assemble_start_function): Mark decl preserved.
10108         (assemble_variable): Same.
10109         * darwin.c (darwin_mark_decl_preserved): New function.
10110         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
10111         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
10112         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
10114 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
10116         * c-decl.c (grokdeclarator): Allow for function definition where
10117         innermost declarator has attributes.
10119 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
10121         * except.c (get_exception_filter, build_post_landing_pads,
10122         dw2_build_landing_pads): Use target-specific mode for 'filter'.
10123         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
10124         * target.h (eh_return_filter_mode): New field added.
10125         * targhooks.c (default_eh_return_filter_mode): Defined.
10126         * targhooks.h (default_eh_return_filter_mode): Declared.
10127         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
10129 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
10131         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
10132         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
10133         * configure: Regenerate.
10135 2004-08-16  Stan Shebs  <shebs@apple.com>
10137         Basic support for 64-bit Darwin.
10138         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
10139         (machopic_legitimize_pic_address): Similarly, plus use Pmode
10140         instead of SImode.
10141         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
10142         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
10143         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
10144         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
10145         (PROCESSOR_DEFAULT64): Define.
10146         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
10147         Darwin.
10148         * config/rs6000/rs6000.md: Include darwin.md.
10149         (builtin_setjmp_receiver): Add DImode case.
10150         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
10151         Darwin.
10152         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
10153         (rs6000_emit_move): Add DImode case to Darwin bits.
10154         (machopic_output_stub): Use .quad if 64-bit.
10155         * invoke.texi: Document -m32 and -m64.
10157 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
10159         * doc/extend.texi (AltiVec builtins): Document additional differences
10160         from the Motorola AltiVec PIM.
10162 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10164         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
10165         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
10166         (struct tree_common): Update public_flag documentation.
10168 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
10170         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10171         Check for artificial variables, not is_gimple_tmp_var.
10172         * tree-ssa-live.c (var_union): Likewise.
10174 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10176         * calls.c (load_register_parameters): Remove spurious FIXME token.
10178 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
10180         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
10181         (c-lang.o): Depend on c-objc-common.h.
10182         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
10183         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
10184         * c-lang.c: Include c-objc-common.h.
10185         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
10186         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
10187         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
10188         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
10189         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
10190         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
10191         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
10192         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
10193         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
10194         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10195         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
10196         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
10197         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
10198         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
10199         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
10200         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
10201         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
10202         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
10203         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
10204         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
10205         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
10206         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
10207         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
10208         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
10209         Move to c-objc-common.h.
10210         * c-objc-common.c: Include c-objc-common.h.
10211         * c-objc-common.h: New file.
10213 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
10214             Andrew Pinski  <pinskia@physics.uc.edu>
10216         PR target/14931
10217         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
10218         style.
10220 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
10222         * tree.h (build_int_cst): New.
10223         (build_int_2): Remove.
10224         * tree.c (build_int_2): Remove.
10225         (build_int_cst): New.
10226         (make_vector_type, build_common_tree_nodes,
10227         build_common_tree_nodes_2): Use build_int_cst.
10228         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
10229         expand_builtin_strpbrk, expand_builtin_fputs,
10230         build_string_literal, expand_builtin_printf,
10231         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
10232         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
10233         fold_builtin_isdigit, simplify_builtin_strstr,
10234         simplify_builtin_strpbrk, fold_builtin_fputs,
10235         simplify_builtin_sprintf): Use build_int_cst.
10236         * c-common.c (start_fname_decls, fix_string_type,
10237         c_common_nodes_and_builtins, c_init_attributes,
10238         shorten_compare): Likewise.
10239         * c-decl.c (complete_array_type,
10240         check_bitfield_type_and_width): Likewise.
10241         * c-lex.c (interpret_integer, lex_charconst): Likewise.
10242         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
10243         * c-pretty-print.c (pp_c_integer_constant): Likewise.
10244         * c-typeck.c (really_start_incremental_init, push_init_level,
10245         set_nonincremental_init_from_string): Likewise.
10246         * calls.c (load_register_parameters): Likewise.
10247         * convert.c (convert_to_pointer): Likewise.
10248         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
10249         build_fn_info_type, build_ctr_info_value, build_gcov_info):
10250         Likewise.
10251         * except.c (init_eh, assign_filter_values, assign_filter_values):
10252         Likewise.
10253         * expmed.c (store_fixed_bit_field, extract_bit_field,
10254         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
10255         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
10256         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
10257         * expr.c (convert_move, emit_group_load, emit_group_store,
10258         expand_assignment, store_constructor, store_field,
10259         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
10260         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
10261         invert_truthvalue, optimize_bit_field_compare,
10262         decode_field_reference, all_ones_mask_p, constant_boolean_node,
10263         fold_div_compare, fold, fold_read_from_constant_string,
10264         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
10265         * function.c (assign_parm_setup_block): Likewise.
10266         * stmt.c (shift_return_value, expand_end_case_type,
10267         estimate_case_costs): Likewise.
10268         * stor-layout.c (layout_type, initialize_sizetypes,
10269         set_min_and_max_values_for_integral_type): Likewise.
10270         * tree-chrec.c (chrec_fold_multiply_poly_poly,
10271         reset_evolution_in_loop): Likewise.
10272         * tree-chrec.h (build_polynomial_chrec): Likewise.
10273         * tree-complex.c (build_replicated_const): Likewise.
10274         * tree-eh.c (honor_protect_cleanup_actions,
10275         lower_try_finally_onedest, lower_try_finally_copy,
10276         lower_try_finally_switch): Likewise.
10277         * tree-mudflap.c (mf_build_string, mx_register_decls,
10278         mudflap_register_call, mudflap_enqueue_constant): Likewise.
10279         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
10280         * tree-pretty-print.c (dump_generic_node): Likewise.
10281         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
10282         Likewise.
10283         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
10284         * tree-ssa-loop-niter.c (number_of_iterations_cond,
10285         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
10286         Likewise.
10288         * config/alpha/alpha.c (alpha_initialize_trampoline,
10289         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
10290         * config/arm/arm.c (arm_get_cookie_size): Likewise.
10291         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
10292         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
10293         * config/i860/i860.c (i860_va_start): Likewise.
10294         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10295         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
10296         mips_gimplify_va_arg_expr): Likewise.
10297         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10298         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
10299         add_compiler_branch_island): Likewise.
10300         * config/s390/s390.c (s390_va_start): Likewise.
10301         * config/sh/sh.c (sh_va_start): Likewise.
10302         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10303         Likewise.
10304         * config/xtensa/xtensa.c (xtensa_va_start,
10305         xtensa_gimplify_va_arg_expr): Likewise.
10307         * objc/objc-act.c (build_objc_string_object,
10308         build_objc_symtab_template, init_def_list, init_objc_symtab,
10309         init_module_descriptor, generate_static_references,
10310         build_selector_translation_table, get_proto_encoding,
10311         build_typed_selector_reference, build_selector_reference,
10312         build_next_objc_exception_stuff,
10313         build_method_prototype_list_template, generate_descriptor_table,
10314         generate_protocols, build_protocol_initializer,
10315         build_ivar_list_template, build_method_list_template,
10316         build_ivar_list_initializer, generate_ivars_list,
10317         generate_dispatch_table, generate_protocol_list,
10318         build_category_initializer, build_shared_structure_initializer,
10319         generate_shared_structures, handle_impent,
10320         generate_objc_image_info): Use build_int_cst.
10322 2004-08-15  Ben Elliston  <bje@au.ibm.com>
10324         * vec.h: Comment improvements.
10326 2004-08-14  Roger Sayle  <roger@eyesopen.com>
10328         * c-common.c (shorten_compare, pointer_int_sum,
10329         c_common_truthvalue_conversion, boolean_increment): Replace calls
10330         to build with calls to buildN.
10331         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
10332         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
10333         gimplify_switch_stmt): Likewise.
10334         * c-typeck.c (default_function_array_conversion,
10335         build_component_ref, build_array_ref, build_function_call,
10336         pointer_diff, build_unary_op, build_conditional_expr,
10337         build_compound_expr, build_modify_expr, c_finish_goto_label,
10338         c_finish_goto_ptr, c_finish_return, c_finish_loop,
10339         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
10340         build_binary_op): Likewise.
10342 2004-08-15  Steven Bosscher  <stevenb@suse.de>
10344         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
10346 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10348         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
10349         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
10350         * fixinc/fixincl.x: Rebuilt.
10352 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
10354         * config/mips/mips-protos.h (mips_symbolic_constant_p)
10355         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
10356         (mips_small_data_pattern_p): Declare.
10357         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
10358         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
10359         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
10360         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
10361         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
10362         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
10363         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
10364         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
10365         (pc_or_label_operand, call_insn_operand, move_operand)
10366         (consttable_operand, symbolic_operand, general_symbolic_operand)
10367         (global_got_operand, local_got_operand, stack_operand)
10368         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
10369         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
10370         (mips_small_data_pattern_p): Replace previous small_data_pattern
10371         predicate.  Turn into a bool () (rtx) function.
10372         * config/mips/predicates.md: New file.
10373         * config/mips/mips.md: Include it.  Use the target-independent
10374         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
10375         trap_comparison_operator and equality_op to equality_operator.
10376         Replace uses of small_int with the equivalent const_arith_operand.
10377         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
10378         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
10379         to fcc_reload_operand.
10380         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
10382 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10384         PR libstdc++/17005 partial fix.
10385         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
10386         except when generating ANSI/C89 code.
10388 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
10390         * c-common.c (shorten_compare): Use force_fit_type directly.
10392 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
10393             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
10394             Dave Korn  <dk@artimi.com>
10396         * doc/install.texi (Building): Avoid duplicate reference to GNU
10397         make requirement.
10398         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
10400 2004-08-14  Richard Henderson  <rth@redhat.com>
10402         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
10403         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
10405 2004-08-13  Richard Henderson  <rth@redhat.com>
10407         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
10408         for constant_call_address_operand.
10409         (call_value_pop_1, call_value_1): Likewise.
10410         (sibcall_value_1, call_value_1_rex64): Likewise.
10412 2004-08-13  James E Wilson  <wilson@specifixinc.com>
10414         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
10415         Correct mode from SFmode to DFmode.
10417 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
10419         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
10420         __cstring_object and __image_info sections with the no_dead_strip
10421         attribute.
10423 2004-08-13  Roger Sayle  <roger@eyesopen.com>
10424             David Billinghurst  <David.Billinghurst@riotinto.com>
10426         PR libgfortran/15930
10427         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
10428         * fixinc/fixincl.x: Regenerate.
10429         * fixinc/tests/base/internal/math_core.h: New file.
10431 2004-08-13  Richard Henderson  <rth@redhat.com>
10433         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
10434         (dbxout_function_end): Remove ifdefs for it.
10435         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
10437 2004-08-13  Richard Henderson  <rth@redhat.com>
10439         * Makefile.in (insn-preds.o): Depend on TREE_H.
10440         * genpreds.c (write_insn_preds_c): Include tree.h.
10441         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
10442         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
10443         const48_operand, and_operand, or_operand, mode_width_operand,
10444         mode_mask_operand, mul8_operand, const0_operand,
10445         hard_fp_register_operand, hard_int_register_operand,
10446         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
10447         samegp_function_operand, direct_call_operand, small_symbolic_operand,
10448         global_symbolic_operand, call_operand, symbolic_operand,
10449         dtp16_symbolic_operand, dtp32_symbolic_operand,
10450         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
10451         gottp_symbolic_operand, alpha_comparison_operator,
10452         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
10453         signed_comparison_operator, alpha_fp_comparison_operator,
10454         divmod_operator, fix_operator, aligned_memory_operand,
10455         unaligned_memory_operand, reg_or_unaligned_mem_operand,
10456         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
10457         reg_no_subreg_operand, addition_operation): Move to predicates.md.
10458         (reg_or_const_int_operand): Remove.  Replace all users with
10459         reg_or_cint_operand.
10460         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
10461         (resolve_reload_operand): Split out of aligned_memory_operand.
10462         * config/alpha/alpha-protos.h: Update for exports.
10463         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
10464         * config/alpha/alpha.md: Include predicates.md.
10465         * config/alpha/predicates.md: New file.
10467 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
10469         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
10470         fields with a pointer to the instruction definition.
10471         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
10472         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
10473         (write_attr_case, write_const_num_delay_slots): Update accordingly.
10474         (write_attr_case, write_const_num_delay_slots): Write the name of
10475         an insn next to its case statement.
10476         * genoutput.c (data): Add a filename field.
10477         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
10478         (output_insn_data): Print the location of each insn definition.
10479         * genrecog.c (write_action): Print the name of an insn above
10480         the statement that returns its code.
10482 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
10484         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
10485         * config/libgloss.h: Likewise.
10486         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
10487         * c4x/c4x-modes.def: Likewise.
10488         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
10489         (c4x_rptb_nop_p): Likewise.
10490         (c4x_rptb_valid_p): Likewise.
10491         (c4x_rptb_insert): Likewise.
10492         (c4x_address_conflict): Likewise.
10493         * config/c4x/c4x.md: Likewise.
10494         * config/frv/frv.md: Likewise.
10495         * config/i386/athlon.md: Likewise.
10496         * config/i386/i386.md: Likewise.
10497         * config/i386/predicates.md: Likewise.
10498         * config/ia64/ia64.c: Likewise.
10499         * config/ia64/itanium1.md: Likewise.
10500         * config/ia64/itanium2.md: Likewise.
10501         * config/iq2000/iq2000.md: Likewise.
10502         * config/mcore/mcore.c: Likewise.
10503         * config/mips/mips.c: Likewise.
10504         * config/mips/r3900.h: Likewise.
10505         * config/mips/sb1.md: Likewise.
10506         * config/pa/milli64.S: Likewise.
10507         * config/pa/pa.c: Likewise.
10508         * config/pa/pa.h: Likewise.
10509         * config/rs6000/8540.md: Likewise.
10511 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
10513         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
10515 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
10517         * sh.md (cbranch define_delay) Use cond_delay_slot for
10518         non-anulled condition too.
10520 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
10522         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
10523         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10524         any_parallel_operand, lmw_operation, stmw_operation,
10525         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
10526         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
10527         any_parallel_operand.
10528         (return_and_restore_fpregs_{si,di}): Same.
10530 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
10532         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
10533         if pred->singleton != PARALLEL, issue a warning and pretend it was.
10534         Also issue a warning for any predicate we don't know about.
10536 2004-08-12  Richard Henderson  <rth@redhat.com>
10538         * config/i386/i386.c (internal_label_prefix): Export.
10539         (internal_label_prefix_len, struct ix86_address,
10540         ix86_decompose_address, maybe_get_pool_constant,
10541         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
10542         memory_address_length): Export.
10543         (any_fp_register_operand, fp_register_operand,
10544         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
10545         x86_64_general_operand, x86_64_szext_general_operand,
10546         x86_64_nonmemory_operand, x86_64_movabs_operand,
10547         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
10548         x86_64_zext_immediate_operand, const_int_1_31_operand,
10549         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
10550         tls_symbolic_operand, global_dynamic_symbolic_operand,
10551         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
10552         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
10553         constant_call_address_operand, const0_operand, const1_operand,
10554         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
10555         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
10556         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
10557         general_no_elim_operand, nonmemory_no_elim_operand,
10558         index_register_operand, q_regs_operand, flags_reg_operand,
10559         non_q_regs_operand, zero_extended_scalar_load_operand,
10560         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
10561         ix86_comparison_operator, ix86_carry_flag_operator,
10562         fcmov_comparison_operator, promotable_binary_operator,
10563         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
10564         mult_operator, div_operator, arith_or_logical_operator,
10565         memory_displacement_operand, cmpsi_operand, long_memory_operand,
10566         aligned_operand): Move to predicates.md as define_predicates.
10567         (tls_symbolic_operand_1): Remove.
10568         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
10569         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
10570         (legitimize_address): Merge tls_symbolic_operand contents.
10571         (ix86_expand_move): Likewise.
10572         * config/i386/i386-protos.h: Update for exports.
10573         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
10574         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
10575         * config/i386/i386.md: Include predicates.md.
10576         * config/i386/predicates.md: New file.
10578 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
10580         PR c++/16924
10581         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
10582         SYMBOL_REF_DECL.
10583         (i386_pe_mark_dllimport): Likewise.
10584         (i386_pe_encode_section_info): Likewise, when overriding
10585         dllimport attribute.
10587 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
10589         * configure.ac: When testing for flex, nm, ar, and bison, check
10590         that they will actually be built.
10591         * configure: Regenerate.
10593 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
10595         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
10596         (MOVE_MAX_PIECES): Define.
10598 2004-08-12  Devang patel  <dpatel@apple.com>
10600         * dbxout.c (dbxout_begin_prologue): New function.
10601         (dbx_debug_hooks): Use new begin prologue hook.
10602         (dbxout_function_end): Emit N_ENSYM.
10603         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
10605 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
10607         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
10608         argument is float*.
10610         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
10611         for vec_dss.
10613         * doc/extend.texi (AltiVec builtins): Fix description for recent
10614         changes.  Update operation list to match current support.
10616 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
10618         * config/s390/s390.c (struct s390_frame_layout): New struct as element
10619         of struct machine_function.
10620         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
10621         changed all uses.
10622         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
10623         changed all uses.
10624         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
10625         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
10626         (s390_frame_area, s390_register_info): New functions.
10627         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
10628         for base register.
10629         (s390_return_addr_rtx, s390_return_address_offset)
10630         (s390_va_start, s390_gimplify_va_arg)
10631         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
10632         layouts.
10633         (s390_frame_info): Functionality partly moved to s390_register_info.
10634         Made adaptions for new stack layout.
10635         (save_gprs, restore_gprs): Changed meaning of second parameter and
10636         adapted all callers.
10638         * config/s390/s390.h (s390_backchain_string): New global variable.
10639         (MASK_BACKCHAIN): Removed definition.
10640         (TARGET_BACKCHAIN): Changed check.
10641         (TARGET_KERNEL_BACKCHAIN): New macro.
10642         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
10643         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
10644         "kernel-backchain".
10645         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
10647         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
10648         as condition.  Adjusted for new stack layout.
10650         * doc/invoke.texi: Added documentation for new option
10651         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
10652         "-mno-backchain".
10654 2004-08-12  Paul Brook  <paul@codesourcery.com>
10656         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
10657         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
10659 2004-08-12  David Daney  <ddaney@avtrex.com>
10661         * java/gcj.texi:  Add subsection on signal usage.
10663 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
10665         * expr.c (move_by_pieces): Set alignment for move to minimum of
10666         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
10667         alignment, but not less than the original alignment.
10668         (move_by_pieces_ninsns): Same.
10669         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
10670         (store_by_pieces_1): Same.
10672 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
10674         PR tree-optimization/16867
10675         * tree.c (is_global_var): New function.
10676         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
10677         Call is_global_var.
10678         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
10679         Update all users.
10680         (is_global_var): Declare.
10681         * tree-dfa.c (dump_variable): Display global and addressable
10682         attributes.
10683         (add_referenced_var): Clarify documentation when marking
10684         variables call-clobbered.
10685         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
10686         instead of needs_to_live_in_memory.
10687         (mark_call_clobbered): If the variable is a tag, mark it
10688         DECL_EXTERNAL.
10689         * tree-gimple.c (is_gimple_reg): Don't check for
10690         TREE_ADDRESSABLE.
10691         (is_gimple_non_addressable): Likewise.
10692         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
10693         needs to be marked call-clobbered.
10694         (setup_pointers_and_addressables): Call is_global_var instead
10695         of needs_to_live_in_memory.
10696         * tree-ssa-dce.c (need_to_preserve_store): Remove.
10697         Update all users with is_global_var.
10698         (mark_stmt_if_obviously_necessary): Fix processing of aliased
10699         stores.  Don't check the virtual definitions.  Rather, check
10700         whether the store is going into global memory.
10701         (find_obviously_necessary_stmts): Get the symbol from the PHI
10702         result.
10703         * tree-ssa-operands.c (get_call_expr_operands): Do not add
10704         clobbering may-defs if the call does not have side effects.
10706 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
10708         PR c++/16276
10709         * output.h (default_function_rodata_section,
10710         default_no_function_rodata_section): New prototypes.
10711         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
10712         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
10713         (TARGET_ASM_OUT): Add it.
10714         * varasm.c (default_function_rodata_section,
10715         default_no_function_rodata_section): New functions.
10716         * final.c (final_scan_insn): Call
10717         targetm.asm_out.function_rodata_section instead of
10718         readonly_data_section.
10719         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
10720         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
10721         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
10722         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
10723         Likewise.
10724         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
10725         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
10726         Likewise.
10727         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
10728         Likewise.
10729         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
10730         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
10731         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
10733 2004-08-12  Paul Brook  <paul@codesourcery.com>
10735         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
10736         frame info.
10737         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
10738         DWARF2_UNWIND_INFO.
10740 2004-08-12  Ben Elliston  <bje@au.ibm.com>
10742         PR target/16286
10743         * config/rs6000/altivec.h: Change vector to __vector throughout.
10744         (Except for the `vector' macro itself).
10746 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
10748         * genpreds.c: Add capability to generate predicate bodies as
10749         well as function prototypes.  Write function prototypes for
10750         the generic predicates too.
10751         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
10752         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
10753         (write_match_code, write_predicate_expr, write_one_predicate_function)
10754         (parse_option): New functions.
10755         (output_predicate_decls): Delete.
10756         (main): Read the machine description, process DEFINE_PREDICATE or
10757         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
10758         as appropriate.
10760         * genrecog.c (struct decision_test): Replace index with
10761         struct pred_data pointer.
10762         (next_index): Remove, unused.
10763         (pred_table, preds, special_mode_pred_table): Delete.
10764         (compute_predicate_codes, process_define_predicate): New functions.
10765         (validate_pattern, add_to_sequence, write_switch): Update for
10766         new data structures.
10767         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
10768         Check both error_count and have_error.
10770         * gensupport.c (in_fname, first_predicate): New globals.
10771         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
10772         (predicate_table, last_predicate, old_pred_table)
10773         (old_special_pred_table): New statics.
10774         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
10775         (add_predicate, init_predicate_table): New functions.
10776         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
10777         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
10778         it or max_include_len.  Call init_predicate_table.
10779         (read_rtx): Run the predicate queue after the attribute queue
10780         but before all the others.
10781         * gensupport.h (in_fname, struct pred_data, first_predicate)
10782         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
10783         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
10784         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
10785         * dummy-conditions.c: Don't include bconfig.h, system.h,
10786         coretypes.h, tm.h, or system.h.  Do include stddef.h.
10787         Duplicate declaration of struct c_test from gensupport.h.
10789         * Makefile.in (OBJS-common): Add insn-preds.o.
10790         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
10791         (insn-preds.c, insn-preds.o): New rules.
10792         (s-preds): Also generate insn-preds.c.
10793         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
10794         Update dependencies.
10795         (print-rtl.o, print-rtl1.o): Correct dependencies.
10797         * recog.h: Delete prototypes of predicate functions.
10799         * doc/md.texi (Predicates): New section with complete
10800         documentation of operand/operator predicates.  Remove some
10801         incomplete documentation of predicates from other places.
10802         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
10803         PREDICATE_CODES; indicate that both are deprecated in favor
10804         of define_predicate/define_special_predicate.
10806         * config/ia64/ia64.c: All predicate function definitions moved
10807         to ia64.md, except
10808         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
10809         (ia64_expand_load_address, ia64_expand_move):
10810         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
10812         * config/ia64/ia64.md: All predicates now defined here.
10813         (symbolic_operand): Is now a special predicate.
10815         * config/ia64/ia64.h: Declare ia64_section_threshold.
10816         (PREDICATE_CODES): Delete.
10818 2004-08-12  Richard Henderson  <rth@redhat.com>
10820         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
10821         * c-semantics.c (add_stmt): Set it.
10822         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
10823         before instantiating a variable sized type.
10825 2004-08-12  Richard Henderson  <rth@redhat.com>
10827         * stor-layout.c (round_up, round_down): Move ...
10828         * fold-const.c (round_up, round_down): ... here.  Use
10829         multiple_of_p to avoid any arithmetic at all.
10831 2004-08-12  Richard Henderson  <rth@redhat.com>
10833         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
10834         (gimplify_init_ctor_preeval_1): New.
10835         (gimplify_init_ctor_preeval): New.
10836         (gimplify_init_ctor_eval): New.
10837         (gimplify_init_constructor): Use them.  Always gimplify the LHS
10838         object first.
10840 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
10842         (This patch is part of merge of objc-improvements-branch
10843         into mainline.)
10845         * doc/frontends.texi: Mention Objective-C++ in addition to
10846         Objective-C.
10847         * doc/install.texi: Add 'obj-c++' to list of configurable
10848         languages.
10849         * doc/invoke.texi: Rename Objective-C option headings to
10850         indicate they also apply to Objective-C++.  List file
10851         extensions for Objective-C++ sources.  Mention that
10852         ObjC and ObjC++ compilations may also use C and C++ options,
10853         respectively.  Point users to doc/standards.texi for
10854         further info on ObjC and ObjC++.
10855         * doc/sourcebuild.texi: Mention the objcp/ directory and
10856         the Objective-C++ sources it contains.
10857         * doc/standards.texi: Update link to Apple ObjC site;
10858         add link to gcc readings.html WWW doc.
10860 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
10862         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
10863         and 2004-07-14 changes.
10865 2004-08-12  Paul Brook  <paul@codesourcery.com>
10867         * doc/invoke.texi: Fix typo.
10869 2004-08-11 Devang Patel  <dpatel@apple.com>
10871         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
10872         and -no_dead_strip_inits_and_terms.
10873         (LINK_SPEC): Same.
10874         * doc/invoke.texi (Darwin Options): Document -dead_strip and
10875         -no_dead_strip_inits_and_terms.
10877 2004-08-11  Paul Brook  <paul@codesourcery.com>
10879         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
10880         (arm_load_pic_register): ... to this.
10881         * config/arm/arm.c (arm_finalize_pic): Rename ...
10882         (arm_load_pic_register): ... to this.  Always output insns at the
10883         current location.  Load via low reg in thumb mode.
10884         (arm_expand_prologue): Call arm_load_pic_register.
10885         (thumb_expand_prologue): Ditto.
10886         * config/arm/arm.h (FINALIZE_PIC): Remove.
10887         * config/arm/arm.md (builtin_setjmp_receiver): Call
10888         arm_load_pic_register.
10890 2004-08-11  Paul Brook  <paul@codesourcery.com>
10892         * arm.c (thumb_force_lr_save): Add prototype.
10893         (thumb_compute_save_reg_mask): New function.
10894         (thumb_find_work_register): New function.
10895         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
10896         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
10897         Don't clobber r3 when removing pretend args.
10898         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
10899         (thumb_output_function_prologue): Use new functions.
10900         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
10901         * arm.h (THUMB_REG_PUSHED_P): Remove.
10903 2004-08-11  James E Wilson  <wilson@specifixinc.com>
10905         PR rtl-optimization/16490
10906         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
10907         global_live_at_end for new basic block if already set for other blocks.
10909 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
10911         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
10913         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
10914         (mfcr rlwinm rlwinm patterns): Set length to 12.
10916 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
10918         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
10919         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
10920         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
10921         (start_ssa_stmt_operands): Delete.
10922         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
10923         struct stmt_operands_d.
10924         (build_ssa_operands): New extern entry point.
10925         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
10926         building code, replace with create_ssa_artficial_load_stmt().
10927         * tree-ssa-operands.c (struct voperands_d): Delete.
10928         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
10929         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
10930         (free_uses, free_defs, free_vuses, free_v_may_defs,
10931         free_v_must_defs): Remove dealloc parameter.
10932         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
10933         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
10934         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
10935         vector comparisons, ssa_name reuse, and allocations here.
10936         (verify_start_operands): Delete.
10937         (finalize_ssa_stmt_operands): Set new operands by calling finalize
10938         routines.
10939         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
10940         (append_def, append_usei): Simplify to simple accumulation.
10941         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
10942         duplicates and simple accumulation.
10943         (free_ssa_operands): Free vectors in a stmt_operand structure.
10944         (build_ssa_operands): New. Create a new stmt_operand structure from
10945         a stmt and an old set of stmt_operands.
10946         (get_stmt_operands): Simplify and call build_ssa_operands.
10947         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
10948         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
10949         add_call_read_ops): Don't pass prev_vops around anymore.
10950         (note_addressable): Return if no stmt annotation.
10951         (copy_virtual_operands): Access v_may_def operands through a struct.
10952         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
10953         hash tables without treating the stmt as a real stmt.
10954         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
10955         v_may_def def and use through a struct instead of 2 array elements.
10956         (struct v_may_def_optype_d): Use v_may_def_operand_type.
10957         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
10959 2004-08-11  Nick Clifton  <nickc@redhat.com>
10961         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
10962         this funciton's behaviour.  Return true when the current function
10963         has a section attribute and -mlong-calls is in effect.
10964         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
10965         short-call marker when -mlong-calls is in effect and the function
10966         has a section attribute.
10968 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
10970         * stmt.c (expand_return): If asked to return the RESULT_DECL,
10971         just call expand_value_return on result_rtl.
10973 2004-08-10  Richard Henderson  <rth@redhat.com>
10975         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
10976         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
10977         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
10978         (add_location_or_const_value_attribute): ... not here.  Use
10979         loc_descriptor_from_tree if possible.
10980         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
10981         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
10982         values specially.
10983         (loc_descriptor_from_tree): New.  Update callers.
10984         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
10985         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
10986         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
10987         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
10988         and BUILT_IN_STACK_RESTORE.
10989         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
10990         * stmt.c (expand_stack_alloc): Remove.
10991         * tree-mudflap.c (mx_register_decls): Don't look for
10992         BUILT_IN_STACK_ALLOC.
10993         * tree-nested.c (convert_local_reference): Likewise.
10994         * tree.h (DECL_VALUE_EXPR): New.
10996 2004-08-10  Richard Henderson  <rth@redhat.com>
10998         * stor-layout.c (round_up): Check for 0/1 before dividing.
10999         (round_down): Likewise.
11001         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
11003 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
11005         * config.gcc (arm*-*-eabi*): New target.
11006         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
11007         (TARGET_LIB_INT_CMP_BIASED): Likewise.
11008         * expmed.c (expand_divmod): Try a two-valued divmod function as a
11009         last resort.
11010         * gthr.h: Remove bogus tokens at end of #pragma.
11011         * optabs.c (expand_twoval_binop_libfunc): New function.
11012         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
11013         (prepare_float_lib_cmp): Try reversing the condition.
11014         (debug_optab_libfuncs): New function.
11015         * optabs.h (expand_twoval_binop_libfunc): Declare.
11016         * config/arm/arm.c (arm_init_libfuncs): New function.
11017         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
11018         (TARGET_INIT_LIBFUNCS): Define it.
11019         * config/arm/arm.h (TARGET_BPABI): New macro.
11020         * config/arm/arm-protos.h
11021         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
11022         * config/arm/bpabi.S: New file.
11023         * config/arm/bpabi.c: Likewise.
11024         * config/arm/bpabi.h: Likewise.
11025         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
11026         (__aeabi_drsub): Likewise.
11027         (__aeabi_dsub): Likewise.
11028         (__aeabi_dadd): Likewise.
11029         (__aeabi_ui2d): Likewise.
11030         (__aeabi_i2d): Likewise.
11031         (__aeabi_f2d): Likewise.
11032         (__aeabi_dmul): Likewise.
11033         (__aeabi_ddiv): Likewise.
11034         (__aeabi_cdrcmple): Likewise.
11035         (__aeabi_cdcmpeq): Likewise.
11036         (__aeabi_cdcmple): Likewise.
11037         (__aeabi_dcmpeq): Likewise.
11038         (__aeabi_dcmplt): Likewise.
11039         (__aeabi_dcmple): Likewise.
11040         (__aeabi_dcmpge): Likewise.
11041         (__aeabi_dcmpgt): Likewise.
11042         (__aeabi_dcmpun): Likewise.
11043         (__aeabi_d2iz): Likewise.
11044         (__aeabi_d2uiz): Likewise.
11045         (__aeabi_d2f): Likewise.
11046         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
11047         (__aeabi_frsub): Likewise.
11048         (__aeabi_fsub): Likewise.
11049         (__aeabi_fadd): Likewise.
11050         (__aeabi_ui2f): Likewise.
11051         (__aeabi_i2f): Likewise.
11052         (__aeabi_fmul): Likewise.
11053         (__aeabi_fdiv): Likewise.
11054         (__aeabi_cfrcmple): Likewise.
11055         (__aeabi_cfcmpeq): Likewise.
11056         (__aeabi_cfcmple): Likewise.
11057         (__aeabi_fcmpeq): Likewise.
11058         (__aeabi_fcmplt): Likewise.
11059         (__aeabi_fcmple): Likewise.
11060         (__aeabi_fcmpge): Likewise.
11061         (__aeabi_fcmpgt): Likewise.
11062         (__aeabi_fcmpun): Likewise.
11063         (__aeabi_f2iz): Likewise.
11064         (__aeabi_f2uiz): Likewise.
11065         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
11066         (__aeabi_uidivmod): New function or alias.
11067         (__aeabi_idivmod): Likewise.
11068         (__aeabi_idiv0): Likewise.
11069         (__aeabi_ldiv0): Likewise.
11070         (__aeabi_llsr): Likewise.
11071         (__aeabi_lasr): Likewise.
11072         (__aeabi_llsl): Likewise.
11073         (bpabi.S): Include it.
11074         * config/arm/libgcc-bpabi.ver: New file.
11075         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
11076         (LINK_SPEC): Remove.
11077         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
11078         __aeabi_ulcmp.
11079         * config/arm/t-bpabi: New file.
11080         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
11081         (TARGET_LIB_INT_CMP_BIASED): Likewise.
11083 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
11085         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
11086         * config/rs6000/rs6000.md (clrmemsi): New pattern.
11087         * config/rs6000/rs6000.c (expand_block_clear): New function.
11088         (expand_block_move): Convert alignment to bits.  Use SImode and
11089         HImode for unaligned addresses if not STRICT_ALIGNMENT.
11091 2004-08-10  Caroline Tice  <ctice@apple.com>
11093         * varasm.c (unlikely_section_label): New global variable.
11094         (unlikely_text_section_name): New global variable.
11095         (text_section):  Remove alignment statement.
11096         (unlikely_text_section): Remove alignment statement; use
11097         unlikely_section_label rather than hard-coded string.
11098         (assemble_start_function): Initialize unlikely_section_label and
11099         unlikely_text_section_name;  make sure cold section is properly
11100         aligned at start of function; output unlikely_section_label if
11101         appropriate.
11103 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
11105         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
11106         * config/s390/s390.c (s390_canonicalize_comparison): New function.
11107         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
11108         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
11109         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
11110         ("*tmqi_mem"): Remove SUBREG from pattern.
11111         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
11112         ("*andsi3_cconly"): Likewise.
11114 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
11116         PR target/16909
11117         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
11119 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
11121         * doc/sourcebuild.texi (compat testing): Document available test
11122         framework commands.  Use the preferred spelling of DejaGnu.
11124 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
11126         * lambda.h: Add matrix type, and prototypes for remainder of
11127         matrix and vector functions.
11128         (lambda_vector_mult_const): New function.
11129         (lambda_vector_negate): Ditto.
11130         (lambda_vector_add): Ditto.
11131         (lambda_vector_add_mc): Ditto.
11132         (lambda_vector_copy): Ditto.
11133         (lambda_vector_zerop): Ditto.
11134         (lambda_vector_equal): Ditto.
11135         (lambda_vector_min_nz): Ditto.
11136         (lambda_vector_first_nz): Ditto.
11137         (lambda_vector_matrix_mult): Ditto.
11138         * lambda-mat.c: New file.
11139         * Makefile.in (lambda-mat.o): New.
11141 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
11143         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
11144         after linking stmt into the program.
11145         (bsi_remove): Don't call modify_stmt.
11146         * tree-complex.c (update_complex_assignment,
11147         expand_complex_comparison): Call modify_stmt after changing the stmt.
11148         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
11149         removing the stmt.
11150         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
11151         the stmt, and only if needed.
11152         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
11153         expression.
11154         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
11155         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
11156         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
11157         (eliminate_redundant_computations): Don't pass an annotation. Call
11158         modify_stmt rather than setting the annotation directly.
11159         (record_equivalences_from_stmt): Remove unused local 'j'.
11160         (cprop_operand): Take a stmt rather than an annotation as a parameter.
11161         Call modify_stmt.
11162         (cprop_into_stmt): Pass stmt rather than annotation.
11163         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
11164         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
11165         modify_stmt.
11166         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
11168 2004-08-10  Jason Merrill  <jason@redhat.com>
11170         PR middle-end/16948
11171         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
11172         the RESULT_DECL.
11174 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
11176         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
11177         hash function.
11179 2004-08-10  Roger Sayle  <roger@eyesopen.com>
11181         * config/mips/mips.md: New reciprocal square root patterns that
11182         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
11184 2004-08-10  Paul Brook  <paul@codesourcery.com>
11186         * config/arm/arm-protos.h (arm_set_return_address,
11187         thumb_set_return_address): Add prototypes.
11188         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
11189         * config/arm/arm.c (arm_compute_func_type,
11190         use_return_insn, arm_compute_save_reg0_reg12_mask,
11191         arm_compute_save_reg_mask, arm_output_function_prologue,
11192         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
11193         current_function_calls_eh_return.
11194         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
11195         old eh code.
11196         (arm_set_return_address, thumb_set_return_address): New functions.
11197         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
11198         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
11199         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
11200         (epilogue): Use the stackadj register.
11201         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
11203 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
11205         PR target/3144
11206         * expr.c (move_by_pieces_ninsns): Add max_size argument.
11207         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
11208         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
11209         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
11210         but using MOVE_RATIO.
11211         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
11212         (can_store_by_pieces): Change max_size type to unsigned int.
11213         (store_by_pieces_1): Likewise.  Pass max_size to
11214         move_by_pieces_ninsns.
11215         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
11216         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
11217         to move_by_pieces_ninsns.
11218         (STORE_BY_PIECES_P): Define.
11219         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
11220         to move_by_pieces_ninsns.
11221         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
11223         * config/i386/i386.h (CLEAR_RATIO): Define.
11225 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11227         * expr.c (expand_expr_real_1): Add back code that was not dead.
11229 2004-08-09  Andrew Pinski  <apinski@apple.com>
11231         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
11232         which is found to be compatible before returning the aliasing set.
11234 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
11236         * ggc-zone.c (struct alloc_zone): Add statistics counters.
11237         (always_collect): New flag.
11238         (ggc_alloc_zone_1): Update statistics support.  Don't include
11239         overhead in allocated counter.
11240         (sweep_pages): Update allocated counter for large pages.  Don'y
11241         include overhead.
11242         (ggc_collect_1): Always collect.
11243         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
11244         whether to collect.
11245         (SCALE, LABEL): New macros.
11246         (ggc_print_statistics): Add statistics support.
11248 2004-08-09  Roger Sayle  <roger@eyesopen.com>
11250         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
11251         (init_expmed): Fix potential overrun problem with "all.reg".
11252         (expand_sdiv2_pow2): Add an alternate implementation for signed
11253         division, if the target provides a suitable conditional move insn.
11255 2004-08-09  Paul Brook  <paul@codesourcery.com>
11256         Richard Henderson  <rth@redhat.com>
11258         * unwind-dw2.c (uw_install_context_1): Update target saved stack
11259         pointer.
11261 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
11263         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
11264         Check DATA limit only if there's no AS limit.  Ignore insanely
11265         low DATA limits.
11266         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
11267         but take care that the AS limit isn't overrun.
11268         * doc/invoke.texi: Update documentation of min-heapsize parameter.
11270 2004-08-09  Jeff Law  <law@redhat.com>
11272         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
11273         (tree-ssa-threadupdate.o): Add dependencies.
11274         * tree-ssa-threadupdate.c: New file.
11275         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
11276         (rewrite_vars_out_of_ssa): Remove prototype.
11277         (cleanup_tree_cfg): Returns a bool.
11278         * tree.h (thread_through_all_blocks): Prototype.
11279         * tree-outof-ssa.c  (SSANORM_*): Move into here.
11280         (remove_ssa_form): Now static.
11281         (rewrite_vars_out_of_ssa): Kill.
11282         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
11283         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
11284         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
11285         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
11286         anything was changed.
11287         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
11288         from the PHI's annotation rather than the edge associated with
11289         the new argument.
11290         * tree-ssa-dom.c (redirection_edges): Kill.
11291         (redirect_edges_and_update_ssa_graph): Kill.
11292         (tree_ssa_dominator_optimize): Do not reset forwardable flag
11293         for blocks anymore.  Do not initialize redirection_edges.
11294         Call thread_through_all_blocks.  Simplify code for cleanup
11295         of the CFG and iterating.  No longer call cleanup_tree_cfg
11296         outside the iteration loop.
11297         (thread_across_edge): No longer mess with forwardable blocks.
11299 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
11301         * explow.c (memory_address): Use memory_address_p.
11302         * recog.c (general_operand): Likewise.
11303         * regrename.c: No need to define REG_OK_STRICT.
11305 2004-08-09  Steven Bosscher  <stevenb@suse.de>
11307         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
11308         New timers.
11309         * gcse.c: Include timevar.h.
11310         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
11311         and global_copy_prop_count.
11312         (local_const_prop_count, local_copy_prop_count): New static globals.
11313         (gcse_main): Set the right timevar for each pass.
11314         (cprop_jump): Increment global_const_prop_count when a constant is
11315         propagated.  Add "GLOBAL" to dump output.
11316         (cprop_insn): Increment global_const_prop_count when a constant is
11317         propagated, or global_copy_prop_count when a copy is propagated.
11318         (do_local_cprop): Likewise for local_const_prop_count and
11319         local_copy_prop_count.
11320         (one_cprop_pass): Initialize const/cprop counters to zero.
11321         Print out results of local and global const/cprop separately.
11322         (bypass_block): Break over-length line.
11323         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
11324         for bb-reorder.o and tracer.o.
11326 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11328         * Makefile.in (GTFILES): Remove stmt.c
11329         (stmt.o): Do not depend on gt-stmt.h.
11330         * emit-rtl.c (emit_line_note): Do not call
11331         set_file_and_line_for_stmt.
11332         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
11333         do everything.
11334         * function.c (free_after_parsing): Do not free STMT field.
11335         (allocate_struct_function): Do not call init_stmt_for_function.
11336         (assign_stack_temp_for_type): Do not accept values of keep
11337         other than 0 or 1.
11338         (init_temp_slots): Do not initialize removed variables.
11339         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
11340         and X_VAR_TEMP_SLOT_LEVEL fields.
11341         * rtl.h (set_file_and_line_for_stmt): Remove.
11342         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
11343         struct stmt_status, cond_stack, case_stack, nesting_stack,
11344         nesting_depth, emit_locus, set_file_and_line_for_stmt,
11345         same_case_target_p, init_stmt_for_function, emit_nop,
11346         expand_start_cond, expand_start_elseif, expand_start_else,
11347         expand_elseif, expand_end_cond): Remove.
11348         (preserve_subexpressions_p): Remove references to CFUN->STMT.
11349         (expand_start_case, expand_end_case_type): Remove, merge into...
11350         (expand_case): ... this one, including other bits from
11351         expand_expr_real_1.  Inline same_case_target_p.  Turn members
11352         of CASE_STACK into local variables.
11353         (emit_case_bit_tests): Inline same_case_target_p.
11354         (add_case_node): Add HEAD argument, return new head of the list,
11355         do not handle default label here.
11356         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
11357         expand_start_elseif, current_nesting_level, expand_start_case,
11358         expand_end_case_type, expand_end_case, add_case_node,
11359         init_stmt_for_function, expand_elseif): Remove prototypes.
11360         (expand_case): Add prototype.
11362 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11364         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
11366 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11368         * expr.c (var_rtx): Remove.
11369         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
11370         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
11371         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
11372         Abort.
11373         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
11374         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
11375         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
11377 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
11378         Ayal Zaks <zaks@il.ibm.com>
11380         * common.opt (freschedule-modulo-scheduled-loops): New flag.
11381         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
11382         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
11383         when -freschedule-modulo-scheduled-loops flag is not specified.
11384         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
11385         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
11386         More accurate placing of insn in row of partial schedule.
11387         (ps_insn_find_column): New function.
11388         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
11389         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
11390         (schedule_region): Use sched_is_disabled_for_current_region_p.
11391         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
11393 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
11395         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
11396         change.
11398 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
11400         * config/i386/i386.c (ix86_expand_clrmem): Properly call
11401         gen_strset for 64bit target.
11403 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
11405         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
11407 2004-08-07  Jason Merrill  <jason@redhat.com>
11409         Make return in memory explicit.
11410         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
11411         (assign_parm_find_data_types): Remove code for old front end
11412         invisible reference handling.
11413         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
11414         (expand_function_end): Likewise.
11415         * gimplify.c (gimplify_return_expr): Handle a dereferenced
11416         RESULT_DECL.
11417         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
11418         (declare_return_variable): Handle DECL_BY_REFERENCE.
11419         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
11420         (cp_genericize_r): Use convert_from_reference.
11421         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
11422         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
11424         * c-common.c (c_warn_unused_result): Check TREE_USED before
11425         warning about a CALL_EXPR with an unused value.
11427 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
11429         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
11430         to the compiler.  Use -fshort-wchar by default.
11432 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
11434         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
11435         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
11436         threshhold.
11437         * doc/invoke.texi (param): Document min-crossjump-insns.
11439 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
11441         PR c/13282
11442         * c.opt (Wmissing-field-initializers): New option.
11443         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
11444         * c-typeck.c (pop_init_level): Guard the missing field warning with
11445         warn_missing_field_initializers rather than extra_warnings.
11446         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
11447         some of the explanation from...
11448         (-Wextra): ...here.  Say that the missing field warning can be
11449         seperately controlled by -Wmissing-field-initializers.
11451 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
11453         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
11454         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
11455         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
11456         * tree.def (ENTRY_VALUE_EXPR): Remove.
11458 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
11460         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
11461         the places where it is actually needed.  Don't use repz; stosb
11462         for -Os with sufficiently small constant sizes.
11463         For sufficiently small repz; stos{l,q} repeat counts use a sequence
11464         of stos{l,q} instructions instead.
11466 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11468         PR tree-optimization/16807
11469         * loop-iv.c (dump_iv_info): Dump invariants correctly.
11470         (iv_subreg, iv_extend): Express value of invariant purely in
11471         base field.
11473 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
11475         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
11476         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
11478 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
11480         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
11481         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
11482         pre_dec_operand.
11483         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
11484         pattern until reload is finished to allow better code generation
11485         and split them completely into separate instrunctions.
11486         (*andsi3_split): New pattern.
11488 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
11490         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
11491         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
11492         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
11493         * tree.h (handle_dll_attribute): Declare.  Test
11494         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
11495         * c-common.h (c_determine_visibility): Declare.
11496         * c-common.c (c_determine_visibility): New function.
11497         * c-decl.c (finish_decl): Use it.
11498         (finish_function): Likewise.
11499         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
11500         zero, by default.  Use #if, not #ifdef, to test it.
11501         * config/arm/arm.c (arm_attribute_table): Use
11502         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
11503         #if.
11504         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
11505         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
11506         to 1.
11507         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
11508         * config/i386/i386.c (ix86_attribute_table): Use
11509         handle_dll_attribute for dllimport/dllexport.  Test
11510         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
11511         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
11512         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
11513         it to 1.
11514         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
11515         with #if.
11516         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
11517         it to 1.
11518         * doc/extend.texi (dllexport): Clarify and correct documentation.
11519         (dllimport): Likewise.
11520         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
11521         handle_dll_attribute.
11523 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11525         * tree-ssa-loop-manip.c: New file.
11526         * Makefile.in (tree-ssa-loop-manip.o): Add.
11527         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
11528         Declare.
11529         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
11530         form.
11531         (tree_ssa_loop_done): Verify loop closed ssa form.
11532         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
11534 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11536         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
11537         pa_asm_output_aligned_local): New functions.
11538         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
11539         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
11540         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
11541         pa_asm_output_aligned_common.
11542         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
11543         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
11544         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
11545         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
11546         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
11547         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
11548         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
11549         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
11550         common data.
11552 2004-08-05  Andrew Pinski  <apinski@apple.com>
11554         * objc/objc-act.c (build_objc_string_object): Mark the address
11555         expression as constant.
11557 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
11559         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
11560         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
11561         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
11563 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
11565         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
11566         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
11567         out, and associated obsolete comments.
11569 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
11571         * tree.h (force_fit_type): Return a tree, take three flags.
11572         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
11573         TREE_CONSTANT_OVERFLOW here.
11574         (int_const_binop, const_binop): Adjust.
11575         (size_int_type): Do sign extension here.
11576         (fold_convert_const, optimize_bit_field_compare,
11577         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
11578         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
11579         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
11581 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11583         PR tree-optimization/16864
11584         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
11585         for ssa names without default_def.
11587 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
11589         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
11590         frame pointer, restore eax with an ebp-relative address.
11592 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
11594         PR 14516
11595         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
11596         * c-common.h (make_rtl_for_local_static): Delete.
11597         * c-decl.c (shadow_tag_warned): Clean up comment.
11598         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
11599         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
11600         * c-semantics.c (make_rtl_for_local_static): Delete.
11601         * expr.c (init_block_move_fn): Use set_user_assembler_name.
11602         (init_block_clear_fn): Likewise.
11603         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
11604         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
11605         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
11606         * tree.h (make_decl_rtl): Remove second parameter.
11607         (set_user_assembler_name): New.
11608         * varasm.c (set_user_assembler_name): New.
11609         (make_decl_rtl): Remove second parameter.  Update callers in many
11610         files.
11612 2004-08-05  Adam Nemet  <anemet@lnxw.com>
11614         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
11615         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
11616         to LynxOS 4.0.
11617         * gthr-lynx.h: New file.
11618         * config/lynx-ng.h: Remove file.
11619         * config/lynx.h: Update to LynxOS 4.0.
11620         * config/t-lynx: New file.
11621         * config/i386/lynx-ng.h: Remove file.
11622         * config/i386/lynx.h: Update to LynxOS 4.0.
11623         * config/rs6000/lynxbase.h: Remove file.
11624         * config/rs6000/lynx.h: Update to LynxOS 4.0.
11625         * config/rs6000/t-lynx: New file.
11626         * doc/install.texi (Options specification): Remove reference to
11627         LynxOS from systems where --with-gnu-as makes a difference.
11629 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
11631         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
11632         __UINTMAX_TYPE__.
11633         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
11634         __INTMAX_MAX__.
11635         (c_cpp_builtins): Call it.
11636         * doc/cpp.texi: Update.
11638 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
11640         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
11641         cost.
11643 2004-08-04  Jan Hubicka  <jh@suse.cz>
11645         * basic-block.h (profile_staus): New global variable.
11646         * cfg.c (profile_status): Declare.
11647         (check_bb_profile): Break out from ....; use profile_status
11648         (dump_flow_info): ... here.
11649         * cfgbuild.c (find_basic_blocks): Set profile_status.
11650         * cfgexpand.c (tree_expand_cfg): Likewise.
11651         * predict.c (estimate_probability): Likewise.
11652         * profile.c (branch_prob): Likewise.
11653         * tree-cfg.c (build_tree_cfg): Likewise.
11654         (dump_function_to_file): Use check_bb_profile.
11655         * tree-pretty-print (dump_bb_header): Likewise.
11656         * tree-profile.c (do_tree_profiling): Cleanup.
11658 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
11660         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
11661         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
11662         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
11663         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
11664         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
11665         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
11666         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
11667         (ggc-none.o, errors.o): Move rule to generators section;
11668         correct dependencies.
11669         (min-insn-modes.o): Move rule to generators section; remove
11670         unnecessary explicit command; correct dependencies.
11671         (print-rtl.o, print-rtl1.o): Correct dependencies.
11672         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
11673         (mostlyclean): Update.
11675         * errors.c: Include bconfig.h not config.h.  Correct comment.
11676         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
11677         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
11678         * print-rtl.c: Don't include tm_p.h.
11680         * rtl.h: Move forward-decl of struct function down where it's
11681         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
11682         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
11684 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11685             Jeff Law  <law@redhat.com>
11687         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
11688         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
11689         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
11690         manipulate the duplicated ssa names.
11691         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
11692         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
11693         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
11694         New functions.
11695         (release_ssa_name): Do not release ssa names that may have multiple
11696         definitions.
11697         * tree.h (release_ssa_name_force, mark_for_rewrite,
11698         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
11699         marked_ssa_names): Declare.
11700         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
11701         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
11702         Update call to rewrite_ssa_into_ssa.
11704 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
11706         * defaults.h (TARGET_DECLSPEC): New macro.
11707         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
11708         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
11709         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
11710         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
11711         __declspec support.
11712         (TARGET_DECLSPEC): Define.
11713         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
11714         __declspec support.
11715         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
11716         __declspec support.
11717         (TARGET_DECLSPEC): Define.
11718         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
11719         __declspec support.
11720         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
11721         support.
11722         * doc/tm.texi (TARGET_DECLSPEC): Document.
11724         * doc/extend.texi: Fix typo in comment.
11726 2004-08-04  Paul Brook  <paul@codesourcery.com>
11728         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
11729         (TARGET_CXX): Use it.
11730         * target.h (struct gcc_target): Add cdtor_returns_this.
11731         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
11732         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
11733         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
11735 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
11737         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
11738         low/high pair. Do range checking directly.
11739         (interpret_integer): Adjust.
11741 2004-08-04  Nick Clifton  <nickc@redhat.com>
11743         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
11744         GCC ABI.
11745         * doc/invoke.texi: Document this new switch and also the -mrenesas
11746         switch.
11748 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
11750         * cfglayout.c (insn_locators_initialize): Update the current
11751         location before initializing a location.
11753 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
11755         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
11756         (dbxout_function_end): Return after emitting the "Lscope" symbol
11757         under the same conditions that this function formerly wasn't called.
11758         Add explanatory comments.
11760         PR 14860
11761         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
11762         on the new decl.
11764         PR 13956
11765         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
11766         functions, broken out of dbxout_block.
11767         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
11768         stabs too, if it contains symbols.  Use the begin_label and
11769         the Lscope label (emitted by dbxout_function_end) for the
11770         range of this block.
11772 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
11774         * doc/install.texi: Update autoconf version requirements.
11776 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
11778         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
11779         * recog.c (general_operand, immediate_operand, nonmemory_operand)
11780         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
11781         * regclass.c (record_reg_classes): Likewise.
11782         * reload.c (find_reloads): Likewise.
11783         * reload1.c (reload): Likewise.
11785 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
11787         * gensupport.c (init_md_reader_args_cb): Renamed from
11788         init_md_reader_args.  Add third option, callback function for
11789         parsing program-specific options.  Add diagnosis of incorrect
11790         number of input files.
11791         (init_md_reader): Fold into init_md_reader_args_cb.
11792         (init_md_reader_args): Now a thin wrapper around
11793         init_md_reader_args_cb.
11794         * gensupport.h: Update prototypes.
11796         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
11797         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
11798         * genrecog.c: No need to diagnose lack of an input file;
11799         init_md_reader_args will handle it.
11800         * genconditions.c: Likewise, and use init_md_reader_args.
11801         * genconstants.c: Likewise, and no need to call read_md_rtx.
11803 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
11805         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
11806         declarations.
11808 2004-08-03  Mike Stump  <mrs@apple.com>
11810         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
11811         for frameworks.
11812         * doc/invoke.texi (Darwin Options): Update to reflect above.
11814 2004-08-03  Roger Sayle  <roger@eyesopen.com>
11816         PR middle-end/16790
11817         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
11818         truncations, not just global truncations.
11820 2004-08-03  Andrew Pinski  <apinski@apple.com>
11822         PR bootstrap/16865
11823         * loop-iv.c (simplify_using_assignment): Initialize lhs.
11825 2004-08-03  Paul Brook  <paul@codesourcery.com>
11827         * gcc/doc/install.texi: Document MPFR requirement.
11829 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
11831         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
11832         and mmap() explicitly instead of relying on preset autoconf cache
11833         variables.
11834         * configure: Regenerate.
11836 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
11838         PR target/16570
11839         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
11840         to tmake_file.
11841         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
11842         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
11843         to tmake_file.
11845         * config/i386/t-gmm_malloc: New file.
11846         * config/i386/t-pmm_malloc: Likewise.
11848         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
11850 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
11851             Tanguy Fautrà <tfautre@pandora.be>
11853         * config/i386/pmm_malloc.h: New file.
11855 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
11857         * config/i386/gmm_malloc.h: New file.
11859 2004-08-03  Dale Johannesen  <dalej@apple.com>
11861         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
11862         * c-common.c: Include opts.h.
11863         (c_common_get_alias_set): Fix check for a single input file.
11864         * toplev.c: Remove current_file_decl.
11865         * tree.h: Ditto.
11867 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
11869         * config.gcc (arm*-*-symbianelf*): New target.
11870         * config/arm/symbian.h: New file.
11872         * gthr-gnat.c: Add visibility #pragmas.
11873         * gthr-gnat.h : Likewise.
11874         * gthr.h: Likewise.
11875         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
11876         (__ffsDI2): Likewise.
11877         (__clzSI2): Likewise.
11878         (__ctzSI2): Likewise.
11879         (__ctzDI2): Likewise.
11880         (__popcountSI2): Likewise.
11881         (__popcountDI2): Likewise.
11882         (__paritySI2): Likewise.
11883         (__parityDI2): Likewise.
11884         * libgcc2.h: Add visibility #pragmas.
11885         (__clzDI2): Add prototype.
11886         (__clzSI2): Likewise.
11887         (__ctzSI2): Likewise.
11888         (__ffsDI2): Likewise.
11889         (__ffsSI2): Likewise.
11890         (__ctzDI2): Likewise.
11891         (__popcountSI2): Likewise.
11892         (__popcountDI2): Likewise.
11893         (__paritySI2): Likewise.
11894         (__parityDI2): Likewise.
11895         * unwind-dw2-fde.h: Add visibility #pragmas.
11896         * unwind.h: Likewise.
11898 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
11899             Dale Johannesen  <dalej@apple.com>
11900             Roger Sayle  <roger@eyesopen.com>
11902         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
11903         constants more accurately.  Adjust costs for FMA instructions.
11904         Add cases for most logical and float operations.  Recurse into
11905         most operands.
11907 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
11909         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
11911 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
11913         * ra-build.c (conflicts_between_webs): For webs that cross a call add
11914         conflicts to regs_invalidated_by_call.
11916 2004-08-03  Paul Brook  <paul@codesourcery.com>
11918         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
11920 2004-08-03  Jan Hubicka  <jh@suse.cz>
11922         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
11923         ARRAY_REF argument.
11925 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
11927         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
11928         arm968es, arm10e, arm1020e, arm1022e.
11929         * invoke.texi: Update list of ARM cores.
11930         * arm-tune.md: Regenerate.
11932 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
11934         * arm/gentune.sh: New file.
11935         * arm/t-arm: New file.
11936         * arm/arm-tune.md: New file (autogenerated).
11937         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
11938         * arm.md (attribute tune): Delete.  Include arm-tune.md.
11940 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
11942         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
11943         penultimate parameter.  All callers adjusted.
11944         (struct prefix_list): Remove used_flag_ptr.
11945         (find_a_file): Do not set *pl->used_flag_ptr.
11946         (warn_B, warn_std_ptr): Remove.
11948 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
11949             Mostafa Hagog <mustafa@il.ibm.com>
11951         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
11953 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
11955         * dwarf2out.c (output_call_frame_info): Don't change data format
11956         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
11957         label.  Use 'true' not '1'.
11958         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
11959         required.
11961 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11963         * gdbinit.in: Reflect previous changes to rtunion_def.
11965 2004-08-02  Roger Sayle  <roger@eyesopen.com>
11967         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
11968         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
11970 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11972         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
11973         vec_p_reserve.
11974         * langhooks.h (lang_hooks::builtin_function): Rename parameter
11975         from "class" to "bt_class".
11977 2004-08-02  Paul Brook  <paul@codesourcery.com>
11979         PR rtl-optimization/15068
11980         * flow.c (init_propagate_block_info): Check condition is reversible.
11982 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11984         * gengtype.h (options::info): Change type to const char *.
11985         (enum gc_used_enum): Move out of struct type scope.
11986         * gengtype.c (create_option): Convert initializer for option::info to
11987         appropiate type.
11988         (adjust_field_type, walk_type, write_func_for_structure,
11989         write_root, write_roots): Remove pointless cast.
11991 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
11993         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
11995 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11997         * rtl.h (union rtunion_def): Have all members  start with the
11998         prefix "rt_".
11999         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
12000         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
12001         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
12002         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
12003         access.
12004         * gengtype.c (adjust_field_rtx_def): Likewise.
12005         * rtlanal.c (loc_mentioned_in_p): Likewise.
12007 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
12009         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
12010         Replace uses of mips/elf64.h with mips/elf.h
12011         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
12012         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
12013         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
12014         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
12015         (HANDLE_SYSV_PRAGMA): Delete.
12016         (ASM_OUTPUT_DEF): Fix formatting.
12017         * config/mips/elf64.h: Delete.
12019 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
12021         * config/ia64/ia64.c (got_symbolic_operand): Do require a
12022         symbol+offset operand to have its offset be zero mod 0x3fff
12023         when GOT entries are in use.  Clarify logic in SYMBOL_REF
12024         case.  Clarify comments.
12025         (ia64_expand_load_address): Split a symbol+offset load when
12026         the offset is nonzero mod 0x3fff, not 0x1fff.
12028 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
12030         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
12031         if trying to *store* to a non-offsettable address.
12032         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
12033         a nonoffsettable address.
12034         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
12035         Clean up.
12036         (movti_string): Don't move GPRs to a nonoffsettable address.
12037         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
12039 2004-08-02  Ben Elliston  <bje@au.ibm.com>
12041         PR target/16155
12042         * config/rs6000/altivec.h: Replace typeof with __typeof__.
12044 2004-08-01  Richard Henderson  <rth@redhat.com>
12046         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
12047         variable sized types.
12049 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
12051         * doc/invoke.texi: In the MIPS options section, remove the passage
12052         saying that -mexplicit-relocs is usually disabled for -mabicalls
12053         -fno-unit-at-a-time.
12054         * config/mips/mips.c (override_options): Remove the code that enforced
12055         this rule.
12057 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
12059         * config/mips/mips.md (cprestore): Provide two alternatives, one for
12060         an in-range offset and one for an out-of-range offset.  Wrap the latter
12061         in .set macro/.set nomacro if it's inside a .set nomacro block.
12063 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
12065         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
12066         (mips_restore_gp): Declare.
12067         * config/mips/mips.c (mips_add_offset): Add a scratch register
12068         argument.  Reimplement in rtl only, reusing MIPS16 logic from
12069         mips_output_mi_thunk.
12070         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
12071         to mips_add_offset.
12072         (mips_gp_save_slot): Delete.
12073         (mips_restore_gp): New function.
12074         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
12075         * config/mips/mips.md (exception_receiver): Turn into a
12076         define_insn_and_split.  Use mips_restore_gp to do the split.
12077         (call_internal, call_value_internal, call_value_multiple_internal): Use
12078         mips_restore_gp to restore $gp.
12080 2004-07-31  Andrew Pinski  <apinski@apple.com>
12082         PR other/16842
12083         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
12085 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
12087         * c-decl.c (diagnose_mismatched_decls): Give error for external
12088         redeclaration of identifier declared with no linkage, not just
12089         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
12090         error for redeclaration with no linkage.
12092 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
12093             Fariborz Jahanian <fjahanian@apple.com>
12095         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
12096         non-offsettable addresses even for DImode.
12097         (rs6000_split_multireg_move): Cope with non-offsettable addresses
12098         being moved into multiple GPRs.
12100         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
12101         to 64.
12102         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
12103         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
12104         to 128.
12105         * config/rs6000/darwin-ldouble.c (isless): New macro.
12106         (inf): New macro.
12107         (nonfinite): New macro.
12108         (FPKINF): Delete.
12109         (_xlqadd): Completely rewrite.
12110         (_xlqmul): Correct overflow handling.
12111         (_xlqdiv): Correct overflow handling.
12112         * config/rs6000/darwin-ldouble-format: New file.
12114 2004-07-30  Roger Sayle  <roger@eyesopen.com>
12115             Richard Henderson  <rth@redhat.com>
12117         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
12118         9 into the equivalent lea instruction.
12120 2004-07-30  Richard Henderson  <rth@redhat.com>
12122         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
12123         with DECL_INITIAL if fb_lvalue.
12124         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
12125         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
12126         with <Cxxx>.
12127         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
12129 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
12131         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
12132         pointer escapes through a function call, assume that the
12133         callee will dereference it.
12134         (add_pointed_to_var): Assume that VALUE is always an
12135         ADDR_EXPR.
12136         (collect_points_to_info_r): Only call add_pointed_to_var if
12137         the value is an ADDR_EXPR.
12139 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
12141         * tree-ssa-alias.c (create_alias_map_for): Do not get the
12142         alias set of the inner type of ARRAY_TYPEs.
12144 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
12146         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
12147         setting a non-register to UNDEFINED right before the call to
12148         set_lattice_value.
12150 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12152         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
12154 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
12156         * tree-ssa.c (verify_flow_sensitive_alias_info): When
12157         comparing points-to sets of different pointers, make sure the
12158         second pointer is actually referenced in the code.
12160 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
12162         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
12163         (got_symbolic_operand): Remove unreachable code.
12164         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
12165         setjmp_operand; add entry for tls_symbolic_operand.
12166         * config/ia64/ia64-protos.h: Remove all prototypes of
12167         predicate functions.
12169 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
12171         * c-common.h (lang_post_pch_load): New variable.
12172         * c-pch.c (lang_post_pch_load): Define it.
12173         (c_common_read_pch): Use it.
12174         * cgraphunit.c (record_call_1): Give the front end a chance to
12175         record additional needed entities when a variable is marked as
12176         needed.
12177         * tlink.c (recompile_files): Robustify.
12178         (scan_linker_output): If a symbol is assigned to a file,
12179         but after recompilation is not present there, issue an error
12180         message.
12182 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12184         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
12185         Take orig_loop argument and pass it to set_level.
12186         (schedule_sm): Pass the correct orig_loop to force_move_till.
12188 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12190         * cfgloop.c (update_latch_info): Update dominator of the new block.
12191         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
12192         info.
12193         * dominance.c (verify_dominators): Check that the dominance tree is
12194         connected.
12195         (recount_dominator): Ignore unreachable blocks.
12196         (iterate_fix_dominators): Cleanup old dominance information before
12197         recomputing it.
12199 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
12201         * tree-ssa-operands.c (get_expr_operands): Revert changes
12202         to ADDR_EXPR processing introduced by:
12203             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12204             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
12206 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
12208         * doc/implement-c.texi: Add C90 subclause references.  Point to
12209         preprocessor documentation instead of duplicating it.  Add points
12210         only present in C90.  Fill in documentation for all points.
12212 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12214         * pa.c (output_movb): Correct typo.
12216 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
12218         * ra.h (single_reg_in_regclass): Declare.
12219         * ra.c (single_reg_in_regclass): Define.
12220         (first_hard_reg): New.
12221         (init_ra): Initialize single_reg_in_regclass.
12222         * ra-colorize.c (ok_class): New.
12223         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
12225 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
12227         * gcov-io.h: Allow zero tag as EOF indicator.
12228         (gcov_is_eof): Remove.
12229         (gcov_truncate): Remove.
12230         * gcov-io.c (gcov_seek): Always SEEK_SET.
12231         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
12232         EOF tag.
12233         * coverage.c (read_counts_file): Don't use gcov_is_eof.
12234         * gcov-dump.c (dump_file): Likewise.
12235         * gcov.c (read_graph_file, read_count_file): Likewise.
12237         * c-decl.c (complete_array_type): Don't gratuitously copy
12238         maxindex.  Check it always has a type.
12240 2004-07-29  Steven Bosscher  <stevenb@suse.de>
12242         * rtl.c (currently_expanding_to_rtl): New.
12243         * rtl.h (currently_expanding_to_rtl): Export it.
12244         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
12246         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
12247         inliner hack.
12248         * config/sh/sh.c: Replace rtx_equal_function_value_matters
12249         with currently_expanding_to_rtl.
12250         * config/sh/sh.md: Likewise.
12251         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
12253 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
12255         Introduce sh2a support.
12256         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
12257         * config.gcc: Build multilibs for sh2a and sh2a-single by
12258         default.
12259         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
12260         default.  Split their tests out of the corresponding SH4
12261         multilibs.
12262         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
12263         multilibs for SH2a.
12264         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
12265         * config.gcc: Handle sh2a multilibs and cpu selection.
12266         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
12267         * config/sh/t-mlib-sh2a: New.
12268         * config/sh/t-mlib-sh2a-nofpu: New.
12269         * config/sh/t-mlib-sh2a-single: New.
12270         * config/sh/t-mlib-sh2a-single-only: New.
12271         2004-07-09  Nick Clifton  <nickc@redhat.com>
12272         Issue 43400
12273         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
12274         -ml and -m2a are used together.
12275         2004-03-23  DJ Delorie  <dj@redhat.com>
12276         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
12277         when we have a double-sized FPU.
12278         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
12279         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
12280         is set.
12281         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
12282         -msh2a-single and -msh2a-single-only
12283         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
12284         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
12285         is set.
12286         2004-02-20  DJ Delorie  <dj@delorie.com>
12287         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
12288         2004-02-20  Fred Fish <fnf@redhat.com>,
12289         Corinna Vinschen <vinschen@redhat.com>
12290         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
12291         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
12292         2004-02-18  DJ Delorie  <dj@redhat.com>
12293         * config/sh/sh.c (broken_move): Add support for movi20.
12294         * config/sh/sh.h: Likewise.
12295         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
12296         * config/sh/sh.md (udivsi3_sh2a): New.
12297         (udivsi3): Call it.
12298         (divsi3_sh2a): New.
12299         (divsi3): Call it.
12300         (mul_r): New.
12301         (ashlsi3_sh2a): New.
12302         (ashrsi3_sh2a): New.
12303         (lshrsi3_sh2a): New.
12304         (movsi_i): Disable for sh2a.
12305         (movsi_ie): Add movi20.
12306         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
12307         sh2a, for -m2a-nofpu mode.
12308         2004-02-13  DJ Delorie  <dj@redhat.com>
12309         * config/sh/lib1funcs.asm: Handle double vs single better.
12310         * config/sh/sh.h: Likewise.
12311         2004-02-09  DJ Delorie  <dj@redhat.com>
12312         * config/sh/crt1.asm: Add support for sh2a.
12313         * config/sh/elf.h: Likewise.
12314         * config/sh/lib1funcs.asm: Likewise.
12315         * config/sh/sh.c: Likewise.
12316         * config/sh/sh.md: Likewise.
12317         * config/sh/sh.h: Likewise.
12318         * config/sh/t-sh: Likewise.
12320 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
12322         * config/frv/frv.md (movqi_internal, movhi_internal,
12323         movsi_internal): Add backup alternatives for memory inputs.
12325 2004-07-28  Matt Austern  <austern@apple.com>
12327         * config/darwin.c (darwin_one_byte_bool): New global variable.
12328         * config/darwin.h (darwin_one_byte_bool): Declare.
12329         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
12330         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
12331         value of darwin_one_byte_bool.
12332         * doc/invoke.texi: Document -mone-byte-bool flag.
12334 2004-07-28  Eric Christopher  <echristo@redhat.com>
12336         * c-common.c (c_common_unsafe_for_reeval): Delete.
12337         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
12338         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
12339         * calls.c (fix_unsafe_tree): Delete.
12340         (expand_call): Delete code which used above.
12341         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
12342         * expr.c (expand_expr_real_1): Ditto.
12343         * fold-const.c (non_lvalue): Ditto.
12344         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
12345         (lhd_unsafe_for_reeval): Ditto.
12346         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
12347         * langhooks.h (unsafe_for_reeval): Ditto.
12348         (unsave_expr_now): Adjust comment.
12349         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
12350         (estimate_num_insns_1): Ditto.
12351         * tree-pretty-print.c (dump_generic_node): Ditto.
12352         * tree.c (expr_align): Ditto.
12353         (unsave_expr): Delete.
12354         (unsafe_for_reeval): Ditto.
12355         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
12356         * tree.def (UNSAVE_EXPR): Delete.
12357         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
12359 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
12361         * tree.h (enum tls_model): Move ...
12362         * coretypes.h: ... here.
12364 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
12366         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
12368 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
12370         * cse.c (validate_canon_reg): New function, split out from...
12371         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
12373 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12375         * tree-ssa-alias.c (maybe_create_global_var): Don't just
12376         return if .GLOBAL_VAR has been created.
12378 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12380         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
12381         every variable that may have aliases, not just tags.
12383 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
12385         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
12386         move_from_CR_eq_bit.
12387         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
12390         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
12391         e500_flip_eq_bit.
12393         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
12394         output_e500_flip_eq_bit.
12396         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
12397         output_e500_flip_eq_bit.
12398         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
12399         output_e500_flip_eq_bit.
12400         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
12401         (print_operand): case D.  Get to EQ bit.
12403 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
12405         * gcov.c (function_summary): Add missing \n.
12407 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
12409         Introduce sh4a support.
12410         * config.gcc: Handle sh4a multilibs and cpu selection.
12411         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
12412         * config/sh/t-mlib-sh4a: New.
12413         * config/sh/t-mlib-sh4al: New.
12414         * config/sh/t-mlib-sh4a-nofpu: New.
12415         * config/sh/t-mlib-sh4a-single: New.
12416         * config/sh/t-mlib-sh4a-single-only: New.
12417         2004-02-20  DJ Delorie  <dj@redhat.com>
12418         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
12419         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
12420         2003-08-22  Eric Christopher  <echristo@redhat.com>
12421         * config/sh/sh4a.md: Update for chip errata.
12422         2003-08-07  Eric Christopher  <echristo@redhat.com>
12423         * config/sh/sh4a.md: New file. sh4a processor description.
12424         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
12425         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
12426         of -m4a-nofpu.
12427         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
12428         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
12429         * doc/invoke.texi (SH Options): Document -m4al.
12430         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
12431         * config/sh/sh.c (expand_block_move): Remove commented-out code
12432         checked in by mistake.
12433         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
12434         single elements from SFmode vectors.
12435         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
12436         register.
12437         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
12438         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
12439         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
12440         sh_fsca_int2sf): Remove variable declarations.
12441         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
12442         sh_fsca_int2sf): New functions.
12443         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
12444         sh_fsca_int2sf_rtx): New static variables.
12445         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
12446         sh_fsca_int2sf): Declare.
12447         * config/sh/sh.md: Adjust.
12448         * doc/invoke.texi (SH Options): Document new options.
12449         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
12450         compatibility from SH4 code.
12451         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
12452         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
12453         early.
12454         (memory_movsrc_operand): Renamed to...
12455         (unaligned_load_operand): ... this.  Simplified.
12456         * config/sh/sh.h (PREDICATE_CODES): Adjust.
12457         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
12458         input operand to SImode, and adjust the others.  Introduce
12459         post-increment by peephole.
12460         * config/sh/sh.c (expand_block_move): Give the target address the
12461         same mode as the temp reg.
12462         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
12463         copying.
12464         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
12465         Introduce support for SH4a.
12466         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
12467         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
12468         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
12469         sh_fsca_int2sf): New.
12470         (sh_init_builtins): Initialize them.
12471         (print_operand): Support `d'.
12472         (expand_block_move): Use movua if src is misaligned.
12473         (memory_movsrc_operand): New.
12474         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
12475         and one of the SH4 macros.
12476         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
12477         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
12478         SELECT_SH4A_SINGLE): New.
12479         (TARGET_NONE): Add SH4A_BIT.
12480         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
12481         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
12482         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
12483         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
12484         (enum processor_type): Added PROCESSOR_SH4A.
12485         (PREDICATE_CODES): Add memory_movsrc_operand.
12486         * config/sh/sh.md: Removed unused variables.
12487         (attr cpu): Add sh4a.
12488         (attr type): Add movua, fsrra and fsca.
12489         (prefetch): New, for SH4.
12490         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
12491         (toggle_sz): Set type to fp.
12492         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
12493         (movua, extv, extzv): New.
12494         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
12495         and 4a-single-only.
12497 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12499         * tree-optimize.c (init_tree_optimization_passes): Schedule
12500         pass_may_alias right after the program is renamed into SSA.
12501         * tree-pass.h (PROP_alias): Define.
12502         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
12503         * tree-sra.c (pass_sra): Likewise.
12504         * tree-ssa-ccp.c (pass_ccp): Likewise.
12505         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
12506         * tree-ssa-dce.c (pass_dce): Likewise.
12507         * tree-ssa-dom.c (pass_dominator): Likewise.
12508         * tree-ssa-dse.c (pass_dse): Likewise.
12509         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
12510         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12511         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
12512         * tree-ssa-pre.c (pass_pre): Likewise.
12513         * tree-tailcall.c (pass_tail_recursion): Likewise.
12514         * tree-ssa.c (pass_redundant_phi): Likewise.
12515         * tree-ssa-alias.c (aliases_computed_p): Remove.
12516         Update all users.
12517         (init_alias_info): Do not mark all type tags for renaming
12518         unconditionally.
12519         Clear may_aliases from every symbol.
12520         (setup_pointers_and_addressables): If a pointer has not been
12521         dereferenced and it had a type tag, clear it and mark the old
12522         tag for renaming.
12524 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12526         PR tree-optimization/16705
12527         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
12528         .GLOBAL_VAR.
12530 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12532         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
12533         check.
12535         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
12536         don't make another one.
12538         PR optimization/15077
12539         * function.h (struct function): Add field saved_static_chain_decl.
12540         Fix comment for static_chain_decl.
12541         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
12542         * tree-inline.h (save_body): Add new arg.
12543         * tree-optimize.c (tree_rest_of_compilation): Handle saving
12544         static_chain_decl.
12546 2004-07-27  Richard Henderson  <rth@redhat.com>
12548         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
12549         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
12550         is_gimple_addressable.
12551         * tree-gimple.c (is_gimple_addressable): Rename from
12552         is_gimple_addr_expr_arg; accept INDIRECT_REF.
12553         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
12554         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
12555         rename to is_gimple_addressable.
12557 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
12559         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
12561 2004-07-27  Richard Henderson  <rth@redhat.com>
12563         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
12564         before rounding.
12566 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
12568         * libgcc2.c: Change all conditionals testing
12569         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
12570         * libgcc2.h: Likewise.
12571         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
12572         TYPE_PRECISION of float80_type to 80.
12573         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
12574         of fpreg_type and float80_type to 80.
12575         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
12576         * config/m68k/netbsd-elf.h:
12577         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
12578         to evaluate to 80 whenever they would formerly have evaluated to 96.
12579         * config/i386/sco5.h: Remove unnecessary redefinition of
12580         LONG_DOUBLE_TYPE_SIZE.
12581         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
12582         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
12583         XFmode, with a bitsize of 80.  Update commentary.
12584         * config/ia64/ia64-modes.def: Likewise.
12585         * config/m68k/m68k-modes.def: Likewise.
12587 2004-07-27  Steven Bosscher  <stevenb@suse.de>
12589         * cfgexpand.c (tree_expand_cfg): Fix comment.
12591         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
12592         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
12593         Remove.
12594         (prepare_function_start): Don't set rtx_equal_function_value_matters.
12595         * integrate.c (copy_rtx_and_substitute): Don't test for it.
12596         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
12597         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
12598         here again.  Update leading comment.
12599         * rtl.c (rtx_equal_function_value_matters): Remove.
12600         (rtx_equal_p): Don't test for it.
12601         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
12602         Likewise.
12604         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
12605         * rtl.c (note_insn_name): Likewise.
12606         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
12607         * final.c (final_scan_insn): Likewise.
12609         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
12610         * passes.c (rest_of_handle_eh): Do it here.
12612         * stmt.c (struct nesting): Remove struct nesting block member.
12613         (struct stmt_status): Remove x_block_start_count field.
12614         (current_block_start_count): Remove.
12616 2004-07-27  Brian Booth  <bbooth@redhat.com>
12618         * tree-optimize.c (register_one_dump_file): Update condition that uses
12619         static_pass_number.
12620         (dup_pass_1): Replace with...
12621         (next_pass_1): This.
12622         (NEXT_PASS): Call next_pass_1.
12623         (DUP_PASS): Remove.
12624         (init_tree_optimization_passes): Remove uses of DUP_PASS.
12625         (execute_one_pass): Update condition that uses
12626         static_pass_number.
12627         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
12628         integer.
12630 2004-07-27  Nick Clifton  <nickc@redhat.com>
12632         * config/m32r/m32r.c: Include integrate.h in order to get the
12633         prototype for get_hard_reg_initial_val().
12635         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
12636         and tidy up indentation.
12637         (final_presence_set): Use absence_set instead, so that if there is
12638         nothing in the "o" pipe the "s" pipe can be scheduled.
12640 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
12642         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
12643         don't have PT_VARS nor PT_MALLOC set.
12644         Clear name tag from pointers that have not been dereferenced.
12645         (set_pt_anything, set_pt_malloc): Forward declare.
12646         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
12647         not type compatibility when determining if a pointer can be
12648         copy propagated.
12650 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
12652         * expr.h (canonicalize_condition, get_condition): Add an int argument.
12653         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
12654         it to check whether the condition is still valid at the jump insn.
12655         * ifcvt.c (noce_get_condition): Likewise.
12656         (noce_get_alt_condition): Update call to canonicalize_condition.
12657         * loop-iv.c (simplify_using_initial_values): Update call to
12658         get_condition.  Remove FIXME.
12659         (check_simple_exit): Update call to get_condition.
12660         * loop-unswitch.c (may_unswitch_on): Likewise.
12661         * loop.c (check_dbra_loop): Likewise.
12662         (canonicalize_condition, get_condition): Add an argument to say whether
12663         the condition must still be valid at INSN.
12664         (get_condition_for_loop): Update call to get_condition.  Require that
12665         the condition be valid at INSN.
12666         * predict.c (estimate_probability): Update call to get_condition.
12667         Remove unused earliest parameter.
12668         (expected_value_to_br_prob): Update call to canonicalize_condition.
12670 2004-07-26  Eric Christopher  <echristo@redhat.com>
12672         * tree-dfa.c (add_referenced_var): Register initializers of global
12673         variables.
12675 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
12677         * config/i386/i386.c (function_arg): Always treat 8-
12678         and 16-byte wide vectors the same, even if MMX/SSE
12679         are disabled.
12680         (contains_128bit_aligned_vector_p): Add comment.
12682 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
12684         * ra.h (enum node_type): Rename to:
12685         (enum ra_node_type).
12686         * ra-colorize.c: Likewise.
12688 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
12690         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
12691         after simplifying the jump.
12693 2004-06-26  Richard Henderson  <rth@redhat.com>
12695         * calls.c (combine_pending_stack_adjustment_and_call): Make
12696         preferred_unit_stack_boundary argument unsigned.  Make
12697         unadjusted_alignment unsigned.
12698         (expand_call): Make preferred_stack_boundary and
12699         preferred_unit_stack_boundary variables unsigned.
12700         * function.c (assign_stack_local_1): Make alignment unsigned.
12701         * function.h (struct function): Make stack_alignment_needed,
12702         preferred_stack_boundary unsigned.
12703         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
12704         (ix86_compute_frame_layout): Make stack_alignment_needed,
12705         preferred_alignment variables unsigned.
12706         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
12708 2004-07-26  Tom Tromey  <tromey@redhat.com>
12710         * tree.h: Fix typo in comment.
12712 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
12714         PR bootstrap/12804
12715         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
12716         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
12717         (ggc_free): Remove incorrect freeing.
12718         (sweep_pages): Advance PP for large pages.  Fix indentation.
12720 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
12722         PR rtl-optimization/16643
12723         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
12724         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
12725         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
12726         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
12727         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
12728         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12729         * rtl.h (tracer): Add a flags parameter.
12730         * tracer.c (tracer): Pass it to cfg_layout_initialise.
12731         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
12732         (rest_of_handle_reorder_blocks): Update calls to tracer and
12733         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
12734         (rest_of_handle_tracer): Pass 0 to tracer.
12735         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
12737 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
12739         PR target/16239
12740         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
12741         f->f.
12743 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
12745         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
12746         (BINFO_BASE_ACCESS): Adjust.
12747         (BINFO_BASE_ACCESS_APPEND): New.
12748         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
12749         * dbxout.c (dbxout_type): Adjust binfo access accessing.
12750         * dwarf2out.c (gen_member_die): Likewise.
12751         * tree-dump.c (deque_and_dump): Likewise.
12753 2004-07-26  Falk Hueffner  <falk@debian.org>
12755         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
12756         costs.
12758 2004-07-25  Roger Sayle  <roger@eyesopen.com>
12760         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
12761         value off of the stack if TARGET_USE_FFREEP.
12763 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
12765         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
12766         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
12767         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
12768         check on invocation of XRESIZEVEC ().
12770 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
12772         * c-common.c (disable_builtin_function): Rename variable n to
12773         new_disabled_builtin.
12774         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
12775         Rename local variable old to old_decl.
12776         * gensupport.c (shift_output_template): Rename parameter old to src.
12777         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
12778         old_rtx and newx to new_rtx.
12780 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
12782         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
12783         of c-pragma.h.
12784         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
12785         enum cpp_ttype.
12786         * c-lex.c: Likewise.
12788 2004-07-25  Roger Sayle  <roger@eyesopen.com>
12790         * fold-const.c (constant_boolean_node): Make extern.
12791         (make_range): Wrap long lines.
12792         (fold_cond_expr_with_comparison): Remove unnecessary call to
12793         pedantic_non_lvalue.  Add missing calls to fold_convert.
12794         (fold_truthop): Add missing calls to fold_convert.
12795         (fold): Likewise.
12796         * tree.h (constant_boolean_node): Add prototype here.
12797         * builtins.c (expand_builtin_strncmp): Add missing calls to
12798         fold_convert.
12799         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
12800         Call fold_convert and constant_boolean_node to correct types.
12801         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
12802         missing call to fold_convert to correct types.
12804 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
12805             Brian Ryner  <bryner@brianryner.com>
12807         PR c++/9283
12808         PR c++/15000
12809         * c-common.c (c_common_attribute_table): Allow
12810         handle_visibility_attribute to be called for types.
12811         (handle_visibility_attribute) When given a type, set the visibility
12812         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
12813         so that we can check later whether the attribute was present. Added
12814         warning if attribute applied to non class type.
12815         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
12816         decls and checking that they are consistent.
12817         * common.opt: Added -fvisibility.
12818         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
12819         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
12820         * flags.h, tree.h: Added assorted support defines for overall patch
12821         * opts.c: Added parsing support for -fvisibility.
12822         * tree.c (build_decl): Set visibility for all decls to be whatever
12823         is in force at that time.
12824         * varasm.c (default_binds_local_p_1): Reworked logic determining
12825         when to make a symbol locally bound.
12826         * doc/invoke.texi: Added documentation for -fvisibility and
12827         -fvisibility-inlines-hidden.
12829 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12831         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
12832         * c-common.c: Add missing casts from void * to other types.
12833         * c-decl.c: Likewise.
12834         * c-format.c: Likewise.
12835         * c-lex.c: Likewise.
12836         * c-pragma.c: Likewise.
12837         * c-typeck.c: Likewise.
12838         * defaults.h: Likewise.
12839         * genconstants.c: Likewise.
12840         * gengtype-lex.l: Likewise.
12841         * genmodes.c: Likewise.
12842         * read-rtl.c: Likewise.
12843         * rtl.c: Likewise.
12845 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12847         * bitmap.c: Use type-safe memory allocation macros from libiberty.
12848         * c-common.c: Likewise.
12849         * c-decl.c: Likewise.
12850         * c-lang.c: Likewise.
12851         * c-lex.c: Likewise.
12852         * c-opts.c: Likewise.
12853         * c-parse.in: Likewise.
12854         * c-typeck.c: Likewise.
12855         * genconditions.c: Likewise.
12856         * gengtype-lex.l: Likewise.
12857         * gengtype-yacc.y: Likewise.
12858         * gengtype.c: Likewise.
12859         * genmodes.c: Likewise.
12860         * gensupport.c: Likewise.
12861         * read-rtl.c: Likewise.
12862         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
12863         htab_find_slot().
12865 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12867         * c-decl.c (groktypename, groktypename_in_param_context): Rename
12868         variable typename to type_name.
12869         * c-lex.c (interpret_float): Likewise.
12871 2004-07-25  Roger Sayle  <roger@eyesopen.com>
12873         * convert.c (convert_to_real, convert_to_integer,
12874         convert_to_complex): Replace calls to build with calls to buildN.
12875         * coverage.c (tree_coverage_counter_ref): Likewise.
12876         * dojump.c (do_jump): Likewise.
12877         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
12878         * emit-rtl.c (component_ref_for_mem_expr,
12879         set_mem_attributes_minus_bitpos): Likewise.
12880         * explow.c (update_nonlocal_goto_save_area): Likewise.
12881         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
12882         expand_mult_add): Likewise.
12883         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
12884         store_constructor, get_inner_reference, expand_expr_real_1,
12885         try_casesi, try_tablejump): Likewise.
12886         * function.c (expand_function_start): Likewise.
12887         * stmt.c (emit_case_bit_tests, expand_end_case_type,
12888         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
12889         * stor-layout.c (place_union_field, layout_type): Likewise.
12890         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
12891         * varasm.c (copy_constant): Likewise.
12893 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12895         * c-common.c: Rename all identifiers named `new'.
12896         * c-decl.c: Likewise.
12897         * gensupport.c: Likewise.
12898         * simplify-rtx.c: Likewise.
12899         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
12900         with XNEW().
12901         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
12902         with XNEWVEC().
12904 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
12906         PR c/15360
12907         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
12908         declarations until after calling pushdecl.
12909         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
12910         "extern" and not on whether the declaration is initialized.
12912 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
12914         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
12915         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
12916         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
12917         "cpplib.h", "c-pragma.h", "c-common.h".
12918         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
12919         (solaris_register_pragmas): New functions.
12920         * config/sol2-protos.h: New file.
12921         * config/sol2.c: New file.
12922         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
12923         (REGISTER_TARGET_PRAGMAS): New macros.
12924         (solaris_pending_aligns, solaris_pending_inits)
12925         (solaris_pending_finis): New variables.
12926         * config/t-sol2 (sol2-c.o): Update dependencies.
12927         (sol2.o): New rule.
12928         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
12929         SUBTARGET_INSERT_ATTRIBUTES.
12930         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
12931         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
12932         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
12933         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
12934         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
12935         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
12936         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
12937         * config/sparc/sparc.c (sparc_attribute_table): New.
12938         (TARGET_INSERT_ATTRIBUTES): Define in terms of
12939         SUBTARGET_INSERT_ATTRIBUTES.
12940         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
12941         is defined.
12942         * doc/extend.texi (Solaris Pragmas): New section.
12944 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12946         * c-common.c: Rename all identifiers named `class' to `cl'.
12947         * c-common.h: Likewise.
12948         * c-parse.in: Likewise.
12949         * c-typeck.c: Likewise.
12950         * genmodes.c: Likewise.
12951         * real.c: Likewise.
12952         * real.h: Likewise.
12953         * recog.c: Likewise.
12954         * recog.h: Likewise.
12955         * regrename.c: Likewise.
12956         * tree.h: Likewise.
12957         * c-common.c (builtin_function_2): Change type of 5th parameter from
12958         int to enum built_in_function. Change type of 8th parameter from int
12959         to bool.
12960         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
12961         with GGC_CNEW().
12962         * c-typeck.c (convert_arguments): Change type of formal_prec from
12963         int to unsigned int.
12964         * genmodes.c (blank_mode): Make a few negative constants unsigned.
12965         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
12966         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
12967         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
12968         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
12969         iterator to for_all_modes () instead of an enum because enums can't
12970         be incremented in C++.
12973 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
12975         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
12976         hard registers.
12978 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12980         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
12981         Handle ARRAY_RANGE_REF like ARRAY_REF.
12983 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
12985         * c-typeck.c (digest_init): Don't allow arrays of signed or
12986         unsigned variants of wchar_t to be initialized by wide string
12987         constants.  Do allow arrays of enumerated types compatible with
12988         wchar_t to be initialized by wide string constants.  Refine tests
12989         distinguishing wide and narrow strings and arrays.  Give specific
12990         error for arrays of other integer types initialized by string
12991         constants.
12992         (output_init_element, process_init_element): Check for
12993         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
12994         initializing with string constants.
12996 2004-07-25  Richard Henderson  <rth@redhat.com>
12998         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
12999         on the RESULT_DECL.
13000         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13001         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
13002         DECL_IGNORED_P to new decl.
13004 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
13006         * config/ia64/ia64.c (general_xfmode_operand)
13007         (destination_xfmode_operand): Delete.
13008         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
13009         * config/ia64/ia64.md (*movxf_internal): Use general_operand
13010         and destination_operand.
13012 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
13014         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
13015         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
13017 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
13018             Zack Weinberg  <zack@codesourcery.com
13020         PR 16684
13021         * c-decl.c (diagnose_mismatched_decls): Don't issue a
13022         redundant-declaration warning the first time a builtin is
13023         declared explicitly.
13025 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13027         * tree.h (staticp): Change return type to bool.
13029 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13031         * c-common.c (c_staticp): Last episode of the staticp saga.
13033 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13035         * c-common.h (c_staticp): Change return type from int to bool.
13036         * tree.c (staticp): Likewise.
13037         * langhooks.h (staticp): Likewise.
13039 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13041         * langhooks-def.h (lhd_staticp): Change return type from int to
13042         bool in prototype to match definition.
13044 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13046         * system.h (bool, true, false): Don't redefine as preprocessor macros
13047         in C++.
13049 2004-07-24  Roger Sayle  <roger@eyesopen.com>
13051         * expmed.c (init_expmed): A signed modulus by a power of two is
13052         considered cheap if its less than or equal to four instructions.
13054 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13056         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
13057         GGC_CNEWVAR): New macros.
13059 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13061         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
13062         lists.
13063         * c-decl.c: Likewise.
13064         * c-format.c: Likewise.
13065         * c-lex.c: Likewise.
13066         * c-opts.c: Likewise.
13067         * c-pragma.c: Likewise.
13068         * c-typeck.c: Likewise.
13069         * gencheck.c: Likewise.
13070         * genconditions.c: Likewise.
13071         * genconfig.c: Likewise.
13072         * genflags.c: Likewise.
13073         * gengtype.c: Likewise.
13074         * gensupport.c: Likewise.
13075         * ggc-none.c: Likewise.
13076         * langhooks.c: Likewise.
13077         * statistics.h: Likewise.
13078         * stub-objc.c: Likewise.
13079         * java/decl.c: Likewise.
13081 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
13083         * config/m68k/m68k.c (output_scc_di): Fix coding style.
13084         (symbolic_operand): Fix prototype.
13085         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
13086         * config/m68k/m68k.md: Add constants for registers a0 and sp and
13087         use them, change from the "{...}" syntax to the simpler {...}
13088         syntax.
13089         (*cfv4_extendqisi2): Fix destination predicate.
13090         * config/m68k/m68k-protos.h: Remove various declarations also
13091         generated via PREDICATE_CODES.
13093 2004-07-23  Mike Stump  <mrs@apple.com>
13095         * c-typeck.c (convert_for_assignment): Tightened up pointer
13096         converstions that differ in signedness.
13098 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
13100         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
13102 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13104         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
13105         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
13107         * gimplify.c (gimplify_compound_lval): Check for no handled
13108         operations, rather than checking for explicit list of nodes.
13109         (is_gimple_addr_expr_arg_or_indirect): New function.
13110         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
13111         redundant setting of TREE_INVARIANT.
13112         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
13113         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
13115 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
13117         PR tree-optimization/16688
13118         PR tree-optimization/16689
13119         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
13120         unnecessary initialization of 'tag'.
13121         (get_tmt_for): Check that the new type tag has the same alias
13122         set as the pointed-to type.
13123         (group_aliases): Only regular variables need to be removed
13124         from the alias set of a name tag.
13125         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
13126         propagation if the two types are not compatible.
13127         (merge_alias_info): Rename from replace_ssa_names_ann.
13128         Add more checking.
13129         (replace_exp_1): If both arguments are SSA_NAMEs, check that
13130         the propagation can be done.
13131         Only call merge_alias_info on pointers.
13132         (propagate_value): Likewise.
13133         * tree-ssa-copyrename.c: Include langhooks.h.
13134         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
13135         to do the merging.
13136         Do not coalesce variables with incompatible types.
13137         (rename_ssa_copies): Call replace_ssa_name_symbol.
13138         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
13139         the same type as the underlying _DECL.
13140         * tree-ssanames.c (replace_ssa_name_symbol): New function.
13141         * tree.h (replace_ssa_name_symbol): Declare.
13143 2004-07-23  Richard Henderson  <rth@redhat.com>
13145         PR c++/16277
13146         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
13147         unshare it properly.
13148         (gimplify_modify_expr_rhs): Push assignment from a conditional into
13149         the conditional for all non-register types.
13151 2004-07-23  Richard Henderson  <rth@redhat.com>
13153         * expr.c (expand_expr_real_1): Don't handle non-local variables.
13154         * expr.h (fix_lexical_addr): Remove.
13155         * function.c (NEED_SEPARATE_AP): Remove.
13156         (fix_lexical_addr): Remove.
13157         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
13158         not null decl_function_context.
13159         (create_alias_vars): Likewise.
13160         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
13161         (simple_goto_p): Likewise.
13162         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
13163         * tree-ssa-ccp.c (get_default_value): Likewise.
13164         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13165         * tree.c (needs_to_live_in_memory): Likewise.
13166         * tree-flow-inline.h (may_be_aliased): Move...
13167         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
13168         when TREE_STATIC variables may be addressable.
13170 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
13172         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
13174 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
13176         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
13177         bitmap contents if GENERATOR_FILE is defined.
13178         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
13179         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
13181 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
13183         * c-decl.c (start_function): Form composite type of function types
13184         rather than copying type from previous prototype declaration.
13186 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
13188         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
13189         the const qualifier for the second argument in the C++ functions.
13191         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
13192         specific pointer types.
13194         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
13195         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
13196         for vector bool and/or vector pixel, add C++ and C missing support.
13197         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
13198         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
13199         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
13200         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
13201         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
13202         missing C++ and C support for vector bool and/or vector pixel.
13203         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
13204         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
13205         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
13206         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
13207         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
13208         C++ and C types used for vector bool and/or vector pixel.
13209         (vec_st, vec_stl): Add C++ support for vector pixel.
13210         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
13211         (vec_all_ne): Add C++ support for vector pixel.
13213         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
13214         (vec_vmulesb): Add missing C++ function.
13215         (vec_perm): Fix type of third argument in C++ function.
13216         (vec_vsum4shs): Fix C++ function name.
13217         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
13218         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
13219         argument passed to the error handler in C macro.
13220         (vec_nmsub): Remove extra parens around argument names in C macro.
13221         (vec_packpx): Add missing parens in C macro.
13223 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
13225         * machmode.def: Remove vector modes.
13226         * config/alpha/alpha-modes.def: Add supported vector modes.
13227         * config/arm/arm-modes.def: Likewise.
13228         * config/frv/frv-modes.def: Likewise.
13229         * config/i386/i386-modes.def: Likewise.
13230         * config/rs6000/rs6000-modes.def: Likewise.
13231         * config/sh/sh-modes.def: Likewise.
13233 2004-07-23  Matthias Klose  <doko@debian.org>
13235         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
13236         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
13237         * config.h: Regenerate.
13238         * configure: Likewise.
13240 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
13242         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
13243         generated SYMBOL_REFs for labels.
13244         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
13245         Change prototype.
13246         (machopic_stub_name): Remove.
13247         (machopic_indirection_name): New function.
13248         (machopic_mcount_stub_name): Likewise.
13249         (machopic_classify_name): Remove.
13250         (machopic_function_base_sym): New function.
13251         (machpoic_classify_symbol): Likewise.
13252         (machopic_classify_ident): Remove.
13253         (machopic_define_ident): Likewise.
13254         (machopic_define_name): Likewise.
13255         (machopic_name_defined_p): Likewise.
13256         (machopic_ident_defined_p): Likewise.
13257         (darwin_strip_name_encoding): Likewise.
13258         (machopic_define_symbol): New function.
13259         * config/darwin.c (hashtab.h): Include.
13260         (machopic_defined_list): Remove.
13261         (machopic_classify_ident): Likewise.
13262         (machopic_classify_name): Likewise.
13263         (machopic_ident_defined_p): Likewise.
13264         (machopic_define_ident): Likewise.
13265         (machopic_define_name): Likewise.
13266         (machopic_symbol_defined_p): New function.
13267         (machopic_classify_symbol): Likewise.
13268         (machopic_data_defined_p): Use machopic_classify_symbol.
13269         (machopic_define_symbol): New function.
13270         (machopic_function_base_sym): New function.
13271         (machopic_non_lazy_pointers): Remove.
13272         (machopic_non_lazy_ptr_name): Likewise.
13273         (machopic_stubs): Likewise.
13274         (machopic_stub_name): Likewise.
13275         (NON_LAZY_POINTER_SUFFIX): New macro.
13276         (STUB_SUFFIX): Likewise.
13277         (machopic_indirection): New structure.
13278         (machopic_indirections): New variable.
13279         (machopic_indirection_hash): New function.
13280         (machopic_indirection_eq): Likewise.
13281         (machopic_indirection_name): Likewise.
13282         (machopic_mcount_stub_name): New function.
13283         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
13284         hash table.
13285         (machopic_indirect_data_reference): Rework to use new functions.
13286         (machopic_indirect_call_target): Likewise.
13287         (machopic_legitimize_pic_address): Likewise.
13288         (machopic_output_indirection): New function.
13289         (machopic_finish): Use it.
13290         (machopic_operand_p): Rework to use new functions.
13291         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
13292         (darwin_strip_name_encoding): Remove.
13293         (update_non_lazy_ptrs): Remove.
13294         (update_stubs): Likewise.
13295         (darwin_non_lazy_pcrel): Use new functions.
13296         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
13297         (ASM_OUTPUT_LABELREF): Likewise.
13298         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13299         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
13300         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
13301         (TARGET_STRIP_NAME_ENCODING): Do not use
13302         darwin_strip_name_encoding.
13303         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
13304         darwin_strip_name_encoding.
13305         * config/i386/darwin.h (FUNCTION_PROFILER): Use
13306         machopic_mcount_stub_name.
13307         * config/i386/i386.c (x86_output_mi_thunk): Use
13308         machopic_indirection_name, not machopic_stub_name.
13309         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
13310         machopic_function_base_sym.
13311         (print_operand): Use machopic_classify_symbol.
13312         (rs6000_emit_prologue): Use machopic_function_base_sym.
13313         (output_profile_hook): Do not use machopic_stub_name.
13314         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
13316 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13318         PR c/7284
13319         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
13320         as multiplication.
13322 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13324         * doc/implement-c.texi: New file.
13325         * doc/extend.texi (C Implementation): Move to there.
13326         * doc/gcc.texi: Include implement-c.texi.
13327         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
13329 2004-07-22  Jason Merrill  <jason@redhat.com>
13331         * integrate.c (copy_decl_for_inlining): Remove invisible reference
13332         handling.
13333         * tree-inline.c (setup_one_parameter): Likewise.
13335 2004-07-22  Brian Booth  <bbooth@redhat.com>
13337         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
13338         (substitute_and_fold): Propigate into VUSE operands when possible.
13339         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
13340         (cp_lattice_meet): Handle merging of latticevalues when
13341         UNKNOWN_VAL is present.
13342         (visit_stmt): Visit assignments with V_MUST_DEFs.
13343         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
13344         (ccp_fold): Deal with RHS' that are constant and virtual.
13345         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
13346         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
13347         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
13348         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
13349         computing immediate uses.
13350         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
13351         transition.
13352         (replace_vuse_in): New function.
13353         (likely_value): Add check of vuse operands.
13354         (get_default_value): Set the default value of virtually defined
13355         variables to UKNOWN_VAL instead of VARYING.
13357 2004-07-22  Richard Henderson  <rth@redhat.com>
13359         * expr.c (emit_push_insn): Don't use set_mem_attributes.
13361 2004-07-22  Richard Henderson  <rth@redhat.com>
13363         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
13364         variables due to conditional compilation.
13366 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
13368         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
13369         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
13370         Release SSA names that have been re-renamed.
13371         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
13372         variable.
13373         * tree-ssa-alias.c (init_alias_info): If aliases have been
13374         computed before, clear existing alias information.
13375         (create_name_tags): Do no fixup PT_ANYTHING pointers.
13376         If the new name tag for a pointer is different than the one it
13377         had before, mark the old tag for renaming.
13378         (replace_may_alias): New function.
13379         (group_aliases): Call it.
13380         (setup_pointers_and_addressables): Always call get_tmt_for.
13381         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
13382         once.
13383         (set_pt_anything): New local function.
13384         (set_pt_malloc): New local function.
13385         (merge_pointed_to_info): Don't merge pointed-to variables from
13386         the original pointer if the destination is pointing to an
13387         unknown location.
13388         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
13389         (add_pointed_to_var): Do not add a variable to the points-to
13390         set if the pointer is already pointing to anywhere.
13391         (collect_points_to_info_r): If the defining statement is a PHI
13392         node, only merge pointed-to information if the argument has
13393         already been visited.
13394         (get_tmt_for): Only create a new tag if the pointer didn't
13395         have one already.
13396         (dump_alias_info): Emit more information.
13397         (dump_points_to_info_for): Likewise.
13398         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
13399         try to get the annotation of an SSA_NAME.
13400         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
13401         alias sets when checking is enabled.
13402         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
13403         (eliminate): Mark basic blocks that will need
13404         EH information cleaned up.
13405         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
13406         predecessor.
13407         Initialize need_eh_cleanup.
13408         (fini_pre): Call tree_purge_all_dead_eh_edges and
13409         cleanup_tree_cfg if needed.
13410         Free need_eh_cleanup.
13411         * tree-ssa.c (verify_ssa_name): New function.
13412         (verify_def): Call it.
13413         Re-arrange to avoid printing too many error messages.
13414         (verify_use): Likewise.
13415         (verify_phi_args): Likewise.
13416         (verify_flow_insensitive_alias_info): New function.
13417         (verify_flow_sensitive_alias_info): New function.
13418         (verify_alias_info): New function.
13419         (verify_ssa): Call verify_alias_info.
13420         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
13421         program.
13422         Re-arrange to avoid printing too many error messages.
13423         * tree-ssanames.c (make_ssa_name): Clear
13424         SSA_NAME_IN_FREE_LIST.
13425         (release_ssa_name): Never release a default definition.
13426         (release_defs): New function.
13427         * tree.h: Declare it.
13428         * tree-ssa-dce.c (remove_dead_stmt): Call it.
13430 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
13432         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
13433         If true, do a depth-first search.  Do a breadht-first search,
13434         otherwise.
13435         (walk_use_def_chains): Add new argument IS_DFS.
13436         Update all users.
13437         * tree-flow.h (walk_use_def_chains): Update prototype.
13439 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
13441         * config/cris/cris.md: Tweak formatting.
13442         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
13443         (mover2side, moverside, movemside, movei, op3, andu): Replace
13444         live define_peephole:s with define_peephole2 near-equivalents.
13445         Delete the rest.
13446         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
13447         word-size modes.
13448         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
13449         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
13450         "*mov_sidesi_mem" respectively.
13452 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
13454         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
13455         (gimplify_build1): Move from tree-complex.c do_unop.
13456         (gimplify_build2): Move from tree-complex.c do_binop.
13457         (gimplify_build3): New.
13458         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
13459         Adjust throughout to call the functions above.
13460         * tree-flow.h: Declare the functions above.
13461         * tree-nested.c (gimplify_val): Rename to...
13462         (tsi_gimplify_val): ... this.
13464         * Makefile.in (tree_complex.o): Update dependencies.
13465         (stor-layout.o): Depend on regs.h.
13466         * c-common.c (handle_vector_size_attribute): Update for
13467         vector types without corresponding vector modes.
13468         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
13469         a corresponding vector mode is not available.
13470         * print-tree.c (print_node): Print nunits for vector types
13471         * regclass.c (have_regs_of_mode): New.
13472         (init_reg_sets_1): Initialize it and use it instead
13473         of allocatable_regs_of_mode.
13474         * regs.h (have_regs_of_mode): Declare it.
13475         * stor-layout.c (layout_type): Pick a mode for vector types.
13476         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
13477         build_replicated_const, do_unop, do_binop, do_plus_minus,
13478         do_negate, expand_vector_piecewise, expand_vector_parallel,
13479         expand_vector_addition, expand_vector_operations_1,
13480         expand_vector_operations, tree_lower_operations,
13481         pass_lower_vector_ssa, pass_pre_expand): New.
13482         (expand_complex_operations, pass_lower_complex): Remove.
13483         * tree-optimize.c (init_tree_optimization_passes): Adjust
13484         pass ordering for changes in tree-complex.c.
13485         * tree-pass.h: Declare new passes.
13486         * tree.c (finish_vector_type): Remove.
13487         (make_vector_type): New.
13488         (build_vector_type_for_mode, build_vector_type): Rewritten.
13489         * tree.def (VECTOR_TYPE): Document where the number of
13490         subparts is stored.
13491         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
13492         (make_vector): Remove declaration.
13494 2004-07-21  Richard Henderson  <rth@redhat.com>
13496         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
13497         TREE_THIS_VOLATILE, may_aliases, or optimization level.
13498         (remove_useless_vars): Dump debugging info.
13499         (expand_used_vars): Move ...
13500         * cfgexpand.c (expand_used_vars): ... here.  Make static.
13501         * tree-flow-inline.h (set_is_used): New.
13502         (set_default_def): Use get_var_ann.
13503         * tree-flow.h: Update decls.
13504         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
13505         (create_ssa_var_map): Use it.
13506         * tree-ssa.c (set_is_used): Remove.
13508 2004-07-22  Ben Elliston  <bje@au.ibm.com>
13510         * gdbinit.in: Set a breakpoint on internal_error.
13512 2004-07-21  Richard Henderson  <rth@redhat.com>
13514         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
13515         to create a new basic block.
13517 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13519         PR c/15052
13520         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
13521         return type on function definitions.  Move other warnings for
13522         qualified return type to -Wreturn-type.  Do not condition any such
13523         warnings on -pedantic.  Update comments.
13524         (start_function): Only copy function type from previous prototype
13525         declaration if return types are compatible.
13526         * c-typeck.c (function_types_compatible_p): Don't condition
13527         warning for incompatibility of volatile qualifiers on the return
13528         type on -pedantic.  Update comment.
13529         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
13531 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13533         * c-typeck.c (set_init_index): Require designator to be of integer
13534         type.
13536 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13538         PR c/11250
13539         * c-parse.in (init): Change to exprtype.
13540         (primary): Set original_code for STRING to STRING_CST.
13541         Call maybe_warn_string_init for compound literals.
13542         (initdcl, notype_initdcl): Call maybe_warn_string_init.
13543         (initval): Update.
13544         * c-tree.h (maybe_warn_string_init): New.
13545         (pop_init_level, process_init_element): Use struct c_expr.
13546         (struct c_expr): Update comment.
13547         * c-typeck.c (maybe_warn_string_init): New function.
13548         (digest_init): Call it.  Additional parameter strict_string.  All
13549         callers changed.
13550         (output_init_element): Likewise.
13551         (struct constructor_stack): Use struct c_expr for
13552         replacement_value.
13553         (really_start_incremental_init, push_init_level): Update.
13554         (pop_init_level): Update.  Return struct c_expr.
13555         (process_init_level): Update.  Take struct c_expr argument.
13557 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
13559         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
13560         commit.
13562 2004-07-21  Eric Christopher  <echristo@redhat.com>
13564         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
13565         removal.
13566         * c-decl.c (pop_scope): Ditto.
13567         * calls.c (expand_call): Remove call to current_nesting_level,
13568         update comment accordingly. Remove calls to expand_start_target_temps
13569         and expand_end_target_temps.
13570         * cfgexpand.c (construct_init_block): Remove call to
13571         expand_start_bindings_and_block.
13572         (construct_exit_block): Remove call to expand_end_bindings.
13573         * expr.c (safe_from_p): Remove BIND_EXPR handling.
13574         (expand_expr_real_1): Ditto. Fix formatting.
13575         (expand_vars): Delete.
13576         * stmt.c (POPSTACK): Remove block_stack.
13577         (stmt_status): Remove x_block_stack.
13578         (block_stack): Delete.
13579         (expand_start_bindings_and_block): Ditto.
13580         (expand_start_target_temps): Ditto.
13581         (expand_end_target_temps): Ditto.
13582         (current_nesting_level): Ditto.
13583         (warn_about_unused_variables): Ditto.
13584         (expand_end_bindings): Ditto.
13585         * tree.h: Remove declarations for above.
13587 2004-07-21  Steven Bosscher  <stevenb@suse.de>
13589         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
13590         * rtl.c (note_insn_name): Likewise.
13591         * print-rtl.c (print_rtx): Don't print it.
13592         * cfgrtl.h (can_delete_note_p): Don't handle it.
13593         (rtl_delete_block): Likewise.
13594         * passes.c (rest_of_handle_guess_branch_prob): Remove.
13595         (rest_of_compilation): Don't call it.
13596         * predict.c (process_note_predictions, process_note_prediction,
13597         note_prediction_to_br_prob): Remove.
13598         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
13599         * stmt.c (return_prediction): Remove.
13600         (expand_value_return): Don't call it.  Don't add prediction
13601         notes for return statements.
13603 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
13605         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
13606         once.
13608 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
13610         * c-common.c (vector_types_convertible_p): Use vector types'
13611         TYPE_SIZE and TREE_TYPE instead of their mode.
13612         * convert.c (convert_to_integer): Likewise.
13613         (convert_to_vector): Likewise.
13614         * fold-const.c (fold_convert): Likewise.
13615         * varasm.c (output_constant): Likewise.
13616         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
13617         Allow a VECTOR_TYPE initializer to be made of several vectors.
13618         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
13619         of cleared and need_to_clear, and use fold_convert.
13620         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
13621         integer vectors.
13623 2004-07-20  Richard Henderson  <rth@redhat.com>
13625         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
13626         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
13628 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
13630         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
13631         enormous cost if not TARGET_HARD_MUL.
13633 2004-07-20  Andrew Pinski  <apinski@apple.com>
13635         PR target/16557
13636         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
13637         (ASM_SPEC): here.
13639 2004-07-21  Paul brook  <paul@codesourcery.com>
13641         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
13643 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13645         * fold-const.c (operand_equal_p): Temporarily support NULL args.
13646         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
13647         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
13649 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
13651         * rtl.h (plus_constant): Delete.
13652         (plus_constant_wide): Rename to plus_constant.
13653         (plus_constant_for_output_wide): Delete vestigial prototype.
13654         (GEN_INT): Remove unnecessary cast.
13655         * tree.h (build_int_2, size_int_type): Delete.
13656         (build_int_2_wide): Rename to build_int_2.
13657         (size_int_wide): Rename to size_int_kind.
13658         (size_int_type_wide): Rename to size_int_type.
13659         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
13660         Remove unnecessary cast.
13661         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
13662         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
13663         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
13664         (size_int_type_wide): Rename size_int_type.
13665         (int_const_binop): Use size_int_type.
13666         * c-lex.c (interpret_integer): Use build_int_2.
13667         * final.c (split_double): Remove unnecessary casts.
13668         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
13670 2004-07-20  Richard Henderson  <rth@redhat.com>
13672         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
13673         (gimplify_compound_lval): Use is_gimple_tmp_reg.
13674         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
13675         (is_gimple_tmp_reg): New.
13676         * tree-gimple.h (is_gimple_tmp_reg): Declare.
13678 2004-07-20  Richard Henderson  <rth@redhat.com>
13680         * tree-pretty-print.c (dump_generic_node): Dump
13681         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
13683 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
13685         * tree-mudflap.c (mf_set_options_fndecl): New tree.
13686         (mudflap_init): Set it.
13687         (mudflap_register_call): Remove __mf_init call.
13688         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
13689         to pass "-ignore-reads" option to libmudflap if needed.
13691 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
13693         PR c++/14607
13694         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
13695         (MAKE_DECL_ONE_ONLY): Undefine.
13696         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
13697         readonly_data, one_only_data_section, forget_section): New prototypes.
13698         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
13699         functions.
13700         (pa_select_section): Add one-only (COMDAT) support.
13701         * pa.h (struct machine_function): Define.
13702         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
13703         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
13704         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
13705         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
13706         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
13707         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
13708         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
13709         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
13710         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
13711         for EXTRA_SECTION_FUNCTIONS.
13712         * doc/install.texi: Update binutils requirements.
13714 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
13716         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
13717         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
13718         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
13719         size_t.
13720         (struct VEC): Use unsigned for num and alloc.
13721         * vec.c (struct vec_prefix): Likewise.
13722         (vec_o_reserve): Adjust.
13724         * dbxout.c (dbxout_type): Fix printf format.
13726         * tree.h (binfo_member): Remove.
13727         * tree.c (binfo_member): Remove.
13729 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
13731         * tree.h: Include vec.h
13732         (DEF_VEC_P(tree)): New type.
13733         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
13734         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
13735         (BINFO_LANG_SLOT): Remove.
13736         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
13737         (struct tree_binfo): Turn base_binfos into a trailing
13738         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
13739         (binfo_lang_slots): Remove.
13740         * tree.c (binfo_lang_slots): Remove.
13741         (make_tree_binfo_stat): Take a base binfo count, not a
13742         lang slot count.  Adjust.
13743         * Makefile.in (TREE_H): Add vec.h
13744         * alias.c (record_component_aliases): Adjust BINFO access.
13745         * dbxout.c (dbxout_type): Likewise.
13746         * dwarf2out.c (gen_member_die): Likewise.
13747         * sdbout.c (sdbout_one_type): Likewise.
13748         * tree-dump.c (deque_and_dump): Likewise.
13749         * config/i386/i386.c (classify_argument,
13750         contains_128bit_aligned_vector_p): Likewise.
13751         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
13752         * doc/c-tree.texi (Classes): Update BINFO documentation.
13754 2004-07-20  Steven Bosscher  <stevenb@suse.de>
13756         * c-common.h (check_case_value): Remove prototype.
13757         (c_add_case_label): Adjust prototype.
13758         * c-common.c (check_case_value): Make static.
13759         (check_case_bounds): New function.
13760         (c_add_case_label): Use it.  Take new argument orig_type.
13761         * c-typeck.c (struct c_switch): New orig_type field.
13762         (c_start_case): Set it.
13763         (do_case): Pass it to c_add_case_label.
13764         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
13765         cases from here.  Add the labels in reverse order.
13766         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
13767         (add_case_node): Return nothing, don't check for duplicate cases.
13768         Insert new case nodes in a list, not in an AVL tree.
13769         (expand_end_case_type): Don't turn a case tree into a case list.
13770         (case_tree2list): Remove.
13771         * tree.h (add_case_node): Adjust prototype.
13773 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
13775         * genattr.c (struct range, struct function_unit,
13776         write_units, extend_range, init_range): Remove them.
13777         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
13778         Output "#define INSN_SCHEDULING" here.
13779         * genattrtab.c (struct range, struct function_unit_op,
13780         struct function_unit, struct dimension, enum operator,
13781         operate_exp, expand_units, simplify_knowing,
13782         encode_units_mask, simplify_by_exploding,
13783         find_and_mark_used_attributes, unmark_used_attributes,
13784         add_values_to_cover, increment_current_value,
13785         test_for_current_value, simplify_with_current_value,
13786         simplify_with_current_value_aux, gen_unit,
13787         write_unit_name, write_function_unit_info,
13788         write_complex_function, write_toplevel_expr,
13789         find_single_value, extend_range): Remove.
13790         (write_attr_get): Do not handle common_av->value
13791         being an FFS.
13792         (struct attr_desc): Remove func_units_p and blockage_p.
13793         (write_attr_valueq): Do not handle them.
13794         (find_attr): Do not clear them.
13795         (make_internal_attr): Do not initialize them.
13796         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
13797         * sched-vis.c (init_target_units, insn_print_units,
13798         init_block_visualization, print_block_visualization,
13799         visualize_scheduled_insns, visualize_no_unit,
13800         visualize_stall_cycles, visualize_alloc,
13801         visualize_free, target_units, get_visual_tbl_length,
13802         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
13803         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
13804         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
13805         * haifa-sched.c (blockage_range, clear_units,
13806         schedule_unit, actual_hazard, potential_hazard,
13807         insn_unit, unit_last_insn, unit_tick,
13808         actual_hazard_this_instance, potential_hazard,
13809         schedule_unit, max_insn_queue_index_value): Remove.
13810         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
13811         max_insn_queue_index.
13812         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
13813         * doc/md.texi (Processor pipeline description): Remove
13814         references to old pipeline descriptions.
13815         (Automaton pipeline description): Merge with the above.
13816         (Old pipeline description, Comparison of the two descriptions):
13817         Remove.
13819         * bt-load.c (migrate_btr_def): Remove references to
13820         use_pipeline_interface.
13821         * haifa-sched.c (insn_cost, schedule_insn,
13822         schedule_block, advance_one_cycle, sched_init,
13823         queue_to_ready, sched_finish): Likewise.
13824         * modulo-sched.c (sms_schedule, advance_one_cycle,
13825         ps_has_conflicts): Likewise.
13826         * sched-rgn.c (init_ready): Likewise.
13827         (debug_dependencies): Likewise, and remove an "if (1)".
13828         * target.h (use_dfa_pipeline_interface): Remove.
13829         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13830         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13831         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13832         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13833         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13834         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13835         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13836         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13837         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13838         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13839         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13840         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13841         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13842         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13843         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13844         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13845         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13846         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13847         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13849 2004-07-19  Roger Sayle  <roger@eyesopen.com>
13851         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
13853 2004-07-19  Jeff Law  <law@redhat.com>
13855         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
13856         (get_eq_expr_value): Use it.  Simplify slightly.
13858 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
13860         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
13861         (umulsidi3_32bit_r4000): Likewise.
13863 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
13865         * vec.h: Propagate location information properly.
13866         (VEC_T_iterate): Add result pointer parameter.
13867         (VEC_T_space): New.
13868         (VEC_T_reserve): Use it.
13870 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
13872         * Makefile.in (c-format.o): Depend on c-format.h.
13873         * c-format.h: New file.
13874         (struct format_char_info): Add CHAIN member.
13875         * c-format.c: Move some types and constants to c-format.h.
13876         (format_type_error): Set to -1.
13877         (struct function_format_info): Use an int for format_type.
13878         (decode_format_type): Return an int.  Return format_type_error
13879         on error.
13880         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
13881         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
13882         (scan_char_table, time_char_table, monetary_char_table): Initialize
13883         CHAIN to NULL.
13884         (n_format_types): New variable.
13885         (check_format_info_main): Handle CHAIN in format_char_info.
13886         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
13887         TARGET_N_FORMAT_TYPES.
13888         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
13889         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
13890         * config/sol2-c.c: New file.
13891         * config/t-sol2: New file.
13892         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
13893         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
13894         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
13896         * doc/extend.texi (Target Format Checks): New section.
13897         (Function Attributes): Mention it.
13898         * doc/invoke.texi: Mention target format checks.
13899         * doc/sourcebuild.texi: Mention target format checks.
13900         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
13901         TARGET_FORMAT_TYPES.
13903 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
13905         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
13906         added.
13907         * config/s390/s390.c (regclass_map initializer): Register 35 added to
13908         ADDR_REGS.
13909         (load_multiple_operation, store_multiple_operation): Removed
13910         pointless sanity check.
13911         (s390_decompose_address): Added check for return_address_pointer_rtx.
13912         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
13913         (s390_return_address_offset): New function.
13914         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
13915         (FRAME_REGNO_P): Added check for register 35.
13916         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
13917         REG_ALLOC_ORDER): Appended entry for register 35.
13918         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
13919         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
13920         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
13921         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
13922         is eliminable using stack pointer or hard frame pointer.
13923         (REGISTER_NAMES): Added name for register 35.
13924         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
13925         pointless sanity check.
13927 2004-07-19  Roger Sayle  <roger@eyesopen.com>
13929         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
13930         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
13931         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
13932         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
13933         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
13934         (fold_relational_const): Tidy up handling of floating point
13935         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
13936         transformation; fold_relational_const assumes constant operands.
13938 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
13940         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
13941         directory.
13943 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
13945         * c-tree.h (struct c_expr): Define.
13946         (C_SET_EXP_ORIGINAL_CODE): Remove.
13947         (parser_build_binary_op, build_compound_expr): Update prototypes.
13948         * c-parse.in (%union): Add exprtype.
13949         (FUNC_NAME): Mark as ttype.
13950         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
13951         exprtype.
13952         (expr): Update.  Define directly in terms of expr_no_commas
13953         instead of using nonnull_exprlist.
13954         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
13955         offsetof_member_designator, typespec_nonreserved_nonattr, init,
13956         initval, designator, component_declarator,
13957         component_notype_declarator, enumerator, array_declarator,
13958         condition, exexpr, switch_statement, stmt_nocomp, stmt,
13959         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
13960         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
13961         where appropriate.
13962         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
13963         * c-common.c (c_common_truthvalue_conversion): Don't check
13964         C_EXP_ORIGINAL_CODE.
13965         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
13966         Don't use C_EXP_ORIGINAL_CODE.
13967         (default_conversion, default_function_array_conversion): Don't use
13968         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
13969         (internal_build_compound_expr): Merge into build_compound_expr.
13970         (build_compound_expr): Take two operands instead of a TREE_LIST.
13971         * objc/objc-act.c (get_super_receiver): Update calls to
13972         build_compound_expr.
13974 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
13976         * config/sh/sh.c (sh_use_dfa_interface): Remove.
13977         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
13978         hook_int_void_1.
13979         * config/sh/sh.md: Extract pipeline descriptions
13980         into separate files.
13981         * config/sh/sh1.md: New file, extracted from sh.md.
13982         * config/sh/sh4.md: New file, extracted from sh.md.
13983         * config/sh/shmedia.md: New file, extracted from sh.md
13984         and rewritten using new-style pipeline description.
13986 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
13988         * config/pa/pa.md: Delete the two remaining define_peephole
13989         patterns.
13991 2004-07-18  Steven Bosscher  <stevenb@suse.de>
13992             Joseph S. Myers  <jsm@polyomino.org.uk>
13994         * c-common.c (c_common_truthvalue_conversion): Don't warn if
13995         TREE_NO_WARNING is set.
13997 2004-07-18  Roger Sayle  <roger@eyesopen.com>
13999         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
14000         simplify_builtin_strncmp): Delete.
14001         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
14002         Change argument to accept an arglist instead of an "exp".  Assume
14003         that the return type is always integer_type_node.  Copy missing
14004         transformations from their now obsolete simplify_builtin_*
14005         equivalents.
14006         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
14007         fold_builtin_strcmp and fold_builtin_strncmp.
14008         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
14009         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
14010         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
14012 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
14014         * Makefile.in (tree-alias-common.o): Update dependencies.
14016 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
14018         * cfgloop.c (flow_loop_nested_p): Fix comment.
14020 2004-07-17  Jason Merrill  <jason@redhat.com>
14022         PR c++/16115
14023         * stor-layout.c (relayout_decl): New fn.
14024         * tree.h: Declare it.
14025         (DECL_BY_REFERENCE): New macro.
14027 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
14029         * libgcc2.c (__enable_execute_stack): New symbol.
14030         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
14031         and declare __enable_execute_stack.
14032         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
14033         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
14034         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
14035         ENABLE_EXECUTE_STACK.
14036         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
14037         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
14038         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
14039         ENABLE_EXECUTE_STACK.
14040         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
14041         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
14042         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
14043         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
14044         ENABLE_EXECUTE_STACK.
14045         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
14046         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
14047         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
14048         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
14049         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
14050         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
14051         (sparc64_initialize_trampoline): Likewise.
14052         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
14054 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
14056         * langhooks.h (builtin_function): New langhook.
14057         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
14058         (LANG_HOOKS_INITIALIZER): Update.
14059         * tree.h (builtin_function): Remove.
14060         * doc/tm.texi: Update.
14061         * c-tree.h (builtin_function): Declare.
14062         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
14063         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
14064         config/ia64/ia64.c, config/iq2000/iq2000.c,
14065         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
14066         config/stormy16/stormy16.c: All callers of builtin_function
14067         changed.
14069 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
14071         PR target/16556
14072         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
14073         Remove white space after the backslash.
14075 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
14077         PR rtl-optimization/16294
14078         * resource.c (return_insn_p): New predicate.
14079         (mark_target_live_regs): Use it.  Special-case return insns.
14080         (init_resource_info): Use it.  Don't scan the epilogue past
14081         a return.
14083 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14085         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
14086         destroy dominance information.
14087         * passes.c (rest_of_handle_loop2):  Free dominance information.
14088         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
14089         jump threading.
14090         (thread_jumps): Update dominance information and remove unreachable
14091         blocks.
14092         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
14093         information and remove the unreachable block.
14095 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
14097         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
14099 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
14101         * doc/sourcebuild.texi: Remove libf2c entry.
14103 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
14105         * config/i386/i386.md (movv16qi_internal): Fix typo.
14107 2004-07-17  Steven Bosscher  <stevenb@suse.de>
14109         * final.c (final_scan_insn): Fix broken commit from previous
14110         patch.
14112 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
14114         * c-typeck.c (parser_build_binary_op): Condition warnings for
14115         X<=Y<=Z on -Wparentheses instead of -Wextra.
14116         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
14117         supported for C only.
14119 2004-07-17  Steven Bosscher  <stevenb@suse.de>
14121         * cfgcleanup.c (try_simplify_condjump): Don't remove line
14122         notes to avoid unreachable code warnings.
14123         * toplev.c (backend_init): Don't emit line notes for
14124         unreachable code warnings.
14126         * combine.c (distribute_notes): Don't distribute a
14127         REG_VTABLE_REF note.
14128         * final.c (final_scan_insn): Don't handle it.
14129         * rtl.c (reg_note_name): Remove it.
14130         * rtl.h (enum reg_node): Dito.
14132         * emit-rtl.c (force_line_numbers, restore_line_number_status):
14133         Remove.
14134         * rtl.h (force_line_numbers, restore_line_number_status):
14135         Remove prototypes.
14137         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
14138         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
14139         (using_eh_for_cleanups): Also moved here.
14141         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
14142         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
14143         to expand_start_case and add_case_node.
14144         * stmt.c (struct nesting): Cleanup unused fields condition_code,
14145         last_unconditional_cleanup, nominal_type, printname, and
14146         line_number_status.
14147         (struct fixup_goto): Remove.
14148         (struct stmt_status): Remove x_goto_fixup_chain field.
14149         (goto_fixup_chain): Remove.
14150         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
14151         pushcase, pushcase_range): Remove.
14152         (expand_start_bindings_and_block): Don't set unused fields in
14153         the nesting stack.
14154         (expand_start_case, add_case_node): Cleanup unused formal arguments.
14155         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
14156         instead of emit_jump_if_reachable.
14157         (emit_case_nodes): Likewise.
14158         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
14159         static.
14160         (update_eh_label): Work around left-over exception handing regions.
14161         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
14162         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
14163         (pass_cleanup_cfg_post_optimizing): New pass.
14164         (init_tree_optimization_passes): Run the new pass after all
14165         optimizations.
14166         * tree.h (pushcase, pushcase_range): Remove prototypes.
14167         (expand_start_case, add_case_node): Update prototypes.
14169 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
14171         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
14173 2004-07-16  Richard Henderson  <rth@redhat.com>
14175         * builtins.c (std_expand_builtin_va_arg): Remove.
14176         (expand_builtin_va_arg): Remove.
14177         * expr.h: Don't declare them.
14178         * gimplify.c (mark_decls_volatile_r): Remove.
14179         (copy_if_shared_r): Don't call it.
14180         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
14181         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
14182         * gimple-low.c (lower_stmt): Likewise.
14183         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
14184         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
14185         * tree-ssa-operands.c (get_expr_operands): Likewise.
14186         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
14187         EXPAND_BUILTIN_VA_ARG.
14188         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
14189         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
14190         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
14191         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
14193 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
14195         * tree-ssa-pre.c (insert_aux): Break out if we hit
14196         a critical edge.
14198 2004-07-16  Richard Henderson  <rth@redhat.com>
14200         * basic-block.h (remove_fake_exit_edges): Declare.
14201         * cfganal.c (remove_fake_predecessors): Rename from
14202         remove_fake_successors; iterate over predecessors.
14203         (remove_fake_exit_edges): New.
14204         * cfgcleanup.c (try_optimize_cfg): Use it.
14205         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
14206         * predict.c (estimate_probability): Likewise.
14207         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
14208         * tree-cfg.c (make_edges): Likewise.
14209         * tree-ssa-pre.c (fini_pre): Likewise.
14210         * profile.c (instrument_edges): Don't remove_fake_edges.
14211         (branch_prob): Do it earlier here.
14213 2004-07-16  Richard Henderson  <rth@redhat.com>
14215         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
14216         switchification wrt CONSTRUCTOR.  Document the reason.
14218 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
14220         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
14221         that prevented descriptive __mf_check source location strings.
14223 2004-07-16  Richard Henderson  <rth@redhat.com>
14225         * tree-def (WITH_SIZE_EXPR): New.
14226         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
14227         * expr.c (expand_expr_real_1): Likewise.
14228         * gimplify.c (maybe_with_size_expr): New.
14229         (gimplify_arg, gimplify_modify_expr): Use it.
14230         (gimplify_modify_expr_to_memcpy): Take size parameter.
14231         (gimplify_modify_expr_to_memset): Likewise.
14232         (gimplify_expr): Handle WITH_SIZE_EXPR.
14233         * tree-alias-common.c (find_func_aliases): Likewise.
14234         * tree-eh.c (tree_could_trap_p): Likewise.
14235         (tree_could_throw_p): Likewise.
14236         * tree-gimple.c (is_gimple_lvalue): Likewise.
14237         (get_call_expr_in): Likewise.
14238         * tree-inline.c (estimate_num_insns_1): Likewise.
14239         (expand_calls_inline): Likewise.
14240         * tree-nested.c (convert_call_expr): Likewise.
14241         * tree-pretty-print.c (dump_generic_node): Likewise.
14242         * tree-sra.c (sra_walk_expr): Likewise.
14243         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
14244         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
14245         * tree-ssa-operands.c (get_expr_operands): Likewise.
14246         * tree-tailcall.c (find_tail_calls): Likewise.
14248         * calls.c (expand_call): Reset old_stack_allocated after
14249         calling emit_stack_restore.
14251 2004-07-16  Richard Henderson  <rth@redhat.com>
14253         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
14254         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
14255         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
14256         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
14257         copy_res_decl_for_inlining.
14259         * tree-inline.c (declare_return_variable): New modify_dest argument.
14260         Use it as the return value, when possible or manditory.  Handle
14261         TREE_ADDRESSABLE types.
14262         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
14263         replacement of CALL_EXPR.
14265 2004-07-16  Richard Henderson  <rth@redhat.com>
14267         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
14268         * gimple-low.c (expand_var_p): Don't check it.
14269         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
14270         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
14271         * tree-ssa-operands.c (add_stmt_operand): Likewise.
14272         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
14273         (find_referenced_vars): Don't call them.
14274         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
14276 2004-07-16  Richard Henderson  <rth@redhat.com>
14278         * function.c (pass_by_reference): True for all variable sized types.
14280 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
14282         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
14283         * tree-pretty-print.c: Include tree-chrec.h.
14284         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
14285         and POLYNOMIAL_CHREC nodes.
14287 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
14289         * builtins.c (expand_builtin_stpcpy): Do not create temporary
14290         reg with VOIDmode.
14292 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
14294         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
14296 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
14298         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
14299         to BASE_REGNUM.
14300         * config/s390/s390.c: Likewise.
14301         * config/s390/s390.h: Likewise.
14303 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14305         * config/mips/mips.md (addsi3, adddi3): Remove special handling
14306         of $sp adds.  Remove REGNO checks from mips16 patterns.
14308 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14310         * config/mips/mips.md: Delete outdated comment.
14312 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14314         * config/mips/mips.c (get_float_compare_codes): Delete.
14315         (mips_emit_compare): New function, mostly extracted from
14316         get_float_compare_codes and gen_conditional_branch.
14317         (gen_conditional_branch, gen_conditional_move): Use it.
14319 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
14321         * genautomata.c (add_vect): Speedup by using integers as
14322         bit-vectors for walking through the comb_vect and finding
14323         a match.
14325 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14327         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
14328         operand is an uns_arith_operand; use subtraction otherwise.
14329         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
14330         not just arith_operands.
14332 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14334         * config/mips/mips-protos.h (gen_int_relational): Delete.
14335         (mips_emit_scc): Declare.
14336         * config/mips/mips.c (internal_test): Delete.
14337         (sle_operand, sleu_operand): New functions.
14338         (map_test_to_internal_test, gen_int_relational): Delete.
14339         (mips_emit_binary, mips_relational_operand_ok_p)
14340         (mips_emit_int_relational, mips_zero_if_equal)
14341         (mips_emit_scc): New functions.
14342         (gen_conditional_branch): Rework to use mips_emit_int_relational.
14343         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
14344         sleu_operand.
14345         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
14346         (sltu, sleu): Use mips_emit_scc.
14347         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
14348         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
14349         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
14351 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14353         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
14355 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14357         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
14358         (*sne_[sd]i): Likewise sne_[sd]i_zero.
14359         (*sgt_[sd]i): ...and sgt_[sd]i.
14360         (*slt_[sd]i): ...and slt_[sd]i.
14361         (*sgtu_[sd]i): ...and sgtu_[sd]i.
14362         (*sltu_[sd]i): ...and sltu_[sd]i.
14363         (*sleu_[sd]i): ...and sleu_[sd]i_const.
14364         Name previously unnamed mips16 patterns.  Formatting fixes.
14366 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14368         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
14369         (branch_type): Delete.
14370         (gen_conditional_branch, gen_conditional_move)
14371         (mips_gen_conditional_trap): Update after name change.  Get the
14372         comparison mode from cmp_operands[0].
14373         * config/mips/mips.h (cmp_type, branch_type): Delete.
14374         (cmp_operands): Renamed from branch_cmp.
14375         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
14376         name change.  Don't set branch_type.
14377         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
14378         mode class of cmp_operands[0] rather than branch_type.  Update after
14379         name change.
14381 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14383         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
14384         of 0...255 to 0 when inside a SET.
14386 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14388         * config/mips/mips.md: Remove mips16 define_peepholes.
14390 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
14392         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
14393         (fini_pre): Remove fake edges.
14395 2004-07-15  Richard Henderson  <rth@redhat.com>
14397         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
14398         (get_indirect_ref_operands, get_call_expr_operands): ... these.
14400 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
14402         * vec.h (VEC_address): New function.
14404 2004-07-14  Jason Merrill  <jason@redhat.com>
14406         PR middle-end/15885
14407         * gimplify.c (gimplify_arg): New fn, split out from...
14408         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
14410 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
14412         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
14413         generate code which is generated by pushqi1 now
14414         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
14416 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
14418         * combine.c (simplify_set): match the mode of the constant 0 with
14419         the tested operand to match the compare behaviour and the
14420         simplify_relational_operation() expectation.
14422 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
14424         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
14425         ("bordered"): Same.
14427 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
14429         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
14430         unconditionally.
14431         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
14433 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
14435         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
14436         calls in mips16 code.
14438 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
14440         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
14441         the destination of the li as well as for the neg.
14443 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
14445         g++/15861
14446         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
14447         * cgraph.h: Update declaration.
14448         * c-decl.c (build_cdtor): Update call with default priority.
14449         * coverage.c (create_coverage): Ditto.
14450         * tree-mudflap.c (mf_init_fndecl): New tree.
14451         (mudflap_init): Set it.
14452         (mudflap_register_call): Arrange to call __mf_init before the first
14453         __mf_register call.
14454         (mudflap_finish_file): Mark the mudflap static initializer as extra
14455         high priority, to beat all C++ static constructors.
14457 2004-07-15  Jeff Law  <law@redhat.com>
14459         * loop.c (check_insn_for_givs): Restore check for code labels that was
14460         accidentally deleted by a recent checkin.
14462 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
14464         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
14465         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
14467 2004-07-14  Richard Henderson  <rth@redhat.com>
14469         * print-tree.c (print_node): Fix casts last change.
14471 2004-07-15  Paul Brook  <paul@codesourcery.com>
14473         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
14474         to TARGET_UNWIND_INFO.
14475         * except.c (output_function_exception_table): Ditto.
14476         * except.h: Ditto.
14477         * opts.c (decode_options): Ditto.
14478         * passes.c (rest_of_handle_final): Ditto.
14479         * final.c (final_start_function): Ditto.
14480         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
14481         target hook.
14482         * targhooks.h (default_unwind_emit): Declare.
14483         * targhooks.c (default_unwind_emit): New function.
14484         * target-def.h: Define and use TARGET_UNWIND_EMIT.
14485         * target.h (struct gcc_target): Add unwind_emit.
14486         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
14487         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
14488         Remove IA64_UNWIND_EMIT.
14489         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
14491 2004-07-14  Richard Henderson  <rth@redhat.com>
14493         * print-tree.c (print_node): Handle SSA_NAME.
14495 2004-07-14  James E Wilson  <wilson@specifixinc.com>
14497         PR target/16325
14498         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
14499         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
14501 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
14503         * expr.c (expand_assignment): Reenable bitfield += optimizations.
14504         Use alias set 0 for memory, do proper mode calculations and adjust
14505         address for memories.
14507 2004-07-14  Per Bothner  <per@bothner.com>
14509         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
14510         structure with extra column field.
14511         * tree.c (expand_location):  Also fill in column field.
14512         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
14513         gets confused by the two conditionally-compiled definitions.
14515 2004-07-14  Eric Christopher  <echristo@redhat.com>
14517         * calls.c (expand_call): Fix typo in comment.
14519 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
14521         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
14522         comparision of TFmode.
14524 2004-07-14  Richard Henderson  <rth@redhat.com>
14526         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
14527         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
14528         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
14529         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
14530         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
14531         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14532         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
14533         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
14534         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14536 2004-07-14  Mike Stump  <mrs@apple.com>
14538         * config/darwin.h (WINT_TYPE): Define to be int to match
14539         system header files.
14541 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
14543         * config/xtensa/xtensa.c (function_arg_advance): Check for args
14544         that must be passed in the stack.
14545         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
14546         arguments if the size is not a constant.
14548 2004-07-14  Per Bothner  <per@bothner.com>
14550         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
14551         instead of EXPR_LOCUS in a boolean context, which is always true
14552         if --enable-mapped-location.
14553         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
14555 2004-07-14  Richard Henderson  <rth@redhat.com>
14557         * dominance.c (struct dom_info): Add fake_exit_edge.
14558         (init_dom_info): Allocate it.
14559         (free_dom_info): Free it.
14560         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
14561         in two passes.
14562         (calc_idoms): Honor fake_exit_edge.
14564 2004-07-13  Jason Merrill  <jason@redhat.com>
14566         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
14567         (rhs_test_for): New fn.
14568         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
14569         * tree-gimple.h: Declare them.
14570         * gimplify.c (gimplify_modify_expr): Use the new fns.
14572 2004-07-14  Richard Henderson  <rth@redhat.com>
14574         * config/arm/arm-protos.h (arm_va_arg): Remove.
14575         * config/arm/arm.c (arm_va_arg): Remove.
14576         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
14577         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
14579 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14581         * pa.c (fix_range): New function to mark a range(s) of registers as
14582         fixed registers.
14583         (override_options): Call fix_range if the -mfixed-range option string
14584         is not empty.
14585         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
14586         * doc/invoke.texi (-mfixed-range): Document new option.
14588 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
14590         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
14591         for TARGET_64BIT.
14592         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
14594 2004-07-14  Roger Sayle  <roger@eyesopen.com>
14596         * expmed.c (expand_sdiv_pow2): New function to expand signed division
14597         by a positive power of two, split out from expand_divmod.  Provide
14598         an alternate implementation when shifts are expensive.  Lower the
14599         threshold for using a branchless implementation to BRANCH_COST >= 2.
14600         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
14602 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14604         * tree-dfa.c (make_rename_temp): *Really* work just
14605         like create_tmp_var if called while outside SSA form.
14607 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
14609         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
14610         for division by zero.
14611         ("umodsi3"): Likewise.
14613 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
14615         * config/mips/mips.c (mips_output_move): When generating mips16 code,
14616         force loads of negative constants to be split.
14617         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
14618         Generalize SImode li/neg splitter to cope with other modes.
14620 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14622         * expmed.c: Remove more references to QUEUED in the comments.
14623         * expr.c: Likewise.
14625 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
14627         Revert:
14628         2004-07-13  Richard Henderson  <rth@redhat.com>
14629         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
14630         correctly.
14632 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14634         * tree-dfa.c (make_rename_temp): Work just like
14635         create_tmp_var if called while outside SSA form.
14637 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14639         * expr.c (enqueue_insn, finish_expr_for_function,
14640         protect_from_queue, queued_subexp_p, mark_queue,
14641         emit_insns_enqueued_after_mark, emit_queue,
14642         expand_increment): Remove.
14643         (store_constructor): Expand increment as an assignment.
14644         (expand_expr_real_1 <case PREINCREMENT_EXPR,
14645         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
14646         case POSTDECREMENT_EXPR>): Abort.
14647         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
14648         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
14649         protect_from_queue, emit_queue, queued_subexp_p): Remove.
14650         * function.h (pending_chain, x_pending_chain): Remove.
14651         * rtl.def (QUEUED): Remove.
14653         * emit-rtl.c (copy_insn_1, copy_most_rtx,
14654         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
14655         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
14656         encode_units_mask): Likewise.
14657         * local-alloc.c (equiv_init_varies_p): Likewise.
14658         * rtl.c (copy_rtx): Likewise.
14659         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
14660         * simplify-rtx.c (simplify_gen_subreg): Likewise.
14661         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
14663         * builtins.c (expand_builtin, expand_builtin_apply,
14664         expand_builtin_mathfn, expand_builtin_mathfn_2,
14665         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
14666         Remove calls to emit_queue and protect_from_queue.
14667         * calls.c (expand_call, precompute_arguments,
14668         precompute_register_parameters, rtx_for_function_call,
14669         store_one_arg): Likewise.
14670         * dojump.c (do_compare_and_jump, do_jump): Likewise.
14671         * explow.c (memory_address): Likewise.
14672         * expmed.c (clear_by_pieces_1, clear_storage,
14673         clear_storage_via_libcall, emit_group_load,
14674         emit_group_store, emit_store_flag,
14675         expand_expr_real_1, store_by_pieces,
14676         store_constructor, store_expr, try_casesi,
14677         try_tablejump): Likewise.
14678         * function.c (expand_pending_sizes): Likewise.
14679         * optabs.c (emit_cmp_and_jump_insns,
14680         emit_conditional_add, emit_conditional_move,
14681         expand_fix, expand_float, prepare_cmp_insn): Likewise.
14682         * stmt.c (emit_case_bit_tests,
14683         expand_asm_expr, expand_computed_goto,
14684         expand_decl_init, expand_end_case_type,
14685         expand_end_stmt_expr, expand_expr_stmt_value,
14686         expand_return, expand_start_case,
14687         optimize_tail_recursion): Likewise.
14688         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
14689         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
14691 2004-07-14  Ben Elliston  <bje@au.ibm.com>
14693         * vec.h: Comment fix.
14695 2004-07-13  Richard Henderson  <rth@redhat.com>
14697         * target.h (struct gcc_target): Add calls.pass_by_reference.
14698         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
14699         * function.c (pass_by_reference): Use the hook.
14700         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
14701         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
14702         (hook_pass_by_reference_must_pass_in_stack): New.
14703         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
14704         (alpha_pass_by_reference): New.
14705         (TARGET_PASS_BY_REFERENCE): New.
14706         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14707         * config/arc/arc.c (arc_pass_by_reference): New.
14708         (TARGET_PASS_BY_REFERENCE): New.
14709         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14710         (FUNCTION_ARG_CALLEE_COPIES): True.
14711         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
14712         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
14713         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
14714         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14715         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14716         * config/cris/cris.c (cris_pass_by_reference): New.
14717         (TARGET_PASS_BY_REFERENCE): New.
14718         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
14719         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
14720         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14721         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
14722         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14723         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
14724         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
14725         (frv_function_arg_pass_by_reference): Remove.
14726         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14727         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
14728         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
14729         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
14730         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14731         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
14732         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
14733         (ia64_pass_by_reference): Rename from
14734         ia64_function_arg_pass_by_reference.
14735         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14736         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14737         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
14738         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
14739         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
14740         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14741         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
14742         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
14743         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
14744         (m32r_pass_by_reference): Adjust prototype.  Make static.
14745         Handle mode sizes correctly.
14746         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14747         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
14748         (m68hc11_function_arg_pass_by_reference): Remove.
14749         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14750         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
14751         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
14752         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14753         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
14754         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
14755         (mips_va_arg): Use pass_by_reference.
14756         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
14757         Handle mode sizes correctly.
14758         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14759         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
14760         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
14761         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
14762         (mmix_pass_by_reference): Rename from
14763         mmix_function_arg_pass_by_reference.
14764         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14765         (FUNCTION_ARG_CALLEE_COPIES): True.
14766         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
14767         (mn10300_pass_by_reference): New.
14768         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14769         (FUNCTION_ARG_CALLEE_COPIES): True.
14770         * config/pa/pa.c (pa_pass_by_reference): New.
14771         (TARGET_PASS_BY_REFERENCE): New.
14772         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14773         (FUNCTION_ARG_CALLEE_COPIES): True.
14774         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
14775         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
14776         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
14777         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14778         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
14779         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
14780         (s390_pass_by_reference): Rename from
14781         s390_function_arg_pass_by_reference.
14782         (s390_function_arg_advance): Don't query pass-by-ref.
14783         (s390_function_arg): Likewise.
14784         (s390_gimplify_va_arg): Use pass_by_reference.
14785         (s390_call_saved_register_used): Likewise.
14786         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14787         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
14788         (shcompact_byref, sh_pass_by_reference): New.
14789         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14790         (SHCOMPACT_BYREF): Remove.
14791         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
14792         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
14793         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
14794         (sparc_gimplify_va_arg): Use pass_by_reference.
14795         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14796         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14797         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
14798         (v850_pass_by_reference): New.
14799         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14800         (FUNCTION_ARG_CALLEE_COPIES): True.
14801         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
14802         FUNCTION_ARG_PASS_BY_REFERENCE docs.
14804 2004-07-14  Richard Henderson  <rth@redhat.com>
14805             Richard Sandiford  <rsandifo@redhat.com>
14807         * config/mips/mips-protos.h (mips_va_arg): Delete.
14808         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
14809         * config/mips/mips.c: Include tree-gimple.h.
14810         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
14811         (mips_arg_info): Remove special handling of must_pass_in_stck args.
14812         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
14813         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
14815 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
14817         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
14818         arguments for COND_EXPR in big-endian adjustment code.
14820 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14822         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
14823         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
14824         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
14825         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
14827 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
14829         PR tree-optimization/16443
14830         * tree-ssa-alias.c: Add more description for
14831         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
14832         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
14833         clobbering of call-clobbered and addressable variables.  If
14834         there are any before aliases have been computed, add them.
14836 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
14838         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
14839         verification.
14841 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
14843         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
14844         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
14845         to the same type.
14847 2004-07-13  Per Bothner  <per@bothner.com>
14849         * collect2.c (main):  Handle --no-demangle and --demangle flags.
14851 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
14853         * Makefile.in (OBJS-common): Add tree-data-ref.o.
14854         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
14855         (tree-data-ref.o): New rule.
14856         * lambda.h: New file.
14857         * tree-data-ref.c: New file.
14858         * tree-data-ref.h: New file.
14859         * tree.c (int_cst_value, tree_fold_gcd): New functions.
14860         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
14862 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
14864         PR target/13926
14865         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
14866         * config/sparc/sparc.c (output_ubranch): New function.
14867         * config/sparc/sparc.md (jump pattern): Use it.
14869 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
14871         PR target/16494
14872         * config/sparc/sparc.c (output_cbranch): Properly guard
14873         the code handling far branches with TARGET_V9.
14874         * config/sparc/sparc.md (length attribute): Document the
14875         side-effect of having a length greater or equal to 3.
14877 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
14878             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
14880         PR target/15186
14881         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
14882         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
14884 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
14885             Martin Sebor  <sebor@roguewave.com>
14887         PR target/12602
14888         * doc/invoke.texi (SPARC options): Document -threads
14889         and -pthreads on Solaris.
14891 2004-07-13  Richard Henderson  <rth@redhat.com>
14893         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
14894         by reference.
14895         (ind_gimplify_va_arg_expr): Remove.
14896         * tree.h (ind_gimplify_va_arg_expr): Remove.
14897         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
14898         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
14899         argsp to be null.
14901         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
14902         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
14903         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
14904         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
14905         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
14907 2004-07-13  Richard Henderson  <rth@redhat.com>
14909         * function.c (pass_by_reference): New.
14910         (assign_parm_find_data_types): Use it.
14911         * calls.c (initialize_argument_information): Likewise.
14912         (emit_library_call_value_1): Likewise.
14913         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14914         * function.h (pass_by_reference): Declare.
14916 2004-07-13  Richard Henderson  <rth@redhat.com>
14918         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
14919         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
14920         * expr.h (MUST_PASS_IN_STACK): Remove.
14921         * system.h (MUST_PASS_IN_STACK): Poison.
14922         * tree.h (must_pass_in_stack_var_size): Declare.
14923         (must_pass_in_stack_var_size_or_pad): Declare.
14924         * calls.c (must_pass_in_stack_var_size): New.
14925         (must_pass_in_stack_var_size_or_pad): Rename from
14926         default_must_pass_in_stack.
14927         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
14928         (TARGET_MUST_PASS_IN_STACK): New.
14929         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
14930         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
14931         (TARGET_MUST_PASS_IN_STACK): New.
14932         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
14933         * config/frv/frv.c (frv_must_pass_in_stack): New.
14934         (TARGET_MUST_PASS_IN_STACK): New.
14935         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
14936         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
14937         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
14938         (ix86_must_pass_in_stack): Make static.
14939         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
14940         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
14941         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
14942         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
14943         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
14944         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
14945         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
14946         (mcore_must_pass_on_stack): Remove.
14947         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
14948         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
14949         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
14950         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
14951         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
14952         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
14953         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
14954         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
14955         (TARGET_MUST_PASS_IN_STACK): New.
14956         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
14957         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
14958         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
14959         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
14960         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
14961         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
14962         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
14963         MUST_PASS_IN_STACK.
14965         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
14966         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
14967         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
14968         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
14969         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
14970         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
14971         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
14972         config/xtensa/xtensa.c: Use target hook.
14974 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
14976         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
14977         * configure: Rebuilt.
14979 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
14981         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
14982         * config/mips/mips.h (mips_reg_names): Don't declare.
14983         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
14984         (TARGET_NAME_REGS): Delete.
14985         (TARGET_SWITCHES): Remove -mrnames.
14986         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
14987         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
14988         in REGISTER_NAMES.
14989         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
14990         (override_options): Remove handling of TARGET_NAME_REGS.
14992 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
14994         * config/mips/mips.h (TARGET_*): Boolify.
14996 2004-07-12  Nick Clifton  <nickc@redhat.com>
14998         * config.gcc: Add sh-*-symbianelf target.
14999         * config/sh/sh.c: Add new target macros:
15000         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
15001         TARGET_CXX_IMPORT_EXPORT_CLASS.
15002         (sh_file_start): Create a definition of the .directive section.
15003         (sh_attribute): Add dllimport and dllexport attributes.
15004         * config/sh/symbian-pre.h: New file.
15005         * config/sh/symbian-post.h: New file.
15006         * config/sh/symbian.c: New file. Contains Symbian specific
15007         functions.
15008         * config/sh/sh-protos.h: Add prototypes for new functions
15009         provided by symbian.c.
15010         * config/sh/t-symbian: New file.
15011         * doc/extend.texi: Document support for dllimport and dllexport
15012         attributes by the sh-symbianelf target.
15014 2004-07-12  James E Wilson  <wilson@specifixinc.com>
15016         * Makefile.in (AR): Use @AR@ not ar.
15017         (NM): New.
15018         (AR_FOR_TARGET): Use $(AR) not ar for native.
15019         (NM_FOR_TARGET): Use $(NM) not nm for native.
15020         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
15021         * configure: Regenerate.
15023 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
15025         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
15026         special case.
15027         (ashldi3_sp64): Likewise.
15029 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15031         PR target/16477
15032         * pa.c (function_arg): Update comment.
15033         * pa.h (BLOCK_REG_PADDING): Define.
15035 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15037         PR tree-optimization/16461
15038         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
15039         arguments of phi nodes.
15041 2004-07-12  Devang Patel  <dpatel@apple.com>
15043         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
15045 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
15047         * function.c (expand_function_start): Ensure r_save is in Pmode.
15048         * calls.c (prepare_call_address): Ensure static_chain_value is
15049         in Pmode.
15050         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
15051         r_save_area are in Pmode.
15052         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
15053         fnaddr, and static_chain are in Pmode.
15055 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
15057         PR target/16445
15058         * config/ia64/ia64.c (bundling): Don't count ignored insns.
15060 2004-07-12  Richard Henderson  <rth@redhat.com>
15062         * target.h (struct gcc_target): Move gimplify_va_arg_expr
15063         next to build_builtin_va_list.
15064         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
15065         * builtins.c (gimplify_va_arg_expr): Likewise.
15066         * gimplify.c (copy_if_shared_r): Likewise.
15068 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
15070         * passes.c (rest_of_decl_compilation): Don't defer call of
15071         assemble_variable if its DECL_RTL is already set.
15073 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
15075         * cfgloop.h (struct loop): Add nb_iterations field.
15076         (current_loops): Declare.
15077         * tree-chrec.c (chrec_not_analyzed_yet,
15078         chrec_dont_know, chrec_known, count_ev_in_wider_type,
15079         chrec_contains_symbols_defined_in_loop): Remove the temporary
15080         hooks.
15081         * tree-flow-inline.h (loop_containing_stmt): New function.
15082         * tree-scalar-evolution.c: Add implementation.
15083         * tree-scalar-evolution.h: Add declarations.
15085 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
15087         PR rtl-optimization/15921
15088         * Makefile.in (global.o): Add recog.h.
15090         * global.c (recog.h): Add the include-clause.
15091         (bb_info): New member earlyclobber.
15092         (allocate_bb_info, free_bb_info): Initialize/finish the new
15093         member.
15094         (earlyclobber_regclass, earlyclobber_regclass_length): The new
15095         global variables.
15096         (check_earlyclobber, regclass_intersect,
15097         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
15098         New functions.
15099         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
15100         (make_accurate_live_analysis): Modify pavin.
15102 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
15104         * tree-cfg.c (find_taken_edge): Statically compute the truth
15105         value of a predicate comparing an SSA_NAME to itself.
15107 2004-07-12  Roger Sayle  <roger@eyesopen.com>
15109         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
15110         rs6000 doesn't have shift-and-add or shift-and-sub instructions
15111         by returning the cost of a multiplication plus an addition.
15113 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
15115         PR tree-optimization/14107
15116         * gimplify.c (gimplify_return_expr): Accept a
15117         RETURN_EXPR with an error argument.
15118         * tree-optimize.c (init_tree_optimization_passes):
15119         Run pass_warn_function_return at -O0.
15121 2004-07-12  Roger Sayle  <roger@eyesopen.com>
15123         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
15124         index entry.
15126 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
15128         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
15129         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
15130         * config/mips/3000.md: Add copyright notice.  Remove automota and
15131         function units; use generic ones instead.  Only define reservations
15132         for things that are different from generic.md.  Extend each clause
15133         to include r3900.
15134         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
15135         * config/mips/mips.md: Include them. Remove define_function_units.
15136         (alu, imuldiv): New automata and units.
15138 2004-07-12  Ben Elliston  <bje@au.ibm.com>
15140         * doc/invoke.texi (Optimize Options): Document -frename-registers
15141         not being enabled by default at -O3.
15143 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15145         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
15146         floating point additions, to keep real immediate constant positive.
15147         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
15148         into X + C, and leave positive real constants as X - C.
15150 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15152         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
15154 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15156         PR tree-optimization/15654
15157         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
15159 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15161         * builtins.c (fold_builtin_fputs): Don't bother converting the
15162         return type to integer_type_node, as we've already checked that
15163         the result will be ignored.
15165         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
15166         that signed addition, subtraction, multiplication, division,
15167         remainder, negation and absolute value may potentially trap.
15169         * fold-const.c (fold_ignored_result): New function to strip
15170         non-side-effecting tree nodes from an expression whose result
15171         is ignored.
15172         (fold_convert): Call fold_ignored_result when casting a value
15173         to VOID_TYPE.
15174         (omit_one_operand):  Call fold_ignored_result on the "omitted"
15175         operand when building a COMPOUND_EXPR.
15176         (pedantic_omit_one_operand): Likewise.
15177         * tree.h (fold_ignored_result): Prototype here.
15178         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
15179         when we're going to ignore the result.
15181 2004-07-11  Richard Henderson  <rth@redhat.com>
15183         PR tree-opt/16383
15184         * tree-ssa-ccp.c (fold_stmt_r): Split out...
15185         * tree.c (fields_compatible_p, find_compatible_field): ... new.
15186         * tree.h (fields_compatible_p, find_compatible_field): Declare.
15187         * tree-sra.c (sra_hash_tree): Hash fields by offset.
15188         (sra_elt_eq): Use fields_compatible_p.
15189         (generate_one_element_ref): Use find_compatible_field.
15191 2004-07-11  Richard Henderson  <rth@redhat.com>
15193         PR tree-opt/16422
15194         * tree-sra.c (generate_one_element_init): New.
15195         (generate_element_init): Use it.
15196         (scalarize_init): Push/pop gimplify context around it.
15197         (find_new_referenced_vars_1, find_new_referenced_vars): New.
15198         * gimplify.c (gimplify_expr): Allow SSA_NAME.
15200 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15202         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
15203         combine.c's combine_insn_cost.
15204         * rtl.h (insn_rtx_cost): Prototype here.
15205         * combine.c (combine_insn_cost): Delete function.
15206         (combine_validate_cost): Update callers of combine_insn_cost to
15207         call insn_rtx_cost instead.
15208         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
15209         requesting the rtx_cost of call and/or jump instructions.
15211         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
15212         rtx_cost directly.  Don't request/use the cost of call or jump
15213         instructions.  Return -1 if the cost of any instruction can't be
15214         determined (or the BB contains a function call).
15215         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
15216         -1 (i.e. can't determine the cost of any instruction or the basic
15217         block contains a subroutine call).
15218         (find_if_case_2): Likewise.
15220 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15222         * rs6000.c (struct processor_costs): Change semantics of fields to
15223         include the COST_N_INSNS scaling, and update all initializers.
15224         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
15225         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
15226         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
15227         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
15229 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15231         * LANGUAGES: Remove obsolete information.
15233 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
15235         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
15236         SIGBUS signal frames, the PSW address points *to* the faulting
15237         instruction, not after it.
15239 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
15241         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
15242         added to TLS symbol addresses.
15244 2004-07-11  Richard Henderson  <rth@redhat.com>
15246         * expmed.c (init_expmed): Use stack-local structures for
15247         temporary rtl.  Don't recognize shifts.
15249 2004-07-11  Richard Henderson  <rth@redhat.com>
15251         * expr.c (store_expr): Don't fiddle subreg promotion for types
15252         with precision smaller than the mode.
15254 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15256         * tree.h (all_types_permanent): Remove.
15258 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15260         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
15261         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
15262         * langhooks.c (lhd_clear_binding_stack): Remove.
15263         * langhooks-def.h (lhd_clear_binding_stack,
15264         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
15265         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
15266         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
15267         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
15268         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
15269         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
15270         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
15271         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
15272         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
15273         * tree.h (poplevel): Don't declare.
15274         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
15275         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
15276         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
15277         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
15278         Remove.
15280 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15282         PR tree-optimization/16437
15283         * c-common.c (shorten_compare): Don't mark result of conversion to
15284         narrower signed type as overflowing.
15285         * fold-const.c (decode_field_reference): Determine whether
15286         signedness comes from outer type using precision rather than size.
15288 2004-07-11  Phil Edwards  <phil@codesourcery.com>
15290         * configure.ac:  Alphabetize --enable-checking list, add
15291         missing valgrind entry.
15292         * configure:  Regenerate.
15294 2004-07-11  Phil Edwards  <phil@codesourcery.com>
15296         * doc/install.texi (Testing):  Fix syntax in "make check" example.
15298 2004-07-10  James E Wilson  <wilson@specifixinc.com>
15300         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
15302 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15304         PR rtl-optimization/16001
15305         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
15306         niter_expr.
15308 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
15310         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
15312 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
15313             James Morrison  <phython@gcc.gnu.org>
15315         * doc/contrib.texi (Contributors): Add gfortran contributors and
15316         fix a couple of typos.
15318 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15320         PR rtl-optimization/15387
15321         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
15322         to incoming args space correctly.
15324 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15326         * pa.c (output_indirect_call): Only use %r2 as the link register in
15327         indirect calls with the long PA 2.0 pc-relative branch.
15329 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
15331         * config/i386/i386.c (override_options): Pick a 64-bit CPU
15332         for the default tuning if TARGET_64BIT.
15334 2004-07-10  Richard Henderson  <rth@redhat.com>
15336         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
15337         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
15339 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
15341         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
15342         * expmed.c (store_bit_field, extract_bit_field): Remove last
15343         argument.
15344         * builtins.c (expand_builtin_signbit): Adjust callers.
15345         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
15346         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
15347         * ifcvt.c (noce_emit_move_insn): Likewise.
15348         * stmt.c (expand_return): Likewise.
15349         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
15350         store_field, expand_expr_real_1): Likewise.
15352 2004-07-10  Richard Henderson  <rth@redhat.com>
15354         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
15356 2004-07-09  Mike Stump  <mrs@apple.com>
15358         * config/darwin.c (no_dead_strip): Add.
15359         (HAVE_DEAD_STRIP): Add.
15360         (darwin_emit_unwind_label): Ensure that we don't dead code strip
15361         the .eh label.
15363 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15365         * tree-ssa-loop-im.c: New file.
15366         * Makefile.in (tree-ssa-loop-im.o): Add.
15367         * cfgloop.c (superloop_at_depth): New function.
15368         * cfgloop.h (superloop_at_depth): Declare.
15369         * common.opt (ftree-lim): New flag.
15370         * expr.c (array_ref_up_bound): New function.
15371         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
15372         * timevar.def (TV_LIM): New timevar.
15373         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
15374         computing immediate uses of a phi node.
15375         * tree-flow.h (struct tree_ann_common_d): Add aux field.
15376         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
15377         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
15378         * tree-pass.h (pass_lim): Declare.
15379         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
15380         functions.
15381         (pass_lim): New pass structure.
15382         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
15383         * tree.c (in_array_bounds_p): New function.
15384         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
15385         (in_array_bounds_p, array_ref_up_bound): Declare.
15386         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
15387         * doc/passes.texi (tree-ssa-loop-im.c): Document.
15389 2004-07-09  Richard Henderson  <rth@redhat.com>
15391         * builtins.c (expand_builtin_stpcpy): Don't modify len.
15393         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
15394         with prejudice.
15396 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
15398         * flags.h: Delete redundant prototypes that are being generated
15399         in options.h from common.opt.
15400         * common.opt: Add in the expository comments formerly in flags.h.
15402 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15404         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
15405         available for use only when TARGET_MMX/_SSE is set, and check for
15406         variable argument function if any register count is non-zero.
15407         (function_arg): Correctly suppress repeated warnings for passing SSE
15408         vectors are arguments without SSE enabled.
15409         (ix86_function_arg_boundary): Without SSE enabled, the use of what
15410         would be SSE register modes does no longer influence the alignment.
15412 2004-07-09  Richard Henderson  <rth@redhat.com>
15414         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
15415         Always align upward to arg boundary.  Use size_in_bytes/round_up.
15416         Maintain type-correctness of constants.
15417         * stor-layout.c (round_up, round_down): Special-case powers of 2.
15419 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
15421         * config/sparc/sparc.c (*_costs): Scale instruction costs
15422         by COSTS_N_INSNS.
15423         (sparc_rtx_costs): Adjust as appropriate.
15425 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15427         * config/i386/mm3dnow.h: New.
15428         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
15430 2004-07-09  Richard Henderson  <rth@redhat.com>
15432         * simplify-rtx.c (simplify_const_relational_operation): Only
15433         look at bounds of scalar integers.
15435 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15437         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
15439 2004-07-09  Andrew Pinski  <apinski@apple.com>
15441         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
15442         always referenced.
15443         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
15444         UOBJC_METACLASS_decl.
15446 2004-07-09  James E Wilson  <wilson@specifixinc.com>
15448         PR target/16364
15449         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
15450         do return a parallel if hfa_mode == XFmode and mode == TImode.
15452 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15454         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
15455         permissible for unary plus.
15457 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15459         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
15460         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
15461         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
15462         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
15463         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
15464         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
15465         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
15466         (BUILTIN_xxxIMAX): New.
15467         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
15468         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
15469         BUILT_IN_PARITYIMAX.
15471 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
15473         * config/sparc/sparc.h (processor_costs): Define.
15474         (sparc_costs): Declare.
15475         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
15476         hypersparc_costs, sparclet_costs, ultrasparc_costs,
15477         ultrasparc3_costs): New.
15478         (sparc_override_options): Set sparc_costs as appropriate.
15479         (sparc_rtx_costs): Use sparc_costs instead of messy
15480         conditionals.
15482 2004-07-09  Steven Bosscher  <stevenb@suse.de>
15484         * doc/md.texi (Processor pipeline description): Mention that
15485         the old pipeline description is deprecated.
15487         * config/rs6000/7450.md (automaton ppc7450): Split up, move
15488         mciu_7450 function unit to...
15489         (automaton ppc7450mciu): ...new automaton.
15491         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
15492         (schedule_block): Don't consider inserting bubbles.
15493         (sched_init): Don't initialize DFA bubbles.
15494         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
15495         TARGET_SCHED_DFA_BUBBLE): Remove.
15496         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
15497         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
15498         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
15500         * stmt.c (conditional_context): Remove prototype.
15501         * tree.h (conditional_context): Remove.
15502         * tree-cfg.c (pre_insert_on_edge): Remove.
15504         * c-common.h (c_expand_asm_operands): Remove prototype.
15505         * c-typeck.c (c_expand_asm_operands): Remove.
15507 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15509         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
15510         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
15511         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
15512         and V8QI are class SSE. All sufficiently small remaining vector modes
15513         must be passed in one or two integer registers.
15514         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
15515         returned in memory.
15516         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
15517         __builtin_ia32_pmuludq128 have non-uniform argument and return types
15518         and must thus be handled explicitly.
15519         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
15520         MMX and XMM regs.
15521         (movv8qi_internal, movv4hi_internal, movv2si_internal,
15522         movv2sf_internal): Permit moving between MMX and XMM registers (since
15523         MMX areguments and return values are passed in XMM registers).
15524         (sse2_umulsidi3): Correct type and mode.
15526 2004-07-09  Richard Henderson  <rth@redhat.com>
15528         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
15530 2004-07-09  Eric Christopher  <echristo@redhat.com>
15532         * config/rs6000/40x.md: Split into two automatons.
15534 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
15535             Andrew Pinski  <apinski@apple.com>
15537         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
15538         on when we have more than one input file.
15539         (c_common_parse_file): Restore loop over all input files.
15540         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
15542         * c-decl.c (set_type_context): New function.
15543         (pop_scope): Use it to set context of types.  When we
15544         encounter a TYPE_DECL, set the context of the attached type too.
15545         (pop_file_scope): Don't call cpp_undef_all here.
15546         (diagnose_mismatched_decls): Do not complain about a second
15547         definition of an 'extern inline' function if it's not in the
15548         same translation unit.  Do not complain about inline
15549         declaration after use if the use was in a different
15550         translation unit.
15551         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
15552         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
15553         the external scope.
15554         (pushdecl_top_level): Likewise.
15555         (grokdeclarator): Clarify what is going on with setting
15556         DECL_EXTERNAL on function types, a little.
15557         (c_write_global_declarations): Don't do anything if
15558         -fsyntax-only or errors have been encountered.
15560 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
15562         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
15564 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15566         PR target/16459
15567         * pa.c (output_indirect_call): Use %r2 as the link register when
15568         calling $$dyncall with a pc-relative branch.
15570 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
15572         * doc/install.texi (Binaries): Mention OpenPKG.
15574 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
15576         Fix PR tree-optimization/15555
15577         * tree-dfa.c (dump_variable): If the variable is a pointer
15578         SSA_NAME, also dump its points-to information.
15579         * tree-flow.h (struct ptr_info_def): Add field
15580         is_dereferenced.
15581         (dump_points_to_info_for): Declare.
15582         (debug_points_to_info_for): Declare.
15583         * tree-optimize.c (init_tree_optimization_passes): Add a
15584         second alias analysis pass after DOM2.
15585         Move pass_del_pta to a later spot.
15586         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
15587         create a name tags when we find a dereferenced pointer.  Just
15588         mark the pointer dereferenced.
15589         (collect_points_to_info_for): Move code to clear points-to
15590         information to create_name_tags.
15591         (create_name_tags): New function.
15592         (compute_flow_sensitive_aliasing): Call it.
15593         (setup_pointers_and_addressables): Mark type tags for renaming
15594         here instead of ...
15595         (create_memory_tag): ... here.
15596         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
15597         (dump_points_to_info_for): Declare extern.
15598         (debug_points_to_info_for): New function.
15600 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
15602         * config/arc/arc.md: Switch to DFA-based scheduler description.
15603         * config/arc/arc.c: Switch to DFA-based scheduler description.
15605 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
15607         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
15608         pointer.
15610 2004-07-09  Richard Henderson  <rth@redhat.com>
15612         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
15613         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15614         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
15615         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
15617         * config/v850/v850-protos.h (v850_va_arg): Remove.
15618         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15619         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
15620         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
15621         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
15622         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
15624 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
15626         PR target/12133
15627         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
15628         and DImode to use +/-4k offset.
15630 2004-07-09  Richard Henderson  <rth@redhat.com>
15632         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
15633         Remove.
15634         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15635         (xstormy16_gimplify_va_arg_expr): Rewrite from
15636         xstormy16_expand_builtin_va_arg.
15637         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
15639         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
15640         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
15642         * config/sh/sh-protos.h (sh_va_arg): Remove.
15643         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15644         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
15645         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
15647         * config/pa/pa-protos.h (hppa_va_arg): Remove.
15648         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15649         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
15650         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
15652         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
15653         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15654         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
15655         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
15657 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15659         * config/sparc/sparc.md (return): Rewrite length formula.
15660         * config/sparc/sparc.c (output_return): Pass 1 as 5th
15661         argument to final_scan_insn when in a delay slot.
15662         (output_sibcall): Likewise.
15664 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
15666         * arm.c (arm_cpp_interwork): New variable.
15667         (arm_override_options): Set it if TARGET_INTERWORK was on the command
15668         line.
15669         * arm.h (arm_cpp_interwork): Declare it.
15670         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
15671         __THUMB_INTERWORK__ in the preprocessor.
15673 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
15675         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
15677 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15679         PR target/16416
15680         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
15681         Override default settings to account for -m32 and -m64.
15683 2004-07-08  Randolph Chung  <tausq@debian.org>
15685         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
15687 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
15689         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
15690         before comparing it as such.
15692 2004-07-08  Richard Henderson  <rth@redhat.com>
15694         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
15695         temporary.  Use bit arithmetic to align.
15697 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
15699         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
15700         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
15701         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
15702         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
15703         add_labels_and_missing_jumps, find_jump_block,
15704         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
15705         Likewise.
15706         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
15707         link_btr_uses, move_btr_def): Likewise.
15708         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
15709         expand_builtin_expect_jump): Likewise.
15710         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
15711         * calls.c (expand_call, emit_library_call_value_1): Likewise.
15712         * cfganal.c (forwarder_block_p): Likewise.
15713         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
15714         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
15715         find_bb_boundaries): Likewise.
15716         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
15717         merge_blocks_move_predecessor_nojumps,
15718         merge_blocks_move_successor_nojumps, insns_match_p,
15719         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
15720         try_optimize_cfg): Likewise.
15721         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
15722         * cfglayout.c (skip_insns_after_block, label_for_bb,
15723         record_effective_endpoints, insn_locators_initialize,
15724         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
15725         * cfgmainloop.c (create_loop_notes): Likewise.
15726         * cfgrtl.c (delete_insn, delete_insn_chain,
15727         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
15728         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
15729         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
15730         redirect_branch_edge, force_nonfallthru_and_redirect,
15731         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
15732         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
15733         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
15734         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
15735         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
15736         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
15737         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
15738         * combine.c (combine_instructions, can_combine_p, try_combine,
15739         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
15740         distribute_notes, distribute_links, insn_cuid): Likewise.
15741         * cse.c (fold_rtx, cse_insn, cse_around_loop,
15742         invalidate_skipped_block, cse_set_around_loop,
15743         cse_end_of_basic_block, cse_main, cse_basic_block,
15744         cse_condition_code_reg): Likewise.
15745         * cselib.c (cselib_process_insn): Likewise.
15746         * ddg.c (create_ddg): Likewise.
15747         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
15748         Likewise.
15749         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
15750         gen_label_die, dwarf2out_var_location): Likewise.
15751         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
15752         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
15753         last_call_insn, active_insn_p, next_label, prev_label,
15754         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
15755         add_insn_before, remove_insn, add_function_usage_to,
15756         reorder_insns, find_line_note, remove_unnecessary_notes,
15757         emit_insn_after_1, classify_insn): Likewise.
15758         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
15759         connect_post_landing_pads, sjlj_mark_call_sites,
15760         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
15761         can_throw_internal, can_throw_external, set_nothrow_function_flags,
15762         convert_to_eh_region_ranges): Likewise.
15763         * explow.c (optimize_save_area_alloca): Likewise.
15764         * expr.c (expand_expr_real): Likewise.
15765         * final.c (insn_current_reference_address, compute_alignments,
15766         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
15767         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
15768         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
15769         propagate_block_delete_insn, propagate_one_insn,
15770         init_propagate_block_info, propagate_block, libcall_dead_p,
15771         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
15772         Likewise.
15773         * function.c (instantiate_virtual_regs, reorder_blocks_1,
15774         expand_function_start, expand_function_end, contains,
15775         thread_prologue_and_epilogue_insns,
15776         reposition_prologue_and_epilogue_notes): Likewise.
15777         * gcse.c (constprop_register, bypass_conditional_jumps,
15778         insert_insn_end_bb, gcse_after_reload): Likewise.
15779         * genemit.c (gen_expand, gen_split): Likewise.
15780         * genpeep.c (gen_peephole, main): Likewise.
15781         * global.c (build_insn_chain): Likewise.
15782         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
15783         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
15784         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
15785         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
15786         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
15787         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
15788         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
15789         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
15790         dead_or_predicable): Likewise.
15791         * integrate.c (try_constants): Likewise.
15792         * jump.c (rebuild_jump_labels, cleanup_barriers,
15793         purge_line_number_notes, init_label_info, mark_all_labels,
15794         squeeze_notes, get_label_before, get_label_after,
15795         reversed_comparison_code_parts, simplejump_p, pc_set,
15796         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
15797         delete_barrier, delete_prior_computation, delete_computation,
15798         delete_related_insns, delete_for_peephole, redirect_jump):
15799         Likewise.
15800         * lcm.c (optimize_mode_switching): Likewise.
15801         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
15802         Likewise.
15803         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
15804         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
15805         * loop-iv.c (simplify_using_assignment): Likewise.
15806         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
15807         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
15808         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
15809         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
15810         check_insn_for_givs, check_final_value, update_giv_derive,
15811         basic_induction_var, product_cheap_p, check_dbra_loop,
15812         loop_insn_first_p, last_use_this_basic_block,
15813         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
15814         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
15815         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
15816         sms_schedule_by_order): Likewise.
15817         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
15818         * postreload.c (reload_cse_simplify_operands, reload_combine,
15819         reload_cse_move2add): Likewise.
15820         * predict.c (can_predict_insn_p, estimate_probability,
15821         expected_value_to_br_prob, process_note_predictions): Likewise.
15822         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
15823         * profile.c (branch_prob): Likewise.
15824         * ra-build.c (live_out_1, livethrough_conflicts_bb,
15825         detect_webs_set_in_cond_jump): Likewise.
15826         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
15827         ra_print_rtl_with_bb): Likewise.
15828         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
15829         * recog.c (next_insn_tests_no_inequality, find_single_use,
15830         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
15831         * reg-stack.c (next_flags_user, record_label_references,
15832         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
15833         compensate_edge, convert_regs_1): Likewise.
15834         * regclass.c (scan_one_insn): Likewise.
15835         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
15836         regmove_optimize, fixup_match_1, single_set_for_csa,
15837         combine_stack_adjustments_for_block): Likewise.
15838         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
15839         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
15840         find_equiv_reg): Likewise.
15841         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
15842         reload_as_needed, emit_input_reload_insns, do_output_reload,
15843         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
15844         Likewise.
15845         * reorg.c (find_end_label, emit_delay_sequence,
15846         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
15847         get_jump_flags, rare_destination, mostly_true_jump,
15848         try_merge_delay_insns, redundant_insn, own_thread_p,
15849         fill_simple_delay_slots, fill_slots_from_thread,
15850         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
15851         dbr_schedule): Likewise.
15852         * resource.c (find_basic_block, next_insn_no_annul,
15853         find_dead_or_set_registers, mark_target_live_regs): Likewise.
15854         * rtl.h (RTX_PREV): Likewise.
15855         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
15856         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
15857         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
15858         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
15859         tablejump_p, computed_jump_p, insns_safe_to_move_p,
15860         find_first_parameter_load, can_hoist_insn_p): Likewise.
15861         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
15862         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
15863         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
15864         schedule_ebbs): Likewise.
15865         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
15866         is_conditionally_protected, can_schedule_ready_p,
15867         add_branch_dependences, debug_dependencies): Likewise.
15868         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
15869         Likewise.
15870         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
15871         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
15872         set_dominates_use, ujump_to_loop_cont): Likewise.
15873         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
15874         * varasm.c (output_constant_pool_1): Likewise.
15876 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15878         * tree-scalar-evolution.c: New file.
15879         * tree-scalar-evolution.h: New file.
15880         * tree-ssa-loop-niter.c: New file.
15881         * Makefile.in (SCEV_H): New.
15882         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
15883         * cfgloop.h (struct loop): Add bounds field.
15884         * tree-flow.h (struct tree_niter_desc): New type.
15885         (number_of_iterations_cond, number_of_iterations_exit,
15886         loop_niter_by_eval, find_loop_niter_by_eval,
15887         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
15888         free_numbers_of_iterations_estimates): Declare.
15889         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
15890         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
15891         * doc/invoke.texi (max-iterations-to-track): Document.
15893 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15895         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
15896         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
15897         (MODE_AFTER): Add cast appropriately.
15898         * config/sh/sh.md (movdi splitter): Likewise.
15899         (casesi_worker_2): Add const qualifier appropriately.
15900         (eh_return): Remove unused variable.
15901         (insv): Initialize v;
15903 2004-07-08  Richard Henderson  <rth@redhat.com>
15905         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
15906         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15907         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
15908         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
15909         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
15911         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
15912         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15913         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
15914         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
15916         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
15917         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15918         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
15919         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
15921         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
15922         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15923         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
15924         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
15926         * config/i860/i860-protos.h (i860_va_arg): Remove.
15927         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15928         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
15929         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
15931 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
15933         * system.h: Prototype getpagesize if missing.
15934         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
15935         * configure: Regenerate.
15936         * config.in: Regenerate.
15938 2004-07-08  Richard Henderson  <rth@redhat.com>
15940         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
15941         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15942         (fr30_gimplify_va_arg_expr): New.
15943         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
15944         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
15946 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
15948         PR target/16414
15949         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
15950         of asm_noperands result.
15952 2004-07-08  Richard Henderson  <rth@redhat.com>
15954         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
15955         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15956         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
15957         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
15959 2004-07-08  Richard Henderson  <rth@redhat.com>
15961         * builtins.c (ind_gimplify_va_arg_expr): New.
15962         * tree.h (ind_gimplify_va_arg_expr): Declare.
15963         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
15965 2004-07-08  Jan Beulich  <jbeulich@novell.com>
15967         * expmed.c (extract_bit_field): Correct condition to use vec_extract
15968         patterns also on vector elements other than the first one.
15969         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
15970         break statements.
15972 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
15974         * config/rs6000/darwin-ldouble.c: Correct reference
15975         to the Linnainmaa paper.
15977 2004-07-08  Richard Henderson  <rth@redhat.com>
15979         * config/arc/arc-protos.h (arc_va_arg): Remove.
15980         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15981         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
15982         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
15984         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
15985         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15986         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
15987         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
15989 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15991         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
15993 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
15995         * c-decl.c (static_ctors, static_dtors): Make static.
15996         (pop_file_scope): Call c_common_write_pch and
15997         cgraph_finalize_compilation_unit here.
15998         (build_cdtor): Moved here from c-objc-common.c; simplify.
15999         (c_write_global_declarations_1): Clarify comment.
16000         (c_write_global_declarations): Close the external scope before
16001         doing anything else.  Call build_cdtor, cgraph_optimize, and
16002         mudflap_finish_file here.
16003         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
16004         Clarify comment.
16005         * c-objc-common.c: No need to include cgraph.h.
16006         (build_cdtor): Moved to c-decl.c.
16007         (c_objc_common_finish_file): Delete.
16008         * c-tree.h: Update to match.
16009         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
16010         (generate_static_references): Set TREE_USED before calling finish_decl.
16011         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
16012         on the static_instances_decl.
16014 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
16016         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
16017         decls when there is only one input translation unit.
16018         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
16019         change of 2004-07-05; do not treat declarations with
16020         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
16021         * opts.c (cur_in_fname): Delete.
16022         * opts.h: Likewise.
16023         * tree.c: Revert changes of 2004-07-05; no special treatment
16024         for TRANSLATION_UNIT_DECLs.
16025         * Makefile.in (tree.o): Update dependencies.
16027 2004-07-08  Roger Sayle  <roger@eyesopen.com>
16029         * builtins.c (fold_builtin_strcpy): Merge functionality from
16030         simplify_builtin_strcpy.  Add additional len argument.  No longer
16031         static.  Remove function prototype.
16032         (fold_builtin_strncpy): Likewise integrate functionality from
16033         simplify_builtin_strncpy.  Add additional slen argument.  No
16034         longer static.  Remove function prototype.
16035         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
16036         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
16037         types of "ignore" and "unlocked" parameters to bool.
16038         (fold_builtin_1):  Add additional ignore argument.  Call renamed
16039         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
16040         builtins.  Update arguments to fold_builtin_strncpy and
16041         fold_builtin_strcpy.  Add function prototype.
16042         (fold_builtin): Add additional Boolean ignore argument to pass
16043         to fold_builtin_1.
16044         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
16045         and fold_builtin_strncpy instead of simplify_builtin_fputs,
16046         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
16048         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
16049         simplify_builtin_strncpy): Delete function prototypes.
16050         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
16051         fold_builtin_strncpy): Add function prototypes here.
16052         (fold_builtin): Update function prototype with new "bool ignore".
16054         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
16055         (ccp_fold_builtin):  Update call to fold_builtin.  Call
16056         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
16057         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
16058         simplify_builtin_strncpy respectively.
16059         * fold-const.c (fold): Update call to fold_builtin.
16061 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
16063         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
16064         to strcpy.
16066         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
16067         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
16068         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
16069         * calls.c: Remove ifdefs of macros above.
16070         * functions.c: Likewise.
16071         * expr.c: Likewise.
16073 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16075         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
16076         (arch attribute): Delete.
16077         (current_function_calls_alloca attribute): Rename into calls_alloca.
16078         (calls_eh_return): New attribute.
16079         (leaf_function): Likewise.
16080         (length attribute): Fix formula for sibcalls.
16081         (return insn): Correctly compute the 'length' attribute.
16082         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
16084 2004-07-08  Richard Henderson  <rth@redhat.com>
16086         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
16087         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
16088         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
16089         * tree-eh.c (lower_eh_constructs_1): Likewise.
16090         * tree-sra.c (sra_walk_modify_expr): Likewise.
16091         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16092         (eliminate_unnecessary_stmts): Likewise.
16093         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
16094         * tree-tailcall.c (optimize_tail_call): Likewise.
16095         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
16097 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
16098             Jakub Jelinek  <jakub@redhat.com>
16100         * config/i386/i386.c (override_options): Enable
16101         SSE prefetches with -mtune, as long as we are
16102         compiling for i686 or higher.  All i686 processors
16103         accept SSE prefetches as NOPS, some i586's don't.
16105 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16107         PR target/10567
16108         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
16110 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
16112         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
16113         the handling of clobbering ASM_EXPRs.
16115 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16117         PR target/16430
16118         * config/sparc/sparc.c (function_value): In 64-bit mode,
16119         return the aggregates larger than 16 bytes like unions.
16121 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16123         PR target/16199
16124         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
16125         'temp' is zero, generate new pseudos as needed and emit the
16126         sequence of insns in single-assignment form.  Resync comments
16127         with code.
16128         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
16129         function before reload.
16131 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
16133         * vec.c (vec_assert_fail): Remove duplicate 'function'.
16135         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
16137         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
16138         Allocation is signed.
16139         (VEC_reserve): Return flag, allocation is signed.
16141 2004-07-08  Richard Henderson  <rth@redhat.com>
16143         * tree-ssa-ccp.c (fold_stmt): Get type directly from
16144         OBJ_TYPE_REF_OBJECT.
16146 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
16147             Neil Booth  <neil@daikokuya.co.uk>
16149         PR c/2511
16150         PR c/3325
16151         * c-decl.c (finish_struct): Ensure bit-fields are given the
16152         correct type.
16153         * c-common.c (c_common_signed_or_unsigned_type): For C, require
16154         the precision to match as well as the mode.
16155         * expr.c (reduce_to_bit_field_precision): New function.
16156         (expand_expr_real_1): Reduce expressions of bit-field type to
16157         proper precision.
16158         * langhooks.h (reduce_bit_field_operations): New hook.
16159         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
16160         Define.
16161         * c-lang.c, objc/objc-lang.c
16162         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
16163         * objc/objc-act.c (check_ivars): Convert types to bit-field types
16164         before checking.
16165         * tree.c (build_nonstandard_integer_type): New function.
16166         * tree.h (build_nonstandard_integer_type): New prototype.
16167         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
16168         conversions between integer and boolean types as useless.
16170 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
16172         * c-common.c (c_common_nodes_and_builtins): Do not
16173         create __builtin_ptrdiff_t and __builtin_size_t.
16175 2004-07-08  Andrew Pinski  <apinski@apple.com>
16177         * Makefile.in (libbackend.o): Add -combine to the gcc
16178         command line.
16180 2004-07-08  Nick Clifton  <nickc@redhat.com>
16182         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
16183         Set to -Os.
16185 2004-07-08  Richard Henderson  <rth@redhat.com>
16187         * except.c (expand_eh_region_start, expand_eh_region_end,
16188         expand_eh_handler, expand_eh_region_end_cleanup,
16189         expand_start_all_catch, expand_start_catch, expand_end_catch,
16190         expand_end_all_catch, expand_eh_region_end_allowed,
16191         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
16192         expand_eh_region_end_fixup): Remove.
16193         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
16194         cleanups, outer_cleanups, label_chain, exception_region.
16195         (struct goto_fixup): Remove stack_level, cleanup_list_list.
16196         (struct label_chain): Remove.
16197         (struct stmt_status): Remove x_stack_block_stack.
16198         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
16199         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
16200         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
16201         end_cleanup_deferral, last_cleanup_this_contour,
16202         containing_blocks_have_cleanups_or_stack_level,
16203         any_pending_cleanups): Remove.
16204         (expand_null_return_1): Take no arguments.
16205         (expand_label, expand_naked_return, expand_return,
16206         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
16207         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
16208         expand_end_case_type): Don't use any of them.
16209         * calls.c (expand_call): Likewise.
16210         * dojump.c (do_jump): Likewise.
16211         * function.c (expand_function_end): Likewise.
16212         * expr.c (store_expr, expand_expr_real_1): Likewise.
16213         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
16214         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
16215         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
16216         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
16217         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
16218         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
16219         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
16220         for WITH_CLEANUP_EXPR.
16221         (gimple_push_cleanup): Likewise.
16222         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
16223         * print-tree.c (print_node): Likewise.
16224         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
16225         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
16226         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
16227         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
16228         (GOTO_SUBROUTINE_EXPR): Remove.
16229         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
16230         (DECL_TOO_LATE): Remove.
16231         * except.h, tree.h: Update decls.
16233 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
16235         * explow.c (optimize_save_area_alloca): Do not accept parameters.
16236         * passes.c (rest_of_handle_final): Handle symout.
16237         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
16238         Push timevar here.
16239         (rest_of_handle_sched): Break out SMS.  Remove ifs for
16240         flag_schedule_insns and flag_modulo_sched.
16241         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
16242         collect at the end.
16243         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
16244         (rest_of_handle_partition_blocks, rest_of_handle_sms,
16245         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
16246         rest_of_handle_mode_switching, rest_of_handle_jump,
16247         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
16248         rest_of_handle_jump2, rest_of_handle_postreload,
16249         rest_of_handle_flow2, rest_of_clean_state,
16250         rest_of_handle_shorten_branches,
16251         rest_of_handle_prologue_epilogue,
16252         rest_of_handle_branch_target_load_optimize): New.
16253         (rest_of_compilation): Call the above.  Remove ggc_collect
16254         calls moved to rest_of_handle_*.
16255         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
16257         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
16258         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
16259         * except.h (set_nothrow_function_flags): Update comment.
16260         * function.c (current_function_nothrow): Remove.
16261         * output.h (current_function_nothrow): Remove.
16262         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
16263         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
16265 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16267         PR bootstrap/16326
16268         * reorg.c: Revert 2004-06-30 change.
16269         (find_end_label): If HAVE_epilogue and !HAVE_return,
16270         return 0 instead of creating a label at the end of the insn chain.
16271         (optimize_skip): Account for the failure mode of find_end_label.
16272         (fill_simple_delay_slots): Likewise.
16273         (fill_slots_from_thread): Likewise.
16274         (relax_delay_slots): Likewise.
16276 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
16278         * tree-flow.h (addressable_vars): Declare.
16279         * tree-ssa-alias.c (addressable_vars): Define.
16280         (setup_pointers_and_addressables): Add addressable variables
16281         to addressable_vars.
16282         * tree-ssa-operands.c (get_stmt_operands): Move
16283         handling of ASM_EXPRs ...
16284         (get_asm_expr_operands): ... here.
16285         When the ASM_EXPR clobbers memory, also clobber addressable
16286         variables.
16287         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
16288         (delete_tree_ssa): Reset addressable_vars.
16290 2004-07-07  Jan Beulich  <jbeulich@novell.com>
16291             Richard Henderson  <rth@redhat.com>
16293         * varasm.c (assemble_variable): Use assemble_zeros for
16294         zero-initialized variables.
16295         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
16296         for SECCAT_BSS and SECCAT_TBSS.
16298 2004-07-07  Jan Beulich  <jbeulich@novell.com>
16300         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
16302         * expmed.c (emit_store_flag): Also special-case double-word
16303         (in-)equality comparison against -1.
16305         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
16306         passing arguments the containers for which are registers.
16308         * calls.c (emit_library_call_value_1): Use mode of function parameter
16309         rather than that of argument since constants have none.
16311 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
16313         Introduce H8SX support.
16314         * expr.c (expand_strcpy): Renamed and moved to...
16315         * builtins.c (expand_movstr): ... here.  Tweak.
16316         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
16317         computed or has side effects.
16318         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
16319         unused, or if mempcpy fails.  Adjust the return value in the
16320         latter case.  Use movstr if everything else fails.
16321         * doc/md.texi (movstr): Document.
16322         (movmemM, clrmemM): Fix explanation of memory block operands.
16323         * config/h8300/h8300.md (stpcpy): Renamed to...
16324         (movstr): ... this.  Adjust.
16325         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
16326         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
16327         movmem* and clrstr* to clrmem*.
16328         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
16329         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
16330         GENERAL_REGS, always.
16331         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
16332         getting the stack pointer as addr.
16333         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
16334         from general_operand_dst.
16335         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
16336         variant of...
16337         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
16338         instead of requiring it to match only before reload.
16339         (stpcpy_internal_normal): New, normal-mode variant of...
16340         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
16341         `D' instead of requiring it to match only before reload.
16342         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
16343         mode argument.
16344         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
16345         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
16346         h8300_get_index.
16347         * config/h8300/h8300.md (attr type): Add call.
16348         (attr can_delay): If type is call, set it no.
16349         (call, call_value): Set type to call.
16350         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
16351         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
16352         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
16353         * tree.c (get_narrower): Don't narrow integral types into
16354         non-integral types.
16355         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
16356         frame_size *before* the first use.
16357         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
16358         on input.
16359         (peephole2): Don't widen instructions that push SP.  Move
16360         decrement of SP to the end of all stm-generating peepholes.
16361         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
16362         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
16363         and OR to set it to all ones.
16364         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
16365         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
16366         (call, call_value): Set can_delay to "no".
16367         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
16368         * config/h8300/h8300.md (extzv): Make subreg check more robust.
16369         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16370         * config/h8300/h8300.md (*brabit): Remove.
16371         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
16372         zero_extract.  Use bit_memory_operand as the predicate for
16373         operand 1 and 'WU' as the constraint.  Check the difference
16374         between the base length and the final one when deciding which
16375         type of branch to use.
16376         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16377         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
16378         Use convert_move to extend the result for TARGET_H8300SX.  Check
16379         for QImode memory references.  Optimize the case where the
16380         destination is a paradoxical subreg.
16381         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16382         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
16383         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
16384         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16385         * config/h8300/h8300.md: Include mova.md
16386         (length_table): Add mova and mova_zero.
16387         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
16388         after all constant addresses for '%R', '%X', '%T' and '%S'.
16389         (h8300_mova_length): New function.
16390         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
16391         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
16392         dependencies for s-config, etc.
16393         * config/h8300/gemova.sh: New file.
16394         * config/h8300/mova.md: Generated.
16395         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
16396         * config/h8300/h8300.c (h8300_bitfield_length): New.
16397         (nibble_operand): Adjust.
16398         (h8300_binary_length): Handle conditional binary op.
16399         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
16400         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
16401         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
16402         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
16403         constraints.  WU is introduced as a variant of U that requires a
16404         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
16405         * config/h8300/h8300.md (attr type): Added bitbranch.
16406         (attr length_table): Added bitfield and bitbranch.
16407         (attr length): Compute bitbranch length.
16408         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
16409         least-significant bit of a byte.
16410         (brabit, brabc, brabs): New.
16411         (insv, extzv): Emit bfst and bfld on H8300SX.
16412         (bfld, bfst, seq, sne): New.
16413         (bstzhireg, cmpstz, bstz, bistz): New.
16414         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
16415         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
16416         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
16417         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
16418         (h8sx_unary_memory_operator): New function.
16419         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
16420         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
16421         * config/h8300/h8300.md: Add peepholes to combine reloads and
16422         arithmetic insns.
16423         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
16424         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
16425         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
16426         (and?i, ior?i, xor?i): Likewise.
16427         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
16428         * config/h8300/h8300.c: Move enums and prototypes to head of file.
16429         Various whitespace fixes.
16430         (h8300_constant_length): New function, split out from...
16431         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
16432         (h8300_classify_operand): Use IN_RANGE.
16433         (h8300_classify_operand): Use h8300_constant_length.
16434         (h8300_short_move_mem_p): Tighten size check.
16435         (h8sx_mergeable_memrefs_p): Tighten equality check.
16436         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
16437         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
16438         for -msx.
16439         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
16440         * config/h8300/crtn.asm: Likewise.
16441         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
16442         if __H8300SX__ is defined.
16443         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
16444         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
16445         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
16446         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
16447         addresses as mode-dependent.
16448         * config/h8300/h8300.c (print_operand_address): Update call to
16449         h8300_get_index.
16450         (h8300_get_index): Take a mode argument.  Rework to fix an
16451         earlier misunderstanding.
16452         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
16453         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
16454         into a register if TARGET_H8300SX.
16455         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
16456         TARGET_H8300SX.  Also disable related define_splits.
16457         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
16458         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
16459         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
16460         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
16461         * config/h8300/h8300.h (OK_FOR_Z): New macro.
16462         (EXTRA_CONSTRAINT_STR): Check it.
16463         * config/h8300/h8300.c (h8300_classify_operand): Accept null
16464         class arguments.
16465         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
16466         * config/h8300/h8300.md (length_table): Add mov_imm4.
16467         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
16468         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
16469         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
16470         be a label.
16471         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
16472         * config/h8300/h8300.c (h8300_reorg): New function.
16473         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16474         * config/h8300/h8300.md (length): Subtract the length of the
16475         delay slot from (pc) when checking the range of forward branches.
16476         (delay_slot, can_delay): New attributes.
16477         (define_delay): Add bra/s handling.
16478         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
16479         (jump): Add delayed-branch handling.
16480         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
16481         * expr.c (expand_strcpy): New function.
16482         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
16483         (expand_builtin_stpcpy): Likewise.
16484         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
16485         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
16486         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
16487         handling to improve register allocation for -fno-omit-frame-pointer.
16488         (h8sx_split_movmd): Delete, moving er6 handling into...
16489         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
16490         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
16491         (movmd): Add calls to copy_rtx.
16492         (movmd_internal): In the second alternative, allow the initial and
16493         final destination registers to be different .  Update the splitter
16494         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
16495         instead of h8sx_split_movmd.
16496         (stpcpy, movsd): New expanders.
16497         (movsd_internal): New define_insn.
16498         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
16499         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
16500         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
16501         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
16502         and DESTINATION_REGS.
16503         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
16504         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
16505         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
16506         (h8300_move_ratio): Declare.
16507         (MOVE_RATIO): Use it.
16508         * config/h8300/h8300.c (h8300_move_ratio): New variable.
16509         (h8300_init_once): Initialize it.
16510         (h8300_reg_class_from_letter): New function.
16511         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
16512         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
16513         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
16514         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
16515         (movstrsi, movmd): New expanders.
16516         (movmd_internal): New insn.
16517         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
16518         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
16519         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
16520         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
16521         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
16522         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
16523         * config/h8300/h8300.c (nibble_operand): Fix warning.
16524         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
16525         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
16526         (movsf_h8300h): Disable for TARGET_H8300SX.
16527         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
16528         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
16529         h8300_stm_parallel and h8300_return_parallel.
16530         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
16531         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
16532         h8300_stm_parallel, h8300_return_parallel): New functions.
16533         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
16534         if TARGET_H8300SX.  Use h8300_push_pop.
16535         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
16536         and final pop when generating h8sx code.  Always emit some form
16537         of return insn.
16538         * config/h8300/h8300.md: Don't enforce register alignment in
16539         stm peepholes if TARGET_H8300SX.
16540         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
16541         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
16542         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
16543         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
16544         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
16545         (MULTILIB_DIRNAMES): Add a directory for it.
16546         (MULTILIB_MATCHES): Delete.
16547         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
16548         * final.c (walk_alter_subreg): Handle addresses with subregs
16549         inside a ZERO_EXTEND or AND.
16550         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
16551         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
16552         if TARGET_H8300SX.
16553         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
16554         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
16555         @(dd,Rn.w) and @(dd,ERn.L).
16556         (h8300_displacement_size): Take the whole address as argument.
16557         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
16558         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
16559         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
16560         (h8sx_mergeable_memrefs_p): Declare.
16561         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
16562         (HAVE_PRE_INCREMENT): Likewise.
16563         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
16564         addresses for TARGET_H8300SX,
16565         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
16566         and POST_DEC.
16567         (movb_length_table, movl_length_table): New tables.
16568         (movw_length_table): Define to movb_length_table.
16569         (h8300_displacement_size): New, split out from...
16570         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
16571         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
16572         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
16573         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
16574         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
16575         (compute_plussi_length, compute_plussi_cc): Update accordingly.
16576         (h8sx_unary_shift_operator): Get the mode from the operator.
16577         (binary_shift_operator): Likewise.
16578         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
16579         a memory reference, check whether the reference is offsettable.
16580         (length_table): Add movb, movw and movl.
16581         (movqi): Add new h8sx pattern.  Don't force one operand to be a
16582         register when generating h8sx code.
16583         (movhi, movsi, movsf): Likewise.
16584         (movstrictqi): Use the length_table attribute.
16585         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
16586         (addqi3): Split into a define_expand and define_insn.  Don't accept
16587         memory operands in the expander.  Use h8300_operands_match_p to
16588         check for matching operands in the define_insn.
16589         (subqi3, negqi2, one_cmplqi2): Likewise.
16590         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
16591         in any patterns that are unused in h8sx code.  In the h8sx patterns,
16592         use h8300_operands_match_p to check whether operands match.
16593         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
16594         one_cmpl[hs]i3): Likewise.
16595         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
16596         in the expander.
16597         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
16598         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
16599         (h8300_insn_length_from_table): Add a second parameter.
16600         (output_h8sx_shift): Declare.
16601         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
16602         (EXTRA_CONSTRAINT): Replace with...
16603         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
16604         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
16605         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
16606         and h8sx_binary_shift_operator.
16607         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
16608         for TARGET_H8300SX.
16609         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
16610         (bit_memory_operand, fix_bit_operand): Likewise.
16611         (h8300_length_table_for_insn): Remove.
16612         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
16613         instructions.
16614         (h8300_short_immediate_length, h8300_binary_length): New functions.
16615         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
16616         (output_plussi): Use sub to add negative constants.
16617         (compute_plussi_length): Adjust accordingly.
16618         (h8sx_single_shift_type): New enum.
16619         (h8sx_single_shift, h8sx_unary_shift_operator,
16620         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
16621         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
16622         single h8sx instruction.  Return false in this case.
16623         * config/h8300/h8300.md (length_table): Add short_immediate.
16624         (length): Pass the operand array to h8300_insn_length_from_table.
16625         (adjust_length): Assume "no" for insns with a length_table attribute.
16626         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
16627         (*addhi3_h8300hs): Don't use for h8sx.
16628         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
16629         and sub.w #xx:3.
16630         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
16631         1's predicate to nonimmediate_operand.  Only skip default expansion
16632         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
16633         for single h8sx shift instructions.
16634         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
16635         * config/h8300/h8300.c (nibble_operand): Split out of...
16636         (reg_or_nibble_operand): ... this.
16637         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
16638         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
16639         umulhisi3): Introduce expand, and introduce separate insns for
16640         sign- or zero-extended REG and already-extended CONST_INT.
16641         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
16642         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
16643         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
16644         (subhi3): Likewise.  Don't accept immediates for operand 1.
16645         Remove the early clobber from second alternative of the h8300s pattern.
16646         (subsi3): Generalize for h8sx.  Force operand 2 into a register
16647         on plain h8300 targets.
16648         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
16649         (subsi3_h8300h): Generalize for h8sx.
16650         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
16651         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
16652         * config/h8300/h8300.c (reg_or_nibble_operand): New.
16653         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
16654         (TARGET_H8300SXMUL): New.
16655         (CONST_OK_FOR_P): New.
16656         (CONST_OK_FOR_LETTER_P): Adjust.
16657         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
16658         umulhisi3): Accept 4-bit immediate on H8SX.
16659         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
16660         (udivsi3, divhi3, udivsi3, divsi3): New.
16661         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
16662         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
16663         * config/h8300/h8300.h (OK_FOR_Q): New macro.
16664         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
16665         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
16666         Add ADDRESSOF to the bit_operand entry.
16667         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
16668         (h8300_src_operand): Likewise.
16669         (bit_operand): Check nonimmediate_operand rather than general_operand.
16670         Accept any nonimmediate_operand in h8sx code.
16671         (h8300_and_costs): Initialize operands[1].
16672         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
16673         (h8300_operand_class): New enum.
16674         (h8300_length_table): New typedef.
16675         (addb_length_table, addw_length_table, addl_length_table,
16676         logicl_length_table): New tables.
16677         (logicb_length_table, logicw_length_table): New macros.
16678         (h8300_classify_operand, h8300_length_from_table,
16679         h8300_length_table_for_insn, h8300_unary_length,
16680         h8300_insn_length_from_table): New functions.
16681         (output_plussi): Only use adds and subs for register destinations.
16682         Disable redundant clause.
16683         (compute_plussi_cc): Likewise.
16684         (compute_plussi_length): Likewise.  Use h8300_length_from_table
16685         to work out the length of an insn.
16686         (output_logical_op): Only use narrower immediate instructions
16687         if the destination is a register.
16688         (compute_logical_op_cc): Likewise.
16689         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
16690         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
16691         * config/h8300/h8300.md (length_table): New attribute.
16692         (length): When an instruction has a length_table attribute, use
16693         h8300_insn_length_from_table to calculate its default length.
16694         (cmpqi): Use h8300_dst_operand for the first operand and
16695         h8300_src_operand for the second.
16696         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
16697         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
16698         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
16699         iorsi3, xorhi3, xorsi3): Likewise.
16700         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
16701         so that it allows any combination of operands for TARGET_H8300SX.
16702         (iorqi3, xorqi3): Likewise.
16703         (cmpqi): Use the length_table attribute.
16704         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
16705         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
16706         (cmpqi): Add 'Q' constraint.
16707         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
16708         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
16709         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
16710         * config/h8300/h8300.h (MASK_H8300SX): New macro.
16711         (TARGET_H8300S): True for both -ms and -msx.
16712         (TARGET_H8300SX): New macro.
16713         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
16714         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
16715         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
16716         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
16717         [Temporary change.]
16718         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
16719         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
16720         16-bit pointers and 32-bit ints.
16721         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
16722         CONST_DOUBLE with mode no wider than SImode.
16723         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
16724         output operand.
16725         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
16726         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
16727         or SUBREG thereof.
16728         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
16729         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
16730         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
16732 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
16734         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
16736 2004-07-07  Per Bothner  <per@bothner.com>
16738         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
16740 2004-07-07  Mike Stump  <mrs@apple.com>
16742         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
16743         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
16744         (machopic_finish): Likewise.
16746 2004-07-07  Richard Henderson  <rth@redhat.com>
16748         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
16749         through any value-preserving cast.
16751 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
16753         * function.c (assign_parm_find_data_types): Call
16754         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
16756 2004-07-07  Steven Bosscher  <stevenb@suse.de>
16758         * tree-cfg.c (group_case_labels): Remove case labels that have
16759         the same target as the default case.
16761 2004-07-07  Steven Bosscher  <stevenb@suse.de>
16763         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
16764         regardless of DECL_LANG_SPECIFIC being present or not.
16765         * tree.h (DECL_NUM_STMTS): Purge.
16767 2004-07-07  Andrew Pinski  <apinski@apple.com>
16769         * configure: Regenerate with the right autoconf.
16771 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
16773         * ifcvt.c (total_bb_rtx_cost): New function.
16774         (find_if_case_1): Compare rtx_cost of basic block to cost of
16775         BRANCH_COST insns.
16776         (find_if_case_2): Same.
16778 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
16780         PR target/10567
16781         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
16782         (output_return): Likewise.
16783         (output_sibcall): Abort if !flag_delayed_branch.
16784         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
16785         (emit_and_preserve): New function.
16786         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
16787         indirect jump to the thunked-to function if !flag_delayed_branch.
16788         * config/sparc/sparc.md (delayed_branch): New attribute.
16789         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
16790         attribute to compute the length of the insn.
16791         (goto_handler_and_restore): Likewise.
16793 2004-07-07  Andrew Pinski  <apinski@apple.com>
16795         PR tree-optimization/15777
16796         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
16798         * expr.c (expand_expr_real_1): Fix formating.
16799         BUFFER_REF and IN_EXPR are dead.
16800         * fold-const.c (non_lvalue): BUFFER_REF is dead.
16801         * tree-inline.c (estimate_num_insns_1): Likewise.
16802         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
16803         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
16804         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
16806 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16808         * collect2.c (dump_file): Don't call cplus_demangle if
16809         HAVE_LD_DEMANGLE is defined.
16810         (main): Pass "--demangle" to ld if no_demangle is not 0 and
16811         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
16812         if HAVE_LD_DEMANGLE is defined.
16814         * configure.ac (--with-demangler-in-ld): Added
16815         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
16816         --with-demangler-in-ld is used.
16817         * config.in: Regenerated.
16818         * configure: Likewise.
16820 2004-07-07  Roger Sayle  <roger@eyesopen.com>
16822         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
16823         for simple floating point operations "fp", double precision
16824         multiplication "dmul", and single and double precision division
16825         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
16826         (ppc630_cost): New table split from ppc620_cost, to distinguish
16827         differences in floating point latencies.
16828         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
16829         (rs6000_rtx_costs): Add support for single and double precision
16830         floating point addition, subtraction, multiplication, division,
16831         fused-multiply-add, fused-multiply-sub, negation, absolute value
16832         and negative absolute value.  Tweak MEM case to use prefered idiom.
16834 2004-07-07  Richard Henderson  <rth@redhat.com>
16836         * tree-flow-inline.h (may_propagate_copy): Move...
16837         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
16838         attempt to copy between types requiring conversion.
16839         * tree-flow.h (may_propagate_copy): Update decl.
16840         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
16842 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
16844         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
16845         from -mtune= option.
16847 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
16849         * builtins.c: Rename movstr*, except for movstrict*, to
16850         movmem* and clrstr* to clrmem*.
16851         * expr.c: Likewise.
16852         * expr.h: Likewise.
16853         * genopinit.c: Likewise.
16854         * integrate.c: Likewise.
16855         * local-alloc.c: Likewise.
16856         * optabs.c: Likewise.
16857         * optabs.h: Likewise.
16858         * config/alpha/alpha.h: Likewise.
16859         * config/alpha/alpha.md: Likewise.
16860         * config/arm/arm-protos.h: Likewise.
16861         * config/arm/arm.c: Likewise.
16862         * config/arm/arm.md: Likewise.
16863         * config/avr/avr.md: Likewise.
16864         * config/c4x/c4x.c: Likewise.
16865         * config/c4x/c4x.md: Likewise.
16866         * config/frv/frv.md: Likewise.
16867         * config/i386/i386-protos.h: Likewise.
16868         * config/i386/i386.c: Likewise.
16869         * config/i386/i386.h: Likewise.
16870         * config/i386/i386.md: Likewise.
16871         * config/i860/i860.c: Likewise.
16872         * config/i860/i860.md: Likewise.
16873         * config/ip2k/ip2k.md: Likewise.
16874         * config/ip2k/libgcc.S: Likewise.
16875         * config/ip2k/t-ip2k: Likewise.
16876         * config/m32r/m32r.c: Likewise.
16877         * config/m32r/m32r.md: Likewise.
16878         * config/mcore/mcore.md: Likewise.
16879         * config/mips/mips.c: Likewise.
16880         * config/mips/mips.md: Likewise.
16881         * config/ns32k/ns32k.c: Likewise.
16882         * config/ns32k/ns32k.h: Likewise.
16883         * config/ns32k/ns32k.md: Likewise.
16884         * config/pa/pa.c: Likewise.
16885         * config/pa/pa.md: Likewise.
16886         * config/pdp11/pdp11.h: Likewise.
16887         * config/pdp11/pdp11.md: Likewise.
16888         * config/rs6000/rs6000.c: Likewise.
16889         * config/rs6000/rs6000.md: Likewise.
16890         * config/s390/s390-protos.h: Likewise.
16891         * config/s390/s390.c: Likewise.
16892         * config/s390/s390.md: Likewise.
16893         * config/sh/lib1funcs.asm: Likewise.
16894         * config/sh/sh.c: Likewise.
16895         * config/sh/sh.md: Likewise.
16896         * config/sh/t-sh: Likewise.
16897         * config/sparc/sparc.h: Likewise.
16898         * config/vax/vax.md: Likewise.
16899         * config/xtensa/xtensa.c: Likewise.
16900         * config/xtensa/xtensa.md: Likewise.
16901         * doc/invoke.texi: Likewise.
16902         * doc/md.texi: Likewise.
16903         * doc/rtl.texi: Likewise.
16905 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
16907         PR target/16407
16908         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
16909         * config/mips/mips.c (mips_declare_common_object): New function,
16910         mostly split out from...
16911         (mips_output_aligned_decl_common): ...here.
16912         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
16913         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
16914         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
16915         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
16917 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16919         PR c/16392
16920         * function.c (assign_parms): Fix typo from previous change.
16922 2004-07-07  Jason Merrill  <jason@redhat.com>
16924         PR c++/15815
16925         * doc/extend.texi (C++ Interface): Correct information and
16926         discourage use.
16928 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
16930         PR target/16130
16931         PR target/16142
16932         PR target/16143
16933         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
16934         insn.
16936 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
16938         PR target/1679.
16939         * config/m32r/m32r.c (m32r_function_symbol): New function:
16940         Generate a symbol name RTX with the correct m32r specific flags
16941         set.
16942         (block_move_call): Use new function to generate correct symbol.
16943         * config/m32r/m32r-protos.h: Add prototype for new funcion.
16944         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
16945         function.
16947 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
16949         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
16950         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
16951         TYPE_BINFO_BASETYPE): Remove.
16952         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
16953         to ...
16954         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
16955         here.
16956         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
16957         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
16958         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
16959         (struct tree_binfo): Rename base_types to base_binfos.
16960         * alias.c (record_component_aliases): Adjust BINFO macros.
16961         * dbxout.c (dbxout_type): Likewise.
16962         * dwarf2out.c (gen_member_die): Likewise.
16963         * sdbout.c (sdbout_one_type): Likewise.
16964         * tree-dump.c (deque_and_dump): Likewise.
16965         * config/i386/i386.c (classify_argument,
16966         contains_128bit_aligned_vector_p): Likewise.
16968 2004-07-07  Nick Clifton  <nickc@redhat.com>
16970         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
16971         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
16973 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
16975         * vec.h: Fix the example use.
16977 2004-07-06  Richard Henderson  <rth@redhat.com>
16979         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
16980         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
16981         * tree-inline.c (copy_body_r, setup_one_parameter,
16982         initialize_inlined_parameters, expand_call_inline,
16983         declare_inline_vars): Don't check it.
16984         (expand_calls_inline): Remove old version, rename new version
16985         from gimple_expand_calls_inline.
16986         * tree-optimize.c (execute_gimple): Remove.
16987         (pass_gimple): Don't run anything.
16989 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
16991         * doc/sourcebuild.texi: Use semicolons instead of commas in
16992         section title.
16994 2004-07-06  Richard Henderson  <rth@redhat.com>
16996         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
16997         (sra_walk_modify_expr, scan_init): Likewise.
16998         (generate_element_zero): Check visited before scanning children.
16999         (generate_element_init): Set visited on error.
17000         (scalarize_init): Handle generate_element_init failure similar
17001         to use_block_copy.
17003 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
17005         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
17006         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
17008 2004-07-06  Richard Henderson  <rth@redhat.com>
17010         * config/i386/i386.c (legitimize_pic_address): Make static.
17011         (legitimize_address): Handle CONST with TLS operand.
17012         (ix86_expand_move): Don't call legitimize_pic_address directly.
17013         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
17015 2004-07-06  Roger Sayle  <roger@eyesopen.com>
17017         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
17018         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
17019         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
17020         is currently executed unconditionally, i.e. not in "else_bb".
17022 2004-07-06  Steven Bosscher  <stevenb@suse.de>
17024         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
17025         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17026         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
17027         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17028         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
17029         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17030         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
17031         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17032         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
17033         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17034         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
17035         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17036         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
17037         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17038         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
17039         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17041 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
17043         * dojump.c (do_jump): REFERENCE_EXPR is dead.
17044         * expr.c (expand_expr_real_1): Ditto.
17045         * tree-inline.c (estimate_num_insns_1): Ditto.
17046         * tree-pretty-print.c (dump_generic_node): Ditto.
17047         (op_symbol): Ditto.
17048         * tree.def: Ditto.
17050 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
17052         * tree-ssa-pre.c (reference_node_pool): New pool.
17053         (find_or_generate_expression): Class 'r' is okay too.
17054         (create_value_expr_from): Ditto.
17055         (add_to_sets): LHS should not include vuses.
17056         (eliminate): Ditto.
17057         (compute_avail): Reverse ordering of tests.
17058         Valuize INDIRECT_REF as well.
17060 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
17062         PR rtl-optimization/16380
17063         * loop.c (check_dbra_loop): Sink comparison instructions if they
17064         do something other than set cc0.
17066 2004-07-06  James E Wilson  <wilson@specifixinc.com>
17068         * doc/interface.texi (longjmp and automatic variables): Delete
17069         paragraph recommending taking the address of a variable.
17071 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
17073         * vec.h (VEC_embedded_alloc): Remove.
17074         (VEC_embedded_size, VEC_embedded_init): New.
17075         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
17076         MEM_STAT_INFO.
17077         (VEC_truncate): New.
17078         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
17079         (vec_embedded_alloc): Remove.
17080         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
17081         (vec_embedded_alloc): Remove.
17083 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
17085         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
17086         (gt-langhooks.h): Remove.
17088 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
17090         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
17092 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
17094         * config/sparc/sparc.c (get_pc_symbol): Rename into
17095         add_pc_to_pic_symbol.
17096         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
17097         (load_pic_register): Account for previous changes.
17098         Use reg_names.  Don't create the label twice.
17099         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
17100         UNSPEC_LOAD_PCREL_SYM.
17101         (get_pc): Rename into load_pcrel_sym.  Add predicate to
17102         operands.  Remove condition.
17104 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
17106         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
17107         RECORD, UNION & QUAL_UNION is actually a binfo.
17109         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
17110         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
17111         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
17112         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
17113         * dwarf2out.c (add_data_member_location_attribute): Likewise.
17114         (gen_inheritance_die): Likewise.
17115         * tree-dump.c (deque_and_dump): Likewise.
17116         * doc/c-tree.texi (Binfos): Add under reconstruction note.
17118 2004-07-06  Steven Bosscher  <stevenb@suse.de>
17120         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
17121         Define.
17122         * config/mcore/mcore.md: Model memory latency with a simple DFA
17123         pipeline description instead of a define_function_unit.
17125 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17127         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
17128         * langhooks.h (var_mod_type_p): Likewise.
17129         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
17130         * expr.c (count_type_elements): Properly handle return from
17131         array_type_nelts and properly test for overflow.
17132         * gimplify.c (gimplify_init_constructor): Properly handle return
17133         from array_type_nelts.
17134         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
17135         * integrate.c (copy_decl_for_inlining): Correct comments.
17136         * tree-inline.c (remap_decl): Update comments, remove dead code,
17137         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
17138         (remap_type): Only remap if variably modified by vars in function
17139         being inlined.
17140         (copy_body_r): Use compatible_type langhooks to see when can fold.
17141         (setup_one_parameter): Don't remap type.
17142         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
17143         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
17144         compute TREE_INVARIANT for decl case.
17145         (find_var_from_fn): New function.
17146         (variably_modified_type_p): Add arg and call new function.
17147         * tree.h (variably_modified_type_p): Add extra arg.
17149 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
17151         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
17152         (goto_handler_and_restore_v9): Delete disabled insn.
17153         (goto_handler_and_restore_v9_sp64): Likewise.
17155 2004-07-05  Roger Sayle  <roger@eyesopen.com>
17157         * calls.c (load_register_parameters): Call expand_shift instead
17158         of expand_binop with ashl_optab (or other shift optab) directly.
17159         * expr.c (emit_group_load, emit_group_store): Likewise.
17160         * function.c (assign_parm_setup_block): Likewise.
17161         * stmt.c (shift_return_value): Likewise.
17163 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
17165         * expr.c (expand_assignment): Disable the bitfield += optimizations.
17167 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
17169         * doc/sourcebuild.texi: Revert previous patch.
17171 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
17173         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
17174         TARGET_MEM_FUNCTIONS.
17175         * system.h: Poison TARGET_MEM_FUNCTIONS.
17176         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
17177         bcmp_libfunc, bzero_libfunc): Remove.
17178         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
17179         bzero_libfunc.
17180         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
17181         * doc/standards.texi: Don't mention calling BSD string functions.
17182         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
17183         * config/vax/t-memfuncs: New.
17184         * config/memcmp.c, config/memcpy.c, config/memmove.c,
17185         config/memset.c: New.
17186         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
17187         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
17188         vax/t-memfuncs.
17189         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
17190         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
17191         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
17192         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
17193         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
17194         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
17195         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
17196         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
17197         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
17198         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
17200 2004-07-05  Richard Henderson  <rth@redhat.com>
17202         * function.c (assign_parm_setup_reg): Properly rename variables in
17203         FUNCTION_ARG_CALLEE_COPIES section.
17205 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
17207         * tree-mudflap.c: Include cgraph.h.
17208         (mf_init_extern_trees): Rename to mudflap_init.  Export.
17209         Rewrite to create synthetic declarations instead of looking
17210         up declarations from mf-runtime.h.
17211         (mf_make_builtin, mf_make_cache_struct_type): New functions.
17212         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
17213         Correct commentary.
17214         (execute_mudflap_function_decls, mudflap_register_call):
17215         Don't call mf_init_extern_trees.
17216         (mudflap_finish_file): Use cgraph_build_static_cdtor.
17218         * tree-mudflap.h: Update prototypes.
17219         * c-mudflap.c: Delete file.
17220         * c-common.c: Include tree-mudflap.h.
17221         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
17222         * Makefile.in: Remove all references to c-mudflap.o.
17223         Update dependencies.
17225 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17227         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
17228         displacements with the spatial-locality cache-control completer.
17230 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
17232         * langhooks.c: Don't include gt-langhooks.h.
17233         (var_labelno): Delete.
17234         (lhd_set_decl_assembler_name): Do not append a distinguishing
17235         number to file-scope internal-linkage declarations for the first
17236         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
17237         the declaration itself (if at block scope), or its containing
17238         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
17239         number.
17241         * opts.c (cur_in_fname): New global.
17242         * opts.h: Declare it.
17243         * tree.c: Include opts.h.
17244         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
17245         DECL_UID equal to cur_in_fname.
17246         (copy_node_stat): Do not change DECL_UID when copying a
17247         TRANSLATION_UNIT_DECL.
17248         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
17249         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
17251         * c-decl.c (c_static_assembler_name): Delete.
17252         * c-tree.h (c_static_assembler_name): Delete prototype.
17253         * c-lang.c, objc/objc-lang.c: Don't override
17254         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
17256         * Makefile.in (tree.o): Update dependencies.
17257         (GTFILES): Remove langhooks.c.
17259 2004-07-05  Roger Sayle  <roger@eyesopen.com>
17261         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
17262         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
17263         Normalize "X % C" as "X % -C" for signed modulus and negative C.
17264         Optimize "X % -Y" as "X % Y" for signed modulus.
17265         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
17266         into "((unsigned) X % Y) == 0".
17268 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
17270         * sourcebuild.texi (Config Fragments): Use @comma{} in
17271         cross-reference to section title.
17273 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17275         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
17276         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
17277         (gimplify_target_expr, gimplify_expr): Likewise.
17278         (copy_if_shared_r): No longer need special case for BIND_EXPR.
17279         (unshare_body, unvisit_body): Only look at nested if BODY_P is
17280         whole function.
17281         (gimplify_compound_lval): See if we can strip any useless conversion.
17282         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
17283         from RHS, not LHS.
17284         (gimplify_modify_expr_to_memset): Likewise.
17285         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
17286         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
17287         (declare_inline_vars): Likewise.
17288         (walk_type_fields): New function.
17289         (walk_tree): Use it.
17290         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
17292         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
17293         (sra_walk_modify_expr): Allow init function to fail.
17294         (scan_init): Now returns bool.
17295         (generate_element_init): If can't understand INIT, return false.
17296         (scalarize_init): Return false if generate_element_init does.
17298         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
17299         print bounds.
17301         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
17302         bounds if bounds aren't constant.
17304         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
17306         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
17307         to type hooks; remove bogus PARAMS.
17309 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
17311         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
17312         * dwarf2out.c (add_data_member_location_attribute): Check for
17313         TREE_BINFO.
17314         * tree.c (tree_node_kinds): Add "binfos".
17315         (binfo_lang_slots): New.
17316         (make_node_stat): Add TREE_BINFO.
17317         (make_tree_binfo_stat): New.
17318         (tree_node_structure): Add TREE_BINFO.
17319         * tree.def (TREE_BINFO): New.
17320         * tree.h (REC_OR_UNION_CHECK): Rename to ...
17321         (RECORD_OR_UNION_CHECK): ... here.
17322         (NOT_RECORD_OR_UNION_CHECK): New.
17323         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
17324         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
17325         RECORD_OR_UNION_CHECK.
17326         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
17327         (TYPE_LANG_SLOT_1): New.
17328         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
17329         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
17330         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
17331         (BINFO_ELTS): Remove.
17332         (BINFO_LANG_SLOT): New.
17333         (struct tree_binfo): New.
17334         (binfo_lang_slots): Declare.
17335         (enum tree_node_structure_enum): Add TS_BINFO.
17336         (union tree_node): Add binfo.
17337         (make_tree_binfo_stat): Declare.
17338         (make_tree_binfo): New.
17339         (enum tree_node_kind): Add binfo_kind.
17341         * objc/objc-act.c (start_class, objc_declare_protocols,
17342         start_protocols): Use TYPE_LANG_SLOT_1.
17343         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
17344         to ...
17345         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
17346         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
17347         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
17348         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
17350 2004-07-05  Steven Bosscher  <stevenb@suse.de>
17352         * rtl.h (struct rtx_def): Remove the integrated flag.
17353         Use the return_val flag for MEM_SCALAR_P.
17354         Reshuffle and update flags in CLEAR_RTX_FLAGS.
17356 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
17358         PR target/16357
17359         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
17360         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
17361         move_by_pieces.
17363 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
17365         * var-tracking.c: Fix some comments.
17366         (frame_stack_adjust): New.
17367         (vt_stack_adjustments): Init stack_adjust of entry block to
17368         minus stack adjustment of function prologue.
17369         (adjust_stack_reference): Do not adjust if adjustment == 0.
17370         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
17371         (emit_notes_in_bb): Likewise.
17372         (vt_add_function_parameters): Do not adjust locations of
17373         function arguments.
17374         (vt_initialize): Compute the stack adjustment of function
17375         prologue and offset the initial "location" of frame_base_decl
17376         from the stack pointer after prologue.
17378 2004-07-04  Richard Henderson  <rth@redhat.com>
17380         * function.c (struct assign_parm_data_all): New.
17381         (struct assign_parm_data_one): New.
17382         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
17383         assign_parm_find_data_types, assign_parms_setup_varargs,
17384         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
17385         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
17386         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
17387         assign_parm_setup_block, assign_parm_setup_reg,
17388         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
17389         (assign_parms): ... here.
17391 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
17393         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
17394         now are bitmap_set_t's.
17395         (bitmap_insert_into_set): No point in inserting the value if
17396         it's invariant.
17397         (bitmap_set_contains): New function.
17398         (bitmap_set_replace_value): Add comment on why we do it
17399         this way.
17400         (set_contains): Removed.
17401         (bitmap_set_subtract_from_value_set): New name of
17402         set_subtract now that it's arguments are two different
17403         types of sets.
17404         Update callers.
17405         (bitmap_find_leader): Change algorithm used.
17406         (find_or_generate_expression): Update use of functions for new
17407         bitmap sets.
17408         (create_expression_by_pieces): Ditto.
17409         (insert_aux): Ditto.
17410         (insert): Ditto.
17411         (add_to_sets): Ditto.
17412         (init_pre): Ditto.
17413         (execute_pre): Ditto.
17414         (compute_avail): Ditto.
17415         Also ignore virtual phis.
17417 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
17419         * combine.c (simplify_comparison): Fix comment typo.
17421 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
17423         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
17424         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
17425         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
17426         (output_restore): Change parameter from 'insn' to 'pat'.
17427         (output_return): Adjust call to output_restore.
17428         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
17429         Adjust call to output_restore.
17431 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
17433         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
17434         and assert system is bsd.
17436 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
17438         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
17439         (TARGET_SWITCHES): Remove -mdebugc.
17440         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
17441         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
17442         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
17443         (sle_[sd]i_reg): Delete.
17445 2004-07-04  Steven Bosscher  <stevenb@suse.de>
17447         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
17448         Define.
17449         * config/iq2000/iq2000.md: Translate old pipeline description to an
17450         equivalent new one.
17452 2004-07-04  Roger Sayle  <roger@eyesopen.com>
17454         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
17455         Ensure the replacement rhs is valid gimple before performing
17456         the substitution.  Return false if these sanity checks fail.
17457         (fold_stmt): Only set changed to true, if set_rhs returns true.
17458         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
17459         succeeds.
17461 2004-07-04  Richard Henderson  <rth@redhat.com>
17463         PR c/16348
17464         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
17466 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
17468         * configure.ac (ranlib_flags): New variable.
17469         * Makefile.in (RANLIB_FLAGS): New variable.
17470         (libbackend.a): Use it.
17471         * configure: Regenerated.
17473 2004-07-04  Roger Sayle  <roger@eyesopen.com>
17475         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
17476         a "sign mask" instead of using ashr_optab directly.
17478 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
17480         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
17481         * doc/cppopts.texi: Clarify processing of command-line defines.
17483 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
17485         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
17487 2004-07-04  Richard Henderson  <rth@redhat.com>
17489         * rtl.def (ADDRESSOF): Remove.
17490         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
17491         (find_base_term, memrefs_conflict_p): Likewise.
17492         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
17493         (fold_rtx, cse_insn, set_live_p): Likewise.
17494         * dwarf2out.c (mem_loc_descriptor): Likewise.
17495         (add_location_or_const_value_attribute): Likewise.
17496         * emit-rtl.c (copy_insn_1): Likewise.
17497         * explow.c (memory_address): Likewise.
17498         * expmed.c (store_split_bit_field): Likewise.
17499         * expr.c (expand_expr_real_1): Likewise.
17500         * function.c (instantiate_decl
17501         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
17502         * genrecog.c (preds, validate_pattern): Likewise.
17503         * integrate.c (copy_rtx_and_substitute): Likewise.
17504         * recog.c (general_operand, register_operand): Likewise.
17505         (memory_address_p): Likwise.
17506         * reload1.c (eliminate_regs, elimination_effects): Likewise.
17507         * rtl.c (copy_rtx): Likewise.
17508         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
17509         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
17510         * rtlhooks.c (gen_lowpart_general): Likewise.
17511         * stmt.c (expand_asm_operands): Likewise.
17512         * web.c (entry_register, replace_ref, web_main): Likewise.
17513         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
17514         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
17515         * config/arm/arm.c (thumb_rtx_costs): Likewise.
17516         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
17517         * config/frv/frv.c (move_destination_operand, move_source_operand,
17518         condexec_dest_operand, condexec_source_operand,
17519         condexec_memory_operand): Likewise.
17520         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
17521         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
17522         (destination_xfmode_operand): Likewise.
17523         * config/mips/mips.h (PREDICATE_CODES): Likewise.
17524         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
17525         * config/s390/s390.c (general_s_operand): Likewise.
17526         * config/s390/s390.md (mov*): Likewise.
17527         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
17529         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
17530         * expr.c (expand_expr_real_1): Likewise.
17531         * stmt.c (expand_decl): Likewise.
17532         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
17534         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
17535         postponed_insns, put_var_into_stack, put_reg_into_stack,
17536         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
17537         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
17538         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
17539         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
17540         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
17541         purge_bitfield_addressof_replacements, purge_addressof_replacements,
17542         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
17543         struct insns_for_mem_walk_info, insns_for_mem_walk,
17544         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
17545         setjmp_protect_args): Remove.
17546         (push_function_context_to): Don't handle var_refs_queue.
17547         (pop_function_context_from, free_after_compilation): Likewise.
17548         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
17549         (assign_parms, allocate_struct_function): Likewise.
17550         (use_register_for_decl): New.
17551         (expand_function_end): Don't setjmp_protect.
17552         * function.h (struct emit_status): Update commentary.
17553         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
17554         (max_parm_reg, parm_reg_stack_loc): Remove.
17555         * passes.c (DFI_addressof): Remove.
17556         (dump_file_info): Remove addressof.
17557         (rest_of_handle_addressof): Remove.
17558         (rest_of_compilation): Don't call it.
17559         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
17560         * stmt.c (expand_decl): Use use_register_for_decl.
17561         * tree.h: Update decls.
17562         * web.c (mark_addressof): Remove.
17563         * doc/invoke.texi (-dF): Remove.
17565 2004-07-03  Richard Henderson  <rth@redhat.com>
17567         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
17568         instead of gen_mem_addressof.
17569         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
17570         TImode output register.
17572 2004-07-03  Richard Henderson  <rth@redhat.com>
17574         PR tree-optimization/16341
17575         * tree-sra.c (sra_walk_function): Increment to next stmt before
17576         processing the current stmt.
17577         (sra_insert_after): Always use BSI_SAME_STMT.
17579 2004-07-03  Richard Henderson  <rth@redhat.com>
17581         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
17582         fp plus with minus.
17584 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
17586         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
17587         with tree_int_cst_equal.
17589 2004-07-03  Andreas Schwab  <schwab@suse.de>
17591         * config/ia64/ia64.md: Define new attribute "empty".
17592         (prologue_use, nop_x, insn_group_barrier): Set it.
17594         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
17595         skip over "empty" insns.
17597 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17599         * tree-inline.c (initialize_inlined_parameters): Pass proper function
17600         context to gimplify_body.
17601         (walk_tree): Don't walk into types twice.
17602         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
17604         * tree-sra.c (generate_element_init): Remove any useless conversions.
17606         * gimplify.c (gimplify_conversion): Remove stripping useless
17607         conversions from here.
17608         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
17609         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
17610         Unshare before substituting PLACEHOLDER_EXPR.
17611         (gimplify_modify_expr_to_memset): Likewise.
17612         Pass address of TO to memset, not TO itself.
17613         (gimplify_init_constructor): Make copy of OBJECT so we have it each
17614         time we make an expression (to match a PLACEHOLDER_EXPR).
17616         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
17617         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
17618         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
17619         * tree-ssa-dom.c (local_fold): Likewise.
17621         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
17622         * langhooks.h (strct lang_hooks): New field type_max_size.
17623         * function.c (assign_temp): Call it.
17625 2004-07-03  Steven Bosscher  <stevenb@suse.de>
17627         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
17628         * config/sh/sh.md: Convert the SH1 pipeline description to
17629         a DFA model.
17631 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
17633         * c-decl.c (struct c_binding): Remove contour field; add
17634         depth, invisible, nested fields.
17635         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
17636         (B_IN_EXTERNAL_SCOPE): New convenience macros.
17637         (bind): Add invisible and nested arguments. Initialize
17638         new fields of struct c_binding; adjust loop scanning for
17639         insertion point.
17640         (free_binding_and_advance): Clear structure with memset.
17641         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
17642         in file scope, even if it's in external scope too.
17643         (pushdecl): Adjust to match.  Create invisible file-scope
17644         declarations for block-scope forward declarations of static functions.
17645         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
17646         (undeclared_variable, lookup_label, declare_label, define_label)
17647         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
17648         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
17649         (store_parm_decls_oldstyle): Adjust to match.
17650         (diagnose_mismatched_decls): Correct handling of linkage clashes.
17651         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
17653         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
17654         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
17656 2004-07-02  Richard Henderson  <rth@redhat.com>
17658         * c-decl.c (grokdeclarator): Don't frob current_function_decl
17659         around variable_size.
17660         (set_decl_nonlocal): Remove.
17661         (store_parm_decls): Add stmts for pending sizes.
17662         * calls.c (calls_function, calls_function_1): Remove.
17663         (precompute_arguments): Don't call it.
17664         * cfgexpand.c (set_save_expr_context): Remove.
17665         (tree_expand_cfg): Don't call it.
17666         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
17667         (dwarf2out_finish): Likewise.
17668         * expr.c (emit_block_move): Adjust addresses to BLKmode.
17669         (store_constructor): Don't pre-evaluate SAVE_EXPR.
17670         (safe_from_p): Don't queue SAVE_EXPRs.
17671         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
17672         or build plain VAR_DECLs.
17673         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
17674         (fold): Likewise.
17675         (fold_checksum_tree): Don't special-case SAVE_EXPR.
17676         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
17677         (put_var_into_stack): Don't handle SAVE_EXPR.
17678         (gen_mem_addressof): Likewise.
17679         * function.h (struct function): Remove x_save_expr_regs.
17680         (save_expr_regs): Remove.
17681         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
17682         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
17683         * stor-layout.c (variable_size): Don't set it.
17684         (force_type_save_exprs, force_type_save_exprs_1): Remove.
17685         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
17686         all callers.  Don't set SAVE_EXPR_CONTEXT.
17687         * tree-inline.h (remap_save_expr): Update decl.
17688         * tree.c (save_expr): Update build size.
17689         (first_rtl_op): Don't handle SAVE_EXPR.
17690         (unsave_expr_1, contains_placeholder_p): Likewise.
17691         (decl_function_context): Likewise.
17692         * tree.def (SAVE_EXPR): Remove args 1 and 2.
17693         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
17694         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
17696 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
17698         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
17699         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
17700         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
17701         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
17702         some first-person references and patronizing comments.  Based on
17703         printed manual.
17704         * doc/invoke.texi: Don't reference fortran@gnu.org.
17705         * doc/trouble.texi (Warning when a non-void function value is
17706         ignored): Rewrite.  From Russ Allbery and Chris Devers.
17708 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
17710         * tree-ssa-pre.c (bitmap_set_t): New.
17711         (bb_value_sets): avail_out is now a bitmap_set_t.
17712         (bitmap_find_leader): New function.
17713         (bitmap_value_insert_into_set): Ditto.
17714         (bitmap_set_copy): Ditto.
17715         (bitmap_value_replace_in_set): Ditto.
17716         (bitmap_set_contains_value): Ditto.
17717         (bitmap_set_new): Ditto.
17718         (bitmap_set_pool): New pool.
17719         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
17720         (insert_aux): Ditto.
17721         (add_to_sets): Ditto.
17722         (compute_avail): Ditto
17723         (eliminate): Ditto.
17724         (init_pre): Ditto.
17725         (fini_pre): Ditto.
17726         (execute_pre): Ditto.
17728 2004-07-02  Roger Sayle  <roger@eyesopen.com>
17730         * config/rs6000/rs6000.c (struct processor_costs): New structure
17731         used to hold instruction latencies/sizes for processor types.
17732         (rs6000_cost): New global variable pointing to current CPU's costs.
17733         (rs6000_override_options): Initialize rs6000_cost to point to the
17734         appropriate cost table based upon rs6000_cpu and optimize_size.
17735         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
17736         timings inline.
17738 2004-07-02  Richard Henderson  <rth@redhat.com>
17740         * expmed.c (make_tree): Don't use SET_DECL_RTL.
17742 2004-07-02  Steven Bosscher  <stevenb@suse.de>
17744         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
17746 2004-07-01  Richard Henderson  <rth@redhat.com>
17748         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
17749         (alpha_gp_save_rtx): Use assign_stack_local instead of
17750         gen_mem_addressof.
17752 2004-07-01  Richard Henderson  <rth@redhat.com>
17754         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
17755         (alpha_rtx_cost_data): Update to match.
17756         (alpha_rtx_cost_size): New.
17757         (alpha_rtx_costs): Honor optimize_size.
17759 2004-07-01  Richard Henderson  <rth@redhat.com>
17761         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
17762         * cfgexpand.c (tree_expand_cfg): Do it here.
17763         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
17764         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
17765         * config/mips/mips.c (mips_output_mi_thunk): And here.
17766         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
17767         * config/sh/sh.c (sh_output_mi_thunk): And here.
17768         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
17770 2004-07-01  Richard Henderson  <rth@redhat.com>
17772         * tree.def (RTL_EXPR): Remove.
17773         * c-typeck.c (lvalue_p): Don't handle it.
17774         * expr.c (safe_from_p): Likewise.
17775         (expand_expr_real_1): Likewise.
17776         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
17777         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
17778         * gengtype.c (adjust_field_tree_exp): Likewise.
17779         * stmt.c (warn_if_unused_value): Likewise.
17780         * tree-gimple.c (recalculate_side_effects): Likewise.
17781         * tree-pretty-print.c (dump_generic_node): Likewise.
17782         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
17783         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
17784         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
17786         * stmt.c (struct stmt_status): Remove x_last_expr_type,
17787         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
17788         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
17789         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
17790         all the bits that tracked last_expr.
17791         (expand_end_bindings): Don't track last_expr.
17792         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
17793         (clear_last_expr): Remove.
17794         (expand_asm): Don't call it.
17795         (expand_asm_operands, expand_end_cond): Likewise.
17796         (expand_naked_return, expand_null_return_1): Likewise.
17797         * c-typeck.c (c_begin_compound_stmt): Likewise.
17798         * cfgexpand.c (expand_block): Use expand_expr_stmt.
17799         * expr.c (expand_expr_real_1): Likewise.
17800         * tree.h: Update prototypes.
17802         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
17803         (struct emit_status): Remove sequence_rtl_expr.
17804         (struct function): Remove x_rtl_expr_chain.
17805         (seq_rtl_expr, rtl_expr_chain): Remove.
17806         * function.c (struct temp_slot): Remove rtl_expr.
17807         (assign_stack_temp_for_type): Don't set it.
17808         (free_temp_slots, pop_temp_slots): Don't check it.
17809         (free_after_compilation): Don't clear x_rtl_expr_chain.
17810         (fixup_var_refs): Don't search it.
17811         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
17812         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
17813         or seq_rtl_expr.
17814         (push_topmost_sequence): Likewise.
17815         (end_sequence, init_emit): Likewise.
17816         (start_sequence_for_rtl_expr): Remove.
17817         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
17818         * rtl.h (preserve_rtl_expr_result): Remove.
17820 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
17822         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
17823         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
17824         typos.
17826 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
17828         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
17829         (STANDARD_STARTFILE_PREFIX_2): Define.
17830         (standard_startfile_prefix_1): Initialize to
17831         STANDARD_STARTFILE_PREFIX_1.
17832         (standard_startfile_prefix_2): Initialize to
17833         STANDARD_STARTFILE_PREFIX_2.
17834         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
17835         (STANDARD_STARTFILE_PREFIX_1): Define.
17836         (STANDARD_STARTFILE_PREFIX_2): Define.
17837         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
17838         (STANDARD_STARTFILE_PREFIX_2): Document.
17840 2004-07-01  Richard Henderson  <rth@redhat.com>
17842         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
17843         in order to disable scalarization.  Instead set a flag and wait
17844         for a candidate decl.
17846 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
17848         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
17849         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
17850         Use terminology "testsuite" and "enumerated".
17852 2004-07-01  Richard Henderson  <rth@redhat.com>
17854         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
17855         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
17856         (initial_return_save): Likewise.
17857         (flush_queued_reg_saves): Remap register numbers.
17858         (dwarf2out_return_reg): Likewise.
17860 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17862         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
17864         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
17865         access functions for lower bound and element size and only output
17866         if lower bound nonzero or element size not same as that of type.
17867         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
17869 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
17871         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
17873 2004-07-01  Per Bothner  <per@bothner.com>
17875         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
17877 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
17879         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
17880         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
17881         first operand.  Don't optimize if the bitfield is volatile.
17883 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
17885         * c-pretty-print.c (pp_c_postfix_expression): Handle
17886         floating-point comparison operators.
17887         (pp_c_expression): Pass floating-point comparison
17888         operators to pp_c_postfix_expression.
17890 2004-07-01  Roger Sayle  <roger@eyesopen.com>
17892         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
17893         rtx_cost instead of "had_mult" to determine whether the transformed
17894         expression is cheaper than the original.
17896 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
17898         * alias.c (get_alias_set, canon_rtx, get_addr,
17899         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
17900         Use MEM_P.
17901         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
17902         expand_builtin): Likewise.
17903         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
17904         Likewise.
17905         * combine.c (can_combine_p, combinable_i3pat, try_combine,
17906         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
17907         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
17908         record_dead_and_set_regs_1, get_last_value_validate,
17909         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
17910         * cse.c (check_dependence, canon_hash, equiv_constant,
17911         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
17912         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
17913         count_reg_usage): Likewise.
17914         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
17915         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
17916         cselib_record_sets): Likewise.
17917         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
17918         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
17919         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
17920         * df.c (df_uses_record): Likewise.
17921         * dojump (do_jump): Likewise.
17922         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
17923         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
17924         decl_start_label): Likewise.
17925         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
17926         operand_subword, change_address_1, make_safe_from): Likewise.
17927         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
17928         stabilize, force_not_mem): Likewise.
17929         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
17930         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
17931         * expr.c (convert_move, convert_modes, emit_block_move,
17932         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
17933         emit_move_insn_1, expand_assignment, store_expr,
17934         store_constructor_field, store_constructor, store_field,
17935         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
17936         Likewise.
17937         * final.c (cleanup_subreg_operands, alter_subreg,
17938         get_mem_expr_from_op): Likewise.
17939         * flow.c (notice_stack_pointer_modification_1,
17940         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
17941         Likewise.
17942         * function.c (mark_temp_addr_taken, preserve_temp_slots,
17943         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
17944         optimize_bit_field, flush_addressof, purge_addressof_1,
17945         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
17946         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
17947         keep_stack_depressed): Likewise.
17948         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
17949         noce_process_if_block, find_memory): Likewise.
17950         * integrate.c (subst_constants, allocate_initial_values): Likewise.
17951         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
17952         update_equiv_regs): Likewise.
17953         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
17954         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
17955         * optabs.c (expand_abs, emit_unop_insn): Likewise.
17956         * passes.c (rest_of_handle_final): Likewise.
17957         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
17958         move2add_note_store): Likewise.
17959         * ra-build.c (detect_remat_webs): Likewise.
17960         * ra-debug.c (dump_static_insn_cost): Likewise.
17961         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
17962         * recog.c (validate_change, apply_change_group, cancel_changes,
17963         validate_replace_rtx_1, general_operand, register_operand,
17964         nonmemory_operand, push_operand, pop_operand, memory_operand,
17965         indirect_operand, asm_operand_ok, offsettable_memref_p,
17966         offsettable_nonstrict_memref_p, constrain_operands,
17967         store_data_bypass_p): Likewise.
17968         * reg-stack.c (subst_stack_regs_pat): Likewise.
17969         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
17970         copy_cost, reg_scan_mark_refs): Likewise.
17971         * regmove.c (optimize_reg_copy_3, stack_memref_p,
17972         combine_stack_adjustments_for_block): Likewise.
17973         * regrename.c (copyprop_hardreg_forward_1): Likewise.
17974         * reload.c (can_reload_into, push_reload, decompose, immune_p,
17975         find_reloads, find_reloads_address, find_reloads_address_1,
17976         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
17977         find_equiv_reg): Likewise.
17978         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
17979         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
17980         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
17981         delete_address_reloads): Likewise.
17982         * resource.c (mark_referenced_resources): Likewise.
17983         * rtlanal.c (get_jump_table_offset, count_occurrences,
17984         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
17985         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
17986         num_sign_bit_copies1): Likewise.
17987         * rtlhooks.c (gen_lowpart_general): Likewise.
17988         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
17989         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
17990         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
17991         sdbout_global_decl): Likewise.
17992         * simplify-rtx.c (simplify_subreg): Likewise.
17993         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
17994         expand_anon_union_decl, expand_end_case_type): Likewise.
17995         * unroll.c (calculate_giv_inc): Likewise.
17996         * var-tracking.c (stack_adjust_offset_pre_post,
17997         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
17998         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
17999         vt_add_function_parameters): Likewise.
18000         * varasm.c (make_var_volatile, notice_global_symbol,
18001         assemble_external, decode_addr_const, mark_weak,
18002         default_encode_section_info): Likewise.
18004 2004-07-01  Steven Bosscher  <stevenb@suse.de>
18006         * stmt.c (check_seenlabel): Remove.
18007         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
18009 2004-07-01  Richard Henderson  <rth@redhat.com>
18011         * function.h (struct function): Remove x_function_call_count.
18012         (function_call_count): Remove.
18013         * calls.c (expand_call): Don't set it.
18014         * integrate.c (copy_rtx_and_substitute): Likewise.
18016         * function.h (struct function): Remove x_cleanup_label.
18017         (cleanup_label): Remove.
18018         * stmt.c (expand_value_return): Don't use it.
18019         * function.c (free_after_compilation): Don't set it.
18020         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
18021         * cfgexpand.c (tree_expand_cfg): Update call.
18022         * tree.h (expand_function_start): Update decl.
18024 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
18026         PR c/1027
18027         * c-lang.c (c_initialize_diagnostics): Move from here ...
18028         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
18029         (c_tree_printer): Use pretty-printer to format %T.
18030         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
18031         before '*' if not C++.
18032         (pp_c_direct_abstract_declarator): Don't try to print array upper
18033         bound for flexible array members.
18034         * c-tree.h: Include "diagnostic.h".
18035         (c_initialize_diagnostics): Declare.
18036         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
18037         * c-format.c (format_type_warning): New function.  Improve
18038         diagnostics for incorrect format argument types.
18039         (check_format_types): Use it.  Add two parameters.  Use the
18040         TYPE_MAIN_VARIANT of wanted_type.
18041         (check_format_info_main): Pass new parameters to
18042         check_format_types.
18043         (struct format_wanted_type): Update comment.
18045 2004-07-01  Nick Clifton  <nickc@redhat.com>
18047         * target.h (struct gcc_target): Add new field to struct cxx:
18048         import_export_class.
18049         * target-def.h (TARGET_CXX): Initialise the new field.
18050         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
18051         the new field.
18052         * doc/tm.texi: Document the new target hook.
18054 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
18056         * builtins.c (fold_builtin_classify): Fix typo.
18058 2004-07-01  Richard Henderson  <rth@redhat.com>
18060         * function.c (identify_blocks, identify_blocks_1): Remove.
18061         * function.h (identify_blocks): Remove.
18062         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
18064 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
18066         * builtins.c (fold_builtin_classify): New.
18067         (fold_builtin_unordered_cmp): Fix commentary.
18068         (fold_builtin): Use it.
18069         * builtins.def: Define builtins for isnan,
18070         isnanf, isnanl, finite, finitef, finitel,
18071         isinf, isinff, isinfl.
18073 2004-07-01  Richard Henderson  <rth@redhat.com>
18075         * function.h (struct function): Remove dont_emit_block_notes.
18076         * gimple-low.c (lower_function_body): Don't set it.
18077         * cfgexpand.c (expand_block): Don't check it.
18078         * cfglayout.c (insn_locators_initialize): Likewise.
18079         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
18080         * passes.c (rest_of_compilation): Likewise.
18081         * stmt.c (expand_start_bindings_and_block): Likewise.
18082         (expand_end_bindings): Likewise.
18084 2004-07-01  Richard Henderson  <rth@redhat.com>
18086         * cgraph.h (cgraph_build_static_cdtor): Declare.
18087         * cgraphunit.c (cgraph_build_static_cdtor): New.
18088         * c-objc-common.c (build_cdtor): Use it.
18089         * coverage.c (create_coverage): Likewise.
18090         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
18091         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
18093 See ChangeLog.11 for earlier changes.