OSDN Git Service

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