OSDN Git Service

Remove inclusion of loop.h
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-10-13  Nick Clifton  <nickc@redhat.com>
2
3         * config/c4x/c4x.c: Remove inclusion of loop.h.
4
5 2004-10-12  Ben Elliston  <bje@au.ibm.com>
6
7         * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
8         (ei_container): New; renamed.
9         (ei_start, ei_last): New macros.
10         (ei_start_1, ei_last_1): Renamed from ei_start.
11         (ei_last_1, ei_end_p): Use ei_container() where applicable.
12         (ei_one_before_end_p, ei_next, ei_edge): Likewise.
13         * gcse.c (remove_reachable_equiv_notes): Use ei_container().
14
15 2004-10-11  Sebastian Pop  <pop@cri.ensmp.fr>
16  
17         * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
18         * cfgloop.c (initialize_loops_parallel_p): New.
19         (flow_loops_find): Initialize the parallel_p field to true for all 
20         the loops.
21         * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
22         (estimate_numbers_of_iterations_loop): Infers the loop bounds from 
23         the size of the data accessed in the loop.
24         (struct nb_iter_bound): Moved... 
25         * cfgloop.h (struct nb_iter_bound): ... here.
26         (estimated_nb_iterations, parallel_p): New fields in struct loop.
27         (record_estimate): Declare extern here.
28         * tree-chrec.c: Fix comments.
29         (nb_vars_in_chrec): New function.
30         * tree-chrec.h (nb_vars_in_chrec): Declared here.
31         * tree-data-ref.c: Don't include lambda.h, that is already included 
32         in tree-data-ref.h.
33         (tree_fold_divides_p): Don't check for integer_onep.
34         (tree_fold_bezout): Removed.
35         (gcd): New static duplicated function.
36         (int_divides_p, dump_subscript): New.
37         (dump_data_dependence_relation): Use dump_subscript.
38         (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations, 
39         estimate_niter_from_size_of_data): New.
40         (analyze_array_indexes, analyze_array): Call 
41         estimate_niter_from_size_of_data during the detection of array 
42         references.  Pass in a pointer to the statement that contains the 
43         array reference.
44         (all_chrecs_equal_p): New.
45         (compute_distance_vector): Renamed compute_subscript_distance.
46         Deal with multivariate conflict functions.
47         (initialize_data_dependence_relation): Initialize DDR_AFFINE_P, 
48         DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
49         (non_affine_dependence_relation): New.
50         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine, 
51         analyze_siv_subscript, analyze_miv_subscript, 
52         analyze_overlapping_iterations, subscript_dependence_tester): 
53         Initialize and return last_conflicts function.
54         (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
55         compute_overlap_steps_for_affine_1_2): New.
56         (analyze_siv_subscript_affine_cst): Removed.
57         (analyze_subscript_affine_affine): Disprove dependences based on the 
58         iteration domains.  Solve the univariate dependence case as before, 
59         but use lambda_matrix_right_hermite instead of tree_fold_bezout.
60         Implement the multivariate case of 2 versus 1 variables.
61         (build_classic_dist_vector, build_classic_dir_vector): Implement some 
62         unhandled cases.
63         (find_data_references_in_loop): Compute and initialize 
64         loop->estimated_nb_iterations and loop->parallel_p.
65         (analyze_all_data_dependences): Modify the debug dump order.
66         * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
67         subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
68         (SUB_LAST_CONFLICT, subscript->last_conflict, 
69         data_dependence_relation->affine_p, data_dependence_relation->size_vect,
70         DDR_AFFINE_P, DDR_SIZE_VECT): New.
71         (find_data_references_in_loop, initialize_data_dependence_relation,
72         dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
73
74 2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>
75
76         * configure: Regenerate.
77
78 2004-10-12  Fariborz Jahanian <fjahanian@apple.com>
79
80         PR 17892
81         * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
82         (simplify_rhs_and_lookup_avail_expr): Disallow associativity
83         and constant folding of floating point MULT_EXPR/PLUS_EXPR 
84         expressions.
85
86 2004-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
87
88         * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
89         (s390_gimplify_va_arg): Likewise.
90
91 2004-10-12  Daniel Jacobowitz  <dan@debian.org>
92
93         * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
94         (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
95         (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
96         * regclass.c (record_address_regs): Remove ifdef.  Use
97         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
98         * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
99         definition.
100         (scan_rtx_address, replace_oldest_value_addr): Use
101         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
102         * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
103         unnecessary definitions.
104         (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
105         and MODE_BASE_REG_REG_CLASS.
106         * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
107         (MODE_BASE_REG_REG_CLASS): Define.
108         (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
109         (REG_MODE_OK_FOR_REG_BASE_P): Define.
110         * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
111         REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
112
113 2004-10-12  Daniel Berlin <dberlin@dberlin.org>
114
115         * tree-ssa-alias.c (verify_name_tags): New function.
116         (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
117         (verify_alias_info): Call verify_name_tags.
118
119 2004-10-12  Kazu Hirata  <kazu@cs.umass.edu>
120
121         PR rtl-optimization/17931
122         * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
123         ZERO_EXTRACT in it.
124
125 2004-10-12  Richard Earnshaw  <rearnsha@arm.com>
126
127         * arm.c (arm_print_operand): Use output_operand_lossage where possible
128         rather than aborting.
129
130 2004-10-12  Paul Brook  <paul@coudesourcery.com>
131
132         * config.gcc: Add armv6{k,z,zk}
133         * config/arm/arm-cores.def: Add arm1176 and mpcore.
134         * config/arm/tune.md: Regenerate.
135         * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
136         Define.
137         (all_architectures): Add armv6k, armv6z, armv6zk.
138         * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
139         * doc/invoke.texi: Document new arch and cpu values.
140
141 2004-10-12  Paul Brook  <paul@coodesourcery.com>
142
143         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
144         meabi=4.
145
146 2004-10-12  Paul Brook  <paul@codesourcery.com>
147
148         * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
149         Handle negative constants.
150
151 2004-10-12  Joseph S. Myers  <jsm@polyomino.org.uk>
152
153         PR c/17301
154         * c-typeck.c (convert_arguments): Return error_mark_node if there
155         are too few arguments.
156         (build_function_call): Handle error_mark_node return from
157         convert_arguments.
158
159 2004-10-06  Paolo Bonzini  <bonzini@gnu.org>
160
161         * configure.ac (symbolic_link): Replace with $LN_S.
162         (Assembler/Linker): Hard link from gas and binutils trees.
163         * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
164         * configure: Regenerate.
165
166 2004-10-12  Paul Brook  <paul@codesourcery.com>
167
168         * configure.ac: Don't look for host assembler when building a canadian
169         cross.
170         * configure: Regenerate.
171
172 2004-10-11  Roger Sayle  <roger@eyesopen.com>
173
174         PR other/17361
175         * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
176         (c_common_init_options): Remove #ifdef CL_F77 code.  Scan command
177         line options for "-lang-asm" and if found allow any of the C-family
178         front-end options.
179         (c_common_handle_option): Remove last use of permit_fortran_options.
180
181 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
182
183         * config/s390/s390.c (print_operand): Support 'S' format flag.
184         * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
185         ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
186         ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
187         ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
188         ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
189         ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
190         ("*movstricthi"): Likewise.
191         ("*load_multiple_di", "*load_multiple_si"): Likewise.
192         ("*store_multiple_di", "*store_multiple_si"): Likewise.
193         ("*sethiqisi", "*sethihisi"): Likewise.
194         ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
195         ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
196         ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
197         ("*xorqi3", "*xc", "*xc_zero"): Likewise.
198         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
199
200         ("*tmhi_full"): Fix incorrect op_type attribute.
201
202         ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
203         ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
204         ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
205         ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
206
207 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu
208
209         PR middle-end/16266
210         * function.c (temp_slots_at_level): Fix typo which creates too
211         many temp stack slots levels.
212
213 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
214
215         * config/s390/s390.c (s390_trampoline_template): Generate shorter
216         trampoline code.
217         (s390_trampoline_instantiate): Adapt.
218         * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
219
220 2004-10-11  Roger Sayle  <roger@eyesopen.com>
221
222         PR middle-end/17657
223         * stmt.c (add_case_node): Add additional type argument.  Declare
224         as static to match prototype.  Convert the upper and lower bounds
225         to the specified index type.  Optimize away case ranges/values 
226         that are outside the index type's bounds.  Truncate case ranges
227         that span the index type's bounds.
228         (expand_case): Avoid unnessary computation and memory allocation
229         when index type is error_mark_node.  Pass index_type as required
230         by change to add_case_node API.  No need to convert case range
231         bounds to index_type, this is now done by add_case_node.
232
233 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
234
235         * config/s390/s390-protos.h (s390_offset_p): Add prototype.
236         * config/s390/s390.c (s390_offset_p): New function.
237         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
238         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
239         transform Q->Q alternatives to *clc pattern.
240         ("*clc"): Move.
241         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
242         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
243         to transform Q->Q alternatives to *mvc pattern.
244         ("*mvc"): Move.  Add peephole to merge adjacent MVCs.
245         ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
246         "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
247         transform Q->Q alternatives to *nc pattern.
248         ("*nc"): New insn.  New peephole to merge adjacent NCs.
249         ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
250         "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
251         transform Q->Q alternatives to *oc pattern.
252         ("*oc"): New insn.  New peephole to merge adjacent OCs.
253         ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
254         transform Q->Q alternatives to *xc pattern.
255         ("*xc"): New insn.  New peephole to merge adjacent XCs.
256         ("*xc_zero"): Move.  Add peephole to merge adjacent XCs.
257
258 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
259
260         * gimplify.c (gimple_push_condition): Make sure that we don't
261         have any saved condition cleanup if we were at the top level.
262
263 2004-10-11  Richard Sandiford  <rsandifo@redhat.com>
264
265         * config/frv/frv.md (*adddi3_internal): Change name to...
266         (adddi3): ...replacing the exisiting define_expand.  Combine
267         alternatives.  Fix the range of the constant constraints ('J' instead
268         of 'NOP').  Remove bogus operands[2] check.  Use simplify_gen_subreg
269         to extract the lower and upper halves of the DImode operands.
270         Always use addi3_lower and adddi3_upper, not the subdi3 forms.
271         (adddi3_lower): Fix the range of the constant constraints and
272         remove the bogus operands[2] check.
273         (adddi3_upper): Use gpr_or_int10_operand as the predicate for
274         operand 2.  Use addxi to handle constant operands.
275         (subdi3_lower, subdi3_upper): Don't handle constant operands.
276
277 2004-10-11  Nathan Sidwell  <nathan@codesourcery.com>
278
279         * gengtype-lex.l: Add commented } & ) characters to unconfuse
280         editor's paren matching. Allow #define inside a struct.
281
282 2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>
283
284         PR middle-end/17703
285         part of PR c++/17657
286         * fold-const.c (fold_build_cleanup_point_expr): New function.
287         * tree.h (fold_build_cleanup_point_expr): Prototype.
288
289 2004-10-10  Eric Christopher  <echristo@redhat.com>
290
291         * dwarf2out.c: Move attribute to subprogram declaration
292         instead of subroutine type.
293
294 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
295
296         * basic-block.h: Remove the prototypes for can_hoist_insn_p,
297         hoist_insn_after, and hoist_insn_to_edge.
298         * rtl.h: Remove the prototypes for reg_referenced_between_p,
299         no_jumps_between_p, and insn_dependent_p.
300         * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
301         insn_dependent_p, insn_dependent_p_1, hoist_test_store,
302         can_hoist_insn_p, hoist_update_store, hoist_insn_after,
303         hoist_insn_to_edge): Remove.
304
305 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
306
307         PR c/17881
308         * c-decl.c (grokparms): Don't warn for parameters of incomplete
309         type in declarations that are not definitions except for the case
310         of parameters of void type.
311
312 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
313
314         * tree-cfg.c: Fix comment typos.
315
316 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
317
318         PR c/17301
319         * builtins.c (expand_builtin_va_start): Check for too few
320         arguments to va_start.
321
322 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
323
324         PR c/17189
325         * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
326         fields a pedwarn.  Pedwarn here for unnamed structs/unions if
327         pedantic.
328         * c-parse.in (component_decl): Don't pedwarn here for unnamed
329         fields.
330
331 2004-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
332
333         PR tree-optimization/17906
334         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
335         copy non-gimple reg arguments.
336
337 2004-10-09  Roger Sayle  <roger@eyesopen.com>
338
339         PR rtl-optimization/17853
340         * simplify-rtx.c (simplify_relational_operation): Correct comment.
341         Reorganize handling of comparison operations with floating point
342         results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
343         Likewise, introduce support for comparison operations with vector
344         result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
345
346         * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
347         * doc/tm.texi: Likewise.
348
349 2004-10-09  Steven Bosscher  <stevenb@suse.de>
350
351         * regs.h (struct reg_info_def): Remove the last_node_uid and
352         changes_mode fields.
353         (REGNO_LAST_NOTE_UID): Don't define.
354         * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
355         * regmove.c (copy_src_to_dest): Likewise.
356
357 2004-10-09  Roger Sayle  <roger@eyesopen.com>
358
359         PR middle-end/17894
360         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
361         relational comparison operator op needs to be swapped/reversed when
362         C1 is negative.  i.e. X/-10 < 1 becomes X >= -9, not X < -9.
363
364 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
365
366         PR tree-opt/17902
367         * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
368         instead of bsi_start.
369         (value_replacement): Likewise.
370         (abs_replacement): Likewise
371
372 2004-10-09  Steven Bosscher  <stevenb@suse.de>
373
374         * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
375         (expand_gimple_cond_expr, expand_gimple_tailcall,
376         expand_gimple_basic_block): Use it to dump RTL for each stmt.
377         (tree_expand_cfg): Announce full RTL function dump.
378         * tree-optimize.c (execute_one_pass): Use normal RTL printing,
379         not the graph version.
380         * tree-pretty-print.c (dump_generic_node): Allow empty statements
381         in the arms of a COND_EXPR for lowered nodes.
382
383 2004-10-08  Joseph S. Myers  <joseph@codesourcery.com>
384
385         * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
386         atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
387         strtoufix16, strtoufix32, strtoufix64): Declare.
388
389 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
390
391         * c-lex.c (interpret_float): Give a pedwarn rather than a warning
392         for an out-of-range floating point constant.
393         * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
394         warning if the target format does not support infinities.
395
396 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
397
398         * emit-rtl.c (last_label_num, base_label_num): Remove.
399         (max_label_num): Always return label_num.
400         (set_new_last_label_num, restore_emit_status): Remove.
401         (init_emit): Don't initialize last_label_num.
402         * function.c (pop_function_context_from): Don't call
403         restore_emit_status.
404         * function.h: Remove the prototype for restore_emit_status.
405         * rtl.h: Remove the prototype for set_new_last_label_num.
406
407 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
408
409         * stmt.c (expand_decl_init): Remove.
410         * tree.h: Remove the corresponding prototype.
411
412 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
413
414         * integrate.c (try_constants, subst_constants, mark_stores):
415         Remove.
416         * integrate.h: Remove the prototype for try_constants.
417
418 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
419
420         * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
421         (convert_for_assignment): Handle ic_argpass_nonproto.  Add
422         comments about its relevance to errors.
423         (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
424
425 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
426
427         PR c/16999
428         * c-ppoutput.c (cb_ident): Don't quote string as it is already
429         quoted.
430
431 2004-10-08  Diego Novillo  <dnovillo@redhat.com>
432
433         * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
434         reference_node_pool.
435
436 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
437
438         * tree-cfg.c: Fix a comment typo.
439
440 2004-10-08  Andreas Krebbel  <krebbel1@de.ibm.com>
441
442         * config/s390/s390.c (s390_register_info): Don't save fprs for
443         -msoft-float.
444         (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
445
446 2004-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
447
448         * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
449         (TARGET_DEFAULT): Use symbolic values.
450         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
451         (TARGET_DEFAULT): Use symbolic values.
452         * config/s390/s390.c (s390_backchain_string): Initialize to
453         TARGET_DEFAULT_BACKCHAIN.
454
455 2004-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
456
457         * builtins.c (expand_builtin_mempcpy): Move tree handling code to
458         fold_builtin_mempcpy.  Accept a type parameter.  Delete duplicate
459         code.
460         (expand_builtin_strcat): Accept a type parameter.
461         (fold_builtin_mempcpy): Accept a type and endp parameter.
462
463         * builtins.c (expand_builtin_strncpy): Delete duplicate code.
464         Accept an `exp' instead of an `arglist'.
465
466 2004-10-08  Nathan Sidwell  <nathan@codesourcery.com>
467
468         * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
469         reverting my 2004-09-07 patch to use build_int_cst.
470
471 2004-10-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
472
473         PR target/17245
474         * config/sparc/sparc.c (input_operand): Remove redundant code
475         for handling LO_SUM.
476         (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
477         <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
478         Otherwise only accept it for TFmode if quad move insns are available.
479
480 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
481
482         * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
483         common cases will be caught earlier than others.
484
485 2004-10-08  Michael Matz  <matz@suse.de>
486
487         * loop-doloop.c (doloop_optimize): Extend count.
488
489 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
490
491         * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
492         (prefetch): Convert to expander.
493
494 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
495
496         * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
497         first argument of CALL.
498         (tls_local_dynamic): Likewise.
499
500 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
501
502         * c-typeck.c (enum impl_conv): New.
503         (convert_for_assignment): Use it.  Take tree for function called
504         instead of its name.  Handle ObjC selectors for diagnostics at
505         start of function.  Select diagnostic text within the function
506         using full sentences for diagnsotics.  Use %qE to name functions
507         in diagnostics.
508         (convert_arguments, build_modify_expr,
509         c_convert_parm_for_inlining, digest_init, c_finish_return): Update
510         callers to convert_for_assignment.
511         (warn_for_assignment): Remove.
512
513 2004-10-08  Nick Clifton  <nickc@redhat.com>
514
515         * config/sh/symbian.c (symbian_possibly_export_base_class):
516         Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
517         TYPE_CONTAINS_VPTR_P.
518
519 2004-10-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
520
521         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
522         fixed registers form all_used_regs. Update call_really_used_regs.
523         (CALL_REALLY_USED_REGISTERS): Define.
524         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
525         with call_really_used_regs.
526
527 2004-10-08  Alan Modra  <amodra@bigpond.net.au>
528
529         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
530         for -profile as well as -p and -pg.
531
532 2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>
533
534         * libgcc2.c (__moddi3): Cast &w to UDWtype*.
535
536 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
537
538         * tree-cfg.c (tree_block_forwards_to): Remove.
539         * tree-flow.h: Remove the corresponding prototype.
540
541 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
542
543         * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
544         for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
545
546 2004-10-07  Geoffrey Keating  <geoffk@apple.com>
547
548         Radar 3813796
549         * config/rs6000/rs6000.c (rs6000_generate_compare): When
550         flag_trapping_math is in effect, don't generate subtract
551         instructions.
552
553 2004-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
554
555         * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
556         * config/s390/s390.c (s390_narrow_logical_operator): New function.
557         (s390_extra_constraint_str): Add 'A' constraints.
558         (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
559         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
560         (CONSTRAINT_LEN): Likewise.
561         * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
562         ("*andsi3_zarch", "*andsi3_esa"): Likewise.
563         ("*andhi3_zarch", "*andhi3_esa"): Likewise.
564         ("*iordi3"): Add OI alternative and splitter.
565         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
566         ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
567         ("*xordi3"): Add XI alternative and splitter.
568         ("*xorsi3", "*xorhi3"): Likewise.
569
570 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
571
572         * config/mips/mips.c (mips_function_rodata_section): New function.
573         (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
574
575 2004-10-07  Devang Patel  <dpatel@apple.com>
576
577         * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
578         UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
579         UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
580         UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
581         UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
582         UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
583         UNSPEC_VCONDU_V16QI): New constant defines.
584         (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
585         vconduv16qi): New patterns.
586         * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
587         * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
588         (get_vec_cmp_insn): Same.
589         (get_vsel_insn): Same.
590         (rs6000_emit_vector_compare): Same.
591         (rs6000_emit_vector_select): Same.
592         (INSN_NOT_AVAILABLE): New.
593
594 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
595
596         PR tree-optimization/17749
597         * tree-tailcall.c (find_tail_calls): Check that parameter is
598         a gimple_reg.
599
600 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
601
602         * config/ia64/ia64.c: Fix a comment typo.
603
604 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
605
606         * doc/install.texi (*-*-solaris2*): Fix marker for URL.
607
608 2004-10-07  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
609
610         PR c++/17115
611         * tree-inline.c (expand_call_inline): Do not warn for functions
612         marked with attribute noinline.
613
614 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
615
616         PR target/17862
617         * config/sparc/sparc.c (sparc_output_mi_thunk): Set
618         current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
619
620         * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
621         of 0 as 4th argument to pass_by_reference.
622         Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
623
624 2004-10-06  Eric Christopher  <echristo@redhat.com>
625
626         * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
627         attribute.
628
629 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
630
631         PR target/17770
632         * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
633
634 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
635
636         PR rtl-optimization/17791
637         * loop-doloop.c (doloop_modify): Take number of iterations as
638         argument.
639         (doloop_optimize): Extend or shorten the number of iterations
640         when changing mode of counter register.
641         * loop-iv.c (lowpart_subreg): Export.
642         * rtl.h (lowpart_subreg): Declare.
643
644 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
645
646         PR tree-optimization/17806
647         * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
648         * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
649         flags moved to split_edge.
650
651 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
652
653         PR middle-end/17835
654         * expmed.c (expand_sdiv_pow2): Force a stack adjustment
655         before tentatively building the conditional move sequence.
656
657 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
658
659         PR target/16815
660         * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
661         check.
662         * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
663         function_arg_padding.
664
665 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
666
667         PR bootstrap/17857
668         * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
669
670 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
671
672         * hooks.c (hook_int_void_1, hook_void_int): Remove.
673         * hooks.h: Remove the corresponding prototypes.
674
675 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
676
677         PR middle-end/17849
678         * tree-nested.c (walk_stmt_info): Add changed field.
679         (convert_nonlocal_reference): Set changed to when we
680         change a decl to unnested decl.
681         <case ADDR_EXPR>: Instead of checking if the immediate part
682         of the ADDR_EXPR changed, check the field changed.
683         Use recompute_tree_invarant_for_addr_expr instead of unsetting
684         TREE_INVARIANT.
685         (convert_local_reference):  Set changed to when we
686         change a decl to unnested decl.
687         <case ADDR_EXPR>: Instead of checking if the immediate part
688         of the ADDR_EXPR changed, check the field changed.
689         Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
690
691 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
692
693         * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
694         * dwarf2out.c (dwarf2out_init): Remove references to
695         DWARF2_GENERATE_TEXT_SECTION_LABEL.
696         * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
697         * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
698
699 2004-10-06  Joseph S. Myers  <jsm@polyomino.org.uk>
700
701         * c-typeck.c (convert_arguments): Take expression for called
702         function rather than its name.  Handle ObjC selectors directly
703         rather than relying on warn_for_assignment to do so.  Call warning
704         directly rather than warn_for_assignment.  Use %qE in diagnostics.
705         Say "argument" rather than "arg" in diagnostics.
706         (build_function_call): Update call to convert_arguments.
707
708 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
709
710         PR debug/17787
711         * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
712         ENUMs specially instead of just saying we do.
713
714 2004-10-06  Eric Christopher  <echristo@redhat.com>
715
716         * dwarf2.h: Sync with include/elf/dwarf2.h
717
718 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
719
720         * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
721         and TREE_VEC nodes.
722
723 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
724
725         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
726         to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
727
728 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
729
730         * lambda-code.c (compute_nest_using_fourier_motzkin): New
731         function.
732         (lambda_compute_auxillary_space): Split from here.
733
734 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
735
736         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
737         * tree-flow.h: Add prototype.
738         * lambda-code.c (invariant_in_loop_and_outer_loops): Use
739         expr_invariant_in_loop.
740
741 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
742
743         * tree-cfg.c (thread_jumps): Remove a duplicate check for
744         EXIT_BLOCK_PTR.
745
746 2004-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
747
748         * config/s390/s390-protos.h (s_imm_operand): Remove.
749         (s390_pool_operand): Add prototype.
750         * config/s390/s390.c (general_s_operand): Remove.
751         (s_imm_operand): Remove.
752         (s_operand): Merge contents of general_s_operand.
753         (s390_pool_operand): New function.
754         * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
755         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
756         ("*cmpdi_ccu"): Merge Q->Q alternative.
757         ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
758         ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
759         ("*cli"): Remove.
760         ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
761         ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
762         ("*movstricthi"): Use memory_operand instead of s_imm_operand.
763
764 2004-10-06  Steve Ellcey  <sje@cup.hp.com>
765
766         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
767         call ia64_function_arg_boundary.
768         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
769         * config/ia64/ia64.c (ia64_function_arg_boundary): New.
770         (ia64_function_arg_advance): Do not put 128 bit floats into
771         FP registers.
772
773 2004-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
774
775         * builtins.c (expand_builtin_strcpy): Delete duplicate code.
776         Accept an expression instead of an arglist.
777         (expand_builtin_stpcpy): Accept an expression instead of an
778         arglist.
779
780 2004-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
781
782         PR target/16007
783         * doc/install.texi (*-*-solaris2*): Mention potential problem
784         with Sun assembler + GNU linker and C++ programs.
785         Document status of binutils 2.15 release.
786
787 2004-10-06  Jan Hubicka  <jh@suse.cz>
788
789         * cse.c (cse_main): Kill push/pop context.
790
791 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
792
793         * pretty-print.c: Include tree.h.
794         (pp_base_prepare_to_format): New function, logic from
795         text_specifies_location.
796         (pp_base_format_text): Use gcc_assert.
797         * pretty-print.h (pp_prepare_to_format): New macro.
798         (pp_base_prepare_to_format): Prototype.
799         * diagnostic.c (text_specifies_location): Delete.
800         (bug_report_request): Delete.
801         (diagnostic_set_info): Don't call text_specifies_location.
802         (diagnostic_action_after_output): Put text from
803         bug_report_request inline here.  Use gcc_unreachable.
804         (diagnostic_report_current_function): Fix comment.
805         (diagnostic_report_diagnostic): Clarify logic for error recursion.
806         Call pp_prepare_to_format before diagnostic_starter.
807         (trim_filename): Use IS_DIR_SEPARATOR.
808         (fatal_error, internal_error): Use gcc_unreachable.
809         (error_recursion): Call diagnostic_action_after_output to
810         issue the bug_report_request message and exit.
811         * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
812
813         * c-parse.in: Add list of diagnostic messages to insulate
814         translation template from version of yacc/bison used to
815         compile the grammar.
816
817 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
818
819         PR 16406
820         * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
821
822 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
823
824         * basic-block.h: Remove the prototype for
825         flow_preorder_transversal_compute.
826         * cfganal.c (dfst_node): Remove.
827         (flow_preorder_transversal_compute): Likewise.
828         * rtl.h: Remove the prototype for get_jump_table_offset.
829         * rtlanal.c (get_jump_table_offset): Remove.
830
831 2004-10-05  Richard Henderson  <rth@redhat.com>
832
833         PR 17756
834         * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
835
836 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
837
838         PR bootstrap/17817
839         * Makefile.in: Stage the build directory too.
840
841 2004-10-05  Aldy Hernandez  <aldyh@redhat.com>
842
843         * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
844
845         * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
846         (frv_emit_move): Same.
847
848         * config/frv/frv.c (frv_emit_move): New.
849         (frv_legitimize_address): New.
850
851         * config/frv/frv.md ("movsi"): Call frv_emit_move.
852         ("movqi"): Same.
853         ("movhi"): Same.
854         ("movdi"): Same.
855         ("movsf"): Same.
856         ("movdf"): Same.
857
858 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
859
860         * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
861         system headers.
862
863 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
864
865         * c-decl.c (pushdecl): When an extern declaration at block scope
866         refers to a visible entity with internal linkage, use the old DECL
867         rather than the new one.
868
869 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
870
871         * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
872         comments.
873
874 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
875
876         * tree-cfg.c (thread_jumps): Remove a duplicate check for
877         an infinite loop.
878
879 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
880
881         * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
882         of FOR_BB_BETWEEN.  Remove a useless check for unreachable
883         blocks.
884
885 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
886
887         * tree-cfg.c (cleanup_tree_cfg): Don't call
888         delete_unreachable_blosk() after thread_jumps().
889         (thread_jumps): Always remove basic blocks as they become
890         unreachable.
891
892 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
893
894         * tree-cfg.c (cleanup_tree_cfg): Remove variable
895         something_changed.  Simplify the while loop.
896
897 2004-10-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
898
899         * builtins.c (expand_builtin_memmove): Delete duplicate code
900         and accept a tree type for the result.
901         (expand_builtin_bcopy): Accept a tree type for the result.
902         (fold_builtin_memmove): Accept an arglist and tree type for
903         the result.
904
905 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
906
907         * config/s390/s390.c (s390_dump_pool): Remove return value.
908         Use gen_pool_align, gen_pool_section_start/end instead of
909         gen_pool_start/end_31/64.
910         * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
911         (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
912         ("pool_start_31", "pool_end_31"): Remove.
913         ("pool_start_64", "pool_end_64"): Likewise.
914         ("pool_align", "pool_section_start", "pool_section_end": New insns.
915
916         * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
917         (TARGET_CANNOT_COPY_INSN_P): Define.
918         (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
919         (struct constant_pool): New member 'execute'.
920         (s390_add_execute, s390_find_execute): New functions.
921         (s390_execute_label, s390_execute_target): Likewise.
922         (s390_dump_pool): Output in-pool execute target templates.
923         (s390_dump_execute): New function.
924         (s390_alloc_pool, s390_free_pool): Handle execute templates.
925         (s390_mainpool_start, s390_mainpool_finish): Likewise.
926         (s390_chunkify_start, s390_chunkify_finish): Likewise.
927         * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
928         ("*execute"): New insn pattern.
929         ("movmem_short", "*movmem_short"): Use splitters to generate
930         explicit execute pattern, remove embedded execute.
931         ("clrmem_short", "*clrmem_short"): Likewise.
932         ("cmpmem_short", "*cmpmem_short"): Likewise.
933
934 2004-10-05  Daniel Berlin  <dberlin@dberlin.org>
935
936         * tree-ssa.c (verify_ssa): Verify phi arguments only
937         contain renamed names.
938
939 2004-10-05  Alan Modra  <amodra@bigpond.net.au>
940
941         * config/rs6000/linux.h: Formatting, whitespace.
942         * config/rs6000/linux64.h: Likewise.
943         * config/rs6000/rs6000-protos.h: Likewise.
944         * config/rs6000/rs6000.c: Likewise.
945         (easy_vector_splat_const): Add fall thru comments.
946         (output_vec_const_move): Likewise.
947
948 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
949
950         * Makefile.in: Update -Wno-error exceptions for move to build dir.
951
952 2004-10-05  Chao-Ying Fu  <fu@mips.com>
953             Richard Sandiford  <rsandifo@redhat.com>
954
955         * doc/invoke.texi (-mpaired-single): Link to the new description of the
956         built-in functions.  Document dependencies.
957         (-mips3d): Add link here too.
958         * doc/extend.texi (MIPS Paired-Single Support): New section.
959
960 2004-10-04  Chao-ying Fu  <fu@mips.com>
961
962         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
963
964 2004-10-04  Diego Novillo  <dnovillo@redhat.com>
965
966         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
967         Initialize OPT_STATS to 0.
968
969 2004-10-04  Kazu Hirata  <kazu@cs.umass.edu>
970
971         * tree-data-ref.c: Fix comment typos.
972
973 2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>
974
975         * tree-data-ref.c (array_base_name_differ_p): Fix comments.  When
976         the predicate cannot be computed, don't initialize the result to
977         false.
978
979 2004-10-01  Eric Christopher  <echristo@redhat.com>
980
981         * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
982         locally defined enum.
983         * dwarf2out.c (add_calling_convention_attribute): Don't
984         emit DW_CC_normal.
985
986 2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>
987
988         PR c/17178, PR c/17820
989         * c-decl.c (pop_scope): Do not warn about unused static
990         variables as they warned in the middle-end.
991
992 2004-10-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
993
994         * builtins.c (expand_builtin_memcpy): Delete duplicate code
995         and make the first parameter the expression not the arglist.
996
997 2004-10-03  Ulrich Weigand  <uweigand@de.ibm.com>
998
999         * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
1000         as valid modes to expand address expressions.
1001
1002 2004-10-03  Joseph S. Myers  <jsm@polyomino.org.uk>
1003
1004         * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
1005         c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
1006         c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
1007         code formatting conventions.
1008
1009 2004-10-03  Richard Sandiford  <rsandifo@redhat.com>
1010
1011         * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
1012
1013 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
1014
1015         PR tree-optimization/16632
1016         * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
1017         fold (A & C) == D into 0, fold ~C.  Similarly, for the case
1018         where | is used instead of &.
1019
1020 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
1021
1022         * ginclude/stddef.h: Fix a comment typo.
1023
1024 2004-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1025
1026         PR target/17443
1027         * config.gcc (i?86-*-solaris2*): Restore correct logic
1028         for --enable-threads option.
1029         (sparc64-*-solaris2*): Likewise.
1030         (sparc-*-solaris2*): Likewise.
1031
1032 2004-10-03  Alan Modra  <amodra@bigpond.net.au>
1033
1034         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
1035         (OS_MISSING_POWERPC64): Move, and comment.
1036         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
1037         (OS_MISSING_POWERPC64): Move, and comment.
1038
1039 2004-10-02  Ian Lance Taylor  <ian@wasabisystems.com>
1040
1041         * arm.c (output_call_mem): Add missing \t.
1042
1043 2004-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1044
1045         * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
1046         expand_builtin_strncmp): Delete duplicate code.
1047
1048 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
1049
1050         * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
1051         take check-base and -limit arguments.
1052         (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
1053         check ranges for ARRAY_REF and COMPONENT_REF.
1054         (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
1055         instrumentation.
1056
1057 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
1058
1059         * c-objc-common.c (c_tree_printer): Correct description of %E.
1060         Don't fall through after printing an expression.
1061
1062 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
1063
1064         * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
1065
1066 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
1067
1068         * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
1069         delete_unrechable_blocks() only when necessary.
1070
1071 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
1072
1073         * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
1074         (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
1075         (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
1076         __gthread_recursive_mutex_unlock): New functions.
1077
1078 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
1079
1080         * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
1081         * config/s390/tpf-eh.c: Remove file.
1082         * config/s390/tpf-unwind.h: New file.
1083         * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
1084         (MD_UNWIND_SUPPORT): Define.
1085
1086 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
1087
1088         * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
1089
1090 2004-10-01  Ulrich Weigand  <uweigand@de.ibm.com>
1091
1092         * config/s390/s390-protos.h (s390_comparison): Add prototype.
1093         * config/s390/s390.c (s390_comparison): New function.
1094         (s390_branch_condition_mask): Return -1 for invalid comparisons.
1095         (s390_branch_condition_mnemonic): Assert valid comparison.
1096         * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
1097         * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
1098         "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
1099         s390_comparison instead of comparison_operator.
1100
1101         * config/s390/s390.md (UNSPEC_CMPINT): New constant.
1102         ("cmpmemdi"): Remove.
1103         ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
1104         ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
1105         ("cmpint_si"): Rename to ...
1106         ("*cmpint_si"): ... this.  Use UNSPEC_CMPINT.
1107         ("cmpint_di", "*cmpint_di"): Likewise.
1108         * config/s390/s390.c (s390_canonicalize_comparison): Remove
1109         redundant UNSPEC_CMPINT conversions.
1110         (s390_expand_cmpmem): Adapt to cmpint pattern changes.
1111
1112 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
1113
1114         * collect2.c (COLLECT_PARSE_FLAG): Remove.
1115         (main): Remove a reference to COLLECT_PARSE_FLAG
1116         * system.h: Poison COLLECT_PARSE_FLAG.
1117         * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
1118
1119 2004-10-01  Paul Brook  <paul@codesourcery.com>
1120
1121         * config/arm/crti.asm: Give _init and _fini function type.
1122
1123 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
1124
1125         * common.opt (ftree-loop-ivcanon): Enable by default.
1126         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
1127         Enable complete loop unrolling.
1128         (canonicalize_induction_variables, tree_unroll_loops_completely):
1129         Reset scev info.
1130
1131 2004-10-01  Paul Brook  <paul@codesourcery.com>
1132
1133         * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
1134         not register number.
1135         (thumb_find_work_register): Search full register range.
1136
1137 2004-10-01  Andrew Pinski  <pinskia@physics.uc.edu>
1138
1139         PR tree-opt/17343
1140         * tree-cfg.c (group_case_labels): Get the label and not
1141         the case expr for the default case.
1142         When the label we looking at is the default, decrement the
1143         new_size.
1144
1145 2004-10-01  Jan Hubicka  <jh@suse.cz>
1146
1147         * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
1148         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1149         * toplev.h (tree_rest_of_compilation): Update prototype.
1150         * tree-optimize.c (tree_rest_of_compilation):  Kill nested_p argument.
1151
1152 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
1153
1154         * tree-cfg.c (cleanup_tree_cfg): Pull a call to
1155         cleanup_control_flow() out of the while loop.
1156
1157 2004-10-01  Paolo Bonzini  <bonzini@gnu.org>
1158
1159         * tree-vectorizer.c (vectorizable_operation): Fail unless
1160         the mode for the vector type is indeed a vector mode.
1161
1162 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
1163
1164         * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
1165         chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
1166         of convert.
1167         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
1168         add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
1169         follow_ssa_edge_in_rhs): Ditto.
1170         * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
1171         (dump_iv): Dump base_object.
1172         (dump_use, dump_cand): Use dump_iv.
1173         (determine_base_object): New function.
1174         (alloc_iv): Initialize base_object field.
1175         (record_use): Clear the ssa_name field of iv.
1176         (get_computation_cost_at): Do not use difference of addresses of
1177         two different objects.
1178         (may_eliminate_iv): Do not require the loop to have just single exit.
1179         * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
1180         (nonzero_p): New function.
1181         (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
1182         tree_simplify_using_condition, simplify_using_initial_conditions,
1183         loop_niter_by_eval, find_loop_niter_by_eval,
1184         estimate_numbers_of_iterations_loop, compare_trees,
1185         upper_bound_in_type, lower_bound_in_type,
1186         can_count_iv_in_wider_type_bound): Use buildN instead of build.  Use
1187         fold_convert or build_int_cst_type instead of convert.  Use (non)zero_p
1188         instead of integer_(non)zerop.
1189
1190 2004-10-01  Jakub Jelinek  <jakub@redhat.com>
1191
1192         Revert
1193         2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1194
1195         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
1196         and TI_VA_LIST_FPR_COUNTER_FIELD.
1197         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
1198         * tree-pass.h (pass_stdarg): Add.
1199         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
1200         * tree-stdarg.c: New file.
1201         * Makefile.in (OBJS-common): Add tree-stdarg.o.
1202         (tree-stdarg.o): Add dependencies.
1203         * function.h (struct function): Add va_list_gpr_size and
1204         va_list_fpr_size fields.
1205         * function.c (allocate_struct_function): Initialize them.
1206
1207         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
1208         va_list_{g,f}pr_counter_field.
1209         (ix86_setup_incoming_varargs): Don't do anything if reg_save
1210         area will not be used.  Only save registers that tree-stdarg.c
1211         detected they need saving.
1212         (ix86_va_start): Don't set up fields that won't be used.
1213
1214         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
1215         va_list_{g,f}pr_counter_field.
1216         (setup_incoming_varargs): Don't do anything if reg_save
1217         area will not be used.  Only save registers that tree-stdarg.c
1218         detected they need saving.
1219         (rs6000_va_start): Don't set up fields that won't be used.
1220
1221 2004-09-30  Eric Christopher  <echristo@redhat.com>
1222
1223         * dwarf2.h (dwarf_calling_convention): Add enum for renesas
1224         sh abi.
1225         * dwarf2out.c (add_calling_convention_attribute): New function.
1226         (gen_subroutine_type_die): Use.
1227         * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
1228         * target.h (gcc_target): Add dwarf_calling_convention.
1229         * hooks.c (hook_int_tree_0): New function.
1230         * hooks.h: Prototype.
1231         * config/sh/sh.c: Include dwarf2.h.
1232         (sh_dwarf_calling_convention): New function.
1233         (TARGET_DWARF_CALLING_CONVENTION): Use.
1234         * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
1235
1236 2004-09-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1237
1238         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
1239         expand_builtin_strrchr, expand_builtin_strpbrk,
1240         expand_builtin_strncat, expand_builtin_strspn,
1241         expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
1242         code.
1243
1244 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
1245
1246         * config/s390/s390-protos.h (s390_expand_logical_operator): Add
1247         prototype.
1248         (s390_logical_operator_ok_p): Likewise.
1249         * config/s390/s390.c (s390_expand_logical_operator): New function.
1250         (s390_logical_operator_ok_p): Likewise.
1251         * config/s390/s390.md ("anddi3"): New expander.
1252         ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
1253         ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
1254         ("andsi3"): Use s390_expand_logical_operator.
1255         ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
1256         ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
1257         ("andhi3"): New expander.
1258         ("*andhi3_zarch", "*andhi3_esa"): New patterns.
1259         ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
1260         ("andqi3"): New expander.
1261         ("*andqi3_zarch", "*andqi3_esa"): New patterns.
1262         ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
1263         ("iordi3"): New expander.
1264         ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
1265         ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
1266         ("iorsi3"): Use s390_expand_logical_operator.
1267         ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
1268         ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
1269         ("iorhi3"): New expiorer.
1270         ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
1271         ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
1272         ("iorqi3"): New expiorer.
1273         ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
1274         ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
1275         ("xordi3"): New expander.
1276         ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
1277         ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
1278         ("xorsi3"): New expander.
1279         ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
1280         ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
1281         ("xorhi3"): New expander.
1282         ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
1283         ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
1284         ("xorqi3"): New expander.
1285         ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
1286         ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
1287
1288 2004-09-30  Roger Sayle  <roger@eyesopen.com>
1289
1290         * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
1291         (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
1292         machine mode as the result.
1293
1294 2004-09-30  Ben Elliston  <bje@au.ibm.com>
1295
1296         PR bootstrap/17761
1297         * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
1298         FOR_EACH_EDGE macros.
1299
1300 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
1301
1302         * c-tree.h (readonly_error): Remove.
1303         * c-typeck (enum lvalue_use): New.
1304         (lvalue_or_else, readonly_error): Use it.  All callers changed.
1305         (readonly_error): Make static.
1306
1307 2004-09-30  Jan Hubicka  <jh@suse.cz>
1308
1309         PR debug/13974
1310         * cfgrtl.c (try_redirect_by_replacing_jump,
1311         force_nonfallthru_and_redirect, commit_one_edge_insertion,
1312         cfg_layout_merge_blocks):  Do not attach any line number information
1313         to newly inserted instructions.
1314         * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
1315         emit_insn_*_noloc.
1316         (emit_*insn_before, emit_insn*_after): New.
1317         (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
1318         existing locators.
1319         * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
1320         (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
1321
1322 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
1323
1324         * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
1325         (s390_return_address_offset): Remove.
1326         (s390_can_eliminate): Add prototype.
1327         (s390_initial_elimination_offset): Add prototype.
1328         * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
1329         (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
1330         * config/s390/s390.c (s390_arg_frame_offset): Remove.
1331         (s390_return_address_offset): Remove.
1332         (s390_can_eliminate, s390_initial_elimination_offset): New functions.
1333         (struct machine_function): New member split_branches_pending_p.
1334         (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
1335         (s390_mainpool_finish): Likewise.  Clear base_reg if pool empty.
1336         (s390_optimize_prologue): Remove base_used argument.  Call
1337         s390_update_frame_layout instead of s390_register_info.  Handle
1338         prologue/epilogue insns that touch only RETURN_REGNUM.
1339         (s390_reorg): Remove base_used.  Clear split_branches_pending_p.
1340         (s390_register_info): Remove base_used and return_addr_used
1341         arguments, compute special register usage inline.  Return live
1342         register data to caller.
1343         (s390_frame_info): Remove arguments, do not call s390_register_info.
1344         (s390_init_frame_layout): New function.
1345         (s390_update_frame_layout): Likewise.
1346         (s390_emit_prologue): Call s390_update_frame_layout; some code
1347         move to there.  Do not emit pool placeholder insn if unnecessary.
1348
1349 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
1350
1351         * config/s390/s390.c (legitimate_reload_constant_p): Remove
1352         floating point constant workaround.
1353         (s390_secondary_input_reload_class): Handle PLUS reloads
1354         with too-large constant.
1355         (s390_expand_plus_operand): Likewise.
1356         * config/s390/s390.md ("movdi"): Do not call force_const_mem.
1357         ("movsi"): Likewise.  Also, remove workaround for non-general
1358         operands.
1359         ("movdf"): Do not call force_const_mem.
1360         ("movsf"): Likewise.  Merge expander with *movsf insn.
1361         ("*movsf"): Remove, merge with movsf expander.
1362
1363 2004-09-30  Paul Brook  <paul@codesourcery.com>
1364
1365         * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
1366         (ENDFILE_SPEC): Define.
1367         * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
1368
1369 2004-09-30  Richard Henderson  <rth@redhat.com>
1370
1371         * config/alpha/qrnnd.asm: Mark for noexecstack.
1372
1373 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
1374
1375         * protoize.c, tree-cfg.c: Fix comment typos.
1376
1377 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
1378
1379         PR c/17730
1380         * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
1381
1382 2004-09-30  Diego Novillo  <dnovillo@redhat.com>
1383
1384         * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
1385         expressions...
1386         (add_pointed_to_expr): ... here.
1387         Call add_pointed_to_expr for variables with DECL_INITIAL set.
1388         * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
1389         pointer variable, if set.
1390
1391 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
1392
1393         * config/sh/sh.c: Follow spelling conventions.
1394
1395 2004-09-29  Richard Henderson  <rth@redhat.com>
1396
1397         * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
1398         * doc/tm.texi (DWARF_ZERO_REG): New.
1399
1400         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
1401         alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
1402         * config/alpha/alpha.h (DWARF_ZERO_REG): New.
1403
1404 2004-09-29  Ulrich Weigand  <uweigand@de.ibm.com>
1405
1406         * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
1407         with a PLUS as source operand.
1408         (expand_movstr): Likewise.
1409         (expand_builtin_stpcpy): Likewise.
1410
1411 2004-09-29  Richard Henderson  <rth@redhat.com>
1412
1413         PR 17739
1414         * tree-gimple.c (is_gimple_reg): Reject hard registers.
1415         (is_gimple_asm_val): New.
1416         * tree-gimple.h (is_gimple_asm_val): Declare.
1417         * gimplify.c (gimplify_asm_expr): Use it.
1418         * tree-pretty-print.c (print_declaration): Dump hard regs.
1419         * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
1420         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
1421         * tree-ssa-pre.c (is_undefined_value): Likewise.
1422         * tree-ssa-copy.c (may_propagate_copy): Likewise.
1423         (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
1424         * tree-ssa.c (warn_uninit): Likewise.
1425         * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
1426
1427 2004-09-29  Fariborz Jahanian <fjahanian@apple.com>
1428
1429         * c-decl.c (merge_decls): Use comptype when comparing
1430         types to decide on DECL_SIZE save of olddecl.
1431
1432 2004-09-29  Daniel Berlin  <dberlin@dberlin.org>
1433
1434         * tree.h (INDIRECT_REF_P): New macro.
1435         * alias.c (get_alias_set): Use it
1436         (nonoverlapping_memrefs_p): Ditto.
1437         * emit-rtl.c (mem_expr_equal_p): Ditto.
1438         (set_mem_attributes_minus_bitpos): Ditto.
1439         (is_gimple_addressable): Ditto.
1440         (get_base_address): Ditto.
1441         * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
1442         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
1443         * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
1444         * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
1445         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
1446         (add_address_candidates): Ditto.
1447         (rewrite_address_base): Ditto.
1448
1449 2004-09-30  Ben Elliston  <bje@au.ibm.com>
1450
1451         * tree-flow.h (struct bb_ann_d): Remove num_preds member.
1452         * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
1453         (rewrite_ssa_into_ssa): Likewise.
1454         * tree-phinodes.c (create_phi_node): Access the number of
1455         predecessor edges using EDGE_COUNT() and not num_preds.
1456
1457 2004-09-29  Joseph S. Myers  <jsm@polyomino.org.uk>
1458
1459         PR c/7425
1460         * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
1461
1462 2004-09-29  Eric Christopher  <echristo@redhat.com>
1463
1464         * fold-const.c (tree_swap_operands_p): Remove duplicated code.
1465
1466 2004-09-29  Hans-Peter Nilsson  <hp@axis.com>
1467
1468         * config/cris/cris.md (moverside, movemside): With MEM, make sure
1469         the address is (plus reg mem).
1470
1471 2004-09-29  David Edelsohn  <edelsohn@gnu.org>
1472
1473         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
1474
1475 2004-09-29  Nathan Sidwell  <nathan@codesourcery.com>
1476
1477         * tree.c (make_node_stat): Fix uninitialized warning.  Replace
1478         cascaded if ... else if with a switch.
1479
1480 2004-09-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1481
1482         * read-rtl.c (apply_macro_to_string): Replace index with strchr.
1483
1484 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1485
1486         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
1487         and TI_VA_LIST_FPR_COUNTER_FIELD.
1488         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
1489         * tree-pass.h (pass_stdarg): Add.
1490         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
1491         * tree-stdarg.c: New file.
1492         * Makefile.in (OBJS-common): Add tree-stdarg.o.
1493         (tree-stdarg.o): Add dependencies.
1494         * function.h (struct function): Add va_list_gpr_size and
1495         va_list_fpr_size fields.
1496         * function.c (allocate_struct_function): Initialize them.
1497
1498         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
1499         va_list_{g,f}pr_counter_field.
1500         (ix86_setup_incoming_varargs): Don't do anything if reg_save
1501         area will not be used.  Only save registers that tree-stdarg.c
1502         detected they need saving.
1503         (ix86_va_start): Don't set up fields that won't be used.
1504
1505         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
1506         va_list_{g,f}pr_counter_field.
1507         (setup_incoming_varargs): Don't do anything if reg_save
1508         area will not be used.  Only save registers that tree-stdarg.c
1509         detected they need saving.
1510         (rs6000_va_start): Don't set up fields that won't be used.
1511
1512 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1513
1514         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
1515         BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
1516         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
1517         BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
1518         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
1519         ATTR_NONNULL_1_4): New.
1520
1521 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1522
1523         PR tree-optimization/17697
1524         * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
1525         cfg if needed.
1526
1527 2004-09-28  Per Bothner  <per@bothner.com>
1528
1529         * profile.c (branch_prob): Pass correct value to output_location,
1530         even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
1531
1532 2004-09-28  Richard Henderson  <rth@redhat.com>
1533
1534         PR 15089
1535         * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
1536         * tree-flow.h (may_propagate_copy_into_asm): Declare.
1537         * tree-ssa-ccp.c (replace_uses_in): Use it.
1538         * tree-ssa-dom.c (cprop_operand): Likewise.
1539
1540 2004-09-28 Jeff Law  <law@redhat.com>
1541
1542         * tree-ssa-threadupdate.c (create_block_for_threading):  Request
1543         that no outgoing edges be left in the duplicate block.  Do no
1544         update information on outgoing edges or PHI nodes in target
1545         blocks here.
1546         (remove_ctrl_stmt_and_useless_edges): Renamed from
1547         remove_last_stmt_and_useless_edges.  Handle case where the
1548         block is empty or has no control statements.  Do not update edge
1549         flags here.
1550         (thread_block): Create a template block rather than copying the
1551         original block every time.  Create outgoing edges from the
1552         duplicate blocks and update PHIs at the target of the outgoing
1553         edges here.  Fix edge flags for the original block if necessary.
1554         * cfghooks (duplicate_block): No longer assert that the original
1555         block has incoming edges.
1556
1557 2004-09-29  Hans-Peter Nilsson  <hp@bitrange.com>
1558
1559         * doc/extend.texi (Extended Asm): Add blurb about using Explicit
1560         Reg Vars to enforce register allocation with general constraints.
1561         (Explicit Reg Vars): Clarify relation to asm statements.
1562         (Local Reg Vars): Similar.
1563
1564 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
1565
1566         * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
1567         TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
1568         build_control_flow, new_edge): Remove.
1569         (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
1570         (bitlst, bitlst_table_last, bitlst_table): Remove.
1571         (bblst): Store basic_block pointer instead of block index.
1572         (bblst_table): Likewise.
1573         (edgelst): Store edge pointer instead of edge index.
1574         (edgelst_table, edgelst_last): New variables.
1575         (extract_bitlst): Rename to ...
1576         (extract_edgelst): ... this.  Return edge pointers, not indices.
1577         (split_edges): Update call.
1578         (rgn_edges): Store edge pointers instead of indices.
1579         (edge_to_bit): Remove.
1580         (EDGE_TO_BIT): Store per-region edge index in edge->aux.
1581         (SET_EDGE_TO_BIT): New macro.
1582         (is_cfg_nonregular): Check for simple cases of unreachable blocks.
1583         (find_rgns): Remove edge_list parameter.  Traverse standard CFG
1584         data structures instead of haifa_edge et al.  Use edge pointers
1585         instead of edge indices everywhere.
1586         (compute_dom_prob_ps): Use standard CFG data structures.  Account
1587         for exit edges.
1588         (compute_trg_info): Likewise.
1589         (propagate_deps): Likewise.
1590         (debug_candidate): Account for bblst data structure change.
1591         (check_live_1, update_live_1, is_pfree): Likewise.
1592         (IS_REACHABLE): Use standard CFG data structures.
1593         (init_ready_list): Update bblst_table/edgelst_table allocation.
1594         (schedule_region): Update alloc/cleanup code to data structure
1595         changes.  Use edge->aux to store per-region edge index.
1596         (init_regions): No longer call build_control_flow.  Do not
1597         create edge list any more.
1598
1599 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
1600
1601         * cse.c (cse_insn): Avoid creating direct non-local jumps.
1602         * combine.c (can_combine_p): Likewise.
1603         * local-alloc. (update_equiv_regs): Likewise.
1604
1605 2004-09-28  Richard Henderson  <rth@redhat.com>
1606
1607         PR 17531
1608         * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
1609         Don't check VOIDmode here.  Force PLUS operands to common type.
1610         (expand_expr_addr_expr): Do VOIDmode check earlier.  Force use of
1611         Pmode if given a non pointer type.
1612
1613 2004-09-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1614
1615         PR 17531
1616         * optabs.c (expand_binop): Force constants to the correct mode.
1617
1618 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
1619
1620         * config/s390/s390.c (s390_adjust_cost): Remove.
1621         (TARGET_SCHED_ADJUST_COST): Do not redefine.
1622         (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
1623         * config/s390/s390.md ("main_pool"): Use "larl" type
1624         attribute if TARGET_CPU_ZARCH.
1625
1626 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
1627
1628         * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
1629         variable.
1630
1631 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
1632
1633         * tree-ssa-loop.c (pass_record_bounds): Do not assign a
1634         name to the pass.
1635
1636 2004-09-28  Steven Bosscher  <stevenb@suse.de>
1637
1638         * common.opt (flag_gcse_sm): Disable by default.
1639         (flag_gcse_las): Likewise.
1640         (flag_web): Likewise.  Create from this file.
1641         * flags.h: Remove flag_web declaration.
1642         * toplev.c (flag_web): Likewise.
1643         (process_options): Never set flag_web.
1644
1645 2004-09-28  Steven Bosscher  <stevenb@suse.de>
1646
1647         * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
1648         * tree-ssa-propagate.c: Include vec.h.
1649         (interesting_ssa_edges, varying_ssa_edges): Make these VECs
1650         instead of varrays.
1651         (cfg_blocks_add): Assert the block is not already in the worklist.
1652         Update uses of interesting_ssa_edges and varying_ssa_edges.
1653         (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
1654         ssa_propagate): Likewise.
1655
1656 2004-09-28  Joseph S. Myers  <jsm@polyomino.org.uk>
1657
1658         PR c/16409
1659         * c-decl.c (start_decl): Check for initializing incomplete array
1660         of VLAs.
1661         (build_compound_literal): Check for TYPE being error_mark_node.
1662         * c-parse.in (primary): Check for VLA compound literals.
1663
1664 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
1665
1666         * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
1667         with --disable-checking.
1668
1669 2004-09-28  Devang Patel  <dpatel@apple.com>
1670
1671         * tree-pretty-print.c (dump_generic_node): Print vector types.
1672
1673 2004-09-28  Nick Clifton  <nickc@redhat.com>
1674
1675         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
1676         invocation of the function sh_init_cumulative_args.
1677         (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
1678         (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
1679         * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
1680         * config/sh/sh.c (sh_init_cumulative_args): New function based
1681         on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
1682         heuristic added to determine the setting of force_mem when a
1683         library function is being called.
1684
1685 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
1686
1687         * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
1688         Skip constant arguments.
1689
1690 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
1691
1692         * tree-ssa-alias.c (create_name_tags): If PTR points to a
1693         volatile type, mark the tag volatile.
1694         (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
1695         volatile.
1696
1697 2004-09-28  Andrew Pinski  <pinskia@physics.uc.edu>
1698
1699         * tree.def (vec_cond_expr): Fix. Change 'e'
1700         to tcc_expression.
1701
1702 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
1703
1704         * basic-block.h: Fix a comment typo.
1705
1706 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
1707
1708         * optabs.c, optabs.h: Fix comment typos.
1709
1710 2004-09-28  Eric Botcazou  <ebotcazou@act-europe.fr>
1711
1712         * config/sparc/sparc.md (call_address_struct_value_sp32):
1713         Properly mask the immediate field of the 'unimp' instruction.
1714         (call_symbolic_struct_value_sp32): Likewise.
1715
1716 2004-09-28  Ben Elliston  <bje@au.ibm.com>
1717             Steven Bosscher  <stevenb@suse.de>
1718             Andrew Pinski  <pinskia@physics.uc.edu>
1719
1720         Merge from edge-vector-branch:
1721         * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
1722         (struct edge_def): Remove pred_next, succ_next members.
1723         (struct basic_block_def): Remove pred, succ members.  Add preds
1724         and succs members of type VEC(edge).
1725         (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
1726         (BRANCH_EDGE): Likewise.
1727         (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
1728         (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
1729         (edge_iterator): New.
1730         (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
1731         (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
1732         (FOR_EACH_EDGE): New.
1733         * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
1734         where applicable.
1735         (rotate_loop): Likewise.
1736         (find_traces_1_route): Likewise.
1737         (bb_to_key): Likewise.
1738         (connect_traces): Likewise.
1739         (copy_bb_p): Likewise.
1740         (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
1741         (add_labels_and_missing_jumps): Likewise.
1742         (fix_up_fall_thru_edges): Likewise.
1743         (find_jump_block): Likewise.
1744         (fix_crossing_conditional_branches): Likewise.
1745         (fix_crossing_unconditional_branches): Likewise.
1746         (add_reg_crossing_jump_notes): Likewise.
1747         * bt-load.c (augment_live_range): Likewise.
1748         * cfg.c (clear_edges): Likewise.
1749         (unchecked_make_edge): Likewise.
1750         (cached_make_edge): Likewise.
1751         (make_single_succ_edge): Likewise.
1752         (remove_edge): Likewise.
1753         (redirect_edge_succ_nodup): Likewise.
1754         (check_bb_profile): Likewise.
1755         (dump_flow_info): Likewise.
1756         (alloc_aux_for_edges): Likewise.
1757         (clear_aux_for_edges): Likewise.
1758         (dump_cfg_bb_info): Likewise.
1759         * cfganal.c (forwarder_block_p): Likewise.
1760         (can_fallthru): Likewise.
1761         (could_fall_through): Likewise.
1762         (mark_dfs_back_edges): Likewise.
1763         (set_edge_can_fallthru_flag): Likewise.
1764         (find_unreachable_blocks): Likewise.
1765         (create_edge_list): Likewise.
1766         (verify_edge_list): Likewise.
1767         (add_noreturn_fake_exit_edges): Likewise.
1768         (connect_infinite_loops_to_exit): Likewise.
1769         (flow_reverse_top_sort_order_compute): Likewise.
1770         (flow_depth_first_order_compute): Likewise.
1771         (flow_preorder_transversal_compute): Likewise.
1772         (flow_dfs_compute_reverse_execute): Likewise.
1773         (dfs_enumerate_from): Likewise.
1774         (compute_dominance_frontiers_1): Likewise.
1775         * cfgbuild.c (make_edges): Likewise.
1776         (compute_outgoing_frequencies): Likewise.
1777         (find_many_sub_basic_blocks): Likewise.
1778         (find_sub_basic_blocks): Likewise.
1779         * cfgcleanup.c (try_simplify_condjump): Likewise.
1780         (thread_jump): Likewise.
1781         (try_forward_edges): Likewise.
1782         (merge_blocks_move): Likewise.
1783         (outgoing_edges_match): Likewise.
1784         (try_crossjump_to_edge): Likewise.
1785         (try_crossjump_bb): Likewise.
1786         (try_optimize_cfg): Likewise.
1787         (merge_seq_blocks): Likewise.
1788         * cfgexpand.c (expand_gimple_tailcall): Likewise.
1789         (expand_gimple_basic_block): Likewise.
1790         (construct_init_block): Likewise.
1791         (construct_exit_block): Likewise.
1792         * cfghooks.c (verify_flow_info): Likewise.
1793         (dump_bb): Likewise.
1794         (delete_basic_block): Likewise.
1795         (split_edge): Likewise.
1796         (merge_blocks): Likewise.
1797         (make_forwarder_block): Likewise.
1798         (tidy_fallthru_edges): Likewise.
1799         (can_duplicate_block_p): Likewise.
1800         (duplicate_block): Likewise.
1801         * cfglayout.c (fixup_reorder_chain): Likewise.
1802         (fixup_fallthru_exit_predecessor): Likewise.
1803         (can_copy_bbs_p): Likewise.
1804         (copy_bbs): Likewise.
1805         * cfgloop.c (flow_loops_cfg_dump): Likewise.
1806         (flow_loop_entry_edges_find): Likewise.
1807         (flow_loop_exit_edges_find): Likewise.
1808         (flow_loop_nodes_find): Likewise.
1809         (mark_single_exit_loops): Likewise.
1810         (flow_loop_pre_header_scan): Likewise.
1811         (flow_loop_pre_header_find): Likewise.
1812         (update_latch_info): Likewise.
1813         (canonicalize_loop_headers): Likewise.
1814         (flow_loops_find): Likewise.
1815         (get_loop_body_in_bfs_order): Likewise.
1816         (get_loop_exit_edges): Likewise.
1817         (num_loop_branches): Likewise.
1818         (verify_loop_structure): Likewise.
1819         (loop_latch_edge): Likewise.
1820         (loop_preheader_edge): Likewise.
1821         * cfgloopanal.c (mark_irreducible_loops): Likewise.
1822         (expected_loop_iterations): Likewise.
1823         * cfgloopmanip.c (remove_bbs): Likewise.
1824         (fix_bb_placement): Likewise.
1825         (fix_irreducible_loops): Likewise.
1826         (remove_path): Likewise.
1827         (scale_bbs_frequencies): Likewise.
1828         (loopify): Likewise.
1829         (unloop): Likewise.
1830         (fix_loop_placement): Likewise.
1831         (loop_delete_branch_edge): Likewise.
1832         (duplicate_loop_to_header_edge): Likewise.
1833         (mfb_keep_just): Likewise.
1834         (create_preheader): Likewise.
1835         (force_single_succ_latches): Likewise.
1836         (loop_split_edge_with): Likewise.
1837         (create_loop_notes): Likewise.
1838         * cfgrtl.c (rtl_split_block): Likewise.
1839         (rtl_merge_blocks): Likewise.
1840         (rtl_can_merge_blocks): Likewise.
1841         (try_redirect_by_replacing_jump): Likewise.
1842         (force_nonfallthru_and_redirect): Likewise.
1843         (rtl_tidy_fallthru_edge): Likewise.
1844         (commit_one_edge_insertion): Likewise.
1845         (commit_edge_insertions): Likewise.
1846         (commit_edge_insertions_watch_calls): Likewise.
1847         (rtl_verify_flow_info_1): Likewise.
1848         (rtl_verify_flow_info): Likewise.
1849         (purge_dead_edges): Likewise.
1850         (cfg_layout_redirect_edge_and_branch): Likewise.
1851         (cfg_layout_can_merge_blocks_p): Likewise.
1852         (rtl_flow_call_edges_add): Likewise.
1853         * cse.c (cse_cc_succs): Likewise.
1854         * df.c (hybrid_search): Likewise.
1855         * dominance.c (calc_dfs_tree_nonrec): Likewise.
1856         (calc_dfs_tree): Likewise.
1857         (calc_idoms): Likewise.
1858         (recount_dominator): Likewise.
1859         * domwalk.c (walk_dominator_tree): Likewise.
1860         * except.c (emit_to_new_bb_before): Likewise.
1861         (connect_post_landing_pads): Likewise.
1862         (sjlj_emit_function_enter): Likewise.
1863         (sjlj_emit_function_exit): Likewise.
1864         (finish_eh_generation): Likewise.
1865         * final.c (compute_alignments): Likewise.
1866         * flow.c (calculate_global_regs_live): Likewise.
1867         (initialize_uninitialized_subregs): Likewise.
1868         (init_propagate_block_info): Likewise.
1869         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1870         * gcse.c (find_implicit_sets): Likewise.
1871         (bypass_block): Likewise.
1872         (bypass_conditional_jumps): Likewise.
1873         (compute_pre_data): Likewise.
1874         (insert_insn_end_bb): Likewise.
1875         (insert_store): Likewise.
1876         (remove_reachable_equiv_notes): Likewise.
1877         * global.c (global_conflicts): Likewise.
1878         (calculate_reg_pav): Likewise.
1879         * graph.c (print_rtl_graph_with_bb): Likewise.
1880         * ifcvt.c (mark_loop_exit_edges): Likewise.
1881         (merge_if_block): Likewise.
1882         (find_if_header): Likewise.
1883         (block_jumps_and_fallthru_p): Likewise.
1884         (find_if_block): Likewise.
1885         (find_cond_trap): Likewise.
1886         (block_has_only_trap): Likewise.
1887         (find_if_case1): Likewise.
1888         (find_if_case_2): Likewise.
1889         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
1890         (perfect_nestify): Likewise.
1891         * lcm.c (compute_antinout_edge): Likewise.
1892         (compute_laterin): Likewise.
1893         (compute_available): Likewise.
1894         (compute_nearerout): Likewise.
1895         * loop-doloop.c (doloop_modify): Likewise.
1896         * loop-init.c (loop_optimizer_init): Likewise.
1897         * loop-invariant.c (find_exits): Likewise.
1898         * loop-iv.c (simplify_using_initial_values): Likewise.
1899         (check_simple_exit): Likewise.
1900         (find_simple_exit): Likewise.
1901         * loop-unroll.c (peel_loop_completely): Likewise.
1902         (unroll_loop_constant_iterations): Likewise.
1903         (unroll_loop_runtime_iterations): Likewise.
1904         * loop-unswitch.c (may_unswitch_on): Likewise.
1905         (unswitch_loop): Likewise.
1906         * modulo-sched.c (generate_prolog_epilog): Likewise.
1907         (sms_schedule): Likewise.
1908         * postreload-gcse.c (eliminate_partially_redundant_load):
1909         Likewise.
1910         * predict.c (can_predict_insn_p): Likewise.
1911         (set_even_probabilities): Likewise.
1912         (combine_predictions_for_bb): Likewise.
1913         (predict_loops): Likewise.
1914         (estimate_probability): Likewise.
1915         (tree_predict_by_opcode): Likewise.
1916         (tree_estimate_probability): Likewise.
1917         (last_basic_block_p): Likewise.
1918         (propagate_freq): Likewise.
1919         (estimate_loops_at_level): Likewise.
1920         (estimate_bb_frequencies): Likewise.
1921         * profile.c (instrument_edges): Likewise.
1922         (get_exec_counts): Likewise.
1923         (compute_branch_probabilities): Likewise.
1924         (branch_prob): Likewise.
1925         * ra-build.c (live_in): Likewise.
1926         * ra-rewrite.c (rewrite_program2): Likewise.
1927         * ra.c (reg_alloc): Likewise.
1928         * reg-stack.c (reg_to_stack): Likewise.
1929         (convert_regs_entry): Likewise.
1930         (compensate_edge): Likewise.
1931         (convert_regs_1): Likewise,
1932         (convert_regs_2): Likewise.
1933         (convert_regs): Likewise.
1934         * regrename.c (copyprop_hardreg_forward): Likewise.
1935         * reload1.c (fixup_abnormal_edges): Likewise.
1936         * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
1937         (sbitmap_insersection_of_preds): Likewise.
1938         (sbitmap_union_of_succs): Likewise.
1939         (sbitmap_union_of_preds): Likewise.
1940         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
1941         (fix_basic_block_boundaries): Likewise.
1942         (sched_ebbs): Likewise.
1943         * sched-rgn.c (build_control_flow): Likewise.
1944         (find_rgns): Likewise.
1945         * tracer.c (find_best_successor): Likewise.
1946         (find_best_predecessor): Likewise.
1947         (tail_duplicate): Likewise.
1948         * tree-cfg.c (make_edges): Likewise.
1949         (make_ctrl_stmt_edges): Likewise.
1950         (make_goto_expr_edges): Likewise.
1951         (tree_can_merge_blocks_p): Likewise.
1952         (tree_merge_blocks): Likewise.
1953         (cfg_remove_useless_stmts_bb): Likewise.
1954         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
1955         (tree_block_forwards_to): Likewise.
1956         (cleanup_control_expr_graph): Likewise.
1957         (find_taken_edge): Likewise.
1958         (dump_cfg_stats): Likewise.
1959         (tree_cfg2vcg): Likewise.
1960         (disband_implicit_edges): Likewise.
1961         (tree_find_edge_insert_loc): Likewise.
1962         (bsi_commit_edge_inserts): Likewise.
1963         (tree_split_edge): Likewise.
1964         (tree_verify_flow_info): Likewise.
1965         (tree_make_forwarder_block): Likewise.
1966         (tree_forwarder_block_p): Likewise.
1967         (thread_jumps): Likewise.
1968         (tree_try_redirect_by_replacing_jump): Likewise.
1969         (tree_split_block): Likewise.
1970         (add_phi_args_after_copy_bb): Likewise.
1971         (rewrite_to_new_ssa_names_bb): Likewise.
1972         (dump_function_to_file): Likewise.
1973         (print_pred_bbs): Likewise.
1974         (print_loop): Likewise.
1975         (tree_flow_call_edges_add): Likewise.
1976         (split_critical_edges): Likewise.
1977         (execute_warn_function_return): Likewise.
1978         (extract_true_false_edges_from_block): Likewise.
1979         * tree-if-conv.c (tree_if_conversion): Likewise.
1980         (if_convertable_bb_p): Likewise.
1981         (find_phi_replacement_condition): Likewise.
1982         (combine_blocks): Likewise.
1983         * tree-into-ssa.c (compute_global_livein): Likewise.
1984         (ssa_mark_phi_uses): Likewise.
1985         (ssa_rewrite_initialize_block): Likewise.
1986         (rewrite_add_phi_arguments): Likewise.
1987         (ssa_rewrite_phi_arguments): Likewise.
1988         (insert_phi_nodes_for): Likewise.
1989         (rewrite_into_ssa): Likewise.
1990         (rewrite_ssa_into_ssa): Likewise.
1991         * tree-mudflap.c (mf_build_check_statement_for): Likewise.
1992         * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
1993         (rewrite_trees): Likewise.
1994         * tree-pretty-print.c (dump_bb_header): Likewise.
1995         (dump_implicit_edges): Likewise.
1996         * tree-sra.c (insert_edge_copies): Likewise.
1997         (find_obviously_necessary_stmts): Likewise.
1998         (remove_data_stmt): Likewise.
1999         * tree-ssa-dom.c (thread_across_edge): Likewise.
2000         (dom_opt_finalize_block): Likewise.
2001         (single_incoming_edge_ignoring_loop_edges): Likewise.
2002         (record_equivalences_from_incoming_edges): Likewise.
2003         (cprop_into_successor_phis): Likewise.
2004         * tree-ssa-live.c (live_worklist): Likewise.
2005         (calculate_live_on_entry): Likewise.
2006         (calculate_live_on_exit): Likewise.
2007         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
2008         (copy_loop_headers): Likewise.
2009         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2010         (fill_always_executed_in): Likewise.
2011         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
2012         * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
2013         (compute_phi_arg_on_exit): Likewise.
2014         * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
2015         (get_loops_exit): Likewise.
2016         (split_loop_exit_edge): Likewise.
2017         (ip_normal_pos): Likewise.
2018         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
2019         Likewise.
2020         * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
2021         (replace_phi_with_stmt): Likewise.
2022         (value_replacement): Likewise.
2023         * tree-ssa-pre.c (compute_antic_aux): Likewise.
2024         (insert_aux): Likewise.
2025         (init_pre): Likewise.
2026         * tree-ssa-propagate.c (simulate_stmt): Likewise.
2027         (simulate_block): Likewise.
2028         (ssa_prop_init): Likewise.
2029         * tree-ssa-threadupdate.c (thread_block): Likewise.
2030         (create_block_for_threading): Likewise.
2031         (remove_last_stmt_and_useless_edges): Likewise.
2032         * tree-ssa.c (verify_phi_args): Likewise.
2033         (verify_ssa): Likewise.
2034         * tree_tailcall.c (independent_of_stmt_p): Likewise.
2035         (find_tail_calls): Likewise.
2036         (eliminate_tail_call): Likewise.
2037         (tree_optimize_tail_calls_1): Likewise.
2038         * tree-vectorizer.c (vect_transform_loop): Likewise.
2039         * var-tracking.c (prologue_stack_adjust): Likewise.
2040         (vt_stack_adjustments): Likewise.
2041         (vt_find_locations): Likewise.
2042         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2043         * config/i386/i386.c (ix86_pad_returns): Likewise.
2044         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2045         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2046
2047 2004-09-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
2048
2049         PR target/16532
2050         * config/sparc/sparc.c (struct machine_function): New field
2051         'leaf_function_p' and 'prologue_data_valid_p'.
2052         (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
2053         to conveniently access the above fields.
2054         (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
2055         (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
2056         of the generic flavor 'current_function_uses_only_leaf_regs'.
2057         (eligible_for_sibcall_delay): Likewise.
2058         (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
2059         'sparc_prologue_data_valid_p'.  Use 'sparc_leaf_function_p'.
2060         (sparc_asm_function_prologue): Add sanity check for the assumption
2061         made in 'sparc_expand_prologue'.  Use 'sparc_leaf_function_p'.
2062         (sparc_can_use_return_insn_p): New function.
2063         (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
2064         (output_restore): Likewise.
2065         (output_sibcall): Likewise.
2066         (sparc_output_mi_thunk): Likewise.
2067         * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
2068         * config/sparc/sparc.md (return): New expander.
2069
2070         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
2071
2072 2004-09-27  Mark Mitchell  <mark@codesourcery.com>
2073
2074         PR c++/17642
2075         * stor-layout.c (layout_decl): Use fold_convert, not convert.
2076         (bit_from_pos): Likewise.
2077         (byte_from_pos): Likewise.
2078         (pos_from_bit): Likewise.
2079         (normalize_offset): Likewise.
2080         (place_field): Likewise.
2081         (finalize_type_size): Likewise.
2082         (layout_type): Likewise.
2083         * tree.c (build_index_type): Likewise.
2084
2085 2004-09-27  Devang Patel  <dpatel@apple.com>
2086
2087         * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
2088         * genopinit.c (optabs): New entry for vcond_gen_code and
2089         vcondu_gen_code.
2090         * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
2091         (get_rtx_code): New function.
2092         (vector_compare_rtx): New function.
2093         (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
2094         (expand_vec_cond_expr_p): New function.
2095         (expand_vec_cond_expr): New function.
2096         (get_vcond_icode): New function.
2097         * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
2098         (vcond_gen_code, vcondu_gen_code): Same.
2099
2100 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
2101
2102         * Makefile.in (STAGESTUFF): Split into ...
2103         (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
2104         (mostlyclean): Update.
2105         (stage1-start, stage2-start, stage3-start, stage4-start,
2106         stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
2107         Move the STAGEMOVESTUFF.
2108
2109 2004-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2110
2111         * system.h (getpagesize): Return 'int' instead of 'long'.
2112
2113 2004-09-27  Michael Matz <matz@suse.de>
2114
2115         PR bootstrap/17698
2116         PR bootstrap/17702
2117         * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
2118         bmp_iter_and_init): Shift by bit_in_word.
2119
2120 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
2121
2122         * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
2123         * configure.ac: Don't sinclude it here.
2124         * configure: Regenerate.
2125
2126 2004-09-27  Dorit Naishlos  <dorit@il.ibm.com>
2127
2128         * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
2129         Handle AND pattern
2130
2131 2004-09-27  Joseph S. Myers  <jsm@polyomino.org.uk>
2132
2133         PR c/13804
2134         * c-typeck.c (build_component_ref): Name type involved in
2135         diagnostic for structure or union without a member of the given
2136         name.
2137
2138 2004-09-27  DJ Delorie  <dj@redhat.com>
2139
2140         * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
2141         .comm alignment is bytes, not bits.
2142
2143 2004-09-27  Devang Patel  <dpatel@apple.com>
2144
2145         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
2146         (print_call_name): Do not print VEC_COND_EXPR.
2147
2148 2004-09-27  Devang Patel  <dpatel@apple.com>
2149
2150         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
2151
2152 2004-09-27  Jan Hubicka  <jh@suse.cz>
2153
2154         * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
2155
2156 2004-09-27  Kazu Hirata  <kazu@cs.umass.edu>
2157
2158         * bitmap.h: Fix a comment typo.
2159
2160 2004-09-27  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2161
2162         * libgcc2.c (getpagesize): Change type of return value to int.
2163
2164 2004-09-26  Matt Austern  <austern@apple.com>
2165
2166         * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
2167         using mmap.
2168
2169 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2170
2171         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
2172         EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
2173         (bitmap_iterator): New type.
2174         (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
2175         bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
2176         bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
2177         bmp_iter_and_init, bmp_iter_and_next): New functions.
2178         * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
2179         EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
2180         use iterator-style EXECUTE_IF_IN_BITMAP macros.
2181         * bitmap.c (bitmap_print): Ditto.
2182         * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
2183         btr_def_live_range): Ditto.
2184         * cfganal.c (compute_dominance_frontiers_1) Ditto.
2185         * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
2186         Ditto.
2187         * ddg.c (build_inter_loop_deps): Ditto.
2188         * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
2189         Ditto.
2190         * except.c (remove_eh_handler): Ditto.
2191         * flow.c (reg_set_to_hard_reg_set): Ditto.
2192         * gcse.c (clear_modify_mem_tables): Ditto.
2193         * global.c (build_insn_chain): Ditto.
2194         * ifcvt.c (dead_or_predicable): Ditto.
2195         * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
2196         Ditto.
2197         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
2198         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
2199         detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
2200         * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
2201         tree_purge_all_dead_eh_edges): Ditto.
2202         * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
2203         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
2204         rewrite_ssa_into_ssa): Ditto.
2205         * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
2206         * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
2207         Ditto.
2208         * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
2209         compute_flow_sensitive_aliasing, maybe_create_global_var,
2210         dump_points_to_info_for): Ditto.
2211         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
2212         * tree-ssa-dse.c (dse_finalize_block): Ditto.
2213         * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
2214         calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
2215         Ditto.
2216         * tree-ssa-loop-ivopts.c (find_induction_variables,
2217         find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
2218         determine_use_iv_costs, determine_set_costs, find_best_candidate,
2219         set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
2220         Ditto.
2221         * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
2222         * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
2223         add_call_read_ops): Ditto.
2224         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
2225
2226 2004-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2227
2228         * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
2229         UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
2230
2231 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
2232
2233         * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
2234         reflect size of memory regions being compared.
2235
2236 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
2237
2238         * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
2239         expressions.  Always clear MEM_SIZE and alias set.
2240
2241 2004-09-26  Roger Sayle  <roger@eyesopen.com>
2242             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2243
2244         PR middle-end/17112
2245         * stor-layout.c (compute_record_mode): For records with a single
2246         field, only use the field's mode if its size matches what we'd
2247         have choosen for the record ourselves.  This forces the use of
2248         BLKmode for packed records that don't completely fill a mode.
2249
2250 2004-09-26  Roger Sayle  <roger@eyesopen.com>
2251
2252         PR middle-end/17151
2253         * combine.c (force_to_mode): Remove dubious early return test that
2254         inhibits further optimization.
2255
2256 2004-09-26  Kazu Hirata  <kazu@cs.umass.edu>
2257
2258         * profile.c: Fix a comment typo.
2259
2260 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2261
2262         PR bootstrap/17591
2263         * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
2264         with varying offset.
2265         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
2266         (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
2267         ARRAY_REFS.
2268         (expr_invariant_in_loop_p): New function.
2269         (idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
2270         component_ref_field_offset for COMPONENT_REFs.  Do not allow
2271         ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
2272         (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
2273         MISALIGNED_INDIRECT_REFs.
2274         (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
2275         (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
2276         MISALIGNED_INDIRECT_REFs.
2277
2278 2004-09-26  Joseph S. Myers  <jsm@polyomino.org.uk>
2279
2280         PR c/11459
2281         * gcc.c (cpp_options, cc1_options): Preserve relative order of
2282         -std and -ansi options.
2283
2284 2004-09-26  Jan Hubicka  <jh@suse.cz>
2285
2286         * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
2287         for nested functions whose proper parent has not been output.
2288
2289         * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
2290         when re-constructing profile previously invalidated by loop.
2291
2292 2004-09-25  Dale Johannesen  <dalej@apple.com>
2293
2294         * tree-gimple.c:  Move GIMPLE definition...
2295         * doc/tree-ssa.texi:  here.
2296
2297 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2298
2299         * tree-vectorizer.c: Fix a comment typo.
2300
2301 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2302
2303         * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
2304         gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
2305         lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
2306         tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
2307
2308 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2309
2310         * tree-ssa-loop-unswitch.c: Fix a comment typo.
2311
2312 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2313
2314         * doc/passes.texi: Fix a typo.
2315
2316 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2317
2318         * tree-optimize.c (init_tree_optimization_passes): Add
2319         pass_record_bounds.
2320         * tree-pass.h (pass_record_bounds): Declare.
2321         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
2322         New pass.
2323
2324 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2325
2326         PR tree-optimization/17474
2327         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
2328         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
2329
2330 2004-09-25  Jan Hubicka  <jh@suse.cz>
2331
2332         * predict.c (counts_to_freqs): Make global.
2333         * predict.h (counts_to_freqa): Declare.
2334         * profile.c (compute_branch_probabilities): Compute frequencies
2335         * tree-profile.c (do_tree_profiling): Refine conditional on when
2336         tree profiling pass is needed.
2337
2338         * passes.c (rest_of_handle_cfg): Disable const/pure function
2339         detection when doing tree based profiling.
2340
2341         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
2342         conditional.
2343
2344 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
2345
2346         * config/mips/mips.h (struct mips_args): Clarify comments.
2347         * config/mips/mips.c (struct mips_arg_info): Likewise.
2348         (mips_arg_info): Don't allow fpr_p to affect the register or
2349         stack alignment.  Remove o64 silliness.
2350         (function_arg): Deal with the o32 float,float case specially.
2351
2352 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
2353
2354         * config/mips/mips.md (loadx, storex): Define for V2SF.
2355
2356 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2357
2358         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
2359         * config/s390/s390.c (s390_back_chain_rtx): New function.
2360         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
2361         Call anti_adjust_stack.
2362         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
2363         only if compiling with back chain.
2364         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
2365         back chain only if back chain enabled.  Use s390_back_chain_rtx.
2366
2367 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
2368
2369         * doc/trouble.texi: Remove obsolete information.  Update
2370         information on how to regenerate fixincluded headers.
2371
2372 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
2373
2374         PR c/12951
2375         * doc/invoke.texi: Document that
2376         -Wno-error-implicit-function-declaration is not accepted.
2377
2378 2004-09-24  Richard Henderson  <rth@redhat.com>
2379
2380         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
2381         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
2382         on TARGET_MAX.
2383         (alpha_expand_mov): Allow unaligned vectors.
2384         (alpha_expand_unaligned_store): Use CONST0_RTX.
2385         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
2386
2387 2004-09-24 Jeff Law  <law@redhat.com>
2388
2389         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
2390         aliasing rules.
2391         (simplify_cond_and_lookup_avail_expr): Likewise.
2392
2393 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2394
2395         PR c/12802
2396         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
2397         title.  Document interaction with -fms-extensions.
2398         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
2399         section.
2400
2401 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2402
2403         PR c/12713
2404         * doc/extend.texi: Document interaction of attribute noreturn and
2405         longjmp.
2406
2407 2004-09-24  Richard Henderson  <rth@redhat.com>
2408
2409         PR rtl-opt/17503
2410         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
2411         (som_hash, som_eq): New.
2412         (init_subregs_of_mode, record_subregs_of_mode): New.
2413         (cannot_change_mode_set_regs): Rewrite for htab implementation.
2414         (invalid_mode_change_p): Likewise.
2415         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
2416         * flow.c (mark_used_regs): Likewise.
2417         (life_analysis): Use init_subregs_of_mode.
2418         * regs.h (subregs_of_mode): Remove.
2419         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
2420
2421 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
2422
2423         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
2424         type with the copy of the conditional.
2425
2426 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
2427
2428         PR tree-opt/16954
2429         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
2430         Prevent renaming if the aliasing sets of the type which the
2431         pointer points to are different.
2432
2433 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2434
2435         PR c/17188
2436         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
2437         declarations of enumerators.
2438         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
2439         for redefinition.  Check for nested redefinition.
2440         (finish_struct): Don't check for nested redefinition.
2441         (start_enum): Check for nested redefinition.
2442
2443 2004-09-24  Devang Patel  <dpatel@apple.com>
2444
2445         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
2446         only when necesssary.
2447         (combine_blocks): Combine loop header and exit block.
2448
2449 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
2450
2451         * hooks.c (hook_tree_tree_bool_null): New.
2452         * hooks.h (hook_tree_tree_bool_null): Declare it.
2453         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
2454         * targhooks.c (default_fold_builtin): Remove.
2455         * targhooks.h (default_fold_builtin): Remove.
2456
2457 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2458
2459         PR rtl-optimization/17625
2460         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
2461
2462 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
2463
2464         PR tree-opt/17624
2465         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
2466         Reject if any of the operands occur in an abnormal PHI.
2467
2468 2004-09-24  Andreas Schwab  <schwab@suse.de>
2469
2470         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
2471         rules.
2472
2473 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2474
2475         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
2476         if the GNU assembler is used.
2477         (sparc-*-solaris2*): Likewise.
2478         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
2479         (dbxout_function_end): Protect N_ENSYM with it.
2480         (dbxout_begin_prologue): Protect N_BNSYM with it.
2481         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
2482         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
2483         * config/sparc/sol2-gas.h: New file.
2484
2485 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
2486
2487         PR bootstrap/17369
2488         * Makefile.in (@set_gcc_lib_path@): Added.
2489
2490         * configure.ac: Include ../config/gcc-lib-path.m4. Use
2491         TL_AC_GNU_MAKE_GCC_LIB_PATH.
2492         * configure: Regenerated.
2493
2494 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2495
2496         PR c/6980
2497         * c-typeck.c (build_c_cast): Improve wording of
2498         -Wbad-function-cast diagnostic.
2499
2500 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
2501
2502         PR target/17626
2503         * config/cris/cris.md (moverside, movemside): Rename variable
2504         "reg" to "otherop".  To generate canonical RTX, check that otherop
2505         isn't constant instead of checking that operand 1 is a register.
2506
2507 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
2508
2509         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
2510
2511 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
2512             Jakub Jelinek  <jakub@redhat.com>
2513
2514         * tree-flow.h (find_new_referenced_vars): Add prototype.
2515         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
2516         Move to...
2517         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
2518         ... here.
2519         (mark_new_vars_to_rename): Walk through all operands.
2520         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
2521         (execute_fold_all_builtins): Use it.
2522         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
2523
2524 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
2525
2526         * gthr-tpf.h: New file.
2527         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
2528         * gthr.h: Use gthr-tpf.h on TPF OS.
2529
2530 2004-09-23 Jeff Law  <law@redhat.com>
2531
2532         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
2533         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
2534         (substitute_and_fold):  Likewise.
2535         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
2536         except invariants from SSA_NAME_VALUE.
2537         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
2538         and SET_SSA_NAME_EQUIV.
2539         (restore_vars_to_original_value, record_const_or_copy): Likewise.
2540         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
2541         (record_equality, cprop_into_successor_phis): Likewise.
2542         (record_equivalences_from_stmt, cprop_operand): Likewise.
2543         (lookup_avail_expr): Likewise.
2544         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
2545         from SSA_NAME_VALUE.
2546         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
2547         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
2548         annotation from the VALUE_HANDLE field.
2549
2550 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
2551
2552         PR c++/13989
2553         PR c++/9844
2554         * tree.c (reconstruct_complex_type): Remove extra "this".
2555         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
2556         Add V4SFmode to case statement.
2557
2558 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
2559
2560         PR c/16833
2561         * doc/extend.texi, doc/invoke.texi: Document interaction of
2562         -fno-builtin with format checks.  Note that built-in functions
2563         have effects beyond generating code that avoids calls to those
2564         functions.
2565
2566 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
2567
2568         PR tree-optimization/17533
2569         * dominance.c (verify_dominators): Tolerate even more incorrect
2570         dominance data during error message printing.
2571         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
2572         and edges more correctly.
2573
2574 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
2575
2576         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
2577         New tree-codes.
2578         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
2579         MISALIGNED_INDIRECT_REF.
2580         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
2581         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
2582         Likewise.
2583         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
2584         (find_interesting_uses_address): Likewise.
2585         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
2586         (build_fold_addr_expr_with_type): Likewise.
2587         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
2588         * print-rtl.c (print_mem_expr): Likewise.
2589         * tree-dump.c (dequeue_and_dump): Likewise.
2590         * tree-eh.c (tree_could_trap_p): Likewise.
2591         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
2592         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
2593         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
2594         Likewise.
2595         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2596         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
2597         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
2598         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
2599         (add_address_candidates, rewrite_address_base): Likewise.
2600         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
2601         Likewise.
2602         * tree.c (staticp, build1_stat): Likewise.
2603
2604         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
2605         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
2606         * tree-ssa-operands.c (get_expr_operands): Likewise.
2607         * expr.c (expand_expr_real_1): Likewise.
2608
2609         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
2610         optabs.
2611         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
2612         for the new optabs.
2613         (expand_ternary_op): New function.
2614         * genopinit.c (optabs): Handle the new optabs.
2615         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
2616         (init_optabs): Initialize vec_realign_load_optab.
2617         (expand_ternary_op): New functions.
2618
2619         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
2620         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
2621         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
2622         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
2623         * target.h (struct vectorize): New member for struct gcc_target.
2624         (misaligned_mem_ok): New member for targetm.vectorize.
2625         (builtin_mask_for_load): Likewise.
2626         (builtin_mask_for_store): Likewise.
2627         * targethooks.c (default_vect_misaligned_mem_ok): New function.
2628         * targethooks.h (default_vect_misaligned_mem_ok): New function.
2629
2630         * config/rs6000/altivec.md (build_vector_mask_for_load): New
2631         define_expand.
2632         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
2633         (vec_realign_load_v16qi): New define_insn.
2634         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
2635         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
2636         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
2637         (altivec_builtin_mask_for_store): New variables.
2638         (rs6000_builtin_mask_for_load): New function. Implements
2639         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
2640         (rs6000_builtin_mask_for_store): New function. Implements
2641         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
2642         (rs6000_expand_builtin): Expand the target builtins
2643         builtin_mask_for_load and builtin_mask_for_store.
2644         (altivec_init_builtins): Initialize the new target builtins.
2645         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
2646         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
2647
2648         * tree-vectorizer.c (vect_create_data_ref): Renamed to
2649         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
2650         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
2651         (vectorizable_store): Call vect_create_data_ref_ptr with additional
2652         arguments, and create an indirect_ref with its return value data_ref.
2653         Check aligned_access_p.
2654         (vectorizable_load): Handle misaligned loads, using software-pipelined
2655         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
2656         vec_realign_load_optab is supported, or using a scheme without
2657         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
2658         misaligned_mem_ok is supported.
2659
2660         (vect_finish_stmt_generation): Typo.
2661         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
2662         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
2663         presence of misaligned loads.
2664         (vect_analyze_data_ref_access): Add check for constant init.
2665         (vect_get_symbl_and_dr): Remove duplicate line.
2666         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
2667
2668 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
2669
2670         * builtins.c: Fix a comment typo.
2671
2672 2004-09-23  Jan Hubicka  <jh@suse.cz>
2673
2674         * profile.c (branch_prob): Do not verify flow info in the middle of the
2675         pass.
2676
2677 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2678
2679         * cfgloop.h (update_single_exits_after_duplication): Declare.
2680         (loopify, split_loop_bb): Declaration changed.
2681         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
2682         of rtx.
2683         (loopify): Added redirect_all_edges argument.
2684         (update_single_exits_after_duplication): Export.
2685         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
2686         * tree-flow.h (tree_duplicate_loop_to_header_edge,
2687         tree_ssa_loop_version): Declare.
2688         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
2689         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
2690         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
2691         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
2692
2693         * tree-ssa-loop-unswitch.c: New file.
2694         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
2695         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
2696         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
2697         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
2698         * tree-pass.h (pass_unswitch): Declare.
2699         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
2700         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
2701         * doc/passes.texi: Documen tree level loop unswitching.
2702
2703 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
2704
2705         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
2706
2707 2004-09-22  Eric Christopher  <echristo@redhat.com>
2708
2709         * builtins.c (simplify_builtin_va_start): Remove.
2710         (simplify_builtin): Ditto.
2711         (fold_builtin_strchr): Ditto.
2712         (simplify_builtin_*): Rename remainders to fold_builtin_*.
2713         (expand_builtin): Fix up for above changes.
2714         (fold_builtin_1): Add new folders. Change for above.
2715         (expand_builtin_va_start): Call fold_builtin_next_arg.
2716         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
2717         * tree.h: Remove prototype for simplify_builtin.
2718
2719 2004-09-23  Jan Hubicka  <jh@suse.cz>
2720
2721         PR debug/17389
2722         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
2723         of fully inlined functions.
2724         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
2725         inlined.
2726
2727         * cfgexpand.c (add_reg_br_prob_note): New function.
2728         (expand_gimple_cond_expr): Use it.
2729         (tree_expand_cfg): No longer kill the profile.
2730         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
2731         only if it is present.
2732         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
2733         * predict.c (combine_predictions_for_insn): Set the probabilities
2734         based on REG_BR_PROB note if present.
2735         * predict.c (branch_prob): Profile is read only with
2736         flag_branch_probabilities.
2737
2738 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
2739
2740         * aclocal.m4: Add in gettext's m4 includes.
2741         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
2742         * configure.ac: Add in check for iconv.h
2743         * configure: Regenerate.
2744
2745 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
2746
2747         * aclocal.m4: Update for rename of gettext-sister.m4.
2748
2749 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
2750
2751         Fix PR tree-optimization/17587
2752         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
2753         (insert_aux): Instead of here.
2754
2755 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
2756
2757         PR tree-optimization/16721
2758         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
2759         * tree-ssa-alias.c (create_memory_tag): Move setting of
2760         TREE_THIS_VOLATILE ...
2761         (get_tmt_for): ... here.
2762
2763 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2764
2765         * config/sparc/sparc.md (cmove splitter): Fix formatting.
2766         (conditional_trap expander): Reject inappropriate CCmodes.
2767         (conditional trap insn): Use V9 syntax if possible.
2768
2769 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
2770
2771         PR c/16566
2772         * c-typeck.c (build_component_ref): Don't special-case
2773         COMPOUND_EXPR.
2774
2775 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
2776
2777         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
2778         returns NULL.
2779
2780 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
2781
2782         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
2783         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
2784         TRUTH_XOR_EXPR): Mention the restriction on types.
2785
2786 2004-09-22  Matt Austern  <austern@apple.com>
2787
2788         * config/darwin.c (darwin_make_decl_one_only):
2789         Allow coalesced symbol to appear in static archive's table of contents
2790
2791 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
2792
2793         PR tree-optimization/17512
2794         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
2795         special cases.
2796
2797 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
2798
2799         * dbxout.c (get_lang_number): Do not define if
2800         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
2801
2802 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
2803
2804         PR target/15583
2805         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
2806         builtin_define ("__USE_INIT_FINI__").
2807
2808 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
2809
2810         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
2811         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
2812         * config/s390/s390.h (TARGET_TPF): New macro.
2813         * config/s390/s390.md ("eh_return"): New expander.
2814         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
2815         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
2816         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
2817         * config/s390/tpf.h (TARGET_TPF): Define to 1.
2818         (STACK_POINTER_OFFSET): Increase to 448.
2819         (TARGET_DEFAULT): Set -mtpf-trace on as default.
2820         (TPF_LOC_DIFF_OFFSET): New macro.
2821         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
2822         encoding.
2823         (__isPATrange): Add prototype.
2824         (MD_FALLBACK_FRAME_STATE_FOR): Define.
2825         * config/s390/tpf-eh.c: New file.
2826
2827 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
2828
2829         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
2830         operands in an integer comparison.
2831         * tree-cfg.c (find_taken_edge): Call fold() to determine
2832         whether the predicate is known.
2833
2834 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
2835
2836         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
2837         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
2838         Create build and doc directories along with the language directories.
2839         Don't create doc directory separately.
2840         * configure: Regenerate.
2841         * Makefile.in: Create all object and executables files built
2842         with the build compiler in a build/ directory.
2843         (genobjnames): Add missing build objects.
2844         (STAGESTUFF): Don't stage the gen* programs.
2845         (ggc-none.o): Define dependencies for the target compiler.
2846         (build-print-rtl.o): Rename to build/print-rtl.o.
2847         (build-errors.o): Rename to build/errors.o.
2848         (build-varray.o): Rename to build/varray.o.
2849         (maintainerclean): Delete the contents of the build directory.
2850         ($(genobjs): %.o): Explicitly use -o.
2851         (build/insn-conditions.o): Delete specfic rule to use generic rule.
2852         (build/gengtype-lex.o): Likewise.
2853         (build/gengtype-yacc.o): Likewise.
2854         (build/gcov-iov.o): Likewise.
2855
2856 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
2857
2858         * vec.h (VEC_space): Return true if there _is_ space.
2859         (VEC_reserve): Adjust.
2860
2861 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
2862
2863         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
2864         use FPRs for scalar, complex and vector types only.
2865
2866 2004-09-21 Jeff Law  <law@redhat.com>
2867
2868         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
2869         the opt_stats_d structure.
2870         (vrp_data): Change from a varray into a hash table.
2871         (vrp_hash_elt): New structure for elements in the vrp hash table.
2872         (vrp_hash, vrp_eq):New functions for hashing and testing equality
2873         in the vrp hash table.
2874         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
2875         initialization slightly to make it easier to read.  No longer need
2876         to grow/clear the varray.  Instead empty and delete the hash table.
2877         (dom_opt_finalize_block): Update due to change of VRP_DATA from
2878         a varray to a hash table.
2879         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
2880
2881         * tree-ssa-ccp.c (get_default_value): If we have a constant
2882         value recorded for an SSA_NAME, then use that constant as
2883         the initial lattice value.
2884         (substitute_and_fold): Transfer equivalences discovered into
2885         SSA_NAME_EQUIV.
2886
2887         * tree.h (SSA_NAME_EQUIV): Add comments.
2888         (SET_SSA_NAME_EQUIV): Similarly.
2889
2890 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
2891
2892         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
2893
2894         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
2895
2896 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
2897
2898         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
2899         (finish_decl): Likewise.
2900
2901 2004-09-21  Devang Patel  <dpatel@apple.com>
2902
2903         * tree.def (VEC_COND_EXPR): New tree node.
2904         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
2905
2906 2004-09-21  Stan Shebs  <shebs@apple.com>
2907
2908         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
2909         * config/rs6000/darwin-world.asm: Likewise.
2910
2911 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
2912
2913         * tree-ssa.c (verify_def): Use print_generic_stmt,
2914         not debug_generic_stmt.
2915         (verify_use): Ditto.
2916         (verify_phi_args): Ditto.
2917         (verify_ssa): Ditto.
2918
2919 2004-09-21  Paul Brook  <paul@codesourcery.com>
2920
2921         * varasm.c (default_assemble_integer): Return false for values wider
2922         than the target word size.  Works around GAS bug.
2923
2924 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
2925
2926         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
2927         gets value 0.
2928         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
2929         if it has value 0.
2930
2931 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
2932
2933         * c-typeck.c (build_function_call): Give name of object
2934         we are attempting to call in error message.
2935         * c-objc-common.c (c_tree_printer): Call pp_expression,
2936         not return false, for 'E' case.
2937
2938 2004-09-21  Steven Bosscher  <stevenb@suse.de>
2939
2940         PR rtl-optimization/17482
2941         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
2942         load_killed_in_block_p): Clarify comments.
2943         (record_last_reg_set_info): Make static inline.
2944         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
2945         (record_opr_changes): New function to replace the above.
2946         (compute_hash_table): Clarify comments.  Use record_opr_changes.
2947         (reg_set_between_after_reload_p): Clean up.
2948         (reg_used_between_after_reload_p): Likewise.
2949         (eliminate_partially_redundant_load): Clarify comments.
2950
2951 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2952
2953         PR rtl-optimization/17266
2954         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
2955
2956 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
2957
2958         PR rtl-optimization/14851
2959         * rtlanal.c (commutative_operand_precedence): Calculate
2960         precedence of stripped constant.
2961
2962 2004-09-20 Jeff Law  <law@redhat.com>
2963            Jan Hubicka  <jh@suse.cz>
2964
2965         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
2966         initialize key elements here.
2967         (release_ssa_name): Zero the released SSA_NAME here.
2968         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
2969         (struct tree_ssa_name): Add new "equiv" field.
2970         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
2971         (tree_ssa_dominator_optimize): No longer allocate, resize or
2972         clear CONST_AND_COPIES.
2973         (get_value_for, set_value_for): Kill.
2974         (thread_across_edge): Get/set the equivalency using
2975         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
2976         (restore_vars_to_original_value): Likewise.
2977         (record_equivalences_from_phis): Likewise.
2978         (record_dominating_conditions): Likewise.
2979         (record_const_or_copy, record_equality): Likewise.
2980         (lookup_avail_expr): Likewise.
2981         (record_equivalences_from_stmt, cprop_operand): Likewise.
2982         (cprop_into_successor_phis): No longer need to pass around
2983         CONST_AND_COPIES.  Callers updated. Get equivalences via
2984         SSA_NAME_EQUIV.
2985         (cprop_into_phis): Likewise.
2986
2987 2004-09-20  Matt Austern <austern@apple.com>
2988             Zack Weinberg  <zack@codesourcery.com>
2989
2990         * c-common.c (fix_string_type): Build the unqualified array
2991         type unconditionally, then use c_build_qualified_type to get
2992         the proper const-qualified variant, and set its
2993         TYPE_MAIN_VARIANT to refer to the unqualified type.
2994         * c-lex.c (c_lex_return_raw_string): New global.
2995         (c_lex_with_flags): Honor it.
2996         * c-pragma.h: Declare it.
2997
2998 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
2999
3000         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
3001
3002 2004-09-21  Jan Hubicka  <jh@suse.cz>
3003
3004         PR middle-end/17126
3005         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
3006         (tree_rest_of_compilation): Cleanup.
3007
3008 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
3009
3010         * config/s390/s390.c (s390_select_rtx_section): Remove.
3011         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
3012
3013 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3014
3015         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
3016         note to pretend a direct save from the original register when an
3017         intermediate register is used for the save.
3018
3019 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3020
3021         * tsystem.h (alloca): Provide a default definition.
3022
3023         Revert:
3024         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3025             * unwind-dw2.c: Call __builtin_alloca, not alloca.
3026
3027 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
3028
3029         PR tree-opt/17558
3030         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
3031         aliasing sets are the same rather than just conflicting.
3032
3033 2004-09-20  Jan Hubicka  <jh@suse.cz>
3034
3035         PR middle-end/16460
3036
3037         * cgraph.c (cgraph_unnest_node): New function.
3038         (c_finalize): Rename to ....
3039         (c_warn_unused_result_recursivly): ... this one; do only the warning
3040         (finish_function): Finalize the toplevel function; do not lower nested tree.
3041         * cgraph.h (cgraph_unnest_node): Declare.
3042         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
3043         nestedness datastructure.
3044         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
3045         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
3046         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
3047
3048 2004-09-20  Richard Henderson  <rth@redhat.com>
3049
3050         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
3051         from some_small_symbolic_operand_1; export.
3052         (some_small_symbolic_operand): Remove.
3053         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
3054         extra C check.
3055         * config/alpha/predicates.md (some_small_symbolic_operand): New.
3056
3057 2004-09-20  Jan Hubicka  <jh@suse.cz>
3058
3059         * predict.c (return_prediction): New function.
3060         (apply_return_prediction): Likewise.
3061         (tree_bb_level_predictions): Likewise.
3062         (tree_estimate_probability): Add noreturn exit edges; call
3063         bb_level_predictions; fix logic of return heuristics.
3064         (predict_paths_leading_to):  Rescuesce from old CVS version of
3065         process_note_prediction function.
3066         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
3067
3068 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
3069
3070         * config/s390/s390.c (s390_frame_info): Added alignment statement for
3071         floating point register area on stack.
3072
3073 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
3074
3075         * predict.c (expr_expected_value): Use *_CLASS_P macros.
3076
3077 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
3078
3079         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
3080         generating useless garbage.
3081
3082 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
3083
3084         * builtins.c (fold_builtin): Call the new omonymous
3085         target hook for machine-dependent built-ins.
3086         * target-def.h (TARGET_FOLD_BUILTIN): New.
3087         * target.h (struct gcc_target): Add the fold_builtin hook.
3088         * targhooks.c (default_fold_builtin): New.
3089         * targhooks.h (default_fold_builtin): Declare it.
3090
3091 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
3092
3093         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
3094         comment typos.
3095
3096 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
3097
3098         PR target/17565
3099         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
3100
3101 2004-09-20  Jan Hubicka  <jh@suse.cz>
3102
3103         * predict.c (estimate_probability): Remove unnecesary code.
3104
3105 2004-09-19  Ira Rosen  <irar@il.ibm.com>
3106
3107         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
3108         (STMT_VINFO_VECT_DR_BASE): Declare.
3109         (VECT_SMODULO): Declare.
3110         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
3111         (vect_compute_array_base_alignment): New function.
3112         (vect_analyze_data_ref_access): Check array indices. Remove one
3113         dimensional arrays restriction.
3114         (vect_get_ptr_offset): New function.
3115         (vect_get_symbl_and_dr): New function.
3116         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
3117         (former name vect_get_base_decl_and_bit_offset).
3118         (vect_create_index_for_array_ref): Removed.
3119         (vect_create_index_for_vector_ref): New function.
3120         (vect_create_addr_base_for_vector_ref): New function.
3121         (vect_create_data_ref): Handle additional data refs. Call
3122         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
3123         (vect_compute_data_ref_alignment): Support the changes. Call
3124         vect_get_base_and_bit_offset.
3125         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
3126         data refs. Store vect_dr_base.
3127         (vect_analyze_data_ref_accesses): Support nonconstant init.
3128         (new_stmt_vec_info): Initialize vect_dr_base field.
3129         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
3130         (get_vectype_for_scalar_type): Check for BLKmode.
3131         * tree-chrec.h (initial_condition_in_loop_num): Declare.
3132         * tree-chrec.c (initial_condition_in_loop_num): New function.
3133         (chrec_component_in_loop_num): New function.
3134         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
3135         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
3136         to be pointer to varray_type.
3137
3138 2004-09-19  Jan Hubicka  <jh@suse.cz>
3139
3140         * basic-block.h (update_bb_profile_after_threading): Declare.
3141         * cfg.c (update_bb_profile_after_threading): Break out from ...
3142         * cfgcleanup.c (try_forward_edges): ... here; use it.
3143         * tree-ssa-dom.c (thread_across_edge): Use it.
3144         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
3145         profile of the new BB.
3146
3147 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
3148
3149         * tree-ssa-pre.c (insert_into_set): Don't put
3150         is_gimple_min_invariant values into the set.
3151
3152 2004-09-19  Andreas Jaeger  <aj@suse.de>
3153
3154         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
3155         prototype.
3156
3157 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
3158
3159         * config/cris/cris.h: Preserve the original spelling in a
3160         quote.
3161
3162 2004-09-18 Jeff Law  <law@redhat.com>
3163
3164         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
3165         global varrays to replace the block local varrays.
3166         (struct dom_walk_block_data): Remove, no longer used.
3167         (get_eq_expr_value): No longer need to pass around pointers to local
3168         varrays.  Callers updated.  Unused markers added to unused parameters.
3169         (record_range, record_equivalences_from_stmt): Likewise.
3170         (record_equivalences_from_incoming_edge): Likewise.
3171         (record_var_is_nonzero): Likewise.  Update now that we have a
3172         single global varray of SSA_NAMEs that need restoring.
3173         (dom_opt_initialize_block_local_data): Kill, no longer used.
3174         (tree_ssa_dominator_optimize): Initialize new global varrays.
3175         Update callbacks in dominator walker structure.
3176         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
3177         VRP_VARIABLES_STACK.
3178         (restore_nonzero_vars_to_original_value): Update now that we have
3179         a single global varray of SSA_NAMEs that need restoring.
3180         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
3181         Remove unused variables.
3182         (optimize_stmt): Remove unused variable.
3183
3184 2004-09-18  Jan Hubicka  <jh@suse.cz>
3185
3186         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
3187
3188         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
3189         verify_cgraph call.
3190
3191 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
3192
3193         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
3194         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
3195         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
3196         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
3197         tree-ssa-operands.c, tree-ssa-phiopt.c,
3198         tree-ssa-threadupdate.c: Fix comment typos.
3199
3200 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
3201
3202         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
3203         config/arm/README-interworking, config/arm/arm-cores.def,
3204         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
3205         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
3206         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
3207         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
3208         config/frv/frv.md, config/i386/winnt.c,
3209         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
3210         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
3211         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
3212         config/mcore/mcore.c, config/mips/mips.h,
3213         config/mn10300/mn10300.md, config/pa/pa.c,
3214         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
3215         config/rs6000/rs6000.c, config/sh/symbian.c,
3216         config/sparc/sparc.h: Fix comment typos.  Follow spelling
3217         conventions.
3218
3219 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
3220
3221         PR c/17424
3222         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
3223
3224 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
3225
3226         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
3227         remove TREE_ADDRESSABLE from RESULT_DECL.
3228
3229 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
3230
3231         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
3232
3233 2004-09-18  Jan Hubicka  <jh@suse.cz>
3234
3235         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
3236         NULL.
3237         * tree-ssa-alias.c (init_alias_info): Likewise.
3238         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
3239         (verify_ssa): Likewise.
3240         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
3241
3242 2004-09-18  Jan Hubicka  <jh@suse.cz>
3243
3244         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
3245         huge offset.
3246
3247 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3248
3249         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
3250         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3251         DW_EH_PE_sdata* for data.
3252         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
3253
3254 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
3255
3256         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
3257         shared anyway.
3258
3259         PR pch/13361
3260         * c-typeck.c (constructor_asmspec): Delete.
3261         (struct initializer_stack): Delete field 'asmspec'.
3262         (start_init): Delete saving of asmspec.
3263         (finish_init): Don't update constructor_asmspec.
3264         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
3265         * stmt.c (expand_asm): Duplicate strings from tree.
3266         (expand_asm_operands): Likewise.
3267         * tree.c (tree_size): Update computation of size of STRING_CST.
3268         (make_node): Don't make STRING_CST nodes.
3269         (build_string): Allocate string with tree node.
3270         (tree_code_size): Clean up assertions, don't allow requests
3271         for "the size of a STRING_CST".
3272         * tree.def (STRING_CST): Update comment.
3273         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
3274         (tree_string): Place contents of string in tree node.
3275         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
3276         from tree.
3277
3278 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
3279
3280         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
3281         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
3282
3283 2004-09-17  Jones Desougi  <jones@ingate.com>
3284
3285         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
3286         * configure, config.in: Regenerate.
3287
3288 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
3289
3290         * tree.c, tree.h (tree_class_strings): Make array const.
3291         Reindent per coding convention.  Move asterisk to proper place
3292         per coding convention.
3293
3294 2004-09-18  Andreas Schwab  <schwab@suse.de>
3295
3296         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
3297         (tree-vectorizer.o): Likewise.
3298         (targhooks.o): Likewise.
3299
3300 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
3301             Zack Weinberg  <zack@codesourcery.com>
3302
3303         * alias.c (find_base_decl): Remove unreachable case '3' block.
3304         * expr.c (safe_from_p): Abort if passed a type.
3305         * tree-gimple.c (recalculate_side_effects): Abort if passed
3306         anything other than an expression.
3307         * tree-ssa-pre.c (phi_translate): Return expr immediately if
3308         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
3309         Abort on un-handled tree classes.
3310         (valid_in_set): Likewise.
3311         * tree.c (tree_code_class_strings): New static data.
3312
3313         * tree.h (enum tree_code_class): New.
3314         (tree_code_class_strings): Declare.
3315         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
3316         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
3317         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
3318         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
3319         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
3320
3321         * tree.def, c-common.def, objc/objc-tree.def: Use
3322         tree_code_class enumeration constants instead of code letters.
3323
3324         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
3325         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
3326         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
3327         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
3328         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
3329         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
3330         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
3331         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
3332         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
3333         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
3334         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
3335         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
3336         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
3337         Update to match.
3338
3339         * LANGUAGES: Add note about change.
3340
3341 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
3342
3343         PR tree-optimization/17319
3344         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
3345         examine pointers on the LHS of an assignment.
3346         (collect_points_to_info_r): Handle RETURN_EXPR.
3347
3348 2004-09-17 Jeff Law  <law@redhat.com>
3349
3350         * tree-ssa-dom.c (const_and_copies_stack): New.
3351         (dom_walk_block_data): Remove const_and_copies field.
3352         (record_const_or_copy): No longer need to pass in varray_type *.
3353         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
3354         Callers updated.
3355         (record_equality): Similarly.
3356         (restore_vars_to_original_value): Similarly.  Revamp to use new
3357         single global stack rather than per-block stacks.
3358         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
3359         (thread_across_edge): Remove now unused parameters.
3360         (dom_opt_initialize_block_local_data): No longer test the block
3361         local CONST_AND_COPIES.
3362         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
3363
3364 2004-09-17  Jan Hubicka  <jh@suse.cz>
3365
3366         PR tree-optimization/17509
3367         * tree-optimize.c (update_inlined_to_pointers): New function.
3368         (tree_rest_of_compilation): Use it.
3369
3370 2004-09-17  Devang Patel  <dpatel@apple.com>
3371
3372         * dbxout.c (get_lang_number): New.
3373         (dbxout_init): Include lang number in N_SO  stab.
3374         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
3375         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
3376
3377 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
3378
3379         PR tree-optimization/17273
3380         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
3381         replacement is a constant.
3382
3383 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
3384
3385         * c-tree.h (enum c_typespec_keyword): New.
3386         (struct c_declspecs): Adjust description of "type".  Remove
3387         specbits, explicit_int_p and explicit_char_p.  Rename
3388         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
3389         short_p, signed_p, unsigned_p and complex_p.
3390         (finish_declspecs): New.
3391         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
3392         typename): Call finish_declspecs.
3393         * c-decl.c (finish_declspecs): New.
3394         (declspecs_add_type): Check for combinations which cannot occur in
3395         valid specifier lists.  Update comments.
3396         (shadow_tag_warned): Remove checks done in finish_declspecs.
3397         Don't report useless type name if type defaulted to int.
3398         (grokdeclarator): Remove checks and actions done in
3399         finish_declspecs.  Don't allow for type being NULL.  Update for
3400         datastructures changes.  Initialize decl_attr.
3401         (build_null_declspecs, quals_from_declspecs): Update for
3402         datastructures changes.
3403
3404 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
3405
3406         * doc/extend.texi: Fix duplicated word.
3407
3408 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
3409
3410         * doc/invoke.texi: Remove stray explanation on
3411         -freduce-all-givs and -fmove-all-movables.
3412
3413 2004-09-17  James Morrison  <phython@gcc.gnu.org>
3414
3415         * doc/cfg.texi: Use @smallexample.
3416         * doc/md.texi: Likewise.
3417         * doc/tree-ssa.texi: Likewise.
3418         * doc/extend.texi: Likewise.  Use @r{} in comments.
3419         * doc/trouble.texi: Use @r{} in comments.
3420
3421 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
3422
3423         * configure.ac (gcc_cv_gld_version): Handle whitespace before
3424         "VERSION=".
3425         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
3426         * configure: Regenerate.
3427
3428 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
3429
3430         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
3431         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
3432         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
3433         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
3434         slashes in substitutions.
3435         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
3436
3437 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
3438
3439         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
3440         gimplify.c, lambda-code.c, optabs.c, predict.c,
3441         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
3442         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
3443         conventions.
3444
3445 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
3446
3447         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
3448         doc/extend.texi, doc/install.texi, doc/invoke.texi,
3449         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
3450         doc/trouble.texi: Use @option around options.
3451
3452 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
3453
3454         * Makefile.in (gen-protos.o): Depend on errors.h.
3455
3456 2004-09-17  Steven Bosscher  <stevenb@suse.de>
3457
3458         PR tree-optimization/17513
3459         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
3460         for successors of the entry block.
3461
3462 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
3463
3464         PR rtl-optimization/15187
3465         * ifcvt.c (noce_try_cmove_arith): Exit early if total
3466         insn_rtx_cost of both branches > BRANCH_COST
3467
3468 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
3469
3470         PR tree-optimization/17528
3471         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
3472         erase the may-alias set for a tag when merging it with
3473         another.
3474
3475 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3476
3477         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
3478         for 32-bit TARGET_SHMEDIA.
3479         (call_value): Likewise.
3480
3481 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
3482
3483         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
3484         test apply only to TREE_STATIC and DECL_EXTERNAL.
3485
3486 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3487
3488         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
3489         * basic-block.h (get_dominated_by_region): Declare.
3490         * dominance.c (get_dominated_by_region): New function.
3491         * tree-cfg.c: Include cfglayout.h.
3492         (tree_duplicate_bb): Duplicate also phi nodes.
3493         (struct ssa_name_map_entry): New type.
3494         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
3495         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
3496         allocate_ssa_names, rewrite_to_new_ssa_names_def,
3497         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
3498         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
3499         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
3500         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
3501         rewrite_to_new_ssa_names, allocate_ssa_names,
3502         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
3503         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
3504         (copy_loop_headers): Use tree_duplicate_sese_region.
3505
3506 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
3507
3508         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
3509
3510 2004-09-16 Jeff Law  <law@redhat.com>
3511
3512         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
3513         (rewrite_block_data): Remove, no longer used.
3514         (rewrite_initialize_block_local_data): Remove, no longer used.
3515         (rewrite_initialize_block): Mark parameters as unused as needed.
3516         Change references to the block local block_defs to be block_defs_stack.
3517         Push a marker onto the block_defs_stack.
3518         (ssa_rewrite_initialize_block): Similarly.
3519         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
3520         (ssa_register_new_def): No longer needs varray argument.  Use
3521         block_defs_stack instead.  No longer handle possibly null block_defs
3522         varray.  Reverse order of items we push on the stack to make it
3523         easier to identify our marker.
3524         (register_new_def): No longer handle possibly null block_defs
3525         varray.
3526         (rewrite_finalize_block): Revamp to look for markers in the global
3527         block_defs_stack varray rather than wiping a block local varray.
3528         Mark arguments as unused as needed.
3529         (ssa_rewrite_finalize_block): Similarly.
3530         (rewrite_into_ssa): Update initialization of dom walker structure
3531         to reflect that we don't need block local data anymore.  Initialize
3532         the block_defs_stack varray.
3533         (rewrite_ssa_into_ssa): Similarly.
3534         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
3535         (struct dom_walk_data): Kill block_defs field.
3536         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
3537         (thread_across_edge): Use the global block_defs_stack instead of
3538         the old block_defs varray.
3539         (dom_opt_initialize_block_local_data): Update now that we don't have
3540         block_defs field to check anymore.
3541         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
3542         (restore_currdefs_to_original_value): Use the new block_defs_stack
3543         instead of a block local varray.
3544         (dom_opt_finalize_block): Similarly.
3545         (record_equivalencs_from_phis): Similarly.
3546         (optimize_stmt, register_definitions_for_stmt): Similarly.
3547
3548 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
3549
3550         PR tree-optimization/17517
3551         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
3552         coalesce same-root variables without checking for abnormal PHI usage.
3553
3554 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
3555
3556         * cfgloop.h (duplicate_loop):  Add prototype.
3557         * cfgloopmanip.c (duplicate_loop): Make non-static.
3558         * lambda-code.c (perfect_nestify): Factor out test whether
3559         we can handle this loop into separate function.
3560         Call it.
3561         (can_convert_to_perfect_nest): New function.
3562         (replace_uses_of_x_with_y): Add modify_stmt call.
3563         * tree-loop-linear.c (linear_transform_loops): Call
3564         rewrite_into_loop_closed_ssa and free_df.
3565
3566 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
3567
3568         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
3569         loop invariant as well.
3570         (perfect_nestify): new function.
3571         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
3572         upper bounds, and steps.
3573         Set outerinductionvar properly.
3574         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
3575         parameters.
3576         Return NULL if we need a perfect loop and can't make one.
3577         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
3578         (not_interesting_stmt): New function.
3579         (phi_loop_edge_uses_def): Ditto.
3580         (stmt_uses_phi_result): Ditto.
3581         (stmt_is_bumper_for_loop): Ditto.
3582         (perfect_nest_p): Ditto.
3583         (nestify_update_pending_stmts): Ditto.
3584         (replace_uses_of_x_with_y): Ditto.
3585         (stmt_uses_op): Ditto.
3586         (perfect_nestify): Ditto.
3587         * lambda-mat.c (lambda_matrix_id_p): New function.
3588         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
3589         * lambda.h: Update prototypes.
3590         * tree-loop-linear (linear_transform_loop): Use new
3591         perfect_nest_p. Detect and ignore identity transform.
3592         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
3593
3594 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
3595
3596         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
3597         Gather also strides of accessed data.  Pass in the data references
3598         array.
3599         (try_interchange_loops): Add a new heuristic for handling the temporal
3600         locality.  Pass in the data references array.
3601         (linear_transform_loops): Pass the data references array to
3602         try_interchange_loops.
3603
3604 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
3605
3606         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
3607
3608 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
3609
3610         * doc/c-tree.texi (Classes): Remove index entries for
3611         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
3612
3613 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3614
3615         * fold-const.c (fold): Fold difference of addresses.
3616         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
3617         get_inner_reference.
3618         * tree-ssa-loop-ivopts.c (peel_address): Removed.
3619         (ptr_difference_const): Moved to fold-const.c.
3620         (split_address_cost): Use get_inner_reference instead of peel_address.
3621         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
3622         * tree.h (ptr_difference_const): Export.
3623
3624         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
3625         variable type to the dump.  Fix indentation.
3626         (idx_find_step): Handle nonconstant array_ref_element_size and
3627         array_ref_low_bound.
3628         (idx_record_use): Handle array_ref_element_size and
3629         array_ref_low_bound.
3630         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
3631         statements correctly.
3632         (get_computation_at, iv_value): Do not unshare expressions here.
3633         (rewrite_use_outer): Unshare the expression before it is emitted
3634         to code.
3635         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
3636         Moved to tree.c.
3637         * tree.c (unsigned_type_for, signed_type_for): Moved from
3638         tree-ssa-loop-niter.c.  Use langhooks.
3639         * tree.h (signed_type_for): Export.
3640
3641 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
3642
3643         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
3644         prototype.
3645
3646 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
3647
3648         PR target/11572
3649         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
3650         Add two parameters to extra_includes.
3651         (C_INCPATH_INIT): Remove.
3652         * c-incpath.c (register_include_chains): Call extra_pre_includes
3653         before adding the standard include directory.
3654         Update call to extra_includes.
3655         (!defined TARGET_EXTRA_INCLUDES): Update
3656         hook_void_charptr_charptr_int and add !define
3657         TARGET_EXTRA_PRE_INCLUDES.
3658         (!define TARGET_EXTRA_INCLUDES): Define as
3659         hook_void_charptr_charptr_int.
3660         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
3661         (target_c_incpath): Always declare.
3662         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
3663         empty function.
3664         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
3665         * config/darwin.h: (darwin_register_frameworks): Update for
3666         the two new parameters.
3667         (darwin_register_objc_includes): Add prototype.
3668         (TARGET_EXTRA_PRE_INCLUDES): Define.
3669         * config/darwin-c.c (darwin_register_objc_includes): New function.
3670         (darwin_register_frameworks): Update for the two new parameters.
3671         (target_c_incpath): Remove.
3672         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
3673         the compile line.
3674         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
3675         parameters.
3676         (TARGET_EXTRA_PRE_INCLUDES): Document.
3677
3678         * gcc.c (spec_function): Add replace-outfile.
3679         (replace_outfile_spec_function): New function.
3680         * config/darwin.h (LINK_SPEC): Add replace
3681         -lobjc with -lobjc-gnu if -fgnu-runtime is
3682         supplied.
3683         * invoke.texi (replace-outfile): Document.
3684
3685 2004-09-13  Jan Hubicka  <jh@suse.cz>
3686
3687         * predict.c (expr_expected_value, strip_builtin_expect): New function.
3688         (tree_predict_by_opcode): Use it.
3689         (tree_estimate_probability): Add, for now disabled,
3690         strip_builtin_expect call.
3691
3692 2004-09-15  James E Wilson  <wilson@specifixinc.com>
3693
3694         PR target/17455
3695         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
3696         if current_function_decl is a sibcall.
3697
3698 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
3699
3700         * varasm.c (default_function_rdodata_section): Make sure to pass
3701         along a decl for a link-once section.
3702
3703 2004-09-15  Richard Henderson  <rth@redhat.com>
3704
3705         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
3706         warning with code disable.  Fix formatting.
3707
3708 2004-09-15  Steven Bosscher  <stevenb@suse.de>
3709
3710         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
3711         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
3712         after propagating into an ADDR_EXPR.
3713
3714 2004-09-15  Andrew Pinski  <apinski@apple.com>
3715
3716         PR rtl-opt/17427
3717         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
3718         Move it out of gcc_assert.
3719
3720 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
3721
3722         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
3723         except.c, fold-const.c, function.c, langhooks.c, params.c,
3724         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
3725         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
3726         for quoting in diagnostics going through pretty-print.c.  Use ''
3727         for quoting in other diagnostic text.
3728         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
3729         translation.
3730         * Makefile.in (langhooks.o): Update dependencies.
3731         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
3732         formats.
3733
3734 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
3735
3736         * configure.ac: Check for COMDAT support.  Robustify check for
3737         SHF_MERGE support.
3738         * configure: Regenerated.
3739         * config.in: Likewise.
3740         * langhooks-def.h (lhd_comdat_group): New function.
3741         (LANG_HOOKS_COMDAT_GROUP): New macro.
3742         (LANG_HOOKS_DECLS): Use it.
3743         * langhooks.c (lhd_comdat_group): Define.
3744         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
3745         * output.h (named_section_flags): Make it a macro.
3746         (named_section_real): New function.
3747         (default_no_named_section): Add decl parameter.
3748         (default_elf_asm_named_section): Likewise.
3749         (default_coff_asm_named_section): Likewise.
3750         (default_pe_asm_named_section): Likewise.
3751         * target.h (gcc_target): Adjust type of named_section.
3752         * varasm.c (named_section_flags): Rename to named_section_real.
3753         Add decl parameter.
3754         (default_no_named_section): Add decl parameter.
3755         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
3756         with the case that ASM_COMMENT_START is "@".
3757         (default_coff_asm_named_section): Add decl parameter.
3758         (default_pe_asm_named_section): Likewise.
3759         * config/alpha/alpha.c (vms_asm_named_section): Add decl
3760         parameter.
3761         (unicosmk_asm_named_section): Likewise.
3762         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
3763         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
3764         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
3765         * config/cris/cris-protos.h (cris_target_asm_named_section):
3766         Likewise.
3767         * config/cris/cris.c (cris_target_asm_named_section):
3768         Likewise.
3769         * config/darwin/darwin-protos.h (darwin_asm_named_section):
3770         Likewise.
3771         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
3772         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
3773         * config/i386/i386-protos.h (i386_pe_asm_named_section):
3774         Likewise.
3775         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
3776         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
3777         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
3778         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
3779         Likewise.
3780         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
3781         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
3782         * cp/cp-tree.h (cxx_comdat_group): Declare.
3783         * cp/decl.c (cxx_comdat_group): New function.
3784
3785 2004-09-15  Jan Hubicka  <jh@suse.cz>
3786
3787         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
3788         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
3789
3790         * tree-cfg.c (remove_bb): Release SSA defs.
3791
3792 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
3793
3794         * doc/tm.texi: Follow spelling conventions.
3795
3796 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
3797
3798         * tree-ssa-dom.c: Fix comment typos.
3799
3800 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
3801
3802         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
3803         include ccr.
3804         (ppc_fallback_frame_state): Save location of CR.
3805
3806 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
3807
3808         * expr.c (string_constant): Handle also read-only variables
3809         initialized to string literals.
3810
3811         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
3812         into memcpy (x, y, 1) if memcpy can be expanded inline.
3813
3814 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3815
3816         PR tree-optimization/17468
3817         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
3818         definition inside a block precede uses.
3819         * tree-tailcall.c (adjust_return_value): Emit statements in the
3820         correct order.
3821
3822 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
3823
3824         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
3825
3826 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
3827
3828         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
3829
3830 2004-09-14 Jeff Law  <law@redhat.com>
3831
3832         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
3833         (struct dom_walk_block_data): Remove avail_exprs member.
3834         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
3835         (lookup_avail_expr): No longer need to pass in address of
3836         the block local available exprs stack.  All callers changed.
3837         (simplify_cond_and_lookup_avail_expr): Similarly.
3838         (simplify_switch_and_lookup_avail_expr): Similarly.
3839         (get_eq_expr_value, record_cond): Likewise.
3840         (record_dominating_conditions): Likewise.
3841         (update_rhs_and_lookup_avail_expr): Likewise.
3842         (record_equivalences_from_stmt): Likewise.
3843         (dom_opt_initialize_block_local_data): No longer test state of
3844         block local avail_exprs.
3845         (dom_opt_initialize_block): Mark unwind point in the global
3846         avail_expr stack.
3847         (remove_expressions_from_table): Update to unwind to the
3848         most recent unwind marker in the global avail_expr stack.
3849         All callers changed.
3850         (dom_opt_finalize_block): Mark unwind point in the global
3851         avail_expr stack as needed.
3852         (record_cond): Push elements into the global avail_exprs stack.
3853
3854         * tree-dfa.c (free_df_for_stmt): No longer static.
3855         (free_df): Update comments.
3856         * tree-flow.h (free_df_for_stmt): Prototype.
3857         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
3858         call release_defs.
3859
3860 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
3861
3862         PR tree-optimization/17252
3863         * tree-ssa-alias.c (may_alias_p): Don't assume that a
3864         pointer may not point to itself when using relaxed
3865         aliasing rules.
3866
3867 2004-09-14  Richard Henderson  <rth@redhat.com>
3868
3869         PR middle-end/17397
3870         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
3871         while folding <ADDR_EXPR <INDIRECT_REF X>>.
3872
3873 2004-09-14  Andrew Pinski  <apinski@apple.com>
3874
3875         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
3876         sets of the pointers but the aliasing sets of what they point to.
3877
3878 2004-09-14  Roger Sayle  <roger@eyesopen.com>
3879
3880         PR rtl-optimization/9771
3881         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
3882         conditional compilation in init_reg_sets_1.
3883         (init_reg_sets_1): Let global_regs[i] take priority over the frame
3884         (but not stack) pointer exceptions to regs_invalidated_by_call.
3885         (globalize_reg): Globalizing a fixed register may need to update
3886         regs_invalidated_by_call.
3887
3888 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
3889
3890         PR tree-optimization/15262
3891         * tree-dfa.c (dump_variable): Also print the type of the
3892         variable.
3893         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
3894         memory tags are of conflicting alias sets but have no aliased
3895         symbols in common, add one tag to the alias set of the other.
3896         (setup_pointers_and_addressables): Remove hack to deal with
3897         programs with no aliased symbols.
3898         (may_alias_p): Don't special case aggregate types.
3899
3900 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
3901
3902         PR c/15498
3903         * doc/invoke.texi (Environment Variables): Correct example locale.
3904
3905 2004-09-14  Jan Hubicka  <jh@suse.cz>
3906
3907         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
3908
3909 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
3910
3911         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
3912
3913 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
3914
3915         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
3916         restrict_p.
3917         (struct c_declarator): Change u.array.quals and pointer_quals to
3918         int.  Add u.array.attrs.
3919         (quals_from_declspecs): New.
3920         * c-decl.c (quals_from_declspecs): New.
3921         (shadow_tag_warned): Give more specific message for useless type
3922         qualifiers.
3923         (build_array_declarator, set_array_declarator_inner,
3924         grokdeclarator, make_pointer_declarator, build_null_declspecs,
3925         declspecs_add_qual): Update for changed structures.
3926
3927 2004-09-14  Jeff Law  <law@redhat.com>
3928
3929         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
3930         to a global varray.
3931         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
3932         (dom_opt_initialize_block_local_data): No longer test state
3933         of stmts_to_rescan.
3934         (dom_opt_finalize_block): Update due to change in scope of
3935         stmts_to_rescan.
3936         (optimize_stmt): Similarly.
3937
3938 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
3939
3940         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
3941         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
3942         comment typos.  Follow spelling conventions.
3943
3944 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
3945
3946         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
3947         config/i386/predicates.md, config/sparc/sparc.c: Follow
3948         spelling conventions.
3949
3950 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3951             Steven Bosscher  <stevenb@suse.de>
3952
3953         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
3954         * basic-block.h (struct reorder_block_def): Add copy_number field.
3955         * cfgloop.h (biv_p): Declare.
3956         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
3957         * common.opt (fsplit-ivs-in-unroller): New flag.
3958         * loop-iv.c (biv_p): New function.
3959         * loop-unroll.c: Include hashtab.h and recog.h.
3960         (struct iv_to_split, struct split_ivs_info): New types.
3961         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
3962         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
3963         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
3964         insert_base_initialization, split_iv): New functions.
3965         (peel_loop_completely, unroll_loop_constant_iterations,
3966         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
3967         Use them.
3968         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
3969
3970 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3971
3972         * tree-cfg.c (thread_jumps): Update dominators correctly in
3973         case destination of threaded edge dominates its source.
3974
3975 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3976
3977         * unroll.c: Removed.
3978         * loop.h: Removed.
3979         * Makefile.in (LOOP_H, unroll.o): Removed.
3980         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
3981         dependency.
3982         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
3983         reference.
3984         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
3985         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
3986         * loop.c: Do not include loop.h.
3987         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
3988         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
3989         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
3990         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
3991         struct loop_regs, struct loop_movables, struct loop_info): Moved
3992         from loop.h.
3993         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
3994         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
3995         find_common_reg_term, loop_iterations, final_giv_value): Moved
3996         from unroll.c.
3997         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
3998         loop_dump_stream, for_each_insn_in_loop, express_from,
3999         extend_value_for_giv, loop_iv_add_mult_emit_before,
4000         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
4001         loop_insn_first_p, get_condition_for_loop,
4002         loop_insn_emit_before, loop_insn_hoist,
4003         loop_insn_sink): Made static.
4004         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
4005         reference.
4006         (strength_reduce): Do not call unroller.
4007         (record_giv): Do not initialize unrolled field.
4008         (prescan_loop): Do not set loop_info->preconditioned.
4009         * passes.c: Do not include loop.h.
4010         (rest_of_handle_loop_optimize): Do not call unroller.
4011         * predict.c: Do not include loop.h.
4012         * rtl.h (NOTE_PRECONDITIONED): Removed.
4013         * stmt.c: Do not include loop.h.
4014         * toplev.c: Do not include loop.h.
4015         (process_options): Do not handle flag_old_unroll_loops.
4016
4017         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
4018         Documentation removed.
4019         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
4020
4021 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
4022
4023         * Makefile.in (STAGE1_CHECKING): New variable.
4024         (stage1_build): Use it.
4025         * tree-ssa.c (verify_ssa): Preserve state of dominance
4026         information.
4027
4028 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
4029
4030         * config/i386/i386.c (output_fp_compare): Add generation
4031         of ftst instruction.
4032         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
4033         Use output_fp_compare () function.
4034         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
4035         (fix_truncdi_memory): Remove operands[5] copy.
4036
4037 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
4038
4039         * config/m32r/m32r.md, config/m68k/m68kelf.h,
4040         config/mcore/mcore.md, config/rs6000/linux64.h,
4041         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
4042         typos.
4043
4044 2004-09-13  James E Wilson  <wilson@specifixinc.com>
4045
4046         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
4047         * gen-protos.c: Include errors.h.
4048         (progname): Delete.
4049
4050 2004-09-14  Jan Hubicka  <jh@suse.cz>
4051
4052         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
4053         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
4054         (predict_loops): Use number_of_iterations_exit to predict
4055         number of iterations on trees.
4056
4057 2004-09-13  Dale Johannesen  <dalej@apple.com>
4058
4059         PR 17408
4060         PR 17409
4061         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
4062         objects declared extern.
4063
4064 2004-09-14  Paul Brook  <paul@codesourcery.com>
4065
4066         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
4067         HOST_WIDE_INT.
4068
4069 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
4070
4071         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
4072         Only use TYPE_BINFO for aggregates.
4073
4074 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
4075
4076         * expmed.c (synth_mult): Initialize latency.  Check cost before
4077         checking ops count.
4078
4079 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
4080
4081         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
4082         add_call_clobber_ops and add_call_read_ops.
4083         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
4084         the number of vdefs and vuses inserted based on analysis of global
4085         variables across calls.  * tree-dfa.c (find_referenced_vars):
4086         Needed to reset static var maps before each function is compiled.
4087         * cgraphunit.c:
4088         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
4089         static_vars_info,functions_to_static_vars_info,module_statics_escape,
4090         all_module_statics,searchc_env,dfs_info): New fields to support
4091         analysis of static global variables.
4092         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
4093         cgraph_reset_static_var_maps, get_global_static_vars_info,
4094         get_global_statics_not_read, get_global_statics_not_written,
4095         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
4096         check_rhs_var, check_lhs_var, get_asm_expr_operands,
4097         process_call_for_static_vars, scan_for_static_refs,
4098         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
4099         clear_static_vars_maps, cgraph_propagate_bits,
4100         cgraph_characterize_statics): New. Functions to support analysis
4101         of static global variables.
4102         (cgraph_mark_local_and_external_functions): Renamed from:
4103         (cgraph_mark_local_functions)
4104         (cgraph_expand_all_functions): Remove call to
4105         cgraph_mark_local_and_external_functions.
4106         (cgraph_optimize): Added driver to analyze static variables whose
4107         scope is within the compilation unit.  * cgraph.h (struct
4108         cgraph_local_info, GTY): Added statics_read, statics_written,
4109         local, calls_read_all, calls_write_all, for_functions_valid.
4110         (struct cgraph_node): Added next_cycle.  * cgraph.c
4111         (dump_cgraph_node): Added print routines for new fields.  *
4112         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
4113         list.
4114
4115 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
4116
4117         * c-decl.c (grokdeclarator): Correct comments about where storage
4118         class specifiers are rejected by grammar and add corresponding
4119         asserts.  Diagnose typedefs and parameters declared inline.
4120         Change warning for inline main to a pedwarn.  Only diagnose inline
4121         main if hosted.
4122         (declspecs_add_scspec): Allow duplicate "inline".
4123
4124 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
4125
4126         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
4127         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
4128
4129 2004-09-13  Richard Henderson  <rth@redhat.com>
4130
4131         PR 17436
4132         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
4133         (tree_type): Replace spare with contains_placeholder_bits.
4134         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
4135         make static.  Remove seen_types list.
4136         (type_contains_placeholder_p): New.
4137
4138 2004-09-13  James E Wilson  <wilson@specifixinc.com>
4139
4140         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
4141         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
4142         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
4143         bdesc_arrays instead of mips_bdesc.
4144         (mips_init_builtins): Likewise.
4145         * config/mips/mips.h (TARGET_SB1): New.
4146         (HAVE_SQRT_P): Delete.
4147         * config/mips/mips.md (divide_condition): Support V2SF.
4148         (sqrt_condition, recip_condition): New.
4149         (div<mode>3): Use ANYF instead of SCALARF.
4150         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
4151         MODE.
4152         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
4153         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
4154         instead of MODE.
4155         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
4156         instead of SCALARF.  Use UNITMODE instead of MODE.
4157
4158 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
4159
4160         * config.in: Regenerate after removal of libbanshee.
4161
4162 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
4163
4164         PR tree-optimization/17400
4165         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
4166         coalesce partitions when one occurs in an abnormal PHI.
4167
4168 2004-09-13  Andrew Pinski  <apinski@apple.com>
4169
4170         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
4171         name to _new_size.
4172
4173 2004-09-13  Richard Henderson  <rth@redhat.com>
4174
4175         PR inline-asm/6806
4176         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
4177         (cselib_invalidate_rtx_note_stores): New.
4178         (cselib_record_sets, cselib_process_insn): Update to match.
4179         * cselib.h (cselib_invalidate_rtx): Declare.
4180         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
4181
4182 2004-09-13  Richard Henderson  <rth@redhat.com>
4183
4184         PR tree-opt/10528
4185         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
4186         after copying its argument.
4187
4188 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
4189
4190         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
4191         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
4192         in diagnostics.  Use %' for English apostrophes.
4193         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
4194         (pedwarn_c90, pedwarn_c99): Use it.
4195         * c-decl.c (lookup_label): Quote label name in diagnostic.
4196         * c-parse.in (yyprint): Use ' instead of ` for left quote.
4197         * c-typeck.c (warn_for_assignment): Likewise.
4198
4199 2004-09-13  Jan Hubicka  <jh@suse.cz>
4200
4201         * i386.c (x86_schedule): New global variable.
4202         (override_options): Disable scheduling when not supported.
4203         * i386.h (x86_schedule): Declare.
4204         (TARGET_SCHEDULE): New macro.
4205
4206 2004-09-12  Richard Henderson  <rth@redhat.com>
4207
4208         PR c++/16254
4209         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
4210         * tree.c, tree.h (has_cleanups): Remove.
4211
4212 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4213
4214         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
4215         arguments of the phi nodes correctly.
4216
4217 2004-09-12  Jan Hubicka  <jh@suse.cz>
4218
4219         * ggc-common.c (cmp_statistics): Fix sorting.
4220
4221 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
4222
4223         PR target/16795
4224         * expmed.c (expand_divmod): If cheap power of 2 divide is
4225         available, use it for negative constant as well.
4226
4227 2004-09-12  Andrew Pinski  <apinski@apple.com>
4228
4229         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
4230         size of 0.
4231
4232         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
4233
4234 2004-09-12  Richard Henderson  <rth@redhat.com>
4235
4236         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
4237         or minus one.
4238         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
4239         post-reload, and scratch NULL.
4240         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
4241         (x86_shift_adj_2): Use ix86_expand_clear.
4242         (ashldi3): Remove CMOVE expansion difference.
4243         (ashldi3_1): Remove.
4244         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
4245         add constraints for immediates.  New peephole for split-with-temp.
4246         Run splitter after peep2 pass.
4247         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
4248         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
4249         (setcc_2): Rename with *.
4250         * config/i386/predicates.md (reg_or_pm1_operand): New.
4251         (ashldi_input_operand): New.
4252
4253 2004-09-12  Richard Henderson  <rth@redhat.com
4254
4255         * print-rtl.c (print_decl_name): New.
4256         (print_mem_expr): Use it.
4257
4258 2004-09-12  Richard Henderson  <rth@redhat.com
4259
4260         PR 17186, part deux
4261         * except.c (sjlj_emit_function_exit): Fix logic locating
4262         sjlj_exit_after in final block.
4263
4264 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
4265
4266         * common.opt: Remove flags -fmove-all-movables and
4267         -freduce-all-givs.
4268         * loop-invariant.c (find_invariants_to_move):
4269         Remove all uses of flag_move_all_movables.
4270         * loop.c (move_movables): Remove all uses of
4271         flag_move_all_movables.
4272         (strength_reduce): Remove all uses of
4273         flag_reduce_all_givs.
4274         * doc/invoke.texi: Remove documentation of flags
4275         -fremove-all-movables and -freduce-all-givs.
4276
4277 2004-09-11  Roger Sayle  <roger@eyesopen.com>
4278
4279         PR middle-end/17411
4280         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
4281         change. elt->type may be a floating point type, so use fold_convert.
4282
4283 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
4284
4285         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
4286         the thing referenced as used, not the stub itself.
4287
4288 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
4289
4290         * c-tree.h (enum c_storage_class): New.
4291         (struct c_declspecs): Add storage_class, inline_p and thread_p.
4292         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
4293         declarations and "auto" or "register" in file scope empty
4294         declarations.  Give more specific warnings for other cases of
4295         storage class specifiers in empty declarations.
4296         (grokdeclarator): Update for new structures.  Don't check for
4297         multiple storage classes.  Diagnose file-scope "register" if
4298         pedantic.
4299         (build_null_declspecs): Update.
4300         (declspecs_add_scspec): Update.  Diagnose multiple storage class
4301         specifiers and invalid uses of "__thread".
4302
4303 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
4304
4305         * tree.c (tree_code_size): New function, bulk of code from tree_size.
4306         (tree_size, make_node): Use it.
4307         * tree-ssa-pre.c (init_pre): Use it.
4308         * tree.h: Prototype it.
4309
4310 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4311
4312         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
4313         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
4314         redirect_immediate_use): Use PHI_DF.
4315         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
4316         (bb_for_stmt): Use PHI_BB.
4317         (get_immediate_uses): Use PHI_DF.
4318         * tree-ssa-dse.c (max_stmt_uid): New variable.
4319         (get_stmt_uid): New function.
4320         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
4321         node annotations.
4322         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
4323         (max_uid): Renamed to max_stmt_uid.
4324         (get_stmt_uid): New function.
4325         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
4326         phi node annotations.
4327         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
4328         * tree.h (PHI_BB, PHI_DF): New accessor functions.
4329         (struct tree_phi_node): Add bb and df fields.
4330
4331 2004-09-11  Richard Henderson  <rth@redhat.com>
4332
4333         PR middle-end/17416
4334         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
4335         in conflict loop.
4336
4337 2004-09-11  Jan Hubicka  <jh@suse.cz>
4338
4339         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
4340         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
4341         * i386.md (i387_cw): Add 'uninitialized' mode.
4342
4343         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
4344         (output_location): Break out from ....
4345         (branch_prob): ... here; handle gcov output on trees.
4346         * toplev.c (process_options): No longer be sorry about coverage for
4347         trees.
4348
4349 2004-09-11  Steven Bosscher  <stevenb@suse.de>
4350
4351         PR c++/17412
4352         * fold-const.c (fold): Do not try to fold the operand of a
4353         CLEANUP_POINT_EXPR if that operand does itself not have any
4354         operands.
4355
4356         PR middle-end/17417
4357         * langhooks.c (lhd_decl_printable_name): Make sure that this
4358         function is called with is a decl node that has an identifier.
4359         * tree-pretty-print.c (dump_function_name): New function to
4360         wrap PRINT_FUNCTION_NAME and dump_decl_name.
4361         (print_call_name): Use it.
4362
4363 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
4364
4365         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
4366         "config.h" if not.
4367
4368 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
4369
4370         * tree-ssa-alias.c (collect_points_to_info_r): Handle
4371         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
4372         to OFFSET.
4373
4374 2004-09-11  Richard Henderson  <rth@redhat.com>
4375
4376         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
4377         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
4378         operand of the ADDR_EXPR.
4379         (expand_expr_real_1): Update to match.
4380
4381 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
4382
4383         PR target/17277
4384         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
4385         choose 64-bit version.
4386
4387 2004-09-11  Richard Henderson  <rth@redhat.com>
4388
4389         PR c/17396
4390         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
4391
4392 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
4393
4394         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
4395         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
4396         Insert @: after i.e. or e.g.
4397
4398 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
4399
4400         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
4401         D.xxx rather than <Dxxx>.
4402
4403 2004-09-10  Adam Nemet  <anemet@lnxw.com>
4404
4405         * configure.ac (AC_MSG_CHECKING(what linker to use)):
4406         in_tree_ld_is_elf should be true for LynxOS.
4407         * configure: Regenerate.
4408
4409 2004-09-10  Adam Nemet  <anemet@lnxw.com>
4410
4411         * Makefile.in (all.cross): Add srcextra.
4412
4413 2004-09-10  Roger Sayle  <roger@eyesopen.com>
4414
4415         PR middle-end/17024
4416         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
4417         floating point comparison operators.  Change aborts to gcc_asserts.
4418
4419 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
4420
4421         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
4422
4423 2004-09-10  James E Wilson  <wilson@specifixinc.com>
4424
4425         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
4426         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
4427
4428         * convert.c (convert_to_vector): Replace recursive call with
4429         error_mark_node.
4430
4431         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
4432         Add integer argument named constant.  Use const_tiny_rtx instead of
4433         CONST0_RTX.
4434         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
4435         and CONST1_RTX.
4436         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
4437         vector types.
4438         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
4439         of gen_rtx_raw_CONST_VECTOR.
4440
4441 2004-09-10  Eric Christopher  <echristo@redhat.com>
4442
4443         PR c/16046
4444         * c-parse.in (attribute): Add NULL_TREE for error case
4445         for error recovery.
4446
4447 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
4448
4449         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
4450         (extract_interface_info): Delete prototype.
4451         * c-decl.c (extract_interface_info): Delete stub.
4452         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
4453         it's not already been done ...
4454         (init_c_lex): ... not here.
4455         (fe_file_change): Don't call extract_interface_info.
4456
4457 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
4458
4459         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
4460         typedef_p and typedef_signed_p.
4461         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
4462         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
4463         Check typedef_p and typedef_signed_p, not typedef_decl.
4464         (grokfield): Check typedef_p, not typedef_decl.
4465         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
4466         not typedef_decl.
4467         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
4468         typedef_decl.
4469
4470 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4471
4472         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
4473
4474 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
4475
4476         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
4477         temporary variables.
4478
4479         * dbxout.c (dbxout_block): Update for
4480         current_function_func_begin_label a string.
4481         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
4482         * except.c (dw2_output_call_site_table): Likewise.
4483         * toplev.c (current_function_func_begin_label): Likewise.
4484         * tree.h (current_function_func_begin_label): Likewise.
4485         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
4486
4487         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
4488         loop.
4489
4490         * config/darwin.c: Include target.h.
4491         (struct machopic_indirection): Make ptr_name a string.
4492         (machopic_indirection_hash): Update for ptr_name a string.
4493         (machopic_indirection_eq): Likewise.
4494         (machopic_indirection_name): Likewise.
4495         (machopic_output_indirection): Likewise.
4496         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
4497         string.  Don't expect stub names to be in the identifier hash table.
4498         Do call strip_name_encoding before looking up entry in ID hash table.
4499         * config/t-darwin (darwin.o): Add target.h to dependencies.
4500
4501         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
4502         of fprintf for register names.
4503
4504         * output.h (unlikely_section_label): Delete declaration.
4505         (unlikely_text_section_name): Likewise.
4506         * varasm.c (unlikely_section_label_printed): Make static.
4507         (unlikely_section_label): Likewise.
4508         (unlikely_text_section_name): Likewise.
4509         (assemble_start_function): Use reconcat.
4510
4511         * rtl.def (REG): Add comment to describe third field.
4512
4513 2004-09-10  Andrew Pinski  <apinski@apple.com>
4514
4515         * config/darwin.c (machopic_mcount_stub_name): Call
4516         machopic_indirection_name instead of making the string
4517         ourselves.
4518
4519 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
4520
4521         Revert
4522
4523         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
4524
4525             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
4526             memory tag is call clobbered, so are its aliases.
4527             (group_aliases): When two memory tags being grouped, if one is
4528             call clobbered, so are the other and its aliases.
4529             (add_may_alias): Remove call-clobbering stuff.
4530             (replace_may_alias): Likewise.
4531             (merge_pointed_to_info): Merge pt_global_mem
4532
4533 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4534
4535         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
4536         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
4537         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
4538         tree-scalar-evolution.c, tree-ssa-copyrename.c,
4539         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
4540
4541 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
4542
4543         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
4544         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
4545         pair.  Remove match_dup from inputs.  Remove masaccs handling.
4546         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
4547         (masaccs, mdasaccs): Turn into define_insns.
4548
4549 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
4550
4551         * tree-tailcall.c (process_assignment): Only do accumulator transforms
4552         for floating-point types if flag_unsafe_math_optimizations.
4553
4554 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4555
4556         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
4557         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
4558         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
4559         config/h8300/h8300.md, config/i386/gmm_malloc.h,
4560         config/ia64/ia64.md, config/ip2k/libgcc.S,
4561         config/mips/mips-ps-3d.md, config/mips/mips.c,
4562         config/rs6000/rs6000.c, config/s390/s390.c,
4563         config/sh/symbian.c: Fix comment typos.
4564
4565 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
4566
4567         * config/s390/s390.c (s390_emit_prologue): Added missing
4568         "{}" brackets.
4569
4570 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4571
4572         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
4573         typos.  Follow spelling conventions.
4574
4575 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
4576
4577         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
4578         in diagnostic.  Don't dereference NULL TYPE_NAME.
4579
4580 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4581
4582         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
4583         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
4584         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
4585         value-prof.c: Fix comment typos.  Follow spelling conventions.
4586
4587 2004-09-10  Jan Hubicka  <jh@suse.cz>
4588
4589         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
4590         * tree-split_edge.c (tree_split_edge): Likewise.
4591         (thread_jumps): Likewise.
4592
4593 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4594
4595         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
4596         typos.
4597
4598 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
4599
4600         * cgraph.h (cgraph_dump_file): Do not declare.
4601         * cgraphunit.c (cgraph_dump_file): Declare as static.
4602         (init_cgraph): New.
4603         * toplev.c (cgraph_dump_file): Do not declare.
4604         (compile_file): Call init_cgraph.
4605         * tree-dump.c (dump_files): Add IPA dump file, remove
4606         XML dump of call graph.
4607         (get_dump_file_name): Support IPA dump file naming scheme.
4608         * tree.h (enum tree_dump_index): Add IPA dump file, remove
4609         XML dump of call graph.
4610         * doc/invoke.texi (Debugging Options): Document the new options.
4611
4612 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
4613
4614         * doc/extend.texi: Document the FR-V built-in functions.
4615
4616 2004-09-09  James E Wilson  <wilson@specifixinc.com>
4617
4618         * doc/sourcebuild.texi: Delete libbanshee reference.
4619
4620 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
4621
4622         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
4623
4624 2004-09-09  James E Wilson  <wilson@specifixinc.com>
4625
4626         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
4627         before calling vector_types_convertible_p.
4628         (digest_init): Check that inside_init has VECTOR_TYPE before calling
4629         vector_types_convertible_p.  Don't give another error if
4630         convert_for_assignment returns error_mark_node.
4631
4632 2004-09-09  Roger Sayle  <roger@eyesopen.com>
4633
4634         PR middle-end/17055
4635         * fold-const.c (build_zero_vector): New function to construct a
4636         vector (either floating point or integer) of zeros.
4637         (fold_convert): Internally, enable conversions of integer zero
4638         to arbitrary vector types, using the new build_zero_vector.
4639
4640 2004-09-09  Roger Sayle  <roger@eyesopen.com>
4641
4642         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
4643         expand a left shift by an immediate constant as either an ashl or
4644         a sequence of additions.
4645         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
4646         instead of calling gen_ashlsi3 with a constant directly.
4647
4648 2004-09-09  Roger Sayle  <roger@eyesopen.com>
4649
4650         * config/i386/i386.c (ix86_split_long_move): When optimizing for
4651         size, and the low and high parts of a DImode constant are equal,
4652         copy one register to another instead of loading the same immediate
4653         value twice.
4654
4655 2004-09-09  Richard Henderson  <rth@redhat.com>
4656
4657         PR middle-end/17367
4658         * function.c (assign_parm_setup_block): Only put PARALLELs into
4659         a register if use_register_for_decl.
4660
4661 2004-09-09  Eric Christopher  <echristo@redhat.com>
4662
4663         * ra-colorize.c (reset_lists): Move variable declaration inside
4664         ENABLE_CHECKING to avoid unused variable warnings when
4665         not --enable-checking.
4666         (check_colors): Ditto.
4667
4668 2004-09-09  Mike Stump  <mrs@apple.com>
4669
4670         * version.c (version_string): Bump to 4.0.0.
4671         * doc/include/gcc-common.texi (version-GCC): Likewise.
4672
4673 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
4674
4675         * doc/extend.texi (nothrow attribute): The attribute is not
4676         implemented in 3.2 and earlier.
4677
4678 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
4679
4680         * genrecog.c (compute_predicate_codes): Use op0_codes
4681         instead of codes.
4682
4683 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
4684
4685         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
4686         implementation changes.
4687
4688 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
4689
4690         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
4691         a PARALLEL instead of a SET due to added clobbers.
4692
4693 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
4694
4695         * reload.c (find_reloads_address): Pass correct operand to
4696         maybe_memory_address_p.
4697
4698 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
4699
4700         * Makefile.in: Remove libbanshee, tree-alias-*.
4701         Remove tree-alias-common.h dependencies.
4702         * common.opt: Remove -ftree-points-to.
4703         * configure.ac: Remove libbanshee.
4704         * flags.h: Remove pta_type, flag_tree_points_to.
4705         * gengtype.c (open_base_files): Remove tree-alias-type.h.
4706         * opts.c (OPT_ftree_points_to): Remove.
4707         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
4708         * tree-dfa.c: Remove tree-alias-common.h
4709         * tree-into-ssa.c: Ditto.
4710         * tree-outof-ssa.c: Ditto.
4711         * tree-ssa-copyrename.c: Ditto.
4712         * tree-ssa-live.c: Ditto.
4713         * tree-optimize.c: Ditto.
4714         * tree-ssa.c: Ditto.
4715         Remove pass_build_pta, pass_del_pta.
4716         * tree-pass.h: Ditto.
4717         * tree-ssa-alias.c: Remove tree-alias-common.h.
4718         (struct alias_stats_d): Remove pta_queries, pta_resolved.
4719         (pass_may_alias): Remove PROP_pta requirement.
4720         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
4721         (get_tmt_for): Ditto.
4722         (dump_alias_stats): Ditto.
4723         * doc/passes.texi: Remove blurb about points-to analysis.
4724         * fortran/Make-lang.in: Remove tree-alias-*.o.
4725
4726 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
4727
4728         * genattrtab.c (write_insn_cases): New function, split out from
4729         write_attr_case.  Correctly handle define_peepholes when printing
4730         the instruction name.
4731         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
4732
4733 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
4734
4735         PR target/17377
4736         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
4737         * config/cris/cris.c (cris_return_address_on_stack): New function.
4738         * config/cris/cris.md ("return"): For location of return address,
4739         also check cris_return_address_on_stack.
4740
4741 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
4742
4743         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
4744         calling phi_ssa_name_p.
4745
4746 2004-09-09  Richard Henderson  <rth@redhat.com>
4747
4748         PR c/17322
4749         * c-typeck.c (valid_compound_expr_initializer): Use only
4750         initializer_constant_valid_p, and not TREE_CONSTANT.
4751         (digest_init): Likewise.
4752         (output_init_element): Likewise.
4753
4754 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
4755
4756         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
4757         live_out_1, prune_hardregs_for_mode, init_one_web_common,
4758         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
4759         record_conflict, compare_and_free_webs, init_webs_defs_uses,
4760         parts_to_webs_1, parts_to_webs, reset_conflicts,
4761         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
4762         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
4763         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
4764         put_move, remove_move, combine, select_spill, colorize_one_web,
4765         try_recolor_web, insert_coalesced_conflicts, check_colors,
4766         break_precolored_alias, restore_conflicts_from_coalesce,
4767         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
4768         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
4769         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
4770         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
4771         check_df): Likewise.
4772         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
4773         real_arithmetic, real_compare, real_exponent, real_ldexp,
4774         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
4775         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
4776         real_digit, real_nan, real_maxval, round_for_format, real_convert,
4777         real_to_target, real_from_target, real_hash, encode_ieee_single,
4778         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
4779         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
4780         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
4781         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
4782         extract_insn, peep2_next_insn, peep2_reg_dead_p,
4783         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
4784         if_test_bypass_p): Likewise.
4785         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
4786         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
4787         emit_swap_insn, swap_to_top, move_for_stack_reg,
4788         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
4789         compensate_edge, convert_regs_1): Likewise.
4790         * regclass.c (init_reg_sets, init_reg_sets_1,
4791         memory_move_secondary_cost): Likewise.
4792         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
4793         Likewise.
4794         * reload.c (push_secondary_reload, find_valid_class, push_reload,
4795         operands_match_p, decompose, immune_p, find_reloads,
4796         find_reloads_toplev, find_reloads_address_1, subst_reloads,
4797         copy_replacements, refers_to_regno_for_reload_p,
4798         reg_overlap_mentioned_for_reload_p): Likewise.
4799         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
4800         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
4801         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
4802         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
4803         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
4804         do_output_reload, fixup_abnormal_edges): Likewise.
4805         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
4806         fill_slots_from_thread, relax_delay_slots): Likewise.
4807         * resource.c (mark_referenced_resources, mark_set_resources):
4808         Likewise.
4809         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
4810         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
4811         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
4812         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
4813         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
4814         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
4815         * rtlhooks.c (gen_lowpart_general): Likewise.
4816         * sbitmap.c (sbitmap_difference): Likewise.
4817         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
4818         sched_analyze, add_forward_dependence): Likewise.
4819         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
4820         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
4821         schedule_insns): Likewise.
4822         * sched-vis.c (print_pattern): Likewise.
4823         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
4824         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
4825         simplify_const_relational_operation, simplify_ternary_operation,
4826         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
4827         Likewise.
4828         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
4829         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
4830         resolve_operand_name_1, expand_return, expand_decl,
4831         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
4832         * stor-layout.c (put_pending_size, smallest_mode_for_size,
4833         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
4834         set_sizetype, get_mode_bounds): Likewise.
4835
4836 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
4837
4838         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
4839         * config/arm/pecoff.h, config/i386/beos-elf.h
4840         * config/i386/cygming.h, config/i386/i386-interix.h:
4841         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
4842         comment cloned from manual.
4843         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
4844
4845 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
4846
4847         * builtins.c (build_va_arg_indirect_ref): New function.
4848         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
4849         build_fold_indirect_ref.
4850         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
4851         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
4852         * tree.h: Declare new function.
4853
4854 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4855
4856         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
4857         dumping for development builds.
4858         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
4859         development builds only.
4860         * genattrtab.c (write_eligible_delay): Fix typo in previous
4861         commit.
4862         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
4863         gcc_assert.
4864
4865 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4866
4867         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
4868         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
4869         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
4870         hoist_code, extract_mentioned_regs_helper, compute_store_table,
4871         insert_store): Use gcc_assert and gcc_unreachable.
4872         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
4873         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
4874         ggc_record_overhead): Likewise.
4875         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
4876         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
4877         ggc_pop_context, clear_marks, validate_free_objects,
4878         ggc_pch_read): Likewise.
4879         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
4880         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
4881         ggc_push_context, check_cookies, ggc_collect,
4882         ggc_print_statistics): Likewise.
4883         * gimple-low.c (lower_function_body, lower_stmt,
4884         lower_bind_expr): Likewise.
4885         * gimplify.c (gimple_tree_eq, push_gimplify_context,
4886         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
4887         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
4888         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
4889         gimplify_case_label_expr, gimplify_exit_block_expr,
4890         canonicalize_component_ref, gimplify_compound_lval,
4891         gimplify_self_mod_expr, gimplify_call_expr,
4892         gimplify_init_ctor_eval, gimplify_init_constructor,
4893         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
4894         gimplify_expr, check_pointer_types_r,
4895         force_gimple_operand): Likewise.
4896         * global.c (global_alloc, build_insn_chain): Likewise.
4897         * graph.c (clean_graph_dump_file,
4898         finish_graph_dump_file): Likewise.
4899         gcov-io.c (gcov_open): Use GCOV_CHECK.
4900
4901 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
4902
4903         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
4904
4905 2004-09-09  Jan Hubicka  <jh@suse.cz>
4906
4907         middle-end/17128
4908         * tree-inline.c (expand_call_inline): Make overactive sanity check
4909         happy.
4910
4911 2004-09-09  Jan Hubicka  <jh@suse.cz>
4912
4913         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
4914         VIEW_CONVERT_EXPR.
4915
4916 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4917
4918         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
4919         (gengtype.o): Depend on errors.h.
4920         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
4921         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
4922         attr_alt_subset_p, attr_alt_subset_of_compl_p,
4923         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
4924         write_test_expr, write_attr_value, write_eligible_delay,
4925         make_internal_attr, make_numeric_value): Likewise.
4926         * genautomata.c (regexp_name, get_str_vect,
4927         gen_presence_absence_set, automaton_decl_hash,
4928         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
4929         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
4930         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
4931         test_unit_reserv, it_is_empty_reserv_sets,
4932         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
4933         reserv_sets_and, output_cycle_reservs, get_free_state,
4934         intersected_state_reservs_p, states_union, remove_arc,
4935         copy_insn_regexp, transform_1, transform_2, transform_3,
4936         regexp_transform_func, store_alt_unit_usage,
4937         check_regexp_units_distribution, process_seq_for_forming_states,
4938         process_alts_for_forming_states, make_automaton,
4939         form_arcs_marked_by_insn, create_composed_state,
4940         set_out_arc_insns_equiv_num, partition_equiv_class,
4941         process_insn_equiv_class, set_insn_equiv_classes,
4942         units_to_automata_heuristic_distr, form_regexp,
4943         longest_path_length, output_dfa_max_issue_rate, add_vect,
4944         out_state_arcs_num, add_vect_el, output_trans_table,
4945         output_state_alts_table, output_dead_lock_vect,
4946         output_max_insn_queue_index_def,
4947         output_min_insn_conflict_delay_func,
4948         output_internal_insn_latency_func, output_print_reservation_func,
4949         output_cpu_unit_reservation_p, output_state_arcs,
4950         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
4951         make_default_insn_latency_attr,
4952         form_important_insn_automata_lists): Likewise.
4953         * genemit.c (gen_exp, output_add_clobbers,
4954         output_added_clobbers_hard_reg_p): Likewise.
4955         * genextract.c (print_path, main): Likewise.
4956         * genflags.c (gen_macro): Likewise.
4957         * gengenrtl.c: Include errors.h
4958         (type_from_format, accessor_from_format): Likewise.
4959         * gengtype.c (get_file_basename, output_mangled_typename,
4960         walk_type, write_types_process_field,
4961         write_types_local_process_field): Likewise.
4962         * genmodes.c (complete_mode): Likewise.
4963         * genopinit.c (gen_insn): Likewise.
4964         * genoutput.c (output_insn_data, check_constraint_len,
4965         constraint_len): Likewise.
4966         * genpreds.c (add_mode_tests):Likewise.
4967         * gen-protos.c (add_hash): Likewise.
4968         * genrecog.c (find_operand, find_matching_operand,
4969         validate_pattern, add_to_sequence, maybe_both_true,
4970         nodes_identical_1, merge_trees, write_switch, write_cond,
4971         write_action, is_unconditional, make_insn_sequence,
4972         debug_decision_2): Likewise.
4973         * gensupport.c (is_predicable, collect_insn_data,
4974         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
4975
4976 2004-09-09  Jan Hubicka  <jh@suse.cz>
4977
4978         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
4979         * cfgbuild.c (compute_outgoing_frequencies): When probability is
4980         missing, guess it.
4981         (find_many_sub_basic_blocks): Do update profile only when it is
4982         present.
4983         * predict.c (set_even_probabilities): Break out from ...
4984         (combine_predictions_for_insn): ... here; deal with
4985         !can_predict_insn_p insns.
4986         (combine_predictions_for_bb): Use set_even_probabilities.
4987         (bb_estimate_probability_locally): Break out from ....
4988         (estimate_probability): ... here.
4989         (guess_outgoing_edge_probabilities): New entry point.
4990
4991 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4992
4993         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
4994         handle_braces, process_brace_body, main, used_arg,
4995         set_multilib_dir, print_multilib_info): Use fatal, not abort.
4996
4997         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
4998
4999         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
5000         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
5001         Morgan's theorem in last checkin.
5002
5003 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5004             Nathan Sidwell  <nathan@codesourcery.com>
5005
5006         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
5007         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
5008         * timevar.c (timevar_push, timevar_pop, timevar_start,
5009         timevar_stop): Likewise.
5010         * toplev.c (default_pch_valid_p): Likewise.
5011         * tracer.c (tail_duplicate): Likewise.
5012         * tree-alias-common.c (get_alias_var_decl,
5013         get_values_from_constructor, create_alias_var, delete_alias_vars,
5014         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
5015         Likewise.
5016         * tree.c (tree_size, make_node_stat, copy_node_stat,
5017         build_int_cst_wide, integer_all_onesp, list_length, chainon,
5018         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
5019         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
5020         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
5021         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
5022         build_method_type_directly, decl_type_context, get_callee_fndecl,
5023         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
5024         tree_fold_gcd): Likewise.
5025         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
5026         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
5027         cleanup_control_expr_graph, find_taken_edge,
5028         find_taken_edge_switch_expr, phi_alternatives_equal,
5029         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
5030         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
5031         tree_split_edge, tree_verify_flow_info, thread_jumps,
5032         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
5033         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
5034         chrec_fold_multiply_poly_poly): Likewise.
5035         * tree-complex.c (extract_component, expand_complex_division,
5036         expand_complex_comparison, expand_complex_operations_1,
5037         build_replicated_const, expand_vector_operations_1): Likewise.
5038         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
5039         build_classic_dir_vector): Likewise.
5040         * tree-dfa.c (compute_immediate_uses_for_phi,
5041         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
5042         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
5043         * tree-dump.c (dequeue_and_dump): Likewise.
5044         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
5045         record_in_finally_tree, replace_goto_queue_1,
5046         maybe_record_in_goto_queue, verify_norecord_switch_expr,
5047         do_return_redirection): Likewise.
5048         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
5049         add_to_dst_predicate_list, find_phi_replacement_condition,
5050         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
5051         Likewise.
5052         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
5053         initialize_inlined_parameters, declare_return_variable,
5054         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
5055         optimize_inline_calls, copy_tree_r): Likewise.
5056         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
5057         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
5058         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
5059         tsi_split_statement_list_after, tsi_split_statement_list_before):
5060         Likewise.
5061         * tree-mudflap.c (mf_varname_tree): Likewise.
5062         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
5063         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
5064         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5065         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
5066         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
5067         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
5068         Likewise.
5069         * tree-phinodes.c (resize_phi_node, add_phi_arg,
5070         remove_all_phi_nodes_for): Likewise.
5071         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
5072         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
5073         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
5074         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
5075         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
5076         generate_one_element_ref, generate_element_copy,
5077         generate_element_zero, scalarize_copy, scalarize_init,
5078         scalarize_ldst): Likewise.
5079         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
5080         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
5081         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
5082         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
5083         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
5084         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
5085         widen_bitfield, ccp_fold_builtin): Likewise.
5086         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
5087         replace_exp_1, propagate_tree_value): Likewise.
5088         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
5089         * tree-ssa-dce.c (set_control_dependence_map_bit,
5090         find_control_dependence, find_pdom, mark_operand_necessary,
5091         mark_stmt_if_obviously_necessary,
5092         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
5093         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
5094         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
5095         eliminate_redundant_computations, avail_expr_eq): Likewise.
5096         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
5097         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
5098         duplicate_blocks): Likewise.
5099         * tree-ssa-loop-im.c (for_each_index, set_level,
5100         is_call_clobbered_ref): Likewise.
5101         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
5102         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
5103         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
5104         peel_address, ptr_difference_cost, may_replace_final_value,
5105         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
5106         rewrite_use, rewrite_uses): Likewise.
5107         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
5108         check_loop_closed_ssa_use): Likewise.
5109         * tree-ssanames.c (make_ssa_name): Likewise.
5110         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
5111         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
5112         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
5113         get_indirect_ref_operands, add_stmt_operand): Likewise.
5114         * tree-ssa-pre.c (value_exists_in_set_bitmap,
5115         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
5116         phi_translate, valid_in_set, compute_antic,
5117         find_or_generate_expression, create_expression_by_pieces, insert_aux,
5118         create_value_expr_from, eliminate): Likewise.
5119         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
5120         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
5121         Likewise.
5122         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
5123         eliminate_tail_call): Likewise.
5124         * tree-vectorizer.c (vect_create_index_for_array_ref,
5125         vect_align_data_ref, vect_create_data_ref,
5126         vect_create_destination_var, vect_get_vec_def_for_operand,
5127         vect_finish_stmt_generation, vect_transform_stmt,
5128         vect_transform_loop_bound, vect_transform_loop,
5129         vect_analyze_operations): Likewise.
5130         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
5131         Likewise.
5132         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
5133         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
5134         bsi_after_labels, bsi_last): Likewise.
5135         * tree-ssa-live.c (var_union, change_partition_var,
5136         create_ssa_var_map, calculate_live_on_entry, root_var_init,
5137         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
5138         Likewise.
5139         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
5140         tpa_find_tree): Likewise.
5141         (register_ssa_partition_check): Declare.
5142         (register_ssa_partition): use it.
5143         * tree-ssa-live.c: Include errors.h.
5144         (register_ssa_partition_check): New.
5145         * tree-ssa-operands.c: Include errors.h.
5146         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
5147
5148 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
5149             Catherine Moore  <clm@redhat.com>
5150
5151         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
5152         (FRV_CPU_FR405): New processor enums.
5153         (frv_issue_rate, frv_acc_group): Declare.
5154         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
5155         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
5156         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
5157         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
5158         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
5159         handled by CPP_SPEC.
5160         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
5161         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
5162         (ACC_MASK): New macro.
5163         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
5164         (TARGET_MEDIA_FR450): New macro.
5165         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
5166         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
5167         (LABEL_ALIGN_AFTER_BARRIER): Define.
5168         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
5169         (IACC_FIRST, IACC_LAST): New pair of SPRs.
5170         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
5171         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
5172         (REGISTER_NAMES): Add entries for new registers.
5173         (REG_CLASS_CONTENTS): Update for new register ranges.
5174         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
5175         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
5176         (PACKING_FLAG_USED_P): Delete.
5177         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
5178         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
5179         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
5180         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
5181         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
5182         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
5183         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
5184         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
5185         (CPU_UNITS_QUERY): Define to 1.
5186         * config/frv/frv.c: Include gt-frv.h
5187         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
5188         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
5189         (frv_insn_group): New enumeration.
5190         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
5191         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
5192         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
5193         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
5194         gap left by REGSTATE_LIVE.
5195         (regstate_t): New typedef.
5196         (TARGET_MACHINE_DEPENDENT_REORG): Define.
5197         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
5198         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
5199         Initialize frv_unit_codes[] and frv_type_to_unit[].
5200         (frv_conditional_register_usage): Remove redundant fixing of
5201         accumulator registers.
5202         (frv_insn_packing_flag): Update specification.
5203         (frv_function_prologue): Don't set frv_insn_packing_flag here.
5204         Zero out frv_nops[].
5205         (frv_expand_epilogue): Remove comments about the no-longer-present
5206         SIBCALL_P argument.
5207         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
5208         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
5209         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
5210         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
5211         packing is disabled and if INSN can only issue to M1.
5212         (call_operand): Check TARGET_LONG_CALLS.
5213         (acc_operand, even_acc_operand, quad_acc_operand)
5214         (accg_operand): Simplify.  Don't accept pseudo registers.
5215         (output_move_single): Handle SPR<-zero moves.
5216         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
5217         (frv_registers_update, frv_registers_used_p): Delete.
5218         (frv_registers_set_p): Delete.
5219         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
5220         (frv_issues_to_branch_unit_p): New function.
5221         (frv_packet): New structure.
5222         (frv_cond_flags, frv_regstate_conflict_p): New functions.
5223         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
5224         (frv_registers_update_1, frv_registers_update): New functions.
5225         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
5226         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
5227         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
5228         (frv_sort_insn_group, frv_reorder_packet): New functions.
5229         (frv_pack_insns): Use frv_reorder_packet.
5230         (frv_packet_address): New variable.
5231         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
5232         (frv_register_nop, frv_reorg): New functions.
5233         (bdesc_1arg): Add __SCUTSS.
5234         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
5235         __SUBSS, __SLASS and __SCAN.
5236         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
5237         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
5238         (frv_init_builtins): Register the above builtins.
5239         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
5240         registers.  Turn the referenced accumulators into global registers.
5241         (frv_read_iacc_argument): New function.
5242         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
5243         (frv_split_iacc_move): New function.
5244         (frv_expand_builtin): Handle the new builtins.
5245         * config/frv/frv.md: Replace old schedulers with new order-independent
5246         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
5247         packing algorithm.
5248         (cpu): Add fr550, fr450 and fr405.
5249         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
5250         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
5251         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
5252         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
5253         (fnop, mnop): New patterns.
5254         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
5255         New constants.
5256         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
5257         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
5258         registers.
5259         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
5260         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
5261         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
5262         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
5263         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
5264         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
5265         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
5266         (frv_prefetch0, frv_prefetch): New patterns.
5267         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
5268         -mcpu=simple.  Add -mcpu=fr550.
5269         (MULTILIB_DIRNAMES): Update accordingly.
5270         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
5271         -mcpu=fr450.
5272         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
5273         -mlong-calls and -malign-labels options for FR-V.
5274
5275 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
5276
5277         PR c/8420
5278         * c-tree.h (struct c_declspecs): New.
5279         (struct c_declarator, struct c_type_name, struct c_parm): Update
5280         element types.
5281         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
5282         start_function, start_decl, build_c_parm,
5283         make_pointer_declarator): Update prototypes.
5284         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
5285         declspecs_add_scspec, declspecs_add_attrs): New.
5286         (split_specs_attrs): Remove.
5287         * c-parse.in (%union): Add dsptype.
5288         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
5289         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
5290         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
5291         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
5292         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
5293         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
5294         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
5295         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
5296         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
5297         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
5298         maybe_type_quals_attrs): Change to dsptype.
5299         (struct c_declspec_stack): New.
5300         (current_declspecs, declspec_stack): Change type.
5301         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
5302         structures.
5303         (extdefs): Likewise.
5304         (setspecs): Likewise.
5305         (fndef): Use current_declspecs for empty declspecs list.
5306         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
5307         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
5308         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
5309         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
5310         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
5311         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
5312         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
5313         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
5314         structures and helper functions.  Update comments.
5315         (typespec_nonattr): Correct comment.
5316         (maybe_type_quals_attrs, typename): Update to new structures.
5317         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
5318         shadow_tag, shadow_tag_warned, start_function, start_decl,
5319         build_c_parm, make_pointer_declarator,
5320         set_array_declarator_inner, groktypename): Update to new
5321         structures.
5322         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
5323         declspecs_add_scspec, declspecs_add_attrs): New.
5324         (split_specs_attrs): Remove.
5325         (shadow_tag_warned): Make warning for useless type names a
5326         pedwarn.  Give hard error for long, short, signed, unsigned or
5327         _Complex used with struct, union or enum in empty declaration.
5328         Make found_tag a bool.
5329         (grokdeclarator): Remove checks now done at parse time.
5330
5331 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
5332
5333         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
5334         c_declarator, struct c_type_name, struct c_parm): New.
5335         (build_array_declarator, set_array_declarator_inner,
5336         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
5337         start_function, start_decl, build_c_parm, build_attrs_declarator,
5338         build_function_declarator, make_pointer_declarator, c_cast_expr,
5339         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
5340         (build_id_declarator): New.
5341         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
5342         structures.
5343         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
5344         ARG_INFO_OTHERS): Remove.
5345         (build_id_declarator): New.
5346         (build_array_declarator, set_array_declarator_inner, groktypename,
5347         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
5348         grokfield, start_function, store_parm_decls_newstyle,
5349         store_parm_decls_oldstyle, store_parm_decls,
5350         build_c_parm, build_attrs_declarator, build_function_declarator,
5351         make_pointer_declarator, grokdeclarator): Update to new
5352         structures.
5353         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
5354         parmtype.
5355         (declarator, notype_declarator, after_type_declarator,
5356         parm_declarator, parm_declarator_starttypename,
5357         parm_declarator_nostarttypename, array_declarator, typename,
5358         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
5359         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
5360         parmlist_1, parmlist_2, parmlist_or_identifiers,
5361         parmlist_or_identifiers_1): Use these types.
5362         (primary, after_type_declarator, parm_declarator_starttypename,
5363         notype_declarator, component_decl, component_declarator,
5364         component_notype_declarator, typename, absdcl,
5365         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
5366         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
5367
5368 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
5369
5370         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
5371         in_typeof, record_maybe_used_decl, pop_maybe_used,
5372         c_expr_sizeof_expr, c_expr_sizeof_type): New.
5373         * c-decl.c (parser_obstack): New.
5374         (c_init_decl_processing): Initialize parser_obstack.
5375         (c_write_global_declarations_1): Check for used but undefined
5376         static functions.
5377         * c-parse.in (%union): Add otype.
5378         (save_obstack_position): New.
5379         (extdefs): Use it.
5380         (unary_expr): Update in_sizeof and in_alignof.  Use
5381         c_expr_sizeof_expr and c_expr_sizeof_type.
5382         (sizeof): Update in_sizeof.
5383         (alignof): Update in_alignof.
5384         (typeof): Update in_typeof.
5385         (typespec_nonreserved_nonattr): Call pop_maybe_used.
5386         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
5387         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
5388         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
5389         (build_external_ref): Set C_DECL_USED or call
5390         record_maybe_used_decl if appropriate.
5391         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
5392
5393 2004-09-08  Eric Christopher  <echristo@redhat.com>
5394
5395         * builtins.c: Fix prototype for fold_builtin_atan.
5396
5397 2004-09-08  Eric Christopher  <echristo@redhat.com>
5398
5399         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
5400         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
5401         fold_builtin_atan): New functions. Migrate function bodies...
5402         (fold_builtin_1): ... from here.
5403
5404 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
5405
5406         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
5407         save_size.
5408
5409 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
5410
5411         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
5412         * config/rs6000/power5.md (power5-lmul): Same.
5413
5414 2004-09-08  Richard Henderson  <rth@redhat.com>
5415
5416         PR rtl-opt/17186
5417         * function.c (expand_function_end): Have fall-off-the-end
5418         return path jump around return register setup.
5419
5420 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
5421
5422         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
5423         (output_return): Do not test for the presence of the 'unimp' insn.
5424         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
5425         as predicates instead of custom ones.  Return raw strings when
5426         possible.
5427         (output_sibcall): Likewise.  Concatenate strings.
5428         (output_ubranch): Remove kludge for TurboSPARC.
5429         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
5430         (output_v9branch): Likewise.
5431         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
5432         <#>: Set sparc_indent_opcode if the delay slot is filled.
5433         <(>: Likewise.
5434         <)>: New operand to emit the displacement from the saved PC on return.
5435         <@>: Remove.
5436         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
5437         (ASM_OUTPUT_OPCODE): New macro.
5438         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
5439         * config/sparc/sparc.md (normal_branch, inverted_branch,
5440         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5441         inverted_fpe_branch): Adjust call to output_cbranch.
5442         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
5443         call to output_v9branch.
5444         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
5445         (output_v9branch): Likewise.
5446
5447 2004-09-08  Devang Patel  <dpatel@apple.com>
5448
5449         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
5450         -segs_read_only_addr and -segs_read_write_addr.
5451         (WORD_SWITCH_TAKES_ARG): Same.
5452         (LINK_SPEC): Same.
5453         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
5454         -segs_read_write_addr.
5455
5456 2004-09-08  Richard Henderson  <rth@redhat.com>
5457
5458         * function.c (reference_callee_copied): New.
5459         (assign_parm_setup_reg): Use it.
5460         * calls.c (initialize_argument_information): Likewise.
5461         (emit_library_call_value_1): Likewise.
5462         * function.h (reference_callee_copied): Declare.
5463
5464         * target.h (struct gcc_target): Add callee_copies.
5465         * target-def.h (TARGET_CALLEE_COPIES): New.
5466         (TARGET_PASS_BY_REFERENCE): Update default.
5467         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5468         * targhooks.c (hook_callee_copies_named): New.
5469         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
5470         hook_pass_by_reference_false.
5471         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
5472         * targhooks.h: Update decls.
5473         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
5474         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5475         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
5476         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
5477         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5478         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
5479         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5480         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
5481         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5482         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
5483         (mips_callee_copies): New.
5484         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5485         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
5486         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5487         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
5488         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5489         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
5490         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5491         * config/sh/sh.c (sh_callee_copies): New.
5492         (TARGET_CALLEE_COPIES): New.
5493         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5494         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
5495         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5496         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
5497         for FUNCTION_ARG_CALLEE_COPIES.
5498         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
5499
5500 2004-09-08  Devang Patel  <dpatel@apple.com>
5501
5502         * tree-if-conv.c (find_phi_replacement_condition): Return true
5503         edge block.
5504         (replace_phi_with_cond_modify_expr): Select conditional expr args
5505         based on true edge basic block.
5506
5507 2004-09-08  Jan Hubicka  <jh@suse.cz>
5508
5509         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
5510         variables being alias set.
5511
5512 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
5513
5514         * final.c (shorten_branches, final, get_insn_template,
5515         output_alternate_entry_point, final_scan_insn, alter_subreg,
5516         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
5517         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
5518         * fix-header.c (lookup_std_proto): Likewise.
5519         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
5520         verify_local_live_at_start, update_life_info, mark_reg,
5521         calculate_global_regs_live, allocate_reg_life_data,
5522         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
5523         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
5524         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
5525         * fold-const.c (force_fit_type, div_and_round_double,
5526         may_negate_without_overflow_p, int_const_binop, const_binop,
5527         size_binop, size_diffop, fold_convert_const, fold_convert,
5528         invert_tree_comparison, swap_tree_comparison,
5529         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
5530         range_binop, make_range, fold_cond_expr_with_comparison,
5531         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
5532         fold_abs_const, fold_not_const, fold_relational_const, round_up,
5533         round_down): Likewise.
5534         * function.c (find_function_data, assign_stack_temp_for_type,
5535         instantiate_virtual_regs_lossage, aggregate_value_p,
5536         assign_parm_find_entry_rtl, assign_parm_setup_block,
5537         expand_function_start, expand_function_end, keep_stack_depressed,
5538         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
5539
5540 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
5541
5542         * Makefile.in (tree-loop-linear.o): Added.
5543         (OBJS-common): Add tree-loop-linear.o
5544         * common.opt: New flag, ftree-loop-linear.
5545         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
5546         * tree-flow.h: Add prototype for linear_transform_loops.
5547         * tree-optimize.c: Add linear transform after vectorization.
5548         * tree-pass.h: Add struct pass_linear_transform.
5549         * tree-ssa-loop.c: Add pass_linear_transform.
5550         * tree-loop-linear.c: New file.
5551         * lambda-code.c: gcc_assertify.
5552         (gcc_loop_to_lambda_loop): Handle all exit tests.
5553         Handle case where we have (invariant >= induction var).
5554         (find_induction_var_from_exit_cond): Ditto.
5555
5556 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
5557
5558         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
5559         memory tag is call clobbered, so are its aliases.
5560         (group_aliases): When two memory tags being grouped, if one is
5561         call clobbered, so are the other and its aliases.
5562         (add_may_alias): Remove call-clobbering stuff.
5563         (replace_may_alias): Likewise.
5564         (merge_pointed_to_info): Merge pt_global_mem
5565
5566 2004-09-08  Jan Hubicka  <jh@suse.cz>
5567
5568         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
5569         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
5570         (cgraph_expand_function): Remove stale cgraph edges of currently
5571         compiled function; fix non-unit-at-a-time code copying function
5572         node for later reuse.
5573
5574 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
5575
5576         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
5577         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
5578         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
5579         (vec_gc_free, vec_heap_free): New.
5580         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
5581         (DEF_VEC_P): Add allocator argument. Adjust.
5582         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
5583         (DEF_VEC_O): Add allocator argument. Adjust.
5584         (VEC(free)): New.
5585
5586         * tree.h (tree): Define a GC'd vector.
5587         * lamba-code.c (lambda_loop): Likewise.
5588         * value-prof.h (histogram_value): Likewise.
5589
5590 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
5591
5592         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
5593         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
5594         gen_lowpart_common, gen_highpart, gen_highpart_mode,
5595         subreg_highpart_offset, operand_subword, operand_subword_force,
5596         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
5597         set_mem_alias_set, change_address_1, verify_rtx_sharing,
5598         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
5599         try_split, add_insn_after, add_insn_before, remove_insn,
5600         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
5601         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
5602         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
5603         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
5604         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
5605         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
5606         record_path_before_1, check_path_after_1, check_path_after): Likewise.
5607         * except.c (gen_eh_region, resolve_one_fixup_region,
5608         remove_unreachable_regions, convert_from_eh_region_ranges_1,
5609         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
5610         connect_post_landing_pads, sjlj_emit_function_exit,
5611         remove_exception_handler_label, remove_eh_handler,
5612         reachable_next_level, collect_one_action_chain,
5613         output_function_exception_table): Likewise.
5614         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
5615         optimize_save_area_alloca, allocate_dynamic_stack_space,
5616         probe_stack_range, hard_function_value): Likewise.
5617         * expmed.c (mode_for_extraction, store_bit_field,
5618         store_fixed_bit_field, extract_bit_field, expand_shift,
5619         expand_mult_const, expand_mult, choose_multiplier,
5620         expand_mult_highpart, expand_divmod, emit_store_flag,
5621         do_cmp_and_jump): Likewise.
5622         * expr.c (convert_move, convert_modes, move_by_pieces,
5623         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
5624         move_block_from_reg, gen_group_rtx, emit_group_load,
5625         emit_group_move, emit_group_store, use_reg, use_regs,
5626         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
5627         emit_move_insn, emit_move_insn_1, emit_push_insn,
5628         expand_assignment, store_expr, count_type_elements,
5629         store_constructor, store_field, safe_from_p, expand_var,
5630         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
5631
5632 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
5633
5634         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
5635         gcc_assert and gcc_unreachable.
5636         * ddg.c (create_ddg_dependence, add_deps_for_def,
5637         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
5638         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
5639         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
5640         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
5641         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
5642         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
5643         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
5644         dataflow_set_copy, hybrid_search, diagnostic.c,
5645         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
5646         * dojump.c (do_jump): Likewise.
5647         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
5648         compute_dom_fast_query, calculate_dominance_info,
5649         free_dominance_info, get_immediate_dominator,
5650         set_immediate_dominator, get_dominated_by,
5651         redirect_immediate_dominators, nearest_common_dominator,
5652         dominated_by_p, verify_dominators, recount_dominator,
5653         iterate_fix_dominators, add_to_dominance_info,
5654         delete_from_dominance_info): Likewise.
5655         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
5656         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
5657         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
5658         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
5659         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
5660         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
5661         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
5662         output_call_frame_info, output_loc_operands, build_cfa_loc,
5663         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
5664         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
5665         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
5666         splice_child_die, attr_checksum, same_dw_val_p,
5667         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
5668         unmark_dies, value_format, output_loc_list, output_die,
5669         output_pubnames, output_aranges, base_type_die, is_base_type,
5670         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
5671         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
5672         field_byte_offset, add_data_member_location_attribute,
5673         add_const_value_attribute, rtl_for_decl_location,
5674         add_location_or_const_value_attribute, add_byte_size_attribute,
5675         add_bit_offset_attribute, add_bit_size_attribute,
5676         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
5677         decl_start_label, gen_formal_parameter_die,
5678         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
5679         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
5680         force_decl_die, force_type_die, gen_decl_die,
5681         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
5682         dwarf2out_finish): Likewise.
5683
5684 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
5685
5686         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
5687         * builtins.c: Include tree-mudflap.h.
5688
5689 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
5690
5691         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
5692         force operand 0.0 into register in XFmode. Also do not force
5693         operand 0.0 into register if !TARGET_CMOVE.
5694         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
5695         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
5696         implement ftst x87 instruction.
5697         (*fp_jcc_7): New insn pattern. Change corresponding split
5698         pattern to handle "general_operand" instead of
5699         "nonimmediate_operand".
5700
5701 2004-09-08  Ben Elliston  <bje@au.ibm.com>
5702
5703         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
5704
5705 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
5706
5707         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
5708         generated from standard va_arg expansion.
5709         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
5710         marked nodes.
5711         (mf_varname_tree, mf_file_function_line_tree): Add some support
5712         for column numbers if compiled with USE_MAPPED_LOCATION.
5713
5714 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
5715
5716         * c-decl.c (groktypename_in_parm_context): Remove function.
5717         * c-tree.h (groktypename_in_parm_context): Remove prototype.
5718
5719 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
5720
5721         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
5722         * c-parse.in: Include c-common.h instead of objc-act.h.
5723         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
5724         myparms, myparm): Remove %type declarations.
5725         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
5726         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
5727         declarations.
5728         (objc_inherit_code, objc_public_flag): Remove.
5729         (typespec_nonreserved_nonattr): Call
5730         objc_get_protocol_qualified_type() instead of get_static_reference()
5731         and get_protocol_reference().
5732         (stmt_nocomp): Call grokparm() on @catch parameter.
5733         (objcdef): Move semantic action to objc_finish_implementation().
5734         (classdef): Move semantic action to objc_start_class_interface(),
5735         objc_continue_interface(), objc_finish_interface(),
5736         objc_start_class_implementation(), objc_continue_implementation(),
5737         objc_start_category_interface() and
5738         objc_start_category_implementation().
5739         (protocoldef): Move semantic actions to objc_start_protocol() and
5740         objc_finish_interface().
5741         (ivar_decl_list): Remove nonterminal.
5742         (visibility_spec): Move semantic actions to objc_set_visibility().
5743         (ivar_decls): Remove assignment to $$.
5744         (ivar_decl): Rephrase in terms of component_decl; call
5745         objc_add_instance_variable().
5746         (ivars, ivar_declarator): Remove nonterminals.
5747         (opt_semi): New nonterminal.
5748         (methodtype): Remove semantic actions.
5749         (methoddef): Move semantic actions to objc_set_method_type(),
5750         objc_start_method_definition() and objc_finish_method_definition().
5751         (methodproto): Move semantic actions to objc_set_method_type() and
5752         objc_add_method_declaration().
5753         (methoddecl): Use objc_typename instead of typename; move semantic
5754         actions to objc_build_method_signature().
5755         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
5756         (optparmlist): Express in terms of optparms and optellipsis.
5757         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
5758         nonterminals.
5759         (keyworddecl): Use objc_typename instead of typename.
5760         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
5761         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
5762
5763 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
5764
5765         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
5766         (MD_FALLBACK_FRAME_STATE_FOR): Update.
5767         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
5768         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
5769         (MD_FROB_UPDATE_CONTEXT): Remove default.
5770         (uw_update_context_1): Instead #ifdef invocation.
5771         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
5772         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
5773         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
5774         (MD_UNWIND_SUPPORT): Undefine this instead.
5775         * config/i386/gnu.h: Likewise.
5776         * config/alpha/linux-unwind.h: New file, macro converted to
5777         function, extracted from..
5778         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
5779         (MD_UNWIND_SUPPORT): Define.
5780         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
5781         * config/i386/linux-unwind.h, config/i386/linux.h,
5782         config/i386/linux64.h: Likewise.
5783         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
5784         MD_HANDLE_UNWABI too.
5785         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
5786         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
5787         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
5788         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
5789         * config/sparc/linux-unwind.h, config/sparc/linux.h,
5790         config/sparc/linux64.h: Likewise.
5791         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
5792         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
5793         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
5794         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
5795         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
5796
5797 2004-09-07  Jan Hubicka  <jh@suse.cz>
5798
5799         * cse.c (fold_rtx):  Avoid building of
5800         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
5801
5802         * tree-ssa-pre.c (grand_bitmap_obstack): New.
5803         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
5804         (init_pre): Initialize obstack.
5805         (fini_pre): Free obstack.
5806
5807 2004-09-07  David Daney  <ddaney@avtrex.com>
5808
5809         * config.gcc: Added support for --with-divide=[breaks|traps] for
5810         mips targets.
5811         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
5812         (TARGET_DIVIDE_TRAPS): New macro.
5813         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
5814         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
5815         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
5816         GENERATE_DIVIDE_TRAPS.
5817         (mips_output_division): Emit conditional trap if
5818         GENERATE_DIVIDE_TRAPS is set.
5819         * doc/install.texi: Document --with-divide.
5820         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
5821
5822 2004-09-07  Caroline Tice  <ctice@apple.com>
5823
5824         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
5825         EDGE_CROSSING, to flags test case.
5826
5827 2004-09-07  Jan Hubicka  <jh@suse.cz>
5828
5829         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
5830         class too.
5831
5832 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
5833
5834         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
5835         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
5836         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
5837         or gcc_unreachable.
5838         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
5839         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
5840         alloc_aux_for_edges, free_aux_for_edges): Likewise.
5841         * cfgcleanup.c (try_forward_edges,
5842         merge_blocks_move_predecessor_nojumps,
5843         merge_blocks_move_successor_nojumps): Likewise.
5844         * cfgexpand.c (expand_gimple_cond_expr,
5845         expand_gimple_tailcall): Likewise.
5846         * cfghooks.c (duplicate_block): Likewise.
5847         * cfglayout.c (record_effective_endpoints,
5848         insn_locators_initialize, change_scope, fixup_reorder_chain,
5849         verify_insn_chain, fixup_fallthru_exit_predecessor,
5850         duplicate_insn_chain, cfg_layout_finalize): Likewise.
5851         * cfgloopanal.c (check_irred): Likewise.
5852         * cfgloop.c (superloop_at_depth, flow_loops_free,
5853         flow_loop_entry_edges_find, flow_loops_find,
5854         flow_loop_outside_edge_p, get_loop_body,
5855         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
5856         get_loop_exit_edges, num_loop_branches, cancel_loop,
5857         verify_loop_structure): Likewise.
5858         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
5859         duplicate_loop_to_header_edge, create_preheader,
5860         create_loop_notes): Likewise.
5861         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
5862         edirect_branch_edge, force_nonfallthru_and_redirect,
5863         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
5864         commit_edge_insertions, commit_edge_insertions_watch_calls,
5865         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
5866         cfg_layout_redirect_edge_and_branch_force,
5867         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
5868         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
5869         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
5870         cgraph_varpool_node): Likewise.
5871         * cgraphunit.c (cgraph_finalize_function,
5872         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
5873         cgraph_expand_function, cgraph_remove_unreachable_nodes,
5874         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5875         cgraph_mark_inline, cgraph_expand_all_functions,
5876         cgraph_build_static_cdtor): Likewise.
5877         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
5878         simplify_logical, distribute_notes, insn_cuid): Likewise.
5879         * conflict.c (conflict_graph_add, print_conflict): Likewise.
5880         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
5881         coverage_checksum_string): Likewise.
5882         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
5883         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
5884         cse_cc_succs, cse_condition_code_reg): Likewise.
5885         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
5886         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
5887         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
5888         cselib_record_set): Likewise.
5889
5890 2004-09-07  Jan Hubicka  <jh@suse.cz>
5891
5892         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
5893
5894 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
5895
5896         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
5897         fold_convert.
5898         (fold_builtin_strpbrk): Likewise.
5899         * expr.c (array_ref_low_bound): Likewise.
5900         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
5901         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
5902         * tree-sra.c (generate_element_zero): Likewise.
5903         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
5904         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
5905         add_old_iv_candidates, add_iv_candidates): Likewise.
5906         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
5907
5908 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
5909
5910         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
5911         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
5912         c_expand_expr, boolean_increment, nonnull_check_p,
5913         check_function_arguments_recurse, fold_offsetof_1): Likewise.
5914         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
5915         builtin_define_type_max): Likewise.
5916         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
5917         implicit_decl_warning, builtin_function, build_compound_literal,
5918         complete_array_type, grokdeclarator, get_parm_info,
5919         start_function, store_parm_decls_oldstyle,
5920         c_write_global_declarations): Likewise.
5921         * c-format.c (get_constant, decode_format_attr,
5922         maybe_read_dollar_number, get_flag_spec, check_format_arg,
5923         check_format_types, format_type_warning,
5924         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
5925         init_dynamic_diag_info, handle_format_attribute): Likewise.
5926         * c-gimplify.c (push_context, pop_context, finish_bc_block):
5927         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
5928         * c-objc-common.c (c_tree_printer): Likewise.
5929         * c-pch.c (pch_init): Likewise.
5930         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
5931         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
5932         * c-typeck.c (c_incomplete_type_error, composite_type,
5933         common_pointer_type, common_type, same_translation_unit_p,
5934         tagged_types_tu_compatible_p, finish_init, pop_init_level,
5935         set_designator, set_nonincremental_init_from_string,
5936         process_init_element, c_finish_if_stmt): Likewise.
5937         * caller-save.c (init_caller_save, save_call_clobbered_regs,
5938         insert_restore, insert_save, insert_one_insn): Likewise.
5939         * calls.c (emit_call_1, compute_argument_block_size,
5940         precompute_arguments, expand_call, emit_library_call_value_1,
5941         store_one_arg): Likewise.
5942
5943 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
5944
5945         * configure.ac (enable-checking): Add release option. Reorganize
5946         to avoid repetition.
5947         * configure: Rebuilt.
5948         * doc/install.texi (enable-checking): Amend documentation.
5949
5950 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5951
5952         PR bootstrap/17313
5953         * Makefile.in (specs.ready): Depend on cc1$(exeext).
5954
5955 2004-09-06  James E Wilson  <wilson@specifixinc.com>
5956
5957         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
5958         movdf_hardfloat_32bit): Split fG into two alternatives.
5959         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
5960
5961         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
5962
5963 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
5964
5965         * final.c (output_in_slot): Delete.
5966         (final_scan_insn): Revert 2004-09-03 change.
5967         (output_asm_insn): Likewise.
5968         * config/sparc/sparc.c (output_return): Likewise.
5969         (output_sibcall): Likewise.
5970
5971 2004-09-06  Jan Hubicka  <jh@suse.cz>
5972
5973         * loop.c (loop_dump_aux): Do not print RTL when not available.
5974         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
5975         frontend specific type nodes.
5976         (produce_memory_decl_rtl): Break out from ...
5977         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
5978         (get_computation_at): Avoid random tree sharing.
5979         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
5980
5981 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
5982
5983         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
5984         unnecessary commands.
5985
5986 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
5987
5988         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
5989         (bitmap.o): Likewise.
5990
5991 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
5992
5993         Unify the management of RTL and tree-level dump files.
5994
5995         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
5996         Don't print function name to the dump file, the pass manager
5997         would do this for us. Add code from the top of
5998         rest_of_compilation, up to the initial RTL dump.
5999         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
6000         close the DFI_sibling dump file.
6001         (rest_of_compilation): Don't do that here.  Remove code up to the
6002         initial RTL dump.
6003         (init_optimization_passes): Remove.
6004         (pass_rest_of_compilation): Change pass name to NULL.
6005         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
6006         Do not call init_optimization_passes.
6007         * toplev.h (init_optimization_passes): Remove.
6008
6009         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
6010         finish_graph_dump_file): Remove SUFFIX parameter.
6011         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
6012         finish_graph_dump_file): Likewise.
6013
6014         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
6015         * cfgexpand.c (pass_expand): Adjust.
6016         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
6017         * passes.c (pass_rest_of_compilation): Adjust.
6018         * predict.c (pass_profile): Adjust.
6019         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
6020         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
6021         pass_split_crit_edges, pass_warn_function_return): Adjust.
6022         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
6023         * tree-dfa.c (pass_referenced_vars): Adjust.
6024         * tree-eh.c (pass_lower_eh): Adjust.
6025         * tree-if-conv.c (pass_build_ssa): Adjust.
6026         * tree-into-ssa.c (pass_build_ssa): Adjust.
6027         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
6028         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
6029         * tree-nrv.c (pass_nrv): Adjust.
6030         * tree-optimize.c (pass_gimple, pass_all_optimizations,
6031         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
6032         pass_init_datastructures): Adjust.
6033         * tree-outof-ssa.c (pass_del_ssa): Adjust.
6034         * tree-profile.c (pass_tree_profile): Adjust.
6035         * tree-sra.c (pass_sra): Adjust.
6036         * tree-ssa-alias.c (pass_may_alias): Adjust.
6037         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
6038         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
6039         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
6040         * tree-ssa-dom.c (pass_dominator): Adjust.
6041         * tree-ssa-dse.c (pass_dse): Adjust.
6042         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
6043         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
6044         * tree-ssa-loop-ch.c (pass_ch): Adjust.
6045         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
6046         pass_loop_done, pass_complete_unroll, pass_iv_canon,
6047         pass_iv_optimize, pass_vectorize): Adjust.
6048         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
6049         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
6050         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
6051         pass_late_warn_uninnitialized): Adjust.
6052         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
6053
6054         * Makefile.in (tree-dump.o): Add new dependencies.
6055         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
6056         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
6057         Likewise.
6058         * toplev.c (dump_file_name): New.
6059         * tree-dump.c (dump_enable_all): Add LETTER parameter.
6060         (struct dump_file_info): Add NUM and LETTER fields.
6061         (dump_files): Adjust and add RTL dump files.
6062         (dump_register): Add NUM and LETTER fields.
6063         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
6064         (dump_begin): Use get_dump_file_name.
6065         (dump_switch_p_1): Adjust call to dump_enable_all.
6066         * tree-dump.h (dump_register): Adjust prototype.
6067         * tree-optimize.c (register_one_dump_file): Take dump file index.
6068         Support flags for RTL dumps.
6069         (register_dump_files): Fill in NUM field of struct dump_file_info.
6070         Track properties both when the gate is executed and when it is not.
6071         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
6072         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
6073         dumps of RTL.
6074         * tree-pass.h (dump_file_name): New.
6075         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
6076         New.
6077
6078         * Makefile.in (passes.o): Add new dependencies.
6079         * passes.c (struct dump_file_info, enum dump_file_index,
6080         dump_file_tbl, init_optimization_passes): Remove.
6081         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
6082         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
6083         dump_enabled_p.
6084         (finish_optimization_passes): Update finish_graph_dump_file loop.
6085         (enable_rtl_dump_file): Remove.
6086         * tree-dump.c (dump_files): Adjust and add RTL dump files.
6087         (enable_rtl_dump_file): Add here.
6088         * tree.h (enum tree_dump_index): Add RTL dump file indices.
6089         * doc/invoke.texi (Debugging options): Document new RTL debugging
6090         options.  Update.
6091
6092 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
6093
6094         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
6095         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
6096         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
6097         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
6098         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
6099         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
6100         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
6101         vec.h: Fix comment formatting.
6102
6103 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
6104
6105         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
6106         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
6107         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
6108         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
6109         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
6110         tree-ssa-loop-niter.c, tree-ssa-operands.c,
6111         tree-ssa-operands.h, tree-ssa-propagate.c,
6112         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
6113         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
6114
6115 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
6116
6117         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
6118         vectorizer is enabled.
6119
6120 2004-09-05  Andreas Jaeger  <aj@suse.de>
6121
6122         * tree-if-conv.c: Spell check comments and clean up whitespace.
6123
6124 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6125
6126         * tree-ssa-loop-ivopts.c: New file.
6127         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
6128         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
6129         target_pres_cost, target_spill_cost): Declare.
6130         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
6131         spill_cost): Renamed to ...
6132         (target_avail_regs, target_res_regs, target_small_cost,
6133         target_pres_cost, target_spill_cost): ... and exported.
6134         (init_set_costs, global_cost_for_size): Work with renamed variables.
6135         * common.opt (flag_ivopts): New flag.
6136         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
6137         REF_ORIGINAL.
6138         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
6139         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
6140         generating SSA form.
6141         (force_gimple_operand): New function.
6142         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
6143         * tree-cfg.c (stmt_bsi): New function.
6144         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
6145         PARAM_IV_MAX_CONSIDERED_USES): New.
6146         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
6147         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
6148         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
6149         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
6150         * tree-nested.c (build_addr): Export.
6151         * tree-optimize.c (init_tree_optimization_passes): Add
6152         pass_iv_optimize.
6153         * tree-pass.h (pass_iv_optimize): Declare.
6154         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
6155         IMAGPART_EXPR.
6156         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
6157         as a phi node argument.
6158         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
6159         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
6160         functions.
6161         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
6162         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
6163         pass_iv_optimize): New pass.
6164         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
6165         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
6166         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
6167         * tree.h (REF_ORIGINAL): New macro.
6168         (build_int_cst_type, unsigned_type_for, zero_p,
6169         cst_and_fits_in_hwi, build_addr): Declare.
6170         * doc/invoke.texi (-fivopts): Document.
6171         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
6172         PARAM_IV_MAX_CONSIDERED_USES): Document.
6173         * doc/passes.texi: Document induction variable optimizations pass.
6174
6175 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6176
6177         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
6178         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
6179         * c-common.c (c_common_attribute_table): Accept parameters to
6180         sentinel attribute.
6181         (check_function_sentinel, handle_sentinel_attribute): Likewise.
6182         * doc/extend.texi: Update accordingly.
6183
6184 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6185
6186         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
6187         New.
6188         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
6189         attribute.
6190         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
6191         New functions.
6192         (c_common_attribute_table): Add `sentinel' attribute.
6193         (check_function_arguments): Handle `sentinel' attribute.
6194         * doc/extend.texi: Document `sentinel' attribute.
6195
6196 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6197
6198         * configure: Regenerated.
6199
6200 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6201
6202         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
6203
6204         * tree.c (save_expr): No longer TREE_READONLY.
6205
6206 2004-09-04  Jan Hubicka  <jh@suse.cz>
6207
6208         * passes.c (rest_of_clean_state):  Fix merge conflict made during
6209         commiting the patch.
6210
6211 2004-09-04  Jan Hubicka  <jh@suse.cz>
6212
6213         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
6214
6215 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
6216
6217         * doc/md.texi (shift patterns): New anchor.  Add reference to
6218         TARGET_SHIFT_TRUNCATION_MASK.
6219         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
6220         * target.h (shift_truncation_mask): New target hook.
6221         * targhook.h (default_shift_truncation_mask): Declare.
6222         * targhook.c (default_shift_truncation_mask): Define.
6223         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
6224         (TARGET_INITIALIZER): Include it.
6225         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
6226         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
6227         reject all out-of-range values.  Fix sign-extension code for modes
6228         whose width is smaller than HOST_BITS_PER_WIDE_INT.
6229         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
6230         (expand_superword_shift, expand_subword_shift): Likewise.
6231         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
6232         (expand_binop): Use them to implement double-word shifts.
6233         * config/arm/arm.c (arm_shift_truncation_mask): New function.
6234         (TARGET_SHIFT_TRUNCATION_MASK): Define.
6235
6236 2004-09-04  Jan Hubicka  <jh@suse.cz>
6237
6238         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
6239         (mix): New macro copied from hashtab.c
6240         (iterative_hash_hashval_t, iterative_hash_pointer,
6241         iterative_hash_host_wide_int): New functions based on hashtab.c
6242         implementation.
6243
6244 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
6245
6246         * config/mips/mips.md (mask): New mode attribute.
6247         (zero_extendsidi2): Add memory alternative.
6248         (*zero_extendsidi2_mem): Delete.
6249         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
6250         memory_operand in the TARGET_MIPS16 check.
6251         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
6252         Redefine using :GPR and :SHORT.
6253         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
6254
6255 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
6256
6257         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
6258         using rint_optab.
6259         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
6260         expand_builtin_mathfn.
6261         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
6262         btrunc?f patterns for btrunc_optab. Implement rint_optab using
6263         rint?f patterns.
6264         * optabs.c (init_optabs): Initialize rint_optab.
6265         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
6266         Add new OTI_rint.
6267         (btrunc_optab): Rename macro from trunc_optab.
6268         (rint_optab): Define corresponding macro.
6269
6270         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
6271         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
6272
6273         * config/i386/i386-protos.h (emit_i387_cw_initialization):
6274         Change prototype. Add new int parameter.
6275         * config/i386/i386.c (emit_i387_cw_initialization):
6276         Handle new rounding modes.
6277
6278         * config/i386/i386.h (enum fp_cw_mode): Delete.
6279         (MODE_NEEDED): Handle new rounding modes.
6280         (EMIT_MODE_SET): Change condition to handle new rounding modes.
6281
6282         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
6283         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
6284         represent different rounding modes of frndint insn.
6285         (type): Add frndint type.
6286         (i387, length, memory): Handle this type.
6287         (i387_cw): New attribute definition.
6288         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
6289         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
6290         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
6291         Add "i387_cw" attribute defined to "trunc".
6292         (x86_fnstcw_1): Remove comment.
6293         (*frndintxf2): Rename insn definition to frndintxf2. Move
6294         insn definition near rint?f2 expanders.
6295         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
6296         rintf and rintl built-ins as inline x87 intrinsics.
6297         (frndintxf2_floor): New pattern to implement floor rounding
6298         mode with frndint x87 instruction.
6299         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
6300         floorf and floorl built-ins as inline x87 intrinsics.
6301         (frndintxf2_ceil): New pattern to implement ceil rounding
6302         mode with frndint x87 instruction.
6303         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
6304         ceilf and ceill built-ins as inline x87 intrinsics.
6305         (frndintxf2_trunc): New pattern to implement trunc rounding
6306         mode with frndint x87 instruction.
6307         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
6308         truncf and truncl built-ins as inline x87 intrinsics.
6309         (frndintxf2_mask_pm): New pattern to implement rounding
6310         mode with exceptions with frndint x87 instruction.
6311         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
6312         implement nearbyint, nearbyintf and nearbyintl built-ins as
6313         inline x87 intrinsics.
6314
6315 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
6316
6317         * config/mips/mips.md (SHORT): New mode macro.
6318         (size): New mode attribute.
6319         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
6320         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
6321         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
6322         !ISA_HAS_SEB_SEH.
6323         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
6324         *extend[qh]isi2_hw patterns and extending them to di.
6325         (extendqihi2): Implement as define_insn_and_split that produces
6326         extendqisi2 after reload.
6327
6328 2004-09-03  Devang Patel  <dpatel@apple.com>
6329
6330         * Makefile.in (OBJS-common): Add tree-if-conv.o
6331         (tree-if-conv.o): New rule.
6332         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
6333         (get_loop_body_in_bfs_order): New.
6334         * cfgloop.h (get_loop_body_in_bfs_order): New.
6335         * tree-flow.h (enum move_pos): Move here from ..
6336         * tree-ssa-loop-im.c (enum move_pos): here.
6337         (movement_possibility): Make externally visible.
6338         * tree-optimize.c (init_tree_optimization_passes): New entry for
6339         if conversion pass.
6340         * tree-pass.h (pass_if_conversion): New.
6341         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
6342         * tree-if-conv.c: New file.
6343         * doc/passes.texi: Document tree if-conversion pass.
6344         * doc/tree-ssa.texi: Same.
6345
6346 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
6347
6348         PR target/14925:
6349         Makefile.in (LIB2ADDEHSTATIC): New.
6350         (LIB2ADDEHSHARED): New.
6351         (LIBUNWIND): New.
6352         (LIBUNWINDDEP): New.
6353         (SHLIBUNWIND_LINK): New.
6354         (SHLIBUNWIND_INSTALL): New.
6355         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
6356         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
6357         (clean): Remove libunwind*
6358         (stage1-start): Remove and copy stage1/libunwind*.
6359         (stage2-start): Remove and copy stage2/libunwind*.
6360         (stage3-start): Remove and copy stage3/libunwind*.
6361         (stage4-start): Remove and copy stage4/libunwind*.
6362         (stageprofile-start): Remove and copy stageprofile/libunwind*.
6363         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
6364
6365         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
6366         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
6367         tmake_file if --with-system-libunwind isn't used.
6368
6369         * config/ia64/t-glibc-libunwind: New file.
6370         * config/t-libunwind-elf: Likewise.
6371         * unwind-compat.c: Likewise.
6372         * unwind-compat.h: Likewise.
6373         * unwind-dw2-fde-compat.c: Likewise.
6374
6375         * config/ia64/t-glibc (LIB2ADDEH): Updated.
6376         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
6377
6378         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
6379         aliases if needed.
6380         * unwind-dw2-fde-glibc.c: Likewise.
6381         * unwind-dw2.c: Likewise.
6382
6383         * config/t-libunwind (LIB2ADDEH): Updated.
6384         (LIB2ADDEHSTATIC): New.
6385         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
6386         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
6387
6388         * configure.ac: Change --enable-libunwind-exceptions to
6389         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
6390         * configure: Regenerated.
6391         * config.in: Updated.
6392
6393         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
6394         above and mention --with-system-libunwind.
6395         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
6396         removed in gcc 3.4.3 and later.
6397
6398         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
6399         USE_LIBUNWIND_EXCEPTIONS is defined.
6400
6401         * mklibgcc.in: Support libunwind.
6402
6403 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
6404
6405         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
6406         m_NOCONA.
6407
6408 2004-09-03  Richard Henderson  <rth@redhat.com>
6409
6410         PR middle-end/9997
6411         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
6412         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
6413         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
6414         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
6415         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
6416         resize_stack_vars_conflict, add_stack_var_conflict,
6417         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
6418         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
6419         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
6420         expand_one_static_var, expand_one_hard_reg_var,
6421         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
6422         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
6423         (expand_used_vars): Rewrite.
6424         * Makefile.in (cfgexpand.o): Update dependencies.
6425
6426 2004-09-04  Jan Hubicka  <jh@suse.cz>
6427
6428         * cfg.c (free_edge): Use ggc_free.
6429         (expunge_block): Use ggc_free.
6430         * passes.c (rest_of_clean_state): Free after compilation.
6431         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
6432         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
6433
6434 2004-09-03  James E Wilson  <wilson@specifixinc.com>
6435
6436         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
6437         DECL_EXTERNAL check.
6438
6439 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
6440
6441         * final.c (output_in_slot): New global variable.
6442         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
6443         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
6444         'output_in_slot' before invoking output_asm_insn.
6445         (output_asm_insn): Add a space after the tab if 'output_in_slot'
6446         is set.
6447         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
6448         final_scan_insn.
6449         (output_sibcall): Likewise.
6450
6451 2004-09-03  Jan Hubicka  <jh@suse.cz>
6452
6453         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
6454         * tree-ssanames (init_ssanames): Likewise.
6455
6456 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
6457
6458         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
6459         objc_declare_protocols, objc_start_protocol,
6460         objc_start_class_interface, objc_start_category_interface,
6461         objc_continue_interface, objc_finish_interface,
6462         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
6463         objc_start_class_implementation, objc_start_category_implementation,
6464         objc_continue_implementation, objc_finish_implementation,
6465         objc_add_method_declaration, objc_start_method_definition,
6466         objc_finish_method_definition, objc_build_keyword_decl,
6467         objc_build_method_signature, objc_build_encode_expr,
6468         objc_build_protocol_expr, objc_build_selector_expr,
6469         objc_build_message_expr, objc_build_string_object,
6470         objc_get_class_reference, objc_get_protocol_qualified_type,
6471         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
6472
6473 2004-09-03  James E Wilson  <wilson@specifixinc.com>
6474
6475         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
6476
6477         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
6478         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
6479         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
6480         (mips_recip1_<fmt>): Use frdiv1 type.
6481         (mips_recip2_<fmt>): Use frdiv2 type.
6482         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
6483         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
6484         and frsqrt1.
6485         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
6486
6487 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
6488
6489         * reload.c (find_reloads): Swap operand_loc pointers for
6490         find_dummy_reload if we have swapped two operands.
6491
6492 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
6493
6494         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
6495         to get the tablejump-insn before the jump-table label.
6496
6497 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
6498
6499         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
6500         objc_declare_protocols, objc_build_message_expr,
6501         objc_finish_message_expr, objc_build_selector_expr,
6502         objc_build_protocol_expr, objc_build_encode_expr,
6503         objc_build_string_object, objc_get_protocol_qualified_type,
6504         objc_get_class_reference, objc_get_class_ivars,
6505         objc_start_class_interface, objc_start_category_interface,
6506         objc_start_protocol, objc_continue_interface, objc_finish_interface,
6507         objc_start_class_implementation, objc_start_category_implementation,
6508         objc_continue_implementation, objc_finish_implementation,
6509         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
6510         objc_add_method_declaration, objc_start_method_definition,
6511         objc_finish_method_definition, objc_add_instance_variable,
6512         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
6513         objc_finish_try_stmt, objc_begin_catch_clause,
6514         objc_finish_catch_clause, objc_build_finally_clause,
6515         objc_build_synchronized, objc_static_init_needed_p,
6516         objc_generate_static_init_call): New prototypes.
6517
6518 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
6519
6520         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
6521         is only one reg.
6522         (ia64_function_value): Ditto.
6523
6524 2004-09-03  Jan Beulich  <jbeulich@novell.com>
6525
6526         * config.gcc: Resurrect NetWare as a target. Handle special case of
6527         Novell linker to be used (specified through --with-ld=) and threading
6528         model of either Posix (default) or NKS.
6529         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
6530         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
6531         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
6532         * config/i386/netware.c, config/i386/netware.h: New.
6533         * config/i386/nwld.c, config/i386/nwld.h: New.
6534         * config/i386/netware-crt0.c: New.
6535         * config/i386/netware-libgcc.c: New.
6536         * config/i386/netware-libgcc.def: New.
6537         * config/i386/netware-libgcc.exp: New.
6538         * config/i386/t-netware, config/i386/t-nwld: New.
6539         * gthr-nks.h: New.
6540         * doc/install.texi: Document NKS threading model.
6541
6542 2004-09-03  Jan Beulich  <jbeulich@novell.com>
6543
6544         PR c/7054
6545         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
6546         * tree.h (initial_max_fld_align): Declare
6547         * stor-layout.c (initial_max_fld_align): Define and initialize.
6548         (maximum_field_alignment): Initialize to the same value.
6549         * common.opt: Add -fpack-struct= variant of switch.
6550         * opts.c: Handle -fpack-struct= variant of switch.
6551         * c-pragma.c: Change #pragma pack() handling so that it becomes
6552         compatible to other compilers: accept individual 'push' argument,
6553         make final pop restore (command line) default, correct interaction
6554         of push/pop and sole specification of a new alignment (so that the
6555         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
6556         to #pragma pack(push, <n>).
6557         * doc/extend.texi: New node "Structure-Packing Pragmas" under
6558         "Pragmas", describing #pragma pack.
6559         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
6560         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
6561         Document new TARGET_DEFAULT_PACK_STRUCT.
6562
6563 2004-09-03  Devang Patel  <dpatel@apple.com>
6564
6565         * dwarf2out.c (gen_field_die). Equate decl number to die.
6566
6567 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
6568
6569         PR target/15832
6570         * global.c (modify_reg_pav): New function.
6571         (make_accurate_live_analysis): Call the new function.  Move pavin
6572         modification by earlyclobber set into the new function.
6573
6574 2004-09-03  Andreas Schwab  <schwab@suse.de>
6575
6576         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
6577         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
6578         extended.
6579
6580 2004-09-02  Jan Beulich  <jbeulich@novell.com>
6581
6582         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
6583         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
6584         not unwind code specific ones.
6585         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
6586         Remove unwind code specific dependencies.
6587         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
6588         Remove gbl-ctors.h.
6589         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
6590         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
6591         * tsystem.h: Declare memcpy and memset when inhibit_libc.
6592
6593 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
6594
6595         * combine.c (try_combine): Delay modifying of insns which cannot
6596         be easily undone.
6597
6598 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
6599
6600         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
6601         tree-loop-im.
6602         * gcc/tree-ssa-loop.c: Ditto
6603         * gcc/tree-ssa-loop-ivcanon.c: Ditto
6604         * gcc/doc/invoke.texi: Ditto.
6605
6606 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
6607
6608         * c-decl.c (store_parm_decls_newstyle): Make static.
6609         (store_parm_decls_from): New function.
6610         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
6611         (store_parm_decls_from): New prototype.
6612
6613 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
6614
6615         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
6616         HImode with STRICT_ALIGNMENT.
6617
6618 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
6619
6620         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
6621         (TARGET_OS_CPP_BUILTINS): Likewise.
6622         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
6623         TARGET_BPABI_CPP_BUILTINS.
6624
6625 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
6626
6627         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
6628
6629 2004-09-02  Eric Christopher  <echristo@redhat.com>
6630
6631         * builtins.c (expand_builtin_cabs): Delete.
6632         (expand_builtin): If unable to fold the values do a normal
6633         library call for builtin_cab*.
6634         (fold_builtin_cabs): Depend on optimize and optimize_size.
6635         * optabs.c (expand_cmplxdiv_straight): Delete.
6636         (expand_cmplxdiv_wide): Ditto.
6637         (expand_vector_binop): Ditto.
6638         (expand_vector_unop): Ditto.
6639         (expand_complex_abs): Delete.
6640         (expand_binop): Remove calls to above functions.
6641         Remove open coding of complex arithmetic.
6642         (expand_unop): Ditto.
6643         * optabs.h: Remove prototypes.
6644
6645 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
6646
6647         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
6648         * c-tree.h (store_parm_decls_newstyle): New prototype.
6649
6650 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
6651
6652         * config/rs6000/rs6000.c (expand_block_clear): Use vector
6653         instructions if available.
6654         (expand_block_move): Likewise.
6655
6656 2004-09-03  Jan Hubicka  <jh@suse.cz>
6657
6658         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
6659
6660 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
6661
6662         * config/arm/symbian.h (LIB_SPEC): Define to empty.
6663         * config/arm/t-symbian (SHLIB_LC): Likewise.
6664
6665 2004-09-02  Paul Brook  <paul@codesourcery.com>
6666
6667         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
6668
6669 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
6670
6671         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
6672         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
6673         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
6674         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
6675         (mips_issue_rate): Remove unreachable abort.
6676         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
6677         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
6678         (mips_block_move_straight, print_operand_address, mips_file_start)
6679         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
6680         (mips_output_conditional_branch, mips_expand_builtin_direct)
6681         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
6682         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
6683         with gcc_assert.
6684
6685 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
6686
6687         * config/mips/mips.md (*lea_high64): Change split condition to
6688         flow2_completed.  Add a peephole2 to generate a more parallel version.
6689
6690 2004-09-02  Jan Hubicka  <jh@suse.cz>
6691
6692         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
6693         GGC.
6694
6695         * ggc-page.c: include tree-flow.h.
6696         (extra_order_size_table): Add stmt_ann_d.
6697         (STAT_LABEL): Rename from ....
6698         (LABEL): ... this one.
6699         * Makefile.in (ggc-page.o): Add dependency.
6700
6701         * ggc-common.c (ggc_force_collect): New global variable.
6702         (loc_description): Add fields "freed", "collected"
6703         (ptr_hash): New static hash
6704         (ptr_hash_entry): New structure.
6705         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
6706         (ggc_record_overhead): Take ptr argument, record it
6707         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
6708         (cmp_statistics): Imrove sorting.
6709         (dump_ggc_loc_statistics): Output newly collected statistics
6710         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
6711         (ggc_free): Call ggc_free_overhead.
6712         (ggc_collect): Force collection when asked to be forced.
6713         (ggc_collect): Call ggc_prune_overhead_list.
6714         * ggc.h (ggc_force_collect): Declare
6715         (ggc_record_overhead): Update prototype.
6716         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
6717
6718 2004-09-02  James E Wilson  <wilson@specifixinc.com>
6719
6720         * common.opt (ftrapping-math): Default to on.
6721
6722 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
6723
6724         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
6725
6726 2004-09-02  Denis Chertykov  <denisc@overta.ru>
6727
6728         PR target/16884
6729         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
6730         match_scratch.
6731         (*movmemqi_insn): Likewise.
6732         (*movmemhi): Likewise.
6733         (clrmemhi): Likewise.
6734         (*clrmemqi): Likewise.
6735         (*clrmemhi): Likewise.
6736
6737 2004-09-02  Paul Brook  <paul@codesourcery.com>
6738
6739         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
6740         default_use_cxa_atexit=yes.
6741
6742 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
6743
6744         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
6745         (struct kernel_old_ucontext): Delete.
6746         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
6747         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
6748         when IN_LIGGCC2.
6749
6750 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
6751
6752         * toplev.c (process_options): Fix typo.
6753
6754 2004-09-01  Richard Henderson  <rth@redhat.com>
6755
6756         PR middle-end/17258
6757         * calls.c (initialize_argument_information): Tighten pass-through
6758         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
6759         Use build_fold_addr_expr.
6760         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
6761         that assumes ADDR_EXPR allocates stack space.
6762         * fold-const.c (build_fold_addr_expr_with_type): Look through
6763         WITH_SIZE_EXPR.
6764
6765 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
6766
6767         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
6768         * ggc.h (ggc_alloc_rtx): Delete.
6769
6770 2004-09-01  Roger Sayle  <roger@eyesopen.com>
6771
6772         * expmed.c (enum alg_code): Remove long unused enumeration values.
6773         (struct mult_cost): New structure to hold the "score" of a synthetic
6774         multiply sequence, including both a rtx_cost and a latency field.
6775         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
6776         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
6777         (struct algorithm): Change type of cost field to be mult_cost.
6778         (synth_mult): Change type of cost_limit argument to be a
6779         pointer to a mult_cost.  Update all cost comparisons to use the
6780         new mult_cost infrastructure.  For alg_add_factor and
6781         alg_sub_factor operations, latency is lower than the rtx_cost.
6782         (choose_mult_variant):  Update calls to synth_mult.  Perform
6783         cost comparisons using the new mult_cost infrastructure.
6784         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
6785         to optain the total rtx_cost of a synth_mult "algorithm".
6786
6787 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
6788
6789         * config/rs6000/power4.md: Increase store latency to 12.
6790         * config/rs6000/power5.md: Same.
6791
6792 2004-09-01  James E Wilson  <wilson@specifixinc.com>
6793
6794         PR target/14064
6795         * config/avr/avr.c (avr_unique_section): Delete prototype and
6796         definition.
6797         (TARGET_ASM_UNIQUE_SECTION): Delete.
6798
6799 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
6800
6801         * c-parse.in (primary): Call objc_build_message_expr(),
6802         objc_build_selector_expr(), objc_build_protocol_expr(),
6803         objc_build_encode_expr() and objc_build_string_object() instead of
6804         build_message_expr(), build_selector_expr(), build_protocol_expr(),
6805         build_encode_expr() and build_objc_string_object(), respectively.
6806         (component_decl_list2): Call objc_get_class_ivars() instead of
6807         get_class_ivars_from_name().
6808         (keyworddecl): Call objc_build_keyword_decl() instead of
6809         build_keyword_decl().
6810         (receiver): Call objc_get_class_reference() instead of
6811         get_class_reference().
6812         (reswords): Add blank line before @@ifobjc section, for clarity.
6813
6814 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
6815
6816         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
6817         to Altivec vetors.
6818
6819 2004-09-01  Wu Yongwei  <adah@sh163.net>
6820             Danny Smith  <dannysmith@users.sourceforge.net>
6821
6822         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
6823         not Windows 'DWORD'.
6824         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
6825         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
6826         (__gthr_win32_recursive_mutex_init_function): Add prototype for
6827         __GTHREAD_HIDE_WIN32API case..
6828         (__gthr_win32_recursive_mutex_lock): Likewise.
6829         (__gthr_win32_recursive_mutex_trylock): Likewise.
6830         (__gthr_win32_recursive_mutex_unlock): Likewise.
6831         (__gthread_recursive_mutex_init_function); Add definition for
6832         __GTHREAD_HIDE_WIN32API case.
6833         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
6834         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
6835         call to InterlockedDecrement.
6836
6837 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6838
6839         * tree-tailcall.c (find_tail_calls): Also fail is statement has
6840         volatile operands.
6841
6842         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
6843
6844         * doc/c-tree.texi: Document new operands for ARRAY_REF and
6845         COMPONENT_REF.
6846
6847 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6848
6849         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
6850         * common.opt (fspeculative-prefetching): New.
6851         * flags.h (flag_speculative_prefetching_set): Declare.
6852         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
6853         values.
6854         * opts.c (flag_sepculative_prefetching_set): New variable.
6855         (common_handle_option): Handle -fspeculative-prefetching.
6856         * passes.c (rest_of_compilation): Ditto.
6857         * profile.c (instrument_values, compute_value_histograms, branch_prob):
6858         Use vectors instead of arrays.
6859         * toplev.c (process_options): Handle -fspeculative-prefetching.
6860         * rtl-profile.c: Include ggc.h.
6861         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
6862         rtl_gen_one_value_profiler_no_edge_manipulation,
6863         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
6864         argument changed.
6865         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
6866         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
6867         argument changed.
6868         * value-prof.c: Include ggc.h.
6869         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
6870         macros.
6871         (insn_prefetch_values_to_profile, find_mem_reference_1,
6872         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
6873         speculative_prefetching_transform): New.
6874         (value_profile_transformations): Call speculative_prefetching_transform.
6875         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
6876         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
6877         tree_find_values_to_profile, find_values to profile): Use vectors
6878         instead of arrays.
6879         (free_profiled_values): Removed.
6880         * value-prof.h (struct histogram_value): Renamed to
6881         struct histogram_value_t.
6882         (histogram_value, histogram_values): New types.
6883         (find_values_to_profile): Declaration changed.
6884         (free_profiled_values): Removed.
6885         (struct profile_hooks): Type of argument of the hooks changed to
6886         histogram_value.
6887         * doc/invoke.texi (-fspeculative-prefetching): Document.
6888
6889 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6890
6891         PR rtl-optimization/16408
6892         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
6893
6894 2004-09-01  Richard Henderson  <rth@redhat.com>
6895
6896         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
6897         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
6898
6899 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
6900
6901         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
6902
6903 2004-09-01  Mike Stump  <mrs@apple.com>
6904
6905         * config/darwin.c (machopic_symbol_defined_p): In addition to
6906         being SYMBOL_REF_LOCAL_P, a symbol must also be
6907         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
6908         defined in this output file, or translation unit in the case
6909         of IMA not being used.
6910         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
6911         never need .indirect_symbol when indirecting.
6912
6913 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
6914
6915         * Makefile.in (bb-reorder.o): Add several dependencies.
6916
6917 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
6918
6919         * fold-const.c (operand_equal_p): Require equal sign also for
6920         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
6921
6922 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
6923
6924         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
6925         for use in configargs.h.  Put the cname in a separate variable.  Use
6926         that to set target_cpu_default2.
6927
6928 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
6929             Nick Clifton  <nickc@redhat.com>
6930
6931         * config/sh/sh.md ("length"): Increase branch length when
6932         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
6933         constant, 2 byte for aligning the constant.
6934
6935 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
6936
6937         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
6938         CPU.
6939         (arm7tdmi-s): New CPU name.
6940         * arm/arm.c (ARM_CORE): Update for new format.
6941         * arm/arm.h (ARM_CORE): Likewise.
6942         * arm/gentune.sh: Update for extra field.
6943         * config.gcc: Likewise.
6944         * arm/arm-tune.md: Regenerate.
6945         * doc/invoke.texi: Document the real processor names for ARM cpus.
6946
6947 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
6948
6949         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
6950         (floatdidf): New functions.
6951         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
6952         (floatdisf): New functions.
6953         * t-arm-elf: Use them.
6954
6955 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
6956
6957         * c-common.h (lookup_interface): Remove prototype.
6958         (is_class_name): Rename to objc_is_class_name.
6959         (lookup_objc_ivar): Rename to objc_lookup_ivar.
6960         (get_current_scope): Rename to objc_get_current_scope.
6961         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
6962         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
6963         (yylexname): Call objc_is_class_name() instead of is_class_name().
6964         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
6965         instead of lookup_objc_ivar().
6966         * stub-objc.c (lookup_interface): Remove stub.
6967         (is_class_name): Rename to objc_is_class_name.
6968         (lookup_objc_ivar): Rename to objc_lookup_ivar.
6969
6970 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
6971
6972         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
6973         * config/arm/lib1funcs.asm: Do not include supplemental .S files
6974         when compiling for Symbian.
6975         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
6976         (TARGET_OS_CPP_BUILTINS): Likewise.
6977         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
6978
6979 2004-08-31  Stan Shebs  <shebs@apple.com>
6980
6981         * toplev.c (process_options): Ensure debug_hooks is initialized.
6982
6983 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
6984
6985         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
6986         * target.h (cxx): Add export_class_data.
6987         * config/arm/arm.c (arm_cxx_export_class_data): New function.
6988         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
6989         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
6990
6991 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6992
6993         * config/sh/sh.c (output_branch): Check the insn length possibly
6994         in the delayed slot.
6995
6996 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6997
6998         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
6999         blank after ')'.
7000         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
7001
7002         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
7003         (c_sizeof_of_alignof_type): Likewise.
7004         * expr.c (array_ref_element_size): Likewise.
7005         (highest_pow2_factor_for_target): Likewise.
7006         * gimplify.c (canonicalize_addr_expr): Likewise.
7007         (gimplify_compound_lval): Likewise.
7008         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
7009         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
7010         * varasm.c (assemble_variable): Likewise.
7011         (output_constant_def_contents): Alignments are unsigned.
7012
7013 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7014             Jeff Law  <law@redhat.com>
7015
7016         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
7017         gets modified.
7018
7019 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
7020
7021         * hooks.c (hook_bool_void_true): New function.
7022         * hooks.h (hook_bool_void_true): Declare.
7023         * target-def.h (TARGET_CXX): Add
7024         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
7025         * target.h (struct cxx): Add key_method_may_be_inline.
7026         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
7027         function.
7028         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
7029         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
7030         __THUMB_INTERWORK.
7031
7032 2004-08-31  Denis Chertykov  <denisc@overta.ru>
7033
7034         PR target/15417
7035         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
7036         frame pointer register only in Pmode while reload in progress.
7037
7038 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
7039
7040         PR target/15334
7041         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
7042         because it breaks the 32-bit shift patterns that rely on a match_dup.
7043
7044 2004-08-31  Matt Austern  <austern@apple.com>
7045
7046         * config/darwin.c (darwin_make_decl_one_only): Allocate section
7047         names once per compilation, instead of once per symbol.
7048
7049 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
7050
7051         * Makefile.in (build_subdir): New substitution.
7052         (fixinc.sh): Simplify heavily since fixincludes is already built.
7053         (stmp-fixinc): Depend on specs.ready.
7054         (install-mkheaders): Use new location of fixincludes.
7055         (clean): Do not descend into fixinc.
7056         (FORBUILD): Replace with ../$(build_subdir).
7057         * configure.ac (build_subdir): Substitute.
7058         (FORBUILD): Do not set.
7059         (all_outputs): Remove fixinc/Makefile.
7060         (default commands): Do not create links in fixinc.
7061         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
7062         the fixincludes configuration steps and substituting
7063         @FIXINCL@ in fixinc.in.
7064         * fixinc.in: New, from fixinc/fixincl.sh.
7065
7066         * fixinc/*: Removed.
7067
7068 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
7069
7070         * attribs.c (strip_attrs): Remove.
7071         (split_specs_attrs): Move ...
7072         * c-decl.c: ... to here.
7073         * tree.h (split_specs_attrs, strip_attrs): Remove.
7074         * c-tree.h (split_specs_attrs): Declare.
7075
7076 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
7077
7078         * read-rtl.c: Disable RTL checking.
7079         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
7080
7081 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
7082
7083         * config/mips/mips.md (fcond): New code macro and attribute.
7084         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
7085         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
7086         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
7087
7088 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
7089
7090         Revert:
7091         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
7092         PR rtl-optimization/16590
7093         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
7094
7095 2004-08-30  Andrew Pinski  <apinski@apple.com>
7096
7097         * hard-reg-set.h:
7098         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
7099         * ChangeLog: Fix previous ChangeLog entry.
7100
7101         PR rtl-opt/13987
7102         * config.host (use_long_long_for_widest_fast_int): New, default is
7103         off.
7104         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
7105         * configure.ac: If use_long_long_for_widest_fast_int, then
7106         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
7107         * configure: Regenerate.
7108         * config.in: Regenerate.
7109         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
7110         New: widest integer type supported efficiently in hardware for the
7111         host.
7112         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
7113         HOST_BITS_PER_WIDEST_FAST_INT.
7114         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
7115         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
7116         HOST_WIDEST_FAST_INT
7117         instead of HOST_WIDE_INT.
7118         (HARD_REG_SET_LONGS): Likewise.
7119         (UHOST_BITS_PER_WIDE_INT): Likewise.
7120         Change the checks for the fast cases to be based on
7121         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
7122
7123 2004-08-30  Steven Bosscher  <stevenb@suse.de>
7124
7125         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
7126         not the pointers.
7127
7128 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
7129
7130         PR 12738
7131         PR 17205
7132         Radar 3460526
7133         Radar 3775729
7134         * c-decl.c (grokdeclarator): Produce error for 'static' on local
7135         function declaration.
7136
7137 2004-08-30  Richard Henderson  <rth@redhat.com>
7138
7139         * expr.c (array_ref_element_size): Force aligned_size back to
7140         sizetype.
7141         (component_ref_field_offset): Similarly for aligned_offset.
7142         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
7143         low-bound, element-size, field-offset fields rather than
7144         computed values.
7145
7146 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7147
7148         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
7149         redundant code.
7150
7151 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7152
7153         * c-tree.h (struct language_function): Add arg_info element.
7154         * c-decl.c (current_function_arg_info): New.
7155         (grokdeclarator, store_parm_decls): Use it instead of
7156         DECL_ARGUMENTS.
7157         (c_push_function_context, c_pop_function_context): Save and
7158         restore it.
7159
7160 2004-08-30  Richard Henderson  <rth@redhat.com>
7161
7162         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
7163         COMPONENT_REF to pointer arithmetic.
7164         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
7165         constant "c" as a valid constant initializer.  Allow narrowing of
7166         differences against the same base object, for any base object.
7167
7168 2004-08-30  Richard Henderson  <rth@redhat.com>
7169
7170         * expr.c (expand_expr_addr_expr): New.
7171         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
7172
7173 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
7174
7175         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
7176         (mips_fp_condition): New enum.
7177         (mips_fp_conditions): New array.
7178         (print_fcc_operand): Delete.
7179         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
7180         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
7181         (builtin_description): Add "cond" field.
7182         (DIRECT_BUILTIN): Initialize it.
7183         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
7184         into INSN and CODE.  Initialize the "cond" field.
7185         (CMP_BUILTINS): Update accordingly.
7186         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
7187         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
7188         mips_fp_condition as argument.  Make it the final operand of the
7189         comparison instruction.
7190         (mips_expand_builtin): Update accordingly.
7191         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
7192         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
7193         the gaps.
7194         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
7195         Don't use the 'Q' operand prefix; just print the operand normally.
7196         (mips_cabs_*, mips_c_*): Delete, replacing with...
7197         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
7198         patterns.  Split the 4s versions into 2 ps patterns after reload.
7199
7200 2004-08-30  Richard Henderson  <rth@redhat.com>
7201
7202         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
7203         assuming an ADDR_EXPR is non-null.
7204
7205 2004-08-30  Jason Merrill  <jason@redhat.com>
7206
7207         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
7208
7209 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
7210
7211         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
7212         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
7213         gcc_assert and gcc_unreachable instead of abort.
7214         * alloc-pool.c (abort, fancy_abort): Remove.
7215         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
7216         gcc_assert or gcc_unreachable.
7217         * attribs.c (init_attributes, decl_attributes): Likewise.
7218         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
7219         mark_bb_for_unlikely_executed_section,
7220         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
7221         fix_crossing_unconditional_branches):  Likewise.
7222         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
7223         bitmap_operation):  Likewise.
7224         * bt-load.c (insn_sets_btr_p, augment_live_range,
7225         move_btr_def):  Likewise.
7226         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
7227         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
7228         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
7229         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
7230         expand_builtin_memcmp, expand_builtin_args_info,
7231         std_gimplify_va_arg_expr, expand_builtin_unop,
7232         expand_builtin_fputs, expand_builtin_profile_func,
7233         expand_builtin_fork_or_exec, fold_builtin_bitop,
7234         fold_builtin_classify, fold_builtin_fputs): Likewise.
7235
7236 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
7237
7238         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
7239         * gcov.c (abort): Remove undef.
7240
7241         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
7242         (struct tree_binfo): Remove primary field.
7243
7244 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
7245
7246         * fixinc/Makefile.in (machname.h): Remove.
7247         (fixincl.x): Do not pass $@ to genfixes.
7248         * fixinc/genfixes: Remove code to produce machname.h.
7249         * fixinc/fixincl.sh: Move it here instead.
7250         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
7251         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
7252         return a bool indicating whether pz_mn_name_pat is NULL.
7253         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
7254         Declare extern C variables for the ENV_TABLE.
7255         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
7256         instead use the result of mn_get_regexps.
7257         * fixinc/fixtests.c: Likewise.
7258
7259 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
7260
7261         * configure.ac: Do not run fixincludes after stage1 during
7262         toplevel bootstrap.
7263         * configure: Regenerate.
7264
7265 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
7266
7267         * sched-deps.c (get_condition): Partially revert previous, by never
7268         trying to extract the condition from a condjump.
7269
7270 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
7271
7272         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
7273         (handle_visibility_attribute, c_determine_visibility): Likewise.
7274         * c-common.h (my_friendly_assert): Remove.
7275
7276 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
7277
7278         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
7279         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
7280         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
7281         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
7282         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
7283
7284 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
7285
7286         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
7287         in COMPONENT_REF nodes.
7288
7289 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7290
7291         PR c++/15378
7292         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
7293         global_dc->warning_as_error_requested.
7294         * diagnostic.c (diagnostic_initialize): Tidy.
7295         * diagnostic.h (diagnostic_context::x_data): Remove
7296         (diagnostic_context::issue_warnings_are_errors_message): Rename
7297         from warnings_are_errors_message.
7298         (diagnostic_context::warning_as_error_requested): New.
7299
7300 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
7301
7302         * sched-deps.c (get_condition): Fix breakage in previous patch.
7303
7304 2004-08-30  Paul Brook  <paul@codesourcery.com>
7305
7306         * doc/install.texi: Fix broken mpfr link.
7307
7308 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
7309
7310         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
7311         other FreeBSD platforms.
7312
7313 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
7314
7315         * arm.h (REVERSE_CONDITION): Define.
7316         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
7317
7318 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
7319
7320         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
7321         just the codes, call reversed_comparison_code ().
7322         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
7323         (not_reg_cond): Use reversed_comparison_code.
7324         (and_reg_cond): Likewise.
7325         * ifcvt.c (cond_exec_process_if_block): Likewise.
7326         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
7327
7328 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
7329
7330         * sched-deps.c (get_condition): Rewrite using jump support functions.
7331         Use reversed_comparison_code.
7332         (conditions_mutex_p): Use reversed_comparison_code.
7333
7334 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7335
7336         * config/mips/mips.c (override_options): Disable hot/cold partitioning
7337         for MIPS16.
7338
7339 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7340
7341         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
7342         (mips_function_type): Move to mips.c.
7343         * config/mips/mips.c (mips_builtin_type): New enum.
7344         (builtin_description): Replace code and ftype with builtin_type
7345         and function_type.
7346         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
7347         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
7348         (CODE_FOR_mips_abs_ps): Define.
7349         (mips_bdesc): Use new macros.
7350         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
7351         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
7352         (mips_expand_builtin_direct): New function.
7353         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
7354         builtin.  Replace boolean parameter with builtin_type.
7355         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
7356         (mips_expand_4s_compare_builtin): Delete, replacing with...
7357         (mips_expand_builtin_compare): ...this new function.
7358
7359 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
7360
7361         PR rtl-optimization/16590
7362         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
7363
7364 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
7365
7366         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
7367         * tree-ssa-propagate.c: Fix documentation.
7368
7369 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7370
7371         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
7372         (mov[sd]fcc): Likewise.
7373
7374 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7375
7376         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
7377
7378 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7379
7380         * config/mips/mips.md (divide_condition): New mode attribute.
7381         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
7382         (sqrt[sd]f3): Redefine using SCALARF.
7383         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
7384         patterns.
7385
7386 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7387
7388         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
7389         (loadx, storex, fmt, UNITMODE): New mode attributes.
7390         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
7391         (mul[sd]f3): Redefine using :SCALARF.
7392         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
7393         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
7394         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
7395         Check TARGET_FUSED_MADD for V2SF too.
7396         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
7397         were already named.
7398         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
7399         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
7400
7401 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7402
7403         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
7404         V2SF_type_node if it will be needed.
7405
7406 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7407
7408         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
7409         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
7410         (mips_prepare_builtin_target): New function.
7411         (mips_expand_builtin): Use them.  Update calls to subroutines.
7412         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
7413         cmp_choice with a boolean argument to select between movt and movf.
7414         Take the comparison's icode as an argument, not the function's fcode.
7415         (mips_expand_compare_builtin): New function.  Rename existing function
7416         to mips_expand_scalar_compare_builtin.
7417         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
7418         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
7419         comparison's icode as an argument, not the builtin's fcode.
7420
7421 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7422
7423         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
7424         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
7425         registers are false and -1 if all registers are true.
7426         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
7427         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
7428         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
7429         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
7430         (bc1any2t, bc1any2f): Likewise CCV2.
7431         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
7432
7433 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7434
7435         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
7436         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
7437         UNSPEC rather than an IF_THEN_ELSE.
7438         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
7439         mips_cond_move_tf_ps by name.
7440
7441 2004-08-29  Chao-ying Fu  <fu@mips.com>
7442             James E Wilson  <wilson@specifixinc.com>
7443
7444         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
7445         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
7446         * config/mips/mips-ps-3d.md: New file.
7447         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
7448         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7449         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
7450         (mips_output_move): Emit "mov.ps" for V2SFmode.
7451         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
7452         MODE_VECTOR_FLOAT.
7453         (override_options): Check if TARGET_MIPS3D and there was an explicit
7454         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
7455         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
7456         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
7457         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
7458         and allow CCV2 and CCV4 to occupy two and four CC registers.
7459         (print_fcc_operand): New function.
7460         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
7461         %Z to call print_fcc_operand.
7462         (mips_function_value): Handle MODE_VECTOR_FLOAT.
7463         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
7464         (mips_vector_mode_supported_p): New function.
7465         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
7466         (builtin_description): New struct.
7467         (mips_bdesc): New array of struct builtin_description.
7468         (mips_expand_builtin, mips_init_builtins,
7469         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
7470         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
7471         functions.
7472         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
7473         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
7474         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
7475         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
7476         "-mips3d", and "-mno-mips3d".
7477         (ASM_SPEC): Map -mips3d to -mips3d in gas.
7478         (EXTRA_CONSTRAINT_Y): New macro.
7479         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
7480         multi-letter constraint 'Y'.
7481         (CONSTRAINT_LEN): New macro.
7482         (enum mips_builtins): New for MIPS builtin functions.
7483         (enum mips_function_type): New for the types of MIPS builtin functions.
7484         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
7485         * config/mips/mips.md: New constants for paired single and MIPS-3D
7486         instructions.  Include the new mips-ps-3d.md file.
7487         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
7488         movv2sf_hardfloat_64bit): New named patterns.
7489         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
7490         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
7491         sdxc1_v2sf_di): New unnamed patterns.
7492         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
7493         const_vector support.
7494         (const_0_or_1_operand): New predicate.
7495         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
7496
7497 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
7498
7499         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
7500         (tree-ssa-propagate.o): New rule.
7501         (GTFILES): Add tree-ssa-propagate.c.
7502         * tree-flow.h (struct stmt_ann_d): Remove field
7503         in_ccp_worklist.
7504         * tree-ssa-propagate.c: New file.
7505         * tree-ssa-propagate.h: New file.
7506         * tree-ssa-ccp.c: Re-write to use the routines from
7507         tree-ssa-propagate.c.
7508
7509 2004-08-28  Andrew Pinski  <apinski@apple.com>
7510
7511         * tree-ssa-loop.c: Remove extra include of basic-block.h.
7512
7513 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
7514
7515         * c-common.h: Update comments about ObjC/ObjC++ entry points.
7516         (objc_is_reserved_word): New prototype.
7517         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
7518         separate section; these are call-backs.
7519         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
7520         ObjC/ObjC++ "@" keywords.
7521         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
7522         prototypes; they already live in c-common.h.
7523         * stub-objc.c: Update copyright notice.
7524         (objc_is_reserved_word): New stub.
7525
7526 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
7527
7528         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
7529         even when not checking.
7530
7531 2004-08-27  Jason Merrill  <jason@redhat.com>
7532
7533         PR c++/13684
7534         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
7535         (gimple_push_cleanup): Add eh_only parm.
7536         (gimplify_target_expr): Pass it.
7537         * c.opt (-fno-threadsafe-statics): New option.
7538         * c-opts.c (c_common_handle_option): Handle it.
7539         * c-common.h (flag_threadsafe_statics): Declare it.
7540         * c-common.c (flag_threadsafe_statics): Record it.
7541         * doc/invoke.texi: Document it.
7542         * tsystem.h (_GNU_SOURCE): Define.
7543         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
7544         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
7545         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
7546         (__gthread_recursive_mutex_init_function): New fn.
7547         (__gthread_recursive_mutex_lock): New fn.
7548         (__gthread_recursive_mutex_trylock): New fn.
7549         (__gthread_recursive_mutex_unlock): New fn.
7550         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
7551         * gthr-win32.h, gthr-vxworks.h: Likewise.
7552         * gthr.h: Document.
7553
7554 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
7555
7556         * config/rs6000/rs6000.c (rs6000_override_options): Increase
7557         maximum skip to 15.  Set function alignment, jump alignment, and
7558         loop alignment to 16 for processors that form dispatch groups.
7559         (rs6000_rtx_costs): outer_code is used.
7560
7561 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
7562
7563         * stor-layout.c (sizetype_set): Remove.
7564         (set_sizetype): Don't test or set it.
7565
7566         * tree.h (size_int_type): Remove.
7567         * fold-const.c: Do not #include gt-fold-const.h.
7568         (size_htab_hash, size_htab_eq): Remove.
7569         (size_int_kind): Use build_int_cst.
7570         (new_const, size_htab): Remove.
7571         (size_int_type): Remove.
7572         (round_up): Use build_int_cst.
7573         (round_down): Likewise. Remove spurious constant build.
7574
7575 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
7576
7577         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
7578         Add is_release variable, use it for --enable-werror and
7579         --enable-checking defaults.
7580         * system.h (gcc_assert, gcc_unreachable): New.
7581         * doc/install.texi (--enable-checking): Update.
7582         * configure, config.in: Rebuilt.
7583
7584 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
7585
7586         * rtl.h (read_rtx): Change prototype.
7587         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
7588         line number.  Return true on success.
7589         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
7590         callers accordingly.
7591
7592 2004-08-26  Richard Henderson  <rth@redhat.com>
7593
7594         * c-typeck.c (build_offsetof): Remove.
7595         * c-tree.h (build_offsetof): Remove.
7596         * c-common.c (fold_offsetof_1, fold_offsetof): New.
7597         * c-common.h (fold_offsetof): Declare.
7598         * c-parse.in (offsetof_base): New.
7599         (offsetof_member_designator): Use it.  Build references, not just
7600         a tree list.
7601         (primary): Use fold_offsetof, not build_offsetof.
7602
7603 2004-08-26  Richard Henderson  <rth@redhat.com>
7604
7605         * tree.c (staticp): Return the static object.
7606         * tree.h (staticp): Update decl.
7607         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
7608         * langhooks.c (lhd_staticp): Return NULL_TREE.
7609         * langhooks-def.h (lhd_staticp): Update decl.
7610         * c-common.c (c_staticp): Return the static object.
7611         * c-common.h (c_staticp): Update decl.
7612
7613 2004-08-26  Richard Henderson  <rth@redhat.com>
7614
7615         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
7616         modes.
7617
7618 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
7619
7620         PR c/13801
7621         * c-decl.c (struct c_binding): Add type and inner_comp fields.
7622         (bind): Set type and inner_comp fields.
7623         (pop_scope): Restore type of decl to the correct type from an
7624         outer scope.  Give error when popping file scope for incomplete
7625         arrays completed incompatibly with default initialization in an
7626         inner scope.
7627         (diagnose_mismatched_decls): Handle externs with initializers at
7628         block scope.
7629         (pushdecl): Set type of external declaration at block scope based
7630         only on the visible declarations.  Save type when changing the
7631         type of a declaration.  Merge an external declaration at block
7632         scope with a visible static declaration at file scope.
7633         (implicitly_declare): Give recycled old declaration the new type
7634         except for incompatible declarations of built-in functions, saving
7635         the old type.
7636
7637 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
7638
7639         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
7640
7641 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
7642
7643         * tree-alias-common.c (gate_pta): New function.
7644         (pass_build_pta): Use it.
7645         (pass_del_pta): Use it.
7646         (delete_alias_vars): Don't check flag_tree_points_to.
7647
7648 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
7649
7650         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
7651         TFmode as additional register mode cloberred by call.
7652
7653 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
7654
7655         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
7656         parallel pattern for library call returning DImode in
7657         mixed mode.
7658
7659 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
7660
7661         * config/rs6000/rs6000.c (function_arg): Generate parallel
7662         pattern for more split args.
7663
7664 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
7665
7666         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
7667         either gen_movdi_di_update or gen_movdi_si_update depending on
7668         target mode.
7669         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
7670         to generate two versions.
7671
7672 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
7673
7674         * Makefile.in (lambda-code.o): New.
7675         (lambda-trans.o): Ditto.
7676         (TREE_DATA_REF_H): Ditto.
7677         (LAMBDA_H): Ditto.
7678         (lambda-mat.o): Use LAMBDA_H.
7679         (tree-data-ref.o): Ditto.
7680         * lambda-code.c: New file.  Lambda code generation algorithm.
7681         * lambda-trans.c: Ditto. Lambda transformation matrix support.
7682         * lambda.h: Add lambda loop structures.
7683         Add lambda loopnest structures.
7684         Add lambda body vector structure.
7685         Add lambda linear expression structures.
7686         Add prototypes for functions in new files.
7687         * lambda-mat.c: Include tree.h
7688
7689 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
7690             Sebastian Pop  <pop@cri.ensmp.fr>
7691
7692         * tree-data-ref.h: Include lambda.h
7693         (free_dependence_relation): Declared here.
7694         (free_dependence_relations): Ditto.
7695         (free_data_refs): Ditto.
7696         * tree-data-ref.c (free_dependence_relation): New function.
7697         (free_dependence_relations): Ditto.
7698         (free_data_refs): Ditot.
7699         (analyze_all_data_dependences): Free datarefs and dependence_relations.
7700         (build_classic_dist_vector): Store in the dependence_relations the
7701         information. Each arc in the dependence_relations graph is labelled
7702         with the distance and direction vectors.
7703         (build_classic_dir_vector): Ditto.
7704         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
7705         Now computes again the whole dependence graph including read-read
7706         relations.
7707         (compute_data_dependences_for_loop): Now dependence_relations contains
7708         all the data, and thus it doesn't need to initialize the classic_dir
7709         and classic_dist vectors.
7710         (analyze_all_data_dependences): Adjusted for using the new interface of
7711         compute_data_dependences_for_loop.  Remove the statistics dump.
7712
7713 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
7714
7715         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
7716         (xtensa_expand_block_move): Update comment.
7717         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
7718
7719 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
7720
7721         PR target/13506
7722         * toplev.c (crash_signal): If we crashed while emitting
7723         a user asm, then die more gracefully.
7724
7725 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
7726
7727         PR target/17119.
7728         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
7729         checking for a valid constant, regardless of sign.
7730
7731 2004-08-25  Richard Henderson  <rth@redhat.com>
7732
7733         PR target/16974
7734         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
7735         if the constant satisfies add_operand.
7736
7737 2004-08-25  Richard Henderson  <rth@redhat.com>
7738
7739         PR debug/10695
7740         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
7741         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
7742         unwind info for >16-bit frames.
7743
7744 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
7745
7746         PR target/17171
7747         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
7748
7749 2004-08-25  Richard Henderson  <rth@redhat.com>
7750
7751         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
7752         (TARGET_CANNOT_FORCE_CONST_MEM): New.
7753
7754 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
7755
7756         * doc/tree-ssa.texi: Document new operand iterator.
7757
7758 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
7759
7760         PR target/16480
7761         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
7762         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
7763         as PLUS base regs.
7764
7765 2005-08-28  Paul Brook  <paul@codesourcery.com>
7766
7767         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
7768         -mfpu=vfp -march=armv5t
7769         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
7770
7771 2004-08-25  Richard Henderson  <rth@redhat.com>
7772
7773         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
7774         * target.h (struct gcc_target): Add scalar_mode_supported_p.
7775         * targhooks.c (default_scalar_mode_supported_p): New.
7776         * targhooks.h (default_scalar_mode_supported_p): Declare.
7777         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
7778
7779         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
7780         before attempting to create types.  Tidy.
7781         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
7782
7783         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
7784         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
7785
7786 2004-08-25  Richard Henderson  <rth@redhat.com>
7787
7788         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
7789         set REAL_MODE_FORMAT for TFmode.
7790
7791 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
7792
7793         * c-decl.c (grokparm): New function.
7794         * c-tree.h (grokparm): New prototype.
7795
7796 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
7797
7798         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
7799         iterator controlling structure.
7800         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
7801         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
7802         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
7803         iterator flags.
7804         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
7805         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
7806         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
7807         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
7808         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
7809         Empty operand pointers.
7810         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
7811         (op_iter_next_use): New.  Return next use_operand_p.
7812         (op_iter_next_def): New.  Return next def_operand_p.
7813         (op_iter_next_tree): New.  Return next operands as a tree.
7814         (op_iter_init): New.  Initialize an iterator structure.
7815         (op_iter_init_use): New.  Initialize structure and get the first use.
7816         (op_iter_init_def): New.  Initialize structure and get the first def.
7817         (op_iter_init_tree): New.  Initialize structure and get the first tree.
7818         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
7819         (op_iter_init_maydef): New.  Initialize structure and get the first
7820         V_MAY_DEF operands.
7821         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
7822         * tree-dfa.c (compute_immediate_uses_for_stmt,
7823         redirect_immediate_uses): Use new operand iterator.
7824         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
7825         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
7826         operands instead of using *_disappeared_p routines.
7827         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
7828         ssa_rewrite_stmt): Use new operand iterator.
7829         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
7830         rewrite_trees): Use new operand iterator.
7831         * tree-pretty-print.c (dump_vops): Use new operand iterator.
7832         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
7833         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
7834         dump_points_to_info): Use new operand iterator.
7835         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
7836         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
7837         operand iterator.
7838         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
7839         propagate_necessity): Use new operand iterator.
7840         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
7841         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
7842         a parameter instead of a stmt_ann_t.
7843         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
7844         build_tree_conflict_graph): Use new operand iterator.
7845         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
7846         rewrite_mem_refs): Use new operand iterator.
7847         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7848         check_loop_closed_ssa_use): Use new operand iterator.
7849         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
7850         * tree-ssanames.c (release_defs): Use new operand iterator.
7851         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
7852
7853 2004-08-25  Adam Nemet  <anemet@lnxw.com>
7854
7855         * tlink.c (initial_cwd): New variable.
7856         (tlink_init): Initialize it.
7857         (recompile_files): Use tlink_execute() instead of system().  Don't
7858         duplicate verbose output of collect_execute.  Restore initial_cwd.
7859         Update comment before the function.
7860
7861 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
7862
7863         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
7864         accept) a cast from one Objective-C pointer type to another.
7865
7866 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
7867
7868         * doc/install.texi: Document that libstdc++-v3 requires
7869         now automake 1.9.1.
7870
7871 2004-08-25  Caroline Tice  <ctice@apple.com>
7872
7873         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
7874         to comments at start of function.
7875         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
7876         comment.
7877         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7878         merge_blocks_move_predecessor_nojumps,
7879         merge_blocks_move_successor_nojumps, merge_blocks_move,
7880         try_crossjump_to_edge, try_crossjump_bb): Likewise.
7881         * cfglayout.c (fixup_reorder_chain): Likewise.
7882         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
7883         cfg_layout_can_merge_blocks_p):  Likewise.
7884         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
7885         * passes.c (rest_of_compilation): Update comments for calling
7886         optimization that partitions hot/cold basic blocks.
7887         * doc/invoke.texi:  Update documentation of
7888         freorder-blocks-and-partition flag.
7889
7890 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
7891
7892         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
7893         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
7894
7895 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
7896
7897         * config/mips/mips.md (any_shift): New code macro.
7898         (optab, insn): New code attributes.
7899         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
7900         Use the standard rather than internal patterns for the MIPS16
7901         double-shift optimization.
7902         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
7903         Redefine using :GPR and any_shift.
7904         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
7905         to cover all three shifts.
7906         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
7907         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
7908         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
7909
7910 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
7911
7912         * gimplify.c (lookup_tmp_var): Separate temporaries when not
7913         optimizing.
7914
7915 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7916
7917         PR libstdc++/17005 (fix for HP-UX 11.11)
7918         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
7919         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
7920         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
7921         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
7922         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
7923         (LINK_SPEC): Handle march=1.0 option.
7924         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
7925         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
7926         (SUBTARGET_OPTIONS): New define.
7927         (LINK_SPEC): Handle march=1.0 option.
7928         (STARTFILE_SPEC): New define.
7929         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
7930         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
7931         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
7932         (SUBTARGET_OPTIONS): New define.
7933         (LINK_SPEC): Handle march=1.0 option.
7934         (STARTFILE_SPEC): New define.
7935         * config/pa/pa.c (override_options): Add code to process -munix= option.
7936         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
7937         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
7938         defines.
7939         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
7940         (SUBTARGET_OPTIONS): Provide default define.
7941         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
7942         STANDARD_STARTFILE_PREFIX_2): New defines.
7943         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
7944         (ENDFILE_SPEC): Use %O.
7945         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
7946         Mention issue caused by changing namespace and runtime to UNIX 95/98.
7947         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
7948         Document -munix=std option.
7949
7950 2004-08-25  Steven Bosscher  <stevenb@suse.de>
7951
7952         * cse.c (cse_around_loop, cse_check_loop_start,
7953         cse_set_around_loop): Remove.
7954         (cse_basic_block): Remove the around_loop argument.
7955         (cse_end_of_basic_block): Remove the after_loop argument.
7956         (cse_main): Likewise.
7957         * rtl.h (cse_main): Update prototype.
7958         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
7959         rest_of_handle_gcse): Update cse_main calls.
7960
7961 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
7962
7963         * tree.h  (build_int_cst): New, sign extended constant.
7964         (build_int_cstu): New, zero extended constant.
7965         (build_int_cst_wide): Renamed from build_int_cst.
7966         * tree.c (build_int_cst, build_int_cstu): New.
7967         (build_int_cst_wide): Renamed from build_int_cst.
7968         (make_vector_type, build_common_tree_nodes,
7969         build_common_tree_nodes_2): Adjust build_int_cst calls.
7970         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
7971         expand_builtin_strpbrk, expand_builtin_fputs,
7972         build_string_literal, expand_builtin_printf,
7973         expand_builtin_sprintf, fold_builtin_classify_type,
7974         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
7975         fold_builtin_toascii, fold_builtin_isdigit,
7976         simplify_builtin_strstr, simplify_builtin_strpbrk,
7977         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
7978         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
7979         DEF_ATTR_INT): Likewise.
7980         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
7981         Likewise.
7982         * c-lex.c (interpret_integer, lex_charconst): Likewise.
7983         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
7984         * c-pretty-print.c (pp_c_integer_constant): Likewise.
7985         * c-typeck.c (really_start_incremental_init, push_init_level,
7986         set_nonincremental_init_from_string): Likewise.
7987         * calls.c (load_register_parameters): Likewise.
7988         convert.c (convert_to_pointer): Likewise.
7989         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
7990         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
7991         build_gcov_info): Likewise.
7992         * except.c (init_eh, assign_filter_values): Likewise.
7993         * expmed.c (store_fixed_bit_field, extract_bit_field,
7994         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
7995         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
7996         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
7997         * expr.c (convert_move, emit_group_load, emit_group_store,
7998         expand_assignment, store_constructor, store_field,
7999         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
8000         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
8001         invert_truthvalue, optimize_bit_field_compare,
8002         decode_field_reference, all_ones_mask_p, constant_boolean_node,
8003         fold_div_compare, fold, fold_read_from_constant_string,
8004         fold_negate_const, fold_abs_const, fold_not_const, round_up,
8005         round_down): Likewise.
8006         * function.c (assign_parm_setup_block): Likewise.
8007         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
8008         Likewise.
8009         * stor-layout.c (layout_type, initialize_sizetypes,
8010         set_min_and_max_values_for_integral_type): Likewise.
8011         * tree-chrec.c (chrec_fold_multiply_poly_poly,
8012         reset_evolution_in_loop): Likewise.
8013         * tree-chrec.h (build_polynomial_chrec): Likewise.
8014         * tree-complex.c (build_replicated_const): Likewise.
8015         * tree-eh.c (honor_protect_cleanup_actions,
8016         lower_try_finally_onedest, lower_try_finally_copy,
8017         lower_try_finally_switch): Likewise.
8018         * tree-mudflap.c (mf_build_string, mx_register_decls,
8019         mudflap_register_call, mudflap_enqueue_constant): Likewise.
8020         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
8021         * tree-pretty-print.c (dump_generic_node): Likewise.
8022         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
8023         Likewise.
8024         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
8025         * tree-ssa-loop-niter.c (number_of_iterations_cond,
8026         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
8027         Likewise.
8028         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
8029         canonicalize_loop_induction_variables): Likewise.
8030         * tree-vectorizer.c (vect_create_index_for_array_ref,
8031         vect_transform_loop_bound, vect_compute_data_ref_alignment):
8032         Likewise.
8033
8034         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
8035         alpha_gimplify_va_arg_1): Likewise.
8036         * config/arm/arm.c (arm_get_cookie_size): Likewise.
8037         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
8038         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
8039         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8040         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
8041         mips_gimplify_va_arg_expr): Likewise.
8042         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8043         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
8044         add_compiler_branch_island): Likewise.
8045         * config/s390/s390.c (s390_va_start): Likewise.
8046         * config/sh/sh.c (sh_va_start): Likewise.
8047         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8048         Likewise.
8049         * config/xtensa/xtensa.c (xtensa_va_start,
8050         xtensa_gimplify_va_arg_expr): Likewise.
8051
8052         * objc/objc-act.c (build_objc_string_object,
8053         build_objc_symtab_template, init_def_list, init_objc_symtab,
8054         init_module_descriptor, generate_static_references,
8055         build_selector_translation_table, get_proto_encoding,
8056         build_typed_selector_reference, build_selector_reference,
8057         build_next_objc_exception_stuff,
8058         build_method_prototype_list_template, generate_descriptor_table,
8059         generate_protocols, build_protocol_initializer,
8060         build_ivar_list_template, build_method_list_template,
8061         build_ivar_list_initializer, generate_ivars_list,
8062         generate_dispatch_table, generate_protocol_list,
8063         build_category_initializer, build_shared_structure_initializer,
8064         generate_shared_structures, handle_impent,
8065         generate_objc_image_info): Likewise.
8066
8067 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
8068
8069         * cfglayout.c (duplicate_insn_chain): Remove references to
8070         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
8071         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
8072         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
8073         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
8074         and NOTE_INSN_LOOP_CONT.
8075         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
8076         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
8077         and NOTE_INSN_LOOP_CONT.
8078         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
8079         check_dbra_loop, loop_dump_aux): Remove references to removed notes
8080         and fields.
8081         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
8082         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
8083         references to removed notes and fields.
8084         (subtract_reg_term, ujump_to_loop_cont): Remove.
8085
8086 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
8087
8088         * doc/install.texi: Document that libcpp does not require
8089         Automake any longer.  Document that Automake 1.9.1 should
8090         work everywhere.
8091
8092 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
8093
8094         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
8095         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
8096         DWARF_DEBUGGING_INFO from choice-of-definition chain;
8097         restructure using C89 features (#elif, #error).
8098         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
8099         * config/sh/sh.h: Remove references to DWARF_DEBUG.
8100         * doc/invoke.texi: Remove references to DWARF version 1;
8101         clarify why -gdwarf-2<n> doesn't work.
8102
8103 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
8104
8105         * basic-block.h (BB_SET_PARTITION): Clear old value first.
8106         * cfg.c (clear_bb_flags): Don't clear partition setting.
8107         * ifcvt.c (find_if_case_1): Remove ??? comment.
8108
8109 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
8110
8111         PR target/17052
8112         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
8113         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
8114         current_function_stdarg in place of sysv_varargs_p.
8115         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
8116         sysv_varargs_p.
8117
8118 2004-08-24  Richard Henderson  <rth@redhat.com>
8119
8120         PR target/16298
8121         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
8122         random codes within CONST.
8123
8124 2004-08-24  James E Wilson  <wilson@specifixinc.com>
8125
8126         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
8127         -freorder-blocks-and-partition.
8128
8129 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8130
8131         PR middle-end/17044
8132         * tree-ssa-threadupdate.c (redirection_data): Make static.
8133         (thread_block): Use ggc_alloc_cleared to allocate struct
8134         redirection_data.  Don't free elements in redirection_data.
8135
8136 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8137
8138         * config/mips/predicates.md (small_data_pattern): Match prefetches.
8139
8140 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8141
8142         PR tree-optimization/17016
8143         * tree-ssa-loop-niter.c (number_of_iterations_cond,
8144         number_of_iterations_exit): Use POINTER_TYPE_P instead
8145         of testing for POINTER_TYPE.
8146
8147 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8148
8149         * tree-ssa-loop-ivcanon.c: New file.
8150         * tree-ssa-loop-manip.c (create_iv): New function.
8151         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
8152         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
8153         * cfgloop.c (mark_single_exit_loops): New function.
8154         (verify_loop_structure): Verify single-exit loops.
8155         * cfgloop.h (struct loop): Add single_exit field.
8156         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
8157         (mark_single_exit_loops): Declare.
8158         (tree_num_loop_insns): Declare.
8159         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
8160         (duplicate_loop_to_header_edge): Use it.
8161         * common.opt (fivcanon): New flag.
8162         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
8163         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
8164         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
8165         (bsi_insert_on_edge_immediate): New function.
8166         * tree-flow.h (bsi_insert_on_edge_immediate,
8167         canonicalize_induction_variables, tree_unroll_loops_completely,
8168         create_iv): Declare.
8169         * tree-optimize.c (init_tree_optimization_passes): Add
8170         pass_iv_canon and pass_complete_unroll.
8171         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
8172         * tree-scalar-evolution.c (get_loop_exit_condition,
8173         get_exit_conditions_rec, number_of_iterations_in_loop,
8174         scev_initialize): Use single_exit information.
8175         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
8176         missing assumptions.
8177         (loop_niter_by_eval):  Return number of iterations as unsigned
8178         int.
8179         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
8180         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
8181         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
8182         New passes.
8183         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
8184         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
8185         the defining statement is ready.
8186         * tree-vectorizer.c (vect_create_iv_simple): Removed.
8187         (vect_create_index_for_array_ref, vect_transform_loop_bound):
8188         Use create_iv.
8189         (vect_transform_loop_bound): Use single_exit information.
8190         (vect_analyze_loop_form): Cleanup bogus tests.
8191         (vectorize_loops): Do not call flow_loop_scan.
8192         * tree.h (may_negate_without_overflow_p): Declare.
8193         * fold-const.c (may_negate_without_overflow_p): Split out from ...
8194         (negate_expr_p): ... this function.
8195         (tree_expr_nonzero_p): Handle overflowed constants correctly.
8196         * doc/invoke.texi (-fivcanon): Document.
8197         * doc/passes.texi: Document canonical induction variable creation.
8198
8199 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8200
8201         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
8202         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
8203         using the mode of the operand to decide between them.
8204         * config/mips/mips.md (MOVECC): New mode macro.
8205         (ccreg): New mode attribute.
8206         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
8207         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
8208         (mov[sd]icc): Redefine using :GPR.
8209
8210 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8211
8212         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
8213         (mips_prefetch_cookie): New function.
8214         * config/mips/mips.c (print_operand_address): Fix handling of
8215         ADDRESS_CONST_INT.
8216         (mips_emit_prefetch): Delete.
8217         (mips_prefetch_cookie): New function.
8218         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
8219         mode of QImode for the address_operand.  Use mips_prefetch_cookie
8220         to calculate the first "pref" operand.
8221         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
8222         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
8223
8224 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
8225
8226         * arm.md: Include predicates.md.
8227         * predicates.md: New file.
8228         * arm.c (s_register_operand, arm_hard_register_operand)
8229         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
8230         (arm_immediate_operand, arm_neg_immediate_operand)
8231         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
8232         (arm_add_operand, arm_addimm_operand, arm_not_operand)
8233         (offsettable_memory_operand, alignable_memory_operand)
8234         (arm_reload_memory_operand, arm_float_rhs_operand)
8235         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
8236         (index_operand, shiftable_operator, logical_binary_operator)
8237         (shift_operator, equality_operator, arm_comparison_operator)
8238         (minmax_operator, cc_register, dominant_cc_register)
8239         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
8240         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
8241         (const_shift_operand, load_multiple_operation)
8242         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
8243         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
8244         (cirrus_register_operand, cirrus_fp_register)
8245         (cirrus_shift_const): Delete, replaced with equivalents in
8246         predicates.md.
8247         (shift_op): Handle ROTATE.
8248         * arm-protos.h: Delete declarations for above.
8249         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
8250         * t-arm (MD_INCLUDES): Add predicates.md.
8251         (s-preds): Depends on MD_INCLUDES.
8252
8253 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8254
8255         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
8256         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
8257         patterns.  Redefine using :GPR.  Give the match_operator a mode.
8258         Use '%2' rather than '%z2' for operand 2.
8259
8260 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8261
8262         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
8263         attribute.
8264
8265 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8266
8267         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
8268         of internal patterns.
8269         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
8270         Redefine using :P.
8271         (tablejump): Use expand_binop to calculate address.  Adjust names
8272         of internal patterns.
8273         (tablejump[sd]i): Renamed from tablejump_internal[12].
8274         Redefine using :P.
8275         (tablejump_mips16[12]): Delete.
8276
8277 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8278
8279         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
8280         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
8281         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
8282         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
8283         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
8284
8285 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8286
8287         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
8288         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
8289         using :GPR.
8290         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
8291         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
8292         (*branch_equality[sd]i_inverted): Likewise
8293         branch_equality{,_di}_inverted.
8294         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
8295         Redefine using :GPR.
8296
8297 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
8298
8299         * rtl.def: Reorganize, placing all codes used only in machine
8300         descriptions at the end.
8301
8302         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
8303         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
8304         rtx_name, rtx_format arrays by direct reference to rtl.def,
8305         first undefining GENERATOR_FILE.  Define enum insn_note and
8306         note_insn_name array by direct reference to insn-notes.def.
8307         (adjust_field_rtx_def): Remove local definition of rtx_name.
8308         Use symbolic names for insn notes.
8309         * Makefile.in (gengtype.o): Update dependencies.
8310
8311 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
8312
8313         * basic-block.h (struct basic_block_def): Reorder fields to
8314         eliminate interior padding.  Remove 'partition' field.
8315         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
8316         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
8317         (BB_COPY_PARTITION): New macros.
8318         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
8319         Replace all references to the 'partition' field of a basic
8320         block with new macros.
8321
8322         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
8323         * final.c (final_scan_insn): Don't handle it.
8324         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
8325         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
8326         * sched-rgn.c (sched_is_disabled_for_current_region_p):
8327         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
8328
8329 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
8330
8331         * c-decl.c (c_init_decl_processing): Adjust
8332         build_common_tree_nodes call.
8333         * expmed.c (const_mult_add_overflow_p): Use
8334         build_distinct_type_copy.
8335         * stor-layout.c (early_type_list): Remove.
8336         (layout_type): Don't append to early_type_list.
8337         (initialize_sizetypes): Add signed_p argument.
8338         (set_sizetype): Overwrite the stub type nodes directly.
8339         * tree.c (copy_node_stat): Clear a type's value cache here ...
8340         (build_distinct_type): ... not here.
8341         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
8342         * tree.h (initialize_sizetypes): Add signed_p argument.
8343         (build_common_tree_nodes): Likewise.
8344
8345         * objc/objc-act.c (get_static_reference): Use
8346         build_variant_type_copy.
8347         (get_protocol_reference): Likewise.
8348         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
8349
8350 2004-08-24  Richard Henderson  <rth@redhat.com>
8351             Andrew Pinski  <apinski@apple.com>
8352
8353         * gimplify.c (gimplify_array_ref_to_plus): Delete.
8354         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
8355         for ARRAY_REF.
8356
8357         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
8358         ARRAY_REF also to get to the STRING_CST.
8359
8360 2004-08-24  Paul Brook  <paul@codesourcery.com>
8361
8362         * config/arm/arm.c (arm_override_options): Update error message.
8363         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
8364         TARGET_HARD_FLOAT_ABI.
8365         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
8366         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
8367
8368 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8369
8370         PR target/17093
8371         * config/m32r.md (movsi_sda): Add SI mode specification to
8372         UNSPEC.
8373
8374 2004-08-24  Nick Clifton  <nickc@redhat.com>
8375
8376         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
8377         of seth_add3_operand.
8378
8379 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
8380
8381         * Makefile.in (PROTO_OBJS): Add errors.o.
8382         * protoize.c (fancy_abort): Remove.
8383         * mips-tfile.c (fancy_abort): Add parameters.
8384
8385 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
8386
8387         * doc/trouble.texi (C++ misunderstandings): Fix example code.
8388
8389 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
8390
8391         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
8392         (host-default.o): Add dependency on HOOKS_H.
8393         * config/x-linux: Likewise.
8394         * config/x-solaris: Likewise.
8395         * config/i386/x-mingw32: Likewise.
8396         * config/rs6000/x-darwin: Likewise.
8397
8398 2004-08-23  James E Wilson  <wilson@specifixinc.com>
8399
8400         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
8401         DEF_REG_NOTE.
8402
8403 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
8404
8405         PR c/14492
8406         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
8407
8408 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
8409
8410         * cfg.c (check_bb_profile): Fix typos.
8411         * function.c (assign_parm_is_stack_parm): Likewise.
8412         * tree-nested.c: Likewise.
8413
8414 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
8415
8416         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
8417         Remove TYPECODE.
8418         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
8419
8420 2004-08-23  Eric Christopher  <echristo@redhat.com>
8421
8422         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
8423         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
8424         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
8425         * target.h: Ditto.
8426         * hooks.h: Include machmode.h.
8427         (hook_bool_mode_false): Declare.
8428         * hooks.c (hook_bool_mode_false): Define.
8429         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
8430         * stor-layout.c (layout_type): Ditto.
8431         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
8432         Define to target macro.
8433         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
8434         * config/arm/arm.c: Ditto. Use.
8435         * config/arm/arm.h: Ditto.
8436         * config/arm/arm-protos.h: Ditto.
8437         * config/i386/i386.c: Ditto.
8438         * config/i386/i386.h: Ditto.
8439         * config/rs6000/rs6000.c: Ditto.
8440         * config/rs6000/rs6000.h: Ditto.
8441         * config/sh/sh.c: Ditto.
8442         * config/sh/sh.h: Ditto.
8443         * config/sh/sh-protos.h: Ditto.
8444         * config/sh/sh.md: Use.
8445         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
8446         to TARGET_VECTOR_MODE_SUPPORTED_P.
8447
8448 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
8449
8450         * Makefile.in (BUILD_ERRORS): Set to build-errors.
8451         (errors.o): New target for host.
8452         (build-errors.o): New target for build.
8453         (genobjs): Replace errors.o with build-errors.
8454         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
8455         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
8456         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
8457         (fix-header.o): Add errors.h
8458         * collect2.c (fancy_abort): Add parameters.
8459         * collect2.h (fancy_abort): Don't declare.
8460         * errors.h (fancy_abort): Don't declare.
8461         * errors.c: Include either bconfig.h or config.h.
8462         (fancy_abort): Trim filename.
8463         * fix-header.c (v_fatal, fatal): Remove.
8464         (progname): Remove definition.
8465         (main): Set progname here.
8466         * gcc.c (fancy_abort): Add parameters.
8467         * gcc.h (fancy_abort): Remove declaration.
8468         * gcov.c (fancy_abort): Remove.
8469         * rtl.h (fancy_abort): Don't declare.
8470         (abort): Don't define.
8471         * tree.h (fancy_abort): Don't declare.
8472         (abort): Don't define.
8473         * system.h (fancy_abort): Declare.
8474         (abort): Define to fancy_abort.
8475         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
8476
8477         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
8478         (usize_type, ubitsizetype): Remove.
8479         * stor-layout.c (set_sizetype): Don't initialize usizetype,
8480         ubitsizetype.
8481         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
8482
8483         * tree.h (build_distinct_type_copy): New.
8484         (build_type_copy): ... here.  Rename to ...
8485         (build_variant_type_copy): ... here.
8486         * tree.c (build_qualified_type): Rename build_type_copy call.
8487         (build_distinct_type_copy): New, broken out of ...
8488         (build_type_copy): ... here.  Rename to ...
8489         (build_variant_type_copy): ... here.  Use
8490         build_distinct_type_copy.
8491         (build_common_tree_nodes_2): Rename build_type_copy call.
8492         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
8493         call.
8494         (handle_packed_attribute, handle_unused_attribute,
8495         handle_transparanet_union_attribute, handle_aligned_attribute,
8496         handle_deprecated_attribute): Likewise.
8497         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
8498         Likewise.
8499         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
8500         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
8501         build_distinct_type_copy.
8502
8503 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8504
8505         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
8506         attribute.
8507
8508 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8509
8510         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
8511         loads and stores.
8512         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
8513         formerly unnamed patterns.  Redefine using :P for the address.  Remove
8514         explicit length attributes.
8515
8516 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8517
8518         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
8519         New functions.
8520         (single_reachable_address): Use them.
8521         (schedule_sm): Add dump.
8522         (is_call_clobbered_ref): New function.
8523         (determine_lsm_reg): Check whether the reference is call clobbered.
8524         Only work for gimple_reg_type values.
8525
8526 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8527
8528         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
8529         $31 store insns.  Redefine using :GPR.
8530
8531 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8532
8533         * config/mips/mips.md (P): New mode macro.
8534         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
8535         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
8536         Add mode attributes.
8537
8538 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8539
8540         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
8541         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
8542         later constants to cover the gap.
8543         (load, store): New mode attributes.
8544         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
8545         Use new unspec constants.
8546
8547 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8548
8549         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
8550         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
8551         to use register_operand rather than uns_arith_operand as the predicate
8552         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
8553         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
8554         Redefine using :GPR.  Make same predicate change here.  Extend the
8555         commutativity of operands 1 and 2 from the SImode version to the
8556         DImode one.
8557         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
8558         but with no predicate changes.
8559         (*nor[sd]i3): Redefine using :GPR.
8560
8561 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8562
8563         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
8564         noreturn functions.
8565
8566 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8567
8568         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
8569         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
8570         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
8571         rather than "%z2" (with a fake const0_rtx for operand 2).
8572         (ffs[sd]i2): Redefine using :GPR.
8573         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
8574
8575 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8576
8577         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
8578
8579 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8580
8581         * config/mips/mips.md (any_extend): New code macro.
8582         (u, su): New code attributes.
8583         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
8584         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
8585         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
8586         (*{s,u}mul_acc_di): Redefine using any_extend.
8587         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
8588         to reflect real insn names.
8589         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
8590         with an any_extend template.
8591         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
8592         Add '*' to name.
8593
8594 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8595
8596         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
8597         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
8598         (mul[sd]i3_r4000): Redefine using :GPR.
8599         (mulsi3_mult3): Don't check TARGET_MAD separately.
8600         (muldi3_mult3): Moved after mulsi_mult3.
8601
8602 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8603
8604         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
8605         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
8606         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
8607         (TARGET_GAS, TARGET_MIPS_AS): Delete.
8608         (TARGET_GPWORD): Define to true for n32 on IRIX.
8609         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
8610         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
8611         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
8612         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
8613         (MDEBUG_ASM_SPEC): Delete, folding into...
8614         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
8615         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
8616         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
8617         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
8618         to define asm_abi_default_spec.
8619         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
8620         (TARGET_ASM_SELECT_SECTION): Delete.
8621         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
8622         for non-mips16 code, removing previous workaround for SGI assemblers.
8623         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
8624         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
8625         (override_options): Remove !TARGET_GAS and !have_named_sections code.
8626         (print_operand): Fold TARGET_GAS conditionals into asm strings.
8627         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
8628         ASM_STABS_OP and ASM_STABN_OP.
8629         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
8630         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
8631         (mips_output_function_prologue): Remove !TARGET_GAS code.
8632         (mips_select_rtx_section): Remove !have_named_sections code.
8633         (mips_select_section): Delete.
8634         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
8635         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
8636         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
8637         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
8638         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
8639         * config/mips/windiss.h (ASM_SPEC): Likewise.
8640
8641 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8642
8643         * read-rtl.c (map_value, mapping, macro_group): New structures.
8644         (BELLWETHER_CODE): New macro.
8645         (modes, codes, bellwether_codes): New variables.
8646         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
8647         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
8648         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
8649         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
8650         (add_map_value, initialize_macros): New functions.
8651         (def_hash, def_hash_eq_p): Generalize to anything that points to,
8652         or starts with, a char * field.
8653         (find_macro, read_mapping, check_code_macro): New functions.
8654         (read_rtx_1): New, split out from read_rtx.  Handle the new
8655         define_{mode,code}_{macro,attr} constructs.  Use find_macro
8656         to parse the name of a code or mode.  Use BELLWETHER_CODE to
8657         extract the format and to choose a suitable code for rtx_alloc.
8658         Modify recursive invocations to use read_rtx_1.
8659         (read_rtx): Call initialize_macros.  Apply code and mode macros
8660         to the rtx returned by read_rtx_1.  Cache everything after the
8661         first macro expansion for subsequent read_rtx calls.
8662         * doc/md.texi: Document new .md constructs.
8663         * config/mips/mips.md (GPR): New mode macro.
8664         (d, si8_di5): New mode attributes.
8665         (any_cond): New code macro.
8666         (add[sd]i3): Redefine using :GPR.
8667         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
8668         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
8669         previously unnamed MIPS16 patterns.
8670         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
8671         lines.  Don't match (plus (const_int 0) ...).
8672         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
8673         Use a define_split to generate the addition.
8674         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
8675         (subsi3_internal): Delete.
8676         (*subsi3_extended): Renamed from subsi3_internal_2.
8677         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
8678         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
8679         using an any_cond template.
8680
8681 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8682
8683         * read-rtl.c (read_rtx): Tidy use of format_ptr.
8684
8685 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8686
8687         * read-rtl.c (string_obstack): New file-scope variable.
8688         (read_string, read_quoted_string, read_braced_string)
8689         (read_escape): Remove obstack parameter and use string_obstack instead.
8690         (read_rtx): Remove function-local rtl_obstack and initialize
8691         string_obstack instead.  Update call to read_string.
8692
8693 2004-08-22  Andrew Pinski  <apinski@apple.com>
8694
8695         PR c/15262
8696         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
8697         expression is not constant.
8698         (c_finish_return): Do not go through INDIRECT_REF when looking
8699         for the inner expression of an ADDR_EXPR for warning about.
8700
8701 2004-08-22  Richard Henderson  <rth@redhat.com>
8702
8703         PR 17075
8704         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
8705         create new blocks and fall through.
8706         (expand_gimple_basic_block): Update to match.
8707
8708 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
8709
8710         * reload.c (find_reloads_address): Make return value tri-state.
8711         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
8712         (find_reloads): Assume that reloaded addresses match 'o' or
8713         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
8714         returned 1 (not -1).  Omit optional reloads for address operands
8715         only if find_reloads_address returned 1 (not -1).
8716
8717         * config/s390/s390.c (legitimize_reload_address): New function.
8718         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
8719         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
8720         legitimize_reload_address.
8721
8722 2004-08-22  Richard Hendersion  <rth@redhat.com>
8723
8724         * tree.h (SAVE_EXPR_RESOLVED_P): New.
8725         * gimplify.c (gimplify_save_expr): Use it.
8726         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
8727         on the temporary variable.
8728
8729 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
8730
8731         * fold-const.c (rtl_expr_nonnegative_p): Delete.
8732         * tree.h (rtl_expr_nonnegative_p): Remove.
8733
8734 2004-08-22  Steven Bosscher  <stevenb@suse.de>
8735
8736         * config/i386/ppro.md (ppro_complex_insn): Add missing check
8737         for cpu==pentiumpro.
8738
8739         * combine.c (struct reg_stat): Fix comment typo.
8740
8741 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
8742
8743         * c-tree.h (c_sizeof_nowarn): Remove.
8744
8745 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
8746
8747         * c-decl.c (set_array_declarator_type): Rename to
8748         set_array_declarator_inner.
8749         (build_c_parm, build_attrs_declarator, build_function_declarator):
8750         New functions.
8751         (make_pointer_declarator): Call build_attrs_declarator.
8752         * c-tree.h (set_array_declarator_type): Rename to
8753         set_array_declarator_inner.
8754         (build_c_parm, build_attrs_declarator, build_function_declarator):
8755         New prototypes.
8756         * c-parse.in (after_type_declarator,
8757         parm_declarator_starttypename, parm_declarator_nostarttypename,
8758         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
8759         firstparm): Use these functions
8760
8761 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
8762
8763         * c-decl.c (build_array_declarator, set_array_declarator_type,
8764         start_decl, grokdeclarator, grokparms): Change boolean parameters
8765         to type bool.
8766         * c-tree.h (build_array_declarator, set_array_declarator_type,
8767         start_decl): Update prototypes.
8768         * c-decl.c, c-parse.in: All callers changed.
8769
8770 2004-08-21  Mike Stump  <mrs@apple.com>
8771
8772         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
8773         (darwin_fix_and_continue): Likewise.
8774         (darwin_fix_and_continue_switch): Likewise.
8775         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
8776         (darwin_fix_and_continue): Likewise.
8777         (darwin_fix_and_continue_switch): Likewise.
8778
8779 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
8780
8781         PR  c++/16030
8782         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
8783         Remove, merging into ...
8784         (gen_stdcall_or_fastcall_suffix): New function, returning tree
8785         rather than const char*, and accepting additional parameter.
8786         Don't add suffix to '*'-prefixed symbols or variadic functions.
8787         (i386_pe_encode_section_info): Adjust for call to new function.
8788         Call change_decl_assembler_name.
8789
8790 2004-08-20  Mike Stump  <mrs@apple.com>
8791
8792         * config/darwin.c (machopic_indirect_data_reference): Mark
8793         stubs as defined.
8794         * config/386/386.c (darwin_local_data_pic): Add.
8795         (legitimate_constant_p): Reorder so that PLUS handling runs
8796         before darwin_local_data_pic to match the ordering in
8797         legitimate_pic_address_disp_p and so that MINUS runs after
8798         darwin_local_data_pic as otherwise the darwin_local_data_pic
8799         logic can be skipped, which would be very bad.
8800         (legitimate_pic_address_disp_p): Move from from here to
8801         darwin_local_data_pic so it can be reused.
8802
8803 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
8804
8805         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
8806         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
8807         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
8808         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
8809         (RS6000_ABI_NAME): Define as "linux".
8810         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
8811         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
8812         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
8813         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
8814         * config/rs6000/rs6000.c (dot_symbols): New global var.
8815         (rs6000_output_function_entry): New function, modified for
8816         !DOT_SYMBOLS..
8817         (print_operand <case 'z'>): ..extracted from here.
8818         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
8819         (rs6000_output_function_epilogue): Likewise.
8820         (rs6000_elf_declare_function_name): Likewise.
8821         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
8822         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
8823         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
8824         * configure: Regenerate.
8825         * config.in: Regenerate.
8826
8827 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
8828
8829         * reload.c (find_reloads_address): Fix thinko in previous change.
8830
8831         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
8832         a CONST_INT.
8833
8834 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
8835
8836         PR rtl-optimization/17099
8837         * combine.c (force_to_mode): Check if inner_mask has any bits set
8838         outside of GET_MODE (x) instead of op_mode.
8839
8840 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
8841
8842         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
8843         fragment.
8844         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
8845         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
8846         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
8847         architecture.
8848         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
8849         configurations.
8850         * config/arm/t-symbian: New file.
8851
8852 2004-08-20  Andrew Pinski  <apinski@apple.com>
8853
8854         * regrename.c (kill_value_regno): ANSIfy.
8855
8856 2004-08-20  Dale Johannesen  <dalej@apple.com>
8857
8858         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
8859
8860 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
8861
8862         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
8863         (kill_value_regno): New function, derived from kill_value.
8864         (kill_value): Update.
8865         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
8866
8867 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
8868
8869         Fix PR tree-optimization/17111
8870         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
8871         of non-value_handles.
8872         (bitmap_set_contains): All constants are in every set.
8873
8874 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
8875
8876         * fold-const.c (round_up, round_down): Use build_int_cst.
8877         Optimize common case.
8878
8879 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
8880             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8881
8882         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
8883         one_only_data_section): Rename to som_readonly_data_section,
8884         som_one_only_readonly_data_section and som_one_only_data_section.
8885         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
8886         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
8887         conditional defines.
8888         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
8889         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
8890         string values.
8891         (pa_select_section): Use renamed section functions.
8892         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
8893         SOM_READONLY_DATA_SECTION_FUNCTION,
8894         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
8895         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
8896         Define here ...
8897         * config/pa/som.h: ... not here.
8898         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
8899         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
8900         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
8901         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
8902         (READONLY_DATA_SECTION): Use som_readonly_data_section.
8903
8904 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
8905
8906         * fold-const.c (int_const_binop): Don't generate non-overflowing
8907         size-types specially.
8908         (fold_convert_const): Likewise.
8909
8910         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
8911         clear cache on copied sizetype.
8912
8913 2004-08-20  Ben Elliston  <bje@au.ibm.com>
8914
8915         * configure.ac: Don't escape apostrophe in --enable-coverage help.
8916         * configure: Regenerate.
8917
8918 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
8919
8920         PR 5620
8921         * gcc.c (struct stat input_stat): Don't define if
8922         HOST_LACKS_INODE_NUMBERS
8923         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
8924         than stat to determine if temp file is same as input file.
8925         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
8926         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
8927
8928 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
8929
8930         * configure.ac (mips*-*-*): Print an error if not using GAS.
8931         * configure: Regenerated.
8932         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
8933         comments about buggy MIPSpro assemblers.
8934         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
8935         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
8936         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
8937         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
8938         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
8939         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
8940         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
8941         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
8942         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
8943         of more general IRIX 6 definitions.
8944         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
8945         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
8946         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
8947         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
8948         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
8949         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
8950         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
8951         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
8952         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
8953         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
8954         (LINK_SPEC): Move most of definition to iris.h.
8955         (SUBTARGET_LINK_SPEC): New macro.
8956         (IRIX_STARTFILE_SPEC): Fold into...
8957         (STARTFILE_SPEC): ...here.
8958         (IRIX_ENDFILE_SPEC): Fold into...
8959         (ENDFILE_SPEC): ...here.
8960         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
8961         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
8962         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
8963         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
8964         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
8965         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
8966         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
8967         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
8968         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
8969         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
8970         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
8971         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
8972         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
8973         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
8974         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
8975         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
8976         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
8977         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
8978         (TARGET_IRIX6): Define to 1.
8979         (DRIVER_SELF_SPECS): Define.
8980         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
8981         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
8982         (SUBTARGET_LINK_SPEC): New macro.
8983         (IRIX_STARTFILE_SPEC): Fold into...
8984         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
8985         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
8986         (LIB_SPEC, LIBGCC_SPEC): Use them.
8987         (LIB_SPEC): Remove !mabi=* case.
8988         (IRIX_ENDFILE_SPEC): Fold into...
8989         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
8990         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
8991         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
8992         (TARGET_IRIX6): New macro.
8993         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
8994         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
8995         (LABEL_AFTER_LOC): Delete.
8996         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
8997         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
8998         (mips_build_builtin_va_list): Check TARGET_IRIX6.
8999         (override_options): Remove TARGET_SGI_O32_AS-related code.
9000         (irix_output_external_libcall): Make static.
9001         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
9002         LABEL_AFTER_LOC.
9003         (mips_file_start): Tidy guard for ABI sections.  Remove use of
9004         ABICALLS_ASM_OP; use .abicalls instead.
9005         (mips_output_aligned_decl_common, mips_declare_object_name)
9006         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
9007         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
9008         .globl foo .text directives.
9009         (irix_asm_named_section_1, irix_asm_named_section)
9010         (irix_section_align_entry, irix_section_align_htab)
9011         (irix_orig_asm_out_file, irix_section_align_entry_eq)
9012         (irix_section_align_entry_hash, irix_asm_output_align)
9013         (irix_file_start, irix_section_align_1, copy_file_data)
9014         (irix_file_end, irix_section_type_flags): Delete.
9015         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
9016         Use standard section syntax.  Remove protective "jr $31".
9017         (__gcc_fini): Likewise .gcc_fini.
9018         * config/mips/irix-crtn.asm: Adjust sections accordingly.
9019         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
9020         iris5gas.h.
9021         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
9022         from t-irix-gld.
9023         (EXTRA_MULTILIB_PARTS): Define.
9024         * config/mips/t-iris6: Remove bogus comment.
9025         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
9026         * config/mips/iris5gas.h, config/mips/iris5gld.h,
9027         config/mips/iris6gas.h, config/mips/iris6gld.h,
9028         config/mips/t-iris5-as, config/mips/t-iris5-gas
9029         config/mips/t-irix-gld: Delete.
9030         * config/mips/iris.h: New file.
9031         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
9032
9033 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
9034
9035         * postreload.c (reload_cse_move2add): Allow any condjump, but check
9036         that the implicit set isn't clobbered in the jump insn.
9037
9038 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
9039
9040         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
9041         * optabs.c (init_optabs): Don't check it.
9042         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
9043         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
9044
9045 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
9046
9047         * config/s390/s390.md (s390_warn_framesize_string)
9048         (s390_warn_dynamic_string, s390_stack_size_string)
9049         (s390_stack_guard_string): New global string variables.
9050         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
9051         (s390_stack_guard): New global variables.
9052         (override_options): Added checks for the new options.
9053         (s390_emit_prologue): Emit stack check and trap code and perform
9054         compile time stack size checking.
9055
9056         * config/s390/s390.h (TARGET_OPTIONS): Added new options
9057         "warn-framesize", "warn-dynamicstack", "stack-size" and
9058         "stack-guard".
9059
9060         * doc/invoke.texi: Added documentation for the new options.
9061
9062 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
9063
9064         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
9065         to eliminate warning.
9066         (linear_search_fdes): Declare p as unsigned.
9067         (binary_search_mixed_encoding_fdes): Likewise.
9068         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
9069         to eliminate warning.
9070         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
9071         type cast.
9072
9073 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
9074
9075         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
9076         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
9077         instead of one.  Check for strictly legitimate address.
9078         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
9079         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
9080
9081 2004-08-19  Eric Christopher  <echristo@redhat.com>
9082
9083         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
9084         * langhooks.h (unsave_expr_now): Ditto.
9085         * tree.h (unsave_expr_1): Remove prototype.
9086         (lhd_unsave_expr_now): Rename to unsave_expr_now.
9087         * tree-inline.c (unsave_expr_1): Move here
9088         from tree.c. Make static.
9089         (unsave_expr_now): Rename from lhd_unsave_expr_now.
9090         * tree-sra.c: Fix up for rename.
9091         * tree-ssa-copy.c: Ditto.
9092         * tree-eh.c: Ditto.
9093         * tree.c (unsave_expr_1): Move to tree-inline.c.
9094
9095 2004-08-19  Caroline Tice  <ctice@apple.com>
9096
9097         * config/i386/cygming.h (switch_to_section):  Fix typo (change
9098         in_unlikely_text_section to in_unlikely_executed_text).
9099
9100 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
9101
9102         * vec.h (VEC_lower_bound): New macro.
9103
9104 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
9105
9106         PR target/16446
9107         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
9108         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
9109         treat each ABI separately.  Deal with n32/n64 complex float arguments.
9110         (function_arg): Add associated complex handling here.
9111
9112 2004-08-19  Richard Henderson  <rth@redhat.com>
9113
9114         * config/arm/arm.c (arm_gen_load_multiple): Use
9115         adjust_automodify_address.  Take base memory and offset instead
9116         of unchanging/struct/scalar bits.
9117         (arm_gen_store_multiple): Likewise.
9118         (arm_gen_movmemqi): Use adjust_automodify_address.
9119         * config/arm/arm-protos.h: Update decls.
9120         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
9121         (store_multiple): Similarly.
9122
9123 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
9124
9125         * regclass.c (globalize_reg): Update call_really_used_regs.
9126
9127 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
9128
9129         * doc/invoke.texi (integer-share-limit): Document.
9130
9131         * tree.h (TYPE_CACHED_VALUES_P): New.
9132         (TYPE_CACHED_VALUES): New.
9133         (TYPE_ORIG_SIZE_TYPE): Adjust.
9134         * tree.def (INTEGER_CST): Update documentation.
9135         * tree.c: Inlcude params.h.
9136         (build_int_cst): Cache small values.
9137         (build_type_copy): Do not copy the value cache.
9138         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
9139         unneeded zeroing.
9140         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
9141         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
9142         cache.
9143         * fold-const.c (force_fit_type): Copy value when setting
9144         overflows.
9145         (int_const_binop): Likewise.
9146         * stor-layout.c: Include params.h
9147         (set_sizetype): Create values cache.
9148         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
9149         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
9150         * params.h (INTEGER_SHARE_LIMIT): New.
9151         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
9152
9153 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
9154
9155         * gimplify.c (gimplify_minimax_expr): Remove.
9156         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
9157
9158 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
9159
9160         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
9161         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
9162
9163 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
9164
9165         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
9166
9167 2004-08-18  Andrew Pinski  <apinski@apple.com>
9168
9169         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
9170
9171 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
9172
9173         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
9174         (__aeabi_ul2f): Likewise.
9175
9176 2004-08-18  Richard Henderson  <rth@redhat.com>
9177
9178         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
9179         move to rtl completely.
9180         (struct meminsnbuf, xtensa_emit_block_move): Remove.
9181         (xtensa_find_mode_for_size): Remove.
9182         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
9183         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
9184
9185 2004-08-18  Richard Henderson  <rth@redhat.com>
9186
9187         * config/mcore/mcore.c (mode_from_align): Remove DImode.
9188         (block_move_sequence): Rewrite to use adjust_address.
9189         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
9190         Return boolean indicating success/failure.
9191         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
9192         * config/mcore/mcore.md (movmemsi): Update to match.
9193
9194 2004-08-18  Mike Stump  <mrs@apple.com>
9195
9196         * doc/invoke.texi (-mfix-and-continue): Add support for
9197         fast turn around debugging.
9198         (-ffix-and-continue): Likewise.
9199         (-mindirect-data): Likewise.
9200         (-findirect-data): Likewise.
9201         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
9202         (indirect_data): Likewise.
9203         (machopic_data_defined_p): Likewise.
9204         (machopic_output_indirection): Likewise.
9205         (darwin_encode_section_info): Likewise.
9206         (darwin_fix_and_continue): Likewise.
9207         (darwin_fix_and_continue_switch): Likewise.
9208         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
9209         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
9210         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
9211         (SUBTARGET_OPTIONS): Likewise.
9212         (darwin_fix_and_continue): Likewise.
9213         (darwin_fix_and_continue_switch): Likewise.
9214         (TARGET_FIX_AND_CONTINUE): Likewise.
9215         * config/rs6000.c (rs6000_emit_prologue): Likewise.
9216
9217 2004-08-19  Steven Bosscher  <stevenb@suse.de>
9218
9219         * basic-block.h (struct edge_def): Remove crossing_edge.
9220         (EDGE_CROSSING): New define.
9221         (EDGE_ALL_FLAGS): Update.
9222         * bb-reorder.c (find_traces_1_round, better_edge_p,
9223         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
9224         find_jump_block, fix_crossing_conditional_branches,
9225         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
9226         Replace all occurences of crossing_edge with an edge flag check
9227         or set/reset.
9228         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
9229         try_crossjump_bb): Likewise.
9230         * cfglayout.c (fixup_reorder_chain): Likewise.
9231         * cfgrtl.c (force_nonfallthru_and_redirect,
9232         commit_one_edge_insertion): Likewise.
9233
9234         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
9235         * tree-flow.h (compute_dominance_frontiers): Move prototype...
9236         * basic-block.h:  ...here.
9237         * tree-cfg.c (compute_dominance_frontiers_1,
9238         compute_dominance_frontiers): Move from here...
9239         * cfganal.c: ...to here.  Include timevar.h.
9240
9241 2004-08-18  James E Wilson  <wilson@specifixinc.com>
9242
9243         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
9244         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
9245
9246         * config/mips/mips.md (type): Add frdiv.
9247         (divsf3+1, divsf3+2): Change type to frdiv.
9248         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
9249         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
9250
9251         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
9252         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
9253         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
9254         * config/mips/5000.md (r5k_fdiv_single): Likewise.
9255         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
9256         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
9257         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
9258         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
9259         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
9260         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
9261         Likewise.
9262         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
9263
9264 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
9265
9266         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
9267         get regression tester working again.
9268
9269 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
9270
9271         * insn-notes.def, reg-notes.def: New files.
9272         * rtl.h: Use them to define enum insn_note and enum reg_note.
9273         * rtl.c: Use them to define note_insn_name and reg_note_name.
9274         * Makefile.in (RTL_BASE_H): Update.
9275
9276         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
9277         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
9278
9279 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
9280
9281         * arm.c (arm_size_rtx_costs): New function.
9282         (arm_override_options): Use it if optimizing for space.
9283
9284 2004-08-18  Richard Henderson  <rth@redhat.com>
9285
9286         * emit-rtl.c (gen_const_mem): New.
9287         * rtl.h (gen_const_mem): Declare.
9288         * expr.c (do_tablejump): Use it.
9289         * varasm.c (force_const_mem): Likewise.
9290         * config/darwin.c (machopic_indirect_data_reference): Likewise.
9291         (machopic_legitimize_pic_address): Likewise.
9292         * config/arm/arm.c (legitimize_pic_address): Likewise.
9293         * config/i386/i386.c (legitimize_pic_address): Likewise.
9294         (legitimize_tls_address): Likewise.
9295         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
9296         * config/ia64/ia64.md (load_fptr): Likewise.
9297         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
9298         * config/pa/pa.c (legitimize_pic_address): Likewise.
9299         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
9300         (rs6000_emit_move): Likewise.
9301         * config/s390/s390.c (legitimize_pic_address): Likewise.
9302         (legitimize_tls_address): Likewise.
9303         * config/s390/s390.md (casesi): Likewise.
9304         * config/sh/sh.c (sh_reorg): Likewise.
9305         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
9306         * config/v850/v850.md (casesi): Likewise.
9307
9308         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
9309         * config/sh/sh.c (prepare_move_operands): Remove incorrect
9310         use of MEM_READONLY_P.
9311
9312 2004-08-18  Steven Bosscher  <stevenb@suse.de>
9313
9314         * Makefile.in (OBJS-common): Add postreload-gcse.c.
9315         Add new postreload-gcse.o.
9316         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
9317         (lookup_as_function, insert, rehash_using_reg, use_related_value,
9318         equiv_constant): Use SAFE_HASH instead of safe_hash.
9319         (exp_equiv_p): Export.  Add for_gcse argument when comparing
9320         for GCSE.
9321         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
9322         find_comparison_args, fold_rtx, cse_insn): Update callers.
9323         (hash_rtx): New function derived from old canon_hash and bits
9324         from gcse.c hash_expr_1.
9325         (canon_hash_string): Rename to hash_rtx_string.
9326         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
9327         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
9328         (cselib_lookup): Update this caller.
9329         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
9330         Make static.
9331         (hash_expr): Call hash_rtx.
9332         (ldst_entry): Likewise.
9333         (expr_equiv_p): Call exp_equiv_p.
9334         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
9335         reg_used_on_edge, reg_set_between_after_reload_p,
9336         reg_used_between_after_reload_p, get_avail_load_store_reg,
9337         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
9338         get_bb_avail_insn, hash_scan_set_after_reload,
9339         compute_hash_table_after_reload,
9340         eliminate_partially_redundant_loads, gcse_after_reload,
9341         get_bb_avail_insn, gcse_after_reload_main): Remove.
9342         * postreload-gcse.c: New file, reincarnating most of the above.
9343         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
9344         (gcse_after_reload_main): Update prototype.
9345         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
9346         * passes.c (rest_of_handle_gcse2): Use it.
9347
9348 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
9349
9350         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
9351         (pass_loop_done): Likewise.
9352
9353 2004-08-18  Andrew Pinski  <apinski@apple.com>
9354
9355         * config/rs6000/darwin.md: Delete the altivec patterns which are
9356         handled differently now.
9357         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
9358         (macho_correct_pic_di): Likewise.
9359         (call_indirect_nonlocal_darwin64): Likewise.
9360         Delete the save world/saveFP/saveVec patterns.
9361
9362         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
9363         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
9364         * config/rs6000/rs6000.md: Include darwin.md.
9365         (builtin_setjmp_receiver): Add DImode case.
9366         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
9367         Darwin bits.
9368
9369 2004-08-18  Matt Austern  <austern@apple.com>
9370
9371         Dead code stripping
9372         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
9373         * darwin.c (darwin_file_end): Mark file as potentially strippable.
9374
9375 2004-08-18  Richard Henderson  <rth@redhat.com>
9376
9377         * alias.c (readonly_fields_p): Remove.
9378         (objects_must_conflict_p): Don't call it.
9379         * tree.h (readonly_fields_p): Remove.
9380         * langhooks.h (struct lang_hooks): Remove honor_readonly.
9381         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
9382
9383 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
9384
9385         * tree-dfa.c (add_referenced_var): Only global variables are
9386         call-clobbered.
9387         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
9388         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
9389         all pointers dereferenced if the statement dereferences them.
9390         (create_name_tags): Do not create memory tags for pointers
9391         that have PT_ANYTHING set.
9392         Also check if PT_VARS is not empty before creating a name tag.
9393         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
9394         variables that share the same alias set with a pointer that
9395         may point anywhere.
9396         (add_may_alias): Add FIXME comment to remove clobbering
9397         aliased variables and tags.
9398         (replace_may_alias): Likewise.
9399         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
9400         (merge_pointed_to_info): If the original variable has not
9401         points-to information, call set_pt_anything.
9402         (add_pointed_to_var): Do not prevent adding a pointed-to
9403         variable if the pointers is PT_ANYTHING.
9404         If the variable is a global, set PT_GLOBAL_MEM.
9405         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
9406         pointer type only come in PTR+OFFSET flavours.
9407         Always call merge_pointed_to_info on PHI arguments that are
9408         SSA_NAMEs.
9409         (get_nmt_for): Mark call-clobbered tags whose pointer points
9410         to global memory.
9411         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
9412         values.
9413         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
9414         FLAGS.
9415         (add_stmt_operand): Abort if the caller tried to add a killing
9416         definition for a memory tag.
9417         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
9418         unnecessary checks.
9419
9420 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
9421
9422         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
9423         from call_used_regs.  Update call_really_used_regs.
9424         (CALL_REALLY_USED_REGISTERS): Define.
9425         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
9426         Replace call_used_regs with call_really_used_regs.
9427         (calc_live_regs, sh_media_register_for_return): Likewise.
9428         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
9429         * sh.md (return_media): Likewise.
9430
9431 2004-08-18  Andrew Pinski  <apinski@apple.com>
9432
9433         * config/darwin.c (machopic_legitimize_pic_address): Only set
9434         MEM_READONLY_P in the non TARGET_TOC case.
9435
9436 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
9437
9438         * rtl.def (NIL): Delete.
9439         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
9440         Tighten the syntax a little.
9441
9442         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
9443         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
9444         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
9445         * config/i386/predicates.md, config/m32r/m32r.h
9446         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
9447         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
9448         * config/sparc/sparc.h, doc/tm.texi:
9449         Replace all occurrences of NIL with UNKNOWN.
9450
9451 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
9452
9453         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
9454         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
9455         sequence inline.  Move drop_through_label code into this
9456         block, being the only place it is used.  Adjust comments.
9457
9458 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
9459
9460         * config/rs6000/altivec.md: Add new patterns for calls to
9461         save_world/rest_world functions.
9462
9463         * config/rs6000/rs6000-protos.h: (save_world_operation,
9464         restore_world_operation) new declarations.
9465
9466         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
9467         field added.
9468         (rs6000_stack_info): Set world_save_p field.
9469         (save_world_operation): New function.
9470         (restore_world_operation): New function.
9471         (compute_save_world_info): New function.
9472         (rs6000_stack_info): Call compute_save_world_info.
9473         (rs6000_emit_prologue): Check for world_save_p and generate
9474         pattern to call save_world for saving all non-volatile and
9475         special registers.
9476         (rs6000_emit_epilogue): Check for world_save_p and generate
9477         pattern to call rest_world to restore saved registers.
9478
9479         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
9480         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
9481         (rs6000_reg_names): New entries added for save_world_operation and
9482         restore_world_operation.
9483
9484 2004-08-18  Caroline Tice  <ctice@apple.com>
9485
9486         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
9487         "-freorder-blocks-and-partition" to the flags used in second
9488         stage of profiledbootstrap.
9489         * bb-reorder.c (push_to_next_round_p): Add new variable,
9490         next_round_is_last; set and use variable to make sure, when
9491         partitioning, that the last trace construction round consists
9492         of all (and only) cold basic blocks.
9493         (rotate_loop): Don't copy blocks that end in a section
9494         crossing jump.
9495         (copy_bb): Correctly initialize "partition" of duplicated bb.
9496         (add_unlikely_executed_notes): Add a comment.
9497         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
9498         to make sure, if function contains hot blocks, that the
9499         successors of ENTRY_BLOCK_PTR are hot; also, only look for
9500         crossing edges if the architecture supports named sections.
9501         (mark_bb_for_unlikely_executed_section): Modify to always
9502         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
9503         the basic block note insn.
9504         (fix_crossing_unconditional_branches): Remove extra space.
9505         (fix_edges_for_rarely_executed_code): Modify to only do
9506         partitioning work if the architecture supports named sections.
9507         (reorder_basic_blocks): Modify to only add
9508         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
9509         supports named sections.
9510         * c-common.c (handle_section_attribute): Initialize new global
9511         variable, user_defined_section_attribute, to true if user has
9512         specified one.
9513         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
9514         forward edges that cross section boundaries.
9515         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
9516         partitioning information if the architecture supports named
9517         sections.
9518         * cfgrtl.c (target.h): Add statement to include this.
9519         (rtl_split_block): Make sure newly created bb gets correct
9520         partition.
9521         (try_redirect_by_replacing_jump): Make sure redirection isn't
9522         attempting to cross section boundaries.
9523         (force_nonfallthru_and_redirect): Only do partition fix up if
9524         architecture supports named sections.
9525         (rtl_split_edge): Make sure newly created bb ends up in
9526         correct partition.
9527         (commit_one_edge_insertion): Remove code that incorrectly
9528         updated basic block partition; Make sure partition fix up only
9529         happens if architecture supports named sections and it's not
9530         already done.
9531         (rtl_verify_flow_info_1): Fix if-condition on test/error
9532         condition that fallthru edges are not allowed to cross section
9533         boundaries.
9534         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
9535         * final.c (final_scan_insn): Remove redundant test from if-statement;
9536         change calls to text_section into calls to function_section; add code
9537         to only to partitioning fix up if architecture supports named
9538         sections.
9539         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
9540         partition.
9541         (if_convert): Add targetm.have_named_sections to test.
9542         * output.h (unlikely_section_label): Extern declaration for new global
9543         variable.
9544         (unlikely_text_section_name): Likewise.
9545         * opts.c (decode_options): If both partitioning and DWARF debugging
9546         are turned on, issue a warning that this doesn't work, and change
9547         partitiong to basic block reordering (without hot/cold partitions).
9548         * passes.c (rest_of_handle_final): Re-set new global variable,
9549         user_defined_section_attribute, to false.
9550         (rest_of_compilation): Change options for calling partitioning
9551         function: Don't call if the user defined the section attribute, and
9552         don't call if DECL_ONE_ONLY is true for the current function.
9553         * predict.c (choose_function_section): Return immediately if we
9554         are doing hot/cold partitioning (i.e. let the basic block partitioning
9555         determine where the function belongs).
9556         * reg-stack.c (emit_swap_insn): Add condition to step over
9557         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
9558         * toplev.c (user_defined_section_attribute): New global variable.
9559         * toplev.h (user_defined_section_attribute): Extern declaration
9560         for new global variable.
9561         * varasm.c (unlikely_section_label): New global variable.
9562         (unlikely_text_section_name): New global variable.
9563         (unlikely_text_section): Add code to initialize
9564         unlikely_text_section_name if necessary; modify to use
9565         unlikely_text_section_name and unlikely_section_label; also to use
9566         named_section properly.
9567         (in_unlikely_text_section):  Modify to work correctly with
9568         named_section and to use unlikely_text_section_name.
9569         (named_section):  Add code to work properly with cold section.
9570         (function_section): Clean up if-statement.
9571         * config/darwin.c (darwin_asm_named_section): Return to original
9572         code, removing use of SECTION_FORMAT_STRING.
9573         * config/arm/pe.h (switch_to_section):  Add case for
9574         in_unlikely_executed_text to switch statement.
9575         * config/i386/cygming.h (switch_to_section): Likewise.
9576         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
9577         (SECTION_FORMAT_STRING): Likewise.
9578         * config/mcore/mcore.h (switch_to_section): Likewise.
9579         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
9580         (SECTION_FORMAT_STRING): Remove.
9581
9582 2004-08-18  Roger Sayle  <roger@eyesopen.com>
9583
9584         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
9585         -ffixed-reg safe, by preserving the meanings of zero and one.
9586         (CALL_USED_REGISTERS): Likewise.
9587         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
9588
9589 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9590
9591         * config/sh/sh.c (split_branches): Check the result of
9592         next_active_insn.
9593         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
9594         Call rtl_register_cfg_hooks.
9595
9596 2004-08-18  Richard Henderson  <rth@redhat.com>
9597
9598         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
9599         * alias.c (true_dependence): Update to match new semantics.
9600         (canon_true_dependence, write_dependence_p): Likewise.
9601         (anti_dependence, output_dependence): Update write_dependence_p args.
9602         (unchanging_anti_dependence): Remove.
9603         * calls.c (purge_mem_unchanging_flag): Remove.
9604         (fixup_tail_calls): Don't call it.
9605         (expand_call): Don't add unchanging memory to function usage.
9606         * expr.c (emit_block_move_via_libcall): Likewise.
9607         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
9608         (get_subtarget): Don't use RTX_UNCHANGING_P.
9609         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
9610         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
9611         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
9612         * cse.c (insert): Don't use RTX_UNCHANGING_P.
9613         (cse_insn, canon_hash): Use MEM_READONLY_P.
9614         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
9615         instead of RTX_UNCHANGING_P.
9616         * explow.c (maybe_set_unchanging): Remove.
9617         * expr.h (maybe_set_unchanging): Remove.
9618         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
9619         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
9620         (assign_parm_setup_reg, expand_function_start): Likewise.
9621         * integrate.c (copy_rtx_and_substitute): Likewise.
9622         * ra-rewrite.c (emit_colors): Likewise.
9623         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
9624         (fixup_match_1): Likewise.
9625         * reload1.c (reload, alter_reg): Likewise.
9626         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
9627         not RTX_UNCHANGING_P.
9628         (equiv_init_varies_p): Likewise.
9629         * loop-invariant.c (check_maybe_invariant): Likewise.
9630         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
9631         * loop.c (note_addr_stored): Likewise.
9632         (prescan_loop): Likewise. Don't check function usage for clobbered
9633         unchanging memory.
9634         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
9635         not RTX_UNCHANGING_P.
9636         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
9637         * varasm.c (force_const_mem): Likewise.
9638         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
9639         * web.c (entry_register): Likewise.
9640         * tree-gimple.h (get_base_address): Move decl ...
9641         * tree.h: ... here.
9642         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
9643
9644         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
9645         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
9646         (alpha_set_memflags): Update to match.
9647
9648         * config/darwin.c (machopic_indirect_data_reference): Set
9649         MEM_READONLY_P instead of RTX_UNCHANGING_P.
9650         (machopic_indirect_call_target): Likewise.
9651         (machopic_legitimize_pic_address): Likewise.
9652         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
9653         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
9654         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
9655         * config/frv/frv.md (symGOT2reg): Likewise.
9656         * config/i386/i386.c (legitimize_pic_address,
9657         legitimize_tls_address, ix86_split_to_parts): Likewise.
9658         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
9659         * config/ia64/ia64.md (load_fptr): Likewise.
9660         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
9661         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
9662         * config/mcore/mcore.c (block_move_sequence): Likewise.
9663         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
9664         * config/pa/pa.c (legitimize_pic_address): Likewise.
9665         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
9666         (rs6000_emit_move): Likewise.
9667         * config/s390/s390.c (legitimize_pic_address): Likewise.
9668         (legitimize_tls_address): Likewise.
9669         * config/s390/s390.md (casesi): Likewise.
9670         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
9671         * config/sh/sh.md (symGOT2reg): Likewise.
9672         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
9673         * config/v850/v850.md (casesi): Likewise.
9674
9675         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
9676         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
9677         * config/mips/mips.c (mips_restore_gp): Likewise.
9678         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
9679         * config/sh/sh.c (sh_reorg): Likewise.
9680
9681 2004-08-18  Richard Henderson  <rth@redhat.com>
9682
9683         * tree.h (struct tree_decl): Add gimple_formal_temp.
9684         (DECL_GIMPLE_FORMAL_TEMP_P): New.
9685         * gimplify.c (pop_gimplify_context): Clear it.
9686         (lookup_tmp_var): Set it, if is_formal.
9687         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
9688         Use is_gimple_val for VECTOR.  Simplify return value.
9689         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
9690         (gimplify_expr): Likewise.
9691         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
9692         is_gimple_tmp_rhs for clarity.  Update all callers.
9693         (is_gimple_reg_rhs): Simplify logic.
9694         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
9695         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
9696         (is_gimple_formal_tmp_reg): Similarly.
9697         * tree-gimple.h: Update decls.
9698         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
9699         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
9700         * tree-ssa-live.c (var_union, type_var_init): Likewise.
9701
9702 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
9703
9704         * c4x.c (legitimize_operands): Remove calls to
9705         preserve_subexpressions_p.
9706
9707 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
9708
9709         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
9710         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
9711
9712 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
9713
9714         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
9715         Objective-C++ extensions.
9716         * gengtype.c (get_file_basename): Match entire subdirectory name
9717         ('cp', 'objc', 'objcp') rather than just its suffix.
9718         (get_base_file_bitmap): Allow for files to belong to more than one
9719         language.
9720         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
9721         used by more than one front-end.
9722
9723 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
9724
9725         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
9726         avoid use of preserve_subexpressions_p.
9727
9728 2004-08-17  Richard Henderson  <rth@redhat.com>
9729
9730         PR 17051
9731         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
9732
9733 2004-08-17  DJ Delorie  <dj@redhat.com>
9734
9735         * doc/extend.texi: Document new xstormy16 attribute.
9736
9737         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
9738         (xstormy16_splittable_below100_or_register): New.
9739         (combine_bnp): New.
9740         (xstormy16_reorg): New.
9741         (TARGET_MACHINE_DEPENDENT_REORG): Define.
9742
9743         * config/stormy16/stormy16.md (movqi_internal): Make name public.
9744         (movhi_internal): Likewise.
9745         (cbhranchhi): Likewise.
9746         (cbhranchhi_neg): Likewise.
9747         (andhi3): Only allow splittable below100 operands.
9748         (iorhi3): Likewise.
9749         (peephole2): New and/zero_extend->and peephole.
9750         (peephole2): New load/ior/save->set1 peephole.
9751         (peephole2): New load/and/save->clr1 peephole.
9752         (bclrx, bclrx2, bclr7, bclr15): New.
9753         (bsetx, bsetx2, bset7, bset15): New.
9754
9755         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
9756         liberal about acceptable 'B' masks.
9757
9758         * config/stormy16/stormy16-protos.h
9759         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
9760         xstormy16_below100_operand, xstormy16_below100_or_register,
9761         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
9762         (PREDICATE_CODES): Add new predicates.
9763
9764         * config/stormy16/stormy16.c
9765         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
9766         xstormy16_below100_operand, xstormy16_below100_or_register,
9767         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
9768         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
9769         (xstormy16_legitimate_address_p): Allow below100 symbols.
9770         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
9771         (xstormy16_expand_move): Leave below100 operands as-is.
9772         (xstormy16_encode_section_info): Encode below100 symbols.
9773         (xstormy16_strip_name_encoding): New.
9774         (xstormy16_print_operand): Print 'b' as shift mask.
9775         (xstormy16_attribute_table): Add below100 attributes.
9776         (xstormy16_handle_below100_attribute): New.
9777
9778         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
9779         (XSTORMY16_SECTION_FUNCTION): New.
9780         (EXTRA_SECTION_FUNCTIONS): Define using the above.
9781         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
9782         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
9783         (ASM_OUTPUT_LABELREF): Define.
9784
9785         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
9786         (movhi_internal): Add below100 support.
9787         (andhi3): Add below100 support.
9788         (iorhi3): Add below100 support.
9789         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
9790
9791 2004-08-17  James E Wilson  <wilson@specifixinc.com>
9792
9793         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
9794         of VOIDmode for comparison code mode.
9795         * config/mips/mips.md: For conditional move patterns, use mode of
9796         first compare operand for comparison mode, instead of VOIDmode.
9797
9798         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
9799         normal and -ffast-math code.
9800
9801 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
9802
9803         PR c++/15871
9804         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
9805
9806 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
9807
9808         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
9809
9810 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
9811
9812         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
9813         for non Darwin targets.
9814         (*call_value_nonlocal_darwin64): Likewise.
9815
9816 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
9817
9818         * config/rs6000/rs6000.c (rs6000_function_value): Check for
9819         altivec mode for altivec return register.
9820
9821 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
9822
9823         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
9824         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
9825         * config/rs6000/rs6000.md: Include darwin.md.
9826         (builtin_setjmp_receiver): Add DImode case.
9827         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
9828         Darwin bits.
9829
9830 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
9831
9832         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
9833         trees.
9834         * tree-vectorizer.h: New File: Same.
9835         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
9836         * common.opt (ftree-vectorize): New flag to enable vectorization.
9837         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
9838         vectorization pass.
9839         * tree-data-ref.h (init_data_ref): Additional argument.
9840         (array_base_name_differ_p): Moved to tree-data-ref.c.
9841         * tree-data-ref.c (array_base_name_differ_p): Revised.
9842         (initialize_data_dependence_relation): Call array_base_name_differ_p
9843         with an extra argument.
9844         (analyze_all_data_dependences): Same.
9845         (init_data_ref): Additional argument is_read to set DR_IS_READ.
9846         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
9847         file.
9848         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
9849         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
9850         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
9851         vectorization pass.
9852         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
9853         (tree_ssa_loop_done): Call scev_finalize.
9854         (tree_vectorize): Define the new vectorization pass.
9855         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
9856         size of the vector they support (until support for multiple vector
9857         sizes is added to the vectorizer).
9858         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
9859         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
9860         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
9861         documentation.
9862
9863 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
9864
9865         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
9866         usage.
9867         (generate_protocol_list, handle_impent): Likewise.
9868
9869 2004-08-17  Roger Sayle  <roger@eyesopen.com>
9870
9871         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
9872         ensure that call_used_regs is a superset of both fixed_regs and
9873         call_really_used_regs.
9874
9875 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
9876
9877         PR target/17019
9878         * arm.md (addsi3_cbranch_scratch): Correct case labels.
9879
9880 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
9881
9882         PR middle-end/17036
9883         * fold-const.c (fold): Check for integer operand when
9884         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
9885         Pinski  <pinskia@physics.uc.edu>.
9886
9887 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
9888
9889         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
9890         No need to check if in a cross configuration.
9891         * configure: Regenerate.
9892
9893         * calls.c (precompute_register_parameters):
9894         Inline preserve_subexpressions_p ().
9895         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
9896         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
9897         Likewise.
9898         * expr.c (get_subtarget): Likewise.
9899         * rtl.h (preserve_subexpressions_p): Remove.
9900         * stmt.c (preserve_subexpressions_p): Remove.
9901
9902         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
9903         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
9904         Abort on gimplified cases.
9905
9906 2004-08-16  James E Wilson  <wilson@specifixinc.com>
9907
9908         * tree.h (VECTOR_FLOAT_TYPE_P): New.
9909         (FLOAT_TYPE_P): Use it.
9910         * c-typeck.c (build_binary_op): After convert calls, check for
9911         check for ERROR_MARK operands.
9912
9913 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
9914
9915         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
9916         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
9917         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
9918         (genobjs static pattern rule): Remove %.c dependency.
9919         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
9920         Rename rules; delete commands; fix dependencies.
9921         (mostlyclean): Do not delete temporary source copies.
9922         * configure.ac: Delete all references to BUILD_PREFIX and
9923         BUILD_PREFIX_1.
9924         * configure: Regenerate.
9925
9926         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
9927         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
9928         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
9929         with #ifndef GENERATOR_FILE so that nothing from those headers
9930         is used.
9931
9932         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
9933
9934 2004-08-16  Adam Nemet  <anemet@lnxw.com>
9935
9936         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
9937
9938 2004-08-16  Andrew Pinski  <apinski@apple.com>
9939
9940         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
9941         extraneous semicolon.
9942
9943 2004-08-16  Devang Patel  <dpatel@apple.com>
9944
9945         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
9946         * print-tree.c (print_node): Print DECL_PRESERVE_P.
9947         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
9948         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
9949         * target.h (struct gcc_target): New member, mark_decl_preserved.
9950         * hooks.c (hook_void_charptr): Rename to ...
9951         (hook_void_constcharptr): ... new name.
9952         * hooks.h (hook_void_charptr): Rename to ..
9953         (hook_void_constcharptr): ... new name.
9954         * tree.h (DECL_PRESERVE_P): New #define.
9955         (struct tree_decl): New member, preserve_flag.
9956         * varasm.c (assemble_start_function): Mark decl preserved.
9957         (assemble_variable): Same.
9958         * darwin.c (darwin_mark_decl_preserved): New function.
9959         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
9960         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
9961         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
9962
9963 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
9964
9965         * c-decl.c (grokdeclarator): Allow for function definition where
9966         innermost declarator has attributes.
9967
9968 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
9969
9970         * except.c (get_exception_filter, build_post_landing_pads,
9971         dw2_build_landing_pads): Use target-specific mode for 'filter'.
9972         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
9973         * target.h (eh_return_filter_mode): New field added.
9974         * targhooks.c (default_eh_return_filter_mode): Defined.
9975         * targhooks.h (default_eh_return_filter_mode): Declared.
9976         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
9977
9978 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
9979
9980         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
9981         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
9982         * configure: Regenerate.
9983
9984 2004-08-16  Stan Shebs  <shebs@apple.com>
9985
9986         Basic support for 64-bit Darwin.
9987         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
9988         (machopic_legitimize_pic_address): Similarly, plus use Pmode
9989         instead of SImode.
9990         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
9991         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
9992         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
9993         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
9994         (PROCESSOR_DEFAULT64): Define.
9995         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
9996         Darwin.
9997         * config/rs6000/rs6000.md: Include darwin.md.
9998         (builtin_setjmp_receiver): Add DImode case.
9999         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
10000         Darwin.
10001         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
10002         (rs6000_emit_move): Add DImode case to Darwin bits.
10003         (machopic_output_stub): Use .quad if 64-bit.
10004         * invoke.texi: Document -m32 and -m64.
10005
10006 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
10007
10008         * doc/extend.texi (AltiVec builtins): Document additional differences
10009         from the Motorola AltiVec PIM.
10010
10011 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10012
10013         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
10014         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
10015         (struct tree_common): Update public_flag documentation.
10016
10017 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
10018
10019         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10020         Check for artificial variables, not is_gimple_tmp_var.
10021         * tree-ssa-live.c (var_union): Likewise.
10022
10023 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10024
10025         * calls.c (load_register_parameters): Remove spurious FIXME token.
10026
10027 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
10028
10029         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
10030         (c-lang.o): Depend on c-objc-common.h.
10031         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
10032         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
10033         * c-lang.c: Include c-objc-common.h.
10034         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
10035         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
10036         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
10037         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
10038         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
10039         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
10040         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
10041         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
10042         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
10043         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10044         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
10045         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
10046         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
10047         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
10048         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
10049         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
10050         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
10051         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
10052         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
10053         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
10054         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
10055         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
10056         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
10057         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
10058         Move to c-objc-common.h.
10059         * c-objc-common.c: Include c-objc-common.h.
10060         * c-objc-common.h: New file.
10061
10062 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
10063             Andrew Pinski  <pinskia@physics.uc.edu>
10064
10065         PR target/14931
10066         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
10067         style.
10068
10069 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
10070
10071         * tree.h (build_int_cst): New.
10072         (build_int_2): Remove.
10073         * tree.c (build_int_2): Remove.
10074         (build_int_cst): New.
10075         (make_vector_type, build_common_tree_nodes,
10076         build_common_tree_nodes_2): Use build_int_cst.
10077         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
10078         expand_builtin_strpbrk, expand_builtin_fputs,
10079         build_string_literal, expand_builtin_printf,
10080         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
10081         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
10082         fold_builtin_isdigit, simplify_builtin_strstr,
10083         simplify_builtin_strpbrk, fold_builtin_fputs,
10084         simplify_builtin_sprintf): Use build_int_cst.
10085         * c-common.c (start_fname_decls, fix_string_type,
10086         c_common_nodes_and_builtins, c_init_attributes,
10087         shorten_compare): Likewise.
10088         * c-decl.c (complete_array_type,
10089         check_bitfield_type_and_width): Likewise.
10090         * c-lex.c (interpret_integer, lex_charconst): Likewise.
10091         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
10092         * c-pretty-print.c (pp_c_integer_constant): Likewise.
10093         * c-typeck.c (really_start_incremental_init, push_init_level,
10094         set_nonincremental_init_from_string): Likewise.
10095         * calls.c (load_register_parameters): Likewise.
10096         * convert.c (convert_to_pointer): Likewise.
10097         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
10098         build_fn_info_type, build_ctr_info_value, build_gcov_info):
10099         Likewise.
10100         * except.c (init_eh, assign_filter_values, assign_filter_values):
10101         Likewise.
10102         * expmed.c (store_fixed_bit_field, extract_bit_field,
10103         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
10104         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
10105         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
10106         * expr.c (convert_move, emit_group_load, emit_group_store,
10107         expand_assignment, store_constructor, store_field,
10108         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
10109         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
10110         invert_truthvalue, optimize_bit_field_compare,
10111         decode_field_reference, all_ones_mask_p, constant_boolean_node,
10112         fold_div_compare, fold, fold_read_from_constant_string,
10113         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
10114         * function.c (assign_parm_setup_block): Likewise.
10115         * stmt.c (shift_return_value, expand_end_case_type,
10116         estimate_case_costs): Likewise.
10117         * stor-layout.c (layout_type, initialize_sizetypes,
10118         set_min_and_max_values_for_integral_type): Likewise.
10119         * tree-chrec.c (chrec_fold_multiply_poly_poly,
10120         reset_evolution_in_loop): Likewise.
10121         * tree-chrec.h (build_polynomial_chrec): Likewise.
10122         * tree-complex.c (build_replicated_const): Likewise.
10123         * tree-eh.c (honor_protect_cleanup_actions,
10124         lower_try_finally_onedest, lower_try_finally_copy,
10125         lower_try_finally_switch): Likewise.
10126         * tree-mudflap.c (mf_build_string, mx_register_decls,
10127         mudflap_register_call, mudflap_enqueue_constant): Likewise.
10128         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
10129         * tree-pretty-print.c (dump_generic_node): Likewise.
10130         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
10131         Likewise.
10132         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
10133         * tree-ssa-loop-niter.c (number_of_iterations_cond,
10134         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
10135         Likewise.
10136
10137         * config/alpha/alpha.c (alpha_initialize_trampoline,
10138         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
10139         * config/arm/arm.c (arm_get_cookie_size): Likewise.
10140         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
10141         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
10142         * config/i860/i860.c (i860_va_start): Likewise.
10143         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10144         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
10145         mips_gimplify_va_arg_expr): Likewise.
10146         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10147         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
10148         add_compiler_branch_island): Likewise.
10149         * config/s390/s390.c (s390_va_start): Likewise.
10150         * config/sh/sh.c (sh_va_start): Likewise.
10151         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10152         Likewise.
10153         * config/xtensa/xtensa.c (xtensa_va_start,
10154         xtensa_gimplify_va_arg_expr): Likewise.
10155
10156         * objc/objc-act.c (build_objc_string_object,
10157         build_objc_symtab_template, init_def_list, init_objc_symtab,
10158         init_module_descriptor, generate_static_references,
10159         build_selector_translation_table, get_proto_encoding,
10160         build_typed_selector_reference, build_selector_reference,
10161         build_next_objc_exception_stuff,
10162         build_method_prototype_list_template, generate_descriptor_table,
10163         generate_protocols, build_protocol_initializer,
10164         build_ivar_list_template, build_method_list_template,
10165         build_ivar_list_initializer, generate_ivars_list,
10166         generate_dispatch_table, generate_protocol_list,
10167         build_category_initializer, build_shared_structure_initializer,
10168         generate_shared_structures, handle_impent,
10169         generate_objc_image_info): Use build_int_cst.
10170
10171 2004-08-15  Ben Elliston  <bje@au.ibm.com>
10172
10173         * vec.h: Comment improvements.
10174
10175 2004-08-14  Roger Sayle  <roger@eyesopen.com>
10176
10177         * c-common.c (shorten_compare, pointer_int_sum,
10178         c_common_truthvalue_conversion, boolean_increment): Replace calls
10179         to build with calls to buildN.
10180         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
10181         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
10182         gimplify_switch_stmt): Likewise.
10183         * c-typeck.c (default_function_array_conversion,
10184         build_component_ref, build_array_ref, build_function_call,
10185         pointer_diff, build_unary_op, build_conditional_expr,
10186         build_compound_expr, build_modify_expr, c_finish_goto_label,
10187         c_finish_goto_ptr, c_finish_return, c_finish_loop,
10188         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
10189         build_binary_op): Likewise.
10190
10191 2004-08-15  Steven Bosscher  <stevenb@suse.de>
10192
10193         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
10194
10195 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10196
10197         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
10198         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
10199         * fixinc/fixincl.x: Rebuilt.
10200
10201 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
10202
10203         * config/mips/mips-protos.h (mips_symbolic_constant_p)
10204         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
10205         (mips_small_data_pattern_p): Declare.
10206         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
10207         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
10208         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
10209         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
10210         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
10211         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
10212         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
10213         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
10214         (pc_or_label_operand, call_insn_operand, move_operand)
10215         (consttable_operand, symbolic_operand, general_symbolic_operand)
10216         (global_got_operand, local_got_operand, stack_operand)
10217         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
10218         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
10219         (mips_small_data_pattern_p): Replace previous small_data_pattern
10220         predicate.  Turn into a bool () (rtx) function.
10221         * config/mips/predicates.md: New file.
10222         * config/mips/mips.md: Include it.  Use the target-independent
10223         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
10224         trap_comparison_operator and equality_op to equality_operator.
10225         Replace uses of small_int with the equivalent const_arith_operand.
10226         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
10227         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
10228         to fcc_reload_operand.
10229         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
10230
10231 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10232
10233         PR libstdc++/17005 partial fix.
10234         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
10235         except when generating ANSI/C89 code.
10236
10237 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
10238
10239         * c-common.c (shorten_compare): Use force_fit_type directly.
10240
10241 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
10242             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
10243             Dave Korn  <dk@artimi.com>
10244
10245         * doc/install.texi (Building): Avoid duplicate reference to GNU
10246         make requirement.
10247         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
10248
10249 2004-08-14  Richard Henderson  <rth@redhat.com>
10250
10251         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
10252         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
10253
10254 2004-08-13  Richard Henderson  <rth@redhat.com>
10255
10256         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
10257         for constant_call_address_operand.
10258         (call_value_pop_1, call_value_1): Likewise.
10259         (sibcall_value_1, call_value_1_rex64): Likewise.
10260
10261 2004-08-13  James E Wilson  <wilson@specifixinc.com>
10262
10263         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
10264         Correct mode from SFmode to DFmode.
10265
10266 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
10267
10268         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
10269         __cstring_object and __image_info sections with the no_dead_strip
10270         attribute.
10271
10272 2004-08-13  Roger Sayle  <roger@eyesopen.com>
10273             David Billinghurst  <David.Billinghurst@riotinto.com>
10274
10275         PR libgfortran/15930
10276         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
10277         * fixinc/fixincl.x: Regenerate.
10278         * fixinc/tests/base/internal/math_core.h: New file.
10279
10280 2004-08-13  Richard Henderson  <rth@redhat.com>
10281
10282         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
10283         (dbxout_function_end): Remove ifdefs for it.
10284         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
10285
10286 2004-08-13  Richard Henderson  <rth@redhat.com>
10287
10288         * Makefile.in (insn-preds.o): Depend on TREE_H.
10289         * genpreds.c (write_insn_preds_c): Include tree.h.
10290         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
10291         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
10292         const48_operand, and_operand, or_operand, mode_width_operand,
10293         mode_mask_operand, mul8_operand, const0_operand,
10294         hard_fp_register_operand, hard_int_register_operand,
10295         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
10296         samegp_function_operand, direct_call_operand, small_symbolic_operand,
10297         global_symbolic_operand, call_operand, symbolic_operand,
10298         dtp16_symbolic_operand, dtp32_symbolic_operand,
10299         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
10300         gottp_symbolic_operand, alpha_comparison_operator,
10301         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
10302         signed_comparison_operator, alpha_fp_comparison_operator,
10303         divmod_operator, fix_operator, aligned_memory_operand,
10304         unaligned_memory_operand, reg_or_unaligned_mem_operand,
10305         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
10306         reg_no_subreg_operand, addition_operation): Move to predicates.md.
10307         (reg_or_const_int_operand): Remove.  Replace all users with
10308         reg_or_cint_operand.
10309         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
10310         (resolve_reload_operand): Split out of aligned_memory_operand.
10311         * config/alpha/alpha-protos.h: Update for exports.
10312         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
10313         * config/alpha/alpha.md: Include predicates.md.
10314         * config/alpha/predicates.md: New file.
10315
10316 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
10317
10318         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
10319         fields with a pointer to the instruction definition.
10320         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
10321         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
10322         (write_attr_case, write_const_num_delay_slots): Update accordingly.
10323         (write_attr_case, write_const_num_delay_slots): Write the name of
10324         an insn next to its case statement.
10325         * genoutput.c (data): Add a filename field.
10326         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
10327         (output_insn_data): Print the location of each insn definition.
10328         * genrecog.c (write_action): Print the name of an insn above
10329         the statement that returns its code.
10330
10331 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
10332
10333         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
10334         * config/libgloss.h: Likewise.
10335         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
10336         * c4x/c4x-modes.def: Likewise.
10337         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
10338         (c4x_rptb_nop_p): Likewise.
10339         (c4x_rptb_valid_p): Likewise.
10340         (c4x_rptb_insert): Likewise.
10341         (c4x_address_conflict): Likewise.
10342         * config/c4x/c4x.md: Likewise.
10343         * config/frv/frv.md: Likewise.
10344         * config/i386/athlon.md: Likewise.
10345         * config/i386/i386.md: Likewise.
10346         * config/i386/predicates.md: Likewise.
10347         * config/ia64/ia64.c: Likewise.
10348         * config/ia64/itanium1.md: Likewise.
10349         * config/ia64/itanium2.md: Likewise.
10350         * config/iq2000/iq2000.md: Likewise.
10351         * config/mcore/mcore.c: Likewise.
10352         * config/mips/mips.c: Likewise.
10353         * config/mips/r3900.h: Likewise.
10354         * config/mips/sb1.md: Likewise.
10355         * config/pa/milli64.S: Likewise.
10356         * config/pa/pa.c: Likewise.
10357         * config/pa/pa.h: Likewise.
10358         * config/rs6000/8540.md: Likewise.
10359
10360 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
10361
10362         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
10363
10364 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
10365
10366         * sh.md (cbranch define_delay) Use cond_delay_slot for
10367         non-anulled condition too.
10368
10369 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
10370
10371         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
10372         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10373         any_parallel_operand, lmw_operation, stmw_operation,
10374         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
10375         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
10376         any_parallel_operand.
10377         (return_and_restore_fpregs_{si,di}): Same.
10378
10379 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
10380
10381         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
10382         if pred->singleton != PARALLEL, issue a warning and pretend it was.
10383         Also issue a warning for any predicate we don't know about.
10384
10385 2004-08-12  Richard Henderson  <rth@redhat.com>
10386
10387         * config/i386/i386.c (internal_label_prefix): Export.
10388         (internal_label_prefix_len, struct ix86_address,
10389         ix86_decompose_address, maybe_get_pool_constant,
10390         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
10391         memory_address_length): Export.
10392         (any_fp_register_operand, fp_register_operand,
10393         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
10394         x86_64_general_operand, x86_64_szext_general_operand,
10395         x86_64_nonmemory_operand, x86_64_movabs_operand,
10396         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
10397         x86_64_zext_immediate_operand, const_int_1_31_operand,
10398         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
10399         tls_symbolic_operand, global_dynamic_symbolic_operand,
10400         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
10401         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
10402         constant_call_address_operand, const0_operand, const1_operand,
10403         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
10404         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
10405         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
10406         general_no_elim_operand, nonmemory_no_elim_operand,
10407         index_register_operand, q_regs_operand, flags_reg_operand,
10408         non_q_regs_operand, zero_extended_scalar_load_operand,
10409         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
10410         ix86_comparison_operator, ix86_carry_flag_operator,
10411         fcmov_comparison_operator, promotable_binary_operator,
10412         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
10413         mult_operator, div_operator, arith_or_logical_operator,
10414         memory_displacement_operand, cmpsi_operand, long_memory_operand,
10415         aligned_operand): Move to predicates.md as define_predicates.
10416         (tls_symbolic_operand_1): Remove.
10417         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
10418         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
10419         (legitimize_address): Merge tls_symbolic_operand contents.
10420         (ix86_expand_move): Likewise.
10421         * config/i386/i386-protos.h: Update for exports.
10422         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
10423         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
10424         * config/i386/i386.md: Include predicates.md.
10425         * config/i386/predicates.md: New file.
10426
10427 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
10428
10429         PR c++/16924
10430         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
10431         SYMBOL_REF_DECL.
10432         (i386_pe_mark_dllimport): Likewise.
10433         (i386_pe_encode_section_info): Likewise, when overriding
10434         dllimport attribute.
10435
10436 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
10437
10438         * configure.ac: When testing for flex, nm, ar, and bison, check
10439         that they will actually be built.
10440         * configure: Regenerate.
10441
10442 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
10443
10444         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
10445         (MOVE_MAX_PIECES): Define.
10446
10447 2004-08-12  Devang patel  <dpatel@apple.com>
10448
10449         * dbxout.c (dbxout_begin_prologue): New function.
10450         (dbx_debug_hooks): Use new begin prologue hook.
10451         (dbxout_function_end): Emit N_ENSYM.
10452         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
10453
10454 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
10455
10456         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
10457         argument is float*.
10458
10459         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
10460         for vec_dss.
10461
10462         * doc/extend.texi (AltiVec builtins): Fix description for recent
10463         changes.  Update operation list to match current support.
10464
10465 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
10466
10467         * config/s390/s390.c (struct s390_frame_layout): New struct as element
10468         of struct machine_function.
10469         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
10470         changed all uses.
10471         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
10472         changed all uses.
10473         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
10474         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
10475         (s390_frame_area, s390_register_info): New functions.
10476         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
10477         for base register.
10478         (s390_return_addr_rtx, s390_return_address_offset)
10479         (s390_va_start, s390_gimplify_va_arg)
10480         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
10481         layouts.
10482         (s390_frame_info): Functionality partly moved to s390_register_info.
10483         Made adaptions for new stack layout.
10484         (save_gprs, restore_gprs): Changed meaning of second parameter and
10485         adapted all callers.
10486
10487         * config/s390/s390.h (s390_backchain_string): New global variable.
10488         (MASK_BACKCHAIN): Removed definition.
10489         (TARGET_BACKCHAIN): Changed check.
10490         (TARGET_KERNEL_BACKCHAIN): New macro.
10491         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
10492         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
10493         "kernel-backchain".
10494         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
10495
10496         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
10497         as condition.  Adjusted for new stack layout.
10498
10499         * doc/invoke.texi: Added documentation for new option
10500         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
10501         "-mno-backchain".
10502
10503 2004-08-12  Paul Brook  <paul@codesourcery.com>
10504
10505         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
10506         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
10507
10508 2004-08-12  David Daney  <ddaney@avtrex.com>
10509
10510         * java/gcj.texi:  Add subsection on signal usage.
10511
10512 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
10513
10514         * expr.c (move_by_pieces): Set alignment for move to minimum of
10515         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
10516         alignment, but not less than the original alignment.
10517         (move_by_pieces_ninsns): Same.
10518         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
10519         (store_by_pieces_1): Same.
10520
10521 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
10522
10523         PR tree-optimization/16867
10524         * tree.c (is_global_var): New function.
10525         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
10526         Call is_global_var.
10527         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
10528         Update all users.
10529         (is_global_var): Declare.
10530         * tree-dfa.c (dump_variable): Display global and addressable
10531         attributes.
10532         (add_referenced_var): Clarify documentation when marking
10533         variables call-clobbered.
10534         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
10535         instead of needs_to_live_in_memory.
10536         (mark_call_clobbered): If the variable is a tag, mark it
10537         DECL_EXTERNAL.
10538         * tree-gimple.c (is_gimple_reg): Don't check for
10539         TREE_ADDRESSABLE.
10540         (is_gimple_non_addressable): Likewise.
10541         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
10542         needs to be marked call-clobbered.
10543         (setup_pointers_and_addressables): Call is_global_var instead
10544         of needs_to_live_in_memory.
10545         * tree-ssa-dce.c (need_to_preserve_store): Remove.
10546         Update all users with is_global_var.
10547         (mark_stmt_if_obviously_necessary): Fix processing of aliased
10548         stores.  Don't check the virtual definitions.  Rather, check
10549         whether the store is going into global memory.
10550         (find_obviously_necessary_stmts): Get the symbol from the PHI
10551         result.
10552         * tree-ssa-operands.c (get_call_expr_operands): Do not add
10553         clobbering may-defs if the call does not have side effects.
10554
10555 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
10556
10557         PR c++/16276
10558         * output.h (default_function_rodata_section,
10559         default_no_function_rodata_section): New prototypes.
10560         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
10561         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
10562         (TARGET_ASM_OUT): Add it.
10563         * varasm.c (default_function_rodata_section,
10564         default_no_function_rodata_section): New functions.
10565         * final.c (final_scan_insn): Call
10566         targetm.asm_out.function_rodata_section instead of
10567         readonly_data_section.
10568         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
10569         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
10570         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
10571         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
10572         Likewise.
10573         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
10574         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
10575         Likewise.
10576         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
10577         Likewise.
10578         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
10579         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
10580         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
10581
10582 2004-08-12  Paul Brook  <paul@codesourcery.com>
10583
10584         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
10585         frame info.
10586         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
10587         DWARF2_UNWIND_INFO.
10588
10589 2004-08-12  Ben Elliston  <bje@au.ibm.com>
10590
10591         PR target/16286
10592         * config/rs6000/altivec.h: Change vector to __vector throughout.
10593         (Except for the `vector' macro itself).
10594
10595 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
10596
10597         * genpreds.c: Add capability to generate predicate bodies as
10598         well as function prototypes.  Write function prototypes for
10599         the generic predicates too.
10600         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
10601         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
10602         (write_match_code, write_predicate_expr, write_one_predicate_function)
10603         (parse_option): New functions.
10604         (output_predicate_decls): Delete.
10605         (main): Read the machine description, process DEFINE_PREDICATE or
10606         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
10607         as appropriate.
10608
10609         * genrecog.c (struct decision_test): Replace index with
10610         struct pred_data pointer.
10611         (next_index): Remove, unused.
10612         (pred_table, preds, special_mode_pred_table): Delete.
10613         (compute_predicate_codes, process_define_predicate): New functions.
10614         (validate_pattern, add_to_sequence, write_switch): Update for
10615         new data structures.
10616         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
10617         Check both error_count and have_error.
10618
10619         * gensupport.c (in_fname, first_predicate): New globals.
10620         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
10621         (predicate_table, last_predicate, old_pred_table)
10622         (old_special_pred_table): New statics.
10623         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
10624         (add_predicate, init_predicate_table): New functions.
10625         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
10626         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
10627         it or max_include_len.  Call init_predicate_table.
10628         (read_rtx): Run the predicate queue after the attribute queue
10629         but before all the others.
10630         * gensupport.h (in_fname, struct pred_data, first_predicate)
10631         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
10632         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
10633         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
10634         * dummy-conditions.c: Don't include bconfig.h, system.h,
10635         coretypes.h, tm.h, or system.h.  Do include stddef.h.
10636         Duplicate declaration of struct c_test from gensupport.h.
10637
10638         * Makefile.in (OBJS-common): Add insn-preds.o.
10639         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
10640         (insn-preds.c, insn-preds.o): New rules.
10641         (s-preds): Also generate insn-preds.c.
10642         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
10643         Update dependencies.
10644         (print-rtl.o, print-rtl1.o): Correct dependencies.
10645
10646         * recog.h: Delete prototypes of predicate functions.
10647
10648         * doc/md.texi (Predicates): New section with complete
10649         documentation of operand/operator predicates.  Remove some
10650         incomplete documentation of predicates from other places.
10651         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
10652         PREDICATE_CODES; indicate that both are deprecated in favor
10653         of define_predicate/define_special_predicate.
10654
10655         * config/ia64/ia64.c: All predicate function definitions moved
10656         to ia64.md, except
10657         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
10658         (ia64_expand_load_address, ia64_expand_move):
10659         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
10660
10661         * config/ia64/ia64.md: All predicates now defined here.
10662         (symbolic_operand): Is now a special predicate.
10663
10664         * config/ia64/ia64.h: Declare ia64_section_threshold.
10665         (PREDICATE_CODES): Delete.
10666
10667 2004-08-12  Richard Henderson  <rth@redhat.com>
10668
10669         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
10670         * c-semantics.c (add_stmt): Set it.
10671         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
10672         before instantiating a variable sized type.
10673
10674 2004-08-12  Richard Henderson  <rth@redhat.com>
10675
10676         * stor-layout.c (round_up, round_down): Move ...
10677         * fold-const.c (round_up, round_down): ... here.  Use
10678         multiple_of_p to avoid any arithmetic at all.
10679
10680 2004-08-12  Richard Henderson  <rth@redhat.com>
10681
10682         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
10683         (gimplify_init_ctor_preeval_1): New.
10684         (gimplify_init_ctor_preeval): New.
10685         (gimplify_init_ctor_eval): New.
10686         (gimplify_init_constructor): Use them.  Always gimplify the LHS
10687         object first.
10688
10689 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
10690
10691         (This patch is part of merge of objc-improvements-branch
10692         into mainline.)
10693
10694         * doc/frontends.texi: Mention Objective-C++ in addition to
10695         Objective-C.
10696         * doc/install.texi: Add 'obj-c++' to list of configurable
10697         languages.
10698         * doc/invoke.texi: Rename Objective-C option headings to
10699         indicate they also apply to Objective-C++.  List file
10700         extensions for Objective-C++ sources.  Mention that
10701         ObjC and ObjC++ compilations may also use C and C++ options,
10702         respectively.  Point users to doc/standards.texi for
10703         further info on ObjC and ObjC++.
10704         * doc/sourcebuild.texi: Mention the objcp/ directory and
10705         the Objective-C++ sources it contains.
10706         * doc/standards.texi: Update link to Apple ObjC site;
10707         add link to gcc readings.html WWW doc.
10708
10709 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
10710
10711         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
10712         and 2004-07-14 changes.
10713
10714 2004-08-12  Paul Brook  <paul@codesourcery.com>
10715
10716         * doc/invoke.texi: Fix typo.
10717
10718 2004-08-11 Devang Patel  <dpatel@apple.com>
10719
10720         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
10721         and -no_dead_strip_inits_and_terms.
10722         (LINK_SPEC): Same.
10723         * doc/invoke.texi (Darwin Options): Document -dead_strip and
10724         -no_dead_strip_inits_and_terms.
10725
10726 2004-08-11  Paul Brook  <paul@codesourcery.com>
10727
10728         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
10729         (arm_load_pic_register): ... to this.
10730         * config/arm/arm.c (arm_finalize_pic): Rename ...
10731         (arm_load_pic_register): ... to this.  Always output insns at the
10732         current location.  Load via low reg in thumb mode.
10733         (arm_expand_prologue): Call arm_load_pic_register.
10734         (thumb_expand_prologue): Ditto.
10735         * config/arm/arm.h (FINALIZE_PIC): Remove.
10736         * config/arm/arm.md (builtin_setjmp_receiver): Call
10737         arm_load_pic_register.
10738
10739 2004-08-11  Paul Brook  <paul@codesourcery.com>
10740
10741         * arm.c (thumb_force_lr_save): Add prototype.
10742         (thumb_compute_save_reg_mask): New function.
10743         (thumb_find_work_register): New function.
10744         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
10745         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
10746         Don't clobber r3 when removing pretend args.
10747         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
10748         (thumb_output_function_prologue): Use new functions.
10749         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
10750         * arm.h (THUMB_REG_PUSHED_P): Remove.
10751
10752 2004-08-11  James E Wilson  <wilson@specifixinc.com>
10753
10754         PR rtl-optimization/16490
10755         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
10756         global_live_at_end for new basic block if already set for other blocks.
10757
10758 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
10759
10760         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
10761
10762         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
10763         (mfcr rlwinm rlwinm patterns): Set length to 12.
10764
10765 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
10766
10767         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
10768         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
10769         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
10770         (start_ssa_stmt_operands): Delete.
10771         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
10772         struct stmt_operands_d.
10773         (build_ssa_operands): New extern entry point.
10774         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
10775         building code, replace with create_ssa_artficial_load_stmt().
10776         * tree-ssa-operands.c (struct voperands_d): Delete.
10777         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
10778         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
10779         (free_uses, free_defs, free_vuses, free_v_may_defs,
10780         free_v_must_defs): Remove dealloc parameter.
10781         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
10782         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
10783         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
10784         vector comparisons, ssa_name reuse, and allocations here.
10785         (verify_start_operands): Delete.
10786         (finalize_ssa_stmt_operands): Set new operands by calling finalize
10787         routines.
10788         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
10789         (append_def, append_usei): Simplify to simple accumulation.
10790         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
10791         duplicates and simple accumulation.
10792         (free_ssa_operands): Free vectors in a stmt_operand structure.
10793         (build_ssa_operands): New. Create a new stmt_operand structure from
10794         a stmt and an old set of stmt_operands.
10795         (get_stmt_operands): Simplify and call build_ssa_operands.
10796         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
10797         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
10798         add_call_read_ops): Don't pass prev_vops around anymore.
10799         (note_addressable): Return if no stmt annotation.
10800         (copy_virtual_operands): Access v_may_def operands through a struct.
10801         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
10802         hash tables without treating the stmt as a real stmt.
10803         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
10804         v_may_def def and use through a struct instead of 2 array elements.
10805         (struct v_may_def_optype_d): Use v_may_def_operand_type.
10806         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
10807
10808 2004-08-11  Nick Clifton  <nickc@redhat.com>
10809
10810         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
10811         this funciton's behaviour.  Return true when the current function
10812         has a section attribute and -mlong-calls is in effect.
10813         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
10814         short-call marker when -mlong-calls is in effect and the function
10815         has a section attribute.
10816
10817 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
10818
10819         * stmt.c (expand_return): If asked to return the RESULT_DECL,
10820         just call expand_value_return on result_rtl.
10821
10822 2004-08-10  Richard Henderson  <rth@redhat.com>
10823
10824         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
10825         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
10826         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
10827         (add_location_or_const_value_attribute): ... not here.  Use
10828         loc_descriptor_from_tree if possible.
10829         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
10830         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
10831         values specially.
10832         (loc_descriptor_from_tree): New.  Update callers.
10833         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
10834         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
10835         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
10836         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
10837         and BUILT_IN_STACK_RESTORE.
10838         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
10839         * stmt.c (expand_stack_alloc): Remove.
10840         * tree-mudflap.c (mx_register_decls): Don't look for
10841         BUILT_IN_STACK_ALLOC.
10842         * tree-nested.c (convert_local_reference): Likewise.
10843         * tree.h (DECL_VALUE_EXPR): New.
10844
10845 2004-08-10  Richard Henderson  <rth@redhat.com>
10846
10847         * stor-layout.c (round_up): Check for 0/1 before dividing.
10848         (round_down): Likewise.
10849
10850         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
10851
10852 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
10853
10854         * config.gcc (arm*-*-eabi*): New target.
10855         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
10856         (TARGET_LIB_INT_CMP_BIASED): Likewise.
10857         * expmed.c (expand_divmod): Try a two-valued divmod function as a
10858         last resort.
10859         * gthr.h: Remove bogus tokens at end of #pragma.
10860         * optabs.c (expand_twoval_binop_libfunc): New function.
10861         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
10862         (prepare_float_lib_cmp): Try reversing the condition.
10863         (debug_optab_libfuncs): New function.
10864         * optabs.h (expand_twoval_binop_libfunc): Declare.
10865         * config/arm/arm.c (arm_init_libfuncs): New function.
10866         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
10867         (TARGET_INIT_LIBFUNCS): Define it.
10868         * config/arm/arm.h (TARGET_BPABI): New macro.
10869         * config/arm/arm-protos.h
10870         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
10871         * config/arm/bpabi.S: New file.
10872         * config/arm/bpabi.c: Likewise.
10873         * config/arm/bpabi.h: Likewise.
10874         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
10875         (__aeabi_drsub): Likewise.
10876         (__aeabi_dsub): Likewise.
10877         (__aeabi_dadd): Likewise.
10878         (__aeabi_ui2d): Likewise.
10879         (__aeabi_i2d): Likewise.
10880         (__aeabi_f2d): Likewise.
10881         (__aeabi_dmul): Likewise.
10882         (__aeabi_ddiv): Likewise.
10883         (__aeabi_cdrcmple): Likewise.
10884         (__aeabi_cdcmpeq): Likewise.
10885         (__aeabi_cdcmple): Likewise.
10886         (__aeabi_dcmpeq): Likewise.
10887         (__aeabi_dcmplt): Likewise.
10888         (__aeabi_dcmple): Likewise.
10889         (__aeabi_dcmpge): Likewise.
10890         (__aeabi_dcmpgt): Likewise.
10891         (__aeabi_dcmpun): Likewise.
10892         (__aeabi_d2iz): Likewise.
10893         (__aeabi_d2uiz): Likewise.
10894         (__aeabi_d2f): Likewise.
10895         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
10896         (__aeabi_frsub): Likewise.
10897         (__aeabi_fsub): Likewise.
10898         (__aeabi_fadd): Likewise.
10899         (__aeabi_ui2f): Likewise.
10900         (__aeabi_i2f): Likewise.
10901         (__aeabi_fmul): Likewise.
10902         (__aeabi_fdiv): Likewise.
10903         (__aeabi_cfrcmple): Likewise.
10904         (__aeabi_cfcmpeq): Likewise.
10905         (__aeabi_cfcmple): Likewise.
10906         (__aeabi_fcmpeq): Likewise.
10907         (__aeabi_fcmplt): Likewise.
10908         (__aeabi_fcmple): Likewise.
10909         (__aeabi_fcmpge): Likewise.
10910         (__aeabi_fcmpgt): Likewise.
10911         (__aeabi_fcmpun): Likewise.
10912         (__aeabi_f2iz): Likewise.
10913         (__aeabi_f2uiz): Likewise.
10914         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
10915         (__aeabi_uidivmod): New function or alias.
10916         (__aeabi_idivmod): Likewise.
10917         (__aeabi_idiv0): Likewise.
10918         (__aeabi_ldiv0): Likewise.
10919         (__aeabi_llsr): Likewise.
10920         (__aeabi_lasr): Likewise.
10921         (__aeabi_llsl): Likewise.
10922         (bpabi.S): Include it.
10923         * config/arm/libgcc-bpabi.ver: New file.
10924         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
10925         (LINK_SPEC): Remove.
10926         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
10927         __aeabi_ulcmp.
10928         * config/arm/t-bpabi: New file.
10929         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
10930         (TARGET_LIB_INT_CMP_BIASED): Likewise.
10931
10932 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
10933
10934         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
10935         * config/rs6000/rs6000.md (clrmemsi): New pattern.
10936         * config/rs6000/rs6000.c (expand_block_clear): New function.
10937         (expand_block_move): Convert alignment to bits.  Use SImode and
10938         HImode for unaligned addresses if not STRICT_ALIGNMENT.
10939
10940 2004-08-10  Caroline Tice  <ctice@apple.com>
10941
10942         * varasm.c (unlikely_section_label): New global variable.
10943         (unlikely_text_section_name): New global variable.
10944         (text_section):  Remove alignment statement.
10945         (unlikely_text_section): Remove alignment statement; use
10946         unlikely_section_label rather than hard-coded string.
10947         (assemble_start_function): Initialize unlikely_section_label and
10948         unlikely_text_section_name;  make sure cold section is properly
10949         aligned at start of function; output unlikely_section_label if
10950         appropriate.
10951
10952 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
10953
10954         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
10955         * config/s390/s390.c (s390_canonicalize_comparison): New function.
10956         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
10957         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
10958         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
10959         ("*tmqi_mem"): Remove SUBREG from pattern.
10960         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
10961         ("*andsi3_cconly"): Likewise.
10962
10963 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
10964
10965         PR target/16909
10966         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
10967
10968 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
10969
10970         * doc/sourcebuild.texi (compat testing): Document available test
10971         framework commands.  Use the preferred spelling of DejaGnu.
10972
10973 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
10974
10975         * lambda.h: Add matrix type, and prototypes for remainder of
10976         matrix and vector functions.
10977         (lambda_vector_mult_const): New function.
10978         (lambda_vector_negate): Ditto.
10979         (lambda_vector_add): Ditto.
10980         (lambda_vector_add_mc): Ditto.
10981         (lambda_vector_copy): Ditto.
10982         (lambda_vector_zerop): Ditto.
10983         (lambda_vector_equal): Ditto.
10984         (lambda_vector_min_nz): Ditto.
10985         (lambda_vector_first_nz): Ditto.
10986         (lambda_vector_matrix_mult): Ditto.
10987         * lambda-mat.c: New file.
10988         * Makefile.in (lambda-mat.o): New.
10989
10990 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
10991
10992         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
10993         after linking stmt into the program.
10994         (bsi_remove): Don't call modify_stmt.
10995         * tree-complex.c (update_complex_assignment,
10996         expand_complex_comparison): Call modify_stmt after changing the stmt.
10997         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
10998         removing the stmt.
10999         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
11000         the stmt, and only if needed.
11001         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
11002         expression.
11003         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
11004         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
11005         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
11006         (eliminate_redundant_computations): Don't pass an annotation. Call
11007         modify_stmt rather than setting the annotation directly.
11008         (record_equivalences_from_stmt): Remove unused local 'j'.
11009         (cprop_operand): Take a stmt rather than an annotation as a parameter.
11010         Call modify_stmt.
11011         (cprop_into_stmt): Pass stmt rather than annotation.
11012         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
11013         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
11014         modify_stmt.
11015         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
11016
11017 2004-08-10  Jason Merrill  <jason@redhat.com>
11018
11019         PR middle-end/16948
11020         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
11021         the RESULT_DECL.
11022
11023 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
11024
11025         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
11026         hash function.
11027
11028 2004-08-10  Roger Sayle  <roger@eyesopen.com>
11029
11030         * config/mips/mips.md: New reciprocal square root patterns that
11031         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
11032
11033 2004-08-10  Paul Brook  <paul@codesourcery.com>
11034
11035         * config/arm/arm-protos.h (arm_set_return_address,
11036         thumb_set_return_address): Add prototypes.
11037         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
11038         * config/arm/arm.c (arm_compute_func_type,
11039         use_return_insn, arm_compute_save_reg0_reg12_mask,
11040         arm_compute_save_reg_mask, arm_output_function_prologue,
11041         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
11042         current_function_calls_eh_return.
11043         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
11044         old eh code.
11045         (arm_set_return_address, thumb_set_return_address): New functions.
11046         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
11047         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
11048         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
11049         (epilogue): Use the stackadj register.
11050         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
11051
11052 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
11053
11054         PR target/3144
11055         * expr.c (move_by_pieces_ninsns): Add max_size argument.
11056         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
11057         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
11058         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
11059         but using MOVE_RATIO.
11060         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
11061         (can_store_by_pieces): Change max_size type to unsigned int.
11062         (store_by_pieces_1): Likewise.  Pass max_size to
11063         move_by_pieces_ninsns.
11064         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
11065         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
11066         to move_by_pieces_ninsns.
11067         (STORE_BY_PIECES_P): Define.
11068         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
11069         to move_by_pieces_ninsns.
11070         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
11071
11072         * config/i386/i386.h (CLEAR_RATIO): Define.
11073
11074 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11075
11076         * expr.c (expand_expr_real_1): Add back code that was not dead.
11077
11078 2004-08-09  Andrew Pinski  <apinski@apple.com>
11079
11080         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
11081         which is found to be compatible before returning the aliasing set.
11082
11083 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
11084
11085         * ggc-zone.c (struct alloc_zone): Add statistics counters.
11086         (always_collect): New flag.
11087         (ggc_alloc_zone_1): Update statistics support.  Don't include
11088         overhead in allocated counter.
11089         (sweep_pages): Update allocated counter for large pages.  Don'y
11090         include overhead.
11091         (ggc_collect_1): Always collect.
11092         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
11093         whether to collect.
11094         (SCALE, LABEL): New macros.
11095         (ggc_print_statistics): Add statistics support.
11096
11097 2004-08-09  Roger Sayle  <roger@eyesopen.com>
11098
11099         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
11100         (init_expmed): Fix potential overrun problem with "all.reg".
11101         (expand_sdiv2_pow2): Add an alternate implementation for signed
11102         division, if the target provides a suitable conditional move insn.
11103
11104 2004-08-09  Paul Brook  <paul@codesourcery.com>
11105         Richard Henderson  <rth@redhat.com>
11106
11107         * unwind-dw2.c (uw_install_context_1): Update target saved stack
11108         pointer.
11109
11110 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
11111
11112         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
11113         Check DATA limit only if there's no AS limit.  Ignore insanely
11114         low DATA limits.
11115         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
11116         but take care that the AS limit isn't overrun.
11117         * doc/invoke.texi: Update documentation of min-heapsize parameter.
11118
11119 2004-08-09  Jeff Law  <law@redhat.com>
11120
11121         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
11122         (tree-ssa-threadupdate.o): Add dependencies.
11123         * tree-ssa-threadupdate.c: New file.
11124         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
11125         (rewrite_vars_out_of_ssa): Remove prototype.
11126         (cleanup_tree_cfg): Returns a bool.
11127         * tree.h (thread_through_all_blocks): Prototype.
11128         * tree-outof-ssa.c  (SSANORM_*): Move into here.
11129         (remove_ssa_form): Now static.
11130         (rewrite_vars_out_of_ssa): Kill.
11131         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
11132         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
11133         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
11134         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
11135         anything was changed.
11136         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
11137         from the PHI's annotation rather than the edge associated with
11138         the new argument.
11139         * tree-ssa-dom.c (redirection_edges): Kill.
11140         (redirect_edges_and_update_ssa_graph): Kill.
11141         (tree_ssa_dominator_optimize): Do not reset forwardable flag
11142         for blocks anymore.  Do not initialize redirection_edges.
11143         Call thread_through_all_blocks.  Simplify code for cleanup
11144         of the CFG and iterating.  No longer call cleanup_tree_cfg
11145         outside the iteration loop.
11146         (thread_across_edge): No longer mess with forwardable blocks.
11147
11148 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
11149
11150         * explow.c (memory_address): Use memory_address_p.
11151         * recog.c (general_operand): Likewise.
11152         * regrename.c: No need to define REG_OK_STRICT.
11153
11154 2004-08-09  Steven Bosscher  <stevenb@suse.de>
11155
11156         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
11157         New timers.
11158         * gcse.c: Include timevar.h.
11159         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
11160         and global_copy_prop_count.
11161         (local_const_prop_count, local_copy_prop_count): New static globals.
11162         (gcse_main): Set the right timevar for each pass.
11163         (cprop_jump): Increment global_const_prop_count when a constant is
11164         propagated.  Add "GLOBAL" to dump output.
11165         (cprop_insn): Increment global_const_prop_count when a constant is
11166         propagated, or global_copy_prop_count when a copy is propagated.
11167         (do_local_cprop): Likewise for local_const_prop_count and
11168         local_copy_prop_count.
11169         (one_cprop_pass): Initialize const/cprop counters to zero.
11170         Print out results of local and global const/cprop separately.
11171         (bypass_block): Break over-length line.
11172         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
11173         for bb-reorder.o and tracer.o.
11174
11175 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11176
11177         * Makefile.in (GTFILES): Remove stmt.c
11178         (stmt.o): Do not depend on gt-stmt.h.
11179         * emit-rtl.c (emit_line_note): Do not call
11180         set_file_and_line_for_stmt.
11181         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
11182         do everything.
11183         * function.c (free_after_parsing): Do not free STMT field.
11184         (allocate_struct_function): Do not call init_stmt_for_function.
11185         (assign_stack_temp_for_type): Do not accept values of keep
11186         other than 0 or 1.
11187         (init_temp_slots): Do not initialize removed variables.
11188         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
11189         and X_VAR_TEMP_SLOT_LEVEL fields.
11190         * rtl.h (set_file_and_line_for_stmt): Remove.
11191         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
11192         struct stmt_status, cond_stack, case_stack, nesting_stack,
11193         nesting_depth, emit_locus, set_file_and_line_for_stmt,
11194         same_case_target_p, init_stmt_for_function, emit_nop,
11195         expand_start_cond, expand_start_elseif, expand_start_else,
11196         expand_elseif, expand_end_cond): Remove.
11197         (preserve_subexpressions_p): Remove references to CFUN->STMT.
11198         (expand_start_case, expand_end_case_type): Remove, merge into...
11199         (expand_case): ... this one, including other bits from
11200         expand_expr_real_1.  Inline same_case_target_p.  Turn members
11201         of CASE_STACK into local variables.
11202         (emit_case_bit_tests): Inline same_case_target_p.
11203         (add_case_node): Add HEAD argument, return new head of the list,
11204         do not handle default label here.
11205         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
11206         expand_start_elseif, current_nesting_level, expand_start_case,
11207         expand_end_case_type, expand_end_case, add_case_node,
11208         init_stmt_for_function, expand_elseif): Remove prototypes.
11209         (expand_case): Add prototype.
11210
11211 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11212
11213         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
11214
11215 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11216
11217         * expr.c (var_rtx): Remove.
11218         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
11219         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
11220         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
11221         Abort.
11222         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
11223         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
11224         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
11225
11226 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
11227         Ayal Zaks <zaks@il.ibm.com>
11228
11229         * common.opt (freschedule-modulo-scheduled-loops): New flag.
11230         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
11231         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
11232         when -freschedule-modulo-scheduled-loops flag is not specified.
11233         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
11234         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
11235         More accurate placing of insn in row of partial schedule.
11236         (ps_insn_find_column): New function.
11237         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
11238         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
11239         (schedule_region): Use sched_is_disabled_for_current_region_p.
11240         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
11241
11242 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
11243
11244         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
11245         change.
11246
11247 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
11248
11249         * config/i386/i386.c (ix86_expand_clrmem): Properly call
11250         gen_strset for 64bit target.
11251
11252 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
11253
11254         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
11255
11256 2004-08-07  Jason Merrill  <jason@redhat.com>
11257
11258         Make return in memory explicit.
11259         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
11260         (assign_parm_find_data_types): Remove code for old front end
11261         invisible reference handling.
11262         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
11263         (expand_function_end): Likewise.
11264         * gimplify.c (gimplify_return_expr): Handle a dereferenced
11265         RESULT_DECL.
11266         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
11267         (declare_return_variable): Handle DECL_BY_REFERENCE.
11268         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
11269         (cp_genericize_r): Use convert_from_reference.
11270         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
11271         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
11272
11273         * c-common.c (c_warn_unused_result): Check TREE_USED before
11274         warning about a CALL_EXPR with an unused value.
11275
11276 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
11277
11278         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
11279         to the compiler.  Use -fshort-wchar by default.
11280
11281 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
11282
11283         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
11284         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
11285         threshhold.
11286         * doc/invoke.texi (param): Document min-crossjump-insns.
11287
11288 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
11289
11290         PR c/13282
11291         * c.opt (Wmissing-field-initializers): New option.
11292         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
11293         * c-typeck.c (pop_init_level): Guard the missing field warning with
11294         warn_missing_field_initializers rather than extra_warnings.
11295         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
11296         some of the explanation from...
11297         (-Wextra): ...here.  Say that the missing field warning can be
11298         seperately controlled by -Wmissing-field-initializers.
11299
11300 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
11301
11302         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
11303         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
11304         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
11305         * tree.def (ENTRY_VALUE_EXPR): Remove.
11306
11307 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
11308
11309         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
11310         the places where it is actually needed.  Don't use repz; stosb
11311         for -Os with sufficiently small constant sizes.
11312         For sufficiently small repz; stos{l,q} repeat counts use a sequence
11313         of stos{l,q} instructions instead.
11314
11315 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11316
11317         PR tree-optimization/16807
11318         * loop-iv.c (dump_iv_info): Dump invariants correctly.
11319         (iv_subreg, iv_extend): Express value of invariant purely in
11320         base field.
11321
11322 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
11323
11324         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
11325         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
11326
11327 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
11328
11329         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
11330         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
11331         pre_dec_operand.
11332         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
11333         pattern until reload is finished to allow better code generation
11334         and split them completely into separate instrunctions.
11335         (*andsi3_split): New pattern.
11336
11337 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
11338
11339         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
11340         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
11341         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
11342         * tree.h (handle_dll_attribute): Declare.  Test
11343         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
11344         * c-common.h (c_determine_visibility): Declare.
11345         * c-common.c (c_determine_visibility): New function.
11346         * c-decl.c (finish_decl): Use it.
11347         (finish_function): Likewise.
11348         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
11349         zero, by default.  Use #if, not #ifdef, to test it.
11350         * config/arm/arm.c (arm_attribute_table): Use
11351         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
11352         #if.
11353         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
11354         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
11355         to 1.
11356         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
11357         * config/i386/i386.c (ix86_attribute_table): Use
11358         handle_dll_attribute for dllimport/dllexport.  Test
11359         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
11360         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
11361         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
11362         it to 1.
11363         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
11364         with #if.
11365         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
11366         it to 1.
11367         * doc/extend.texi (dllexport): Clarify and correct documentation.
11368         (dllimport): Likewise.
11369         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
11370         handle_dll_attribute.
11371
11372 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11373
11374         * tree-ssa-loop-manip.c: New file.
11375         * Makefile.in (tree-ssa-loop-manip.o): Add.
11376         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
11377         Declare.
11378         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
11379         form.
11380         (tree_ssa_loop_done): Verify loop closed ssa form.
11381         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
11382
11383 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11384
11385         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
11386         pa_asm_output_aligned_local): New functions.
11387         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
11388         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
11389         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
11390         pa_asm_output_aligned_common.
11391         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
11392         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
11393         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
11394         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
11395         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
11396         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
11397         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
11398         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
11399         common data.
11400
11401 2004-08-05  Andrew Pinski  <apinski@apple.com>
11402
11403         * objc/objc-act.c (build_objc_string_object): Mark the address
11404         expression as constant.
11405
11406 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
11407
11408         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
11409         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
11410         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
11411
11412 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
11413
11414         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
11415         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
11416         out, and associated obsolete comments.
11417
11418 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
11419
11420         * tree.h (force_fit_type): Return a tree, take three flags.
11421         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
11422         TREE_CONSTANT_OVERFLOW here.
11423         (int_const_binop, const_binop): Adjust.
11424         (size_int_type): Do sign extension here.
11425         (fold_convert_const, optimize_bit_field_compare,
11426         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
11427         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
11428         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
11429
11430 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11431
11432         PR tree-optimization/16864
11433         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
11434         for ssa names without default_def.
11435
11436 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
11437
11438         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
11439         frame pointer, restore eax with an ebp-relative address.
11440
11441 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
11442
11443         PR 14516
11444         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
11445         * c-common.h (make_rtl_for_local_static): Delete.
11446         * c-decl.c (shadow_tag_warned): Clean up comment.
11447         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
11448         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
11449         * c-semantics.c (make_rtl_for_local_static): Delete.
11450         * expr.c (init_block_move_fn): Use set_user_assembler_name.
11451         (init_block_clear_fn): Likewise.
11452         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
11453         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
11454         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
11455         * tree.h (make_decl_rtl): Remove second parameter.
11456         (set_user_assembler_name): New.
11457         * varasm.c (set_user_assembler_name): New.
11458         (make_decl_rtl): Remove second parameter.  Update callers in many
11459         files.
11460
11461 2004-08-05  Adam Nemet  <anemet@lnxw.com>
11462
11463         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
11464         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
11465         to LynxOS 4.0.
11466         * gthr-lynx.h: New file.
11467         * config/lynx-ng.h: Remove file.
11468         * config/lynx.h: Update to LynxOS 4.0.
11469         * config/t-lynx: New file.
11470         * config/i386/lynx-ng.h: Remove file.
11471         * config/i386/lynx.h: Update to LynxOS 4.0.
11472         * config/rs6000/lynxbase.h: Remove file.
11473         * config/rs6000/lynx.h: Update to LynxOS 4.0.
11474         * config/rs6000/t-lynx: New file.
11475         * doc/install.texi (Options specification): Remove reference to
11476         LynxOS from systems where --with-gnu-as makes a difference.
11477
11478 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
11479
11480         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
11481         __UINTMAX_TYPE__.
11482         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
11483         __INTMAX_MAX__.
11484         (c_cpp_builtins): Call it.
11485         * doc/cpp.texi: Update.
11486
11487 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
11488
11489         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
11490         cost.
11491
11492 2004-08-04  Jan Hubicka  <jh@suse.cz>
11493
11494         * basic-block.h (profile_staus): New global variable.
11495         * cfg.c (profile_status): Declare.
11496         (check_bb_profile): Break out from ....; use profile_status
11497         (dump_flow_info): ... here.
11498         * cfgbuild.c (find_basic_blocks): Set profile_status.
11499         * cfgexpand.c (tree_expand_cfg): Likewise.
11500         * predict.c (estimate_probability): Likewise.
11501         * profile.c (branch_prob): Likewise.
11502         * tree-cfg.c (build_tree_cfg): Likewise.
11503         (dump_function_to_file): Use check_bb_profile.
11504         * tree-pretty-print (dump_bb_header): Likewise.
11505         * tree-profile.c (do_tree_profiling): Cleanup.
11506
11507 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
11508
11509         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
11510         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
11511         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
11512         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
11513         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
11514         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
11515         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
11516         (ggc-none.o, errors.o): Move rule to generators section;
11517         correct dependencies.
11518         (min-insn-modes.o): Move rule to generators section; remove
11519         unnecessary explicit command; correct dependencies.
11520         (print-rtl.o, print-rtl1.o): Correct dependencies.
11521         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
11522         (mostlyclean): Update.
11523
11524         * errors.c: Include bconfig.h not config.h.  Correct comment.
11525         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
11526         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
11527         * print-rtl.c: Don't include tm_p.h.
11528
11529         * rtl.h: Move forward-decl of struct function down where it's
11530         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
11531         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
11532
11533 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11534             Jeff Law  <law@redhat.com>
11535
11536         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
11537         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
11538         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
11539         manipulate the duplicated ssa names.
11540         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
11541         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
11542         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
11543         New functions.
11544         (release_ssa_name): Do not release ssa names that may have multiple
11545         definitions.
11546         * tree.h (release_ssa_name_force, mark_for_rewrite,
11547         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
11548         marked_ssa_names): Declare.
11549         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
11550         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
11551         Update call to rewrite_ssa_into_ssa.
11552
11553 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
11554
11555         * defaults.h (TARGET_DECLSPEC): New macro.
11556         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
11557         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
11558         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
11559         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
11560         __declspec support.
11561         (TARGET_DECLSPEC): Define.
11562         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
11563         __declspec support.
11564         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
11565         __declspec support.
11566         (TARGET_DECLSPEC): Define.
11567         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
11568         __declspec support.
11569         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
11570         support.
11571         * doc/tm.texi (TARGET_DECLSPEC): Document.
11572
11573         * doc/extend.texi: Fix typo in comment.
11574
11575 2004-08-04  Paul Brook  <paul@codesourcery.com>
11576
11577         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
11578         (TARGET_CXX): Use it.
11579         * target.h (struct gcc_target): Add cdtor_returns_this.
11580         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
11581         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
11582         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
11583
11584 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
11585
11586         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
11587         low/high pair. Do range checking directly.
11588         (interpret_integer): Adjust.
11589
11590 2004-08-04  Nick Clifton  <nickc@redhat.com>
11591
11592         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
11593         GCC ABI.
11594         * doc/invoke.texi: Document this new switch and also the -mrenesas
11595         switch.
11596
11597 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
11598
11599         * cfglayout.c (insn_locators_initialize): Update the current
11600         location before initializing a location.
11601
11602 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
11603
11604         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
11605         (dbxout_function_end): Return after emitting the "Lscope" symbol
11606         under the same conditions that this function formerly wasn't called.
11607         Add explanatory comments.
11608
11609         PR 14860
11610         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
11611         on the new decl.
11612
11613         PR 13956
11614         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
11615         functions, broken out of dbxout_block.
11616         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
11617         stabs too, if it contains symbols.  Use the begin_label and
11618         the Lscope label (emitted by dbxout_function_end) for the
11619         range of this block.
11620
11621 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
11622
11623         * doc/install.texi: Update autoconf version requirements.
11624
11625 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
11626
11627         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
11628         * recog.c (general_operand, immediate_operand, nonmemory_operand)
11629         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
11630         * regclass.c (record_reg_classes): Likewise.
11631         * reload.c (find_reloads): Likewise.
11632         * reload1.c (reload): Likewise.
11633
11634 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
11635
11636         * gensupport.c (init_md_reader_args_cb): Renamed from
11637         init_md_reader_args.  Add third option, callback function for
11638         parsing program-specific options.  Add diagnosis of incorrect
11639         number of input files.
11640         (init_md_reader): Fold into init_md_reader_args_cb.
11641         (init_md_reader_args): Now a thin wrapper around
11642         init_md_reader_args_cb.
11643         * gensupport.h: Update prototypes.
11644
11645         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
11646         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
11647         * genrecog.c: No need to diagnose lack of an input file;
11648         init_md_reader_args will handle it.
11649         * genconditions.c: Likewise, and use init_md_reader_args.
11650         * genconstants.c: Likewise, and no need to call read_md_rtx.
11651
11652 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
11653
11654         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
11655         declarations.
11656
11657 2004-08-03  Mike Stump  <mrs@apple.com>
11658
11659         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
11660         for frameworks.
11661         * doc/invoke.texi (Darwin Options): Update to reflect above.
11662
11663 2004-08-03  Roger Sayle  <roger@eyesopen.com>
11664
11665         PR middle-end/16790
11666         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
11667         truncations, not just global truncations.
11668
11669 2004-08-03  Andrew Pinski  <apinski@apple.com>
11670
11671         PR bootstrap/16865
11672         * loop-iv.c (simplify_using_assignment): Initialize lhs.
11673
11674 2004-08-03  Paul Brook  <paul@codesourcery.com>
11675
11676         * gcc/doc/install.texi: Document MPFR requirement.
11677
11678 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
11679
11680         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
11681         and mmap() explicitly instead of relying on preset autoconf cache
11682         variables.
11683         * configure: Regenerate.
11684
11685 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
11686
11687         PR target/16570
11688         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
11689         to tmake_file.
11690         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
11691         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
11692         to tmake_file.
11693
11694         * config/i386/t-gmm_malloc: New file.
11695         * config/i386/t-pmm_malloc: Likewise.
11696
11697         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
11698
11699 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
11700             Tanguy Fautrà <tfautre@pandora.be>
11701
11702         * config/i386/pmm_malloc.h: New file.
11703
11704 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
11705
11706         * config/i386/gmm_malloc.h: New file.
11707
11708 2004-08-03  Dale Johannesen  <dalej@apple.com>
11709
11710         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
11711         * c-common.c: Include opts.h.
11712         (c_common_get_alias_set): Fix check for a single input file.
11713         * toplev.c: Remove current_file_decl.
11714         * tree.h: Ditto.
11715
11716 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
11717
11718         * config.gcc (arm*-*-symbianelf*): New target.
11719         * config/arm/symbian.h: New file.
11720
11721         * gthr-gnat.c: Add visibility #pragmas.
11722         * gthr-gnat.h : Likewise.
11723         * gthr.h: Likewise.
11724         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
11725         (__ffsDI2): Likewise.
11726         (__clzSI2): Likewise.
11727         (__ctzSI2): Likewise.
11728         (__ctzDI2): Likewise.
11729         (__popcountSI2): Likewise.
11730         (__popcountDI2): Likewise.
11731         (__paritySI2): Likewise.
11732         (__parityDI2): Likewise.
11733         * libgcc2.h: Add visibility #pragmas.
11734         (__clzDI2): Add prototype.
11735         (__clzSI2): Likewise.
11736         (__ctzSI2): Likewise.
11737         (__ffsDI2): Likewise.
11738         (__ffsSI2): Likewise.
11739         (__ctzDI2): Likewise.
11740         (__popcountSI2): Likewise.
11741         (__popcountDI2): Likewise.
11742         (__paritySI2): Likewise.
11743         (__parityDI2): Likewise.
11744         * unwind-dw2-fde.h: Add visibility #pragmas.
11745         * unwind.h: Likewise.
11746
11747 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
11748             Dale Johannesen  <dalej@apple.com>
11749             Roger Sayle  <roger@eyesopen.com>
11750
11751         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
11752         constants more accurately.  Adjust costs for FMA instructions.
11753         Add cases for most logical and float operations.  Recurse into
11754         most operands.
11755
11756 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
11757
11758         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
11759
11760 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
11761
11762         * ra-build.c (conflicts_between_webs): For webs that cross a call add
11763         conflicts to regs_invalidated_by_call.
11764
11765 2004-08-03  Paul Brook  <paul@codesourcery.com>
11766
11767         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
11768
11769 2004-08-03  Jan Hubicka  <jh@suse.cz>
11770
11771         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
11772         ARRAY_REF argument.
11773
11774 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
11775
11776         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
11777         arm968es, arm10e, arm1020e, arm1022e.
11778         * invoke.texi: Update list of ARM cores.
11779         * arm-tune.md: Regenerate.
11780
11781 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
11782
11783         * arm/gentune.sh: New file.
11784         * arm/t-arm: New file.
11785         * arm/arm-tune.md: New file (autogenerated).
11786         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
11787         * arm.md (attribute tune): Delete.  Include arm-tune.md.
11788
11789 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
11790
11791         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
11792         penultimate parameter.  All callers adjusted.
11793         (struct prefix_list): Remove used_flag_ptr.
11794         (find_a_file): Do not set *pl->used_flag_ptr.
11795         (warn_B, warn_std_ptr): Remove.
11796
11797 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
11798             Mostafa Hagog <mustafa@il.ibm.com>
11799
11800         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
11801
11802 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
11803
11804         * dwarf2out.c (output_call_frame_info): Don't change data format
11805         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
11806         label.  Use 'true' not '1'.
11807         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
11808         required.
11809
11810 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11811
11812         * gdbinit.in: Reflect previous changes to rtunion_def.
11813
11814 2004-08-02  Roger Sayle  <roger@eyesopen.com>
11815
11816         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
11817         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
11818
11819 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11820
11821         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
11822         vec_p_reserve.
11823         * langhooks.h (lang_hooks::builtin_function): Rename parameter
11824         from "class" to "bt_class".
11825
11826 2004-08-02  Paul Brook  <paul@codesourcery.com>
11827
11828         PR rtl-optimization/15068
11829         * flow.c (init_propagate_block_info): Check condition is reversible.
11830
11831 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11832
11833         * gengtype.h (options::info): Change type to const char *.
11834         (enum gc_used_enum): Move out of struct type scope.
11835         * gengtype.c (create_option): Convert initializer for option::info to
11836         appropiate type.
11837         (adjust_field_type, walk_type, write_func_for_structure,
11838         write_root, write_roots): Remove pointless cast.
11839
11840 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
11841
11842         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
11843
11844 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11845
11846         * rtl.h (union rtunion_def): Have all members  start with the
11847         prefix "rt_".
11848         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
11849         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
11850         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
11851         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
11852         access.
11853         * gengtype.c (adjust_field_rtx_def): Likewise.
11854         * rtlanal.c (loc_mentioned_in_p): Likewise.
11855
11856 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
11857
11858         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
11859         Replace uses of mips/elf64.h with mips/elf.h
11860         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
11861         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
11862         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
11863         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
11864         (HANDLE_SYSV_PRAGMA): Delete.
11865         (ASM_OUTPUT_DEF): Fix formatting.
11866         * config/mips/elf64.h: Delete.
11867
11868 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
11869
11870         * config/ia64/ia64.c (got_symbolic_operand): Do require a
11871         symbol+offset operand to have its offset be zero mod 0x3fff
11872         when GOT entries are in use.  Clarify logic in SYMBOL_REF
11873         case.  Clarify comments.
11874         (ia64_expand_load_address): Split a symbol+offset load when
11875         the offset is nonzero mod 0x3fff, not 0x1fff.
11876
11877 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
11878
11879         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
11880         if trying to *store* to a non-offsettable address.
11881         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
11882         a nonoffsettable address.
11883         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
11884         Clean up.
11885         (movti_string): Don't move GPRs to a nonoffsettable address.
11886         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
11887
11888 2004-08-02  Ben Elliston  <bje@au.ibm.com>
11889
11890         PR target/16155
11891         * config/rs6000/altivec.h: Replace typeof with __typeof__.
11892
11893 2004-08-01  Richard Henderson  <rth@redhat.com>
11894
11895         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
11896         variable sized types.
11897
11898 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
11899
11900         * doc/invoke.texi: In the MIPS options section, remove the passage
11901         saying that -mexplicit-relocs is usually disabled for -mabicalls
11902         -fno-unit-at-a-time.
11903         * config/mips/mips.c (override_options): Remove the code that enforced
11904         this rule.
11905
11906 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
11907
11908         * config/mips/mips.md (cprestore): Provide two alternatives, one for
11909         an in-range offset and one for an out-of-range offset.  Wrap the latter
11910         in .set macro/.set nomacro if it's inside a .set nomacro block.
11911
11912 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
11913
11914         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
11915         (mips_restore_gp): Declare.
11916         * config/mips/mips.c (mips_add_offset): Add a scratch register
11917         argument.  Reimplement in rtl only, reusing MIPS16 logic from
11918         mips_output_mi_thunk.
11919         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
11920         to mips_add_offset.
11921         (mips_gp_save_slot): Delete.
11922         (mips_restore_gp): New function.
11923         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
11924         * config/mips/mips.md (exception_receiver): Turn into a
11925         define_insn_and_split.  Use mips_restore_gp to do the split.
11926         (call_internal, call_value_internal, call_value_multiple_internal): Use
11927         mips_restore_gp to restore $gp.
11928
11929 2004-07-31  Andrew Pinski  <apinski@apple.com>
11930
11931         PR other/16842
11932         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
11933
11934 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
11935
11936         * c-decl.c (diagnose_mismatched_decls): Give error for external
11937         redeclaration of identifier declared with no linkage, not just
11938         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
11939         error for redeclaration with no linkage.
11940
11941 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
11942             Fariborz Jahanian <fjahanian@apple.com>
11943
11944         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
11945         non-offsettable addresses even for DImode.
11946         (rs6000_split_multireg_move): Cope with non-offsettable addresses
11947         being moved into multiple GPRs.
11948
11949         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
11950         to 64.
11951         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
11952         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
11953         to 128.
11954         * config/rs6000/darwin-ldouble.c (isless): New macro.
11955         (inf): New macro.
11956         (nonfinite): New macro.
11957         (FPKINF): Delete.
11958         (_xlqadd): Completely rewrite.
11959         (_xlqmul): Correct overflow handling.
11960         (_xlqdiv): Correct overflow handling.
11961         * config/rs6000/darwin-ldouble-format: New file.
11962
11963 2004-07-30  Roger Sayle  <roger@eyesopen.com>
11964             Richard Henderson  <rth@redhat.com>
11965
11966         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
11967         9 into the equivalent lea instruction.
11968
11969 2004-07-30  Richard Henderson  <rth@redhat.com>
11970
11971         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
11972         with DECL_INITIAL if fb_lvalue.
11973         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
11974         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
11975         with <Cxxx>.
11976         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
11977
11978 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
11979
11980         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
11981         pointer escapes through a function call, assume that the
11982         callee will dereference it.
11983         (add_pointed_to_var): Assume that VALUE is always an
11984         ADDR_EXPR.
11985         (collect_points_to_info_r): Only call add_pointed_to_var if
11986         the value is an ADDR_EXPR.
11987
11988 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
11989
11990         * tree-ssa-alias.c (create_alias_map_for): Do not get the
11991         alias set of the inner type of ARRAY_TYPEs.
11992
11993 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
11994
11995         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
11996         setting a non-register to UNDEFINED right before the call to
11997         set_lattice_value.
11998
11999 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12000
12001         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
12002
12003 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
12004
12005         * tree-ssa.c (verify_flow_sensitive_alias_info): When
12006         comparing points-to sets of different pointers, make sure the
12007         second pointer is actually referenced in the code.
12008
12009 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
12010
12011         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
12012         (got_symbolic_operand): Remove unreachable code.
12013         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
12014         setjmp_operand; add entry for tls_symbolic_operand.
12015         * config/ia64/ia64-protos.h: Remove all prototypes of
12016         predicate functions.
12017
12018 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
12019
12020         * c-common.h (lang_post_pch_load): New variable.
12021         * c-pch.c (lang_post_pch_load): Define it.
12022         (c_common_read_pch): Use it.
12023         * cgraphunit.c (record_call_1): Give the front end a chance to
12024         record additional needed entities when a variable is marked as
12025         needed.
12026         * tlink.c (recompile_files): Robustify.
12027         (scan_linker_output): If a symbol is assigned to a file,
12028         but after recompilation is not present there, issue an error
12029         message.
12030
12031 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12032
12033         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
12034         Take orig_loop argument and pass it to set_level.
12035         (schedule_sm): Pass the correct orig_loop to force_move_till.
12036
12037 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12038
12039         * cfgloop.c (update_latch_info): Update dominator of the new block.
12040         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
12041         info.
12042         * dominance.c (verify_dominators): Check that the dominance tree is
12043         connected.
12044         (recount_dominator): Ignore unreachable blocks.
12045         (iterate_fix_dominators): Cleanup old dominance information before
12046         recomputing it.
12047
12048 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
12049
12050         * tree-ssa-operands.c (get_expr_operands): Revert changes
12051         to ADDR_EXPR processing introduced by:
12052             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12053             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
12054
12055 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
12056
12057         * doc/implement-c.texi: Add C90 subclause references.  Point to
12058         preprocessor documentation instead of duplicating it.  Add points
12059         only present in C90.  Fill in documentation for all points.
12060
12061 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12062
12063         * pa.c (output_movb): Correct typo.
12064
12065 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
12066
12067         * ra.h (single_reg_in_regclass): Declare.
12068         * ra.c (single_reg_in_regclass): Define.
12069         (first_hard_reg): New.
12070         (init_ra): Initialize single_reg_in_regclass.
12071         * ra-colorize.c (ok_class): New.
12072         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
12073
12074 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
12075
12076         * gcov-io.h: Allow zero tag as EOF indicator.
12077         (gcov_is_eof): Remove.
12078         (gcov_truncate): Remove.
12079         * gcov-io.c (gcov_seek): Always SEEK_SET.
12080         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
12081         EOF tag.
12082         * coverage.c (read_counts_file): Don't use gcov_is_eof.
12083         * gcov-dump.c (dump_file): Likewise.
12084         * gcov.c (read_graph_file, read_count_file): Likewise.
12085
12086         * c-decl.c (complete_array_type): Don't gratuitously copy
12087         maxindex.  Check it always has a type.
12088
12089 2004-07-29  Steven Bosscher  <stevenb@suse.de>
12090
12091         * rtl.c (currently_expanding_to_rtl): New.
12092         * rtl.h (currently_expanding_to_rtl): Export it.
12093         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
12094
12095         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
12096         inliner hack.
12097         * config/sh/sh.c: Replace rtx_equal_function_value_matters
12098         with currently_expanding_to_rtl.
12099         * config/sh/sh.md: Likewise.
12100         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
12101
12102 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
12103
12104         Introduce sh2a support.
12105         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
12106         * config.gcc: Build multilibs for sh2a and sh2a-single by
12107         default.
12108         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
12109         default.  Split their tests out of the corresponding SH4
12110         multilibs.
12111         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
12112         multilibs for SH2a.
12113         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
12114         * config.gcc: Handle sh2a multilibs and cpu selection.
12115         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
12116         * config/sh/t-mlib-sh2a: New.
12117         * config/sh/t-mlib-sh2a-nofpu: New.
12118         * config/sh/t-mlib-sh2a-single: New.
12119         * config/sh/t-mlib-sh2a-single-only: New.
12120         2004-07-09  Nick Clifton  <nickc@redhat.com>
12121         Issue 43400
12122         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
12123         -ml and -m2a are used together.
12124         2004-03-23  DJ Delorie  <dj@redhat.com>
12125         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
12126         when we have a double-sized FPU.
12127         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
12128         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
12129         is set.
12130         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
12131         -msh2a-single and -msh2a-single-only
12132         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
12133         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
12134         is set.
12135         2004-02-20  DJ Delorie  <dj@delorie.com>
12136         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
12137         2004-02-20  Fred Fish <fnf@redhat.com>,
12138         Corinna Vinschen <vinschen@redhat.com>
12139         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
12140         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
12141         2004-02-18  DJ Delorie  <dj@redhat.com>
12142         * config/sh/sh.c (broken_move): Add support for movi20.
12143         * config/sh/sh.h: Likewise.
12144         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
12145         * config/sh/sh.md (udivsi3_sh2a): New.
12146         (udivsi3): Call it.
12147         (divsi3_sh2a): New.
12148         (divsi3): Call it.
12149         (mul_r): New.
12150         (ashlsi3_sh2a): New.
12151         (ashrsi3_sh2a): New.
12152         (lshrsi3_sh2a): New.
12153         (movsi_i): Disable for sh2a.
12154         (movsi_ie): Add movi20.
12155         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
12156         sh2a, for -m2a-nofpu mode.
12157         2004-02-13  DJ Delorie  <dj@redhat.com>
12158         * config/sh/lib1funcs.asm: Handle double vs single better.
12159         * config/sh/sh.h: Likewise.
12160         2004-02-09  DJ Delorie  <dj@redhat.com>
12161         * config/sh/crt1.asm: Add support for sh2a.
12162         * config/sh/elf.h: Likewise.
12163         * config/sh/lib1funcs.asm: Likewise.
12164         * config/sh/sh.c: Likewise.
12165         * config/sh/sh.md: Likewise.
12166         * config/sh/sh.h: Likewise.
12167         * config/sh/t-sh: Likewise.
12168
12169 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
12170
12171         * config/frv/frv.md (movqi_internal, movhi_internal,
12172         movsi_internal): Add backup alternatives for memory inputs.
12173
12174 2004-07-28  Matt Austern  <austern@apple.com>
12175
12176         * config/darwin.c (darwin_one_byte_bool): New global variable.
12177         * config/darwin.h (darwin_one_byte_bool): Declare.
12178         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
12179         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
12180         value of darwin_one_byte_bool.
12181         * doc/invoke.texi: Document -mone-byte-bool flag.
12182
12183 2004-07-28  Eric Christopher  <echristo@redhat.com>
12184
12185         * c-common.c (c_common_unsafe_for_reeval): Delete.
12186         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
12187         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
12188         * calls.c (fix_unsafe_tree): Delete.
12189         (expand_call): Delete code which used above.
12190         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
12191         * expr.c (expand_expr_real_1): Ditto.
12192         * fold-const.c (non_lvalue): Ditto.
12193         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
12194         (lhd_unsafe_for_reeval): Ditto.
12195         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
12196         * langhooks.h (unsafe_for_reeval): Ditto.
12197         (unsave_expr_now): Adjust comment.
12198         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
12199         (estimate_num_insns_1): Ditto.
12200         * tree-pretty-print.c (dump_generic_node): Ditto.
12201         * tree.c (expr_align): Ditto.
12202         (unsave_expr): Delete.
12203         (unsafe_for_reeval): Ditto.
12204         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
12205         * tree.def (UNSAVE_EXPR): Delete.
12206         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
12207
12208 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
12209
12210         * tree.h (enum tls_model): Move ...
12211         * coretypes.h: ... here.
12212
12213 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
12214
12215         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
12216
12217 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
12218
12219         * cse.c (validate_canon_reg): New function, split out from...
12220         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
12221
12222 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12223
12224         * tree-ssa-alias.c (maybe_create_global_var): Don't just
12225         return if .GLOBAL_VAR has been created.
12226
12227 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12228
12229         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
12230         every variable that may have aliases, not just tags.
12231
12232 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
12233
12234         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
12235         move_from_CR_eq_bit.
12236         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
12237
12238
12239         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
12240         e500_flip_eq_bit.
12241
12242         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
12243         output_e500_flip_eq_bit.
12244
12245         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
12246         output_e500_flip_eq_bit.
12247         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
12248         output_e500_flip_eq_bit.
12249         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
12250         (print_operand): case D.  Get to EQ bit.
12251
12252 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
12253
12254         * gcov.c (function_summary): Add missing \n.
12255
12256 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
12257
12258         Introduce sh4a support.
12259         * config.gcc: Handle sh4a multilibs and cpu selection.
12260         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
12261         * config/sh/t-mlib-sh4a: New.
12262         * config/sh/t-mlib-sh4al: New.
12263         * config/sh/t-mlib-sh4a-nofpu: New.
12264         * config/sh/t-mlib-sh4a-single: New.
12265         * config/sh/t-mlib-sh4a-single-only: New.
12266         2004-02-20  DJ Delorie  <dj@redhat.com>
12267         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
12268         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
12269         2003-08-22  Eric Christopher  <echristo@redhat.com>
12270         * config/sh/sh4a.md: Update for chip errata.
12271         2003-08-07  Eric Christopher  <echristo@redhat.com>
12272         * config/sh/sh4a.md: New file. sh4a processor description.
12273         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
12274         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
12275         of -m4a-nofpu.
12276         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
12277         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
12278         * doc/invoke.texi (SH Options): Document -m4al.
12279         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
12280         * config/sh/sh.c (expand_block_move): Remove commented-out code
12281         checked in by mistake.
12282         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
12283         single elements from SFmode vectors.
12284         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
12285         register.
12286         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
12287         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
12288         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
12289         sh_fsca_int2sf): Remove variable declarations.
12290         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
12291         sh_fsca_int2sf): New functions.
12292         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
12293         sh_fsca_int2sf_rtx): New static variables.
12294         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
12295         sh_fsca_int2sf): Declare.
12296         * config/sh/sh.md: Adjust.
12297         * doc/invoke.texi (SH Options): Document new options.
12298         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
12299         compatibility from SH4 code.
12300         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
12301         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
12302         early.
12303         (memory_movsrc_operand): Renamed to...
12304         (unaligned_load_operand): ... this.  Simplified.
12305         * config/sh/sh.h (PREDICATE_CODES): Adjust.
12306         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
12307         input operand to SImode, and adjust the others.  Introduce
12308         post-increment by peephole.
12309         * config/sh/sh.c (expand_block_move): Give the target address the
12310         same mode as the temp reg.
12311         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
12312         copying.
12313         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
12314         Introduce support for SH4a.
12315         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
12316         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
12317         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
12318         sh_fsca_int2sf): New.
12319         (sh_init_builtins): Initialize them.
12320         (print_operand): Support `d'.
12321         (expand_block_move): Use movua if src is misaligned.
12322         (memory_movsrc_operand): New.
12323         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
12324         and one of the SH4 macros.
12325         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
12326         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
12327         SELECT_SH4A_SINGLE): New.
12328         (TARGET_NONE): Add SH4A_BIT.
12329         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
12330         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
12331         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
12332         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
12333         (enum processor_type): Added PROCESSOR_SH4A.
12334         (PREDICATE_CODES): Add memory_movsrc_operand.
12335         * config/sh/sh.md: Removed unused variables.
12336         (attr cpu): Add sh4a.
12337         (attr type): Add movua, fsrra and fsca.
12338         (prefetch): New, for SH4.
12339         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
12340         (toggle_sz): Set type to fp.
12341         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
12342         (movua, extv, extzv): New.
12343         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
12344         and 4a-single-only.
12345
12346 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12347
12348         * tree-optimize.c (init_tree_optimization_passes): Schedule
12349         pass_may_alias right after the program is renamed into SSA.
12350         * tree-pass.h (PROP_alias): Define.
12351         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
12352         * tree-sra.c (pass_sra): Likewise.
12353         * tree-ssa-ccp.c (pass_ccp): Likewise.
12354         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
12355         * tree-ssa-dce.c (pass_dce): Likewise.
12356         * tree-ssa-dom.c (pass_dominator): Likewise.
12357         * tree-ssa-dse.c (pass_dse): Likewise.
12358         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
12359         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12360         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
12361         * tree-ssa-pre.c (pass_pre): Likewise.
12362         * tree-tailcall.c (pass_tail_recursion): Likewise.
12363         * tree-ssa.c (pass_redundant_phi): Likewise.
12364         * tree-ssa-alias.c (aliases_computed_p): Remove.
12365         Update all users.
12366         (init_alias_info): Do not mark all type tags for renaming
12367         unconditionally.
12368         Clear may_aliases from every symbol.
12369         (setup_pointers_and_addressables): If a pointer has not been
12370         dereferenced and it had a type tag, clear it and mark the old
12371         tag for renaming.
12372
12373 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12374
12375         PR tree-optimization/16705
12376         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
12377         .GLOBAL_VAR.
12378
12379 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12380
12381         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
12382         check.
12383
12384         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
12385         don't make another one.
12386
12387         PR optimization/15077
12388         * function.h (struct function): Add field saved_static_chain_decl.
12389         Fix comment for static_chain_decl.
12390         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
12391         * tree-inline.h (save_body): Add new arg.
12392         * tree-optimize.c (tree_rest_of_compilation): Handle saving
12393         static_chain_decl.
12394
12395 2004-07-27  Richard Henderson  <rth@redhat.com>
12396
12397         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
12398         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
12399         is_gimple_addressable.
12400         * tree-gimple.c (is_gimple_addressable): Rename from
12401         is_gimple_addr_expr_arg; accept INDIRECT_REF.
12402         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
12403         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
12404         rename to is_gimple_addressable.
12405
12406 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
12407
12408         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
12409
12410 2004-07-27  Richard Henderson  <rth@redhat.com>
12411
12412         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
12413         before rounding.
12414
12415 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
12416
12417         * libgcc2.c: Change all conditionals testing
12418         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
12419         * libgcc2.h: Likewise.
12420         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
12421         TYPE_PRECISION of float80_type to 80.
12422         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
12423         of fpreg_type and float80_type to 80.
12424         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
12425         * config/m68k/netbsd-elf.h:
12426         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
12427         to evaluate to 80 whenever they would formerly have evaluated to 96.
12428         * config/i386/sco5.h: Remove unnecessary redefinition of
12429         LONG_DOUBLE_TYPE_SIZE.
12430         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
12431         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
12432         XFmode, with a bitsize of 80.  Update commentary.
12433         * config/ia64/ia64-modes.def: Likewise.
12434         * config/m68k/m68k-modes.def: Likewise.
12435
12436 2004-07-27  Steven Bosscher  <stevenb@suse.de>
12437
12438         * cfgexpand.c (tree_expand_cfg): Fix comment.
12439
12440         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
12441         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
12442         Remove.
12443         (prepare_function_start): Don't set rtx_equal_function_value_matters.
12444         * integrate.c (copy_rtx_and_substitute): Don't test for it.
12445         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
12446         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
12447         here again.  Update leading comment.
12448         * rtl.c (rtx_equal_function_value_matters): Remove.
12449         (rtx_equal_p): Don't test for it.
12450         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
12451         Likewise.
12452
12453         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
12454         * rtl.c (note_insn_name): Likewise.
12455         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
12456         * final.c (final_scan_insn): Likewise.
12457
12458         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
12459         * passes.c (rest_of_handle_eh): Do it here.
12460
12461         * stmt.c (struct nesting): Remove struct nesting block member.
12462         (struct stmt_status): Remove x_block_start_count field.
12463         (current_block_start_count): Remove.
12464
12465 2004-07-27  Brian Booth  <bbooth@redhat.com>
12466
12467         * tree-optimize.c (register_one_dump_file): Update condition that uses
12468         static_pass_number.
12469         (dup_pass_1): Replace with...
12470         (next_pass_1): This.
12471         (NEXT_PASS): Call next_pass_1.
12472         (DUP_PASS): Remove.
12473         (init_tree_optimization_passes): Remove uses of DUP_PASS.
12474         (execute_one_pass): Update condition that uses
12475         static_pass_number.
12476         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
12477         integer.
12478
12479 2004-07-27  Nick Clifton  <nickc@redhat.com>
12480
12481         * config/m32r/m32r.c: Include integrate.h in order to get the
12482         prototype for get_hard_reg_initial_val().
12483
12484         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
12485         and tidy up indentation.
12486         (final_presence_set): Use absence_set instead, so that if there is
12487         nothing in the "o" pipe the "s" pipe can be scheduled.
12488
12489 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
12490
12491         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
12492         don't have PT_VARS nor PT_MALLOC set.
12493         Clear name tag from pointers that have not been dereferenced.
12494         (set_pt_anything, set_pt_malloc): Forward declare.
12495         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
12496         not type compatibility when determining if a pointer can be
12497         copy propagated.
12498
12499 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
12500
12501         * expr.h (canonicalize_condition, get_condition): Add an int argument.
12502         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
12503         it to check whether the condition is still valid at the jump insn.
12504         * ifcvt.c (noce_get_condition): Likewise.
12505         (noce_get_alt_condition): Update call to canonicalize_condition.
12506         * loop-iv.c (simplify_using_initial_values): Update call to
12507         get_condition.  Remove FIXME.
12508         (check_simple_exit): Update call to get_condition.
12509         * loop-unswitch.c (may_unswitch_on): Likewise.
12510         * loop.c (check_dbra_loop): Likewise.
12511         (canonicalize_condition, get_condition): Add an argument to say whether
12512         the condition must still be valid at INSN.
12513         (get_condition_for_loop): Update call to get_condition.  Require that
12514         the condition be valid at INSN.
12515         * predict.c (estimate_probability): Update call to get_condition.
12516         Remove unused earliest parameter.
12517         (expected_value_to_br_prob): Update call to canonicalize_condition.
12518
12519 2004-07-26  Eric Christopher  <echristo@redhat.com>
12520
12521         * tree-dfa.c (add_referenced_var): Register initializers of global
12522         variables.
12523
12524 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
12525
12526         * config/i386/i386.c (function_arg): Always treat 8-
12527         and 16-byte wide vectors the same, even if MMX/SSE
12528         are disabled.
12529         (contains_128bit_aligned_vector_p): Add comment.
12530
12531 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
12532
12533         * ra.h (enum node_type): Rename to:
12534         (enum ra_node_type).
12535         * ra-colorize.c: Likewise.
12536
12537 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
12538
12539         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
12540         after simplifying the jump.
12541
12542 2004-06-26  Richard Henderson  <rth@redhat.com>
12543
12544         * calls.c (combine_pending_stack_adjustment_and_call): Make
12545         preferred_unit_stack_boundary argument unsigned.  Make
12546         unadjusted_alignment unsigned.
12547         (expand_call): Make preferred_stack_boundary and
12548         preferred_unit_stack_boundary variables unsigned.
12549         * function.c (assign_stack_local_1): Make alignment unsigned.
12550         * function.h (struct function): Make stack_alignment_needed,
12551         preferred_stack_boundary unsigned.
12552         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
12553         (ix86_compute_frame_layout): Make stack_alignment_needed,
12554         preferred_alignment variables unsigned.
12555         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
12556
12557 2004-07-26  Tom Tromey  <tromey@redhat.com>
12558
12559         * tree.h: Fix typo in comment.
12560
12561 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
12562
12563         PR bootstrap/12804
12564         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
12565         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
12566         (ggc_free): Remove incorrect freeing.
12567         (sweep_pages): Advance PP for large pages.  Fix indentation.
12568
12569 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
12570
12571         PR rtl-optimization/16643
12572         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
12573         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
12574         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
12575         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
12576         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
12577         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12578         * rtl.h (tracer): Add a flags parameter.
12579         * tracer.c (tracer): Pass it to cfg_layout_initialise.
12580         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
12581         (rest_of_handle_reorder_blocks): Update calls to tracer and
12582         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
12583         (rest_of_handle_tracer): Pass 0 to tracer.
12584         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
12585
12586 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
12587
12588         PR target/16239
12589         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
12590         f->f.
12591
12592 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
12593
12594         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
12595         (BINFO_BASE_ACCESS): Adjust.
12596         (BINFO_BASE_ACCESS_APPEND): New.
12597         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
12598         * dbxout.c (dbxout_type): Adjust binfo access accessing.
12599         * dwarf2out.c (gen_member_die): Likewise.
12600         * tree-dump.c (deque_and_dump): Likewise.
12601
12602 2004-07-26  Falk Hueffner  <falk@debian.org>
12603
12604         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
12605         costs.
12606
12607 2004-07-25  Roger Sayle  <roger@eyesopen.com>
12608
12609         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
12610         value off of the stack if TARGET_USE_FFREEP.
12611
12612 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
12613
12614         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
12615         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
12616         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
12617         check on invocation of XRESIZEVEC ().
12618
12619 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
12620
12621         * c-common.c (disable_builtin_function): Rename variable n to
12622         new_disabled_builtin.
12623         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
12624         Rename local variable old to old_decl.
12625         * gensupport.c (shift_output_template): Rename parameter old to src.
12626         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
12627         old_rtx and newx to new_rtx.
12628
12629 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
12630
12631         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
12632         of c-pragma.h.
12633         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
12634         enum cpp_ttype.
12635         * c-lex.c: Likewise.
12636
12637 2004-07-25  Roger Sayle  <roger@eyesopen.com>
12638
12639         * fold-const.c (constant_boolean_node): Make extern.
12640         (make_range): Wrap long lines.
12641         (fold_cond_expr_with_comparison): Remove unnecessary call to
12642         pedantic_non_lvalue.  Add missing calls to fold_convert.
12643         (fold_truthop): Add missing calls to fold_convert.
12644         (fold): Likewise.
12645         * tree.h (constant_boolean_node): Add prototype here.
12646         * builtins.c (expand_builtin_strncmp): Add missing calls to
12647         fold_convert.
12648         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
12649         Call fold_convert and constant_boolean_node to correct types.
12650         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
12651         missing call to fold_convert to correct types.
12652
12653 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
12654             Brian Ryner  <bryner@brianryner.com>
12655
12656         PR c++/9283
12657         PR c++/15000
12658         * c-common.c (c_common_attribute_table): Allow
12659         handle_visibility_attribute to be called for types.
12660         (handle_visibility_attribute) When given a type, set the visibility
12661         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
12662         so that we can check later whether the attribute was present. Added
12663         warning if attribute applied to non class type.
12664         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
12665         decls and checking that they are consistent.
12666         * common.opt: Added -fvisibility.
12667         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
12668         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
12669         * flags.h, tree.h: Added assorted support defines for overall patch
12670         * opts.c: Added parsing support for -fvisibility.
12671         * tree.c (build_decl): Set visibility for all decls to be whatever
12672         is in force at that time.
12673         * varasm.c (default_binds_local_p_1): Reworked logic determining
12674         when to make a symbol locally bound.
12675         * doc/invoke.texi: Added documentation for -fvisibility and
12676         -fvisibility-inlines-hidden.
12677
12678 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12679
12680         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
12681         * c-common.c: Add missing casts from void * to other types.
12682         * c-decl.c: Likewise.
12683         * c-format.c: Likewise.
12684         * c-lex.c: Likewise.
12685         * c-pragma.c: Likewise.
12686         * c-typeck.c: Likewise.
12687         * defaults.h: Likewise.
12688         * genconstants.c: Likewise.
12689         * gengtype-lex.l: Likewise.
12690         * genmodes.c: Likewise.
12691         * read-rtl.c: Likewise.
12692         * rtl.c: Likewise.
12693
12694 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12695
12696         * bitmap.c: Use type-safe memory allocation macros from libiberty.
12697         * c-common.c: Likewise.
12698         * c-decl.c: Likewise.
12699         * c-lang.c: Likewise.
12700         * c-lex.c: Likewise.
12701         * c-opts.c: Likewise.
12702         * c-parse.in: Likewise.
12703         * c-typeck.c: Likewise.
12704         * genconditions.c: Likewise.
12705         * gengtype-lex.l: Likewise.
12706         * gengtype-yacc.y: Likewise.
12707         * gengtype.c: Likewise.
12708         * genmodes.c: Likewise.
12709         * gensupport.c: Likewise.
12710         * read-rtl.c: Likewise.
12711         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
12712         htab_find_slot().
12713
12714 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12715
12716         * c-decl.c (groktypename, groktypename_in_param_context): Rename
12717         variable typename to type_name.
12718         * c-lex.c (interpret_float): Likewise.
12719
12720 2004-07-25  Roger Sayle  <roger@eyesopen.com>
12721
12722         * convert.c (convert_to_real, convert_to_integer,
12723         convert_to_complex): Replace calls to build with calls to buildN.
12724         * coverage.c (tree_coverage_counter_ref): Likewise.
12725         * dojump.c (do_jump): Likewise.
12726         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
12727         * emit-rtl.c (component_ref_for_mem_expr,
12728         set_mem_attributes_minus_bitpos): Likewise.
12729         * explow.c (update_nonlocal_goto_save_area): Likewise.
12730         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
12731         expand_mult_add): Likewise.
12732         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
12733         store_constructor, get_inner_reference, expand_expr_real_1,
12734         try_casesi, try_tablejump): Likewise.
12735         * function.c (expand_function_start): Likewise.
12736         * stmt.c (emit_case_bit_tests, expand_end_case_type,
12737         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
12738         * stor-layout.c (place_union_field, layout_type): Likewise.
12739         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
12740         * varasm.c (copy_constant): Likewise.
12741
12742 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12743
12744         * c-common.c: Rename all identifiers named `new'.
12745         * c-decl.c: Likewise.
12746         * gensupport.c: Likewise.
12747         * simplify-rtx.c: Likewise.
12748         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
12749         with XNEW().
12750         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
12751         with XNEWVEC().
12752
12753 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
12754
12755         PR c/15360
12756         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
12757         declarations until after calling pushdecl.
12758         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
12759         "extern" and not on whether the declaration is initialized.
12760
12761 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
12762
12763         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
12764         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
12765         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
12766         "cpplib.h", "c-pragma.h", "c-common.h".
12767         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
12768         (solaris_register_pragmas): New functions.
12769         * config/sol2-protos.h: New file.
12770         * config/sol2.c: New file.
12771         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
12772         (REGISTER_TARGET_PRAGMAS): New macros.
12773         (solaris_pending_aligns, solaris_pending_inits)
12774         (solaris_pending_finis): New variables.
12775         * config/t-sol2 (sol2-c.o): Update dependencies.
12776         (sol2.o): New rule.
12777         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
12778         SUBTARGET_INSERT_ATTRIBUTES.
12779         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
12780         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
12781         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
12782         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
12783         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
12784         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
12785         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
12786         * config/sparc/sparc.c (sparc_attribute_table): New.
12787         (TARGET_INSERT_ATTRIBUTES): Define in terms of
12788         SUBTARGET_INSERT_ATTRIBUTES.
12789         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
12790         is defined.
12791         * doc/extend.texi (Solaris Pragmas): New section.
12792
12793 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12794
12795         * c-common.c: Rename all identifiers named `class' to `cl'.
12796         * c-common.h: Likewise.
12797         * c-parse.in: Likewise.
12798         * c-typeck.c: Likewise.
12799         * genmodes.c: Likewise.
12800         * real.c: Likewise.
12801         * real.h: Likewise.
12802         * recog.c: Likewise.
12803         * recog.h: Likewise.
12804         * regrename.c: Likewise.
12805         * tree.h: Likewise.
12806         * c-common.c (builtin_function_2): Change type of 5th parameter from
12807         int to enum built_in_function. Change type of 8th parameter from int
12808         to bool.
12809         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
12810         with GGC_CNEW().
12811         * c-typeck.c (convert_arguments): Change type of formal_prec from
12812         int to unsigned int.
12813         * genmodes.c (blank_mode): Make a few negative constants unsigned.
12814         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
12815         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
12816         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
12817         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
12818         iterator to for_all_modes () instead of an enum because enums can't
12819         be incremented in C++.
12820
12821
12822 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
12823
12824         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
12825         hard registers.
12826
12827 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12828
12829         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
12830         Handle ARRAY_RANGE_REF like ARRAY_REF.
12831
12832 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
12833
12834         * c-typeck.c (digest_init): Don't allow arrays of signed or
12835         unsigned variants of wchar_t to be initialized by wide string
12836         constants.  Do allow arrays of enumerated types compatible with
12837         wchar_t to be initialized by wide string constants.  Refine tests
12838         distinguishing wide and narrow strings and arrays.  Give specific
12839         error for arrays of other integer types initialized by string
12840         constants.
12841         (output_init_element, process_init_element): Check for
12842         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
12843         initializing with string constants.
12844
12845 2004-07-25  Richard Henderson  <rth@redhat.com>
12846
12847         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
12848         on the RESULT_DECL.
12849         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
12850         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
12851         DECL_IGNORED_P to new decl.
12852
12853 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
12854
12855         * config/ia64/ia64.c (general_xfmode_operand)
12856         (destination_xfmode_operand): Delete.
12857         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
12858         * config/ia64/ia64.md (*movxf_internal): Use general_operand
12859         and destination_operand.
12860
12861 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
12862
12863         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
12864         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
12865
12866 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
12867             Zack Weinberg  <zack@codesourcery.com
12868
12869         PR 16684
12870         * c-decl.c (diagnose_mismatched_decls): Don't issue a
12871         redundant-declaration warning the first time a builtin is
12872         declared explicitly.
12873
12874 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12875
12876         * tree.h (staticp): Change return type to bool.
12877
12878 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12879
12880         * c-common.c (c_staticp): Last episode of the staticp saga.
12881
12882 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12883
12884         * c-common.h (c_staticp): Change return type from int to bool.
12885         * tree.c (staticp): Likewise.
12886         * langhooks.h (staticp): Likewise.
12887
12888 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12889
12890         * langhooks-def.h (lhd_staticp): Change return type from int to
12891         bool in prototype to match definition.
12892
12893 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12894
12895         * system.h (bool, true, false): Don't redefine as preprocessor macros
12896         in C++.
12897
12898 2004-07-24  Roger Sayle  <roger@eyesopen.com>
12899
12900         * expmed.c (init_expmed): A signed modulus by a power of two is
12901         considered cheap if its less than or equal to four instructions.
12902
12903 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12904
12905         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
12906         GGC_CNEWVAR): New macros.
12907
12908 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
12909
12910         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
12911         lists.
12912         * c-decl.c: Likewise.
12913         * c-format.c: Likewise.
12914         * c-lex.c: Likewise.
12915         * c-opts.c: Likewise.
12916         * c-pragma.c: Likewise.
12917         * c-typeck.c: Likewise.
12918         * gencheck.c: Likewise.
12919         * genconditions.c: Likewise.
12920         * genconfig.c: Likewise.
12921         * genflags.c: Likewise.
12922         * gengtype.c: Likewise.
12923         * gensupport.c: Likewise.
12924         * ggc-none.c: Likewise.
12925         * langhooks.c: Likewise.
12926         * statistics.h: Likewise.
12927         * stub-objc.c: Likewise.
12928         * java/decl.c: Likewise.
12929
12930 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
12931
12932         * config/m68k/m68k.c (output_scc_di): Fix coding style.
12933         (symbolic_operand): Fix prototype.
12934         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
12935         * config/m68k/m68k.md: Add constants for registers a0 and sp and
12936         use them, change from the "{...}" syntax to the simpler {...}
12937         syntax.
12938         (*cfv4_extendqisi2): Fix destination predicate.
12939         * config/m68k/m68k-protos.h: Remove various declarations also
12940         generated via PREDICATE_CODES.
12941
12942 2004-07-23  Mike Stump  <mrs@apple.com>
12943
12944         * c-typeck.c (convert_for_assignment): Tightened up pointer
12945         converstions that differ in signedness.
12946
12947 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
12948
12949         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
12950
12951 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12952
12953         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
12954         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
12955
12956         * gimplify.c (gimplify_compound_lval): Check for no handled
12957         operations, rather than checking for explicit list of nodes.
12958         (is_gimple_addr_expr_arg_or_indirect): New function.
12959         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
12960         redundant setting of TREE_INVARIANT.
12961         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
12962         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
12963
12964 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
12965
12966         PR tree-optimization/16688
12967         PR tree-optimization/16689
12968         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
12969         unnecessary initialization of 'tag'.
12970         (get_tmt_for): Check that the new type tag has the same alias
12971         set as the pointed-to type.
12972         (group_aliases): Only regular variables need to be removed
12973         from the alias set of a name tag.
12974         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
12975         propagation if the two types are not compatible.
12976         (merge_alias_info): Rename from replace_ssa_names_ann.
12977         Add more checking.
12978         (replace_exp_1): If both arguments are SSA_NAMEs, check that
12979         the propagation can be done.
12980         Only call merge_alias_info on pointers.
12981         (propagate_value): Likewise.
12982         * tree-ssa-copyrename.c: Include langhooks.h.
12983         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
12984         to do the merging.
12985         Do not coalesce variables with incompatible types.
12986         (rename_ssa_copies): Call replace_ssa_name_symbol.
12987         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
12988         the same type as the underlying _DECL.
12989         * tree-ssanames.c (replace_ssa_name_symbol): New function.
12990         * tree.h (replace_ssa_name_symbol): Declare.
12991
12992 2004-07-23  Richard Henderson  <rth@redhat.com>
12993
12994         PR c++/16277
12995         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
12996         unshare it properly.
12997         (gimplify_modify_expr_rhs): Push assignment from a conditional into
12998         the conditional for all non-register types.
12999
13000 2004-07-23  Richard Henderson  <rth@redhat.com>
13001
13002         * expr.c (expand_expr_real_1): Don't handle non-local variables.
13003         * expr.h (fix_lexical_addr): Remove.
13004         * function.c (NEED_SEPARATE_AP): Remove.
13005         (fix_lexical_addr): Remove.
13006         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
13007         not null decl_function_context.
13008         (create_alias_vars): Likewise.
13009         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
13010         (simple_goto_p): Likewise.
13011         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
13012         * tree-ssa-ccp.c (get_default_value): Likewise.
13013         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13014         * tree.c (needs_to_live_in_memory): Likewise.
13015         * tree-flow-inline.h (may_be_aliased): Move...
13016         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
13017         when TREE_STATIC variables may be addressable.
13018
13019 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
13020
13021         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
13022
13023 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
13024
13025         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
13026         bitmap contents if GENERATOR_FILE is defined.
13027         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
13028         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
13029
13030 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
13031
13032         * c-decl.c (start_function): Form composite type of function types
13033         rather than copying type from previous prototype declaration.
13034
13035 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
13036
13037         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
13038         the const qualifier for the second argument in the C++ functions.
13039
13040         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
13041         specific pointer types.
13042
13043         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
13044         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
13045         for vector bool and/or vector pixel, add C++ and C missing support.
13046         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
13047         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
13048         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
13049         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
13050         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
13051         missing C++ and C support for vector bool and/or vector pixel.
13052         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
13053         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
13054         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
13055         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
13056         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
13057         C++ and C types used for vector bool and/or vector pixel.
13058         (vec_st, vec_stl): Add C++ support for vector pixel.
13059         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
13060         (vec_all_ne): Add C++ support for vector pixel.
13061
13062         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
13063         (vec_vmulesb): Add missing C++ function.
13064         (vec_perm): Fix type of third argument in C++ function.
13065         (vec_vsum4shs): Fix C++ function name.
13066         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
13067         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
13068         argument passed to the error handler in C macro.
13069         (vec_nmsub): Remove extra parens around argument names in C macro.
13070         (vec_packpx): Add missing parens in C macro.
13071
13072 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
13073
13074         * machmode.def: Remove vector modes.
13075         * config/alpha/alpha-modes.def: Add supported vector modes.
13076         * config/arm/arm-modes.def: Likewise.
13077         * config/frv/frv-modes.def: Likewise.
13078         * config/i386/i386-modes.def: Likewise.
13079         * config/rs6000/rs6000-modes.def: Likewise.
13080         * config/sh/sh-modes.def: Likewise.
13081
13082 2004-07-23  Matthias Klose  <doko@debian.org>
13083
13084         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
13085         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
13086         * config.h: Regenerate.
13087         * configure: Likewise.
13088
13089 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
13090
13091         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
13092         generated SYMBOL_REFs for labels.
13093         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
13094         Change prototype.
13095         (machopic_stub_name): Remove.
13096         (machopic_indirection_name): New function.
13097         (machopic_mcount_stub_name): Likewise.
13098         (machopic_classify_name): Remove.
13099         (machopic_function_base_sym): New function.
13100         (machpoic_classify_symbol): Likewise.
13101         (machopic_classify_ident): Remove.
13102         (machopic_define_ident): Likewise.
13103         (machopic_define_name): Likewise.
13104         (machopic_name_defined_p): Likewise.
13105         (machopic_ident_defined_p): Likewise.
13106         (darwin_strip_name_encoding): Likewise.
13107         (machopic_define_symbol): New function.
13108         * config/darwin.c (hashtab.h): Include.
13109         (machopic_defined_list): Remove.
13110         (machopic_classify_ident): Likewise.
13111         (machopic_classify_name): Likewise.
13112         (machopic_ident_defined_p): Likewise.
13113         (machopic_define_ident): Likewise.
13114         (machopic_define_name): Likewise.
13115         (machopic_symbol_defined_p): New function.
13116         (machopic_classify_symbol): Likewise.
13117         (machopic_data_defined_p): Use machopic_classify_symbol.
13118         (machopic_define_symbol): New function.
13119         (machopic_function_base_sym): New function.
13120         (machopic_non_lazy_pointers): Remove.
13121         (machopic_non_lazy_ptr_name): Likewise.
13122         (machopic_stubs): Likewise.
13123         (machopic_stub_name): Likewise.
13124         (NON_LAZY_POINTER_SUFFIX): New macro.
13125         (STUB_SUFFIX): Likewise.
13126         (machopic_indirection): New structure.
13127         (machopic_indirections): New variable.
13128         (machopic_indirection_hash): New function.
13129         (machopic_indirection_eq): Likewise.
13130         (machopic_indirection_name): Likewise.
13131         (machopic_mcount_stub_name): New function.
13132         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
13133         hash table.
13134         (machopic_indirect_data_reference): Rework to use new functions.
13135         (machopic_indirect_call_target): Likewise.
13136         (machopic_legitimize_pic_address): Likewise.
13137         (machopic_output_indirection): New function.
13138         (machopic_finish): Use it.
13139         (machopic_operand_p): Rework to use new functions.
13140         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
13141         (darwin_strip_name_encoding): Remove.
13142         (update_non_lazy_ptrs): Remove.
13143         (update_stubs): Likewise.
13144         (darwin_non_lazy_pcrel): Use new functions.
13145         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
13146         (ASM_OUTPUT_LABELREF): Likewise.
13147         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13148         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
13149         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
13150         (TARGET_STRIP_NAME_ENCODING): Do not use
13151         darwin_strip_name_encoding.
13152         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
13153         darwin_strip_name_encoding.
13154         * config/i386/darwin.h (FUNCTION_PROFILER): Use
13155         machopic_mcount_stub_name.
13156         * config/i386/i386.c (x86_output_mi_thunk): Use
13157         machopic_indirection_name, not machopic_stub_name.
13158         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
13159         machopic_function_base_sym.
13160         (print_operand): Use machopic_classify_symbol.
13161         (rs6000_emit_prologue): Use machopic_function_base_sym.
13162         (output_profile_hook): Do not use machopic_stub_name.
13163         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
13164
13165 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13166
13167         PR c/7284
13168         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
13169         as multiplication.
13170
13171 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13172
13173         * doc/implement-c.texi: New file.
13174         * doc/extend.texi (C Implementation): Move to there.
13175         * doc/gcc.texi: Include implement-c.texi.
13176         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
13177
13178 2004-07-22  Jason Merrill  <jason@redhat.com>
13179
13180         * integrate.c (copy_decl_for_inlining): Remove invisible reference
13181         handling.
13182         * tree-inline.c (setup_one_parameter): Likewise.
13183
13184 2004-07-22  Brian Booth  <bbooth@redhat.com>
13185
13186         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
13187         (substitute_and_fold): Propigate into VUSE operands when possible.
13188         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
13189         (cp_lattice_meet): Handle merging of latticevalues when
13190         UNKNOWN_VAL is present.
13191         (visit_stmt): Visit assignments with V_MUST_DEFs.
13192         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
13193         (ccp_fold): Deal with RHS' that are constant and virtual.
13194         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
13195         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
13196         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
13197         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
13198         computing immediate uses.
13199         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
13200         transition.
13201         (replace_vuse_in): New function.
13202         (likely_value): Add check of vuse operands.
13203         (get_default_value): Set the default value of virtually defined
13204         variables to UKNOWN_VAL instead of VARYING.
13205
13206 2004-07-22  Richard Henderson  <rth@redhat.com>
13207
13208         * expr.c (emit_push_insn): Don't use set_mem_attributes.
13209
13210 2004-07-22  Richard Henderson  <rth@redhat.com>
13211
13212         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
13213         variables due to conditional compilation.
13214
13215 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
13216
13217         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
13218         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
13219         Release SSA names that have been re-renamed.
13220         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
13221         variable.
13222         * tree-ssa-alias.c (init_alias_info): If aliases have been
13223         computed before, clear existing alias information.
13224         (create_name_tags): Do no fixup PT_ANYTHING pointers.
13225         If the new name tag for a pointer is different than the one it
13226         had before, mark the old tag for renaming.
13227         (replace_may_alias): New function.
13228         (group_aliases): Call it.
13229         (setup_pointers_and_addressables): Always call get_tmt_for.
13230         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
13231         once.
13232         (set_pt_anything): New local function.
13233         (set_pt_malloc): New local function.
13234         (merge_pointed_to_info): Don't merge pointed-to variables from
13235         the original pointer if the destination is pointing to an
13236         unknown location.
13237         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
13238         (add_pointed_to_var): Do not add a variable to the points-to
13239         set if the pointer is already pointing to anywhere.
13240         (collect_points_to_info_r): If the defining statement is a PHI
13241         node, only merge pointed-to information if the argument has
13242         already been visited.
13243         (get_tmt_for): Only create a new tag if the pointer didn't
13244         have one already.
13245         (dump_alias_info): Emit more information.
13246         (dump_points_to_info_for): Likewise.
13247         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
13248         try to get the annotation of an SSA_NAME.
13249         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
13250         alias sets when checking is enabled.
13251         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
13252         (eliminate): Mark basic blocks that will need
13253         EH information cleaned up.
13254         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
13255         predecessor.
13256         Initialize need_eh_cleanup.
13257         (fini_pre): Call tree_purge_all_dead_eh_edges and
13258         cleanup_tree_cfg if needed.
13259         Free need_eh_cleanup.
13260         * tree-ssa.c (verify_ssa_name): New function.
13261         (verify_def): Call it.
13262         Re-arrange to avoid printing too many error messages.
13263         (verify_use): Likewise.
13264         (verify_phi_args): Likewise.
13265         (verify_flow_insensitive_alias_info): New function.
13266         (verify_flow_sensitive_alias_info): New function.
13267         (verify_alias_info): New function.
13268         (verify_ssa): Call verify_alias_info.
13269         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
13270         program.
13271         Re-arrange to avoid printing too many error messages.
13272         * tree-ssanames.c (make_ssa_name): Clear
13273         SSA_NAME_IN_FREE_LIST.
13274         (release_ssa_name): Never release a default definition.
13275         (release_defs): New function.
13276         * tree.h: Declare it.
13277         * tree-ssa-dce.c (remove_dead_stmt): Call it.
13278
13279 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
13280
13281         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
13282         If true, do a depth-first search.  Do a breadht-first search,
13283         otherwise.
13284         (walk_use_def_chains): Add new argument IS_DFS.
13285         Update all users.
13286         * tree-flow.h (walk_use_def_chains): Update prototype.
13287
13288 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
13289
13290         * config/cris/cris.md: Tweak formatting.
13291         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
13292         (mover2side, moverside, movemside, movei, op3, andu): Replace
13293         live define_peephole:s with define_peephole2 near-equivalents.
13294         Delete the rest.
13295         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
13296         word-size modes.
13297         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
13298         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
13299         "*mov_sidesi_mem" respectively.
13300
13301 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
13302
13303         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
13304         (gimplify_build1): Move from tree-complex.c do_unop.
13305         (gimplify_build2): Move from tree-complex.c do_binop.
13306         (gimplify_build3): New.
13307         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
13308         Adjust throughout to call the functions above.
13309         * tree-flow.h: Declare the functions above.
13310         * tree-nested.c (gimplify_val): Rename to...
13311         (tsi_gimplify_val): ... this.
13312
13313         * Makefile.in (tree_complex.o): Update dependencies.
13314         (stor-layout.o): Depend on regs.h.
13315         * c-common.c (handle_vector_size_attribute): Update for
13316         vector types without corresponding vector modes.
13317         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
13318         a corresponding vector mode is not available.
13319         * print-tree.c (print_node): Print nunits for vector types
13320         * regclass.c (have_regs_of_mode): New.
13321         (init_reg_sets_1): Initialize it and use it instead
13322         of allocatable_regs_of_mode.
13323         * regs.h (have_regs_of_mode): Declare it.
13324         * stor-layout.c (layout_type): Pick a mode for vector types.
13325         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
13326         build_replicated_const, do_unop, do_binop, do_plus_minus,
13327         do_negate, expand_vector_piecewise, expand_vector_parallel,
13328         expand_vector_addition, expand_vector_operations_1,
13329         expand_vector_operations, tree_lower_operations,
13330         pass_lower_vector_ssa, pass_pre_expand): New.
13331         (expand_complex_operations, pass_lower_complex): Remove.
13332         * tree-optimize.c (init_tree_optimization_passes): Adjust
13333         pass ordering for changes in tree-complex.c.
13334         * tree-pass.h: Declare new passes.
13335         * tree.c (finish_vector_type): Remove.
13336         (make_vector_type): New.
13337         (build_vector_type_for_mode, build_vector_type): Rewritten.
13338         * tree.def (VECTOR_TYPE): Document where the number of
13339         subparts is stored.
13340         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
13341         (make_vector): Remove declaration.
13342
13343 2004-07-21  Richard Henderson  <rth@redhat.com>
13344
13345         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
13346         TREE_THIS_VOLATILE, may_aliases, or optimization level.
13347         (remove_useless_vars): Dump debugging info.
13348         (expand_used_vars): Move ...
13349         * cfgexpand.c (expand_used_vars): ... here.  Make static.
13350         * tree-flow-inline.h (set_is_used): New.
13351         (set_default_def): Use get_var_ann.
13352         * tree-flow.h: Update decls.
13353         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
13354         (create_ssa_var_map): Use it.
13355         * tree-ssa.c (set_is_used): Remove.
13356
13357 2004-07-22  Ben Elliston  <bje@au.ibm.com>
13358
13359         * gdbinit.in: Set a breakpoint on internal_error.
13360
13361 2004-07-21  Richard Henderson  <rth@redhat.com>
13362
13363         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
13364         to create a new basic block.
13365
13366 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13367
13368         PR c/15052
13369         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
13370         return type on function definitions.  Move other warnings for
13371         qualified return type to -Wreturn-type.  Do not condition any such
13372         warnings on -pedantic.  Update comments.
13373         (start_function): Only copy function type from previous prototype
13374         declaration if return types are compatible.
13375         * c-typeck.c (function_types_compatible_p): Don't condition
13376         warning for incompatibility of volatile qualifiers on the return
13377         type on -pedantic.  Update comment.
13378         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
13379
13380 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13381
13382         * c-typeck.c (set_init_index): Require designator to be of integer
13383         type.
13384
13385 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13386
13387         PR c/11250
13388         * c-parse.in (init): Change to exprtype.
13389         (primary): Set original_code for STRING to STRING_CST.
13390         Call maybe_warn_string_init for compound literals.
13391         (initdcl, notype_initdcl): Call maybe_warn_string_init.
13392         (initval): Update.
13393         * c-tree.h (maybe_warn_string_init): New.
13394         (pop_init_level, process_init_element): Use struct c_expr.
13395         (struct c_expr): Update comment.
13396         * c-typeck.c (maybe_warn_string_init): New function.
13397         (digest_init): Call it.  Additional parameter strict_string.  All
13398         callers changed.
13399         (output_init_element): Likewise.
13400         (struct constructor_stack): Use struct c_expr for
13401         replacement_value.
13402         (really_start_incremental_init, push_init_level): Update.
13403         (pop_init_level): Update.  Return struct c_expr.
13404         (process_init_level): Update.  Take struct c_expr argument.
13405
13406 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
13407
13408         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
13409         commit.
13410
13411 2004-07-21  Eric Christopher  <echristo@redhat.com>
13412
13413         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
13414         removal.
13415         * c-decl.c (pop_scope): Ditto.
13416         * calls.c (expand_call): Remove call to current_nesting_level,
13417         update comment accordingly. Remove calls to expand_start_target_temps
13418         and expand_end_target_temps.
13419         * cfgexpand.c (construct_init_block): Remove call to
13420         expand_start_bindings_and_block.
13421         (construct_exit_block): Remove call to expand_end_bindings.
13422         * expr.c (safe_from_p): Remove BIND_EXPR handling.
13423         (expand_expr_real_1): Ditto. Fix formatting.
13424         (expand_vars): Delete.
13425         * stmt.c (POPSTACK): Remove block_stack.
13426         (stmt_status): Remove x_block_stack.
13427         (block_stack): Delete.
13428         (expand_start_bindings_and_block): Ditto.
13429         (expand_start_target_temps): Ditto.
13430         (expand_end_target_temps): Ditto.
13431         (current_nesting_level): Ditto.
13432         (warn_about_unused_variables): Ditto.
13433         (expand_end_bindings): Ditto.
13434         * tree.h: Remove declarations for above.
13435
13436 2004-07-21  Steven Bosscher  <stevenb@suse.de>
13437
13438         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
13439         * rtl.c (note_insn_name): Likewise.
13440         * print-rtl.c (print_rtx): Don't print it.
13441         * cfgrtl.h (can_delete_note_p): Don't handle it.
13442         (rtl_delete_block): Likewise.
13443         * passes.c (rest_of_handle_guess_branch_prob): Remove.
13444         (rest_of_compilation): Don't call it.
13445         * predict.c (process_note_predictions, process_note_prediction,
13446         note_prediction_to_br_prob): Remove.
13447         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
13448         * stmt.c (return_prediction): Remove.
13449         (expand_value_return): Don't call it.  Don't add prediction
13450         notes for return statements.
13451
13452 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
13453
13454         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
13455         once.
13456
13457 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
13458
13459         * c-common.c (vector_types_convertible_p): Use vector types'
13460         TYPE_SIZE and TREE_TYPE instead of their mode.
13461         * convert.c (convert_to_integer): Likewise.
13462         (convert_to_vector): Likewise.
13463         * fold-const.c (fold_convert): Likewise.
13464         * varasm.c (output_constant): Likewise.
13465         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
13466         Allow a VECTOR_TYPE initializer to be made of several vectors.
13467         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
13468         of cleared and need_to_clear, and use fold_convert.
13469         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
13470         integer vectors.
13471
13472 2004-07-20  Richard Henderson  <rth@redhat.com>
13473
13474         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
13475         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
13476
13477 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
13478
13479         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
13480         enormous cost if not TARGET_HARD_MUL.
13481
13482 2004-07-20  Andrew Pinski  <apinski@apple.com>
13483
13484         PR target/16557
13485         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
13486         (ASM_SPEC): here.
13487
13488 2004-07-21  Paul brook  <paul@codesourcery.com>
13489
13490         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
13491
13492 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13493
13494         * fold-const.c (operand_equal_p): Temporarily support NULL args.
13495         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
13496         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
13497
13498 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
13499
13500         * rtl.h (plus_constant): Delete.
13501         (plus_constant_wide): Rename to plus_constant.
13502         (plus_constant_for_output_wide): Delete vestigial prototype.
13503         (GEN_INT): Remove unnecessary cast.
13504         * tree.h (build_int_2, size_int_type): Delete.
13505         (build_int_2_wide): Rename to build_int_2.
13506         (size_int_wide): Rename to size_int_kind.
13507         (size_int_type_wide): Rename to size_int_type.
13508         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
13509         Remove unnecessary cast.
13510         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
13511         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
13512         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
13513         (size_int_type_wide): Rename size_int_type.
13514         (int_const_binop): Use size_int_type.
13515         * c-lex.c (interpret_integer): Use build_int_2.
13516         * final.c (split_double): Remove unnecessary casts.
13517         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
13518
13519 2004-07-20  Richard Henderson  <rth@redhat.com>
13520
13521         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
13522         (gimplify_compound_lval): Use is_gimple_tmp_reg.
13523         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
13524         (is_gimple_tmp_reg): New.
13525         * tree-gimple.h (is_gimple_tmp_reg): Declare.
13526
13527 2004-07-20  Richard Henderson  <rth@redhat.com>
13528
13529         * tree-pretty-print.c (dump_generic_node): Dump
13530         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
13531
13532 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
13533
13534         * tree-mudflap.c (mf_set_options_fndecl): New tree.
13535         (mudflap_init): Set it.
13536         (mudflap_register_call): Remove __mf_init call.
13537         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
13538         to pass "-ignore-reads" option to libmudflap if needed.
13539
13540 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
13541
13542         PR c++/14607
13543         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
13544         (MAKE_DECL_ONE_ONLY): Undefine.
13545         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
13546         readonly_data, one_only_data_section, forget_section): New prototypes.
13547         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
13548         functions.
13549         (pa_select_section): Add one-only (COMDAT) support.
13550         * pa.h (struct machine_function): Define.
13551         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
13552         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
13553         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
13554         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
13555         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
13556         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
13557         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
13558         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
13559         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
13560         for EXTRA_SECTION_FUNCTIONS.
13561         * doc/install.texi: Update binutils requirements.
13562
13563 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
13564
13565         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
13566         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
13567         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
13568         size_t.
13569         (struct VEC): Use unsigned for num and alloc.
13570         * vec.c (struct vec_prefix): Likewise.
13571         (vec_o_reserve): Adjust.
13572
13573         * dbxout.c (dbxout_type): Fix printf format.
13574
13575         * tree.h (binfo_member): Remove.
13576         * tree.c (binfo_member): Remove.
13577
13578 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
13579
13580         * tree.h: Include vec.h
13581         (DEF_VEC_P(tree)): New type.
13582         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
13583         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
13584         (BINFO_LANG_SLOT): Remove.
13585         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
13586         (struct tree_binfo): Turn base_binfos into a trailing
13587         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
13588         (binfo_lang_slots): Remove.
13589         * tree.c (binfo_lang_slots): Remove.
13590         (make_tree_binfo_stat): Take a base binfo count, not a
13591         lang slot count.  Adjust.
13592         * Makefile.in (TREE_H): Add vec.h
13593         * alias.c (record_component_aliases): Adjust BINFO access.
13594         * dbxout.c (dbxout_type): Likewise.
13595         * dwarf2out.c (gen_member_die): Likewise.
13596         * sdbout.c (sdbout_one_type): Likewise.
13597         * tree-dump.c (deque_and_dump): Likewise.
13598         * config/i386/i386.c (classify_argument,
13599         contains_128bit_aligned_vector_p): Likewise.
13600         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
13601         * doc/c-tree.texi (Classes): Update BINFO documentation.
13602
13603 2004-07-20  Steven Bosscher  <stevenb@suse.de>
13604
13605         * c-common.h (check_case_value): Remove prototype.
13606         (c_add_case_label): Adjust prototype.
13607         * c-common.c (check_case_value): Make static.
13608         (check_case_bounds): New function.
13609         (c_add_case_label): Use it.  Take new argument orig_type.
13610         * c-typeck.c (struct c_switch): New orig_type field.
13611         (c_start_case): Set it.
13612         (do_case): Pass it to c_add_case_label.
13613         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
13614         cases from here.  Add the labels in reverse order.
13615         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
13616         (add_case_node): Return nothing, don't check for duplicate cases.
13617         Insert new case nodes in a list, not in an AVL tree.
13618         (expand_end_case_type): Don't turn a case tree into a case list.
13619         (case_tree2list): Remove.
13620         * tree.h (add_case_node): Adjust prototype.
13621
13622 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
13623
13624         * genattr.c (struct range, struct function_unit,
13625         write_units, extend_range, init_range): Remove them.
13626         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
13627         Output "#define INSN_SCHEDULING" here.
13628         * genattrtab.c (struct range, struct function_unit_op,
13629         struct function_unit, struct dimension, enum operator,
13630         operate_exp, expand_units, simplify_knowing,
13631         encode_units_mask, simplify_by_exploding,
13632         find_and_mark_used_attributes, unmark_used_attributes,
13633         add_values_to_cover, increment_current_value,
13634         test_for_current_value, simplify_with_current_value,
13635         simplify_with_current_value_aux, gen_unit,
13636         write_unit_name, write_function_unit_info,
13637         write_complex_function, write_toplevel_expr,
13638         find_single_value, extend_range): Remove.
13639         (write_attr_get): Do not handle common_av->value
13640         being an FFS.
13641         (struct attr_desc): Remove func_units_p and blockage_p.
13642         (write_attr_valueq): Do not handle them.
13643         (find_attr): Do not clear them.
13644         (make_internal_attr): Do not initialize them.
13645         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
13646         * sched-vis.c (init_target_units, insn_print_units,
13647         init_block_visualization, print_block_visualization,
13648         visualize_scheduled_insns, visualize_no_unit,
13649         visualize_stall_cycles, visualize_alloc,
13650         visualize_free, target_units, get_visual_tbl_length,
13651         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
13652         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
13653         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
13654         * haifa-sched.c (blockage_range, clear_units,
13655         schedule_unit, actual_hazard, potential_hazard,
13656         insn_unit, unit_last_insn, unit_tick,
13657         actual_hazard_this_instance, potential_hazard,
13658         schedule_unit, max_insn_queue_index_value): Remove.
13659         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
13660         max_insn_queue_index.
13661         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
13662         * doc/md.texi (Processor pipeline description): Remove
13663         references to old pipeline descriptions.
13664         (Automaton pipeline description): Merge with the above.
13665         (Old pipeline description, Comparison of the two descriptions):
13666         Remove.
13667
13668         * bt-load.c (migrate_btr_def): Remove references to
13669         use_pipeline_interface.
13670         * haifa-sched.c (insn_cost, schedule_insn,
13671         schedule_block, advance_one_cycle, sched_init,
13672         queue_to_ready, sched_finish): Likewise.
13673         * modulo-sched.c (sms_schedule, advance_one_cycle,
13674         ps_has_conflicts): Likewise.
13675         * sched-rgn.c (init_ready): Likewise.
13676         (debug_dependencies): Likewise, and remove an "if (1)".
13677         * target.h (use_dfa_pipeline_interface): Remove.
13678         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13679         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13680         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13681         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13682         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13683         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13684         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13685         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13686         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13687         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13688         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13689         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13690         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13691         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13692         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13693         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13694         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13695         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13696         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
13697
13698 2004-07-19  Roger Sayle  <roger@eyesopen.com>
13699
13700         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
13701
13702 2004-07-19  Jeff Law  <law@redhat.com>
13703
13704         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
13705         (get_eq_expr_value): Use it.  Simplify slightly.
13706
13707 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
13708
13709         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
13710         (umulsidi3_32bit_r4000): Likewise.
13711
13712 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
13713
13714         * vec.h: Propagate location information properly.
13715         (VEC_T_iterate): Add result pointer parameter.
13716         (VEC_T_space): New.
13717         (VEC_T_reserve): Use it.
13718
13719 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
13720
13721         * Makefile.in (c-format.o): Depend on c-format.h.
13722         * c-format.h: New file.
13723         (struct format_char_info): Add CHAIN member.
13724         * c-format.c: Move some types and constants to c-format.h.
13725         (format_type_error): Set to -1.
13726         (struct function_format_info): Use an int for format_type.
13727         (decode_format_type): Return an int.  Return format_type_error
13728         on error.
13729         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
13730         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
13731         (scan_char_table, time_char_table, monetary_char_table): Initialize
13732         CHAIN to NULL.
13733         (n_format_types): New variable.
13734         (check_format_info_main): Handle CHAIN in format_char_info.
13735         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
13736         TARGET_N_FORMAT_TYPES.
13737         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
13738         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
13739         * config/sol2-c.c: New file.
13740         * config/t-sol2: New file.
13741         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
13742         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
13743         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
13744
13745         * doc/extend.texi (Target Format Checks): New section.
13746         (Function Attributes): Mention it.
13747         * doc/invoke.texi: Mention target format checks.
13748         * doc/sourcebuild.texi: Mention target format checks.
13749         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
13750         TARGET_FORMAT_TYPES.
13751
13752 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
13753
13754         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
13755         added.
13756         * config/s390/s390.c (regclass_map initializer): Register 35 added to
13757         ADDR_REGS.
13758         (load_multiple_operation, store_multiple_operation): Removed
13759         pointless sanity check.
13760         (s390_decompose_address): Added check for return_address_pointer_rtx.
13761         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
13762         (s390_return_address_offset): New function.
13763         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
13764         (FRAME_REGNO_P): Added check for register 35.
13765         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
13766         REG_ALLOC_ORDER): Appended entry for register 35.
13767         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
13768         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
13769         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
13770         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
13771         is eliminable using stack pointer or hard frame pointer.
13772         (REGISTER_NAMES): Added name for register 35.
13773         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
13774         pointless sanity check.
13775
13776 2004-07-19  Roger Sayle  <roger@eyesopen.com>
13777
13778         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
13779         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
13780         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
13781         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
13782         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
13783         (fold_relational_const): Tidy up handling of floating point
13784         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
13785         transformation; fold_relational_const assumes constant operands.
13786
13787 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
13788
13789         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
13790         directory.
13791
13792 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
13793
13794         * c-tree.h (struct c_expr): Define.
13795         (C_SET_EXP_ORIGINAL_CODE): Remove.
13796         (parser_build_binary_op, build_compound_expr): Update prototypes.
13797         * c-parse.in (%union): Add exprtype.
13798         (FUNC_NAME): Mark as ttype.
13799         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
13800         exprtype.
13801         (expr): Update.  Define directly in terms of expr_no_commas
13802         instead of using nonnull_exprlist.
13803         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
13804         offsetof_member_designator, typespec_nonreserved_nonattr, init,
13805         initval, designator, component_declarator,
13806         component_notype_declarator, enumerator, array_declarator,
13807         condition, exexpr, switch_statement, stmt_nocomp, stmt,
13808         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
13809         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
13810         where appropriate.
13811         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
13812         * c-common.c (c_common_truthvalue_conversion): Don't check
13813         C_EXP_ORIGINAL_CODE.
13814         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
13815         Don't use C_EXP_ORIGINAL_CODE.
13816         (default_conversion, default_function_array_conversion): Don't use
13817         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
13818         (internal_build_compound_expr): Merge into build_compound_expr.
13819         (build_compound_expr): Take two operands instead of a TREE_LIST.
13820         * objc/objc-act.c (get_super_receiver): Update calls to
13821         build_compound_expr.
13822
13823 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
13824
13825         * config/sh/sh.c (sh_use_dfa_interface): Remove.
13826         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
13827         hook_int_void_1.
13828         * config/sh/sh.md: Extract pipeline descriptions
13829         into separate files.
13830         * config/sh/sh1.md: New file, extracted from sh.md.
13831         * config/sh/sh4.md: New file, extracted from sh.md.
13832         * config/sh/shmedia.md: New file, extracted from sh.md
13833         and rewritten using new-style pipeline description.
13834
13835 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
13836
13837         * config/pa/pa.md: Delete the two remaining define_peephole
13838         patterns.
13839
13840 2004-07-18  Steven Bosscher  <stevenb@suse.de>
13841             Joseph S. Myers  <jsm@polyomino.org.uk>
13842
13843         * c-common.c (c_common_truthvalue_conversion): Don't warn if
13844         TREE_NO_WARNING is set.
13845
13846 2004-07-18  Roger Sayle  <roger@eyesopen.com>
13847
13848         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
13849         simplify_builtin_strncmp): Delete.
13850         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
13851         Change argument to accept an arglist instead of an "exp".  Assume
13852         that the return type is always integer_type_node.  Copy missing
13853         transformations from their now obsolete simplify_builtin_*
13854         equivalents.
13855         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
13856         fold_builtin_strcmp and fold_builtin_strncmp.
13857         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
13858         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
13859         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
13860
13861 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
13862
13863         * Makefile.in (tree-alias-common.o): Update dependencies.
13864
13865 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
13866
13867         * cfgloop.c (flow_loop_nested_p): Fix comment.
13868
13869 2004-07-17  Jason Merrill  <jason@redhat.com>
13870
13871         PR c++/16115
13872         * stor-layout.c (relayout_decl): New fn.
13873         * tree.h: Declare it.
13874         (DECL_BY_REFERENCE): New macro.
13875
13876 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
13877
13878         * libgcc2.c (__enable_execute_stack): New symbol.
13879         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
13880         and declare __enable_execute_stack.
13881         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
13882         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
13883         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
13884         ENABLE_EXECUTE_STACK.
13885         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
13886         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
13887         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
13888         ENABLE_EXECUTE_STACK.
13889         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
13890         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
13891         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
13892         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
13893         ENABLE_EXECUTE_STACK.
13894         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
13895         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
13896         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
13897         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
13898         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
13899         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
13900         (sparc64_initialize_trampoline): Likewise.
13901         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
13902
13903 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
13904
13905         * langhooks.h (builtin_function): New langhook.
13906         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
13907         (LANG_HOOKS_INITIALIZER): Update.
13908         * tree.h (builtin_function): Remove.
13909         * doc/tm.texi: Update.
13910         * c-tree.h (builtin_function): Declare.
13911         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
13912         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
13913         config/ia64/ia64.c, config/iq2000/iq2000.c,
13914         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
13915         config/stormy16/stormy16.c: All callers of builtin_function
13916         changed.
13917
13918 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
13919
13920         PR target/16556
13921         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
13922         Remove white space after the backslash.
13923
13924 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
13925
13926         PR rtl-optimization/16294
13927         * resource.c (return_insn_p): New predicate.
13928         (mark_target_live_regs): Use it.  Special-case return insns.
13929         (init_resource_info): Use it.  Don't scan the epilogue past
13930         a return.
13931
13932 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13933
13934         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
13935         destroy dominance information.
13936         * passes.c (rest_of_handle_loop2):  Free dominance information.
13937         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
13938         jump threading.
13939         (thread_jumps): Update dominance information and remove unreachable
13940         blocks.
13941         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
13942         information and remove the unreachable block.
13943
13944 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
13945
13946         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
13947
13948 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
13949
13950         * doc/sourcebuild.texi: Remove libf2c entry.
13951
13952 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
13953
13954         * config/i386/i386.md (movv16qi_internal): Fix typo.
13955
13956 2004-07-17  Steven Bosscher  <stevenb@suse.de>
13957
13958         * final.c (final_scan_insn): Fix broken commit from previous
13959         patch.
13960
13961 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
13962
13963         * c-typeck.c (parser_build_binary_op): Condition warnings for
13964         X<=Y<=Z on -Wparentheses instead of -Wextra.
13965         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
13966         supported for C only.
13967
13968 2004-07-17  Steven Bosscher  <stevenb@suse.de>
13969
13970         * cfgcleanup.c (try_simplify_condjump): Don't remove line
13971         notes to avoid unreachable code warnings.
13972         * toplev.c (backend_init): Don't emit line notes for
13973         unreachable code warnings.
13974
13975         * combine.c (distribute_notes): Don't distribute a
13976         REG_VTABLE_REF note.
13977         * final.c (final_scan_insn): Don't handle it.
13978         * rtl.c (reg_note_name): Remove it.
13979         * rtl.h (enum reg_node): Dito.
13980
13981         * emit-rtl.c (force_line_numbers, restore_line_number_status):
13982         Remove.
13983         * rtl.h (force_line_numbers, restore_line_number_status):
13984         Remove prototypes.
13985
13986         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
13987         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
13988         (using_eh_for_cleanups): Also moved here.
13989
13990         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
13991         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
13992         to expand_start_case and add_case_node.
13993         * stmt.c (struct nesting): Cleanup unused fields condition_code,
13994         last_unconditional_cleanup, nominal_type, printname, and
13995         line_number_status.
13996         (struct fixup_goto): Remove.
13997         (struct stmt_status): Remove x_goto_fixup_chain field.
13998         (goto_fixup_chain): Remove.
13999         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
14000         pushcase, pushcase_range): Remove.
14001         (expand_start_bindings_and_block): Don't set unused fields in
14002         the nesting stack.
14003         (expand_start_case, add_case_node): Cleanup unused formal arguments.
14004         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
14005         instead of emit_jump_if_reachable.
14006         (emit_case_nodes): Likewise.
14007         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
14008         static.
14009         (update_eh_label): Work around left-over exception handing regions.
14010         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
14011         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
14012         (pass_cleanup_cfg_post_optimizing): New pass.
14013         (init_tree_optimization_passes): Run the new pass after all
14014         optimizations.
14015         * tree.h (pushcase, pushcase_range): Remove prototypes.
14016         (expand_start_case, add_case_node): Update prototypes.
14017
14018 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
14019
14020         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
14021
14022 2004-07-16  Richard Henderson  <rth@redhat.com>
14023
14024         * builtins.c (std_expand_builtin_va_arg): Remove.
14025         (expand_builtin_va_arg): Remove.
14026         * expr.h: Don't declare them.
14027         * gimplify.c (mark_decls_volatile_r): Remove.
14028         (copy_if_shared_r): Don't call it.
14029         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
14030         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
14031         * gimple-low.c (lower_stmt): Likewise.
14032         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
14033         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
14034         * tree-ssa-operands.c (get_expr_operands): Likewise.
14035         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
14036         EXPAND_BUILTIN_VA_ARG.
14037         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
14038         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
14039         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
14040         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
14041
14042 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
14043
14044         * tree-ssa-pre.c (insert_aux): Break out if we hit
14045         a critical edge.
14046
14047 2004-07-16  Richard Henderson  <rth@redhat.com>
14048
14049         * basic-block.h (remove_fake_exit_edges): Declare.
14050         * cfganal.c (remove_fake_predecessors): Rename from
14051         remove_fake_successors; iterate over predecessors.
14052         (remove_fake_exit_edges): New.
14053         * cfgcleanup.c (try_optimize_cfg): Use it.
14054         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
14055         * predict.c (estimate_probability): Likewise.
14056         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
14057         * tree-cfg.c (make_edges): Likewise.
14058         * tree-ssa-pre.c (fini_pre): Likewise.
14059         * profile.c (instrument_edges): Don't remove_fake_edges.
14060         (branch_prob): Do it earlier here.
14061
14062 2004-07-16  Richard Henderson  <rth@redhat.com>
14063
14064         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
14065         switchification wrt CONSTRUCTOR.  Document the reason.
14066
14067 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
14068
14069         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
14070         that prevented descriptive __mf_check source location strings.
14071
14072 2004-07-16  Richard Henderson  <rth@redhat.com>
14073
14074         * tree-def (WITH_SIZE_EXPR): New.
14075         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
14076         * expr.c (expand_expr_real_1): Likewise.
14077         * gimplify.c (maybe_with_size_expr): New.
14078         (gimplify_arg, gimplify_modify_expr): Use it.
14079         (gimplify_modify_expr_to_memcpy): Take size parameter.
14080         (gimplify_modify_expr_to_memset): Likewise.
14081         (gimplify_expr): Handle WITH_SIZE_EXPR.
14082         * tree-alias-common.c (find_func_aliases): Likewise.
14083         * tree-eh.c (tree_could_trap_p): Likewise.
14084         (tree_could_throw_p): Likewise.
14085         * tree-gimple.c (is_gimple_lvalue): Likewise.
14086         (get_call_expr_in): Likewise.
14087         * tree-inline.c (estimate_num_insns_1): Likewise.
14088         (expand_calls_inline): Likewise.
14089         * tree-nested.c (convert_call_expr): Likewise.
14090         * tree-pretty-print.c (dump_generic_node): Likewise.
14091         * tree-sra.c (sra_walk_expr): Likewise.
14092         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
14093         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
14094         * tree-ssa-operands.c (get_expr_operands): Likewise.
14095         * tree-tailcall.c (find_tail_calls): Likewise.
14096
14097         * calls.c (expand_call): Reset old_stack_allocated after
14098         calling emit_stack_restore.
14099
14100 2004-07-16  Richard Henderson  <rth@redhat.com>
14101
14102         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
14103         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
14104         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
14105         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
14106         copy_res_decl_for_inlining.
14107
14108         * tree-inline.c (declare_return_variable): New modify_dest argument.
14109         Use it as the return value, when possible or manditory.  Handle
14110         TREE_ADDRESSABLE types.
14111         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
14112         replacement of CALL_EXPR.
14113
14114 2004-07-16  Richard Henderson  <rth@redhat.com>
14115
14116         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
14117         * gimple-low.c (expand_var_p): Don't check it.
14118         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
14119         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
14120         * tree-ssa-operands.c (add_stmt_operand): Likewise.
14121         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
14122         (find_referenced_vars): Don't call them.
14123         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
14124
14125 2004-07-16  Richard Henderson  <rth@redhat.com>
14126
14127         * function.c (pass_by_reference): True for all variable sized types.
14128
14129 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
14130
14131         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
14132         * tree-pretty-print.c: Include tree-chrec.h.
14133         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
14134         and POLYNOMIAL_CHREC nodes.
14135
14136 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
14137
14138         * builtins.c (expand_builtin_stpcpy): Do not create temporary
14139         reg with VOIDmode.
14140
14141 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
14142
14143         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
14144
14145 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
14146
14147         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
14148         to BASE_REGNUM.
14149         * config/s390/s390.c: Likewise.
14150         * config/s390/s390.h: Likewise.
14151
14152 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14153
14154         * config/mips/mips.md (addsi3, adddi3): Remove special handling
14155         of $sp adds.  Remove REGNO checks from mips16 patterns.
14156
14157 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14158
14159         * config/mips/mips.md: Delete outdated comment.
14160
14161 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14162
14163         * config/mips/mips.c (get_float_compare_codes): Delete.
14164         (mips_emit_compare): New function, mostly extracted from
14165         get_float_compare_codes and gen_conditional_branch.
14166         (gen_conditional_branch, gen_conditional_move): Use it.
14167
14168 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
14169
14170         * genautomata.c (add_vect): Speedup by using integers as
14171         bit-vectors for walking through the comb_vect and finding
14172         a match.
14173
14174 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14175
14176         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
14177         operand is an uns_arith_operand; use subtraction otherwise.
14178         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
14179         not just arith_operands.
14180
14181 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14182
14183         * config/mips/mips-protos.h (gen_int_relational): Delete.
14184         (mips_emit_scc): Declare.
14185         * config/mips/mips.c (internal_test): Delete.
14186         (sle_operand, sleu_operand): New functions.
14187         (map_test_to_internal_test, gen_int_relational): Delete.
14188         (mips_emit_binary, mips_relational_operand_ok_p)
14189         (mips_emit_int_relational, mips_zero_if_equal)
14190         (mips_emit_scc): New functions.
14191         (gen_conditional_branch): Rework to use mips_emit_int_relational.
14192         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
14193         sleu_operand.
14194         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
14195         (sltu, sleu): Use mips_emit_scc.
14196         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
14197         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
14198         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
14199
14200 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14201
14202         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
14203
14204 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14205
14206         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
14207         (*sne_[sd]i): Likewise sne_[sd]i_zero.
14208         (*sgt_[sd]i): ...and sgt_[sd]i.
14209         (*slt_[sd]i): ...and slt_[sd]i.
14210         (*sgtu_[sd]i): ...and sgtu_[sd]i.
14211         (*sltu_[sd]i): ...and sltu_[sd]i.
14212         (*sleu_[sd]i): ...and sleu_[sd]i_const.
14213         Name previously unnamed mips16 patterns.  Formatting fixes.
14214
14215 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14216
14217         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
14218         (branch_type): Delete.
14219         (gen_conditional_branch, gen_conditional_move)
14220         (mips_gen_conditional_trap): Update after name change.  Get the
14221         comparison mode from cmp_operands[0].
14222         * config/mips/mips.h (cmp_type, branch_type): Delete.
14223         (cmp_operands): Renamed from branch_cmp.
14224         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
14225         name change.  Don't set branch_type.
14226         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
14227         mode class of cmp_operands[0] rather than branch_type.  Update after
14228         name change.
14229
14230 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14231
14232         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
14233         of 0...255 to 0 when inside a SET.
14234
14235 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14236
14237         * config/mips/mips.md: Remove mips16 define_peepholes.
14238
14239 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
14240
14241         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
14242         (fini_pre): Remove fake edges.
14243
14244 2004-07-15  Richard Henderson  <rth@redhat.com>
14245
14246         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
14247         (get_indirect_ref_operands, get_call_expr_operands): ... these.
14248
14249 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
14250
14251         * vec.h (VEC_address): New function.
14252
14253 2004-07-14  Jason Merrill  <jason@redhat.com>
14254
14255         PR middle-end/15885
14256         * gimplify.c (gimplify_arg): New fn, split out from...
14257         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
14258
14259 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
14260
14261         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
14262         generate code which is generated by pushqi1 now
14263         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
14264
14265 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
14266
14267         * combine.c (simplify_set): match the mode of the constant 0 with
14268         the tested operand to match the compare behaviour and the
14269         simplify_relational_operation() expectation.
14270
14271 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
14272
14273         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
14274         ("bordered"): Same.
14275
14276 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
14277
14278         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
14279         unconditionally.
14280         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
14281
14282 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
14283
14284         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
14285         calls in mips16 code.
14286
14287 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
14288
14289         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
14290         the destination of the li as well as for the neg.
14291
14292 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
14293
14294         g++/15861
14295         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
14296         * cgraph.h: Update declaration.
14297         * c-decl.c (build_cdtor): Update call with default priority.
14298         * coverage.c (create_coverage): Ditto.
14299         * tree-mudflap.c (mf_init_fndecl): New tree.
14300         (mudflap_init): Set it.
14301         (mudflap_register_call): Arrange to call __mf_init before the first
14302         __mf_register call.
14303         (mudflap_finish_file): Mark the mudflap static initializer as extra
14304         high priority, to beat all C++ static constructors.
14305
14306 2004-07-15  Jeff Law  <law@redhat.com>
14307
14308         * loop.c (check_insn_for_givs): Restore check for code labels that was
14309         accidentally deleted by a recent checkin.
14310
14311 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
14312
14313         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
14314         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
14315
14316 2004-07-14  Richard Henderson  <rth@redhat.com>
14317
14318         * print-tree.c (print_node): Fix casts last change.
14319
14320 2004-07-15  Paul Brook  <paul@codesourcery.com>
14321
14322         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
14323         to TARGET_UNWIND_INFO.
14324         * except.c (output_function_exception_table): Ditto.
14325         * except.h: Ditto.
14326         * opts.c (decode_options): Ditto.
14327         * passes.c (rest_of_handle_final): Ditto.
14328         * final.c (final_start_function): Ditto.
14329         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
14330         target hook.
14331         * targhooks.h (default_unwind_emit): Declare.
14332         * targhooks.c (default_unwind_emit): New function.
14333         * target-def.h: Define and use TARGET_UNWIND_EMIT.
14334         * target.h (struct gcc_target): Add unwind_emit.
14335         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
14336         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
14337         Remove IA64_UNWIND_EMIT.
14338         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
14339
14340 2004-07-14  Richard Henderson  <rth@redhat.com>
14341
14342         * print-tree.c (print_node): Handle SSA_NAME.
14343
14344 2004-07-14  James E Wilson  <wilson@specifixinc.com>
14345
14346         PR target/16325
14347         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
14348         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
14349
14350 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
14351
14352         * expr.c (expand_assignment): Reenable bitfield += optimizations.
14353         Use alias set 0 for memory, do proper mode calculations and adjust
14354         address for memories.
14355
14356 2004-07-14  Per Bothner  <per@bothner.com>
14357
14358         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
14359         structure with extra column field.
14360         * tree.c (expand_location):  Also fill in column field.
14361         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
14362         gets confused by the two conditionally-compiled definitions.
14363
14364 2004-07-14  Eric Christopher  <echristo@redhat.com>
14365
14366         * calls.c (expand_call): Fix typo in comment.
14367
14368 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
14369
14370         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
14371         comparision of TFmode.
14372
14373 2004-07-14  Richard Henderson  <rth@redhat.com>
14374
14375         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
14376         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
14377         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
14378         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
14379         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
14380         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14381         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
14382         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
14383         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14384
14385 2004-07-14  Mike Stump  <mrs@apple.com>
14386
14387         * config/darwin.h (WINT_TYPE): Define to be int to match
14388         system header files.
14389
14390 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
14391
14392         * config/xtensa/xtensa.c (function_arg_advance): Check for args
14393         that must be passed in the stack.
14394         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
14395         arguments if the size is not a constant.
14396
14397 2004-07-14  Per Bothner  <per@bothner.com>
14398
14399         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
14400         instead of EXPR_LOCUS in a boolean context, which is always true
14401         if --enable-mapped-location.
14402         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
14403
14404 2004-07-14  Richard Henderson  <rth@redhat.com>
14405
14406         * dominance.c (struct dom_info): Add fake_exit_edge.
14407         (init_dom_info): Allocate it.
14408         (free_dom_info): Free it.
14409         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
14410         in two passes.
14411         (calc_idoms): Honor fake_exit_edge.
14412
14413 2004-07-13  Jason Merrill  <jason@redhat.com>
14414
14415         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
14416         (rhs_test_for): New fn.
14417         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
14418         * tree-gimple.h: Declare them.
14419         * gimplify.c (gimplify_modify_expr): Use the new fns.
14420
14421 2004-07-14  Richard Henderson  <rth@redhat.com>
14422
14423         * config/arm/arm-protos.h (arm_va_arg): Remove.
14424         * config/arm/arm.c (arm_va_arg): Remove.
14425         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
14426         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
14427
14428 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14429
14430         * pa.c (fix_range): New function to mark a range(s) of registers as
14431         fixed registers.
14432         (override_options): Call fix_range if the -mfixed-range option string
14433         is not empty.
14434         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
14435         * doc/invoke.texi (-mfixed-range): Document new option.
14436
14437 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
14438
14439         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
14440         for TARGET_64BIT.
14441         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
14442
14443 2004-07-14  Roger Sayle  <roger@eyesopen.com>
14444
14445         * expmed.c (expand_sdiv_pow2): New function to expand signed division
14446         by a positive power of two, split out from expand_divmod.  Provide
14447         an alternate implementation when shifts are expensive.  Lower the
14448         threshold for using a branchless implementation to BRANCH_COST >= 2.
14449         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
14450
14451 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14452
14453         * tree-dfa.c (make_rename_temp): *Really* work just
14454         like create_tmp_var if called while outside SSA form.
14455
14456 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
14457
14458         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
14459         for division by zero.
14460         ("umodsi3"): Likewise.
14461
14462 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
14463
14464         * config/mips/mips.c (mips_output_move): When generating mips16 code,
14465         force loads of negative constants to be split.
14466         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
14467         Generalize SImode li/neg splitter to cope with other modes.
14468
14469 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14470
14471         * expmed.c: Remove more references to QUEUED in the comments.
14472         * expr.c: Likewise.
14473
14474 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
14475
14476         Revert:
14477         2004-07-13  Richard Henderson  <rth@redhat.com>
14478         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
14479         correctly.
14480
14481 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14482
14483         * tree-dfa.c (make_rename_temp): Work just like
14484         create_tmp_var if called while outside SSA form.
14485
14486 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14487
14488         * expr.c (enqueue_insn, finish_expr_for_function,
14489         protect_from_queue, queued_subexp_p, mark_queue,
14490         emit_insns_enqueued_after_mark, emit_queue,
14491         expand_increment): Remove.
14492         (store_constructor): Expand increment as an assignment.
14493         (expand_expr_real_1 <case PREINCREMENT_EXPR,
14494         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
14495         case POSTDECREMENT_EXPR>): Abort.
14496         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
14497         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
14498         protect_from_queue, emit_queue, queued_subexp_p): Remove.
14499         * function.h (pending_chain, x_pending_chain): Remove.
14500         * rtl.def (QUEUED): Remove.
14501
14502         * emit-rtl.c (copy_insn_1, copy_most_rtx,
14503         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
14504         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
14505         encode_units_mask): Likewise.
14506         * local-alloc.c (equiv_init_varies_p): Likewise.
14507         * rtl.c (copy_rtx): Likewise.
14508         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
14509         * simplify-rtx.c (simplify_gen_subreg): Likewise.
14510         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
14511
14512         * builtins.c (expand_builtin, expand_builtin_apply,
14513         expand_builtin_mathfn, expand_builtin_mathfn_2,
14514         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
14515         Remove calls to emit_queue and protect_from_queue.
14516         * calls.c (expand_call, precompute_arguments,
14517         precompute_register_parameters, rtx_for_function_call,
14518         store_one_arg): Likewise.
14519         * dojump.c (do_compare_and_jump, do_jump): Likewise.
14520         * explow.c (memory_address): Likewise.
14521         * expmed.c (clear_by_pieces_1, clear_storage,
14522         clear_storage_via_libcall, emit_group_load,
14523         emit_group_store, emit_store_flag,
14524         expand_expr_real_1, store_by_pieces,
14525         store_constructor, store_expr, try_casesi,
14526         try_tablejump): Likewise.
14527         * function.c (expand_pending_sizes): Likewise.
14528         * optabs.c (emit_cmp_and_jump_insns,
14529         emit_conditional_add, emit_conditional_move,
14530         expand_fix, expand_float, prepare_cmp_insn): Likewise.
14531         * stmt.c (emit_case_bit_tests,
14532         expand_asm_expr, expand_computed_goto,
14533         expand_decl_init, expand_end_case_type,
14534         expand_end_stmt_expr, expand_expr_stmt_value,
14535         expand_return, expand_start_case,
14536         optimize_tail_recursion): Likewise.
14537         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
14538         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
14539
14540 2004-07-14  Ben Elliston  <bje@au.ibm.com>
14541
14542         * vec.h: Comment fix.
14543
14544 2004-07-13  Richard Henderson  <rth@redhat.com>
14545
14546         * target.h (struct gcc_target): Add calls.pass_by_reference.
14547         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
14548         * function.c (pass_by_reference): Use the hook.
14549         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
14550         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
14551         (hook_pass_by_reference_must_pass_in_stack): New.
14552         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
14553         (alpha_pass_by_reference): New.
14554         (TARGET_PASS_BY_REFERENCE): New.
14555         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14556         * config/arc/arc.c (arc_pass_by_reference): New.
14557         (TARGET_PASS_BY_REFERENCE): New.
14558         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14559         (FUNCTION_ARG_CALLEE_COPIES): True.
14560         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
14561         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
14562         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
14563         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14564         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14565         * config/cris/cris.c (cris_pass_by_reference): New.
14566         (TARGET_PASS_BY_REFERENCE): New.
14567         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
14568         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
14569         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14570         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
14571         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14572         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
14573         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
14574         (frv_function_arg_pass_by_reference): Remove.
14575         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14576         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
14577         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
14578         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
14579         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14580         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
14581         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
14582         (ia64_pass_by_reference): Rename from
14583         ia64_function_arg_pass_by_reference.
14584         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14585         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14586         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
14587         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
14588         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
14589         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14590         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
14591         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
14592         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
14593         (m32r_pass_by_reference): Adjust prototype.  Make static.
14594         Handle mode sizes correctly.
14595         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14596         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
14597         (m68hc11_function_arg_pass_by_reference): Remove.
14598         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14599         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
14600         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
14601         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14602         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
14603         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
14604         (mips_va_arg): Use pass_by_reference.
14605         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
14606         Handle mode sizes correctly.
14607         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14608         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
14609         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
14610         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
14611         (mmix_pass_by_reference): Rename from
14612         mmix_function_arg_pass_by_reference.
14613         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14614         (FUNCTION_ARG_CALLEE_COPIES): True.
14615         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
14616         (mn10300_pass_by_reference): New.
14617         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14618         (FUNCTION_ARG_CALLEE_COPIES): True.
14619         * config/pa/pa.c (pa_pass_by_reference): New.
14620         (TARGET_PASS_BY_REFERENCE): New.
14621         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14622         (FUNCTION_ARG_CALLEE_COPIES): True.
14623         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
14624         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
14625         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
14626         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14627         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
14628         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
14629         (s390_pass_by_reference): Rename from
14630         s390_function_arg_pass_by_reference.
14631         (s390_function_arg_advance): Don't query pass-by-ref.
14632         (s390_function_arg): Likewise.
14633         (s390_gimplify_va_arg): Use pass_by_reference.
14634         (s390_call_saved_register_used): Likewise.
14635         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14636         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
14637         (shcompact_byref, sh_pass_by_reference): New.
14638         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14639         (SHCOMPACT_BYREF): Remove.
14640         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
14641         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
14642         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
14643         (sparc_gimplify_va_arg): Use pass_by_reference.
14644         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14645         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14646         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
14647         (v850_pass_by_reference): New.
14648         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14649         (FUNCTION_ARG_CALLEE_COPIES): True.
14650         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
14651         FUNCTION_ARG_PASS_BY_REFERENCE docs.
14652
14653 2004-07-14  Richard Henderson  <rth@redhat.com>
14654             Richard Sandiford  <rsandifo@redhat.com>
14655
14656         * config/mips/mips-protos.h (mips_va_arg): Delete.
14657         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
14658         * config/mips/mips.c: Include tree-gimple.h.
14659         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
14660         (mips_arg_info): Remove special handling of must_pass_in_stck args.
14661         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
14662         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
14663
14664 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
14665
14666         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
14667         arguments for COND_EXPR in big-endian adjustment code.
14668
14669 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14670
14671         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
14672         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
14673         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
14674         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
14675
14676 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
14677
14678         PR tree-optimization/16443
14679         * tree-ssa-alias.c: Add more description for
14680         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
14681         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
14682         clobbering of call-clobbered and addressable variables.  If
14683         there are any before aliases have been computed, add them.
14684
14685 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
14686
14687         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
14688         verification.
14689
14690 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
14691
14692         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
14693         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
14694         to the same type.
14695
14696 2004-07-13  Per Bothner  <per@bothner.com>
14697
14698         * collect2.c (main):  Handle --no-demangle and --demangle flags.
14699
14700 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
14701
14702         * Makefile.in (OBJS-common): Add tree-data-ref.o.
14703         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
14704         (tree-data-ref.o): New rule.
14705         * lambda.h: New file.
14706         * tree-data-ref.c: New file.
14707         * tree-data-ref.h: New file.
14708         * tree.c (int_cst_value, tree_fold_gcd): New functions.
14709         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
14710
14711 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
14712
14713         PR target/13926
14714         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
14715         * config/sparc/sparc.c (output_ubranch): New function.
14716         * config/sparc/sparc.md (jump pattern): Use it.
14717
14718 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
14719
14720         PR target/16494
14721         * config/sparc/sparc.c (output_cbranch): Properly guard
14722         the code handling far branches with TARGET_V9.
14723         * config/sparc/sparc.md (length attribute): Document the
14724         side-effect of having a length greater or equal to 3.
14725
14726 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
14727             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
14728
14729         PR target/15186
14730         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
14731         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
14732
14733 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
14734             Martin Sebor  <sebor@roguewave.com>
14735
14736         PR target/12602
14737         * doc/invoke.texi (SPARC options): Document -threads
14738         and -pthreads on Solaris.
14739
14740 2004-07-13  Richard Henderson  <rth@redhat.com>
14741
14742         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
14743         by reference.
14744         (ind_gimplify_va_arg_expr): Remove.
14745         * tree.h (ind_gimplify_va_arg_expr): Remove.
14746         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
14747         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
14748         argsp to be null.
14749
14750         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
14751         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
14752         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
14753         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
14754         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
14755
14756 2004-07-13  Richard Henderson  <rth@redhat.com>
14757
14758         * function.c (pass_by_reference): New.
14759         (assign_parm_find_data_types): Use it.
14760         * calls.c (initialize_argument_information): Likewise.
14761         (emit_library_call_value_1): Likewise.
14762         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14763         * function.h (pass_by_reference): Declare.
14764
14765 2004-07-13  Richard Henderson  <rth@redhat.com>
14766
14767         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
14768         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
14769         * expr.h (MUST_PASS_IN_STACK): Remove.
14770         * system.h (MUST_PASS_IN_STACK): Poison.
14771         * tree.h (must_pass_in_stack_var_size): Declare.
14772         (must_pass_in_stack_var_size_or_pad): Declare.
14773         * calls.c (must_pass_in_stack_var_size): New.
14774         (must_pass_in_stack_var_size_or_pad): Rename from
14775         default_must_pass_in_stack.
14776         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
14777         (TARGET_MUST_PASS_IN_STACK): New.
14778         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
14779         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
14780         (TARGET_MUST_PASS_IN_STACK): New.
14781         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
14782         * config/frv/frv.c (frv_must_pass_in_stack): New.
14783         (TARGET_MUST_PASS_IN_STACK): New.
14784         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
14785         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
14786         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
14787         (ix86_must_pass_in_stack): Make static.
14788         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
14789         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
14790         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
14791         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
14792         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
14793         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
14794         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
14795         (mcore_must_pass_on_stack): Remove.
14796         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
14797         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
14798         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
14799         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
14800         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
14801         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
14802         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
14803         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
14804         (TARGET_MUST_PASS_IN_STACK): New.
14805         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
14806         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
14807         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
14808         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
14809         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
14810         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
14811         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
14812         MUST_PASS_IN_STACK.
14813
14814         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
14815         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
14816         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
14817         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
14818         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
14819         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
14820         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
14821         config/xtensa/xtensa.c: Use target hook.
14822
14823 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
14824
14825         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
14826         * configure: Rebuilt.
14827
14828 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
14829
14830         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
14831         * config/mips/mips.h (mips_reg_names): Don't declare.
14832         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
14833         (TARGET_NAME_REGS): Delete.
14834         (TARGET_SWITCHES): Remove -mrnames.
14835         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
14836         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
14837         in REGISTER_NAMES.
14838         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
14839         (override_options): Remove handling of TARGET_NAME_REGS.
14840
14841 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
14842
14843         * config/mips/mips.h (TARGET_*): Boolify.
14844
14845 2004-07-12  Nick Clifton  <nickc@redhat.com>
14846
14847         * config.gcc: Add sh-*-symbianelf target.
14848         * config/sh/sh.c: Add new target macros:
14849         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
14850         TARGET_CXX_IMPORT_EXPORT_CLASS.
14851         (sh_file_start): Create a definition of the .directive section.
14852         (sh_attribute): Add dllimport and dllexport attributes.
14853         * config/sh/symbian-pre.h: New file.
14854         * config/sh/symbian-post.h: New file.
14855         * config/sh/symbian.c: New file. Contains Symbian specific
14856         functions.
14857         * config/sh/sh-protos.h: Add prototypes for new functions
14858         provided by symbian.c.
14859         * config/sh/t-symbian: New file.
14860         * doc/extend.texi: Document support for dllimport and dllexport
14861         attributes by the sh-symbianelf target.
14862
14863 2004-07-12  James E Wilson  <wilson@specifixinc.com>
14864
14865         * Makefile.in (AR): Use @AR@ not ar.
14866         (NM): New.
14867         (AR_FOR_TARGET): Use $(AR) not ar for native.
14868         (NM_FOR_TARGET): Use $(NM) not nm for native.
14869         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
14870         * configure: Regenerate.
14871
14872 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
14873
14874         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
14875         special case.
14876         (ashldi3_sp64): Likewise.
14877
14878 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14879
14880         PR target/16477
14881         * pa.c (function_arg): Update comment.
14882         * pa.h (BLOCK_REG_PADDING): Define.
14883
14884 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14885
14886         PR tree-optimization/16461
14887         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
14888         arguments of phi nodes.
14889
14890 2004-07-12  Devang Patel  <dpatel@apple.com>
14891
14892         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
14893
14894 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
14895
14896         * function.c (expand_function_start): Ensure r_save is in Pmode.
14897         * calls.c (prepare_call_address): Ensure static_chain_value is
14898         in Pmode.
14899         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
14900         r_save_area are in Pmode.
14901         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
14902         fnaddr, and static_chain are in Pmode.
14903
14904 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
14905
14906         PR target/16445
14907         * config/ia64/ia64.c (bundling): Don't count ignored insns.
14908
14909 2004-07-12  Richard Henderson  <rth@redhat.com>
14910
14911         * target.h (struct gcc_target): Move gimplify_va_arg_expr
14912         next to build_builtin_va_list.
14913         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
14914         * builtins.c (gimplify_va_arg_expr): Likewise.
14915         * gimplify.c (copy_if_shared_r): Likewise.
14916
14917 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
14918
14919         * passes.c (rest_of_decl_compilation): Don't defer call of
14920         assemble_variable if its DECL_RTL is already set.
14921
14922 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
14923
14924         * cfgloop.h (struct loop): Add nb_iterations field.
14925         (current_loops): Declare.
14926         * tree-chrec.c (chrec_not_analyzed_yet,
14927         chrec_dont_know, chrec_known, count_ev_in_wider_type,
14928         chrec_contains_symbols_defined_in_loop): Remove the temporary
14929         hooks.
14930         * tree-flow-inline.h (loop_containing_stmt): New function.
14931         * tree-scalar-evolution.c: Add implementation.
14932         * tree-scalar-evolution.h: Add declarations.
14933
14934 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
14935
14936         PR rtl-optimization/15921
14937         * Makefile.in (global.o): Add recog.h.
14938
14939         * global.c (recog.h): Add the include-clause.
14940         (bb_info): New member earlyclobber.
14941         (allocate_bb_info, free_bb_info): Initialize/finish the new
14942         member.
14943         (earlyclobber_regclass, earlyclobber_regclass_length): The new
14944         global variables.
14945         (check_earlyclobber, regclass_intersect,
14946         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
14947         New functions.
14948         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
14949         (make_accurate_live_analysis): Modify pavin.
14950
14951 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
14952
14953         * tree-cfg.c (find_taken_edge): Statically compute the truth
14954         value of a predicate comparing an SSA_NAME to itself.
14955
14956 2004-07-12  Roger Sayle  <roger@eyesopen.com>
14957
14958         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
14959         rs6000 doesn't have shift-and-add or shift-and-sub instructions
14960         by returning the cost of a multiplication plus an addition.
14961
14962 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
14963
14964         PR tree-optimization/14107
14965         * gimplify.c (gimplify_return_expr): Accept a
14966         RETURN_EXPR with an error argument.
14967         * tree-optimize.c (init_tree_optimization_passes):
14968         Run pass_warn_function_return at -O0.
14969
14970 2004-07-12  Roger Sayle  <roger@eyesopen.com>
14971
14972         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
14973         index entry.
14974
14975 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
14976
14977         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
14978         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14979         * config/mips/3000.md: Add copyright notice.  Remove automota and
14980         function units; use generic ones instead.  Only define reservations
14981         for things that are different from generic.md.  Extend each clause
14982         to include r3900.
14983         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
14984         * config/mips/mips.md: Include them. Remove define_function_units.
14985         (alu, imuldiv): New automata and units.
14986
14987 2004-07-12  Ben Elliston  <bje@au.ibm.com>
14988
14989         * doc/invoke.texi (Optimize Options): Document -frename-registers
14990         not being enabled by default at -O3.
14991
14992 2004-07-11  Roger Sayle  <roger@eyesopen.com>
14993
14994         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
14995         floating point additions, to keep real immediate constant positive.
14996         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
14997         into X + C, and leave positive real constants as X - C.
14998
14999 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15000
15001         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
15002
15003 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15004
15005         PR tree-optimization/15654
15006         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
15007
15008 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15009
15010         * builtins.c (fold_builtin_fputs): Don't bother converting the
15011         return type to integer_type_node, as we've already checked that
15012         the result will be ignored.
15013
15014         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
15015         that signed addition, subtraction, multiplication, division,
15016         remainder, negation and absolute value may potentially trap.
15017
15018         * fold-const.c (fold_ignored_result): New function to strip
15019         non-side-effecting tree nodes from an expression whose result
15020         is ignored.
15021         (fold_convert): Call fold_ignored_result when casting a value
15022         to VOID_TYPE.
15023         (omit_one_operand):  Call fold_ignored_result on the "omitted"
15024         operand when building a COMPOUND_EXPR.
15025         (pedantic_omit_one_operand): Likewise.
15026         * tree.h (fold_ignored_result): Prototype here.
15027         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
15028         when we're going to ignore the result.
15029
15030 2004-07-11  Richard Henderson  <rth@redhat.com>
15031
15032         PR tree-opt/16383
15033         * tree-ssa-ccp.c (fold_stmt_r): Split out...
15034         * tree.c (fields_compatible_p, find_compatible_field): ... new.
15035         * tree.h (fields_compatible_p, find_compatible_field): Declare.
15036         * tree-sra.c (sra_hash_tree): Hash fields by offset.
15037         (sra_elt_eq): Use fields_compatible_p.
15038         (generate_one_element_ref): Use find_compatible_field.
15039
15040 2004-07-11  Richard Henderson  <rth@redhat.com>
15041
15042         PR tree-opt/16422
15043         * tree-sra.c (generate_one_element_init): New.
15044         (generate_element_init): Use it.
15045         (scalarize_init): Push/pop gimplify context around it.
15046         (find_new_referenced_vars_1, find_new_referenced_vars): New.
15047         * gimplify.c (gimplify_expr): Allow SSA_NAME.
15048
15049 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15050
15051         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
15052         combine.c's combine_insn_cost.
15053         * rtl.h (insn_rtx_cost): Prototype here.
15054         * combine.c (combine_insn_cost): Delete function.
15055         (combine_validate_cost): Update callers of combine_insn_cost to
15056         call insn_rtx_cost instead.
15057         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
15058         requesting the rtx_cost of call and/or jump instructions.
15059
15060         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
15061         rtx_cost directly.  Don't request/use the cost of call or jump
15062         instructions.  Return -1 if the cost of any instruction can't be
15063         determined (or the BB contains a function call).
15064         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
15065         -1 (i.e. can't determine the cost of any instruction or the basic
15066         block contains a subroutine call).
15067         (find_if_case_2): Likewise.
15068
15069 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15070
15071         * rs6000.c (struct processor_costs): Change semantics of fields to
15072         include the COST_N_INSNS scaling, and update all initializers.
15073         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
15074         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
15075         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
15076         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
15077
15078 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15079
15080         * LANGUAGES: Remove obsolete information.
15081
15082 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
15083
15084         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
15085         SIGBUS signal frames, the PSW address points *to* the faulting
15086         instruction, not after it.
15087
15088 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
15089
15090         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
15091         added to TLS symbol addresses.
15092
15093 2004-07-11  Richard Henderson  <rth@redhat.com>
15094
15095         * expmed.c (init_expmed): Use stack-local structures for
15096         temporary rtl.  Don't recognize shifts.
15097
15098 2004-07-11  Richard Henderson  <rth@redhat.com>
15099
15100         * expr.c (store_expr): Don't fiddle subreg promotion for types
15101         with precision smaller than the mode.
15102
15103 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15104
15105         * tree.h (all_types_permanent): Remove.
15106
15107 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15108
15109         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
15110         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
15111         * langhooks.c (lhd_clear_binding_stack): Remove.
15112         * langhooks-def.h (lhd_clear_binding_stack,
15113         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
15114         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
15115         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
15116         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
15117         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
15118         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
15119         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
15120         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
15121         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
15122         * tree.h (poplevel): Don't declare.
15123         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
15124         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
15125         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
15126         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
15127         Remove.
15128
15129 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15130
15131         PR tree-optimization/16437
15132         * c-common.c (shorten_compare): Don't mark result of conversion to
15133         narrower signed type as overflowing.
15134         * fold-const.c (decode_field_reference): Determine whether
15135         signedness comes from outer type using precision rather than size.
15136
15137 2004-07-11  Phil Edwards  <phil@codesourcery.com>
15138
15139         * configure.ac:  Alphabetize --enable-checking list, add
15140         missing valgrind entry.
15141         * configure:  Regenerate.
15142
15143 2004-07-11  Phil Edwards  <phil@codesourcery.com>
15144
15145         * doc/install.texi (Testing):  Fix syntax in "make check" example.
15146
15147 2004-07-10  James E Wilson  <wilson@specifixinc.com>
15148
15149         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
15150
15151 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15152
15153         PR rtl-optimization/16001
15154         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
15155         niter_expr.
15156
15157 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
15158
15159         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
15160
15161 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
15162             James Morrison  <phython@gcc.gnu.org>
15163
15164         * doc/contrib.texi (Contributors): Add gfortran contributors and
15165         fix a couple of typos.
15166
15167 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15168
15169         PR rtl-optimization/15387
15170         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
15171         to incoming args space correctly.
15172
15173 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15174
15175         * pa.c (output_indirect_call): Only use %r2 as the link register in
15176         indirect calls with the long PA 2.0 pc-relative branch.
15177
15178 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
15179
15180         * config/i386/i386.c (override_options): Pick a 64-bit CPU
15181         for the default tuning if TARGET_64BIT.
15182
15183 2004-07-10  Richard Henderson  <rth@redhat.com>
15184
15185         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
15186         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
15187
15188 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
15189
15190         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
15191         * expmed.c (store_bit_field, extract_bit_field): Remove last
15192         argument.
15193         * builtins.c (expand_builtin_signbit): Adjust callers.
15194         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
15195         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
15196         * ifcvt.c (noce_emit_move_insn): Likewise.
15197         * stmt.c (expand_return): Likewise.
15198         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
15199         store_field, expand_expr_real_1): Likewise.
15200
15201 2004-07-10  Richard Henderson  <rth@redhat.com>
15202
15203         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
15204
15205 2004-07-09  Mike Stump  <mrs@apple.com>
15206
15207         * config/darwin.c (no_dead_strip): Add.
15208         (HAVE_DEAD_STRIP): Add.
15209         (darwin_emit_unwind_label): Ensure that we don't dead code strip
15210         the .eh label.
15211
15212 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15213
15214         * tree-ssa-loop-im.c: New file.
15215         * Makefile.in (tree-ssa-loop-im.o): Add.
15216         * cfgloop.c (superloop_at_depth): New function.
15217         * cfgloop.h (superloop_at_depth): Declare.
15218         * common.opt (ftree-lim): New flag.
15219         * expr.c (array_ref_up_bound): New function.
15220         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
15221         * timevar.def (TV_LIM): New timevar.
15222         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
15223         computing immediate uses of a phi node.
15224         * tree-flow.h (struct tree_ann_common_d): Add aux field.
15225         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
15226         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
15227         * tree-pass.h (pass_lim): Declare.
15228         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
15229         functions.
15230         (pass_lim): New pass structure.
15231         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
15232         * tree.c (in_array_bounds_p): New function.
15233         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
15234         (in_array_bounds_p, array_ref_up_bound): Declare.
15235         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
15236         * doc/passes.texi (tree-ssa-loop-im.c): Document.
15237
15238 2004-07-09  Richard Henderson  <rth@redhat.com>
15239
15240         * builtins.c (expand_builtin_stpcpy): Don't modify len.
15241
15242         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
15243         with prejudice.
15244
15245 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
15246
15247         * flags.h: Delete redundant prototypes that are being generated
15248         in options.h from common.opt.
15249         * common.opt: Add in the expository comments formerly in flags.h.
15250
15251 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15252
15253         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
15254         available for use only when TARGET_MMX/_SSE is set, and check for
15255         variable argument function if any register count is non-zero.
15256         (function_arg): Correctly suppress repeated warnings for passing SSE
15257         vectors are arguments without SSE enabled.
15258         (ix86_function_arg_boundary): Without SSE enabled, the use of what
15259         would be SSE register modes does no longer influence the alignment.
15260
15261 2004-07-09  Richard Henderson  <rth@redhat.com>
15262
15263         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
15264         Always align upward to arg boundary.  Use size_in_bytes/round_up.
15265         Maintain type-correctness of constants.
15266         * stor-layout.c (round_up, round_down): Special-case powers of 2.
15267
15268 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
15269
15270         * config/sparc/sparc.c (*_costs): Scale instruction costs
15271         by COSTS_N_INSNS.
15272         (sparc_rtx_costs): Adjust as appropriate.
15273
15274 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15275
15276         * config/i386/mm3dnow.h: New.
15277         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
15278
15279 2004-07-09  Richard Henderson  <rth@redhat.com>
15280
15281         * simplify-rtx.c (simplify_const_relational_operation): Only
15282         look at bounds of scalar integers.
15283
15284 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15285
15286         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
15287
15288 2004-07-09  Andrew Pinski  <apinski@apple.com>
15289
15290         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
15291         always referenced.
15292         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
15293         UOBJC_METACLASS_decl.
15294
15295 2004-07-09  James E Wilson  <wilson@specifixinc.com>
15296
15297         PR target/16364
15298         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
15299         do return a parallel if hfa_mode == XFmode and mode == TImode.
15300
15301 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15302
15303         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
15304         permissible for unary plus.
15305
15306 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15307
15308         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
15309         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
15310         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
15311         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
15312         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
15313         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
15314         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
15315         (BUILTIN_xxxIMAX): New.
15316         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
15317         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
15318         BUILT_IN_PARITYIMAX.
15319
15320 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
15321
15322         * config/sparc/sparc.h (processor_costs): Define.
15323         (sparc_costs): Declare.
15324         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
15325         hypersparc_costs, sparclet_costs, ultrasparc_costs,
15326         ultrasparc3_costs): New.
15327         (sparc_override_options): Set sparc_costs as appropriate.
15328         (sparc_rtx_costs): Use sparc_costs instead of messy
15329         conditionals.
15330
15331 2004-07-09  Steven Bosscher  <stevenb@suse.de>
15332
15333         * doc/md.texi (Processor pipeline description): Mention that
15334         the old pipeline description is deprecated.
15335
15336         * config/rs6000/7450.md (automaton ppc7450): Split up, move
15337         mciu_7450 function unit to...
15338         (automaton ppc7450mciu): ...new automaton.
15339
15340         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
15341         (schedule_block): Don't consider inserting bubbles.
15342         (sched_init): Don't initialize DFA bubbles.
15343         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
15344         TARGET_SCHED_DFA_BUBBLE): Remove.
15345         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
15346         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
15347         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
15348
15349         * stmt.c (conditional_context): Remove prototype.
15350         * tree.h (conditional_context): Remove.
15351         * tree-cfg.c (pre_insert_on_edge): Remove.
15352
15353         * c-common.h (c_expand_asm_operands): Remove prototype.
15354         * c-typeck.c (c_expand_asm_operands): Remove.
15355
15356 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15357
15358         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
15359         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
15360         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
15361         and V8QI are class SSE. All sufficiently small remaining vector modes
15362         must be passed in one or two integer registers.
15363         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
15364         returned in memory.
15365         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
15366         __builtin_ia32_pmuludq128 have non-uniform argument and return types
15367         and must thus be handled explicitly.
15368         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
15369         MMX and XMM regs.
15370         (movv8qi_internal, movv4hi_internal, movv2si_internal,
15371         movv2sf_internal): Permit moving between MMX and XMM registers (since
15372         MMX areguments and return values are passed in XMM registers).
15373         (sse2_umulsidi3): Correct type and mode.
15374
15375 2004-07-09  Richard Henderson  <rth@redhat.com>
15376
15377         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
15378
15379 2004-07-09  Eric Christopher  <echristo@redhat.com>
15380
15381         * config/rs6000/40x.md: Split into two automatons.
15382
15383 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
15384             Andrew Pinski  <apinski@apple.com>
15385
15386         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
15387         on when we have more than one input file.
15388         (c_common_parse_file): Restore loop over all input files.
15389         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
15390
15391         * c-decl.c (set_type_context): New function.
15392         (pop_scope): Use it to set context of types.  When we
15393         encounter a TYPE_DECL, set the context of the attached type too.
15394         (pop_file_scope): Don't call cpp_undef_all here.
15395         (diagnose_mismatched_decls): Do not complain about a second
15396         definition of an 'extern inline' function if it's not in the
15397         same translation unit.  Do not complain about inline
15398         declaration after use if the use was in a different
15399         translation unit.
15400         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
15401         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
15402         the external scope.
15403         (pushdecl_top_level): Likewise.
15404         (grokdeclarator): Clarify what is going on with setting
15405         DECL_EXTERNAL on function types, a little.
15406         (c_write_global_declarations): Don't do anything if
15407         -fsyntax-only or errors have been encountered.
15408
15409 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
15410
15411         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
15412
15413 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15414
15415         PR target/16459
15416         * pa.c (output_indirect_call): Use %r2 as the link register when
15417         calling $$dyncall with a pc-relative branch.
15418
15419 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
15420
15421         * doc/install.texi (Binaries): Mention OpenPKG.
15422
15423 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
15424
15425         Fix PR tree-optimization/15555
15426         * tree-dfa.c (dump_variable): If the variable is a pointer
15427         SSA_NAME, also dump its points-to information.
15428         * tree-flow.h (struct ptr_info_def): Add field
15429         is_dereferenced.
15430         (dump_points_to_info_for): Declare.
15431         (debug_points_to_info_for): Declare.
15432         * tree-optimize.c (init_tree_optimization_passes): Add a
15433         second alias analysis pass after DOM2.
15434         Move pass_del_pta to a later spot.
15435         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
15436         create a name tags when we find a dereferenced pointer.  Just
15437         mark the pointer dereferenced.
15438         (collect_points_to_info_for): Move code to clear points-to
15439         information to create_name_tags.
15440         (create_name_tags): New function.
15441         (compute_flow_sensitive_aliasing): Call it.
15442         (setup_pointers_and_addressables): Mark type tags for renaming
15443         here instead of ...
15444         (create_memory_tag): ... here.
15445         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
15446         (dump_points_to_info_for): Declare extern.
15447         (debug_points_to_info_for): New function.
15448
15449 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
15450
15451         * config/arc/arc.md: Switch to DFA-based scheduler description.
15452         * config/arc/arc.c: Switch to DFA-based scheduler description.
15453
15454 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
15455
15456         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
15457         pointer.
15458
15459 2004-07-09  Richard Henderson  <rth@redhat.com>
15460
15461         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
15462         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15463         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
15464         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
15465
15466         * config/v850/v850-protos.h (v850_va_arg): Remove.
15467         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15468         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
15469         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
15470         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
15471         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
15472
15473 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
15474
15475         PR target/12133
15476         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
15477         and DImode to use +/-4k offset.
15478
15479 2004-07-09  Richard Henderson  <rth@redhat.com>
15480
15481         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
15482         Remove.
15483         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15484         (xstormy16_gimplify_va_arg_expr): Rewrite from
15485         xstormy16_expand_builtin_va_arg.
15486         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
15487
15488         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
15489         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
15490
15491         * config/sh/sh-protos.h (sh_va_arg): Remove.
15492         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15493         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
15494         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
15495
15496         * config/pa/pa-protos.h (hppa_va_arg): Remove.
15497         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15498         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
15499         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
15500
15501         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
15502         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15503         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
15504         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
15505
15506 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15507
15508         * config/sparc/sparc.md (return): Rewrite length formula.
15509         * config/sparc/sparc.c (output_return): Pass 1 as 5th
15510         argument to final_scan_insn when in a delay slot.
15511         (output_sibcall): Likewise.
15512
15513 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
15514
15515         * arm.c (arm_cpp_interwork): New variable.
15516         (arm_override_options): Set it if TARGET_INTERWORK was on the command
15517         line.
15518         * arm.h (arm_cpp_interwork): Declare it.
15519         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
15520         __THUMB_INTERWORK__ in the preprocessor.
15521
15522 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
15523
15524         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
15525
15526 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15527
15528         PR target/16416
15529         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
15530         Override default settings to account for -m32 and -m64.
15531
15532 2004-07-08  Randolph Chung  <tausq@debian.org>
15533
15534         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
15535
15536 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
15537
15538         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
15539         before comparing it as such.
15540
15541 2004-07-08  Richard Henderson  <rth@redhat.com>
15542
15543         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
15544         temporary.  Use bit arithmetic to align.
15545
15546 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
15547
15548         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
15549         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
15550         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
15551         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
15552         add_labels_and_missing_jumps, find_jump_block,
15553         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
15554         Likewise.
15555         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
15556         link_btr_uses, move_btr_def): Likewise.
15557         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
15558         expand_builtin_expect_jump): Likewise.
15559         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
15560         * calls.c (expand_call, emit_library_call_value_1): Likewise.
15561         * cfganal.c (forwarder_block_p): Likewise.
15562         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
15563         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
15564         find_bb_boundaries): Likewise.
15565         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
15566         merge_blocks_move_predecessor_nojumps,
15567         merge_blocks_move_successor_nojumps, insns_match_p,
15568         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
15569         try_optimize_cfg): Likewise.
15570         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
15571         * cfglayout.c (skip_insns_after_block, label_for_bb,
15572         record_effective_endpoints, insn_locators_initialize,
15573         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
15574         * cfgmainloop.c (create_loop_notes): Likewise.
15575         * cfgrtl.c (delete_insn, delete_insn_chain,
15576         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
15577         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
15578         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
15579         redirect_branch_edge, force_nonfallthru_and_redirect,
15580         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
15581         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
15582         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
15583         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
15584         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
15585         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
15586         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
15587         * combine.c (combine_instructions, can_combine_p, try_combine,
15588         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
15589         distribute_notes, distribute_links, insn_cuid): Likewise.
15590         * cse.c (fold_rtx, cse_insn, cse_around_loop,
15591         invalidate_skipped_block, cse_set_around_loop,
15592         cse_end_of_basic_block, cse_main, cse_basic_block,
15593         cse_condition_code_reg): Likewise.
15594         * cselib.c (cselib_process_insn): Likewise.
15595         * ddg.c (create_ddg): Likewise.
15596         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
15597         Likewise.
15598         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
15599         gen_label_die, dwarf2out_var_location): Likewise.
15600         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
15601         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
15602         last_call_insn, active_insn_p, next_label, prev_label,
15603         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
15604         add_insn_before, remove_insn, add_function_usage_to,
15605         reorder_insns, find_line_note, remove_unnecessary_notes,
15606         emit_insn_after_1, classify_insn): Likewise.
15607         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
15608         connect_post_landing_pads, sjlj_mark_call_sites,
15609         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
15610         can_throw_internal, can_throw_external, set_nothrow_function_flags,
15611         convert_to_eh_region_ranges): Likewise.
15612         * explow.c (optimize_save_area_alloca): Likewise.
15613         * expr.c (expand_expr_real): Likewise.
15614         * final.c (insn_current_reference_address, compute_alignments,
15615         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
15616         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
15617         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
15618         propagate_block_delete_insn, propagate_one_insn,
15619         init_propagate_block_info, propagate_block, libcall_dead_p,
15620         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
15621         Likewise.
15622         * function.c (instantiate_virtual_regs, reorder_blocks_1,
15623         expand_function_start, expand_function_end, contains,
15624         thread_prologue_and_epilogue_insns,
15625         reposition_prologue_and_epilogue_notes): Likewise.
15626         * gcse.c (constprop_register, bypass_conditional_jumps,
15627         insert_insn_end_bb, gcse_after_reload): Likewise.
15628         * genemit.c (gen_expand, gen_split): Likewise.
15629         * genpeep.c (gen_peephole, main): Likewise.
15630         * global.c (build_insn_chain): Likewise.
15631         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
15632         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
15633         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
15634         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
15635         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
15636         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
15637         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
15638         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
15639         dead_or_predicable): Likewise.
15640         * integrate.c (try_constants): Likewise.
15641         * jump.c (rebuild_jump_labels, cleanup_barriers,
15642         purge_line_number_notes, init_label_info, mark_all_labels,
15643         squeeze_notes, get_label_before, get_label_after,
15644         reversed_comparison_code_parts, simplejump_p, pc_set,
15645         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
15646         delete_barrier, delete_prior_computation, delete_computation,
15647         delete_related_insns, delete_for_peephole, redirect_jump):
15648         Likewise.
15649         * lcm.c (optimize_mode_switching): Likewise.
15650         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
15651         Likewise.
15652         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
15653         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
15654         * loop-iv.c (simplify_using_assignment): Likewise.
15655         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
15656         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
15657         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
15658         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
15659         check_insn_for_givs, check_final_value, update_giv_derive,
15660         basic_induction_var, product_cheap_p, check_dbra_loop,
15661         loop_insn_first_p, last_use_this_basic_block,
15662         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
15663         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
15664         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
15665         sms_schedule_by_order): Likewise.
15666         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
15667         * postreload.c (reload_cse_simplify_operands, reload_combine,
15668         reload_cse_move2add): Likewise.
15669         * predict.c (can_predict_insn_p, estimate_probability,
15670         expected_value_to_br_prob, process_note_predictions): Likewise.
15671         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
15672         * profile.c (branch_prob): Likewise.
15673         * ra-build.c (live_out_1, livethrough_conflicts_bb,
15674         detect_webs_set_in_cond_jump): Likewise.
15675         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
15676         ra_print_rtl_with_bb): Likewise.
15677         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
15678         * recog.c (next_insn_tests_no_inequality, find_single_use,
15679         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
15680         * reg-stack.c (next_flags_user, record_label_references,
15681         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
15682         compensate_edge, convert_regs_1): Likewise.
15683         * regclass.c (scan_one_insn): Likewise.
15684         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
15685         regmove_optimize, fixup_match_1, single_set_for_csa,
15686         combine_stack_adjustments_for_block): Likewise.
15687         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
15688         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
15689         find_equiv_reg): Likewise.
15690         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
15691         reload_as_needed, emit_input_reload_insns, do_output_reload,
15692         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
15693         Likewise.
15694         * reorg.c (find_end_label, emit_delay_sequence,
15695         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
15696         get_jump_flags, rare_destination, mostly_true_jump,
15697         try_merge_delay_insns, redundant_insn, own_thread_p,
15698         fill_simple_delay_slots, fill_slots_from_thread,
15699         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
15700         dbr_schedule): Likewise.
15701         * resource.c (find_basic_block, next_insn_no_annul,
15702         find_dead_or_set_registers, mark_target_live_regs): Likewise.
15703         * rtl.h (RTX_PREV): Likewise.
15704         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
15705         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
15706         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
15707         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
15708         tablejump_p, computed_jump_p, insns_safe_to_move_p,
15709         find_first_parameter_load, can_hoist_insn_p): Likewise.
15710         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
15711         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
15712         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
15713         schedule_ebbs): Likewise.
15714         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
15715         is_conditionally_protected, can_schedule_ready_p,
15716         add_branch_dependences, debug_dependencies): Likewise.
15717         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
15718         Likewise.
15719         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
15720         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
15721         set_dominates_use, ujump_to_loop_cont): Likewise.
15722         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
15723         * varasm.c (output_constant_pool_1): Likewise.
15724
15725 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15726
15727         * tree-scalar-evolution.c: New file.
15728         * tree-scalar-evolution.h: New file.
15729         * tree-ssa-loop-niter.c: New file.
15730         * Makefile.in (SCEV_H): New.
15731         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
15732         * cfgloop.h (struct loop): Add bounds field.
15733         * tree-flow.h (struct tree_niter_desc): New type.
15734         (number_of_iterations_cond, number_of_iterations_exit,
15735         loop_niter_by_eval, find_loop_niter_by_eval,
15736         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
15737         free_numbers_of_iterations_estimates): Declare.
15738         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
15739         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
15740         * doc/invoke.texi (max-iterations-to-track): Document.
15741
15742 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15743
15744         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
15745         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
15746         (MODE_AFTER): Add cast appropriately.
15747         * config/sh/sh.md (movdi splitter): Likewise.
15748         (casesi_worker_2): Add const qualifier appropriately.
15749         (eh_return): Remove unused variable.
15750         (insv): Initialize v;
15751
15752 2004-07-08  Richard Henderson  <rth@redhat.com>
15753
15754         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
15755         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15756         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
15757         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
15758         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
15759
15760         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
15761         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15762         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
15763         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
15764
15765         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
15766         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15767         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
15768         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
15769
15770         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
15771         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15772         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
15773         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
15774
15775         * config/i860/i860-protos.h (i860_va_arg): Remove.
15776         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15777         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
15778         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
15779
15780 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
15781
15782         * system.h: Prototype getpagesize if missing.
15783         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
15784         * configure: Regenerate.
15785         * config.in: Regenerate.
15786
15787 2004-07-08  Richard Henderson  <rth@redhat.com>
15788
15789         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
15790         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15791         (fr30_gimplify_va_arg_expr): New.
15792         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
15793         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
15794
15795 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
15796
15797         PR target/16414
15798         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
15799         of asm_noperands result.
15800
15801 2004-07-08  Richard Henderson  <rth@redhat.com>
15802
15803         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
15804         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15805         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
15806         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
15807
15808 2004-07-08  Richard Henderson  <rth@redhat.com>
15809
15810         * builtins.c (ind_gimplify_va_arg_expr): New.
15811         * tree.h (ind_gimplify_va_arg_expr): Declare.
15812         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
15813
15814 2004-07-08  Jan Beulich  <jbeulich@novell.com>
15815
15816         * expmed.c (extract_bit_field): Correct condition to use vec_extract
15817         patterns also on vector elements other than the first one.
15818         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
15819         break statements.
15820
15821 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
15822
15823         * config/rs6000/darwin-ldouble.c: Correct reference
15824         to the Linnainmaa paper.
15825
15826 2004-07-08  Richard Henderson  <rth@redhat.com>
15827
15828         * config/arc/arc-protos.h (arc_va_arg): Remove.
15829         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15830         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
15831         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
15832
15833         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
15834         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15835         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
15836         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
15837
15838 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15839
15840         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
15841
15842 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
15843
15844         * c-decl.c (static_ctors, static_dtors): Make static.
15845         (pop_file_scope): Call c_common_write_pch and
15846         cgraph_finalize_compilation_unit here.
15847         (build_cdtor): Moved here from c-objc-common.c; simplify.
15848         (c_write_global_declarations_1): Clarify comment.
15849         (c_write_global_declarations): Close the external scope before
15850         doing anything else.  Call build_cdtor, cgraph_optimize, and
15851         mudflap_finish_file here.
15852         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
15853         Clarify comment.
15854         * c-objc-common.c: No need to include cgraph.h.
15855         (build_cdtor): Moved to c-decl.c.
15856         (c_objc_common_finish_file): Delete.
15857         * c-tree.h: Update to match.
15858         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
15859         (generate_static_references): Set TREE_USED before calling finish_decl.
15860         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
15861         on the static_instances_decl.
15862
15863 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
15864
15865         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
15866         decls when there is only one input translation unit.
15867         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
15868         change of 2004-07-05; do not treat declarations with
15869         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
15870         * opts.c (cur_in_fname): Delete.
15871         * opts.h: Likewise.
15872         * tree.c: Revert changes of 2004-07-05; no special treatment
15873         for TRANSLATION_UNIT_DECLs.
15874         * Makefile.in (tree.o): Update dependencies.
15875
15876 2004-07-08  Roger Sayle  <roger@eyesopen.com>
15877
15878         * builtins.c (fold_builtin_strcpy): Merge functionality from
15879         simplify_builtin_strcpy.  Add additional len argument.  No longer
15880         static.  Remove function prototype.
15881         (fold_builtin_strncpy): Likewise integrate functionality from
15882         simplify_builtin_strncpy.  Add additional slen argument.  No
15883         longer static.  Remove function prototype.
15884         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
15885         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
15886         types of "ignore" and "unlocked" parameters to bool.
15887         (fold_builtin_1):  Add additional ignore argument.  Call renamed
15888         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
15889         builtins.  Update arguments to fold_builtin_strncpy and
15890         fold_builtin_strcpy.  Add function prototype.
15891         (fold_builtin): Add additional Boolean ignore argument to pass
15892         to fold_builtin_1.
15893         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
15894         and fold_builtin_strncpy instead of simplify_builtin_fputs,
15895         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
15896
15897         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
15898         simplify_builtin_strncpy): Delete function prototypes.
15899         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
15900         fold_builtin_strncpy): Add function prototypes here.
15901         (fold_builtin): Update function prototype with new "bool ignore".
15902
15903         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
15904         (ccp_fold_builtin):  Update call to fold_builtin.  Call
15905         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
15906         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
15907         simplify_builtin_strncpy respectively.
15908         * fold-const.c (fold): Update call to fold_builtin.
15909
15910 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
15911
15912         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
15913         to strcpy.
15914
15915         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
15916         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
15917         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
15918         * calls.c: Remove ifdefs of macros above.
15919         * functions.c: Likewise.
15920         * expr.c: Likewise.
15921
15922 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15923
15924         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
15925         (arch attribute): Delete.
15926         (current_function_calls_alloca attribute): Rename into calls_alloca.
15927         (calls_eh_return): New attribute.
15928         (leaf_function): Likewise.
15929         (length attribute): Fix formula for sibcalls.
15930         (return insn): Correctly compute the 'length' attribute.
15931         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
15932
15933 2004-07-08  Richard Henderson  <rth@redhat.com>
15934
15935         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
15936         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
15937         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
15938         * tree-eh.c (lower_eh_constructs_1): Likewise.
15939         * tree-sra.c (sra_walk_modify_expr): Likewise.
15940         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15941         (eliminate_unnecessary_stmts): Likewise.
15942         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
15943         * tree-tailcall.c (optimize_tail_call): Likewise.
15944         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
15945
15946 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
15947             Jakub Jelinek  <jakub@redhat.com>
15948
15949         * config/i386/i386.c (override_options): Enable
15950         SSE prefetches with -mtune, as long as we are
15951         compiling for i686 or higher.  All i686 processors
15952         accept SSE prefetches as NOPS, some i586's don't.
15953
15954 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15955
15956         PR target/10567
15957         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
15958
15959 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
15960
15961         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
15962         the handling of clobbering ASM_EXPRs.
15963
15964 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15965
15966         PR target/16430
15967         * config/sparc/sparc.c (function_value): In 64-bit mode,
15968         return the aggregates larger than 16 bytes like unions.
15969
15970 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15971
15972         PR target/16199
15973         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
15974         'temp' is zero, generate new pseudos as needed and emit the
15975         sequence of insns in single-assignment form.  Resync comments
15976         with code.
15977         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
15978         function before reload.
15979
15980 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
15981
15982         * vec.c (vec_assert_fail): Remove duplicate 'function'.
15983
15984         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
15985
15986         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
15987         Allocation is signed.
15988         (VEC_reserve): Return flag, allocation is signed.
15989
15990 2004-07-08  Richard Henderson  <rth@redhat.com>
15991
15992         * tree-ssa-ccp.c (fold_stmt): Get type directly from
15993         OBJ_TYPE_REF_OBJECT.
15994
15995 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
15996             Neil Booth  <neil@daikokuya.co.uk>
15997
15998         PR c/2511
15999         PR c/3325
16000         * c-decl.c (finish_struct): Ensure bit-fields are given the
16001         correct type.
16002         * c-common.c (c_common_signed_or_unsigned_type): For C, require
16003         the precision to match as well as the mode.
16004         * expr.c (reduce_to_bit_field_precision): New function.
16005         (expand_expr_real_1): Reduce expressions of bit-field type to
16006         proper precision.
16007         * langhooks.h (reduce_bit_field_operations): New hook.
16008         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
16009         Define.
16010         * c-lang.c, objc/objc-lang.c
16011         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
16012         * objc/objc-act.c (check_ivars): Convert types to bit-field types
16013         before checking.
16014         * tree.c (build_nonstandard_integer_type): New function.
16015         * tree.h (build_nonstandard_integer_type): New prototype.
16016         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
16017         conversions between integer and boolean types as useless.
16018
16019 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
16020
16021         * c-common.c (c_common_nodes_and_builtins): Do not
16022         create __builtin_ptrdiff_t and __builtin_size_t.
16023
16024 2004-07-08  Andrew Pinski  <apinski@apple.com>
16025
16026         * Makefile.in (libbackend.o): Add -combine to the gcc
16027         command line.
16028
16029 2004-07-08  Nick Clifton  <nickc@redhat.com>
16030
16031         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
16032         Set to -Os.
16033
16034 2004-07-08  Richard Henderson  <rth@redhat.com>
16035
16036         * except.c (expand_eh_region_start, expand_eh_region_end,
16037         expand_eh_handler, expand_eh_region_end_cleanup,
16038         expand_start_all_catch, expand_start_catch, expand_end_catch,
16039         expand_end_all_catch, expand_eh_region_end_allowed,
16040         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
16041         expand_eh_region_end_fixup): Remove.
16042         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
16043         cleanups, outer_cleanups, label_chain, exception_region.
16044         (struct goto_fixup): Remove stack_level, cleanup_list_list.
16045         (struct label_chain): Remove.
16046         (struct stmt_status): Remove x_stack_block_stack.
16047         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
16048         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
16049         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
16050         end_cleanup_deferral, last_cleanup_this_contour,
16051         containing_blocks_have_cleanups_or_stack_level,
16052         any_pending_cleanups): Remove.
16053         (expand_null_return_1): Take no arguments.
16054         (expand_label, expand_naked_return, expand_return,
16055         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
16056         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
16057         expand_end_case_type): Don't use any of them.
16058         * calls.c (expand_call): Likewise.
16059         * dojump.c (do_jump): Likewise.
16060         * function.c (expand_function_end): Likewise.
16061         * expr.c (store_expr, expand_expr_real_1): Likewise.
16062         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
16063         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
16064         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
16065         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
16066         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
16067         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
16068         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
16069         for WITH_CLEANUP_EXPR.
16070         (gimple_push_cleanup): Likewise.
16071         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
16072         * print-tree.c (print_node): Likewise.
16073         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
16074         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
16075         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
16076         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
16077         (GOTO_SUBROUTINE_EXPR): Remove.
16078         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
16079         (DECL_TOO_LATE): Remove.
16080         * except.h, tree.h: Update decls.
16081
16082 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
16083
16084         * explow.c (optimize_save_area_alloca): Do not accept parameters.
16085         * passes.c (rest_of_handle_final): Handle symout.
16086         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
16087         Push timevar here.
16088         (rest_of_handle_sched): Break out SMS.  Remove ifs for
16089         flag_schedule_insns and flag_modulo_sched.
16090         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
16091         collect at the end.
16092         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
16093         (rest_of_handle_partition_blocks, rest_of_handle_sms,
16094         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
16095         rest_of_handle_mode_switching, rest_of_handle_jump,
16096         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
16097         rest_of_handle_jump2, rest_of_handle_postreload,
16098         rest_of_handle_flow2, rest_of_clean_state,
16099         rest_of_handle_shorten_branches,
16100         rest_of_handle_prologue_epilogue,
16101         rest_of_handle_branch_target_load_optimize): New.
16102         (rest_of_compilation): Call the above.  Remove ggc_collect
16103         calls moved to rest_of_handle_*.
16104         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
16105
16106         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
16107         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
16108         * except.h (set_nothrow_function_flags): Update comment.
16109         * function.c (current_function_nothrow): Remove.
16110         * output.h (current_function_nothrow): Remove.
16111         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
16112         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
16113
16114 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16115
16116         PR bootstrap/16326
16117         * reorg.c: Revert 2004-06-30 change.
16118         (find_end_label): If HAVE_epilogue and !HAVE_return,
16119         return 0 instead of creating a label at the end of the insn chain.
16120         (optimize_skip): Account for the failure mode of find_end_label.
16121         (fill_simple_delay_slots): Likewise.
16122         (fill_slots_from_thread): Likewise.
16123         (relax_delay_slots): Likewise.
16124
16125 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
16126
16127         * tree-flow.h (addressable_vars): Declare.
16128         * tree-ssa-alias.c (addressable_vars): Define.
16129         (setup_pointers_and_addressables): Add addressable variables
16130         to addressable_vars.
16131         * tree-ssa-operands.c (get_stmt_operands): Move
16132         handling of ASM_EXPRs ...
16133         (get_asm_expr_operands): ... here.
16134         When the ASM_EXPR clobbers memory, also clobber addressable
16135         variables.
16136         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
16137         (delete_tree_ssa): Reset addressable_vars.
16138
16139 2004-07-07  Jan Beulich  <jbeulich@novell.com>
16140             Richard Henderson  <rth@redhat.com>
16141
16142         * varasm.c (assemble_variable): Use assemble_zeros for
16143         zero-initialized variables.
16144         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
16145         for SECCAT_BSS and SECCAT_TBSS.
16146
16147 2004-07-07  Jan Beulich  <jbeulich@novell.com>
16148
16149         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
16150
16151         * expmed.c (emit_store_flag): Also special-case double-word
16152         (in-)equality comparison against -1.
16153
16154         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
16155         passing arguments the containers for which are registers.
16156
16157         * calls.c (emit_library_call_value_1): Use mode of function parameter
16158         rather than that of argument since constants have none.
16159
16160 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
16161
16162         Introduce H8SX support.
16163         * expr.c (expand_strcpy): Renamed and moved to...
16164         * builtins.c (expand_movstr): ... here.  Tweak.
16165         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
16166         computed or has side effects.
16167         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
16168         unused, or if mempcpy fails.  Adjust the return value in the
16169         latter case.  Use movstr if everything else fails.
16170         * doc/md.texi (movstr): Document.
16171         (movmemM, clrmemM): Fix explanation of memory block operands.
16172         * config/h8300/h8300.md (stpcpy): Renamed to...
16173         (movstr): ... this.  Adjust.
16174         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
16175         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
16176         movmem* and clrstr* to clrmem*.
16177         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
16178         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
16179         GENERAL_REGS, always.
16180         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
16181         getting the stack pointer as addr.
16182         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
16183         from general_operand_dst.
16184         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
16185         variant of...
16186         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
16187         instead of requiring it to match only before reload.
16188         (stpcpy_internal_normal): New, normal-mode variant of...
16189         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
16190         `D' instead of requiring it to match only before reload.
16191         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
16192         mode argument.
16193         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
16194         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
16195         h8300_get_index.
16196         * config/h8300/h8300.md (attr type): Add call.
16197         (attr can_delay): If type is call, set it no.
16198         (call, call_value): Set type to call.
16199         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
16200         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
16201         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
16202         * tree.c (get_narrower): Don't narrow integral types into
16203         non-integral types.
16204         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
16205         frame_size *before* the first use.
16206         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
16207         on input.
16208         (peephole2): Don't widen instructions that push SP.  Move
16209         decrement of SP to the end of all stm-generating peepholes.
16210         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
16211         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
16212         and OR to set it to all ones.
16213         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
16214         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
16215         (call, call_value): Set can_delay to "no".
16216         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
16217         * config/h8300/h8300.md (extzv): Make subreg check more robust.
16218         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16219         * config/h8300/h8300.md (*brabit): Remove.
16220         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
16221         zero_extract.  Use bit_memory_operand as the predicate for
16222         operand 1 and 'WU' as the constraint.  Check the difference
16223         between the base length and the final one when deciding which
16224         type of branch to use.
16225         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16226         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
16227         Use convert_move to extend the result for TARGET_H8300SX.  Check
16228         for QImode memory references.  Optimize the case where the
16229         destination is a paradoxical subreg.
16230         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16231         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
16232         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
16233         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16234         * config/h8300/h8300.md: Include mova.md
16235         (length_table): Add mova and mova_zero.
16236         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
16237         after all constant addresses for '%R', '%X', '%T' and '%S'.
16238         (h8300_mova_length): New function.
16239         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
16240         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
16241         dependencies for s-config, etc.
16242         * config/h8300/gemova.sh: New file.
16243         * config/h8300/mova.md: Generated.
16244         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
16245         * config/h8300/h8300.c (h8300_bitfield_length): New.
16246         (nibble_operand): Adjust.
16247         (h8300_binary_length): Handle conditional binary op.
16248         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
16249         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
16250         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
16251         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
16252         constraints.  WU is introduced as a variant of U that requires a
16253         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
16254         * config/h8300/h8300.md (attr type): Added bitbranch.
16255         (attr length_table): Added bitfield and bitbranch.
16256         (attr length): Compute bitbranch length.
16257         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
16258         least-significant bit of a byte.
16259         (brabit, brabc, brabs): New.
16260         (insv, extzv): Emit bfst and bfld on H8300SX.
16261         (bfld, bfst, seq, sne): New.
16262         (bstzhireg, cmpstz, bstz, bistz): New.
16263         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
16264         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
16265         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
16266         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
16267         (h8sx_unary_memory_operator): New function.
16268         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
16269         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
16270         * config/h8300/h8300.md: Add peepholes to combine reloads and
16271         arithmetic insns.
16272         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
16273         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
16274         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
16275         (and?i, ior?i, xor?i): Likewise.
16276         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
16277         * config/h8300/h8300.c: Move enums and prototypes to head of file.
16278         Various whitespace fixes.
16279         (h8300_constant_length): New function, split out from...
16280         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
16281         (h8300_classify_operand): Use IN_RANGE.
16282         (h8300_classify_operand): Use h8300_constant_length.
16283         (h8300_short_move_mem_p): Tighten size check.
16284         (h8sx_mergeable_memrefs_p): Tighten equality check.
16285         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
16286         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
16287         for -msx.
16288         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
16289         * config/h8300/crtn.asm: Likewise.
16290         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
16291         if __H8300SX__ is defined.
16292         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
16293         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
16294         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
16295         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
16296         addresses as mode-dependent.
16297         * config/h8300/h8300.c (print_operand_address): Update call to
16298         h8300_get_index.
16299         (h8300_get_index): Take a mode argument.  Rework to fix an
16300         earlier misunderstanding.
16301         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
16302         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
16303         into a register if TARGET_H8300SX.
16304         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
16305         TARGET_H8300SX.  Also disable related define_splits.
16306         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
16307         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
16308         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
16309         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
16310         * config/h8300/h8300.h (OK_FOR_Z): New macro.
16311         (EXTRA_CONSTRAINT_STR): Check it.
16312         * config/h8300/h8300.c (h8300_classify_operand): Accept null
16313         class arguments.
16314         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
16315         * config/h8300/h8300.md (length_table): Add mov_imm4.
16316         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
16317         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
16318         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
16319         be a label.
16320         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
16321         * config/h8300/h8300.c (h8300_reorg): New function.
16322         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16323         * config/h8300/h8300.md (length): Subtract the length of the
16324         delay slot from (pc) when checking the range of forward branches.
16325         (delay_slot, can_delay): New attributes.
16326         (define_delay): Add bra/s handling.
16327         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
16328         (jump): Add delayed-branch handling.
16329         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
16330         * expr.c (expand_strcpy): New function.
16331         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
16332         (expand_builtin_stpcpy): Likewise.
16333         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
16334         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
16335         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
16336         handling to improve register allocation for -fno-omit-frame-pointer.
16337         (h8sx_split_movmd): Delete, moving er6 handling into...
16338         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
16339         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
16340         (movmd): Add calls to copy_rtx.
16341         (movmd_internal): In the second alternative, allow the initial and
16342         final destination registers to be different .  Update the splitter
16343         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
16344         instead of h8sx_split_movmd.
16345         (stpcpy, movsd): New expanders.
16346         (movsd_internal): New define_insn.
16347         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
16348         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
16349         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
16350         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
16351         and DESTINATION_REGS.
16352         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
16353         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
16354         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
16355         (h8300_move_ratio): Declare.
16356         (MOVE_RATIO): Use it.
16357         * config/h8300/h8300.c (h8300_move_ratio): New variable.
16358         (h8300_init_once): Initialize it.
16359         (h8300_reg_class_from_letter): New function.
16360         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
16361         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
16362         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
16363         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
16364         (movstrsi, movmd): New expanders.
16365         (movmd_internal): New insn.
16366         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
16367         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
16368         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
16369         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
16370         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
16371         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
16372         * config/h8300/h8300.c (nibble_operand): Fix warning.
16373         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
16374         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
16375         (movsf_h8300h): Disable for TARGET_H8300SX.
16376         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
16377         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
16378         h8300_stm_parallel and h8300_return_parallel.
16379         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
16380         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
16381         h8300_stm_parallel, h8300_return_parallel): New functions.
16382         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
16383         if TARGET_H8300SX.  Use h8300_push_pop.
16384         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
16385         and final pop when generating h8sx code.  Always emit some form
16386         of return insn.
16387         * config/h8300/h8300.md: Don't enforce register alignment in
16388         stm peepholes if TARGET_H8300SX.
16389         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
16390         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
16391         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
16392         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
16393         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
16394         (MULTILIB_DIRNAMES): Add a directory for it.
16395         (MULTILIB_MATCHES): Delete.
16396         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
16397         * final.c (walk_alter_subreg): Handle addresses with subregs
16398         inside a ZERO_EXTEND or AND.
16399         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
16400         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
16401         if TARGET_H8300SX.
16402         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
16403         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
16404         @(dd,Rn.w) and @(dd,ERn.L).
16405         (h8300_displacement_size): Take the whole address as argument.
16406         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
16407         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
16408         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
16409         (h8sx_mergeable_memrefs_p): Declare.
16410         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
16411         (HAVE_PRE_INCREMENT): Likewise.
16412         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
16413         addresses for TARGET_H8300SX,
16414         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
16415         and POST_DEC.
16416         (movb_length_table, movl_length_table): New tables.
16417         (movw_length_table): Define to movb_length_table.
16418         (h8300_displacement_size): New, split out from...
16419         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
16420         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
16421         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
16422         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
16423         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
16424         (compute_plussi_length, compute_plussi_cc): Update accordingly.
16425         (h8sx_unary_shift_operator): Get the mode from the operator.
16426         (binary_shift_operator): Likewise.
16427         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
16428         a memory reference, check whether the reference is offsettable.
16429         (length_table): Add movb, movw and movl.
16430         (movqi): Add new h8sx pattern.  Don't force one operand to be a
16431         register when generating h8sx code.
16432         (movhi, movsi, movsf): Likewise.
16433         (movstrictqi): Use the length_table attribute.
16434         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
16435         (addqi3): Split into a define_expand and define_insn.  Don't accept
16436         memory operands in the expander.  Use h8300_operands_match_p to
16437         check for matching operands in the define_insn.
16438         (subqi3, negqi2, one_cmplqi2): Likewise.
16439         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
16440         in any patterns that are unused in h8sx code.  In the h8sx patterns,
16441         use h8300_operands_match_p to check whether operands match.
16442         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
16443         one_cmpl[hs]i3): Likewise.
16444         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
16445         in the expander.
16446         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
16447         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
16448         (h8300_insn_length_from_table): Add a second parameter.
16449         (output_h8sx_shift): Declare.
16450         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
16451         (EXTRA_CONSTRAINT): Replace with...
16452         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
16453         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
16454         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
16455         and h8sx_binary_shift_operator.
16456         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
16457         for TARGET_H8300SX.
16458         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
16459         (bit_memory_operand, fix_bit_operand): Likewise.
16460         (h8300_length_table_for_insn): Remove.
16461         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
16462         instructions.
16463         (h8300_short_immediate_length, h8300_binary_length): New functions.
16464         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
16465         (output_plussi): Use sub to add negative constants.
16466         (compute_plussi_length): Adjust accordingly.
16467         (h8sx_single_shift_type): New enum.
16468         (h8sx_single_shift, h8sx_unary_shift_operator,
16469         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
16470         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
16471         single h8sx instruction.  Return false in this case.
16472         * config/h8300/h8300.md (length_table): Add short_immediate.
16473         (length): Pass the operand array to h8300_insn_length_from_table.
16474         (adjust_length): Assume "no" for insns with a length_table attribute.
16475         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
16476         (*addhi3_h8300hs): Don't use for h8sx.
16477         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
16478         and sub.w #xx:3.
16479         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
16480         1's predicate to nonimmediate_operand.  Only skip default expansion
16481         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
16482         for single h8sx shift instructions.
16483         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
16484         * config/h8300/h8300.c (nibble_operand): Split out of...
16485         (reg_or_nibble_operand): ... this.
16486         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
16487         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
16488         umulhisi3): Introduce expand, and introduce separate insns for
16489         sign- or zero-extended REG and already-extended CONST_INT.
16490         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
16491         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
16492         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
16493         (subhi3): Likewise.  Don't accept immediates for operand 1.
16494         Remove the early clobber from second alternative of the h8300s pattern.
16495         (subsi3): Generalize for h8sx.  Force operand 2 into a register
16496         on plain h8300 targets.
16497         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
16498         (subsi3_h8300h): Generalize for h8sx.
16499         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
16500         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
16501         * config/h8300/h8300.c (reg_or_nibble_operand): New.
16502         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
16503         (TARGET_H8300SXMUL): New.
16504         (CONST_OK_FOR_P): New.
16505         (CONST_OK_FOR_LETTER_P): Adjust.
16506         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
16507         umulhisi3): Accept 4-bit immediate on H8SX.
16508         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
16509         (udivsi3, divhi3, udivsi3, divsi3): New.
16510         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
16511         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
16512         * config/h8300/h8300.h (OK_FOR_Q): New macro.
16513         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
16514         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
16515         Add ADDRESSOF to the bit_operand entry.
16516         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
16517         (h8300_src_operand): Likewise.
16518         (bit_operand): Check nonimmediate_operand rather than general_operand.
16519         Accept any nonimmediate_operand in h8sx code.
16520         (h8300_and_costs): Initialize operands[1].
16521         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
16522         (h8300_operand_class): New enum.
16523         (h8300_length_table): New typedef.
16524         (addb_length_table, addw_length_table, addl_length_table,
16525         logicl_length_table): New tables.
16526         (logicb_length_table, logicw_length_table): New macros.
16527         (h8300_classify_operand, h8300_length_from_table,
16528         h8300_length_table_for_insn, h8300_unary_length,
16529         h8300_insn_length_from_table): New functions.
16530         (output_plussi): Only use adds and subs for register destinations.
16531         Disable redundant clause.
16532         (compute_plussi_cc): Likewise.
16533         (compute_plussi_length): Likewise.  Use h8300_length_from_table
16534         to work out the length of an insn.
16535         (output_logical_op): Only use narrower immediate instructions
16536         if the destination is a register.
16537         (compute_logical_op_cc): Likewise.
16538         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
16539         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
16540         * config/h8300/h8300.md (length_table): New attribute.
16541         (length): When an instruction has a length_table attribute, use
16542         h8300_insn_length_from_table to calculate its default length.
16543         (cmpqi): Use h8300_dst_operand for the first operand and
16544         h8300_src_operand for the second.
16545         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
16546         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
16547         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
16548         iorsi3, xorhi3, xorsi3): Likewise.
16549         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
16550         so that it allows any combination of operands for TARGET_H8300SX.
16551         (iorqi3, xorqi3): Likewise.
16552         (cmpqi): Use the length_table attribute.
16553         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
16554         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
16555         (cmpqi): Add 'Q' constraint.
16556         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
16557         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
16558         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
16559         * config/h8300/h8300.h (MASK_H8300SX): New macro.
16560         (TARGET_H8300S): True for both -ms and -msx.
16561         (TARGET_H8300SX): New macro.
16562         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
16563         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
16564         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
16565         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
16566         [Temporary change.]
16567         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
16568         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
16569         16-bit pointers and 32-bit ints.
16570         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
16571         CONST_DOUBLE with mode no wider than SImode.
16572         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
16573         output operand.
16574         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
16575         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
16576         or SUBREG thereof.
16577         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
16578         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
16579         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
16580
16581 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
16582
16583         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
16584
16585 2004-07-07  Per Bothner  <per@bothner.com>
16586
16587         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
16588
16589 2004-07-07  Mike Stump  <mrs@apple.com>
16590
16591         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
16592         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
16593         (machopic_finish): Likewise.
16594
16595 2004-07-07  Richard Henderson  <rth@redhat.com>
16596
16597         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
16598         through any value-preserving cast.
16599
16600 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
16601
16602         * function.c (assign_parm_find_data_types): Call
16603         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
16604
16605 2004-07-07  Steven Bosscher  <stevenb@suse.de>
16606
16607         * tree-cfg.c (group_case_labels): Remove case labels that have
16608         the same target as the default case.
16609
16610 2004-07-07  Steven Bosscher  <stevenb@suse.de>
16611
16612         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
16613         regardless of DECL_LANG_SPECIFIC being present or not.
16614         * tree.h (DECL_NUM_STMTS): Purge.
16615
16616 2004-07-07  Andrew Pinski  <apinski@apple.com>
16617
16618         * configure: Regenerate with the right autoconf.
16619
16620 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
16621
16622         * ifcvt.c (total_bb_rtx_cost): New function.
16623         (find_if_case_1): Compare rtx_cost of basic block to cost of
16624         BRANCH_COST insns.
16625         (find_if_case_2): Same.
16626
16627 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
16628
16629         PR target/10567
16630         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
16631         (output_return): Likewise.
16632         (output_sibcall): Abort if !flag_delayed_branch.
16633         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
16634         (emit_and_preserve): New function.
16635         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
16636         indirect jump to the thunked-to function if !flag_delayed_branch.
16637         * config/sparc/sparc.md (delayed_branch): New attribute.
16638         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
16639         attribute to compute the length of the insn.
16640         (goto_handler_and_restore): Likewise.
16641
16642 2004-07-07  Andrew Pinski  <apinski@apple.com>
16643
16644         PR tree-optimization/15777
16645         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
16646
16647         * expr.c (expand_expr_real_1): Fix formating.
16648         BUFFER_REF and IN_EXPR are dead.
16649         * fold-const.c (non_lvalue): BUFFER_REF is dead.
16650         * tree-inline.c (estimate_num_insns_1): Likewise.
16651         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
16652         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
16653         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
16654
16655 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16656
16657         * collect2.c (dump_file): Don't call cplus_demangle if
16658         HAVE_LD_DEMANGLE is defined.
16659         (main): Pass "--demangle" to ld if no_demangle is not 0 and
16660         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
16661         if HAVE_LD_DEMANGLE is defined.
16662
16663         * configure.ac (--with-demangler-in-ld): Added
16664         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
16665         --with-demangler-in-ld is used.
16666         * config.in: Regenerated.
16667         * configure: Likewise.
16668
16669 2004-07-07  Roger Sayle  <roger@eyesopen.com>
16670
16671         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
16672         for simple floating point operations "fp", double precision
16673         multiplication "dmul", and single and double precision division
16674         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
16675         (ppc630_cost): New table split from ppc620_cost, to distinguish
16676         differences in floating point latencies.
16677         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
16678         (rs6000_rtx_costs): Add support for single and double precision
16679         floating point addition, subtraction, multiplication, division,
16680         fused-multiply-add, fused-multiply-sub, negation, absolute value
16681         and negative absolute value.  Tweak MEM case to use prefered idiom.
16682
16683 2004-07-07  Richard Henderson  <rth@redhat.com>
16684
16685         * tree-flow-inline.h (may_propagate_copy): Move...
16686         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
16687         attempt to copy between types requiring conversion.
16688         * tree-flow.h (may_propagate_copy): Update decl.
16689         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
16690
16691 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
16692
16693         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
16694         from -mtune= option.
16695
16696 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
16697
16698         * builtins.c: Rename movstr*, except for movstrict*, to
16699         movmem* and clrstr* to clrmem*.
16700         * expr.c: Likewise.
16701         * expr.h: Likewise.
16702         * genopinit.c: Likewise.
16703         * integrate.c: Likewise.
16704         * local-alloc.c: Likewise.
16705         * optabs.c: Likewise.
16706         * optabs.h: Likewise.
16707         * config/alpha/alpha.h: Likewise.
16708         * config/alpha/alpha.md: Likewise.
16709         * config/arm/arm-protos.h: Likewise.
16710         * config/arm/arm.c: Likewise.
16711         * config/arm/arm.md: Likewise.
16712         * config/avr/avr.md: Likewise.
16713         * config/c4x/c4x.c: Likewise.
16714         * config/c4x/c4x.md: Likewise.
16715         * config/frv/frv.md: Likewise.
16716         * config/i386/i386-protos.h: Likewise.
16717         * config/i386/i386.c: Likewise.
16718         * config/i386/i386.h: Likewise.
16719         * config/i386/i386.md: Likewise.
16720         * config/i860/i860.c: Likewise.
16721         * config/i860/i860.md: Likewise.
16722         * config/ip2k/ip2k.md: Likewise.
16723         * config/ip2k/libgcc.S: Likewise.
16724         * config/ip2k/t-ip2k: Likewise.
16725         * config/m32r/m32r.c: Likewise.
16726         * config/m32r/m32r.md: Likewise.
16727         * config/mcore/mcore.md: Likewise.
16728         * config/mips/mips.c: Likewise.
16729         * config/mips/mips.md: Likewise.
16730         * config/ns32k/ns32k.c: Likewise.
16731         * config/ns32k/ns32k.h: Likewise.
16732         * config/ns32k/ns32k.md: Likewise.
16733         * config/pa/pa.c: Likewise.
16734         * config/pa/pa.md: Likewise.
16735         * config/pdp11/pdp11.h: Likewise.
16736         * config/pdp11/pdp11.md: Likewise.
16737         * config/rs6000/rs6000.c: Likewise.
16738         * config/rs6000/rs6000.md: Likewise.
16739         * config/s390/s390-protos.h: Likewise.
16740         * config/s390/s390.c: Likewise.
16741         * config/s390/s390.md: Likewise.
16742         * config/sh/lib1funcs.asm: Likewise.
16743         * config/sh/sh.c: Likewise.
16744         * config/sh/sh.md: Likewise.
16745         * config/sh/t-sh: Likewise.
16746         * config/sparc/sparc.h: Likewise.
16747         * config/vax/vax.md: Likewise.
16748         * config/xtensa/xtensa.c: Likewise.
16749         * config/xtensa/xtensa.md: Likewise.
16750         * doc/invoke.texi: Likewise.
16751         * doc/md.texi: Likewise.
16752         * doc/rtl.texi: Likewise.
16753
16754 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
16755
16756         PR target/16407
16757         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
16758         * config/mips/mips.c (mips_declare_common_object): New function,
16759         mostly split out from...
16760         (mips_output_aligned_decl_common): ...here.
16761         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
16762         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
16763         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
16764         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
16765
16766 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16767
16768         PR c/16392
16769         * function.c (assign_parms): Fix typo from previous change.
16770
16771 2004-07-07  Jason Merrill  <jason@redhat.com>
16772
16773         PR c++/15815
16774         * doc/extend.texi (C++ Interface): Correct information and
16775         discourage use.
16776
16777 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
16778
16779         PR target/16130
16780         PR target/16142
16781         PR target/16143
16782         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
16783         insn.
16784
16785 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
16786
16787         PR target/1679.
16788         * config/m32r/m32r.c (m32r_function_symbol): New function:
16789         Generate a symbol name RTX with the correct m32r specific flags
16790         set.
16791         (block_move_call): Use new function to generate correct symbol.
16792         * config/m32r/m32r-protos.h: Add prototype for new funcion.
16793         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
16794         function.
16795
16796 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
16797
16798         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
16799         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
16800         TYPE_BINFO_BASETYPE): Remove.
16801         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
16802         to ...
16803         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
16804         here.
16805         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
16806         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
16807         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
16808         (struct tree_binfo): Rename base_types to base_binfos.
16809         * alias.c (record_component_aliases): Adjust BINFO macros.
16810         * dbxout.c (dbxout_type): Likewise.
16811         * dwarf2out.c (gen_member_die): Likewise.
16812         * sdbout.c (sdbout_one_type): Likewise.
16813         * tree-dump.c (deque_and_dump): Likewise.
16814         * config/i386/i386.c (classify_argument,
16815         contains_128bit_aligned_vector_p): Likewise.
16816
16817 2004-07-07  Nick Clifton  <nickc@redhat.com>
16818
16819         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
16820         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
16821
16822 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
16823
16824         * vec.h: Fix the example use.
16825
16826 2004-07-06  Richard Henderson  <rth@redhat.com>
16827
16828         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
16829         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
16830         * tree-inline.c (copy_body_r, setup_one_parameter,
16831         initialize_inlined_parameters, expand_call_inline,
16832         declare_inline_vars): Don't check it.
16833         (expand_calls_inline): Remove old version, rename new version
16834         from gimple_expand_calls_inline.
16835         * tree-optimize.c (execute_gimple): Remove.
16836         (pass_gimple): Don't run anything.
16837
16838 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
16839
16840         * doc/sourcebuild.texi: Use semicolons instead of commas in
16841         section title.
16842
16843 2004-07-06  Richard Henderson  <rth@redhat.com>
16844
16845         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
16846         (sra_walk_modify_expr, scan_init): Likewise.
16847         (generate_element_zero): Check visited before scanning children.
16848         (generate_element_init): Set visited on error.
16849         (scalarize_init): Handle generate_element_init failure similar
16850         to use_block_copy.
16851
16852 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
16853
16854         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
16855         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
16856
16857 2004-07-06  Richard Henderson  <rth@redhat.com>
16858
16859         * config/i386/i386.c (legitimize_pic_address): Make static.
16860         (legitimize_address): Handle CONST with TLS operand.
16861         (ix86_expand_move): Don't call legitimize_pic_address directly.
16862         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
16863
16864 2004-07-06  Roger Sayle  <roger@eyesopen.com>
16865
16866         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
16867         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
16868         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
16869         is currently executed unconditionally, i.e. not in "else_bb".
16870
16871 2004-07-06  Steven Bosscher  <stevenb@suse.de>
16872
16873         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
16874         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
16875         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
16876         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
16877         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
16878         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
16879         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
16880         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
16881         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
16882         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
16883         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
16884         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
16885         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
16886         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
16887         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
16888         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
16889
16890 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
16891
16892         * dojump.c (do_jump): REFERENCE_EXPR is dead.
16893         * expr.c (expand_expr_real_1): Ditto.
16894         * tree-inline.c (estimate_num_insns_1): Ditto.
16895         * tree-pretty-print.c (dump_generic_node): Ditto.
16896         (op_symbol): Ditto.
16897         * tree.def: Ditto.
16898
16899 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
16900
16901         * tree-ssa-pre.c (reference_node_pool): New pool.
16902         (find_or_generate_expression): Class 'r' is okay too.
16903         (create_value_expr_from): Ditto.
16904         (add_to_sets): LHS should not include vuses.
16905         (eliminate): Ditto.
16906         (compute_avail): Reverse ordering of tests.
16907         Valuize INDIRECT_REF as well.
16908
16909 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
16910
16911         PR rtl-optimization/16380
16912         * loop.c (check_dbra_loop): Sink comparison instructions if they
16913         do something other than set cc0.
16914
16915 2004-07-06  James E Wilson  <wilson@specifixinc.com>
16916
16917         * doc/interface.texi (longjmp and automatic variables): Delete
16918         paragraph recommending taking the address of a variable.
16919
16920 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
16921
16922         * vec.h (VEC_embedded_alloc): Remove.
16923         (VEC_embedded_size, VEC_embedded_init): New.
16924         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
16925         MEM_STAT_INFO.
16926         (VEC_truncate): New.
16927         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
16928         (vec_embedded_alloc): Remove.
16929         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
16930         (vec_embedded_alloc): Remove.
16931
16932 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
16933
16934         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
16935         (gt-langhooks.h): Remove.
16936
16937 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
16938
16939         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
16940
16941 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
16942
16943         * config/sparc/sparc.c (get_pc_symbol): Rename into
16944         add_pc_to_pic_symbol.
16945         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
16946         (load_pic_register): Account for previous changes.
16947         Use reg_names.  Don't create the label twice.
16948         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
16949         UNSPEC_LOAD_PCREL_SYM.
16950         (get_pc): Rename into load_pcrel_sym.  Add predicate to
16951         operands.  Remove condition.
16952
16953 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
16954
16955         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
16956         RECORD, UNION & QUAL_UNION is actually a binfo.
16957
16958         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
16959         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
16960         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
16961         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
16962         * dwarf2out.c (add_data_member_location_attribute): Likewise.
16963         (gen_inheritance_die): Likewise.
16964         * tree-dump.c (deque_and_dump): Likewise.
16965         * doc/c-tree.texi (Binfos): Add under reconstruction note.
16966
16967 2004-07-06  Steven Bosscher  <stevenb@suse.de>
16968
16969         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
16970         Define.
16971         * config/mcore/mcore.md: Model memory latency with a simple DFA
16972         pipeline description instead of a define_function_unit.
16973
16974 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16975
16976         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
16977         * langhooks.h (var_mod_type_p): Likewise.
16978         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
16979         * expr.c (count_type_elements): Properly handle return from
16980         array_type_nelts and properly test for overflow.
16981         * gimplify.c (gimplify_init_constructor): Properly handle return
16982         from array_type_nelts.
16983         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
16984         * integrate.c (copy_decl_for_inlining): Correct comments.
16985         * tree-inline.c (remap_decl): Update comments, remove dead code,
16986         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
16987         (remap_type): Only remap if variably modified by vars in function
16988         being inlined.
16989         (copy_body_r): Use compatible_type langhooks to see when can fold.
16990         (setup_one_parameter): Don't remap type.
16991         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
16992         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
16993         compute TREE_INVARIANT for decl case.
16994         (find_var_from_fn): New function.
16995         (variably_modified_type_p): Add arg and call new function.
16996         * tree.h (variably_modified_type_p): Add extra arg.
16997
16998 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
16999
17000         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
17001         (goto_handler_and_restore_v9): Delete disabled insn.
17002         (goto_handler_and_restore_v9_sp64): Likewise.
17003
17004 2004-07-05  Roger Sayle  <roger@eyesopen.com>
17005
17006         * calls.c (load_register_parameters): Call expand_shift instead
17007         of expand_binop with ashl_optab (or other shift optab) directly.
17008         * expr.c (emit_group_load, emit_group_store): Likewise.
17009         * function.c (assign_parm_setup_block): Likewise.
17010         * stmt.c (shift_return_value): Likewise.
17011
17012 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
17013
17014         * expr.c (expand_assignment): Disable the bitfield += optimizations.
17015
17016 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
17017
17018         * doc/sourcebuild.texi: Revert previous patch.
17019
17020 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
17021
17022         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
17023         TARGET_MEM_FUNCTIONS.
17024         * system.h: Poison TARGET_MEM_FUNCTIONS.
17025         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
17026         bcmp_libfunc, bzero_libfunc): Remove.
17027         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
17028         bzero_libfunc.
17029         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
17030         * doc/standards.texi: Don't mention calling BSD string functions.
17031         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
17032         * config/vax/t-memfuncs: New.
17033         * config/memcmp.c, config/memcpy.c, config/memmove.c,
17034         config/memset.c: New.
17035         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
17036         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
17037         vax/t-memfuncs.
17038         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
17039         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
17040         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
17041         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
17042         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
17043         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
17044         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
17045         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
17046         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
17047         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
17048
17049 2004-07-05  Richard Henderson  <rth@redhat.com>
17050
17051         * function.c (assign_parm_setup_reg): Properly rename variables in
17052         FUNCTION_ARG_CALLEE_COPIES section.
17053
17054 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
17055
17056         * tree-mudflap.c: Include cgraph.h.
17057         (mf_init_extern_trees): Rename to mudflap_init.  Export.
17058         Rewrite to create synthetic declarations instead of looking
17059         up declarations from mf-runtime.h.
17060         (mf_make_builtin, mf_make_cache_struct_type): New functions.
17061         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
17062         Correct commentary.
17063         (execute_mudflap_function_decls, mudflap_register_call):
17064         Don't call mf_init_extern_trees.
17065         (mudflap_finish_file): Use cgraph_build_static_cdtor.
17066
17067         * tree-mudflap.h: Update prototypes.
17068         * c-mudflap.c: Delete file.
17069         * c-common.c: Include tree-mudflap.h.
17070         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
17071         * Makefile.in: Remove all references to c-mudflap.o.
17072         Update dependencies.
17073
17074 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17075
17076         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
17077         displacements with the spatial-locality cache-control completer.
17078
17079 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
17080
17081         * langhooks.c: Don't include gt-langhooks.h.
17082         (var_labelno): Delete.
17083         (lhd_set_decl_assembler_name): Do not append a distinguishing
17084         number to file-scope internal-linkage declarations for the first
17085         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
17086         the declaration itself (if at block scope), or its containing
17087         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
17088         number.
17089
17090         * opts.c (cur_in_fname): New global.
17091         * opts.h: Declare it.
17092         * tree.c: Include opts.h.
17093         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
17094         DECL_UID equal to cur_in_fname.
17095         (copy_node_stat): Do not change DECL_UID when copying a
17096         TRANSLATION_UNIT_DECL.
17097         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
17098         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
17099
17100         * c-decl.c (c_static_assembler_name): Delete.
17101         * c-tree.h (c_static_assembler_name): Delete prototype.
17102         * c-lang.c, objc/objc-lang.c: Don't override
17103         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
17104
17105         * Makefile.in (tree.o): Update dependencies.
17106         (GTFILES): Remove langhooks.c.
17107
17108 2004-07-05  Roger Sayle  <roger@eyesopen.com>
17109
17110         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
17111         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
17112         Normalize "X % C" as "X % -C" for signed modulus and negative C.
17113         Optimize "X % -Y" as "X % Y" for signed modulus.
17114         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
17115         into "((unsigned) X % Y) == 0".
17116
17117 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
17118
17119         * sourcebuild.texi (Config Fragments): Use @comma{} in
17120         cross-reference to section title.
17121
17122 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17123
17124         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
17125         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
17126         (gimplify_target_expr, gimplify_expr): Likewise.
17127         (copy_if_shared_r): No longer need special case for BIND_EXPR.
17128         (unshare_body, unvisit_body): Only look at nested if BODY_P is
17129         whole function.
17130         (gimplify_compound_lval): See if we can strip any useless conversion.
17131         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
17132         from RHS, not LHS.
17133         (gimplify_modify_expr_to_memset): Likewise.
17134         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
17135         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
17136         (declare_inline_vars): Likewise.
17137         (walk_type_fields): New function.
17138         (walk_tree): Use it.
17139         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
17140
17141         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
17142         (sra_walk_modify_expr): Allow init function to fail.
17143         (scan_init): Now returns bool.
17144         (generate_element_init): If can't understand INIT, return false.
17145         (scalarize_init): Return false if generate_element_init does.
17146
17147         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
17148         print bounds.
17149
17150         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
17151         bounds if bounds aren't constant.
17152
17153         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
17154
17155         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
17156         to type hooks; remove bogus PARAMS.
17157
17158 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
17159
17160         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
17161         * dwarf2out.c (add_data_member_location_attribute): Check for
17162         TREE_BINFO.
17163         * tree.c (tree_node_kinds): Add "binfos".
17164         (binfo_lang_slots): New.
17165         (make_node_stat): Add TREE_BINFO.
17166         (make_tree_binfo_stat): New.
17167         (tree_node_structure): Add TREE_BINFO.
17168         * tree.def (TREE_BINFO): New.
17169         * tree.h (REC_OR_UNION_CHECK): Rename to ...
17170         (RECORD_OR_UNION_CHECK): ... here.
17171         (NOT_RECORD_OR_UNION_CHECK): New.
17172         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
17173         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
17174         RECORD_OR_UNION_CHECK.
17175         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
17176         (TYPE_LANG_SLOT_1): New.
17177         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
17178         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
17179         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
17180         (BINFO_ELTS): Remove.
17181         (BINFO_LANG_SLOT): New.
17182         (struct tree_binfo): New.
17183         (binfo_lang_slots): Declare.
17184         (enum tree_node_structure_enum): Add TS_BINFO.
17185         (union tree_node): Add binfo.
17186         (make_tree_binfo_stat): Declare.
17187         (make_tree_binfo): New.
17188         (enum tree_node_kind): Add binfo_kind.
17189
17190         * objc/objc-act.c (start_class, objc_declare_protocols,
17191         start_protocols): Use TYPE_LANG_SLOT_1.
17192         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
17193         to ...
17194         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
17195         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
17196         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
17197         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
17198
17199 2004-07-05  Steven Bosscher  <stevenb@suse.de>
17200
17201         * rtl.h (struct rtx_def): Remove the integrated flag.
17202         Use the return_val flag for MEM_SCALAR_P.
17203         Reshuffle and update flags in CLEAR_RTX_FLAGS.
17204
17205 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
17206
17207         PR target/16357
17208         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
17209         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
17210         move_by_pieces.
17211
17212 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
17213
17214         * var-tracking.c: Fix some comments.
17215         (frame_stack_adjust): New.
17216         (vt_stack_adjustments): Init stack_adjust of entry block to
17217         minus stack adjustment of function prologue.
17218         (adjust_stack_reference): Do not adjust if adjustment == 0.
17219         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
17220         (emit_notes_in_bb): Likewise.
17221         (vt_add_function_parameters): Do not adjust locations of
17222         function arguments.
17223         (vt_initialize): Compute the stack adjustment of function
17224         prologue and offset the initial "location" of frame_base_decl
17225         from the stack pointer after prologue.
17226
17227 2004-07-04  Richard Henderson  <rth@redhat.com>
17228
17229         * function.c (struct assign_parm_data_all): New.
17230         (struct assign_parm_data_one): New.
17231         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
17232         assign_parm_find_data_types, assign_parms_setup_varargs,
17233         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
17234         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
17235         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
17236         assign_parm_setup_block, assign_parm_setup_reg,
17237         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
17238         (assign_parms): ... here.
17239
17240 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
17241
17242         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
17243         now are bitmap_set_t's.
17244         (bitmap_insert_into_set): No point in inserting the value if
17245         it's invariant.
17246         (bitmap_set_contains): New function.
17247         (bitmap_set_replace_value): Add comment on why we do it
17248         this way.
17249         (set_contains): Removed.
17250         (bitmap_set_subtract_from_value_set): New name of
17251         set_subtract now that it's arguments are two different
17252         types of sets.
17253         Update callers.
17254         (bitmap_find_leader): Change algorithm used.
17255         (find_or_generate_expression): Update use of functions for new
17256         bitmap sets.
17257         (create_expression_by_pieces): Ditto.
17258         (insert_aux): Ditto.
17259         (insert): Ditto.
17260         (add_to_sets): Ditto.
17261         (init_pre): Ditto.
17262         (execute_pre): Ditto.
17263         (compute_avail): Ditto.
17264         Also ignore virtual phis.
17265
17266 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
17267
17268         * combine.c (simplify_comparison): Fix comment typo.
17269
17270 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
17271
17272         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
17273         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
17274         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
17275         (output_restore): Change parameter from 'insn' to 'pat'.
17276         (output_return): Adjust call to output_restore.
17277         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
17278         Adjust call to output_restore.
17279
17280 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
17281
17282         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
17283         and assert system is bsd.
17284
17285 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
17286
17287         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
17288         (TARGET_SWITCHES): Remove -mdebugc.
17289         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
17290         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
17291         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
17292         (sle_[sd]i_reg): Delete.
17293
17294 2004-07-04  Steven Bosscher  <stevenb@suse.de>
17295
17296         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
17297         Define.
17298         * config/iq2000/iq2000.md: Translate old pipeline description to an
17299         equivalent new one.
17300
17301 2004-07-04  Roger Sayle  <roger@eyesopen.com>
17302
17303         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
17304         Ensure the replacement rhs is valid gimple before performing
17305         the substitution.  Return false if these sanity checks fail.
17306         (fold_stmt): Only set changed to true, if set_rhs returns true.
17307         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
17308         succeeds.
17309
17310 2004-07-04  Richard Henderson  <rth@redhat.com>
17311
17312         PR c/16348
17313         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
17314
17315 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
17316
17317         * configure.ac (ranlib_flags): New variable.
17318         * Makefile.in (RANLIB_FLAGS): New variable.
17319         (libbackend.a): Use it.
17320         * configure: Regenerated.
17321
17322 2004-07-04  Roger Sayle  <roger@eyesopen.com>
17323
17324         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
17325         a "sign mask" instead of using ashr_optab directly.
17326
17327 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
17328
17329         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
17330         * doc/cppopts.texi: Clarify processing of command-line defines.
17331
17332 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
17333
17334         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
17335
17336 2004-07-04  Richard Henderson  <rth@redhat.com>
17337
17338         * rtl.def (ADDRESSOF): Remove.
17339         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
17340         (find_base_term, memrefs_conflict_p): Likewise.
17341         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
17342         (fold_rtx, cse_insn, set_live_p): Likewise.
17343         * dwarf2out.c (mem_loc_descriptor): Likewise.
17344         (add_location_or_const_value_attribute): Likewise.
17345         * emit-rtl.c (copy_insn_1): Likewise.
17346         * explow.c (memory_address): Likewise.
17347         * expmed.c (store_split_bit_field): Likewise.
17348         * expr.c (expand_expr_real_1): Likewise.
17349         * function.c (instantiate_decl
17350         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
17351         * genrecog.c (preds, validate_pattern): Likewise.
17352         * integrate.c (copy_rtx_and_substitute): Likewise.
17353         * recog.c (general_operand, register_operand): Likewise.
17354         (memory_address_p): Likwise.
17355         * reload1.c (eliminate_regs, elimination_effects): Likewise.
17356         * rtl.c (copy_rtx): Likewise.
17357         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
17358         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
17359         * rtlhooks.c (gen_lowpart_general): Likewise.
17360         * stmt.c (expand_asm_operands): Likewise.
17361         * web.c (entry_register, replace_ref, web_main): Likewise.
17362         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
17363         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
17364         * config/arm/arm.c (thumb_rtx_costs): Likewise.
17365         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
17366         * config/frv/frv.c (move_destination_operand, move_source_operand,
17367         condexec_dest_operand, condexec_source_operand,
17368         condexec_memory_operand): Likewise.
17369         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
17370         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
17371         (destination_xfmode_operand): Likewise.
17372         * config/mips/mips.h (PREDICATE_CODES): Likewise.
17373         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
17374         * config/s390/s390.c (general_s_operand): Likewise.
17375         * config/s390/s390.md (mov*): Likewise.
17376         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
17377
17378         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
17379         * expr.c (expand_expr_real_1): Likewise.
17380         * stmt.c (expand_decl): Likewise.
17381         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
17382
17383         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
17384         postponed_insns, put_var_into_stack, put_reg_into_stack,
17385         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
17386         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
17387         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
17388         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
17389         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
17390         purge_bitfield_addressof_replacements, purge_addressof_replacements,
17391         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
17392         struct insns_for_mem_walk_info, insns_for_mem_walk,
17393         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
17394         setjmp_protect_args): Remove.
17395         (push_function_context_to): Don't handle var_refs_queue.
17396         (pop_function_context_from, free_after_compilation): Likewise.
17397         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
17398         (assign_parms, allocate_struct_function): Likewise.
17399         (use_register_for_decl): New.
17400         (expand_function_end): Don't setjmp_protect.
17401         * function.h (struct emit_status): Update commentary.
17402         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
17403         (max_parm_reg, parm_reg_stack_loc): Remove.
17404         * passes.c (DFI_addressof): Remove.
17405         (dump_file_info): Remove addressof.
17406         (rest_of_handle_addressof): Remove.
17407         (rest_of_compilation): Don't call it.
17408         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
17409         * stmt.c (expand_decl): Use use_register_for_decl.
17410         * tree.h: Update decls.
17411         * web.c (mark_addressof): Remove.
17412         * doc/invoke.texi (-dF): Remove.
17413
17414 2004-07-03  Richard Henderson  <rth@redhat.com>
17415
17416         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
17417         instead of gen_mem_addressof.
17418         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
17419         TImode output register.
17420
17421 2004-07-03  Richard Henderson  <rth@redhat.com>
17422
17423         PR tree-optimization/16341
17424         * tree-sra.c (sra_walk_function): Increment to next stmt before
17425         processing the current stmt.
17426         (sra_insert_after): Always use BSI_SAME_STMT.
17427
17428 2004-07-03  Richard Henderson  <rth@redhat.com>
17429
17430         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
17431         fp plus with minus.
17432
17433 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
17434
17435         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
17436         with tree_int_cst_equal.
17437
17438 2004-07-03  Andreas Schwab  <schwab@suse.de>
17439
17440         * config/ia64/ia64.md: Define new attribute "empty".
17441         (prologue_use, nop_x, insn_group_barrier): Set it.
17442
17443         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
17444         skip over "empty" insns.
17445
17446 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17447
17448         * tree-inline.c (initialize_inlined_parameters): Pass proper function
17449         context to gimplify_body.
17450         (walk_tree): Don't walk into types twice.
17451         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
17452
17453         * tree-sra.c (generate_element_init): Remove any useless conversions.
17454
17455         * gimplify.c (gimplify_conversion): Remove stripping useless
17456         conversions from here.
17457         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
17458         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
17459         Unshare before substituting PLACEHOLDER_EXPR.
17460         (gimplify_modify_expr_to_memset): Likewise.
17461         Pass address of TO to memset, not TO itself.
17462         (gimplify_init_constructor): Make copy of OBJECT so we have it each
17463         time we make an expression (to match a PLACEHOLDER_EXPR).
17464
17465         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
17466         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
17467         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
17468         * tree-ssa-dom.c (local_fold): Likewise.
17469
17470         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
17471         * langhooks.h (strct lang_hooks): New field type_max_size.
17472         * function.c (assign_temp): Call it.
17473
17474 2004-07-03  Steven Bosscher  <stevenb@suse.de>
17475
17476         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
17477         * config/sh/sh.md: Convert the SH1 pipeline description to
17478         a DFA model.
17479
17480 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
17481
17482         * c-decl.c (struct c_binding): Remove contour field; add
17483         depth, invisible, nested fields.
17484         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
17485         (B_IN_EXTERNAL_SCOPE): New convenience macros.
17486         (bind): Add invisible and nested arguments. Initialize
17487         new fields of struct c_binding; adjust loop scanning for
17488         insertion point.
17489         (free_binding_and_advance): Clear structure with memset.
17490         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
17491         in file scope, even if it's in external scope too.
17492         (pushdecl): Adjust to match.  Create invisible file-scope
17493         declarations for block-scope forward declarations of static functions.
17494         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
17495         (undeclared_variable, lookup_label, declare_label, define_label)
17496         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
17497         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
17498         (store_parm_decls_oldstyle): Adjust to match.
17499         (diagnose_mismatched_decls): Correct handling of linkage clashes.
17500         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
17501
17502         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
17503         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
17504
17505 2004-07-02  Richard Henderson  <rth@redhat.com>
17506
17507         * c-decl.c (grokdeclarator): Don't frob current_function_decl
17508         around variable_size.
17509         (set_decl_nonlocal): Remove.
17510         (store_parm_decls): Add stmts for pending sizes.
17511         * calls.c (calls_function, calls_function_1): Remove.
17512         (precompute_arguments): Don't call it.
17513         * cfgexpand.c (set_save_expr_context): Remove.
17514         (tree_expand_cfg): Don't call it.
17515         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
17516         (dwarf2out_finish): Likewise.
17517         * expr.c (emit_block_move): Adjust addresses to BLKmode.
17518         (store_constructor): Don't pre-evaluate SAVE_EXPR.
17519         (safe_from_p): Don't queue SAVE_EXPRs.
17520         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
17521         or build plain VAR_DECLs.
17522         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
17523         (fold): Likewise.
17524         (fold_checksum_tree): Don't special-case SAVE_EXPR.
17525         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
17526         (put_var_into_stack): Don't handle SAVE_EXPR.
17527         (gen_mem_addressof): Likewise.
17528         * function.h (struct function): Remove x_save_expr_regs.
17529         (save_expr_regs): Remove.
17530         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
17531         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
17532         * stor-layout.c (variable_size): Don't set it.
17533         (force_type_save_exprs, force_type_save_exprs_1): Remove.
17534         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
17535         all callers.  Don't set SAVE_EXPR_CONTEXT.
17536         * tree-inline.h (remap_save_expr): Update decl.
17537         * tree.c (save_expr): Update build size.
17538         (first_rtl_op): Don't handle SAVE_EXPR.
17539         (unsave_expr_1, contains_placeholder_p): Likewise.
17540         (decl_function_context): Likewise.
17541         * tree.def (SAVE_EXPR): Remove args 1 and 2.
17542         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
17543         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
17544
17545 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
17546
17547         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
17548         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
17549         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
17550         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
17551         some first-person references and patronizing comments.  Based on
17552         printed manual.
17553         * doc/invoke.texi: Don't reference fortran@gnu.org.
17554         * doc/trouble.texi (Warning when a non-void function value is
17555         ignored): Rewrite.  From Russ Allbery and Chris Devers.
17556
17557 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
17558
17559         * tree-ssa-pre.c (bitmap_set_t): New.
17560         (bb_value_sets): avail_out is now a bitmap_set_t.
17561         (bitmap_find_leader): New function.
17562         (bitmap_value_insert_into_set): Ditto.
17563         (bitmap_set_copy): Ditto.
17564         (bitmap_value_replace_in_set): Ditto.
17565         (bitmap_set_contains_value): Ditto.
17566         (bitmap_set_new): Ditto.
17567         (bitmap_set_pool): New pool.
17568         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
17569         (insert_aux): Ditto.
17570         (add_to_sets): Ditto.
17571         (compute_avail): Ditto
17572         (eliminate): Ditto.
17573         (init_pre): Ditto.
17574         (fini_pre): Ditto.
17575         (execute_pre): Ditto.
17576
17577 2004-07-02  Roger Sayle  <roger@eyesopen.com>
17578
17579         * config/rs6000/rs6000.c (struct processor_costs): New structure
17580         used to hold instruction latencies/sizes for processor types.
17581         (rs6000_cost): New global variable pointing to current CPU's costs.
17582         (rs6000_override_options): Initialize rs6000_cost to point to the
17583         appropriate cost table based upon rs6000_cpu and optimize_size.
17584         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
17585         timings inline.
17586
17587 2004-07-02  Richard Henderson  <rth@redhat.com>
17588
17589         * expmed.c (make_tree): Don't use SET_DECL_RTL.
17590
17591 2004-07-02  Steven Bosscher  <stevenb@suse.de>
17592
17593         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
17594
17595 2004-07-01  Richard Henderson  <rth@redhat.com>
17596
17597         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
17598         (alpha_gp_save_rtx): Use assign_stack_local instead of
17599         gen_mem_addressof.
17600
17601 2004-07-01  Richard Henderson  <rth@redhat.com>
17602
17603         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
17604         (alpha_rtx_cost_data): Update to match.
17605         (alpha_rtx_cost_size): New.
17606         (alpha_rtx_costs): Honor optimize_size.
17607
17608 2004-07-01  Richard Henderson  <rth@redhat.com>
17609
17610         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
17611         * cfgexpand.c (tree_expand_cfg): Do it here.
17612         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
17613         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
17614         * config/mips/mips.c (mips_output_mi_thunk): And here.
17615         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
17616         * config/sh/sh.c (sh_output_mi_thunk): And here.
17617         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
17618
17619 2004-07-01  Richard Henderson  <rth@redhat.com>
17620
17621         * tree.def (RTL_EXPR): Remove.
17622         * c-typeck.c (lvalue_p): Don't handle it.
17623         * expr.c (safe_from_p): Likewise.
17624         (expand_expr_real_1): Likewise.
17625         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
17626         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
17627         * gengtype.c (adjust_field_tree_exp): Likewise.
17628         * stmt.c (warn_if_unused_value): Likewise.
17629         * tree-gimple.c (recalculate_side_effects): Likewise.
17630         * tree-pretty-print.c (dump_generic_node): Likewise.
17631         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
17632         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
17633         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
17634
17635         * stmt.c (struct stmt_status): Remove x_last_expr_type,
17636         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
17637         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
17638         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
17639         all the bits that tracked last_expr.
17640         (expand_end_bindings): Don't track last_expr.
17641         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
17642         (clear_last_expr): Remove.
17643         (expand_asm): Don't call it.
17644         (expand_asm_operands, expand_end_cond): Likewise.
17645         (expand_naked_return, expand_null_return_1): Likewise.
17646         * c-typeck.c (c_begin_compound_stmt): Likewise.
17647         * cfgexpand.c (expand_block): Use expand_expr_stmt.
17648         * expr.c (expand_expr_real_1): Likewise.
17649         * tree.h: Update prototypes.
17650
17651         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
17652         (struct emit_status): Remove sequence_rtl_expr.
17653         (struct function): Remove x_rtl_expr_chain.
17654         (seq_rtl_expr, rtl_expr_chain): Remove.
17655         * function.c (struct temp_slot): Remove rtl_expr.
17656         (assign_stack_temp_for_type): Don't set it.
17657         (free_temp_slots, pop_temp_slots): Don't check it.
17658         (free_after_compilation): Don't clear x_rtl_expr_chain.
17659         (fixup_var_refs): Don't search it.
17660         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
17661         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
17662         or seq_rtl_expr.
17663         (push_topmost_sequence): Likewise.
17664         (end_sequence, init_emit): Likewise.
17665         (start_sequence_for_rtl_expr): Remove.
17666         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
17667         * rtl.h (preserve_rtl_expr_result): Remove.
17668
17669 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
17670
17671         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
17672         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
17673         typos.
17674
17675 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
17676
17677         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
17678         (STANDARD_STARTFILE_PREFIX_2): Define.
17679         (standard_startfile_prefix_1): Initialize to
17680         STANDARD_STARTFILE_PREFIX_1.
17681         (standard_startfile_prefix_2): Initialize to
17682         STANDARD_STARTFILE_PREFIX_2.
17683         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
17684         (STANDARD_STARTFILE_PREFIX_1): Define.
17685         (STANDARD_STARTFILE_PREFIX_2): Define.
17686         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
17687         (STANDARD_STARTFILE_PREFIX_2): Document.
17688
17689 2004-07-01  Richard Henderson  <rth@redhat.com>
17690
17691         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
17692         in order to disable scalarization.  Instead set a flag and wait
17693         for a candidate decl.
17694
17695 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
17696
17697         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
17698         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
17699         Use terminology "testsuite" and "enumerated".
17700
17701 2004-07-01  Richard Henderson  <rth@redhat.com>
17702
17703         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
17704         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
17705         (initial_return_save): Likewise.
17706         (flush_queued_reg_saves): Remap register numbers.
17707         (dwarf2out_return_reg): Likewise.
17708
17709 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17710
17711         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
17712
17713         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
17714         access functions for lower bound and element size and only output
17715         if lower bound nonzero or element size not same as that of type.
17716         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
17717
17718 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
17719
17720         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
17721
17722 2004-07-01  Per Bothner  <per@bothner.com>
17723
17724         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
17725
17726 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
17727
17728         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
17729         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
17730         first operand.  Don't optimize if the bitfield is volatile.
17731
17732 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
17733
17734         * c-pretty-print.c (pp_c_postfix_expression): Handle
17735         floating-point comparison operators.
17736         (pp_c_expression): Pass floating-point comparison
17737         operators to pp_c_postfix_expression.
17738
17739 2004-07-01  Roger Sayle  <roger@eyesopen.com>
17740
17741         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
17742         rtx_cost instead of "had_mult" to determine whether the transformed
17743         expression is cheaper than the original.
17744
17745 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
17746
17747         * alias.c (get_alias_set, canon_rtx, get_addr,
17748         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
17749         Use MEM_P.
17750         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
17751         expand_builtin): Likewise.
17752         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
17753         Likewise.
17754         * combine.c (can_combine_p, combinable_i3pat, try_combine,
17755         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
17756         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
17757         record_dead_and_set_regs_1, get_last_value_validate,
17758         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
17759         * cse.c (check_dependence, canon_hash, equiv_constant,
17760         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
17761         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
17762         count_reg_usage): Likewise.
17763         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
17764         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
17765         cselib_record_sets): Likewise.
17766         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
17767         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
17768         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
17769         * df.c (df_uses_record): Likewise.
17770         * dojump (do_jump): Likewise.
17771         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
17772         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
17773         decl_start_label): Likewise.
17774         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
17775         operand_subword, change_address_1, make_safe_from): Likewise.
17776         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
17777         stabilize, force_not_mem): Likewise.
17778         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
17779         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
17780         * expr.c (convert_move, convert_modes, emit_block_move,
17781         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
17782         emit_move_insn_1, expand_assignment, store_expr,
17783         store_constructor_field, store_constructor, store_field,
17784         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
17785         Likewise.
17786         * final.c (cleanup_subreg_operands, alter_subreg,
17787         get_mem_expr_from_op): Likewise.
17788         * flow.c (notice_stack_pointer_modification_1,
17789         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
17790         Likewise.
17791         * function.c (mark_temp_addr_taken, preserve_temp_slots,
17792         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
17793         optimize_bit_field, flush_addressof, purge_addressof_1,
17794         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
17795         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
17796         keep_stack_depressed): Likewise.
17797         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
17798         noce_process_if_block, find_memory): Likewise.
17799         * integrate.c (subst_constants, allocate_initial_values): Likewise.
17800         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
17801         update_equiv_regs): Likewise.
17802         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
17803         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
17804         * optabs.c (expand_abs, emit_unop_insn): Likewise.
17805         * passes.c (rest_of_handle_final): Likewise.
17806         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
17807         move2add_note_store): Likewise.
17808         * ra-build.c (detect_remat_webs): Likewise.
17809         * ra-debug.c (dump_static_insn_cost): Likewise.
17810         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
17811         * recog.c (validate_change, apply_change_group, cancel_changes,
17812         validate_replace_rtx_1, general_operand, register_operand,
17813         nonmemory_operand, push_operand, pop_operand, memory_operand,
17814         indirect_operand, asm_operand_ok, offsettable_memref_p,
17815         offsettable_nonstrict_memref_p, constrain_operands,
17816         store_data_bypass_p): Likewise.
17817         * reg-stack.c (subst_stack_regs_pat): Likewise.
17818         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
17819         copy_cost, reg_scan_mark_refs): Likewise.
17820         * regmove.c (optimize_reg_copy_3, stack_memref_p,
17821         combine_stack_adjustments_for_block): Likewise.
17822         * regrename.c (copyprop_hardreg_forward_1): Likewise.
17823         * reload.c (can_reload_into, push_reload, decompose, immune_p,
17824         find_reloads, find_reloads_address, find_reloads_address_1,
17825         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
17826         find_equiv_reg): Likewise.
17827         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
17828         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
17829         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
17830         delete_address_reloads): Likewise.
17831         * resource.c (mark_referenced_resources): Likewise.
17832         * rtlanal.c (get_jump_table_offset, count_occurrences,
17833         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
17834         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
17835         num_sign_bit_copies1): Likewise.
17836         * rtlhooks.c (gen_lowpart_general): Likewise.
17837         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
17838         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
17839         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
17840         sdbout_global_decl): Likewise.
17841         * simplify-rtx.c (simplify_subreg): Likewise.
17842         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
17843         expand_anon_union_decl, expand_end_case_type): Likewise.
17844         * unroll.c (calculate_giv_inc): Likewise.
17845         * var-tracking.c (stack_adjust_offset_pre_post,
17846         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
17847         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
17848         vt_add_function_parameters): Likewise.
17849         * varasm.c (make_var_volatile, notice_global_symbol,
17850         assemble_external, decode_addr_const, mark_weak,
17851         default_encode_section_info): Likewise.
17852
17853 2004-07-01  Steven Bosscher  <stevenb@suse.de>
17854
17855         * stmt.c (check_seenlabel): Remove.
17856         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
17857
17858 2004-07-01  Richard Henderson  <rth@redhat.com>
17859
17860         * function.h (struct function): Remove x_function_call_count.
17861         (function_call_count): Remove.
17862         * calls.c (expand_call): Don't set it.
17863         * integrate.c (copy_rtx_and_substitute): Likewise.
17864
17865         * function.h (struct function): Remove x_cleanup_label.
17866         (cleanup_label): Remove.
17867         * stmt.c (expand_value_return): Don't use it.
17868         * function.c (free_after_compilation): Don't set it.
17869         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
17870         * cfgexpand.c (tree_expand_cfg): Update call.
17871         * tree.h (expand_function_start): Update decl.
17872
17873 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
17874
17875         PR c/1027
17876         * c-lang.c (c_initialize_diagnostics): Move from here ...
17877         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
17878         (c_tree_printer): Use pretty-printer to format %T.
17879         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
17880         before '*' if not C++.
17881         (pp_c_direct_abstract_declarator): Don't try to print array upper
17882         bound for flexible array members.
17883         * c-tree.h: Include "diagnostic.h".
17884         (c_initialize_diagnostics): Declare.
17885         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
17886         * c-format.c (format_type_warning): New function.  Improve
17887         diagnostics for incorrect format argument types.
17888         (check_format_types): Use it.  Add two parameters.  Use the
17889         TYPE_MAIN_VARIANT of wanted_type.
17890         (check_format_info_main): Pass new parameters to
17891         check_format_types.
17892         (struct format_wanted_type): Update comment.
17893
17894 2004-07-01  Nick Clifton  <nickc@redhat.com>
17895
17896         * target.h (struct gcc_target): Add new field to struct cxx:
17897         import_export_class.
17898         * target-def.h (TARGET_CXX): Initialise the new field.
17899         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
17900         the new field.
17901         * doc/tm.texi: Document the new target hook.
17902
17903 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
17904
17905         * builtins.c (fold_builtin_classify): Fix typo.
17906
17907 2004-07-01  Richard Henderson  <rth@redhat.com>
17908
17909         * function.c (identify_blocks, identify_blocks_1): Remove.
17910         * function.h (identify_blocks): Remove.
17911         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
17912
17913 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
17914
17915         * builtins.c (fold_builtin_classify): New.
17916         (fold_builtin_unordered_cmp): Fix commentary.
17917         (fold_builtin): Use it.
17918         * builtins.def: Define builtins for isnan,
17919         isnanf, isnanl, finite, finitef, finitel,
17920         isinf, isinff, isinfl.
17921
17922 2004-07-01  Richard Henderson  <rth@redhat.com>
17923
17924         * function.h (struct function): Remove dont_emit_block_notes.
17925         * gimple-low.c (lower_function_body): Don't set it.
17926         * cfgexpand.c (expand_block): Don't check it.
17927         * cfglayout.c (insn_locators_initialize): Likewise.
17928         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
17929         * passes.c (rest_of_compilation): Likewise.
17930         * stmt.c (expand_start_bindings_and_block): Likewise.
17931         (expand_end_bindings): Likewise.
17932
17933 2004-07-01  Richard Henderson  <rth@redhat.com>
17934
17935         * cgraph.h (cgraph_build_static_cdtor): Declare.
17936         * cgraphunit.c (cgraph_build_static_cdtor): New.
17937         * c-objc-common.c (build_cdtor): Use it.
17938         * coverage.c (create_coverage): Likewise.
17939         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
17940         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
17941
17942 See ChangeLog.11 for earlier changes.