OSDN Git Service

785e1b400049063635d7fc84f106c67ebfce2f48
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2
3         PR middle-end/17044
4         * tree-ssa-threadupdate.c (redirection_data): Make static.
5         (thread_block): Use ggc_alloc_cleared to allocate struct
6         redirection_data.  Don't free elements in redirection_data.
7
8 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
9
10         * config/mips/predicates.md (small_data_pattern): Match prefetches.
11
12 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13
14         PR tree-optimization/17016
15         * tree-ssa-loop-niter.c (number_of_iterations_cond,
16         number_of_iterations_exit): Use POINTER_TYPE_P instead
17         of testing for POINTER_TYPE.
18
19 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20
21         * tree-ssa-loop-ivcanon.c: New file.
22         * tree-ssa-loop-manip.c (create_iv): New function.
23         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
24         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
25         * cfgloop.c (mark_single_exit_loops): New function.
26         (verify_loop_structure): Verify single-exit loops.
27         * cfgloop.h (struct loop): Add single_exit field.
28         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
29         (mark_single_exit_loops): Declare.
30         (tree_num_loop_insns): Declare.
31         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
32         (duplicate_loop_to_header_edge): Use it.
33         * common.opt (fivcanon): New flag.
34         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
35         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
36         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
37         (bsi_insert_on_edge_immediate): New function.
38         * tree-flow.h (bsi_insert_on_edge_immediate,
39         canonicalize_induction_variables, tree_unroll_loops_completely,
40         create_iv): Declare.
41         * tree-optimize.c (init_tree_optimization_passes): Add
42         pass_iv_canon and pass_complete_unroll.
43         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
44         * tree-scalar-evolution.c (get_loop_exit_condition,
45         get_exit_conditions_rec, number_of_iterations_in_loop,
46         scev_initialize): Use single_exit information.
47         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
48         missing assumptions.
49         (loop_niter_by_eval):  Return number of iterations as unsigned
50         int.
51         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
52         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
53         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
54         New passes.
55         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
56         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
57         the defining statement is ready.
58         * tree-vectorizer.c (vect_create_iv_simple): Removed.
59         (vect_create_index_for_array_ref, vect_transform_loop_bound):
60         Use create_iv.
61         (vect_transform_loop_bound): Use single_exit information.
62         (vect_analyze_loop_form): Cleanup bogus tests.
63         (vectorize_loops): Do not call flow_loop_scan.
64         * tree.h (may_negate_without_overflow_p): Declare.
65         * fold-const.c (may_negate_without_overflow_p): Split out from ...
66         (negate_expr_p): ... this function.
67         (tree_expr_nonzero_p): Handle overflowed constants correctly.
68         * doc/invoke.texi (-fivcanon): Document.
69         * doc/passes.texi: Document canonical induction variable creation.
70
71 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
72
73         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
74         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
75         using the mode of the operand to decide between them.
76         * config/mips/mips.md (MOVECC): New mode macro.
77         (ccreg): New mode attribute.
78         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
79         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
80         (mov[sd]icc): Redefine using :GPR.
81
82 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
83
84         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
85         (mips_prefetch_cookie): New function.
86         * config/mips/mips.c (print_operand_address): Fix handling of
87         ADDRESS_CONST_INT.
88         (mips_emit_prefetch): Delete.
89         (mips_prefetch_cookie): New function.
90         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
91         mode of QImode for the address_operand.  Use mips_prefetch_cookie
92         to calculate the first "pref" operand.
93         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
94         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
95
96 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
97
98         * arm.md: Include predicates.md.
99         * predicates.md: New file.
100         * arm.c (s_register_operand, arm_hard_register_operand)
101         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
102         (arm_immediate_operand, arm_neg_immediate_operand)
103         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
104         (arm_add_operand, arm_addimm_operand, arm_not_operand)
105         (offsettable_memory_operand, alignable_memory_operand)
106         (arm_reload_memory_operand, arm_float_rhs_operand)
107         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
108         (index_operand, shiftable_operator, logical_binary_operator)
109         (shift_operator, equality_operator, arm_comparison_operator)
110         (minmax_operator, cc_register, dominant_cc_register)
111         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
112         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
113         (const_shift_operand, load_multiple_operation)
114         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
115         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
116         (cirrus_register_operand, cirrus_fp_register)
117         (cirrus_shift_const): Delete, replaced with equivalents in
118         predicates.md.
119         (shift_op): Handle ROTATE.
120         * arm-protos.h: Delete declarations for above.
121         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
122         * t-arm (MD_INCLUDES): Add predicates.md.
123         (s-preds): Depends on MD_INCLUDES.
124
125 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
126
127         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
128         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
129         patterns.  Redefine using :GPR.  Give the match_operator a mode.
130         Use '%2' rather than '%z2' for operand 2.
131
132 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
133
134         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
135         attribute.
136
137 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
138
139         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
140         of internal patterns.
141         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
142         Redefine using :P.
143         (tablejump): Use expand_binop to calculate address.  Adjust names
144         of internal patterns.
145         (tablejump[sd]i): Renamed from tablejump_internal[12].
146         Redefine using :P.
147         (tablejump_mips16[12]): Delete.
148
149 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
150
151         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
152         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
153         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
154         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
155         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
156
157 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
158
159         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
160         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
161         using :GPR.
162         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
163         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
164         (*branch_equality[sd]i_inverted): Likewise
165         branch_equality{,_di}_inverted.
166         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
167         Redefine using :GPR.
168
169 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
170
171         * rtl.def: Reorganize, placing all codes used only in machine
172         descriptions at the end.
173
174         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
175         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
176         rtx_name, rtx_format arrays by direct reference to rtl.def,
177         first undefining GENERATOR_FILE.  Define enum insn_note and
178         note_insn_name array by direct reference to insn-notes.def.
179         (adjust_field_rtx_def): Remove local definition of rtx_name.
180         Use symbolic names for insn notes.
181         * Makefile.in (gengtype.o): Update dependencies.
182
183 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
184
185         * basic-block.h (struct basic_block_def): Reorder fields to
186         eliminate interior padding.  Remove 'partition' field.
187         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
188         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
189         (BB_COPY_PARTITION): New macros.
190         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
191         Replace all references to the 'partition' field of a basic
192         block with new macros.
193
194         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
195         * final.c (final_scan_insn): Don't handle it.
196         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
197         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
198         * sched-rgn.c (sched_is_disabled_for_current_region_p):
199         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
200
201 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
202
203         * c-decl.c (c_init_decl_processing): Adjust
204         build_common_tree_nodes call.
205         * expmed.c (const_mult_add_overflow_p): Use
206         build_distinct_type_copy.
207         * stor-layout.c (early_type_list): Remove.
208         (layout_type): Don't append to early_type_list.
209         (initialize_sizetypes): Add signed_p argument.
210         (set_sizetype): Overwrite the stub type nodes directly.
211         * tree.c (copy_node_stat): Clear a type's value cache here ...
212         (build_distinct_type): ... not here.
213         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
214         * tree.h (initialize_sizetypes): Add signed_p argument.
215         (build_common_tree_nodes): Likewise.
216
217         * objc/objc-act.c (get_static_reference): Use
218         build_variant_type_copy.
219         (get_protocol_reference): Likewise.
220         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
221
222 2004-08-24  Richard Henderson  <rth@redhat.com>
223             Andrew Pinski  <apinski@apple.com>
224
225         * gimplify.c (gimplify_array_ref_to_plus): Delete.
226         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
227         for ARRAY_REF.
228
229         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
230         ARRAY_REF also to get to the STRING_CST.
231
232 2004-08-24  Paul Brook  <paul@codesourcery.com>
233
234         * config/arm/arm.c (arm_override_options): Update error message.
235         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
236         TARGET_HARD_FLOAT_ABI.
237         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
238         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
239
240 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
241
242         PR target/17093
243         * config/m32r.md (movsi_sda): Add SI mode specification to
244         UNSPEC.
245
246 2004-08-24  Nick Clifton  <nickc@redhat.com>
247
248         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
249         of seth_add3_operand.
250
251 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
252
253         * Makefile.in (PROTO_OBJS): Add errors.o.
254         * protoize.c (fancy_abort): Remove.
255         * mips-tfile.c (fancy_abort): Add parameters.
256
257 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
258
259         * doc/trouble.texi (C++ misunderstandings): Fix example code.
260
261 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
262
263         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
264         (host-default.o): Add dependency on HOOKS_H.
265         * config/x-linux: Likewise.
266         * config/x-solaris: Likewise.
267         * config/i386/x-mingw32: Likewise.
268         * config/rs6000/x-darwin: Likewise.
269
270 2004-08-23  James E Wilson  <wilson@specifixinc.com>
271
272         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
273         DEF_REG_NOTE.
274
275 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
276
277         PR c/14492
278         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
279
280 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
281
282         * cfg.c (check_bb_profile): Fix typos.
283         * function.c (assign_parm_is_stack_parm): Likewise.
284         * tree-nested.c: Likewise.
285
286 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
287
288         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
289         Remove TYPECODE.
290         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
291
292 2004-08-23  Eric Christopher  <echristo@redhat.com>
293
294         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
295         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
296         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
297         * target.h: Ditto.
298         * hooks.h: Include machmode.h.
299         (hook_bool_mode_false): Declare.
300         * hooks.c (hook_bool_mode_false): Define.
301         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
302         * stor-layout.c (layout_type): Ditto.
303         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
304         Define to target macro.
305         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
306         * config/arm/arm.c: Ditto. Use.
307         * config/arm/arm.h: Ditto.
308         * config/arm/arm-protos.h: Ditto.
309         * config/i386/i386.c: Ditto.
310         * config/i386/i386.h: Ditto.
311         * config/rs6000/rs6000.c: Ditto.
312         * config/rs6000/rs6000.h: Ditto.
313         * config/sh/sh.c: Ditto.
314         * config/sh/sh.h: Ditto.
315         * config/sh/sh-protos.h: Ditto.
316         * config/sh/sh.md: Use.
317         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
318         to TARGET_VECTOR_MODE_SUPPORTED_P.
319
320 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
321
322         * Makefile.in (BUILD_ERRORS): Set to build-errors.
323         (errors.o): New target for host.
324         (build-errors.o): New target for build.
325         (genobjs): Replace errors.o with build-errors.
326         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
327         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
328         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
329         (fix-header.o): Add errors.h
330         * collect2.c (fancy_abort): Add parameters.
331         * collect2.h (fancy_abort): Don't declare.
332         * errors.h (fancy_abort): Don't declare.
333         * errors.c: Include either bconfig.h or config.h.
334         (fancy_abort): Trim filename.
335         * fix-header.c (v_fatal, fatal): Remove.
336         (progname): Remove definition.
337         (main): Set progname here.
338         * gcc.c (fancy_abort): Add parameters.
339         * gcc.h (fancy_abort): Remove declaration.
340         * gcov.c (fancy_abort): Remove.
341         * rtl.h (fancy_abort): Don't declare.
342         (abort): Don't define.
343         * tree.h (fancy_abort): Don't declare.
344         (abort): Don't define.
345         * system.h (fancy_abort): Declare.
346         (abort): Define to fancy_abort.
347         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
348
349         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
350         (usize_type, ubitsizetype): Remove.
351         * stor-layout.c (set_sizetype): Don't initialize usizetype,
352         ubitsizetype.
353         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
354
355         * tree.h (build_distinct_type_copy): New.
356         (build_type_copy): ... here.  Rename to ...
357         (build_variant_type_copy): ... here.
358         * tree.c (build_qualified_type): Rename build_type_copy call.
359         (build_distinct_type_copy): New, broken out of ...
360         (build_type_copy): ... here.  Rename to ...
361         (build_variant_type_copy): ... here.  Use
362         build_distinct_type_copy.
363         (build_common_tree_nodes_2): Rename build_type_copy call.
364         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
365         call.
366         (handle_packed_attribute, handle_unused_attribute,
367         handle_transparanet_union_attribute, handle_aligned_attribute,
368         handle_deprecated_attribute): Likewise.
369         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
370         Likewise.
371         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
372         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
373         build_distinct_type_copy.
374
375 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
376
377         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
378         attribute.
379
380 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
381
382         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
383         loads and stores.
384         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
385         formerly unnamed patterns.  Redefine using :P for the address.  Remove
386         explicit length attributes.
387
388 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
389
390         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
391         New functions.
392         (single_reachable_address): Use them.
393         (schedule_sm): Add dump.
394         (is_call_clobbered_ref): New function.
395         (determine_lsm_reg): Check whether the reference is call clobbered.
396         Only work for gimple_reg_type values.
397
398 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
399
400         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
401         $31 store insns.  Redefine using :GPR.
402
403 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
404
405         * config/mips/mips.md (P): New mode macro.
406         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
407         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
408         Add mode attributes.
409
410 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
411
412         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
413         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
414         later constants to cover the gap.
415         (load, store): New mode attributes.
416         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
417         Use new unspec constants.
418
419 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
420
421         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
422         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
423         to use register_operand rather than uns_arith_operand as the predicate
424         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
425         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
426         Redefine using :GPR.  Make same predicate change here.  Extend the
427         commutativity of operands 1 and 2 from the SImode version to the
428         DImode one.
429         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
430         but with no predicate changes.
431         (*nor[sd]i3): Redefine using :GPR.
432
433 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
434
435         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
436         noreturn functions.
437
438 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
439
440         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
441         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
442         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
443         rather than "%z2" (with a fake const0_rtx for operand 2).
444         (ffs[sd]i2): Redefine using :GPR.
445         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
446
447 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
448
449         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
450
451 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
452
453         * config/mips/mips.md (any_extend): New code macro.
454         (u, su): New code attributes.
455         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
456         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
457         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
458         (*{s,u}mul_acc_di): Redefine using any_extend.
459         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
460         to reflect real insn names.
461         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
462         with an any_extend template.
463         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
464         Add '*' to name.
465
466 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
467
468         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
469         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
470         (mul[sd]i3_r4000): Redefine using :GPR.
471         (mulsi3_mult3): Don't check TARGET_MAD separately.
472         (muldi3_mult3): Moved after mulsi_mult3.
473
474 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
475
476         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
477         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
478         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
479         (TARGET_GAS, TARGET_MIPS_AS): Delete.
480         (TARGET_GPWORD): Define to true for n32 on IRIX.
481         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
482         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
483         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
484         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
485         (MDEBUG_ASM_SPEC): Delete, folding into...
486         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
487         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
488         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
489         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
490         to define asm_abi_default_spec.
491         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
492         (TARGET_ASM_SELECT_SECTION): Delete.
493         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
494         for non-mips16 code, removing previous workaround for SGI assemblers.
495         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
496         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
497         (override_options): Remove !TARGET_GAS and !have_named_sections code.
498         (print_operand): Fold TARGET_GAS conditionals into asm strings.
499         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
500         ASM_STABS_OP and ASM_STABN_OP.
501         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
502         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
503         (mips_output_function_prologue): Remove !TARGET_GAS code.
504         (mips_select_rtx_section): Remove !have_named_sections code.
505         (mips_select_section): Delete.
506         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
507         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
508         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
509         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
510         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
511         * config/mips/windiss.h (ASM_SPEC): Likewise.
512
513 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
514
515         * read-rtl.c (map_value, mapping, macro_group): New structures.
516         (BELLWETHER_CODE): New macro.
517         (modes, codes, bellwether_codes): New variables.
518         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
519         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
520         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
521         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
522         (add_map_value, initialize_macros): New functions.
523         (def_hash, def_hash_eq_p): Generalize to anything that points to,
524         or starts with, a char * field.
525         (find_macro, read_mapping, check_code_macro): New functions.
526         (read_rtx_1): New, split out from read_rtx.  Handle the new
527         define_{mode,code}_{macro,attr} constructs.  Use find_macro
528         to parse the name of a code or mode.  Use BELLWETHER_CODE to
529         extract the format and to choose a suitable code for rtx_alloc.
530         Modify recursive invocations to use read_rtx_1.
531         (read_rtx): Call initialize_macros.  Apply code and mode macros
532         to the rtx returned by read_rtx_1.  Cache everything after the
533         first macro expansion for subsequent read_rtx calls.
534         * doc/md.texi: Document new .md constructs.
535         * config/mips/mips.md (GPR): New mode macro.
536         (d, si8_di5): New mode attributes.
537         (any_cond): New code macro.
538         (add[sd]i3): Redefine using :GPR.
539         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
540         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
541         previously unnamed MIPS16 patterns.
542         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
543         lines.  Don't match (plus (const_int 0) ...).
544         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
545         Use a define_split to generate the addition.
546         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
547         (subsi3_internal): Delete.
548         (*subsi3_extended): Renamed from subsi3_internal_2.
549         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
550         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
551         using an any_cond template.
552
553 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
554
555         * read-rtl.c (read_rtx): Tidy use of format_ptr.
556
557 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
558
559         * read-rtl.c (string_obstack): New file-scope variable.
560         (read_string, read_quoted_string, read_braced_string)
561         (read_escape): Remove obstack parameter and use string_obstack instead.
562         (read_rtx): Remove function-local rtl_obstack and initialize
563         string_obstack instead.  Update call to read_string.
564
565 2004-08-22  Andrew Pinski  <apinski@apple.com>
566
567         PR c/15262
568         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
569         expression is not constant.
570         (c_finish_return): Do not go through INDIRECT_REF when looking
571         for the inner expression of an ADDR_EXPR for warning about.
572
573 2004-08-22  Richard Henderson  <rth@redhat.com>
574
575         PR 17075
576         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
577         create new blocks and fall through.
578         (expand_gimple_basic_block): Update to match.
579
580 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
581
582         * reload.c (find_reloads_address): Make return value tri-state.
583         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
584         (find_reloads): Assume that reloaded addresses match 'o' or
585         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
586         returned 1 (not -1).  Omit optional reloads for address operands
587         only if find_reloads_address returned 1 (not -1).
588
589         * config/s390/s390.c (legitimize_reload_address): New function.
590         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
591         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
592         legitimize_reload_address.
593
594 2004-08-22  Richard Hendersion  <rth@redhat.com>
595
596         * tree.h (SAVE_EXPR_RESOLVED_P): New.
597         * gimplify.c (gimplify_save_expr): Use it.
598         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
599         on the temporary variable.
600
601 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
602
603         * fold-const.c (rtl_expr_nonnegative_p): Delete.
604         * tree.h (rtl_expr_nonnegative_p): Remove.
605
606 2004-08-22  Steven Bosscher  <stevenb@suse.de>
607
608         * config/i386/ppro.md (ppro_complex_insn): Add missing check
609         for cpu==pentiumpro.
610
611         * combine.c (struct reg_stat): Fix comment typo.
612
613 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
614
615         * c-tree.h (c_sizeof_nowarn): Remove.
616
617 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
618
619         * c-decl.c (set_array_declarator_type): Rename to
620         set_array_declarator_inner.
621         (build_c_parm, build_attrs_declarator, build_function_declarator):
622         New functions.
623         (make_pointer_declarator): Call build_attrs_declarator.
624         * c-tree.h (set_array_declarator_type): Rename to
625         set_array_declarator_inner.
626         (build_c_parm, build_attrs_declarator, build_function_declarator):
627         New prototypes.
628         * c-parse.in (after_type_declarator,
629         parm_declarator_starttypename, parm_declarator_nostarttypename,
630         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
631         firstparm): Use these functions
632
633 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
634
635         * c-decl.c (build_array_declarator, set_array_declarator_type,
636         start_decl, grokdeclarator, grokparms): Change boolean parameters
637         to type bool.
638         * c-tree.h (build_array_declarator, set_array_declarator_type,
639         start_decl): Update prototypes.
640         * c-decl.c, c-parse.in: All callers changed.
641
642 2004-08-21  Mike Stump  <mrs@apple.com>
643
644         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
645         (darwin_fix_and_continue): Likewise.
646         (darwin_fix_and_continue_switch): Likewise.
647         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
648         (darwin_fix_and_continue): Likewise.
649         (darwin_fix_and_continue_switch): Likewise.
650
651 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
652
653         PR  c++/16030
654         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
655         Remove, merging into ...
656         (gen_stdcall_or_fastcall_suffix): New function, returning tree
657         rather than const char*, and accepting additional parameter.
658         Don't add suffix to '*'-prefixed symbols or variadic functions.
659         (i386_pe_encode_section_info): Adjust for call to new function.
660         Call change_decl_assembler_name.
661
662 2004-08-20  Mike Stump  <mrs@apple.com>
663
664         * config/darwin.c (machopic_indirect_data_reference): Mark
665         stubs as defined.
666         * config/386/386.c (darwin_local_data_pic): Add.
667         (legitimate_constant_p): Reorder so that PLUS handling runs
668         before darwin_local_data_pic to match the ordering in
669         legitimate_pic_address_disp_p and so that MINUS runs after
670         darwin_local_data_pic as otherwise the darwin_local_data_pic
671         logic can be skipped, which would be very bad.
672         (legitimate_pic_address_disp_p): Move from from here to
673         darwin_local_data_pic so it can be reused.
674
675 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
676
677         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
678         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
679         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
680         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
681         (RS6000_ABI_NAME): Define as "linux".
682         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
683         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
684         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
685         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
686         * config/rs6000/rs6000.c (dot_symbols): New global var.
687         (rs6000_output_function_entry): New function, modified for
688         !DOT_SYMBOLS..
689         (print_operand <case 'z'>): ..extracted from here.
690         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
691         (rs6000_output_function_epilogue): Likewise.
692         (rs6000_elf_declare_function_name): Likewise.
693         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
694         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
695         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
696         * configure: Regenerate.
697         * config.in: Regenerate.
698
699 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
700
701         * reload.c (find_reloads_address): Fix thinko in previous change.
702
703         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
704         a CONST_INT.
705
706 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
707
708         PR rtl-optimization/17099
709         * combine.c (force_to_mode): Check if inner_mask has any bits set
710         outside of GET_MODE (x) instead of op_mode.
711
712 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
713
714         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
715         fragment.
716         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
717         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
718         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
719         architecture.
720         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
721         configurations.
722         * config/arm/t-symbian: New file.
723
724 2004-08-20  Andrew Pinski  <apinski@apple.com>
725
726         * regrename.c (kill_value_regno): ANSIfy.
727
728 2004-08-20  Dale Johannesen  <dalej@apple.com>
729
730         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
731
732 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
733
734         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
735         (kill_value_regno): New function, derived from kill_value.
736         (kill_value): Update.
737         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
738
739 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
740
741         Fix PR tree-optimization/17111
742         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
743         of non-value_handles.
744         (bitmap_set_contains): All constants are in every set.
745
746 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
747
748         * fold-const.c (round_up, round_down): Use build_int_cst.
749         Optimize common case.
750
751 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
752             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
753
754         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
755         one_only_data_section): Rename to som_readonly_data_section,
756         som_one_only_readonly_data_section and som_one_only_data_section.
757         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
758         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
759         conditional defines.
760         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
761         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
762         string values.
763         (pa_select_section): Use renamed section functions.
764         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
765         SOM_READONLY_DATA_SECTION_FUNCTION,
766         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
767         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
768         Define here ...
769         * config/pa/som.h: ... not here.
770         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
771         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
772         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
773         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
774         (READONLY_DATA_SECTION): Use som_readonly_data_section.
775
776 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
777
778         * fold-const.c (int_const_binop): Don't generate non-overflowing
779         size-types specially.
780         (fold_convert_const): Likewise.
781
782         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
783         clear cache on copied sizetype.
784
785 2004-08-20  Ben Elliston  <bje@au.ibm.com>
786
787         * configure.ac: Don't escape apostrophe in --enable-coverage help.
788         * configure: Regenerate.
789
790 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
791
792         PR 5620
793         * gcc.c (struct stat input_stat): Don't define if
794         HOST_LACKS_INODE_NUMBERS
795         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
796         than stat to determine if temp file is same as input file.
797         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
798         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
799
800 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
801
802         * configure.ac (mips*-*-*): Print an error if not using GAS.
803         * configure: Regenerated.
804         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
805         comments about buggy MIPSpro assemblers.
806         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
807         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
808         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
809         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
810         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
811         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
812         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
813         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
814         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
815         of more general IRIX 6 definitions.
816         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
817         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
818         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
819         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
820         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
821         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
822         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
823         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
824         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
825         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
826         (LINK_SPEC): Move most of definition to iris.h.
827         (SUBTARGET_LINK_SPEC): New macro.
828         (IRIX_STARTFILE_SPEC): Fold into...
829         (STARTFILE_SPEC): ...here.
830         (IRIX_ENDFILE_SPEC): Fold into...
831         (ENDFILE_SPEC): ...here.
832         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
833         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
834         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
835         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
836         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
837         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
838         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
839         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
840         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
841         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
842         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
843         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
844         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
845         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
846         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
847         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
848         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
849         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
850         (TARGET_IRIX6): Define to 1.
851         (DRIVER_SELF_SPECS): Define.
852         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
853         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
854         (SUBTARGET_LINK_SPEC): New macro.
855         (IRIX_STARTFILE_SPEC): Fold into...
856         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
857         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
858         (LIB_SPEC, LIBGCC_SPEC): Use them.
859         (LIB_SPEC): Remove !mabi=* case.
860         (IRIX_ENDFILE_SPEC): Fold into...
861         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
862         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
863         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
864         (TARGET_IRIX6): New macro.
865         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
866         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
867         (LABEL_AFTER_LOC): Delete.
868         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
869         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
870         (mips_build_builtin_va_list): Check TARGET_IRIX6.
871         (override_options): Remove TARGET_SGI_O32_AS-related code.
872         (irix_output_external_libcall): Make static.
873         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
874         LABEL_AFTER_LOC.
875         (mips_file_start): Tidy guard for ABI sections.  Remove use of
876         ABICALLS_ASM_OP; use .abicalls instead.
877         (mips_output_aligned_decl_common, mips_declare_object_name)
878         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
879         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
880         .globl foo .text directives.
881         (irix_asm_named_section_1, irix_asm_named_section)
882         (irix_section_align_entry, irix_section_align_htab)
883         (irix_orig_asm_out_file, irix_section_align_entry_eq)
884         (irix_section_align_entry_hash, irix_asm_output_align)
885         (irix_file_start, irix_section_align_1, copy_file_data)
886         (irix_file_end, irix_section_type_flags): Delete.
887         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
888         Use standard section syntax.  Remove protective "jr $31".
889         (__gcc_fini): Likewise .gcc_fini.
890         * config/mips/irix-crtn.asm: Adjust sections accordingly.
891         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
892         iris5gas.h.
893         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
894         from t-irix-gld.
895         (EXTRA_MULTILIB_PARTS): Define.
896         * config/mips/t-iris6: Remove bogus comment.
897         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
898         * config/mips/iris5gas.h, config/mips/iris5gld.h,
899         config/mips/iris6gas.h, config/mips/iris6gld.h,
900         config/mips/t-iris5-as, config/mips/t-iris5-gas
901         config/mips/t-irix-gld: Delete.
902         * config/mips/iris.h: New file.
903         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
904
905 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
906
907         * postreload.c (reload_cse_move2add): Allow any condjump, but check
908         that the implicit set isn't clobbered in the jump insn.
909
910 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
911
912         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
913         * optabs.c (init_optabs): Don't check it.
914         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
915         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
916
917 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
918
919         * config/s390/s390.md (s390_warn_framesize_string)
920         (s390_warn_dynamic_string, s390_stack_size_string)
921         (s390_stack_guard_string): New global string variables.
922         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
923         (s390_stack_guard): New global variables.
924         (override_options): Added checks for the new options.
925         (s390_emit_prologue): Emit stack check and trap code and perform
926         compile time stack size checking.
927
928         * config/s390/s390.h (TARGET_OPTIONS): Added new options
929         "warn-framesize", "warn-dynamicstack", "stack-size" and
930         "stack-guard".
931
932         * doc/invoke.texi: Added documentation for the new options.
933
934 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
935
936         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
937         to eliminate warning.
938         (linear_search_fdes): Declare p as unsigned.
939         (binary_search_mixed_encoding_fdes): Likewise.
940         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
941         to eliminate warning.
942         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
943         type cast.
944
945 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
946
947         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
948         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
949         instead of one.  Check for strictly legitimate address.
950         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
951         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
952
953 2004-08-19  Eric Christopher  <echristo@redhat.com>
954
955         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
956         * langhooks.h (unsave_expr_now): Ditto.
957         * tree.h (unsave_expr_1): Remove prototype.
958         (lhd_unsave_expr_now): Rename to unsave_expr_now.
959         * tree-inline.c (unsave_expr_1): Move here
960         from tree.c. Make static.
961         (unsave_expr_now): Rename from lhd_unsave_expr_now.
962         * tree-sra.c: Fix up for rename.
963         * tree-ssa-copy.c: Ditto.
964         * tree-eh.c: Ditto.
965         * tree.c (unsave_expr_1): Move to tree-inline.c.
966
967 2004-08-19  Caroline Tice  <ctice@apple.com>
968
969         * config/i386/cygming.h (switch_to_section):  Fix typo (change
970         in_unlikely_text_section to in_unlikely_executed_text).
971
972 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
973
974         * vec.h (VEC_lower_bound): New macro.
975
976 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
977
978         PR target/16446
979         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
980         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
981         treat each ABI separately.  Deal with n32/n64 complex float arguments.
982         (function_arg): Add associated complex handling here.
983
984 2004-08-19  Richard Henderson  <rth@redhat.com>
985
986         * config/arm/arm.c (arm_gen_load_multiple): Use
987         adjust_automodify_address.  Take base memory and offset instead
988         of unchanging/struct/scalar bits.
989         (arm_gen_store_multiple): Likewise.
990         (arm_gen_movmemqi): Use adjust_automodify_address.
991         * config/arm/arm-protos.h: Update decls.
992         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
993         (store_multiple): Similarly.
994
995 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
996
997         * regclass.c (globalize_reg): Update call_really_used_regs.
998
999 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
1000
1001         * doc/invoke.texi (integer-share-limit): Document.
1002
1003         * tree.h (TYPE_CACHED_VALUES_P): New.
1004         (TYPE_CACHED_VALUES): New.
1005         (TYPE_ORIG_SIZE_TYPE): Adjust.
1006         * tree.def (INTEGER_CST): Update documentation.
1007         * tree.c: Inlcude params.h.
1008         (build_int_cst): Cache small values.
1009         (build_type_copy): Do not copy the value cache.
1010         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
1011         unneeded zeroing.
1012         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
1013         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
1014         cache.
1015         * fold-const.c (force_fit_type): Copy value when setting
1016         overflows.
1017         (int_const_binop): Likewise.
1018         * stor-layout.c: Include params.h
1019         (set_sizetype): Create values cache.
1020         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
1021         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
1022         * params.h (INTEGER_SHARE_LIMIT): New.
1023         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
1024
1025 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
1026
1027         * gimplify.c (gimplify_minimax_expr): Remove.
1028         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
1029
1030 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
1031
1032         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
1033         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
1034
1035 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1036
1037         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
1038
1039 2004-08-18  Andrew Pinski  <apinski@apple.com>
1040
1041         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
1042
1043 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
1044
1045         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
1046         (__aeabi_ul2f): Likewise.
1047
1048 2004-08-18  Richard Henderson  <rth@redhat.com>
1049
1050         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
1051         move to rtl completely.
1052         (struct meminsnbuf, xtensa_emit_block_move): Remove.
1053         (xtensa_find_mode_for_size): Remove.
1054         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
1055         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
1056
1057 2004-08-18  Richard Henderson  <rth@redhat.com>
1058
1059         * config/mcore/mcore.c (mode_from_align): Remove DImode.
1060         (block_move_sequence): Rewrite to use adjust_address.
1061         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
1062         Return boolean indicating success/failure.
1063         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
1064         * config/mcore/mcore.md (movmemsi): Update to match.
1065
1066 2004-08-18  Mike Stump  <mrs@apple.com>
1067
1068         * doc/invoke.texi (-mfix-and-continue): Add support for
1069         fast turn around debugging.
1070         (-ffix-and-continue): Likewise.
1071         (-mindirect-data): Likewise.
1072         (-findirect-data): Likewise.
1073         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
1074         (indirect_data): Likewise.
1075         (machopic_data_defined_p): Likewise.
1076         (machopic_output_indirection): Likewise.
1077         (darwin_encode_section_info): Likewise.
1078         (darwin_fix_and_continue): Likewise.
1079         (darwin_fix_and_continue_switch): Likewise.
1080         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
1081         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
1082         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
1083         (SUBTARGET_OPTIONS): Likewise.
1084         (darwin_fix_and_continue): Likewise.
1085         (darwin_fix_and_continue_switch): Likewise.
1086         (TARGET_FIX_AND_CONTINUE): Likewise.
1087         * config/rs6000.c (rs6000_emit_prologue): Likewise.
1088
1089 2004-08-19  Steven Bosscher  <stevenb@suse.de>
1090
1091         * basic-block.h (struct edge_def): Remove crossing_edge.
1092         (EDGE_CROSSING): New define.
1093         (EDGE_ALL_FLAGS): Update.
1094         * bb-reorder.c (find_traces_1_round, better_edge_p,
1095         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
1096         find_jump_block, fix_crossing_conditional_branches,
1097         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
1098         Replace all occurences of crossing_edge with an edge flag check
1099         or set/reset.
1100         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1101         try_crossjump_bb): Likewise.
1102         * cfglayout.c (fixup_reorder_chain): Likewise.
1103         * cfgrtl.c (force_nonfallthru_and_redirect,
1104         commit_one_edge_insertion): Likewise.
1105
1106         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
1107         * tree-flow.h (compute_dominance_frontiers): Move prototype...
1108         * basic-block.h:  ...here.
1109         * tree-cfg.c (compute_dominance_frontiers_1,
1110         compute_dominance_frontiers): Move from here...
1111         * cfganal.c: ...to here.  Include timevar.h.
1112
1113 2004-08-18  James E Wilson  <wilson@specifixinc.com>
1114
1115         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
1116         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
1117
1118         * config/mips/mips.md (type): Add frdiv.
1119         (divsf3+1, divsf3+2): Change type to frdiv.
1120         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
1121         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
1122
1123         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
1124         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
1125         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
1126         * config/mips/5000.md (r5k_fdiv_single): Likewise.
1127         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
1128         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
1129         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
1130         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
1131         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
1132         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
1133         Likewise.
1134         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
1135
1136 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
1137
1138         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
1139         get regression tester working again.
1140
1141 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
1142
1143         * insn-notes.def, reg-notes.def: New files.
1144         * rtl.h: Use them to define enum insn_note and enum reg_note.
1145         * rtl.c: Use them to define note_insn_name and reg_note_name.
1146         * Makefile.in (RTL_BASE_H): Update.
1147
1148         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
1149         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
1150
1151 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
1152
1153         * arm.c (arm_size_rtx_costs): New function.
1154         (arm_override_options): Use it if optimizing for space.
1155
1156 2004-08-18  Richard Henderson  <rth@redhat.com>
1157
1158         * emit-rtl.c (gen_const_mem): New.
1159         * rtl.h (gen_const_mem): Declare.
1160         * expr.c (do_tablejump): Use it.
1161         * varasm.c (force_const_mem): Likewise.
1162         * config/darwin.c (machopic_indirect_data_reference): Likewise.
1163         (machopic_legitimize_pic_address): Likewise.
1164         * config/arm/arm.c (legitimize_pic_address): Likewise.
1165         * config/i386/i386.c (legitimize_pic_address): Likewise.
1166         (legitimize_tls_address): Likewise.
1167         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
1168         * config/ia64/ia64.md (load_fptr): Likewise.
1169         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
1170         * config/pa/pa.c (legitimize_pic_address): Likewise.
1171         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1172         (rs6000_emit_move): Likewise.
1173         * config/s390/s390.c (legitimize_pic_address): Likewise.
1174         (legitimize_tls_address): Likewise.
1175         * config/s390/s390.md (casesi): Likewise.
1176         * config/sh/sh.c (sh_reorg): Likewise.
1177         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
1178         * config/v850/v850.md (casesi): Likewise.
1179
1180         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
1181         * config/sh/sh.c (prepare_move_operands): Remove incorrect
1182         use of MEM_READONLY_P.
1183
1184 2004-08-18  Steven Bosscher  <stevenb@suse.de>
1185
1186         * Makefile.in (OBJS-common): Add postreload-gcse.c.
1187         Add new postreload-gcse.o.
1188         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
1189         (lookup_as_function, insert, rehash_using_reg, use_related_value,
1190         equiv_constant): Use SAFE_HASH instead of safe_hash.
1191         (exp_equiv_p): Export.  Add for_gcse argument when comparing
1192         for GCSE.
1193         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
1194         find_comparison_args, fold_rtx, cse_insn): Update callers.
1195         (hash_rtx): New function derived from old canon_hash and bits
1196         from gcse.c hash_expr_1.
1197         (canon_hash_string): Rename to hash_rtx_string.
1198         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
1199         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
1200         (cselib_lookup): Update this caller.
1201         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
1202         Make static.
1203         (hash_expr): Call hash_rtx.
1204         (ldst_entry): Likewise.
1205         (expr_equiv_p): Call exp_equiv_p.
1206         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
1207         reg_used_on_edge, reg_set_between_after_reload_p,
1208         reg_used_between_after_reload_p, get_avail_load_store_reg,
1209         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
1210         get_bb_avail_insn, hash_scan_set_after_reload,
1211         compute_hash_table_after_reload,
1212         eliminate_partially_redundant_loads, gcse_after_reload,
1213         get_bb_avail_insn, gcse_after_reload_main): Remove.
1214         * postreload-gcse.c: New file, reincarnating most of the above.
1215         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
1216         (gcse_after_reload_main): Update prototype.
1217         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
1218         * passes.c (rest_of_handle_gcse2): Use it.
1219
1220 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
1221
1222         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
1223         (pass_loop_done): Likewise.
1224
1225 2004-08-18  Andrew Pinski  <apinski@apple.com>
1226
1227         * config/rs6000/darwin.md: Delete the altivec patterns which are
1228         handled differently now.
1229         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
1230         (macho_correct_pic_di): Likewise.
1231         (call_indirect_nonlocal_darwin64): Likewise.
1232         Delete the save world/saveFP/saveVec patterns.
1233
1234         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
1235         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
1236         * config/rs6000/rs6000.md: Include darwin.md.
1237         (builtin_setjmp_receiver): Add DImode case.
1238         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
1239         Darwin bits.
1240
1241 2004-08-18  Matt Austern  <austern@apple.com>
1242
1243         Dead code stripping
1244         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
1245         * darwin.c (darwin_file_end): Mark file as potentially strippable.
1246
1247 2004-08-18  Richard Henderson  <rth@redhat.com>
1248
1249         * alias.c (readonly_fields_p): Remove.
1250         (objects_must_conflict_p): Don't call it.
1251         * tree.h (readonly_fields_p): Remove.
1252         * langhooks.h (struct lang_hooks): Remove honor_readonly.
1253         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
1254
1255 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
1256
1257         * tree-dfa.c (add_referenced_var): Only global variables are
1258         call-clobbered.
1259         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
1260         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
1261         all pointers dereferenced if the statement dereferences them.
1262         (create_name_tags): Do not create memory tags for pointers
1263         that have PT_ANYTHING set.
1264         Also check if PT_VARS is not empty before creating a name tag.
1265         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
1266         variables that share the same alias set with a pointer that
1267         may point anywhere.
1268         (add_may_alias): Add FIXME comment to remove clobbering
1269         aliased variables and tags.
1270         (replace_may_alias): Likewise.
1271         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
1272         (merge_pointed_to_info): If the original variable has not
1273         points-to information, call set_pt_anything.
1274         (add_pointed_to_var): Do not prevent adding a pointed-to
1275         variable if the pointers is PT_ANYTHING.
1276         If the variable is a global, set PT_GLOBAL_MEM.
1277         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
1278         pointer type only come in PTR+OFFSET flavours.
1279         Always call merge_pointed_to_info on PHI arguments that are
1280         SSA_NAMEs.
1281         (get_nmt_for): Mark call-clobbered tags whose pointer points
1282         to global memory.
1283         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
1284         values.
1285         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
1286         FLAGS.
1287         (add_stmt_operand): Abort if the caller tried to add a killing
1288         definition for a memory tag.
1289         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
1290         unnecessary checks.
1291
1292 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
1293
1294         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
1295         from call_used_regs.  Update call_really_used_regs.
1296         (CALL_REALLY_USED_REGISTERS): Define.
1297         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
1298         Replace call_used_regs with call_really_used_regs.
1299         (calc_live_regs, sh_media_register_for_return): Likewise.
1300         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
1301         * sh.md (return_media): Likewise.
1302
1303 2004-08-18  Andrew Pinski  <apinski@apple.com>
1304
1305         * config/darwin.c (machopic_legitimize_pic_address): Only set
1306         MEM_READONLY_P in the non TARGET_TOC case.
1307
1308 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
1309
1310         * rtl.def (NIL): Delete.
1311         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
1312         Tighten the syntax a little.
1313
1314         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
1315         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
1316         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
1317         * config/i386/predicates.md, config/m32r/m32r.h
1318         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
1319         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
1320         * config/sparc/sparc.h, doc/tm.texi:
1321         Replace all occurrences of NIL with UNKNOWN.
1322
1323 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
1324
1325         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
1326         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
1327         sequence inline.  Move drop_through_label code into this
1328         block, being the only place it is used.  Adjust comments.
1329
1330 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
1331
1332         * config/rs6000/altivec.md: Add new patterns for calls to
1333         save_world/rest_world functions.
1334
1335         * config/rs6000/rs6000-protos.h: (save_world_operation,
1336         restore_world_operation) new declarations.
1337
1338         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
1339         field added.
1340         (rs6000_stack_info): Set world_save_p field.
1341         (save_world_operation): New function.
1342         (restore_world_operation): New function.
1343         (compute_save_world_info): New function.
1344         (rs6000_stack_info): Call compute_save_world_info.
1345         (rs6000_emit_prologue): Check for world_save_p and generate
1346         pattern to call save_world for saving all non-volatile and
1347         special registers.
1348         (rs6000_emit_epilogue): Check for world_save_p and generate
1349         pattern to call rest_world to restore saved registers.
1350
1351         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
1352         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
1353         (rs6000_reg_names): New entries added for save_world_operation and
1354         restore_world_operation.
1355
1356 2004-08-18  Caroline Tice  <ctice@apple.com>
1357
1358         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
1359         "-freorder-blocks-and-partition" to the flags used in second
1360         stage of profiledbootstrap.
1361         * bb-reorder.c (push_to_next_round_p): Add new variable,
1362         next_round_is_last; set and use variable to make sure, when
1363         partitioning, that the last trace construction round consists
1364         of all (and only) cold basic blocks.
1365         (rotate_loop): Don't copy blocks that end in a section
1366         crossing jump.
1367         (copy_bb): Correctly initialize "partition" of duplicated bb.
1368         (add_unlikely_executed_notes): Add a comment.
1369         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
1370         to make sure, if function contains hot blocks, that the
1371         successors of ENTRY_BLOCK_PTR are hot; also, only look for
1372         crossing edges if the architecture supports named sections.
1373         (mark_bb_for_unlikely_executed_section): Modify to always
1374         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
1375         the basic block note insn.
1376         (fix_crossing_unconditional_branches): Remove extra space.
1377         (fix_edges_for_rarely_executed_code): Modify to only do
1378         partitioning work if the architecture supports named sections.
1379         (reorder_basic_blocks): Modify to only add
1380         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
1381         supports named sections.
1382         * c-common.c (handle_section_attribute): Initialize new global
1383         variable, user_defined_section_attribute, to true if user has
1384         specified one.
1385         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
1386         forward edges that cross section boundaries.
1387         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
1388         partitioning information if the architecture supports named
1389         sections.
1390         * cfgrtl.c (target.h): Add statement to include this.
1391         (rtl_split_block): Make sure newly created bb gets correct
1392         partition.
1393         (try_redirect_by_replacing_jump): Make sure redirection isn't
1394         attempting to cross section boundaries.
1395         (force_nonfallthru_and_redirect): Only do partition fix up if
1396         architecture supports named sections.
1397         (rtl_split_edge): Make sure newly created bb ends up in
1398         correct partition.
1399         (commit_one_edge_insertion): Remove code that incorrectly
1400         updated basic block partition; Make sure partition fix up only
1401         happens if architecture supports named sections and it's not
1402         already done.
1403         (rtl_verify_flow_info_1): Fix if-condition on test/error
1404         condition that fallthru edges are not allowed to cross section
1405         boundaries.
1406         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
1407         * final.c (final_scan_insn): Remove redundant test from if-statement;
1408         change calls to text_section into calls to function_section; add code
1409         to only to partitioning fix up if architecture supports named
1410         sections.
1411         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
1412         partition.
1413         (if_convert): Add targetm.have_named_sections to test.
1414         * output.h (unlikely_section_label): Extern declaration for new global
1415         variable.
1416         (unlikely_text_section_name): Likewise.
1417         * opts.c (decode_options): If both partitioning and DWARF debugging
1418         are turned on, issue a warning that this doesn't work, and change
1419         partitiong to basic block reordering (without hot/cold partitions).
1420         * passes.c (rest_of_handle_final): Re-set new global variable,
1421         user_defined_section_attribute, to false.
1422         (rest_of_compilation): Change options for calling partitioning
1423         function: Don't call if the user defined the section attribute, and
1424         don't call if DECL_ONE_ONLY is true for the current function.
1425         * predict.c (choose_function_section): Return immediately if we
1426         are doing hot/cold partitioning (i.e. let the basic block partitioning
1427         determine where the function belongs).
1428         * reg-stack.c (emit_swap_insn): Add condition to step over
1429         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
1430         * toplev.c (user_defined_section_attribute): New global variable.
1431         * toplev.h (user_defined_section_attribute): Extern declaration
1432         for new global variable.
1433         * varasm.c (unlikely_section_label): New global variable.
1434         (unlikely_text_section_name): New global variable.
1435         (unlikely_text_section): Add code to initialize
1436         unlikely_text_section_name if necessary; modify to use
1437         unlikely_text_section_name and unlikely_section_label; also to use
1438         named_section properly.
1439         (in_unlikely_text_section):  Modify to work correctly with
1440         named_section and to use unlikely_text_section_name.
1441         (named_section):  Add code to work properly with cold section.
1442         (function_section): Clean up if-statement.
1443         * config/darwin.c (darwin_asm_named_section): Return to original
1444         code, removing use of SECTION_FORMAT_STRING.
1445         * config/arm/pe.h (switch_to_section):  Add case for
1446         in_unlikely_executed_text to switch statement.
1447         * config/i386/cygming.h (switch_to_section): Likewise.
1448         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
1449         (SECTION_FORMAT_STRING): Likewise.
1450         * config/mcore/mcore.h (switch_to_section): Likewise.
1451         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
1452         (SECTION_FORMAT_STRING): Remove.
1453
1454 2004-08-18  Roger Sayle  <roger@eyesopen.com>
1455
1456         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
1457         -ffixed-reg safe, by preserving the meanings of zero and one.
1458         (CALL_USED_REGISTERS): Likewise.
1459         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
1460
1461 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1462
1463         * config/sh/sh.c (split_branches): Check the result of
1464         next_active_insn.
1465         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
1466         Call rtl_register_cfg_hooks.
1467
1468 2004-08-18  Richard Henderson  <rth@redhat.com>
1469
1470         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
1471         * alias.c (true_dependence): Update to match new semantics.
1472         (canon_true_dependence, write_dependence_p): Likewise.
1473         (anti_dependence, output_dependence): Update write_dependence_p args.
1474         (unchanging_anti_dependence): Remove.
1475         * calls.c (purge_mem_unchanging_flag): Remove.
1476         (fixup_tail_calls): Don't call it.
1477         (expand_call): Don't add unchanging memory to function usage.
1478         * expr.c (emit_block_move_via_libcall): Likewise.
1479         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
1480         (get_subtarget): Don't use RTX_UNCHANGING_P.
1481         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
1482         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
1483         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
1484         * cse.c (insert): Don't use RTX_UNCHANGING_P.
1485         (cse_insn, canon_hash): Use MEM_READONLY_P.
1486         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
1487         instead of RTX_UNCHANGING_P.
1488         * explow.c (maybe_set_unchanging): Remove.
1489         * expr.h (maybe_set_unchanging): Remove.
1490         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
1491         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
1492         (assign_parm_setup_reg, expand_function_start): Likewise.
1493         * integrate.c (copy_rtx_and_substitute): Likewise.
1494         * ra-rewrite.c (emit_colors): Likewise.
1495         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
1496         (fixup_match_1): Likewise.
1497         * reload1.c (reload, alter_reg): Likewise.
1498         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
1499         not RTX_UNCHANGING_P.
1500         (equiv_init_varies_p): Likewise.
1501         * loop-invariant.c (check_maybe_invariant): Likewise.
1502         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
1503         * loop.c (note_addr_stored): Likewise.
1504         (prescan_loop): Likewise. Don't check function usage for clobbered
1505         unchanging memory.
1506         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
1507         not RTX_UNCHANGING_P.
1508         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
1509         * varasm.c (force_const_mem): Likewise.
1510         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
1511         * web.c (entry_register): Likewise.
1512         * tree-gimple.h (get_base_address): Move decl ...
1513         * tree.h: ... here.
1514         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
1515
1516         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
1517         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
1518         (alpha_set_memflags): Update to match.
1519
1520         * config/darwin.c (machopic_indirect_data_reference): Set
1521         MEM_READONLY_P instead of RTX_UNCHANGING_P.
1522         (machopic_indirect_call_target): Likewise.
1523         (machopic_legitimize_pic_address): Likewise.
1524         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
1525         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
1526         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
1527         * config/frv/frv.md (symGOT2reg): Likewise.
1528         * config/i386/i386.c (legitimize_pic_address,
1529         legitimize_tls_address, ix86_split_to_parts): Likewise.
1530         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
1531         * config/ia64/ia64.md (load_fptr): Likewise.
1532         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
1533         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
1534         * config/mcore/mcore.c (block_move_sequence): Likewise.
1535         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
1536         * config/pa/pa.c (legitimize_pic_address): Likewise.
1537         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1538         (rs6000_emit_move): Likewise.
1539         * config/s390/s390.c (legitimize_pic_address): Likewise.
1540         (legitimize_tls_address): Likewise.
1541         * config/s390/s390.md (casesi): Likewise.
1542         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
1543         * config/sh/sh.md (symGOT2reg): Likewise.
1544         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
1545         * config/v850/v850.md (casesi): Likewise.
1546
1547         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
1548         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
1549         * config/mips/mips.c (mips_restore_gp): Likewise.
1550         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
1551         * config/sh/sh.c (sh_reorg): Likewise.
1552
1553 2004-08-18  Richard Henderson  <rth@redhat.com>
1554
1555         * tree.h (struct tree_decl): Add gimple_formal_temp.
1556         (DECL_GIMPLE_FORMAL_TEMP_P): New.
1557         * gimplify.c (pop_gimplify_context): Clear it.
1558         (lookup_tmp_var): Set it, if is_formal.
1559         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
1560         Use is_gimple_val for VECTOR.  Simplify return value.
1561         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
1562         (gimplify_expr): Likewise.
1563         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
1564         is_gimple_tmp_rhs for clarity.  Update all callers.
1565         (is_gimple_reg_rhs): Simplify logic.
1566         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
1567         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
1568         (is_gimple_formal_tmp_reg): Similarly.
1569         * tree-gimple.h: Update decls.
1570         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
1571         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
1572         * tree-ssa-live.c (var_union, type_var_init): Likewise.
1573
1574 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
1575
1576         * c4x.c (legitimize_operands): Remove calls to
1577         preserve_subexpressions_p.
1578
1579 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
1580
1581         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
1582         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
1583
1584 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
1585
1586         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
1587         Objective-C++ extensions.
1588         * gengtype.c (get_file_basename): Match entire subdirectory name
1589         ('cp', 'objc', 'objcp') rather than just its suffix.
1590         (get_base_file_bitmap): Allow for files to belong to more than one
1591         language.
1592         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
1593         used by more than one front-end.
1594
1595 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
1596
1597         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
1598         avoid use of preserve_subexpressions_p.
1599
1600 2004-08-17  Richard Henderson  <rth@redhat.com>
1601
1602         PR 17051
1603         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
1604
1605 2004-08-17  DJ Delorie  <dj@redhat.com>
1606
1607         * doc/extend.texi: Document new xstormy16 attribute.
1608
1609         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
1610         (xstormy16_splittable_below100_or_register): New.
1611         (combine_bnp): New.
1612         (xstormy16_reorg): New.
1613         (TARGET_MACHINE_DEPENDENT_REORG): Define.
1614
1615         * config/stormy16/stormy16.md (movqi_internal): Make name public.
1616         (movhi_internal): Likewise.
1617         (cbhranchhi): Likewise.
1618         (cbhranchhi_neg): Likewise.
1619         (andhi3): Only allow splittable below100 operands.
1620         (iorhi3): Likewise.
1621         (peephole2): New and/zero_extend->and peephole.
1622         (peephole2): New load/ior/save->set1 peephole.
1623         (peephole2): New load/and/save->clr1 peephole.
1624         (bclrx, bclrx2, bclr7, bclr15): New.
1625         (bsetx, bsetx2, bset7, bset15): New.
1626
1627         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
1628         liberal about acceptable 'B' masks.
1629
1630         * config/stormy16/stormy16-protos.h
1631         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
1632         xstormy16_below100_operand, xstormy16_below100_or_register,
1633         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
1634         (PREDICATE_CODES): Add new predicates.
1635
1636         * config/stormy16/stormy16.c
1637         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
1638         xstormy16_below100_operand, xstormy16_below100_or_register,
1639         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
1640         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
1641         (xstormy16_legitimate_address_p): Allow below100 symbols.
1642         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
1643         (xstormy16_expand_move): Leave below100 operands as-is.
1644         (xstormy16_encode_section_info): Encode below100 symbols.
1645         (xstormy16_strip_name_encoding): New.
1646         (xstormy16_print_operand): Print 'b' as shift mask.
1647         (xstormy16_attribute_table): Add below100 attributes.
1648         (xstormy16_handle_below100_attribute): New.
1649
1650         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
1651         (XSTORMY16_SECTION_FUNCTION): New.
1652         (EXTRA_SECTION_FUNCTIONS): Define using the above.
1653         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1654         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
1655         (ASM_OUTPUT_LABELREF): Define.
1656
1657         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
1658         (movhi_internal): Add below100 support.
1659         (andhi3): Add below100 support.
1660         (iorhi3): Add below100 support.
1661         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
1662
1663 2004-08-17  James E Wilson  <wilson@specifixinc.com>
1664
1665         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
1666         of VOIDmode for comparison code mode.
1667         * config/mips/mips.md: For conditional move patterns, use mode of
1668         first compare operand for comparison mode, instead of VOIDmode.
1669
1670         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
1671         normal and -ffast-math code.
1672
1673 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
1674
1675         PR c++/15871
1676         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
1677
1678 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
1679
1680         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
1681
1682 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
1683
1684         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
1685         for non Darwin targets.
1686         (*call_value_nonlocal_darwin64): Likewise.
1687
1688 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
1689
1690         * config/rs6000/rs6000.c (rs6000_function_value): Check for
1691         altivec mode for altivec return register.
1692
1693 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
1694
1695         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
1696         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
1697         * config/rs6000/rs6000.md: Include darwin.md.
1698         (builtin_setjmp_receiver): Add DImode case.
1699         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
1700         Darwin bits.
1701
1702 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
1703
1704         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
1705         trees.
1706         * tree-vectorizer.h: New File: Same.
1707         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
1708         * common.opt (ftree-vectorize): New flag to enable vectorization.
1709         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
1710         vectorization pass.
1711         * tree-data-ref.h (init_data_ref): Additional argument.
1712         (array_base_name_differ_p): Moved to tree-data-ref.c.
1713         * tree-data-ref.c (array_base_name_differ_p): Revised.
1714         (initialize_data_dependence_relation): Call array_base_name_differ_p
1715         with an extra argument.
1716         (analyze_all_data_dependences): Same.
1717         (init_data_ref): Additional argument is_read to set DR_IS_READ.
1718         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
1719         file.
1720         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
1721         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
1722         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
1723         vectorization pass.
1724         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
1725         (tree_ssa_loop_done): Call scev_finalize.
1726         (tree_vectorize): Define the new vectorization pass.
1727         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
1728         size of the vector they support (until support for multiple vector
1729         sizes is added to the vectorizer).
1730         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
1731         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
1732         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
1733         documentation.
1734
1735 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
1736
1737         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
1738         usage.
1739         (generate_protocol_list, handle_impent): Likewise.
1740
1741 2004-08-17  Roger Sayle  <roger@eyesopen.com>
1742
1743         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
1744         ensure that call_used_regs is a superset of both fixed_regs and
1745         call_really_used_regs.
1746
1747 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
1748
1749         PR target/17019
1750         * arm.md (addsi3_cbranch_scratch): Correct case labels.
1751
1752 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
1753
1754         PR middle-end/17036
1755         * fold-const.c (fold): Check for integer operand when
1756         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
1757         Pinski  <pinskia@physics.uc.edu>.
1758
1759 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
1760
1761         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
1762         No need to check if in a cross configuration.
1763         * configure: Regenerate.
1764
1765         * calls.c (precompute_register_parameters):
1766         Inline preserve_subexpressions_p ().
1767         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
1768         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
1769         Likewise.
1770         * expr.c (get_subtarget): Likewise.
1771         * rtl.h (preserve_subexpressions_p): Remove.
1772         * stmt.c (preserve_subexpressions_p): Remove.
1773
1774         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
1775         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
1776         Abort on gimplified cases.
1777
1778 2004-08-16  James E Wilson  <wilson@specifixinc.com>
1779
1780         * tree.h (VECTOR_FLOAT_TYPE_P): New.
1781         (FLOAT_TYPE_P): Use it.
1782         * c-typeck.c (build_binary_op): After convert calls, check for
1783         check for ERROR_MARK operands.
1784
1785 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
1786
1787         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
1788         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
1789         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
1790         (genobjs static pattern rule): Remove %.c dependency.
1791         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
1792         Rename rules; delete commands; fix dependencies.
1793         (mostlyclean): Do not delete temporary source copies.
1794         * configure.ac: Delete all references to BUILD_PREFIX and
1795         BUILD_PREFIX_1.
1796         * configure: Regenerate.
1797
1798         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
1799         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
1800         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
1801         with #ifndef GENERATOR_FILE so that nothing from those headers
1802         is used.
1803
1804         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
1805
1806 2004-08-16  Adam Nemet  <anemet@lnxw.com>
1807
1808         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
1809
1810 2004-08-16  Andrew Pinski  <apinski@apple.com>
1811
1812         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
1813         extraneous semicolon.
1814
1815 2004-08-16  Devang Patel  <dpatel@apple.com>
1816
1817         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
1818         * print-tree.c (print_node): Print DECL_PRESERVE_P.
1819         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
1820         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
1821         * target.h (struct gcc_target): New member, mark_decl_preserved.
1822         * hooks.c (hook_void_charptr): Rename to ...
1823         (hook_void_constcharptr): ... new name.
1824         * hooks.h (hook_void_charptr): Rename to ..
1825         (hook_void_constcharptr): ... new name.
1826         * tree.h (DECL_PRESERVE_P): New #define.
1827         (struct tree_decl): New member, preserve_flag.
1828         * varasm.c (assemble_start_function): Mark decl preserved.
1829         (assemble_variable): Same.
1830         * darwin.c (darwin_mark_decl_preserved): New function.
1831         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
1832         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
1833         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
1834
1835 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
1836
1837         * c-decl.c (grokdeclarator): Allow for function definition where
1838         innermost declarator has attributes.
1839
1840 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
1841
1842         * except.c (get_exception_filter, build_post_landing_pads,
1843         dw2_build_landing_pads): Use target-specific mode for 'filter'.
1844         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
1845         * target.h (eh_return_filter_mode): New field added.
1846         * targhooks.c (default_eh_return_filter_mode): Defined.
1847         * targhooks.h (default_eh_return_filter_mode): Declared.
1848         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
1849
1850 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
1851
1852         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
1853         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
1854         * configure: Regenerate.
1855
1856 2004-08-16  Stan Shebs  <shebs@apple.com>
1857
1858         Basic support for 64-bit Darwin.
1859         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
1860         (machopic_legitimize_pic_address): Similarly, plus use Pmode
1861         instead of SImode.
1862         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
1863         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
1864         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
1865         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
1866         (PROCESSOR_DEFAULT64): Define.
1867         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
1868         Darwin.
1869         * config/rs6000/rs6000.md: Include darwin.md.
1870         (builtin_setjmp_receiver): Add DImode case.
1871         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
1872         Darwin.
1873         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
1874         (rs6000_emit_move): Add DImode case to Darwin bits.
1875         (machopic_output_stub): Use .quad if 64-bit.
1876         * invoke.texi: Document -m32 and -m64.
1877
1878 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
1879
1880         * doc/extend.texi (AltiVec builtins): Document additional differences
1881         from the Motorola AltiVec PIM.
1882
1883 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
1884
1885         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
1886         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
1887         (struct tree_common): Update public_flag documentation.
1888
1889 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
1890
1891         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
1892         Check for artificial variables, not is_gimple_tmp_var.
1893         * tree-ssa-live.c (var_union): Likewise.
1894
1895 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
1896
1897         * calls.c (load_register_parameters): Remove spurious FIXME token.
1898
1899 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
1900
1901         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
1902         (c-lang.o): Depend on c-objc-common.h.
1903         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
1904         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
1905         * c-lang.c: Include c-objc-common.h.
1906         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
1907         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
1908         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
1909         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
1910         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
1911         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
1912         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
1913         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
1914         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
1915         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1916         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
1917         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
1918         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1919         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
1920         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
1921         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
1922         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
1923         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
1924         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
1925         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
1926         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
1927         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
1928         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
1929         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
1930         Move to c-objc-common.h.
1931         * c-objc-common.c: Include c-objc-common.h.
1932         * c-objc-common.h: New file.
1933
1934 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
1935             Andrew Pinski  <pinskia@physics.uc.edu>
1936
1937         PR target/14931
1938         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
1939         style.
1940
1941 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
1942
1943         * tree.h (build_int_cst): New.
1944         (build_int_2): Remove.
1945         * tree.c (build_int_2): Remove.
1946         (build_int_cst): New.
1947         (make_vector_type, build_common_tree_nodes,
1948         build_common_tree_nodes_2): Use build_int_cst.
1949         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
1950         expand_builtin_strpbrk, expand_builtin_fputs,
1951         build_string_literal, expand_builtin_printf,
1952         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
1953         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
1954         fold_builtin_isdigit, simplify_builtin_strstr,
1955         simplify_builtin_strpbrk, fold_builtin_fputs,
1956         simplify_builtin_sprintf): Use build_int_cst.
1957         * c-common.c (start_fname_decls, fix_string_type,
1958         c_common_nodes_and_builtins, c_init_attributes,
1959         shorten_compare): Likewise.
1960         * c-decl.c (complete_array_type,
1961         check_bitfield_type_and_width): Likewise.
1962         * c-lex.c (interpret_integer, lex_charconst): Likewise.
1963         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
1964         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1965         * c-typeck.c (really_start_incremental_init, push_init_level,
1966         set_nonincremental_init_from_string): Likewise.
1967         * calls.c (load_register_parameters): Likewise.
1968         * convert.c (convert_to_pointer): Likewise.
1969         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
1970         build_fn_info_type, build_ctr_info_value, build_gcov_info):
1971         Likewise.
1972         * except.c (init_eh, assign_filter_values, assign_filter_values):
1973         Likewise.
1974         * expmed.c (store_fixed_bit_field, extract_bit_field,
1975         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
1976         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
1977         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
1978         * expr.c (convert_move, emit_group_load, emit_group_store,
1979         expand_assignment, store_constructor, store_field,
1980         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1981         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
1982         invert_truthvalue, optimize_bit_field_compare,
1983         decode_field_reference, all_ones_mask_p, constant_boolean_node,
1984         fold_div_compare, fold, fold_read_from_constant_string,
1985         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
1986         * function.c (assign_parm_setup_block): Likewise.
1987         * stmt.c (shift_return_value, expand_end_case_type,
1988         estimate_case_costs): Likewise.
1989         * stor-layout.c (layout_type, initialize_sizetypes,
1990         set_min_and_max_values_for_integral_type): Likewise.
1991         * tree-chrec.c (chrec_fold_multiply_poly_poly,
1992         reset_evolution_in_loop): Likewise.
1993         * tree-chrec.h (build_polynomial_chrec): Likewise.
1994         * tree-complex.c (build_replicated_const): Likewise.
1995         * tree-eh.c (honor_protect_cleanup_actions,
1996         lower_try_finally_onedest, lower_try_finally_copy,
1997         lower_try_finally_switch): Likewise.
1998         * tree-mudflap.c (mf_build_string, mx_register_decls,
1999         mudflap_register_call, mudflap_enqueue_constant): Likewise.
2000         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
2001         * tree-pretty-print.c (dump_generic_node): Likewise.
2002         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
2003         Likewise.
2004         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2005         * tree-ssa-loop-niter.c (number_of_iterations_cond,
2006         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
2007         Likewise.
2008
2009         * config/alpha/alpha.c (alpha_initialize_trampoline,
2010         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
2011         * config/arm/arm.c (arm_get_cookie_size): Likewise.
2012         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2013         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2014         * config/i860/i860.c (i860_va_start): Likewise.
2015         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2016         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
2017         mips_gimplify_va_arg_expr): Likewise.
2018         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2019         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
2020         add_compiler_branch_island): Likewise.
2021         * config/s390/s390.c (s390_va_start): Likewise.
2022         * config/sh/sh.c (sh_va_start): Likewise.
2023         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2024         Likewise.
2025         * config/xtensa/xtensa.c (xtensa_va_start,
2026         xtensa_gimplify_va_arg_expr): Likewise.
2027
2028         * objc/objc-act.c (build_objc_string_object,
2029         build_objc_symtab_template, init_def_list, init_objc_symtab,
2030         init_module_descriptor, generate_static_references,
2031         build_selector_translation_table, get_proto_encoding,
2032         build_typed_selector_reference, build_selector_reference,
2033         build_next_objc_exception_stuff,
2034         build_method_prototype_list_template, generate_descriptor_table,
2035         generate_protocols, build_protocol_initializer,
2036         build_ivar_list_template, build_method_list_template,
2037         build_ivar_list_initializer, generate_ivars_list,
2038         generate_dispatch_table, generate_protocol_list,
2039         build_category_initializer, build_shared_structure_initializer,
2040         generate_shared_structures, handle_impent,
2041         generate_objc_image_info): Use build_int_cst.
2042
2043 2004-08-15  Ben Elliston  <bje@au.ibm.com>
2044
2045         * vec.h: Comment improvements.
2046
2047 2004-08-14  Roger Sayle  <roger@eyesopen.com>
2048
2049         * c-common.c (shorten_compare, pointer_int_sum,
2050         c_common_truthvalue_conversion, boolean_increment): Replace calls
2051         to build with calls to buildN.
2052         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
2053         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
2054         gimplify_switch_stmt): Likewise.
2055         * c-typeck.c (default_function_array_conversion,
2056         build_component_ref, build_array_ref, build_function_call,
2057         pointer_diff, build_unary_op, build_conditional_expr,
2058         build_compound_expr, build_modify_expr, c_finish_goto_label,
2059         c_finish_goto_ptr, c_finish_return, c_finish_loop,
2060         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
2061         build_binary_op): Likewise.
2062
2063 2004-08-15  Steven Bosscher  <stevenb@suse.de>
2064
2065         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
2066
2067 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2068
2069         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
2070         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
2071         * fixinc/fixincl.x: Rebuilt.
2072
2073 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
2074
2075         * config/mips/mips-protos.h (mips_symbolic_constant_p)
2076         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
2077         (mips_small_data_pattern_p): Declare.
2078         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
2079         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
2080         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
2081         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
2082         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
2083         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
2084         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
2085         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
2086         (pc_or_label_operand, call_insn_operand, move_operand)
2087         (consttable_operand, symbolic_operand, general_symbolic_operand)
2088         (global_got_operand, local_got_operand, stack_operand)
2089         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
2090         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
2091         (mips_small_data_pattern_p): Replace previous small_data_pattern
2092         predicate.  Turn into a bool () (rtx) function.
2093         * config/mips/predicates.md: New file.
2094         * config/mips/mips.md: Include it.  Use the target-independent
2095         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
2096         trap_comparison_operator and equality_op to equality_operator.
2097         Replace uses of small_int with the equivalent const_arith_operand.
2098         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
2099         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
2100         to fcc_reload_operand.
2101         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
2102
2103 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2104
2105         PR libstdc++/17005 partial fix.
2106         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
2107         except when generating ANSI/C89 code.
2108
2109 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
2110
2111         * c-common.c (shorten_compare): Use force_fit_type directly.
2112
2113 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
2114             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
2115             Dave Korn  <dk@artimi.com>
2116
2117         * doc/install.texi (Building): Avoid duplicate reference to GNU
2118         make requirement.
2119         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
2120
2121 2004-08-14  Richard Henderson  <rth@redhat.com>
2122
2123         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
2124         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
2125
2126 2004-08-13  Richard Henderson  <rth@redhat.com>
2127
2128         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
2129         for constant_call_address_operand.
2130         (call_value_pop_1, call_value_1): Likewise.
2131         (sibcall_value_1, call_value_1_rex64): Likewise.
2132
2133 2004-08-13  James E Wilson  <wilson@specifixinc.com>
2134
2135         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
2136         Correct mode from SFmode to DFmode.
2137
2138 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
2139
2140         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
2141         __cstring_object and __image_info sections with the no_dead_strip
2142         attribute.
2143
2144 2004-08-13  Roger Sayle  <roger@eyesopen.com>
2145             David Billinghurst  <David.Billinghurst@riotinto.com>
2146
2147         PR libgfortran/15930
2148         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
2149         * fixinc/fixincl.x: Regenerate.
2150         * fixinc/tests/base/internal/math_core.h: New file.
2151
2152 2004-08-13  Richard Henderson  <rth@redhat.com>
2153
2154         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
2155         (dbxout_function_end): Remove ifdefs for it.
2156         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
2157
2158 2004-08-13  Richard Henderson  <rth@redhat.com>
2159
2160         * Makefile.in (insn-preds.o): Depend on TREE_H.
2161         * genpreds.c (write_insn_preds_c): Include tree.h.
2162         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
2163         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
2164         const48_operand, and_operand, or_operand, mode_width_operand,
2165         mode_mask_operand, mul8_operand, const0_operand,
2166         hard_fp_register_operand, hard_int_register_operand,
2167         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
2168         samegp_function_operand, direct_call_operand, small_symbolic_operand,
2169         global_symbolic_operand, call_operand, symbolic_operand,
2170         dtp16_symbolic_operand, dtp32_symbolic_operand,
2171         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
2172         gottp_symbolic_operand, alpha_comparison_operator,
2173         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
2174         signed_comparison_operator, alpha_fp_comparison_operator,
2175         divmod_operator, fix_operator, aligned_memory_operand,
2176         unaligned_memory_operand, reg_or_unaligned_mem_operand,
2177         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
2178         reg_no_subreg_operand, addition_operation): Move to predicates.md.
2179         (reg_or_const_int_operand): Remove.  Replace all users with
2180         reg_or_cint_operand.
2181         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
2182         (resolve_reload_operand): Split out of aligned_memory_operand.
2183         * config/alpha/alpha-protos.h: Update for exports.
2184         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
2185         * config/alpha/alpha.md: Include predicates.md.
2186         * config/alpha/predicates.md: New file.
2187
2188 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
2189
2190         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
2191         fields with a pointer to the instruction definition.
2192         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
2193         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
2194         (write_attr_case, write_const_num_delay_slots): Update accordingly.
2195         (write_attr_case, write_const_num_delay_slots): Write the name of
2196         an insn next to its case statement.
2197         * genoutput.c (data): Add a filename field.
2198         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
2199         (output_insn_data): Print the location of each insn definition.
2200         * genrecog.c (write_action): Print the name of an insn above
2201         the statement that returns its code.
2202
2203 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
2204
2205         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
2206         * config/libgloss.h: Likewise.
2207         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
2208         * c4x/c4x-modes.def: Likewise.
2209         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
2210         (c4x_rptb_nop_p): Likewise.
2211         (c4x_rptb_valid_p): Likewise.
2212         (c4x_rptb_insert): Likewise.
2213         (c4x_address_conflict): Likewise.
2214         * config/c4x/c4x.md: Likewise.
2215         * config/frv/frv.md: Likewise.
2216         * config/i386/athlon.md: Likewise.
2217         * config/i386/i386.md: Likewise.
2218         * config/i386/predicates.md: Likewise.
2219         * config/ia64/ia64.c: Likewise.
2220         * config/ia64/itanium1.md: Likewise.
2221         * config/ia64/itanium2.md: Likewise.
2222         * config/iq2000/iq2000.md: Likewise.
2223         * config/mcore/mcore.c: Likewise.
2224         * config/mips/mips.c: Likewise.
2225         * config/mips/r3900.h: Likewise.
2226         * config/mips/sb1.md: Likewise.
2227         * config/pa/milli64.S: Likewise.
2228         * config/pa/pa.c: Likewise.
2229         * config/pa/pa.h: Likewise.
2230         * config/rs6000/8540.md: Likewise.
2231
2232 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
2233
2234         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
2235
2236 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
2237
2238         * sh.md (cbranch define_delay) Use cond_delay_slot for
2239         non-anulled condition too.
2240
2241 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
2242
2243         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
2244         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
2245         any_parallel_operand, lmw_operation, stmw_operation,
2246         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
2247         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
2248         any_parallel_operand.
2249         (return_and_restore_fpregs_{si,di}): Same.
2250
2251 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
2252
2253         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
2254         if pred->singleton != PARALLEL, issue a warning and pretend it was.
2255         Also issue a warning for any predicate we don't know about.
2256
2257 2004-08-12  Richard Henderson  <rth@redhat.com>
2258
2259         * config/i386/i386.c (internal_label_prefix): Export.
2260         (internal_label_prefix_len, struct ix86_address,
2261         ix86_decompose_address, maybe_get_pool_constant,
2262         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
2263         memory_address_length): Export.
2264         (any_fp_register_operand, fp_register_operand,
2265         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
2266         x86_64_general_operand, x86_64_szext_general_operand,
2267         x86_64_nonmemory_operand, x86_64_movabs_operand,
2268         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
2269         x86_64_zext_immediate_operand, const_int_1_31_operand,
2270         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
2271         tls_symbolic_operand, global_dynamic_symbolic_operand,
2272         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
2273         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
2274         constant_call_address_operand, const0_operand, const1_operand,
2275         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
2276         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
2277         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
2278         general_no_elim_operand, nonmemory_no_elim_operand,
2279         index_register_operand, q_regs_operand, flags_reg_operand,
2280         non_q_regs_operand, zero_extended_scalar_load_operand,
2281         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
2282         ix86_comparison_operator, ix86_carry_flag_operator,
2283         fcmov_comparison_operator, promotable_binary_operator,
2284         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
2285         mult_operator, div_operator, arith_or_logical_operator,
2286         memory_displacement_operand, cmpsi_operand, long_memory_operand,
2287         aligned_operand): Move to predicates.md as define_predicates.
2288         (tls_symbolic_operand_1): Remove.
2289         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
2290         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
2291         (legitimize_address): Merge tls_symbolic_operand contents.
2292         (ix86_expand_move): Likewise.
2293         * config/i386/i386-protos.h: Update for exports.
2294         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
2295         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
2296         * config/i386/i386.md: Include predicates.md.
2297         * config/i386/predicates.md: New file.
2298
2299 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
2300
2301         PR c++/16924
2302         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
2303         SYMBOL_REF_DECL.
2304         (i386_pe_mark_dllimport): Likewise.
2305         (i386_pe_encode_section_info): Likewise, when overriding
2306         dllimport attribute.
2307
2308 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
2309
2310         * configure.ac: When testing for flex, nm, ar, and bison, check
2311         that they will actually be built.
2312         * configure: Regenerate.
2313
2314 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
2315
2316         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
2317         (MOVE_MAX_PIECES): Define.
2318
2319 2004-08-12  Devang patel  <dpatel@apple.com>
2320
2321         * dbxout.c (dbxout_begin_prologue): New function.
2322         (dbx_debug_hooks): Use new begin prologue hook.
2323         (dbxout_function_end): Emit N_ENSYM.
2324         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
2325
2326 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
2327
2328         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
2329         argument is float*.
2330
2331         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
2332         for vec_dss.
2333
2334         * doc/extend.texi (AltiVec builtins): Fix description for recent
2335         changes.  Update operation list to match current support.
2336
2337 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
2338
2339         * config/s390/s390.c (struct s390_frame_layout): New struct as element
2340         of struct machine_function.
2341         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
2342         changed all uses.
2343         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
2344         changed all uses.
2345         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
2346         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
2347         (s390_frame_area, s390_register_info): New functions.
2348         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
2349         for base register.
2350         (s390_return_addr_rtx, s390_return_address_offset)
2351         (s390_va_start, s390_gimplify_va_arg)
2352         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
2353         layouts.
2354         (s390_frame_info): Functionality partly moved to s390_register_info.
2355         Made adaptions for new stack layout.
2356         (save_gprs, restore_gprs): Changed meaning of second parameter and
2357         adapted all callers.
2358
2359         * config/s390/s390.h (s390_backchain_string): New global variable.
2360         (MASK_BACKCHAIN): Removed definition.
2361         (TARGET_BACKCHAIN): Changed check.
2362         (TARGET_KERNEL_BACKCHAIN): New macro.
2363         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
2364         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
2365         "kernel-backchain".
2366         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
2367
2368         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
2369         as condition.  Adjusted for new stack layout.
2370
2371         * doc/invoke.texi: Added documentation for new option
2372         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
2373         "-mno-backchain".
2374
2375 2004-08-12  Paul Brook  <paul@codesourcery.com>
2376
2377         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
2378         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
2379
2380 2004-08-12  David Daney  <ddaney@avtrex.com>
2381
2382         * java/gcj.texi:  Add subsection on signal usage.
2383
2384 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
2385
2386         * expr.c (move_by_pieces): Set alignment for move to minimum of
2387         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
2388         alignment, but not less than the original alignment.
2389         (move_by_pieces_ninsns): Same.
2390         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
2391         (store_by_pieces_1): Same.
2392
2393 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
2394
2395         PR tree-optimization/16867
2396         * tree.c (is_global_var): New function.
2397         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
2398         Call is_global_var.
2399         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
2400         Update all users.
2401         (is_global_var): Declare.
2402         * tree-dfa.c (dump_variable): Display global and addressable
2403         attributes.
2404         (add_referenced_var): Clarify documentation when marking
2405         variables call-clobbered.
2406         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
2407         instead of needs_to_live_in_memory.
2408         (mark_call_clobbered): If the variable is a tag, mark it
2409         DECL_EXTERNAL.
2410         * tree-gimple.c (is_gimple_reg): Don't check for
2411         TREE_ADDRESSABLE.
2412         (is_gimple_non_addressable): Likewise.
2413         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
2414         needs to be marked call-clobbered.
2415         (setup_pointers_and_addressables): Call is_global_var instead
2416         of needs_to_live_in_memory.
2417         * tree-ssa-dce.c (need_to_preserve_store): Remove.
2418         Update all users with is_global_var.
2419         (mark_stmt_if_obviously_necessary): Fix processing of aliased
2420         stores.  Don't check the virtual definitions.  Rather, check
2421         whether the store is going into global memory.
2422         (find_obviously_necessary_stmts): Get the symbol from the PHI
2423         result.
2424         * tree-ssa-operands.c (get_call_expr_operands): Do not add
2425         clobbering may-defs if the call does not have side effects.
2426
2427 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
2428
2429         PR c++/16276
2430         * output.h (default_function_rodata_section,
2431         default_no_function_rodata_section): New prototypes.
2432         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
2433         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
2434         (TARGET_ASM_OUT): Add it.
2435         * varasm.c (default_function_rodata_section,
2436         default_no_function_rodata_section): New functions.
2437         * final.c (final_scan_insn): Call
2438         targetm.asm_out.function_rodata_section instead of
2439         readonly_data_section.
2440         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
2441         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2442         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2443         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2444         Likewise.
2445         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2446         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2447         Likewise.
2448         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2449         Likewise.
2450         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2451         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2452         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
2453
2454 2004-08-12  Paul Brook  <paul@codesourcery.com>
2455
2456         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
2457         frame info.
2458         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
2459         DWARF2_UNWIND_INFO.
2460
2461 2004-08-12  Ben Elliston  <bje@au.ibm.com>
2462
2463         PR target/16286
2464         * config/rs6000/altivec.h: Change vector to __vector throughout.
2465         (Except for the `vector' macro itself).
2466
2467 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
2468
2469         * genpreds.c: Add capability to generate predicate bodies as
2470         well as function prototypes.  Write function prototypes for
2471         the generic predicates too.
2472         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
2473         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
2474         (write_match_code, write_predicate_expr, write_one_predicate_function)
2475         (parse_option): New functions.
2476         (output_predicate_decls): Delete.
2477         (main): Read the machine description, process DEFINE_PREDICATE or
2478         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
2479         as appropriate.
2480
2481         * genrecog.c (struct decision_test): Replace index with
2482         struct pred_data pointer.
2483         (next_index): Remove, unused.
2484         (pred_table, preds, special_mode_pred_table): Delete.
2485         (compute_predicate_codes, process_define_predicate): New functions.
2486         (validate_pattern, add_to_sequence, write_switch): Update for
2487         new data structures.
2488         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
2489         Check both error_count and have_error.
2490
2491         * gensupport.c (in_fname, first_predicate): New globals.
2492         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
2493         (predicate_table, last_predicate, old_pred_table)
2494         (old_special_pred_table): New statics.
2495         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
2496         (add_predicate, init_predicate_table): New functions.
2497         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
2498         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
2499         it or max_include_len.  Call init_predicate_table.
2500         (read_rtx): Run the predicate queue after the attribute queue
2501         but before all the others.
2502         * gensupport.h (in_fname, struct pred_data, first_predicate)
2503         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
2504         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
2505         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
2506         * dummy-conditions.c: Don't include bconfig.h, system.h,
2507         coretypes.h, tm.h, or system.h.  Do include stddef.h.
2508         Duplicate declaration of struct c_test from gensupport.h.
2509
2510         * Makefile.in (OBJS-common): Add insn-preds.o.
2511         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
2512         (insn-preds.c, insn-preds.o): New rules.
2513         (s-preds): Also generate insn-preds.c.
2514         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
2515         Update dependencies.
2516         (print-rtl.o, print-rtl1.o): Correct dependencies.
2517
2518         * recog.h: Delete prototypes of predicate functions.
2519
2520         * doc/md.texi (Predicates): New section with complete
2521         documentation of operand/operator predicates.  Remove some
2522         incomplete documentation of predicates from other places.
2523         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
2524         PREDICATE_CODES; indicate that both are deprecated in favor
2525         of define_predicate/define_special_predicate.
2526
2527         * config/ia64/ia64.c: All predicate function definitions moved
2528         to ia64.md, except
2529         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
2530         (ia64_expand_load_address, ia64_expand_move):
2531         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
2532
2533         * config/ia64/ia64.md: All predicates now defined here.
2534         (symbolic_operand): Is now a special predicate.
2535
2536         * config/ia64/ia64.h: Declare ia64_section_threshold.
2537         (PREDICATE_CODES): Delete.
2538
2539 2004-08-12  Richard Henderson  <rth@redhat.com>
2540
2541         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
2542         * c-semantics.c (add_stmt): Set it.
2543         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
2544         before instantiating a variable sized type.
2545
2546 2004-08-12  Richard Henderson  <rth@redhat.com>
2547
2548         * stor-layout.c (round_up, round_down): Move ...
2549         * fold-const.c (round_up, round_down): ... here.  Use
2550         multiple_of_p to avoid any arithmetic at all.
2551
2552 2004-08-12  Richard Henderson  <rth@redhat.com>
2553
2554         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
2555         (gimplify_init_ctor_preeval_1): New.
2556         (gimplify_init_ctor_preeval): New.
2557         (gimplify_init_ctor_eval): New.
2558         (gimplify_init_constructor): Use them.  Always gimplify the LHS
2559         object first.
2560
2561 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
2562
2563         (This patch is part of merge of objc-improvements-branch
2564         into mainline.)
2565
2566         * doc/frontends.texi: Mention Objective-C++ in addition to
2567         Objective-C.
2568         * doc/install.texi: Add 'obj-c++' to list of configurable
2569         languages.
2570         * doc/invoke.texi: Rename Objective-C option headings to
2571         indicate they also apply to Objective-C++.  List file
2572         extensions for Objective-C++ sources.  Mention that
2573         ObjC and ObjC++ compilations may also use C and C++ options,
2574         respectively.  Point users to doc/standards.texi for
2575         further info on ObjC and ObjC++.
2576         * doc/sourcebuild.texi: Mention the objcp/ directory and
2577         the Objective-C++ sources it contains.
2578         * doc/standards.texi: Update link to Apple ObjC site;
2579         add link to gcc readings.html WWW doc.
2580
2581 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
2582
2583         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
2584         and 2004-07-14 changes.
2585
2586 2004-08-12  Paul Brook  <paul@codesourcery.com>
2587
2588         * doc/invoke.texi: Fix typo.
2589
2590 2004-08-11 Devang Patel  <dpatel@apple.com>
2591
2592         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
2593         and -no_dead_strip_inits_and_terms.
2594         (LINK_SPEC): Same.
2595         * doc/invoke.texi (Darwin Options): Document -dead_strip and
2596         -no_dead_strip_inits_and_terms.
2597
2598 2004-08-11  Paul Brook  <paul@codesourcery.com>
2599
2600         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
2601         (arm_load_pic_register): ... to this.
2602         * config/arm/arm.c (arm_finalize_pic): Rename ...
2603         (arm_load_pic_register): ... to this.  Always output insns at the
2604         current location.  Load via low reg in thumb mode.
2605         (arm_expand_prologue): Call arm_load_pic_register.
2606         (thumb_expand_prologue): Ditto.
2607         * config/arm/arm.h (FINALIZE_PIC): Remove.
2608         * config/arm/arm.md (builtin_setjmp_receiver): Call
2609         arm_load_pic_register.
2610
2611 2004-08-11  Paul Brook  <paul@codesourcery.com>
2612
2613         * arm.c (thumb_force_lr_save): Add prototype.
2614         (thumb_compute_save_reg_mask): New function.
2615         (thumb_find_work_register): New function.
2616         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
2617         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
2618         Don't clobber r3 when removing pretend args.
2619         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
2620         (thumb_output_function_prologue): Use new functions.
2621         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
2622         * arm.h (THUMB_REG_PUSHED_P): Remove.
2623
2624 2004-08-11  James E Wilson  <wilson@specifixinc.com>
2625
2626         PR rtl-optimization/16490
2627         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
2628         global_live_at_end for new basic block if already set for other blocks.
2629
2630 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
2631
2632         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
2633
2634         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
2635         (mfcr rlwinm rlwinm patterns): Set length to 12.
2636
2637 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
2638
2639         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
2640         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
2641         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
2642         (start_ssa_stmt_operands): Delete.
2643         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
2644         struct stmt_operands_d.
2645         (build_ssa_operands): New extern entry point.
2646         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
2647         building code, replace with create_ssa_artficial_load_stmt().
2648         * tree-ssa-operands.c (struct voperands_d): Delete.
2649         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
2650         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
2651         (free_uses, free_defs, free_vuses, free_v_may_defs,
2652         free_v_must_defs): Remove dealloc parameter.
2653         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
2654         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
2655         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
2656         vector comparisons, ssa_name reuse, and allocations here.
2657         (verify_start_operands): Delete.
2658         (finalize_ssa_stmt_operands): Set new operands by calling finalize
2659         routines.
2660         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
2661         (append_def, append_usei): Simplify to simple accumulation.
2662         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
2663         duplicates and simple accumulation.
2664         (free_ssa_operands): Free vectors in a stmt_operand structure.
2665         (build_ssa_operands): New. Create a new stmt_operand structure from
2666         a stmt and an old set of stmt_operands.
2667         (get_stmt_operands): Simplify and call build_ssa_operands.
2668         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
2669         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
2670         add_call_read_ops): Don't pass prev_vops around anymore.
2671         (note_addressable): Return if no stmt annotation.
2672         (copy_virtual_operands): Access v_may_def operands through a struct.
2673         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
2674         hash tables without treating the stmt as a real stmt.
2675         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
2676         v_may_def def and use through a struct instead of 2 array elements.
2677         (struct v_may_def_optype_d): Use v_may_def_operand_type.
2678         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
2679
2680 2004-08-11  Nick Clifton  <nickc@redhat.com>
2681
2682         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
2683         this funciton's behaviour.  Return true when the current function
2684         has a section attribute and -mlong-calls is in effect.
2685         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
2686         short-call marker when -mlong-calls is in effect and the function
2687         has a section attribute.
2688
2689 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
2690
2691         * stmt.c (expand_return): If asked to return the RESULT_DECL,
2692         just call expand_value_return on result_rtl.
2693
2694 2004-08-10  Richard Henderson  <rth@redhat.com>
2695
2696         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
2697         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
2698         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
2699         (add_location_or_const_value_attribute): ... not here.  Use
2700         loc_descriptor_from_tree if possible.
2701         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
2702         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
2703         values specially.
2704         (loc_descriptor_from_tree): New.  Update callers.
2705         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
2706         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
2707         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
2708         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
2709         and BUILT_IN_STACK_RESTORE.
2710         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
2711         * stmt.c (expand_stack_alloc): Remove.
2712         * tree-mudflap.c (mx_register_decls): Don't look for
2713         BUILT_IN_STACK_ALLOC.
2714         * tree-nested.c (convert_local_reference): Likewise.
2715         * tree.h (DECL_VALUE_EXPR): New.
2716
2717 2004-08-10  Richard Henderson  <rth@redhat.com>
2718
2719         * stor-layout.c (round_up): Check for 0/1 before dividing.
2720         (round_down): Likewise.
2721
2722         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
2723
2724 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
2725
2726         * config.gcc (arm*-*-eabi*): New target.
2727         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
2728         (TARGET_LIB_INT_CMP_BIASED): Likewise.
2729         * expmed.c (expand_divmod): Try a two-valued divmod function as a
2730         last resort.
2731         * gthr.h: Remove bogus tokens at end of #pragma.
2732         * optabs.c (expand_twoval_binop_libfunc): New function.
2733         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
2734         (prepare_float_lib_cmp): Try reversing the condition.
2735         (debug_optab_libfuncs): New function.
2736         * optabs.h (expand_twoval_binop_libfunc): Declare.
2737         * config/arm/arm.c (arm_init_libfuncs): New function.
2738         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
2739         (TARGET_INIT_LIBFUNCS): Define it.
2740         * config/arm/arm.h (TARGET_BPABI): New macro.
2741         * config/arm/arm-protos.h
2742         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
2743         * config/arm/bpabi.S: New file.
2744         * config/arm/bpabi.c: Likewise.
2745         * config/arm/bpabi.h: Likewise.
2746         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
2747         (__aeabi_drsub): Likewise.
2748         (__aeabi_dsub): Likewise.
2749         (__aeabi_dadd): Likewise.
2750         (__aeabi_ui2d): Likewise.
2751         (__aeabi_i2d): Likewise.
2752         (__aeabi_f2d): Likewise.
2753         (__aeabi_dmul): Likewise.
2754         (__aeabi_ddiv): Likewise.
2755         (__aeabi_cdrcmple): Likewise.
2756         (__aeabi_cdcmpeq): Likewise.
2757         (__aeabi_cdcmple): Likewise.
2758         (__aeabi_dcmpeq): Likewise.
2759         (__aeabi_dcmplt): Likewise.
2760         (__aeabi_dcmple): Likewise.
2761         (__aeabi_dcmpge): Likewise.
2762         (__aeabi_dcmpgt): Likewise.
2763         (__aeabi_dcmpun): Likewise.
2764         (__aeabi_d2iz): Likewise.
2765         (__aeabi_d2uiz): Likewise.
2766         (__aeabi_d2f): Likewise.
2767         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
2768         (__aeabi_frsub): Likewise.
2769         (__aeabi_fsub): Likewise.
2770         (__aeabi_fadd): Likewise.
2771         (__aeabi_ui2f): Likewise.
2772         (__aeabi_i2f): Likewise.
2773         (__aeabi_fmul): Likewise.
2774         (__aeabi_fdiv): Likewise.
2775         (__aeabi_cfrcmple): Likewise.
2776         (__aeabi_cfcmpeq): Likewise.
2777         (__aeabi_cfcmple): Likewise.
2778         (__aeabi_fcmpeq): Likewise.
2779         (__aeabi_fcmplt): Likewise.
2780         (__aeabi_fcmple): Likewise.
2781         (__aeabi_fcmpge): Likewise.
2782         (__aeabi_fcmpgt): Likewise.
2783         (__aeabi_fcmpun): Likewise.
2784         (__aeabi_f2iz): Likewise.
2785         (__aeabi_f2uiz): Likewise.
2786         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
2787         (__aeabi_uidivmod): New function or alias.
2788         (__aeabi_idivmod): Likewise.
2789         (__aeabi_idiv0): Likewise.
2790         (__aeabi_ldiv0): Likewise.
2791         (__aeabi_llsr): Likewise.
2792         (__aeabi_lasr): Likewise.
2793         (__aeabi_llsl): Likewise.
2794         (bpabi.S): Include it.
2795         * config/arm/libgcc-bpabi.ver: New file.
2796         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
2797         (LINK_SPEC): Remove.
2798         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
2799         __aeabi_ulcmp.
2800         * config/arm/t-bpabi: New file.
2801         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
2802         (TARGET_LIB_INT_CMP_BIASED): Likewise.
2803
2804 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
2805
2806         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
2807         * config/rs6000/rs6000.md (clrmemsi): New pattern.
2808         * config/rs6000/rs6000.c (expand_block_clear): New function.
2809         (expand_block_move): Convert alignment to bits.  Use SImode and
2810         HImode for unaligned addresses if not STRICT_ALIGNMENT.
2811
2812 2004-08-10  Caroline Tice  <ctice@apple.com>
2813
2814         * varasm.c (unlikely_section_label): New global variable.
2815         (unlikely_text_section_name): New global variable.
2816         (text_section):  Remove alignment statement.
2817         (unlikely_text_section): Remove alignment statement; use
2818         unlikely_section_label rather than hard-coded string.
2819         (assemble_start_function): Initialize unlikely_section_label and
2820         unlikely_text_section_name;  make sure cold section is properly
2821         aligned at start of function; output unlikely_section_label if
2822         appropriate.
2823
2824 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
2825
2826         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
2827         * config/s390/s390.c (s390_canonicalize_comparison): New function.
2828         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
2829         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
2830         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
2831         ("*tmqi_mem"): Remove SUBREG from pattern.
2832         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
2833         ("*andsi3_cconly"): Likewise.
2834
2835 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
2836
2837         PR target/16909
2838         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
2839
2840 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
2841
2842         * doc/sourcebuild.texi (compat testing): Document available test
2843         framework commands.  Use the preferred spelling of DejaGnu.
2844
2845 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
2846
2847         * lambda.h: Add matrix type, and prototypes for remainder of
2848         matrix and vector functions.
2849         (lambda_vector_mult_const): New function.
2850         (lambda_vector_negate): Ditto.
2851         (lambda_vector_add): Ditto.
2852         (lambda_vector_add_mc): Ditto.
2853         (lambda_vector_copy): Ditto.
2854         (lambda_vector_zerop): Ditto.
2855         (lambda_vector_equal): Ditto.
2856         (lambda_vector_min_nz): Ditto.
2857         (lambda_vector_first_nz): Ditto.
2858         (lambda_vector_matrix_mult): Ditto.
2859         * lambda-mat.c: New file.
2860         * Makefile.in (lambda-mat.o): New.
2861
2862 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
2863
2864         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
2865         after linking stmt into the program.
2866         (bsi_remove): Don't call modify_stmt.
2867         * tree-complex.c (update_complex_assignment,
2868         expand_complex_comparison): Call modify_stmt after changing the stmt.
2869         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
2870         removing the stmt.
2871         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
2872         the stmt, and only if needed.
2873         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
2874         expression.
2875         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
2876         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
2877         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
2878         (eliminate_redundant_computations): Don't pass an annotation. Call
2879         modify_stmt rather than setting the annotation directly.
2880         (record_equivalences_from_stmt): Remove unused local 'j'.
2881         (cprop_operand): Take a stmt rather than an annotation as a parameter.
2882         Call modify_stmt.
2883         (cprop_into_stmt): Pass stmt rather than annotation.
2884         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
2885         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
2886         modify_stmt.
2887         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
2888
2889 2004-08-10  Jason Merrill  <jason@redhat.com>
2890
2891         PR middle-end/16948
2892         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
2893         the RESULT_DECL.
2894
2895 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
2896
2897         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
2898         hash function.
2899
2900 2004-08-10  Roger Sayle  <roger@eyesopen.com>
2901
2902         * config/mips/mips.md: New reciprocal square root patterns that
2903         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
2904
2905 2004-08-10  Paul Brook  <paul@codesourcery.com>
2906
2907         * config/arm/arm-protos.h (arm_set_return_address,
2908         thumb_set_return_address): Add prototypes.
2909         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
2910         * config/arm/arm.c (arm_compute_func_type,
2911         use_return_insn, arm_compute_save_reg0_reg12_mask,
2912         arm_compute_save_reg_mask, arm_output_function_prologue,
2913         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
2914         current_function_calls_eh_return.
2915         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
2916         old eh code.
2917         (arm_set_return_address, thumb_set_return_address): New functions.
2918         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
2919         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
2920         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
2921         (epilogue): Use the stackadj register.
2922         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
2923
2924 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
2925
2926         PR target/3144
2927         * expr.c (move_by_pieces_ninsns): Add max_size argument.
2928         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
2929         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
2930         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
2931         but using MOVE_RATIO.
2932         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
2933         (can_store_by_pieces): Change max_size type to unsigned int.
2934         (store_by_pieces_1): Likewise.  Pass max_size to
2935         move_by_pieces_ninsns.
2936         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
2937         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
2938         to move_by_pieces_ninsns.
2939         (STORE_BY_PIECES_P): Define.
2940         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
2941         to move_by_pieces_ninsns.
2942         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
2943
2944         * config/i386/i386.h (CLEAR_RATIO): Define.
2945
2946 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
2947
2948         * expr.c (expand_expr_real_1): Add back code that was not dead.
2949
2950 2004-08-09  Andrew Pinski  <apinski@apple.com>
2951
2952         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
2953         which is found to be compatible before returning the aliasing set.
2954
2955 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
2956
2957         * ggc-zone.c (struct alloc_zone): Add statistics counters.
2958         (always_collect): New flag.
2959         (ggc_alloc_zone_1): Update statistics support.  Don't include
2960         overhead in allocated counter.
2961         (sweep_pages): Update allocated counter for large pages.  Don'y
2962         include overhead.
2963         (ggc_collect_1): Always collect.
2964         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
2965         whether to collect.
2966         (SCALE, LABEL): New macros.
2967         (ggc_print_statistics): Add statistics support.
2968
2969 2004-08-09  Roger Sayle  <roger@eyesopen.com>
2970
2971         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
2972         (init_expmed): Fix potential overrun problem with "all.reg".
2973         (expand_sdiv2_pow2): Add an alternate implementation for signed
2974         division, if the target provides a suitable conditional move insn.
2975
2976 2004-08-09  Paul Brook  <paul@codesourcery.com>
2977         Richard Henderson  <rth@redhat.com>
2978
2979         * unwind-dw2.c (uw_install_context_1): Update target saved stack
2980         pointer.
2981
2982 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
2983
2984         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
2985         Check DATA limit only if there's no AS limit.  Ignore insanely
2986         low DATA limits.
2987         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
2988         but take care that the AS limit isn't overrun.
2989         * doc/invoke.texi: Update documentation of min-heapsize parameter.
2990
2991 2004-08-09  Jeff Law  <law@redhat.com>
2992
2993         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
2994         (tree-ssa-threadupdate.o): Add dependencies.
2995         * tree-ssa-threadupdate.c: New file.
2996         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
2997         (rewrite_vars_out_of_ssa): Remove prototype.
2998         (cleanup_tree_cfg): Returns a bool.
2999         * tree.h (thread_through_all_blocks): Prototype.
3000         * tree-outof-ssa.c  (SSANORM_*): Move into here.
3001         (remove_ssa_form): Now static.
3002         (rewrite_vars_out_of_ssa): Kill.
3003         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
3004         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
3005         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
3006         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
3007         anything was changed.
3008         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
3009         from the PHI's annotation rather than the edge associated with
3010         the new argument.
3011         * tree-ssa-dom.c (redirection_edges): Kill.
3012         (redirect_edges_and_update_ssa_graph): Kill.
3013         (tree_ssa_dominator_optimize): Do not reset forwardable flag
3014         for blocks anymore.  Do not initialize redirection_edges.
3015         Call thread_through_all_blocks.  Simplify code for cleanup
3016         of the CFG and iterating.  No longer call cleanup_tree_cfg
3017         outside the iteration loop.
3018         (thread_across_edge): No longer mess with forwardable blocks.
3019
3020 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
3021
3022         * explow.c (memory_address): Use memory_address_p.
3023         * recog.c (general_operand): Likewise.
3024         * regrename.c: No need to define REG_OK_STRICT.
3025
3026 2004-08-09  Steven Bosscher  <stevenb@suse.de>
3027
3028         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
3029         New timers.
3030         * gcse.c: Include timevar.h.
3031         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
3032         and global_copy_prop_count.
3033         (local_const_prop_count, local_copy_prop_count): New static globals.
3034         (gcse_main): Set the right timevar for each pass.
3035         (cprop_jump): Increment global_const_prop_count when a constant is
3036         propagated.  Add "GLOBAL" to dump output.
3037         (cprop_insn): Increment global_const_prop_count when a constant is
3038         propagated, or global_copy_prop_count when a copy is propagated.
3039         (do_local_cprop): Likewise for local_const_prop_count and
3040         local_copy_prop_count.
3041         (one_cprop_pass): Initialize const/cprop counters to zero.
3042         Print out results of local and global const/cprop separately.
3043         (bypass_block): Break over-length line.
3044         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
3045         for bb-reorder.o and tracer.o.
3046
3047 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
3048
3049         * Makefile.in (GTFILES): Remove stmt.c
3050         (stmt.o): Do not depend on gt-stmt.h.
3051         * emit-rtl.c (emit_line_note): Do not call
3052         set_file_and_line_for_stmt.
3053         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
3054         do everything.
3055         * function.c (free_after_parsing): Do not free STMT field.
3056         (allocate_struct_function): Do not call init_stmt_for_function.
3057         (assign_stack_temp_for_type): Do not accept values of keep
3058         other than 0 or 1.
3059         (init_temp_slots): Do not initialize removed variables.
3060         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
3061         and X_VAR_TEMP_SLOT_LEVEL fields.
3062         * rtl.h (set_file_and_line_for_stmt): Remove.
3063         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
3064         struct stmt_status, cond_stack, case_stack, nesting_stack,
3065         nesting_depth, emit_locus, set_file_and_line_for_stmt,
3066         same_case_target_p, init_stmt_for_function, emit_nop,
3067         expand_start_cond, expand_start_elseif, expand_start_else,
3068         expand_elseif, expand_end_cond): Remove.
3069         (preserve_subexpressions_p): Remove references to CFUN->STMT.
3070         (expand_start_case, expand_end_case_type): Remove, merge into...
3071         (expand_case): ... this one, including other bits from
3072         expand_expr_real_1.  Inline same_case_target_p.  Turn members
3073         of CASE_STACK into local variables.
3074         (emit_case_bit_tests): Inline same_case_target_p.
3075         (add_case_node): Add HEAD argument, return new head of the list,
3076         do not handle default label here.
3077         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
3078         expand_start_elseif, current_nesting_level, expand_start_case,
3079         expand_end_case_type, expand_end_case, add_case_node,
3080         init_stmt_for_function, expand_elseif): Remove prototypes.
3081         (expand_case): Add prototype.
3082
3083 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
3084
3085         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
3086
3087 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
3088
3089         * expr.c (var_rtx): Remove.
3090         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
3091         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
3092         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
3093         Abort.
3094         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
3095         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
3096         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
3097
3098 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
3099         Ayal Zaks <zaks@il.ibm.com>
3100
3101         * common.opt (freschedule-modulo-scheduled-loops): New flag.
3102         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
3103         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
3104         when -freschedule-modulo-scheduled-loops flag is not specified.
3105         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
3106         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
3107         More accurate placing of insn in row of partial schedule.
3108         (ps_insn_find_column): New function.
3109         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
3110         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
3111         (schedule_region): Use sched_is_disabled_for_current_region_p.
3112         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
3113
3114 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
3115
3116         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
3117         change.
3118
3119 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
3120
3121         * config/i386/i386.c (ix86_expand_clrmem): Properly call
3122         gen_strset for 64bit target.
3123
3124 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
3125
3126         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
3127
3128 2004-08-07  Jason Merrill  <jason@redhat.com>
3129
3130         Make return in memory explicit.
3131         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
3132         (assign_parm_find_data_types): Remove code for old front end
3133         invisible reference handling.
3134         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
3135         (expand_function_end): Likewise.
3136         * gimplify.c (gimplify_return_expr): Handle a dereferenced
3137         RESULT_DECL.
3138         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
3139         (declare_return_variable): Handle DECL_BY_REFERENCE.
3140         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
3141         (cp_genericize_r): Use convert_from_reference.
3142         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
3143         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
3144
3145         * c-common.c (c_warn_unused_result): Check TREE_USED before
3146         warning about a CALL_EXPR with an unused value.
3147
3148 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
3149
3150         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
3151         to the compiler.  Use -fshort-wchar by default.
3152
3153 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
3154
3155         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
3156         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
3157         threshhold.
3158         * doc/invoke.texi (param): Document min-crossjump-insns.
3159
3160 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
3161
3162         PR c/13282
3163         * c.opt (Wmissing-field-initializers): New option.
3164         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
3165         * c-typeck.c (pop_init_level): Guard the missing field warning with
3166         warn_missing_field_initializers rather than extra_warnings.
3167         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
3168         some of the explanation from...
3169         (-Wextra): ...here.  Say that the missing field warning can be
3170         seperately controlled by -Wmissing-field-initializers.
3171
3172 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
3173
3174         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
3175         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
3176         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
3177         * tree.def (ENTRY_VALUE_EXPR): Remove.
3178
3179 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
3180
3181         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
3182         the places where it is actually needed.  Don't use repz; stosb
3183         for -Os with sufficiently small constant sizes.
3184         For sufficiently small repz; stos{l,q} repeat counts use a sequence
3185         of stos{l,q} instructions instead.
3186
3187 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3188
3189         PR tree-optimization/16807
3190         * loop-iv.c (dump_iv_info): Dump invariants correctly.
3191         (iv_subreg, iv_extend): Express value of invariant purely in
3192         base field.
3193
3194 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
3195
3196         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
3197         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
3198
3199 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
3200
3201         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
3202         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
3203         pre_dec_operand.
3204         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
3205         pattern until reload is finished to allow better code generation
3206         and split them completely into separate instrunctions.
3207         (*andsi3_split): New pattern.
3208
3209 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
3210
3211         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
3212         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
3213         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
3214         * tree.h (handle_dll_attribute): Declare.  Test
3215         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
3216         * c-common.h (c_determine_visibility): Declare.
3217         * c-common.c (c_determine_visibility): New function.
3218         * c-decl.c (finish_decl): Use it.
3219         (finish_function): Likewise.
3220         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
3221         zero, by default.  Use #if, not #ifdef, to test it.
3222         * config/arm/arm.c (arm_attribute_table): Use
3223         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
3224         #if.
3225         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
3226         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
3227         to 1.
3228         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
3229         * config/i386/i386.c (ix86_attribute_table): Use
3230         handle_dll_attribute for dllimport/dllexport.  Test
3231         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
3232         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
3233         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
3234         it to 1.
3235         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
3236         with #if.
3237         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
3238         it to 1.
3239         * doc/extend.texi (dllexport): Clarify and correct documentation.
3240         (dllimport): Likewise.
3241         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
3242         handle_dll_attribute.
3243
3244 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3245
3246         * tree-ssa-loop-manip.c: New file.
3247         * Makefile.in (tree-ssa-loop-manip.o): Add.
3248         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
3249         Declare.
3250         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
3251         form.
3252         (tree_ssa_loop_done): Verify loop closed ssa form.
3253         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
3254
3255 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3256
3257         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
3258         pa_asm_output_aligned_local): New functions.
3259         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
3260         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
3261         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
3262         pa_asm_output_aligned_common.
3263         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
3264         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
3265         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
3266         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
3267         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
3268         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
3269         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
3270         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
3271         common data.
3272
3273 2004-08-05  Andrew Pinski  <apinski@apple.com>
3274
3275         * objc/objc-act.c (build_objc_string_object): Mark the address
3276         expression as constant.
3277
3278 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
3279
3280         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
3281         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
3282         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
3283
3284 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
3285
3286         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
3287         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
3288         out, and associated obsolete comments.
3289
3290 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
3291
3292         * tree.h (force_fit_type): Return a tree, take three flags.
3293         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
3294         TREE_CONSTANT_OVERFLOW here.
3295         (int_const_binop, const_binop): Adjust.
3296         (size_int_type): Do sign extension here.
3297         (fold_convert_const, optimize_bit_field_compare,
3298         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
3299         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
3300         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
3301
3302 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3303
3304         PR tree-optimization/16864
3305         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
3306         for ssa names without default_def.
3307
3308 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
3309
3310         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
3311         frame pointer, restore eax with an ebp-relative address.
3312
3313 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
3314
3315         PR 14516
3316         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
3317         * c-common.h (make_rtl_for_local_static): Delete.
3318         * c-decl.c (shadow_tag_warned): Clean up comment.
3319         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
3320         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
3321         * c-semantics.c (make_rtl_for_local_static): Delete.
3322         * expr.c (init_block_move_fn): Use set_user_assembler_name.
3323         (init_block_clear_fn): Likewise.
3324         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
3325         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
3326         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
3327         * tree.h (make_decl_rtl): Remove second parameter.
3328         (set_user_assembler_name): New.
3329         * varasm.c (set_user_assembler_name): New.
3330         (make_decl_rtl): Remove second parameter.  Update callers in many
3331         files.
3332
3333 2004-08-05  Adam Nemet  <anemet@lnxw.com>
3334
3335         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
3336         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
3337         to LynxOS 4.0.
3338         * gthr-lynx.h: New file.
3339         * config/lynx-ng.h: Remove file.
3340         * config/lynx.h: Update to LynxOS 4.0.
3341         * config/t-lynx: New file.
3342         * config/i386/lynx-ng.h: Remove file.
3343         * config/i386/lynx.h: Update to LynxOS 4.0.
3344         * config/rs6000/lynxbase.h: Remove file.
3345         * config/rs6000/lynx.h: Update to LynxOS 4.0.
3346         * config/rs6000/t-lynx: New file.
3347         * doc/install.texi (Options specification): Remove reference to
3348         LynxOS from systems where --with-gnu-as makes a difference.
3349
3350 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
3351
3352         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
3353         __UINTMAX_TYPE__.
3354         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
3355         __INTMAX_MAX__.
3356         (c_cpp_builtins): Call it.
3357         * doc/cpp.texi: Update.
3358