OSDN Git Service

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