OSDN Git Service

2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-04-08  Andrew Pinski  <pinskia@physics.uc.edu>
2
3         * config/darwin.c (darwin_encode_section_info): When the decl has
4         a DECL_INITIAL, it is only defined also when it is not a common.
5
6 2004-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7
8         * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
9         (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
10
11 2004-04-07  H.J. Lu  <hongjiu.lu@intel.com>
12
13         * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
14         global register variables.
15
16 2004-04-07  Joseph S. Myers  <jsm@polyomino.org.uk>
17
18         * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
19         rpc_xdr_lvalue_cast_b): New fixes.
20         * fixinc/fixincl.x: Regenerate.
21         * fixinc/tests/base/rpc/xdr.h: Add new tests.
22
23 2004-04-07  David Edelsohn  <edelsohn@gnu.org>
24
25         * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
26         to power4 and power5 entries.
27
28 2004-04-06  Geoffrey Keating  <geoffk@apple.com>
29
30         * c-common.h (pending_lang_change): Mark for PCH.
31
32 2004-04-07  Caroline Tice  <ctice@apple.com>
33
34         * gcc.c (main): Move 'break' in main loops (on an error)
35         to wait until error processing has occurred.
36         
37 2004-04-06  Nathanael Nerode  <neroden@gcc.gnu.org>
38
39         * config.gcc: Stop changing enable_threads midstream.
40         Replace uses of enable_threads_flag with enable_threads.
41         * configure.ac: Replace uses of enable_threads_flag with
42         enable_threads.  Improve autoconf quotation in one place.
43         * configure: Regenerate.
44
45 2004-04-06  Uros Bizjak  <uros@kss-loka.si>
46
47         * builtins.c: Implement support for sincos function.
48         (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
49         BUILT_IN_COS{,F,L}.
50         (expand_builtin_mathfn_3): New function.
51         (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
52         BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
53         flag_unsafe_math_optimization is set.
54
55         * optabs.h (enum optab_index): Add new OTI_sincos.
56         (sincos_optab): Define corresponding macro.
57
58         * optabs.c (init_optabs): Initialize sincos_optab.
59         (expand_twoval_unop): New function.
60
61         * genopinit.c (optabs): Implement sincos_optab using sincos?f3
62         patterns.
63
64         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
65         and UNSPEC_SINCOS_SIN.
66
67         * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
68         sincosxf3): New patterns to implement sincos, sincosf and sincosl
69         built-ins as inline x87 intrinsics. Define splits for
70         sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
71         cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
72         sincos patterns.
73         (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
74         (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
75
76         (UNSPEC_SINCOS_SIN, UNPEC_SINCOS_COS): New unspecs to represent
77         x87's unspec insn.
78
79 2004-04-06  Devang Patel  <dpatel@apple.com>
80
81         PR 14467
82         * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
83         
84 2004-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
85
86         * doc/install.texi: Update HP-UX 11 installation procedure.
87
88 2004-04-06  Paul Brook  <paul@codesourcery.com>
89
90         * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
91
92 2004-04-05  Kaz Kojima  <kkojima@gcc.gnu.org>
93
94         * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
95         when the TLS address is generated by a function call.
96         * config/sh/sh.md (tls_global_dynamic): Use a call expression.
97         (tls_local_dynamic): Likewise.
98
99 2004-04-05  Andrew Pinski  <pinskia@physics.uc.edu>
100
101         * tree.c (reconstruct_complex_type): Use TYPE_READONLY
102         and TYPE_VOLATILE.
103
104 2004-04-05  Caroline Tice  <ctice@apple.com>
105
106         * gcc.c (combine_flag): New global variable, for new driver option.
107         (struct compiler): Add two new fields, to be used when
108         combining multiple input files in a single pass (IMA).
109         (default_compilers):  Add values for the new fields to all 
110         compiler entries. Modify the "@c" compiler entry for doing IMA 
111         properly with "-save-temps" and the "combine" flag.
112         (option_map):  Add new driver option, "--combine", to tell driver
113         to pass multiple input files to compiler at one time.
114         (have_o_argbuf_index): New global variable.
115         (store_arg): Modify to assign value to have_o_argbuf_index.
116         (struct infile):  Add three new fields, to help with IMA.
117         (display_help): Add help for new "combine" option.
118         (process_command): Remove local variable have_o; add code to check
119         for new "combine" option; remove assignment to combine_inputs.
120         (do_spec_1):  Modify to deal with IMA better.
121         (main): Make variable 'lang_n_infiles' local to entire function
122         rather than to a single block.  Use flag combine_flag to 
123         determine whether to do IMA or not; Modify loop initializing 
124         infiles to deal properly with linker files.
125         Add code for doing preprocessing in presence of
126         IMA with "-save-temps" flag.  Modify "main" loop to handle
127         multiple input files, in multiple languages, with or without
128         preprocessing,  gracefully.
129         * toplev.c (set_src_pwd): Modify to not complain if attempting to
130         re-set it to same directory it's previously been set to (avoid
131         irritating, meaningless warning messages when doing IMA with 
132         save-temps).
133         * doc/invoke.texi: Add "-combine" to list of Overall Options;
134         remove documentation about IMA that is no longer accurate; Add
135         documentation explaining what "-combine" does.
136         * ada/lang-specs.h: Add initialization values for new fields in
137         "struct compiler".
138         * cp/lang-specs.h: Likewise.
139         * f/lang-specs.h: Likewise.
140         * java/lang-specs.h: Likewise.
141         * objc/lang-specs.h: Likewise.
142         * treelang/lang-specs.h: Likewise.
143
144 2004-04-05  David Edelsohn
145
146         * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
147         symbol handling.
148
149 2004-04-05  Jakub Jelinek  <jakub@redhat.com>
150             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
151
152         PR optimization/13424 (hppa), bootstrap/14462, c/14828
153         * pa.md: Use replace_equiv_address to retain the attributes of the
154         memory operands used in the split and peephole2 patterns for optimizing
155         the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
156
157 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
158
159         * c-decl.c (build_compound_literal): Use TYPE_READONLY.
160         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
161         * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
162         * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
163         PARM_DECL.
164         * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
165         for a type.
166         * print-tree.c (print_node): Properly handle side-effects, readonly,
167         and constant flags.
168         * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
169         and TREE_CONSTANT if not a type.
170         * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
171         (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
172         (NON_TYPE_CHECK): New macro.
173         (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
174
175 2004-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
176
177         * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
178         to DWARF2_DEBUG unconditionally.
179         (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
180
181 2004-04-04  Ian Lance Taylor  <ian@wasabisystems.com>
182             Nathanael Nerode  <neroden@gcc.gnu.org>
183
184         PR target/14548
185         * config.host: Set the shell variable host_can_use_collect2.
186         Set it to yes by default, and to no for alpha*-dec-*vms*,
187         i[34567]86-*-mingw32*, and powerpc-*-beos*.
188         * configure.ac: Set and substitute the shell variable collect2.
189         Give an error if use_collect2 is yes and host_can_use_collect2 is
190         no.
191         * Makefile.in (COLLECT2): Rename from USE_COLLECT2.  Change all
192         uses.  Initialize to @collect2@.
193         (STAGESTUFF): Remove $(USE_COLLECT2).
194         * config/alpha/x-vms (USE_COLLECT2): Don't set.
195         * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
196         * config/rs6000/t-beos (USE_COLLECT2): Likewise.
197         * config/pa/t-pa64: Remove commented out USE_COLLECT2.
198         * configure: Regenerate.
199
200 2004-04-04  Roger Sayle  <roger@eyesopen.com>
201
202         * simplify-rtx.c (simplify_binary_operation): Constant fold
203         DIV, MOD, UDIV and UMOD using div_and_round_double.
204
205 2004-04-04  Mark Mitchell  <mark@codesourcery.com>
206
207         PR c++/14804
208         * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
209         RECORD_TYPEs.
210
211 2004-04-04  Mark Mitchell  <mark@codesourcery.com>
212
213         * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
214         documentation.
215
216 2004-04-04  Roger Sayle  <roger@eyesopen.com>
217
218         * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
219         updating the REG_EQUAL note on an insn's libcall_insn.
220
221 2004-04-04  Roger Sayle  <roger@eyesopen.com>
222
223         * df.h: Tidy up whitespace in the definitions of the DF_ flags.
224
225 2004-04-03  Roger Sayle  <roger@eyesopen.com>
226
227         * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
228         with reorder_operands_p.
229
230 2004-04-03  Jan Hubicka  <jh@suse.cz>
231
232         * md.texi (vec_set, vec_extract, vec_init): Document.
233
234 2004-04-02  Gabor Loki <loki@inf.u-szeged.hu>
235
236        * opts.c (decode_options): Do function inlining with very small
237        max-inline-insns-* parameters when optimizing for size.
238
239 2004-04-02  Vladimir Makarov  <vmakarov@redhat.com>
240
241         * config/i386/i386.h (TARGET_NOCONA): New macro.
242         (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
243         (processor_type): Add PROCESSOR_NOCONA.
244         
245         * config/i386/i386.md (cpu): Add nocona to the attribute values.
246
247         * config/i386/i386.c (nocona_cost): New variable.
248         (m_NOCONA): New macro.
249         (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
250         x86_branch_hints, x86_use_sahf, x86_single_stringop,
251         x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
252         x86_integer_DFmode_moves, x86_partial_reg_dependency,
253         x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
254         x86_decompose_lea, x86_arch_always_fancy_math_387,
255         x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
256         x86_ext_80387_constants, x86_four_jump_limit):
257         (override_options): Add nocona_cost to processor_target_table.
258         Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
259         (incdec_operand): Prevent inc/dec generation for Nocona too.
260         (ix86_issue_rate): Add PROCESSOR_NOCONA.
261         
262 2004-04-01  Andrew Pinski  <pinskia@physics.uc.edu>
263
264         * rtlanal.c (find_reg_note): Manually
265         unswitch the loop.
266
267 2004-04-01  Mark Mitchell  <mark@codesourcery.com>
268
269         * genemit.c (gen_split): Change prototype of generated code.
270         * genrecog.c (write_action): Adjust prototype for and calls to
271         gen_split_*.
272         * gensupport.c (struct queue_elem): Add split field.
273         (queue_pattern): Return a value.  Clear the split field.
274         (process_rtx): Maintain an association between an insn and the
275         split generated from it for a define_insn_and_split.
276         (process_one_cond_exec): Generate a new split for a
277         define_insn_and_split.
278         * config/arm/arm-protos.h (arm_split_constant): Add insn
279         parameter.
280         (emit_constant_insn): New function.
281         (arm_gen_constant): Use it.
282         * config/arm/arm.md: Adjust calls to arm_split_constant.
283
284 2004-04-02  Jan Hubicka  <jh@suse.cz>
285
286         * cgraph.c: Add overall comment.
287         (cgraph_inline_hash): New global variable.
288         (cgraph_create_node): Break out from ...
289         (cgraph_node): ... here.
290         (cgraph_edge): New function.
291         (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
292         (cgraph_remove_edge): Accept edge, intead of source and destination.
293         (cgraph_redirect_edge_callee): New.
294         (cgraph_remove_node): Update all new datastructures.
295         (cgraph_record_call, cgraph_remove_call): Kill.
296         (dump_cgraph_node): Break out from ... ; dump new datastructures.
297         (dump_cgraph): ... here.
298         (cgraph_function_possibly_inlined_p): Use new hashtable.
299         (cgraph_clone_edge, cgraph_clone_node): New.
300         * cgraph.h: Include hashtab.h
301         (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
302         fields, add inlined_to pointer.
303         (cgraph_node): Add pointer to next_clone.
304         (cgraph_remove_edge, cgraph_create_edge): Update prototype.
305         (cgraph_remove_call, cgraph_record_call): Kill.
306         (cgraph_inline_hash): Declare.
307         (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
308         cgraph_redirect_edge_callee): Declare.
309         (cgraph_create_edges, cgraph_inline_p): Update prorotype.
310         (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
311         cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
312         * cgraphunit.c: Add overall comment.
313         (cgraph_optimize_function): Kill.
314         (cgraph_assemble_pending_functions): Do not assemble inline clones.
315         (cgraph_finalize_function): Update call of cgraph_remove_node
316         (record_call_1): Record call sites.
317         (cgraph_create_edges): Accept node instead of decl argument.
318         (error_found): New static variable.
319         (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
320         (cgraph_analyze_function): Update for new datastructures.
321         (cgraph_finalize_compilation_unit): Plug memory leak.
322         (cgraph_optimize_function): Kill.
323         (cgraph_expand_function): Do not use cgraph_optimize_function.
324         (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
325         cgraph_inlined_callees): Kill.
326         (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
327         clones.
328         (estimate_growth): Simplify.
329         (cgraph_clone_inlined_nodes): New function.
330         (cgraph_mark_inline_edge): Re-implement.
331         (cgraph_mark_inline): Likewise.
332         (cgraph_check_inline_limits): Simplify.
333         (cgraph_recursive_inlining_p): New.
334         (update_callee_keys): Break out from ...
335         (cgraph_decide_inlining_of_small_functions): ... here; simplify.
336         (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
337         Likewise.
338         (cgraph_expand_all_functions):  Remove inline clones from the ordered
339         list.
340         (cgraph_preserve_function_body_p): New predicate.
341         (cgraph_optimize): Verify cgraph.
342         * function.h (struct function): Add fields saved_tree/saved_args.
343         * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
344         * toplev.c (rest_of_compilation): Do not free cfun.
345         * tree-inline.c: Include function.h
346         (struct inline_data): Add saving_p field; replace decl/current_decl by
347         node/current_node.
348         (insert_decl_map): New function.
349         (copy_body_r): Handle saving; update cgraph datastructure.
350         (copy_body): Handle recursive inlining.
351         (initialize_inlined_parameters): Likewise.
352         (expand_call_inline): Propagate node attributes; update cgraph.
353         (optimize_inline_calls): Verify that datastructure still match.
354         (save_body): New function.
355         * tree-inline.h (save_body): New.
356         * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
357         * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
358         * langhooks.c (lang_hooks): Add update_decl_after_saving.
359
360 2004-04-01  Serge Belyshev  <1319@bot.ru>
361
362         PR target/14702
363         * config/i386/i386.md: fix source operand constraints in
364         mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
365
366 2004-04-01  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
367
368         * fold-const.c (folda): Preserve types of comparisons.
369
370 2004-04-01  Richard Henderson  <rth@redhat.com>
371
372         * toplev.c (backend_init): Move init_optimization_passes call ...
373         (lang_dependent_init): ... here.
374
375 2004-04-01  Alan Modra  <amodra@bigpond.net.au>
376             Jakub Jelinek  <jakub@redhat.com>
377
378         * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
379         -lgcc --as-needed -lgcc_s --no-as-needed by default.
380         * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
381         * configure: Rebuilt.
382         * config.in: Rebuilt.
383         * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
384         (stage2-start, stage3-start, stage4-start): Likewise.
385         (stageprofile-start, stagefeedback-start): Likewise.
386
387 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
388
389         * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
390         * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
391         * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
392         * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
393         (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
394         * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
395         with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
396         * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
397         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
398         * config/sparc/t-linux: Removed.
399
400 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
401
402         PR c++/14755
403         * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
404         "bitfld++ == const" to "++bitfld == const + incr" transformations.
405
406 2004-04-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
407
408         * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
409         * stor-layout.c (layout_decl): Likewise.
410         * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
411         * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
412         * print-tree.c (print_node): Handle various used of unsigned_flag.
413         * tree.def (BIT_FIELD_REF): Update comment.
414         * tree.h (TREE_UNSIGNED): Deleted.
415         (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
416
417 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
418
419         * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
420         Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
421         * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
422         * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
423         * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
424         * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
425         * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
426         * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
427         * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
428         * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
429         REAL_TYPE, not INTEGER_TYPE.
430         (layout_type, case VECTOR_TYPE): Simplify code.
431         * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
432         * tree.h: Update comments.
433         (STRIP_NOPS): Use TYPE_UNSIGNED.
434         (TYPE_UNSIGNED): New macro.
435         (TYPE_TRAP_SIGNED): Remove now redundant check.
436         (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
437
438 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
439
440         * function.c (put_var_into_stack): Properly set orig_reg for indirect.
441
442 2004-03-31  Andrew Pinski  <pinskia@physics.uc.edu>
443
444         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
445         Add darwin-fpsave.asm, darwin-vecsave.asm,
446         and darwin-world.asm.
447         (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
448         as the asm files contain altivec instructions.
449         * config/rs6000/darwin-fpsave.asm: New file.
450         * config/rs6000/darwin-vecsave.asm: New file.
451         * config/rs6000/darwin-world.asm: New file.
452
453 2004-03-31  Zack Weinberg  <zack@codesourcery.com>
454
455         * gengtype-yacc.y (option, stringseq): Add missing
456         terminating semicolon.
457
458 2004-03-30  David Edelsohn  <edelsohn@gnu.org>
459
460         * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
461         tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
462         tls_dtprel_ha_32, tls_dtprel_ha_64,
463         tls_dtprel_lo_32, tls_dtprel_lo_64,
464         tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
465         tls_tprel_ha_32, tls_tprel_ha_64,
466         tls_tprel_lo_32, tls_tprel_lo_64,
467         tls_got_tprel_32, tls_got_tprel_64,
468         tls_tls_32, tls_tls_64): Replace register_operand with
469         gpc_reg_operand.
470
471 2004-03-30  Mostafa Hagog  <mustafa@il.ibm.com>
472
473         * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
474         *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
475         *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
476         *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
477         *ctrdi_internal6): Replace register_operand with
478         nonimmediate_operand.
479
480 2004-03-29  Fariborz Jahanian <fjahanian@apple.com>
481
482         * fold-const.c (fold): Reassociate multiply expression
483         with an adjacent non-multiply expression to use
484         architecture's multiply-add instruction.
485
486 2004-03-30  Zack Weinberg  <zack@codesourcery.com>
487
488         * gengtype.c (create_option): New function.
489         * gengtype.h: Prototype it.
490         * gengtype-yacc.y (stringseq): New rule.
491         (option): Use create_option.  Add new bare ID production.  Use
492         stringseq, not STRING directly.
493
494         * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
495         * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
496         * varray.h, config/alpha/alpha.c:
497         Use new shorter form of GTY markers.
498
499         * doc/gty.texi: Rewrite.
500
501 2004-03-30  Andrew Pinski  <pinskia@physics.uc.edu>
502
503         * config/darwin.c (machopic_function_base_name):
504         Remove current_name and getting the name of the
505         current function.
506
507 2004-03-30  Nick Clifton  <nickc@redhat.com>
508
509         * config/arm/arm.md (thumb_jump): Reduce the backward branch
510         range, and increase the forward branch range, to allow for
511         the fact that the PC will be off by 4.
512
513 2004-03-30  Alan Modra  <amodra@bigpond.net.au>
514
515         * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
516
517 2004-03-30  Hartmut Penner  <hpenner@de.ibm.com>
518
519         * config/rs6000/rs6000.c (output_vec_const_move):
520         Find all cases of EASY_VECTOR_15_ADD_SELF.
521         (easy_vector_constant_add_self): Accept
522         all vector constant loadable by vsplt* and vadd*.
523         (easy_vector_same): Use easy_vector_splat_const.
524         (easy_vector_const): Use easy_vector_splat_const.
525         (easy_vector_splat_const): New function.
526         (gen_easy_vector_constant_add_self): New function.
527
528         * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
529         New prototype.
530
531         * config/rs6000/altivec.md (movv4si splitter): Change to
532         emit move insn with halfed vector constant.
533         (*movv8hi splitter): Likewise.
534         (*movv16qi splitter): Likewise.
535
536 2004-03-30  Hartmut Penner  <hpenner@de.ibm.com>
537
538         PR 11591
539         * config/rs6000/rs6000.c (rs6000_legitimate_address):
540         Allow any offset to argument pointer in no-strict case.
541
542 2004-03-30  Jan Hubicka  <jh@suse.cz>
543
544         * toplev.c (backend_init): Add missing call to inint_optimization_passes.
545         * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
546         dump file in non-unit-at-a-time mode.
547
548 2004-03-29  Hans-Peter Nilsson  <hp@axis.com>
549
550         * config/cris/cris.h: Correct #ifdef to test for
551         HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
552         HAVE_AS_MUL_BUG_ABORT_OPTION.
553
554 2004-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
555
556         * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
557         the address inside the old RTL.
558
559 2004-03-28  Zack Weinberg  <zack@codesourcery.com>
560
561         * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
562         (struct c_binding, struct c_scope): Add chain_next
563         attributes to GTY markers.
564         (struct lang_identifier, struct lang_tree_node): Define
565         here...
566         * c-tree.h: ... not here.  No longer need to declare struct
567         c_binding either.  Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
568         * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
569         to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
570
571         PR 14734, 11944
572         * c-decl.c (get_parm_info): If error_mark_node is encountered
573         in the bindings chain, unbind and discard it; don't abort.
574
575 2004-03-28  Olga Golovonevsky <olga@il.ibm.com>
576             Dorit Naishlos <dorit@il.ibm.com>
577
578         * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
579         one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
580
581 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
582
583         * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
584
585         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
586         (m68hc11_attribute_table): New attribute "page0" to mark a global
587         variable as being allocated from within page0 section.
588         (m68hc11_encode_label): New function.
589         (m68hc11_strip_name_encoding): New function.
590         (m68hc11_page0_symbol_p): New function.
591         (m68hc11_indirect_p): Accept global variables marked in page0.
592         (m68hc11_encode_section_info): Lookup "page0" attribute.
593
594         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
595         represents access to page0 variables.
596
597         * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
598         ("*logicalsi3_silshl16_zext"): Likewise.
599         ("*ashldi3_const32"): Likewise.
600         (peephole2 ashift): Likewise.
601
602 2004-03-28  Joseph S. Myers  <jsm@polyomino.org.uk>
603
604         * c-tree.h (C_DECL_REGISTER): New.
605         * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
606         finish_decl, grokdeclarator, get_parm_info), c-typeck.c
607         (build_array_ref, c_mark_addressable): Set and use it.
608         * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
609         Allow structures with volatile fields to be declared register.
610         Don't check TREE_ADDRESSABLE before warning about taking address
611         of register.
612         * c-decl.c (finish_decl): Don't allow structures with volatile
613         fields to be placed in named register.
614         * doc/trouble.texi: Remove reference to structures with volatile
615         fields in registers.
616
617 2004-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
618
619         * function.c (thread_prologue_and_epilogue): Move
620         NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
621         before the epilogue.
622
623 2004-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
624
625         * expr.c (store_constructor): Use gen_int_mode to correctly
626         sign-extend CONST_INT value.
627
628 2004-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
629
630         * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
631         * builtins.def (DEF_C94_BUILTIN): New.  Add wctype builtins.
632         * doc/extend.texi: Likewise.
633
634 2004-03-26  Diego Novillo  <dnovillo@redhat.com>
635
636         * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
637           with TYPE_ORIG_SIZE_TYPE.
638
639 2004-03-25  Aldy Hernandez  <aldyh@redhat.com>
640
641         PR 14219
642         * c-typeck.c (build_binary_op): Do not allow comparisons of
643         vectors.
644
645 2004-03-26  James A. Morrison  <ja2morri@uwaterloo.ca>
646
647         * config.gcc: Remove sparc-tti-*.
648         * config/sparc/pbd.h: Delete.
649
650         * config/sparc/sol2.h: Remove note about Sun OS 4.x.
651         * config/sparc/aout.h: Likewise.
652
653         * config/sparc/sparc.h: Remove if 0'd code.
654         * config/sparc/sparc.md (call): Remove if 0'd code.
655         (call_value): Likewise.
656         (nonlocal_goto): Likewise.
657         (unimp_insn): Delete.
658
659 2004-03-25  Roger Sayle  <roger@eyesopen.com>
660
661         * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
662         BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
663
664 2004-03-25  Richard Henderson  <rth@redhat.com>
665
666         PR 11527
667         * c-typeck.c (pop_init_level): Emit pending init elements earlier
668         rather than later.
669
670 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
671
672         * builtins.c (fold_builtin): Fix error in last change.
673
674 2004-03-25  Richard Sandiford  <rsandifo@redhat.com>
675
676         * config/mips/mips.h: Formatting fix.
677
678 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
679
680         * builtins.def: Add ctype builtins.
681         * doc/extend.texi: Likewise.
682
683 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
684
685         * builtins.c (fold_builtin): Add new builtin optimizations for
686         sqrt and/or cbrt.
687         * fold-const.c (fold): Likewise.
688
689 2004-03-25  David Edelsohn  <edelsohn@gnu.org>
690
691         * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
692         (rs6000_sched_groups): New variable.
693         (processor_target_table): Add power5.
694         (rs6000_override_options): Set rs6000_sched_insert_nops,
695         rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
696         from rs6000_sched_groups.
697         (output_cbranch): Use rs6000_always_hint.
698         (rs6000_variable_issue): Use rs6000_sched_groups.
699         (rs6000_adjust_cost): Add CPU_POWER5.
700         (is_microcoded_insn): Use rs6000_sched_groups.
701         (is_dispatch_slot_restricted): Use rs6000_sched_groups.
702         Return 2 for POWER5 cracked instructions.
703         (is_cracked_insn): Use rs6000_sched_groups.
704         (is_branch_slot_insn): Use rs6000_sched_groups.
705         (rs6000_issue_rate): Add CPU_POWER5.
706         (rs6000_sched_finish): Use rs6000_sched_groups.
707         (rs6000_rtx_costs): Add PROCESSOR_POWER5.
708         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
709         (DEFAULT_SCHED_COSTLY_DEP): Delete.
710         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
711         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
712         * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
713         * config/rs6000/power5.md: New file.
714         * doc/invoke.texi: Add power5 option.
715
716 2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>
717
718         * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
719         config/arm/arm.c, objc/objc-act.c: Fix comment typos.
720         * doc/invoke.texi: Fix a typo.
721
722 2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>
723
724         PR optimization/9707.
725         * stmt.c (emit_case_nodes): Emit equality comparisons instead
726         of recursing if both children are single-valued cases with no
727         children.
728
729 2004-03-25  Paul Brook  <paul@codesourcery.com>
730
731         * config/arm/arm.c (vfp_print_multi): Remove.
732         (arm_output_fldmx): New function.
733         (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
734         (arm_expand_prologue): Update to match.
735         (arm_get_vfp_saved_size): New Function.
736         (arm_get_frame_offsets): Use it.
737         (arm_output_epilogue): Use new functions.
738
739 2004-03-24  Richard Henderson  <rth@redhat.com>
740
741         * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
742         (reg_known_value, reg_known_value_size): Likewise; make static.
743         (reg_known_equiv_p): Make static.
744         (clear_reg_alias_info): Update for new indexing.
745         (get_reg_known_value, set_reg_known_value): New.
746         (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
747         (canon_rtx): Use them.
748         (init_alias_analysis): Likewise.  Allocate reg_known_value with gc.
749         Don't play queer offsetting games with reg_known_value and
750         reg_known_equiv_p.
751         (end_alias_analysis): Free reg_known_value with gc.
752         * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
753         * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
754         (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
755         functions instead.
756
757 2004-03-24  Kazu Hirata  <kazu@cs.umass.edu>
758
759         * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
760         config/i386/mmintrin.h: Update copyright.
761
762 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
763
764         * configure.ac: Add --enable-werror-always (for top level bootstrap
765         support).
766         * configure: Regenerate.
767
768 2004-03-24  Ziemowit Laski  <zlaski@apple.com>
769
770         * objc/objc-act.c (objc_comptypes): Treat comparisons
771         between 'Class' and '<class> *' as explicitly invalid.
772
773 2004-03-24  David Edelsohn  <edelsohn@gnu.org>
774
775         * doc/invoke.texi (-frename-registers: Add enabled at -O3.
776         (-fprofile-values): Add enabled with profile-{generate,use}.
777         (-fvpt): Same.
778         (-ftracer): Add enabled with profile-use.
779         (-funit-at-a-time): Add enabled at -O2,-O3.
780         (-funroll-loops): Add enabled with profile-use.
781         (-funswitch-loops): Add enabled with profile-use.  Remove duplicates.
782         (max-gcse-passes): Mention default.
783         (max-cse-path-length): Mention default.
784
785 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
786
787         * Makefile.in (STRICT2_WARN): Reorder.
788         * configure.ac: Check for -Wold-style-definition, and use it
789         in strict1_warn if it's available.
790         * configure: Regnerate.
791
792 2004-03-24  Paul Brook  <paul@nowt.org>
793
794         * config.gcc <arm>: Add --with-abi=
795         * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
796         thumb_far_jump_used): Remove prototypes.
797         (arm_needs_doubleword_align): Add prototype.
798         (thumb_compute_initial_elimination_offset): Ditto.
799         * config/arm/arm.c (arm_get_frame_offsets): New function.
800         (use_return_insn, output_return_instruction, arm_output_epilogue,
801         arm_output_function_epilogue, arm_compute_initial_elimination_offset,
802         arm_expand_prologue, thumb_expand_epilogue): Use it.
803         (arm_abi, target_abi_name, all_arm_abis): New variables.
804         (arm_override_options): Set them.  Set structure padding for AAPCS.
805         (arm_return_in_memory): Update ABI check.
806         (arm_init_cumulative_args): Initialize can_split.
807         (arm_needs_doubleword_align): New function.
808         (arm_function_arg): Don't split args after pushing to stack. Handle
809         doubleword/even reg alignment.
810         (arm_va_arg): Handle all doubleword aligned args.
811         (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
812         on ABI, not CPU.
813         (arm_compute_save_reg0_reg12_mask): Fix comment.
814         (thumb_get_frame_size, thumb_get_frame_size): Remove.
815         (thumb_jump_far_used_p): Remove superfluous argument.  Return save
816         value for alignment.
817         (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
818         to match.
819         (thumb_compute_initial_elimination_offset): New function.
820         (thumb_expand_prologue): Use arm_get_frame_offsets.  Remove
821         unneccessary rounding.
822         * config/arm/arm.h (target_abi_name): Declare.
823         (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
824         arm_abi_type, ARM_DEFAULT_ABI): Define.
825         (ARM_FLAG_ATPCS): Remove.
826         (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
827         (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
828         (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
829         TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
830         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
831         Contitionalize on ABI, not CPU.
832         (struct arm_stack_offsets): Define.
833         (struct machine_function): Add stack_offsets.  Remove frame_size.
834         (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
835         pushed.
836         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
837         doubleword alignment.
838         (THUMB_INITIAL_ELIMINATION_OFFSET,
839         ARM_INITIAL_ELIMINATION_OFFSET): Remove.
840         (INITIAL_ELIMINATION_OFFSET): Call functions directly.
841         * config/arm/arm.md (align_8): Enable for all targets.
842         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
843         (ARM_DEFAULT_ABI): Define.
844         * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
845         -mstructure-size-boundary.
846
847 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
848
849         * configure.ac: Check for -Wno-variadic-macros; don't use
850         -pedantic (in stage 1 or a simple 'make all') unless it's available,
851         and if it's available, use it.  Also, clean up check for
852         -Wno-long-long.
853         * configure: Regenerate.
854
855 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
856
857         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
858         * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
859         (MULTILIB_DEFAULTS): Use it.
860         (MIPS_CPU_STRING_DEFAULT): Remove.
861         (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
862         (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120.  Make
863         EABI64 -mlong32 the default ABI.  Enforce the default architecture.
864         * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
865         march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
866         (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
867         (MULTILIB_EXCEPTIONS): Change choice of multilibs.  Update comments
868         accordingly.
869
870 2004-03-24  DJ Delorie  <dj@redhat.com>
871             Richard Sandiford  <rsandifo@redhat.com>
872
873         * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
874         (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
875         (ASM_SPEC): Pass down -mfix-vr4122-bugs.
876         * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
877         in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
878         (mips_init_libfuncs): Use special functions for divsi3 and modsi3
879         if TARGET_FIX_VR4122.
880         * config/mips/mips.md (define_attr length): Account for nops inserted
881         after macc and dmult when using -mfix-vr4122-bugs.
882         (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
883         * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
884         LIB2FUNCS_EXTRA.  Add config/mips/vr4122-div.S.
885         * config/mips/vr4122-div.S: New file.
886         * doc/invoke.texi: Document -mfix-vr4122-bugs.
887
888 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
889
890         * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
891         (TARGET_MIPS4130): New macro.
892         (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
893         * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
894         (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
895         with PROCESSOR_R4130.
896         * config/mips/mips.md (define_attr cpu): Add r4130.
897         * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
898
899 2004-03-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
900             Richard Sandiford  <rsandifo@redhat.com>
901
902         * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
903
904 2004-03-24  Alexandre Oliva  <aoliva@redhat.com>
905
906         PR preprocessor/14438
907         * cpplib.c (do_pragma): Remove line_change call after pragma
908         handler.
909
910 2004-03-23  Ian Lance Taylor  <ian@wasabisystems.com>
911
912         * doc/extend.texi (ARM Built-in Functions): Replace with correct
913         declarations.
914
915 2004-03-23  Roger Sayle  <roger@eyesopen.com>
916
917         * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
918         if flag_unsafe_math_optimizations.
919         * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
920         and TARGET_80387 expand using truncdfsf2_noop pattern.
921         (truncxfsf2): Likewise using truncxfsf2_noop.
922         (truncxfdf2): Likewise using truncxfdf2_noop.
923         (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
924
925 2004-03-23  Ziemowit Laski  <zlaski@apple.com>
926
927         * hooks.c (hook_constcharptr_tree_null): New hook.
928         * hooks.h (hook_constcharptr_tree_null): New prototype.
929         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
930         * target.h (mangle_fundamental_type): New target hook.
931         * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
932         target hook at rs6000_mangle_fundamental_type.
933         (rs6000_mangle_fundamental_type): New function.
934         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
935
936 2004-03-23  Zack Weinberg  <zack@codesourcery.com>
937
938         PR 12267, 12391, 12560, 13129, 14114, 14133
939         * c-tree.h: Forward declare struct c_binding.  Declare
940         c_override_bindings_to_false.  Update prototypes.
941         (struct lang_identifier): Update comments.  Change fields to be
942         struct c_binding *.
943         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
944         (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
945         (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
946         (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
947         * c-common.h: Update prototypes.
948         * c-decl.c (struct c_scope): Update commentary.  Remove names,
949         names_last, parms, parms_last, tags, and shadowed fields.  Add
950         bindings and depth fields.
951         (scope_freelist): Move to more appropriate location.
952         (c_print_identifier): Update for changes to struct lang_identifier.
953         (objc_mark_locals_volatile): Update for new bindings structures.
954         (global_bindings_p): Honor c_override_global_bindings_to_false.
955         (pushlevel): Rename to push_scope; take no arguments; use the
956         scope_freelist; initialize scope->depth and check for overflow.
957         (poplevel): Rename to pop_scope; totally rewritten for new bindings
958         structures.
959         (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
960         C_DECL_INVISIBLE, for certain decisions.  Adjust some diagnostics.
961         Improve some commentary.  Adjust handling of forward parm decls.
962         (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
963         Preserve C_DECL_IN_EXTERNAL_SCOPE.
964         (warn_if_shadowing): Correct indentation.  Improve diagnostics.
965         (pushdecl): Remove unnecessary assertion.  Short-circuit anonymous
966         decls.  Rewrite for new bindings structures.  Improve commentary.
967         Eliminate the copy_node call.
968         (implicit_decl_warning): Use the "diag" idiom (as seen in
969         locate_old_decl) to reduce code duplication; call locate_old_decl
970         if appropriate.  Relocate to remove need for forward declaration.
971         (implicitly_declare): Adjust for new bindings structures.  Kludge
972         around Objective-C not-really-builtin functions.
973         (undeclared_variable): Improve diagnostics.  If current_function_decl
974         is nonnull but current_function_scope is null, use current_scope.
975         Use bind.
976         (lookup_tag): Adjust for new bindings structures.  Kludge around
977         Objective-C's tag declarations that wind up in the external scope.
978         (lookup_name): Adjust for new bindings structures.  Kludge around
979         c-common.c's pseudo-typedefs that wind up in the external scope.
980         (lookup_name_current_level): Rename lookup_name_in_scope; take a
981         second argument indicating the scope to examine; rewrite for
982         new bindings structures.
983         (c_init_decl_processing): Adjust for renamed functions.  Do not
984         initialize current_file_decl, first_builtin_decl, last_builtin_decl.
985         First scope pushed is the external scope, not the global scope.
986         (builtin_function): Use bind, not pushdecl.  Adjust other bits
987         for new data structures.  Keep track of builtins that should be
988         made visible automatically.
989         (start_decl): Adjust diagnostics.  Remove unnecessary call to
990         expand_decl.
991         (grokparms): Return 0 if arg_types is error_mark_node.
992         (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
993         reversed sense.  Rewrite for new bindings structures.  Do not
994         leave any decls in the scope, to prevent pop_scope from doing
995         contradictory things with them.
996         (finish_struct, finish_enum): Remove redundant diagnostics.
997         (build_enumerator): Don't cascade diagnostics for error_mark_node.
998         Mark location where -pedantic changes the meaning of the program.
999         (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
1000         parameter decls into the function's scope structure using bind.
1001         Warn here about function definitions in the wrong style.
1002         Adjust diagnostics.
1003         (store_parm_decls): Correct the determination of whether a
1004         function was defined with a prototype.
1005         (c_write_global_declarations): Operate on all file decls and on
1006         the external scope.  Split body of the loop to...
1007         (c_write_global_declarations_1): ... this new function, to avoid
1008         code duplication.
1009         (truly_local_externals, first_builtin_decl, last_builtin_decl)
1010         (make_scope, pop_scope, in_parm_level_p, set_block)
1011         (any_external_decl, record_external_decl, bind_label, getdecls)
1012         (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
1013         (c_reset_state): Delete.
1014         (visible_builtins, c_override_global_bindings_to_false)
1015         (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
1016         (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
1017         (external_scope, binding_freelist, bind, free_binding_and_advance)
1018         (push_file_scope, pop_file_scope): New.
1019         (pushtag, pushdecl_top_level, lookup_label, declare_label)
1020         (define_label, c_make_fname_decl, finish_decl)
1021         (mark_forward_parm_decls, build_compound_literal)
1022         (grokdeclarator, start_function, check_for_loop_decls)
1023         (identifier_global_value, record_builtin_type): Minor adjustments
1024         for new bindings structures.  Improve diagnostics and commentary.
1025         * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
1026         pushlevel/poplevel respectively.
1027         (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
1028         * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
1029         Warn about YYDEBUG not being defined only if -dy.  Remove no-longer-
1030         correct loop over multiple translation units; call fatal_error if
1031         requested to compile more than one file at once.  (This disables
1032         IMA temporarily - an up-front error being preferable to a crash.)
1033         * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
1034         (all actions): Adjust calls to pushlevel/poplevel.
1035         (parsing_iso_function_signature): Delete.
1036         (extdef_1): Fold into extdef.
1037         (old_style_parm_decls_1): Fold into old_style_parm_decls.  Don't
1038         warn here about function definitions in the wrong style.
1039         (after_tyle_declarator, parm_declarator_starttypename)
1040         (parm_declarator_nostarttypename, notype_declarator): Remove
1041         commented-out productions.
1042         (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
1043         an empty TREE_LIST node.  Adjust calls to get_parm_info.
1044         (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
1045         to suppress -Wold-style-definition after this error.
1046         (c_parse_file): Don't clear the binding stack or call
1047         finish_fname_decls here.  Correct comment.
1048         * c-typeck.c (same_translation_unit_p): Export.
1049         (common_type): Use c_override_global_bindings_to_false, not
1050         pushlevel/poplevel/declare_parm_level.
1051         * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
1052         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
1053         and LANG_HOOKS_GETDECLS with do-nothing stubs.
1054         * objc/objc-lang.c: Likewise.
1055         * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
1056         get_parm_info.
1057         (OBJC_VOID_AT_END): Delete; replace all uses
1058         with void_list_node.
1059         (generate_forward_declaration_to_string_table): Delete.
1060         * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
1061
1062         * coverage.c (create_coverage): Don't pushdecl anything.
1063         * langhooks.c (lhd_clear_binding_stack): Call
1064         lang_hooks.decls.poplevel, not poplevel.
1065         * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
1066         circular list rather than going into an infinite loop.
1067
1068 2004-03-23  Olivier Hainque  <hainque@act-europe.fr>
1069
1070         * optabs.c (expand_binop): When synthesizing double word rotates
1071         from single word shifts, use a new register target if the provided
1072         target is not a REG already.
1073
1074 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1075
1076         * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
1077         * c-common.c (handle_mode_attribute): Add extra arg to
1078         build_pointer_type_for_mode and build_reference_type_for_mode.
1079         * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
1080         for INTEGER_CST.
1081         * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
1082         Chain pointers via TYPE_NEXT_PTR_TO.
1083         (build_reference_type_for_mode): Similarly.
1084         (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
1085         and build_reference_type_for_mode.
1086         (tree_check4_failed): New function.
1087         * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
1088         (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
1089         (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
1090         Add check.
1091
1092 2004-03-23  Roger Sayle  <roger@eyesopen.com>
1093
1094         * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
1095         A is nonnegative or B is nonnegative.  Similarly A|B is nonnegative
1096         when both A and B are nonnegative.
1097         (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
1098         nonzero.
1099
1100 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
1101
1102         * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
1103         VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
1104
1105 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
1106
1107         PR optimization/14669
1108         * fold-const.c (fold): Only unwiden integer comparisons for equality
1109         and inequality operators, or when the signedness doesn't change.
1110
1111 2004-03-23  Jakub Jelinek  <jakub@redhat.com>
1112
1113         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
1114         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
1115         * config/sparc/t-linux: New file.
1116
1117 2004-03-23  Richard Sandiford  <rsandifo@redhat.com>
1118
1119         * gcse.c (can_assign_to_reg_p): New function, split out from...
1120         (want_to_gcse_p): ...here.
1121         (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
1122         the rhs of a store.
1123
1124 2004-03-22  Diego Novillo  <dnovillo@redhat.com>
1125
1126         * c-typeck.c (same_translation_unit_p): Fix pasto.
1127
1128 2004-03-22  David Edelsohn  <edelsohn@gnu.org>
1129
1130         * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
1131         (PARAM_MAX_SCHED_REGION_INSNS): New.
1132         * sched-rgn.c: Include params.h
1133         (MAX_RGN_BLOCKS): Delete.
1134         (MAX_RGN_INSNS): Delete.
1135         (too_large): Return bool.  Convert to PARAM_VALUE.
1136         * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
1137         * doc/invoke.texi (param): Document max-sched-region-blocks and
1138         max-sched-region-insns.
1139
1140 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
1141
1142         * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
1143         for base types.
1144
1145 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
1146
1147         * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
1148         change.
1149
1150 2004-03-22  Jakub Jelinek  <jakub@redhat.com>
1151
1152         PR c/14069
1153         * c-decl.c (finish_struct): Change type of incorrect flexible array
1154         field into error_mark_node.
1155
1156 2004-03-22  Andrew Pinski  <pinskia@physics.uc.edu>
1157
1158         PR target/14580
1159         * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
1160         who are not local for Darwin PIC.
1161
1162 2004-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
1163
1164         * regrename.c (regrename_optimize): Set regs_ever_live for all
1165         registers introduced as replacement.
1166
1167 2004-03-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1168
1169         PR middle-end/14470
1170         * expr.c (mark_queue): New function.
1171         (emit_insns_enqueued_after_mark): New function replacing
1172         emit_queue.  Clear the body of emitted queued insns.
1173         (emit_queue): Call emit_insns_enqueued_after_mark.
1174         (store_expr): Mark the increment queue on entry.  Emit
1175         only the incrementations queued when expanding the source.
1176
1177 2004-03-22  Nathanael Nerode  <neroden@gcc.gnu.org>
1178
1179         * configure.ac: Allow --disable-coverage-flags (for the future benefit
1180         of top level bootstrap, and consistency).  Reindent.
1181         * configure: Regenerate.
1182
1183 2004-03-21  Kazu Hirata  <kazu@cs.umass.edu>
1184
1185         * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
1186         ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
1187         unnecessary casts.
1188
1189 2004-03-22  Danny Smith  <dannysmith@users.sourceforge.net>
1190
1191         PR target/14291
1192         * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
1193         __MINGW32__.
1194
1195 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
1196
1197         * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
1198         to nonimmediate_operand.
1199         ("*doloop_di"): Likewise.
1200
1201 2004-03-21  Alexandre Oliva  <aoliva@redhat.com>
1202
1203         * real.h (struct real_value): Use the same type for all
1204         bitfields.  Rename exp to uexp.
1205         (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
1206         Adjust all uses of exp...
1207         * builtins.c: ... here, ...
1208         * emit-rtl.c: ... here, and ...
1209         * real.c: ... and here.
1210
1211 2004-03-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1212
1213         * pretty-print.c (pp_base_maybe_space): New function.
1214         * pretty-print.h (pp_base_maybe_space): Declare.
1215         (pp_maybe_space): New macro.
1216
1217 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
1218
1219         * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
1220
1221 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
1222
1223         * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
1224         of using register multiplication cost.
1225         (expand_mult): Adapt choose_mult_variant call.
1226         (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
1227         of MODE; pass appropriate cost bound.  Adjust result when
1228         performing signed multiplication by a negative constant.
1229         Don't use intermediate modes larger than word_mode.
1230
1231 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1232
1233         * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
1234         * emit-rtl.c (component_ref_for_mem_expr): Likewise.
1235         (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
1236         * explow.c (expr_size): Likewise.
1237         * expr.h (placeholder_list, find_placeholder): Deleted.
1238         * expr.c (store_constructor): Likewise.
1239         (get_inner_reference): Likewise.  Also don't call find_placeholder.
1240         (placeholder_list, find_placeholder): Deleted.
1241         (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
1242         (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
1243         (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
1244         * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
1245         * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
1246         Likewise.
1247         * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
1248         (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
1249         * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
1250         (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
1251         Clean up by using first_rtl_op.
1252         (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
1253         (substitute_placeholder_in_expr): New function.
1254         * tree.def (WITH_RECORD_EXPR): Deleted.
1255         * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
1256         (substitute_placeholder_in_expr): New.
1257
1258 2004-03-21  Andrew Pinski  <pinskia@gcc.gnu.org>
1259
1260         * dojump.c (prefer_and_bit_test): Fix which part of
1261         the and_test is replaced.
1262
1263 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
1264
1265         * frontends.texi: Add missing line.
1266
1267 2004-03-21  Zack Weinberg  <zack@codesourcery.com>
1268             Chris Devers  <cdevers@pobox.com>
1269             Joseph S. Myers  <jsm@polyomino.org.uk>
1270
1271         * doc/frontends.texi: Rewrite.
1272         * doc/gcc.texi: Update last modification date.
1273
1274 2004-03-21  Josef Zlomek  <zlomekj@suse.cz>
1275
1276         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
1277         message before redirecting the edge.
1278
1279 2004-03-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1280
1281         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
1282         flag.
1283         * explow.c (force_not_mem): Set REG_POINTER flag according to
1284         MEM_POINTER one.
1285         * rtl.h (MEM_POINTER): New macro.
1286         (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
1287         for MEM_POINTER.
1288
1289 2004-03-20  Roger Sayle  <roger@eyesopen.com>
1290
1291         PR target/13889
1292         * cse.c (fold_rtx): Avoid substituting constants into unary
1293         conversion operations.
1294
1295 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1296
1297         * fold-const.c (fold): Replace "expr" with "t".
1298
1299 2004-03-20  Ian Lance Taylor  <ian@wasabisystems.com>
1300
1301         PR c/12373
1302         * c-typeck.c (tagged_types_tu_compatible_p): Don't use
1303         DECL_ORIGINAL_TYPE if there isn't one.
1304
1305 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1306
1307         * fold-const.c (fold): Replace "final_type" with "type".
1308         Remove variable "final_type".
1309
1310 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1311
1312         * fold-const.c (fold): Constify "type".
1313         Replace "TREE_TYPE (t)" with "type".
1314
1315 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1316
1317         * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
1318         dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
1319         via (*targetm.foo) () with targetm.foo ().
1320
1321 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1322
1323         PR other/14630
1324         * doc/install.texi: Add info directory category and entry.
1325
1326 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1327
1328         * fold-const.c (fold): Replace "t" with "tem" where it is used
1329         as a temporary variable.  Remove "orig_t" and all of its uses.
1330
1331 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1332
1333         * fold-const.c (fold): Remove variable "invert".
1334         Move the handling of relational expressions that can be folded
1335         to a constant ...
1336         (fold_relational_const): ... here.
1337         (tree_expr_nonzero_p): New.
1338
1339 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1340
1341         PR c/14635
1342         * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
1343         DEF_GCC_BUILTIN.
1344
1345 2004-03-20  Richard Sandiford  <rsandifo@redhat.com>
1346
1347         * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
1348         (GTFILES): Add $(srcdir)/dojump.h.
1349         (gt-dojump.h): New dependency.
1350         * dojump.c (and_reg, and_test, shift_test): New static variables.
1351         (prefer_and_bit_test): New function.
1352         (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
1353
1354 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1355
1356         * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
1357         expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
1358         reorg.c, tree.h: Fix comment typos.
1359
1360 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1361
1362         * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
1363         c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
1364         cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
1365         haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
1366         sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
1367         vmsdbgout.c: Replace calls via (*targetm.foo) () with
1368         targetm.foo ().
1369
1370 2004-03-19  Ziemowit Laski  <zlaski@apple.com>
1371
1372         * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
1373         vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
1374         always_inline attribute.
1375         * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
1376         Treat expansion as completed even if literal argument is
1377         invalid (so that other expansions are not tried in vain).
1378
1379 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1380
1381         * loop-doloop.c (add_test): Replace GEN_INT (0) with
1382         const0_rtx.
1383
1384 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1385
1386         * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
1387         ...
1388         (fold_abs_const): ... here.
1389
1390 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1391
1392         * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
1393
1394 2004-03-19  Denis Chertykov  <denisc@overta.ru>
1395
1396         PR target/11520
1397         * config/avr/avr.md ("call_insn"): Handle explicit integer
1398         specially.
1399         (call_value_insn): Likewise.
1400
1401 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1402
1403         * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
1404
1405 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1406
1407         * fold-const.c (negate_expr): Move the handling of constants
1408         ...
1409         (fold_negate_const): ... here.
1410
1411 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1412
1413         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
1414         * langhooks.h (struct lang_hooks_for_types): New field hash_types.
1415         * tree.c (debug_no_type_hash): Deleted.
1416         (type_hash_canon): Abort if passed a variant.
1417         Check lang_hooks.types.hash_types.
1418         (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
1419         (build_array_type): Remove unnecessary allocation of pointer type.
1420         (build_complex_type): Properly qualify resulting type.
1421
1422 2004-03-19  Paolo Bonzini  <bonzini@gnu.org>
1423
1424         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
1425
1426 2004-03-19  Richard Sandiford  <rsandifo@redhat.com>
1427
1428         * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
1429         (expand_mult): ...here.
1430         (extract_high_half): New, split out from expand_mult_highpart.
1431         (expand_highpart_optab): Likewise.  Don't clobber target prematurely.
1432         (expand_highpart): Evaluate the cost of a shift/add sequence,
1433         then see if any of the specialized optabs are cheaper.
1434
1435 2004-03-18  Ian Lance Taylor  <ian@wasabisystems.com>
1436
1437         * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
1438
1439 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1440
1441         * convert.c (convert_to_real): Add more math builtins.
1442
1443 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1444
1445         * convert.c (convert_to_real): Reformat using switch stmt.
1446
1447 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
1448
1449         * c-common.c (pointer_int_sum): Do not complain about using
1450         pointers to pointers-to-members.
1451
1452 2004-03-18  Kazu Hirata  <kazu@cs.umass.edu>
1453
1454         * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
1455         have moved to the target hooks structure".
1456
1457 2004-03-18  James E Wilson  <wilson@specifixinc.com>
1458
1459         * config/mips/mips.md (type): Split move into arith and fmove.  Split
1460         hilo into mthilo and mfhilo.  Add trap.  Delete icmp.  Fix all uses.
1461         * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
1462         Likewise.
1463         * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
1464         Likewise.
1465         * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
1466         rm7_fp_quick): Likewise.
1467         * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
1468         rm9k_fquick): Likewise.
1469         * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
1470         Likewise.
1471         (ir_sr70_icmp): Delete.
1472
1473 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1474
1475         * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
1476         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
1477         (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
1478         (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
1479         (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
1480         Protect with proper check.
1481         (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
1482         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
1483         * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
1484         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
1485         * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
1486         * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
1487         not TYPE_FIELDS.
1488         * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
1489
1490 2004-03-18  Mostafa Hagog  <mustafa@il.ibm.com>
1491
1492         * gcse.c (eliminate_partially_redundant_loads): Reject change if
1493         dest is set between beginning and current insn.
1494
1495 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
1496
1497         * c-decl.c (grokdeclarator): Do not complain about redeclaring
1498         visible "static" identifiers "extern" in a local scope.
1499         * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
1500         post-increments/decrements.
1501
1502 2004-03-18  Bob Wilson  <bob.wilson@acm.org>
1503
1504         * config/xtensa/xtensa.c (current_function_arg_words): Delete.
1505         (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
1506         (xtensa_va_start): Remove assignment to current_function_arg_words.
1507
1508 2004-03-18  Richard Sandiford  <rsandifo@redhat.com>
1509
1510         * alias.c (record_set): Detect the case where a register is assigned
1511         a new value that has the same base term as the old one.
1512
1513 2004-03-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1514
1515         * doloop.c: Removed.
1516         * loop-doloop.c: New file.
1517         * Makefile.in (doloop.o): Remove.
1518         (loop-doloop.o): New.
1519         * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
1520         * cfgloopanal.c (get_loop_level): New function.
1521         * loop-iv.c (iv_number_of_iterations): Handle case when loop
1522         is leaved immediatelly.
1523         * loop.c (strength_reduce): Do not call doloop optimization.
1524         * loop.h (LOOP_BCT): Removed.
1525         * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
1526         (rest_of_handle_loop2): Call doloop_optimize_loops.
1527         (rest_of_compilation): Test for optimizations moved to
1528         rest_of_handle_loop2.
1529
1530 2004-03-17  Fariborz Jahanian <fjahanian@apple.com>
1531
1532         * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
1533         for mixed mode.
1534         (rs6000_emit_prologue): Ditto.
1535         (rs6000_emit_epilogue): Ditto.
1536         * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
1537         macro for mixed mode.
1538
1539 2004-03-18  Jan Hubicka  <jh@suse.cz>
1540
1541         * predict.c (propagate_freq): Compute correctly frequency of
1542         EXIT_BLOCK.
1543
1544 2004-03-17  Eric Christopher  <echristo@redhat.com>
1545
1546         * builtins.c (apply_args_size): Use reg_raw_mode.
1547         (apply_result_size): Ditto.
1548
1549 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1550
1551         PR target/14620
1552         * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
1553
1554 2004-03-17  Jakub Jelinek  <jakub@redhat.com>
1555
1556         * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
1557         32-bit builds when defaulting to 32-bit.
1558
1559 2004-03-17  Jan Hubicka  <jh@suse.cz>
1560
1561         * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
1562         array.
1563
1564 2004-03-17  James E Wilson  <wilson@specifixinc.com>
1565
1566         * config/mips/mips.md (zero_extendsidi2): Add length attribute.
1567         (hazard_nop): Change type to nop.
1568         (type): Split arith into arith, shift, slt, clz.  Delete darith.
1569         Fix all uses.  Change arith to multi if more than one insn emitted.
1570         * config/mips/5400.md (ir_vr54_arith): Likewise.
1571         * config/mips/5500.md (ir_vr55_arith): Likewise.
1572         * config/mips/7000.md (rm7_int_other): Likewise.
1573         * config/mips/9000.md (rm9k_int): Likewise.
1574         * config/mips/sr71k.md (ir_sr70_arith): Likewise.
1575
1576 2004-03-17  Joel Brobecker  <brobecker@gnat.com>
1577
1578         * dwarf2out.c (subrange_type_die): Define new variable "subtype"
1579         to hold the subtype tree instead of recomputing it several times.
1580
1581 2004-03-17  Kazu Hirata  <kazu@cs.umass.edu>
1582
1583         * config/mn10300/mn10300.c (notice_update_cc): Don't handle
1584         CC_INVERT.
1585         * config/mn10300/mn10300.md (cc): Remove "invert".
1586
1587 2004-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1588
1589         * builtins.c (integer_valued_real_p): Add builtin rint.
1590         (fold_builtin): Likewise.
1591         * convert.c (convert_to_real): Likewise.
1592
1593         * convert.c (convert_to_real): Fix typos in `long double'
1594         builtins.
1595
1596 2004-03-16  Mark Mitchell  <mark@codesourcery.com>
1597
1598         PR c++/14481
1599         * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
1600         generated COMPOUND_EXPRs.
1601
1602 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1603
1604         * config/h8300/t-rtems (h8300-*-rtems*): New.
1605
1606 2004-03-16  Eric Christopher  <echristo@redhat.com>
1607
1608         * doc/cppopts.texi(fwide-exec-charset): Fix typo.
1609
1610 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
1611
1612         * config/i386/i386-protos.h: Add a prototype for
1613         ix86_reverse_condition.
1614         * config/i386/i386.c (ix86_reverse_condition): New.
1615         * config/i386/i386.h (REVERSE_CONDITION): Use
1616         ix86_reverse_condition.
1617         * config/i386/i386.md: Use ix86_reverse_condition instead of
1618         REVERSE_CONDITION.
1619
1620 2004-03-16  J. Brobecker  <brobecker@gnat.com>
1621
1622         * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
1623
1624 2004-03-16  Nathanael Nerode  <neroden@gcc.gnu.org>
1625
1626         PR bootstrap/12974
1627         * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
1628
1629 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
1630
1631         * c-common.c (c_common_type_for_mode): Build vector types on
1632         demand.
1633         (handle_mode_attribute): Deprecate using the mode attribute
1634         to create vector types.  Fix indentation.
1635         (vector_type_node_list): Remove.
1636         (handle_vector_size_attribute): Create vector types on demand.
1637         Strip a NON_LVALUE_EXPR from the attribute if there is one.
1638         * c-typeck.c (comptypes): Make vector types compatible if they
1639         have the same underlying mode.
1640         (convert_for_assignment): Use comptypes to convert between
1641         vector types.
1642         * tree.c (build_common_tree_nodes_2): Do not create vector types.
1643         * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
1644         vector types.
1645         * tree.h: Remove vector types.
1646         * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
1647         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
1648         (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
1649         V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
1650         * doc/extend.texi (Vector Types): Document how to use the
1651         vector_size attribute to create vectors, rather than mode.
1652
1653         * config/arm/mmintrin.h: Use vector_size attribute, not mode.
1654         * config/i386/emmintrin.h: Likewise.
1655         * config/i386/mmintrin.h: Likewise.
1656         * config/i386/xmmintrin.h: Likewise.
1657         * config/sh/ushmedia.h: Likewise.
1658
1659 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
1660
1661         * config/freebsd-spec.h, config/arc/arc-protos.h,
1662         config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
1663         config/arm/linux-gas.h, config/arm/semi.h,
1664         config/cris/cris-protos.h, config/i386/xm-djgpp.h,
1665         config/ia64/freebsd.h, config/mips/7000.md,
1666         config/mips/9000.md, config/ns32k/ns32k-protos.h,
1667         config/sparc/pbd.h: Update copyright.
1668
1669 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1670
1671         PR target/14577
1672         * config.gcc: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff.
1673
1674 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
1675
1676         * combine.c (combine_simplify_rtx): Remove the "last"
1677         parameter and its documentation.  Adjust recursive calls.
1678         (simplify_logical): Always perform the only simplification
1679         controlled by "last", if the simplified expression is
1680         actually different.
1681         (try_combine): Do not pass the "last" parameter to
1682         combine_simplify_rtx.
1683
1684 2004-03-16  Richard Sandiford  <rsandifo@redhat.com>
1685
1686         PR target/14599
1687         * config/mips/mips.md (UNSPEC_GP): New constant.
1688         * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
1689         an UNSPEC instead of (reg $gp).
1690         (mips16_gp_pseudo_reg): Change accordingly.
1691         (print_operand): Print $gp directly when handling CONST_GP_P.
1692
1693 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
1694
1695         * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
1696         * longlong.h: Make code 68060 clean when compiling for m68060.
1697
1698 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
1699
1700         * config/m68k/m68k.md: Fix constraints for bitfield instructions.
1701         * doc/md.texi: Clarify description of "i" constraint.
1702
1703 2004-03-15  James E Wilson  <wilson@specifixinc.com>
1704
1705         * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
1706         Split store into store, fpstore, fpidxstore.  Fix all uses.
1707         * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
1708         Likewise.
1709         * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
1710         * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
1711         * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
1712         * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
1713         ir_sr70_fstore): Likewise.
1714
1715 2004-03-15  Richard Henderson  <rth@redhat.com>
1716
1717         PR middle-end/14535
1718         * except.c (collect_one_action_chain): Record action for cleanup
1719         outer of exception spec.
1720
1721 2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>
1722
1723         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1724         Fix the check for abort and only do the mmap if we can.
1725
1726 2004-03-15  Eric Botcazou  <ebotcazou@act-europe.fr>
1727
1728         * config/sparc/sparc.h: Rework comments about the code model
1729         in 64-bit environment and the mode 'Pmode'.
1730         * doc/invoke.texi (SPARC options): Rework description of the
1731         different code models supported in 64-bit environment.
1732
1733 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
1734
1735         * defaults.h (REVERSIBLE_CC_MODE): Define.
1736         * jump.c (reversed_comparison_code_parts): Don't check if
1737         REVERSIBLE_CC_MODE is defined.
1738
1739 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
1740
1741         * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
1742         et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
1743         hosthooks.h, params.h, ra-colorize.c, web.c,
1744         config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
1745         config/avr/avr-protos.h, config/avr/avr.md,
1746         config/fr30/fr30-protos.h, config/fr30/fr30.md,
1747         config/h8300/fixunssfsi.c, config/i386/darwin.h,
1748         config/i386/freebsd.h, config/i386/freebsd64.h,
1749         config/ia64/hpux.h, config/ia64/unwind-ia64.c,
1750         config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
1751         config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
1752         config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
1753         config/pa/pa64-regs.h, config/rs6000/aix41.h,
1754         config/rs6000/aix43.h, config/rs6000/host-darwin.c,
1755         config/sparc/aout.h, config/sparc/freebsd.h,
1756         config/sparc/litecoff.h, config/vax/vax-protos.h,
1757         doc/hostconfig.texi, doc/include/gcc-common.texi: Update
1758         copyright.
1759
1760 2004-03-15  Paul Brook  <paul@codesourcery.com>
1761
1762         * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
1763
1764 2004-03-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1765
1766         * c-pretty-print.c (pp_c_semicolon): Fix formatting.
1767         (pp_c_cv_qualifier): Document.
1768         (pp_c_space_for_pointer_operator): Likewise.
1769         (pp_c_integer_constant): Likewise.
1770         (pp_c_identifier): Likewise.
1771         (pp_c_init_declarator): Don't print function body.
1772
1773 2004-03-14  Joseph S. Myers  <jsm@polyomino.org.uk>
1774
1775         * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
1776         doc/install.texi, doc/invoke.texi, doc/makefile.texi,
1777         doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
1778         "gcc", "g++" and "g77" or mark up with appropriate markup.  Adjust
1779         wording and grammar.
1780
1781 2004-03-14  Roger Sayle  <roger@eyesopen.com>
1782
1783         * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
1784         with lang_hooks.foo ().
1785         * builtins.c (expand_builtin_va_arg): Likewise.
1786         * c-common.c (fname_as_string, c_common_truthvalue_conversion,
1787         c_common_type_for_mode, c_common_nodes_and_builtins,
1788         handle_mode_attribute, handle_vector_size_attribute): Likewise.
1789         * c-convert.c (convert): Likewise.
1790         * c-format.c (check_format_types): Likewise.
1791         * c-objc-common.c (c_tree_printer): Likewise.
1792         * c-typeck.c (build_unary_op, build_conditional_expr,
1793         build_binary_op): Likewise.
1794         * calls.c (try_to_integrate, expand_call,
1795         emit_library_call_value_1): Likewise.
1796         * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
1797         Likewise.
1798         * cgraphunit.c (record_call_1, cgraph_analyze_function,
1799         cgraph_expand_function): Likewise.
1800         * convert.c (convert_to_pointer, convert_to_integer): Likewise.
1801         * coverage.c (build_fn_info_type, build_ctr_info_type,
1802         build_gcov_info, create_coverage): Likewise.
1803         * dbxout.c (dbxout_init): Likewise.
1804         * diagnostic.c (diagnostic_report_current_function): Likewise.
1805         * dojump.c (do_jump): Likewise.
1806         * dwarf2out.c (dwarf2_name): Likewise.
1807         * except.c (init_eh): Likewise.
1808         * explow.c (expr_size, int_expr_size): Likewise.
1809         * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
1810         Likewise.
1811         * expr.c (store_expr, store_constructor, safe_from_p,
1812         expand_expr_real, do_store_flag, try_casesi): Likewise.
1813         * function.c (push_function_context_to, pop_function_context_from,
1814         free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
1815         put_var_into_stack, allocate_struct_function, current_function_name):
1816         Likewise.
1817         * integrate.c (copy_decl_for_inlining, expand_inline_function):
1818         Likewise.
1819         * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
1820         lhd_print_error_function): Likewise.
1821         * opts.c (handle_option, decode_options): Likewise.
1822         * passes.c (open_dump_file): Likewise.
1823         * print-tree.c (print_node): Likewise.
1824         * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
1825         expand_decl_cleanup, emit_case_nodes): Likewise.
1826         * stor-layout.c (variable_size): Likewise.
1827         * toplev.c (announce_function, wrapup_global_declarations,
1828         check_global_declarations, compile_file, default_tree_printer,
1829         process_options, lang_dependent_init, finalize): Likewise.
1830         * tree-dump.c (dequeue_and_dump): Likewise.
1831         * tree-inline.c (remap_decl, remap_block, copy_body_r,
1832         initialize_inlined_parameters, declare_return_variable,
1833         inlinable_function_p, expand_call_inline, optimize_inline_calls,
1834         walk_tree, copy_tree_r): Likewise.
1835         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1836         * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
1837         unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
1838         variably_modified_type_p, dump_tree_statistics): Likewise.
1839         * varasm.c (assemble_variable, compare_constant, copy_constant,
1840         force_const_mem, compute_reloc_for_constant, output_constant,
1841         output_addressed_constants, initializer_constant_valid_p): Likewise.
1842
1843 2004-03-14  Kelley Cook  <kcook@gcc.gnu.org>
1844
1845         * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
1846
1847 2004-03-14  Andreas Tobler  <a.tobler@schweiz.ch>
1848
1849         * doc/install.texi: Reflect autoconf and automake version for
1850         libffi. Update autoconf version to 2.59.
1851
1852 2004-03-13  Roger Sayle  <roger@eyesopen.com>
1853
1854         * fold-const.c (negate_expr, operand_equal_for_comparison_p,
1855         optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
1856         make_range, build_range_check, fold_range_test, unextend,
1857         constant_boolean_node, fold_binary_op_with_conditional_arg,
1858         fold_truthop, fold_mathfn_compare, fold_inf_compare,
1859         fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
1860         with lang_hooks.foo ().
1861
1862 2004-03-14  Richard Earnshaw  <rearnsha@arm.com>
1863
1864         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
1865
1866 2004-03-13  Dara Hazeghi  <dhazeghi@yahoo.com>
1867
1868         * doc/install.texi: Note status of -fnew-ra.
1869
1870 2004-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1871
1872         PR middle-end/14470
1873         * expr.c (store_expr): Call emit_queue before generating the move
1874         from the temporary to the original target.  Protect the temporary
1875         from emit_queue.
1876
1877 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
1878
1879         PR target/14533
1880         * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
1881         other than UNSPEC_GOTOFF.
1882
1883 2004-03-13  Richard Earnshaw  <rearnsha@arm.com>
1884
1885         * arm.c (arm_legitimate_address_p): New argument, OUTER.  Pass through
1886         to arm_legitimate_index_p.  Update all callers with SET as default
1887         value.
1888         (arm_legitimate_index_p): New argument, OUTER.  Restrict the index
1889         range if OUTER is a sign-extend operation on QImode.  Correctly
1890         reject shift operations on sign-extended QImode addresses.
1891         (bad_signed_byte_operand): Delete.
1892         (arm_extendqisi_mem_op): New function.
1893         * arm.h (EXTRA_CONSTRAINT_ARM): Delete.  Replace with...
1894         (EXTRA_CONSTRAINT_STR_ARM): ... this.  Handle extended address
1895         constraints.
1896         (CONSTRAINT_LEN): New.
1897         (EXTRA_CONSTRAINT): Delete.  Replace with...
1898         (EXTRA_CONSTRAINT_STR): ... this.
1899         (PREDICATE_CODES): Remove bad_signed_byte_operand.
1900         * arm.md (extendqihi_insn): Use new constraint Uq.  Rework.  Length
1901         is now always default.
1902         (define_splits for bad sign-extend loads): Delete.
1903         (arm_extendqisi, arm_extendqisi_v5): Likewise.
1904         * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
1905         Rework 'U' constraint to 'Uv'.
1906         * arm-protos.h: Remove bad_signed_byte_operand.  Add
1907         arm_extendqisi_mem_op.
1908         * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
1909         Add Uq constraint.
1910
1911 2004-03-13  Alan Modra  <amodra@bigpond.net.au>
1912
1913         * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
1914         with targetm version.
1915
1916         PR target/14567
1917         * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
1918         (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
1919         * config/rs6000/rs6000.c (rs6000_arg_size): New function.
1920         Update all users of RS6000_ARG_SIZE.
1921         (function_arg_advance): Count fregno using mode size.
1922         (function_arg): Handle long double split over regs and memory.
1923         (function_arg_partial_nregs): Likewise.
1924         (rs6000_va_arg): Repackage complex args.
1925
1926 2004-03-13  Dean Ferreyra <dferreyra@igc.org>
1927
1928         PR target/14047
1929         * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
1930         (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
1931         * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
1932
1933 2004-03-12  Jakub Jelinek  <jakub@redhat.com>
1934
1935         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
1936         prototype.
1937         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
1938         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1939
1940 2003-03-12  Andrew Pinski  <apinski@apple.com>
1941
1942         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1943         Use ret instead of result. Use addr instead of base.
1944
1945 2004-03-12  David Edelsohn  <edelsohn@gnu.org>
1946
1947         * doc/install.texi (*-ibm-aix*): Document assembler and achiver
1948         fixes required by libstdc++ and update installation instructions
1949         for libstdc++.a.
1950
1951 2004-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
1952
1953         * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
1954         leading '@' on fastcall symbols before stripping suffix.
1955
1956 2004-03-12  Roger Sayle  <roger@eyesopen.com>
1957
1958         * combine.c (unmentioned_reg_p): New function to check whether an
1959         expression is a "specialization" of another, i.e. that there are
1960         no registers or memory references mentioned in the first that don't
1961         appear in the second.
1962         (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
1963         (combine_instructions): Also try combining instructions using the
1964         REG_EQUAL note from a preceding log-linked instruction.
1965
1966 2004-03-12  Roger Sayle  <roger@eyesopen.com>
1967
1968         * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
1969
1970 2004-03-12  Matt Austern  <austern@apple.com>
1971
1972         * target.h (struct gcc_target): New target hook, unwind_label.
1973         * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
1974         * output.h (default_emit_unwind_label): New function.
1975         * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
1976         (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
1977         (TARGET_SUPPORTS_HIDDEN): New target macro.
1978         * dwarf2out.c (struct dw_fde_struct): Add field for function decl
1979         that corresponds to this FDE.
1980         (FRAME_BEGIN_LABEL): Allow target to override default label.
1981         (output_call_frame_info): If FDEs are linknonce, then use extra
1982         indirection for FDE encoding, output a label for each FDE, and
1983         output an empty label for each function without an FDE.
1984         (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
1985         * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
1986         decls with DECL_ONE_ONLY set, if that macro is defined.
1987         (make_decl_one_only): Don't use DECL_COMMON if we're compiling
1988         for a SUPPORTS_ONE_ONLY target.
1989         * config/darwin-protos.h (darwin_unique_section): Declare.
1990         (darwin_asm_named_section): Likewise.
1991         (darwin_section_type_flags): Likewise.
1992         (darwin_non_lazy_pcrel): Likewise.
1993         (darwin_emit_unwind_label): Likewise.
1994         (darwin_make_decl_one_only): Likewise.
1995         * config/darwin.c (machopic_finish): Get rid of tweak that
1996         eliminate stubs for symbols that are defined.
1997         (darwin_encode_section_info): Don't treat weak functions as defined.
1998         (darwin_make_decl_one_only): Define.
1999         (darwin_asm_named_section): Likewise.
2000         (darwin_section_type_flags): Likewise.
2001         (darwin_unique_section): Likewise.
2002         (darwin_emit_unwind_label): Likewise.
2003         (darwin_non_lazy_pcrel): Likewise.
2004         (darwin_asm_output_dwarf_delta): Difference between two labels is
2005         local only if both labels are local.
2006         * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
2007         (ASM_MAKE_LABEL_LINKONCE): Likewise.
2008         (TARGET_SUPPORTS_HIDDEN): Likewise.
2009         (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
2010         (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
2011         (FRAME_BEGIN_LABEL): Likewise.
2012         (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
2013         (ASM_DECLARE_FUNCTION_NAME): Likewise.
2014         (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
2015         (TARGET_ASM_UNIQUE_SECTION): Define.
2016         (EH_FRAME_SECTION_NAME): Define.
2017         (EH_FRAME_SECTION_ATTR): Likewise.
2018         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2019         (TARGET_ASM_NAMED_SECTION): Likewise.
2020         (TARGET_SECTION_TYPE_FLAGS): Likewise.
2021         * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
2022         TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
2023         TARGET_ASM_EMIT_UNWIND_LABEL.
2024
2025 2004-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2026
2027         * builtins.c (expand_builtin_mathfn): Add pow10* to the
2028         existing exp10* case.
2029         (expand_builtin): Likewise.
2030
2031 2004-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
2032
2033         * doc/tm.texi (registers) <Values in Registers>: Add
2034         entry for REGMODE_NATURAL_SIZE.
2035
2036 2004-03-12  Richard Henderson  <rth@redhat.com>
2037
2038         PR target/14547
2039         * target.h (struct gcc_target): Move calls substructure before
2040         booleans.  Add split_complex_arg.
2041         * function.c (assign_parms, split_complex_args): Use it.
2042         * calls.c (expand_call): Likewise.
2043         (split_complex_values): Likewise.  Check for splittable types
2044         before allocating memory.
2045         (split_complex_types): Likewise.
2046         * system.h (SPLIT_COMPLEX_ARGS): Poison.
2047         * expr.h (SPLIT_COMPLEX_ARGS): Remove.
2048         * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
2049         * config/alpha/alpha.c (alpha_split_complex_arg): New.
2050         (TARGET_SPLIT_COMPLEX_ARG): New.
2051         * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
2052         * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
2053         (rs6000_override_options): Zap it for non-AIX.
2054         (rs6000_function_value): Use targetm.calls.split_complex_arg.
2055         * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
2056         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
2057         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
2058         * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
2059         SPLIT_COMPLEX_ARGS entry.
2060
2061 2004-03-11  Richard Henderson  <rth@redhat.com>
2062
2063         * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
2064         (alpha_lookup_xfloating_lib_func): Use them, return rtx.
2065         (alpha_emit_xfloating_arith): Update to match.
2066         (alpha_emit_xfloating_compare): Likewise.
2067         (alpha_emit_xfloating_cvt): Likewise.
2068         (alpha_emit_xfloating_libcall): Take already built symbol,
2069         mark call const.
2070         * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
2071         op1 in a register.
2072
2073 2004-03-11  Richard Henderson  <rth@redhat.com>
2074
2075         PR target/14539
2076         * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
2077
2078         * simplify-rtx.c (simplify_relational_operation): Fix typo.
2079
2080 2004-03-11  Richard Henderson  <rth@redhat.com>
2081
2082         PR middle-end/14477
2083         * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
2084
2085 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
2086
2087         PR target/14262
2088         * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
2089         defined, pass small BLKmode values in registers in the low-order part.
2090
2091 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
2092
2093         * combine.c (if_then_else_cond): Check for NULL return value of
2094         simplify_gen_subreg.
2095
2096 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
2097
2098         PR target/14496
2099         * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
2100         TARGET_SINGLE_FLOAT.
2101
2102 2004-03-11  Steve Ellcey  <sje@cup.hp.com>
2103
2104         * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
2105         * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
2106         * config/ia64/ia64.c (ia64_init_libfuncs): New.
2107         (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
2108
2109 2004-03-11  Roger Sayle  <roger@eyesopen.com>
2110
2111         * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
2112         -((int)X>>C) where C is an integer constant one bit less than the
2113         size of X into (unsigned)X>>C.  Similarly for unsigned->signed.
2114         (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
2115
2116         * simplify-rtx.c (simplify_unary_operation): Also implement the
2117         above transformations at the RTL level.
2118
2119 2004-03-11  Alan Modra  <amodra@bigpond.net.au>
2120
2121         * real.c (encode_ibm_extended): Do round low word.
2122
2123 2004-03-11  Ben Elliston  <bje@wasabisystems.com>
2124
2125         * config/arm/arm.md (is_xscale): Comment this attribute and move
2126         it a bit further up in the file, closer to related attributes.
2127
2128 2004-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
2129
2130         * config/host-solaris.c (sol_gt_pch_use_address): Add
2131         missing terminating marker to comment.
2132
2133 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
2134
2135         * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
2136         (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
2137         (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
2138         (*movsf_mips16, *movdf_mips16):  Name unnamed patterns.  Use
2139         move_operand as source predicate in all cases.
2140         (*movdi_32bit): Renamed from movdi_internal.  Remove 'F' constraint.
2141         Test reg_or_0_operand.  Use move_operand as source predicate.
2142         (*movdi_64bit): Renamed from movdi_internal2.  Test reg_or_0_operand.
2143         (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
2144         (*movsi_internal): Renamed from movsi_internal.  Test reg_or_0_operand.
2145         (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
2146         (*movhi_internal): Renamed from movhi_internal.  Test reg_or_0_operand.
2147         Use move_operand as source predicate.  Remove 'K' constraint.
2148         (*movqi_internal): Likewise movqi_internal.
2149         (*movsf_hardfloat): Renamed from movsf_internal1.  Test
2150         reg_or_0_operand.  Use move_operand as source predicate.
2151         (*movsf_softfloat): Likewise movsf_internal2.
2152         (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
2153         (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
2154         (*movdf_softfloat): Likewise movdf_internal2.
2155         * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
2156         for DImode if !TARGET_64BIT.
2157         (mips_legitimize_move): Simplify accordingly.
2158
2159 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
2160
2161         PR/14362
2162         * var-tracking.c (struct variable_def): Added field refcount.
2163         (variable_htab_free): Decrease the refcount and delete variable
2164         only if there are no more references.
2165         (unshare_variable): New function.
2166         (vars_copy_1): Increase refcount instead of copying the variable.
2167         (variable_union): Share the variables where possible, unshare
2168         the variables if needed.
2169         (variable_different_p): Return false if var1 and var2 are
2170         the same structure.
2171         (variable_was_changed): Init the refcount of new variable.
2172         (set_frame_base_location): Unshare variable if needed.
2173         (set_variable_part): Init the refcount of new variable.
2174         Unshare the variables if needed.
2175         (delete_variable_part): Unshare the variables if needed.
2176         (emit_notes_for_differences_1): Init the refcount of new variable.
2177         (vt_add_function_parameters): Do not add function parameters to
2178         IN set of ENTRY_BLOCK_PTR because it is unused anyway.
2179         (vt_initialize): Do not add frame_base_decl to IN set of
2180         ENTRY_BLOCK_PTR because it is unused anyway.
2181
2182 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
2183
2184         * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
2185         (vars_copy): Likewise.
2186         (variable_union): Likewise.
2187         (set_variable_part): Likewise.
2188         (delete_variable_part): Likewise.
2189
2190 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
2191
2192         * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
2193         ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
2194         config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
2195         config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
2196         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2197         config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
2198         config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
2199         config/pdp11/pdp11.h, config/rs6000/rs6000.c,
2200         config/stormy16/stormy16.c: Fix comment typos and formatting.
2201
2202 2004-03-11  Nathanael Nerode  <neroden@gcc.gnu.org>
2203
2204         * configure: Regenerate, since I forgot to while committing Paolo's
2205         changes.
2206
2207 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
2208
2209         PR ada/14131
2210         Move language detection to the top level.
2211         * configure.ac: Remove code to detect languages,
2212         it now lives exclusively in the top level.
2213         * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
2214         top level, renamed to ACX_PROG_GNAT.
2215
2216 2004-03-10  Richard Henderson  <rth@redhat.com>
2217
2218         * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
2219         extra arguments.
2220         * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
2221         and host_xmake_file fragments.
2222         * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
2223         (gt_pch_restore): Similarly for gt_pch_use_address.
2224         (default_gt_pch_get_address): New.
2225         (mmap_gt_pch_get_address): Split out of gt_pch_save.
2226         (default_gt_pch_use_address): Split out of gt_pch_restore.
2227         (mmap_gt_pch_use_address): Likewise.
2228         * hooks.c (hook_voidp_size_t_null): Remove.
2229         (hook_bool_voidp_size_t_false): Remove.
2230         * hooks.h: Likewise.
2231         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
2232         default_ or mmap_ definitions.
2233         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
2234         * hosthooks.h (struct host_hooks): Update gt_pch_get_address
2235         and gt_pch_use_address.
2236         * config/host-linux.c, config/host-solaris.c: New files.
2237         * config/x-linux, config/x-solaris: New files.
2238         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
2239         Update for changed definition.
2240         (darwin_rs6000_gt_pch_use_address): Likewise.
2241         * doc/hostconfig.texi: Update docs.
2242
2243 2004-03-10  Richard Henderson  <rth@redhat.com>
2244
2245         PR c/14517
2246         * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
2247         except for pedantic c90 mode.
2248
2249 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
2250
2251         * configure.ac: Bump AC_PREREQ to 2.59.
2252         * configure: Regenerate.
2253
2254 2004-03-10  Uros Bizjak  <uros@kss-loka.si>
2255
2256         * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
2257         (exp10_optab, exp2_optab): Define corresponding macros.
2258         * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
2259         * genopinit.c (optabs): Implement exp10_optab and exp2_optab
2260         using exp10?f2 and exp2?f2 patterns.
2261         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
2262         using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
2263         (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
2264         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2265
2266         * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
2267         exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
2268         exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
2269
2270 2004-03-10  Anthony Green  <green@redhat.com>
2271
2272         * doc/invoke.texi (ARM Options): Fix -mpfu typo.
2273
2274 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
2275
2276         * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
2277         (TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
2278         __LONGDOUBLE128.
2279         * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
2280         TARGET_OS_AIX_CPP_BUILTINS.
2281         * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
2282         * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
2283         * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
2284         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
2285         previous change.
2286
2287 2004-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2288
2289         * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
2290
2291 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
2292
2293         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2294         __LONGDOUBLE128 on AIX.
2295
2296 2004-03-10  Andrew Haley  <aph@redhat.com>
2297
2298         PR optimization/14381
2299         * function.c (expand_function_end): Emit a blockage insn before
2300         the epilogue when -fnon-call-exceptions is used.
2301
2302         * except.c (expand_start_all_catch): Make comment more accurate.
2303
2304 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
2305
2306         PR target/14480
2307         * config/rs6000/t-rtems: Add missing file on branch.
2308
2309 2004-03-10  Ulrich Weigand  <uweigand@de.ibm.com>
2310
2311         * dbxout.c (dbxout_symbol_location): Do not output references
2312         to optimized-out constant pool symbols.
2313
2314 2004-03-10  Andreas Schwab  <schwab@suse.de>
2315
2316         * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
2317         twon34_r.
2318
2319 2004-03-09  James E Wilson  <wilson@specifixinc.com>
2320
2321         * alias.c (alias_sets_might_conflict_p): New.
2322         * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
2323         * common.opt (Wstrict-aliasing=): New.
2324         * flags.h (warn_strict_aliasing): Change type to int.
2325         * opts.c (warn_strict_aliasing): Change type to int.
2326         (common_handle_option): Handle OPT_Wstrict_aliasing_.
2327         * tree.h (alias_sets_might_conflict_p): Declare it.
2328         * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
2329
2330 2004-03-10  Roman Zippel  <zippel@linux-m68k.org>
2331
2332         PR bootstrap/12371
2333         * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
2334         (CALL_USED_REGISTERS): Likewise.
2335         (REG_CLASS_CONTENTS): Likewise.
2336         (REG_ALLOC_ORDER): New.
2337         (REGNO_REG_CLASS): Use regno_reg_class.
2338         * config/m68k/m68k.c: Add regno_reg_class array.
2339
2340 2004-03-09  Steve Ellcey  <sje@cup.hp.com>
2341
2342         * config/ia64/ia64.md (divsi3): Fix algorithm.
2343           (udivsi3): Ditto.
2344           (setf_exp_xf): Remove '*' from name.
2345         * testsuite/gcc.dg/20040309-1.c: New test.
2346
2347 2004-03-09  Ian Lance Taylor  <ian@wasabisystems.com>
2348
2349         * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
2350         * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
2351         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
2352         * config/sparc/sparc.c (sparc_aout_select_section): Remove.
2353         (sparc_aout_select_rtx_section): Don't check
2354         SUNOS4_SHARED_LIBRARIES.
2355         * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
2356
2357 2004-03-10  Hans-Peter Nilsson  <hp@axis.com>
2358
2359         PR other/14474
2360         * doc/md.texi (Pattern Ordering, Dependent Patterns)
2361         (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
2362         INTERNALS".
2363
2364 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
2365
2366         * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
2367         (LIBGCC_SPEC): Update to match.
2368
2369 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
2370
2371         * c-decl.c (last_function_parms, last_function_parm_tags)
2372         (last_function_parm_others, current_function_parms)
2373         (current_function_parm_tags, current_function_parm_others):
2374         Delete.
2375         (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
2376         New macros.
2377         (grokdeclarator): For function definitions, save the arg-info
2378         block from the declarator in DECL_ARGUMENTS.
2379         (grokparms): Do not write to last_function_parm*.  Use ARG_INFO_*
2380         macros to operate on arg-info block.  Can assume ARG_INFO_PARMS
2381         contains only PARM_DECLs.  Improve diagnostics.
2382         (get_parm_info): Use ARG_INFO_* macros.  Improve comments and
2383         diagnostics.  Disable some expensive checks if not ENABLE_CHECKING.
2384         (store_parm_decls_newstyle): Take the function to operate on,
2385         and an arg-info block, as arguments; don't get anything from
2386         current_function_* globals.
2387         (store_parm_decls_oldstyle): Likewise.
2388         (store_parm_decls): Pass fndecl and its arg-info block down to
2389         store_parm_decls_newstyle/oldstyle.  Send functions with empty
2390         argument lists through store_parm_decls_newstyle to reduce
2391         overhead.
2392         (pushdecl): Comment on the problems with the call to copy_node.
2393         Clear DECL_ARGUMENTS of the old node after copying it, if it
2394         is an arg-info block instead of a chain of decls.
2395         (start_function): Do not manipulate current_function_parm* or
2396         last_function_parm*.
2397
2398 2004-03-09  Roger Sayle  <roger@eyesopen.com>
2399             Andrew Pinski  <pinskia@physics.uc.edu>
2400
2401         * ifcvt.c (noce_try_sign_mask): New function to transform
2402         "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
2403         (noce_process_if_block): Call noce_try_sign_mask.
2404
2405 2004-03-09  Andrew Pinski  <apinski@apple.com>
2406
2407         * c-typeck.c (tagged_types_tu_compatible_p):
2408         Fix typo.
2409
2410 2004-03-09  Roger Sayle  <roger@eyesopen.com>
2411
2412         * simplify-rtx.c (simplify_const_relational_operation): New function
2413         renamed from simplify_relational_operation.
2414         (simplify_relational_operation): Change prototype to accept an
2415         additional mode argument.  Call simplify_const_relational_operation.
2416         (simplify_gen_relational): Update simplify_relational_operation call.
2417         (simplify_ternary_operation): Update simplify_relational_operation
2418         subroutine call to use simplify_const_relational_operation instead.
2419
2420         * rtl.h (simplify_const_relational_operation): Prototype here.
2421         (simplify_relational_operation): Add addtional mode argument.
2422
2423         * combine.c (combine_simplify_rtx): Update calls to
2424         simplify_relational_operation.
2425         (simplify_set): Likewise.
2426         (gen_binary): Likewise.
2427         * cse.c (fold_rtx): Likewise.
2428         * dojump.c (compare_from_rtx): Likewise.
2429         (do_compare_rtx_and_jump): Likewise.
2430         * integrate.c (subst_constants): Likewise.
2431         * unroll.c (simplify_cmp_and_jump_insns): Likewise.
2432
2433 2004-03-09  Kazu Hirata  <kazu@cs.umass.edu>
2434
2435         * config/m32r/m32r.md: Remove all define_peephole's.
2436
2437 2004-03-09  Alan Modra  <amodra@bigpond.net.au>
2438
2439         * config/rs6000/rs6000.md: Remove trailing whitespace.
2440
2441 2004-03-08  Eric Christopher  <echristo@redhat.com>
2442
2443         * Makefile.in (site.exp): Add libiconv variable definition.
2444
2445 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
2446
2447         * configure: Regenerate for config/accross.m4 correction.
2448
2449 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
2450
2451         PR target/14480
2452         * config/rs6000/t-rtems: Add missing file on branch.
2453
2454 2004-03-08  Roger Sayle  <roger@eyesopen.com>
2455
2456         PR middle-end/14289
2457         * c-typeck.c (c_mark_addressable): A register variable should
2458         be considered global if its not automatic, i.e. TREE_PUBLIC,
2459         TREE_STATIC or DECL_EXTERNAL.
2460         * function.c (put_var_into_stack): Call abort when placing a
2461         hard register into the stack, if x_parm_reg_stack_loc is NULL.
2462
2463 2004-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
2464
2465         * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
2466         ("*extendqisi2_short_displ"): Likewise.
2467
2468 2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
2469
2470         * config/pdp11/pdp11.c (comparison_operator_index): Remove.
2471         (comp_operator): Likewise.
2472         * config/pdp11/pdp11-protos.h: Remove corresponding
2473         prototypes.
2474
2475 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
2476
2477         * expr.c (highest_pow2_factor_for_type): Rename into
2478         highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
2479         TYPE_ALIGN when the target is a COMPONENT_REF.
2480         (expand_assignment): Ajust call to highest_pow2_factor_for_type.
2481
2482 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
2483
2484         * config/rs6000/rs6000.c: Formatting fix.
2485         (legitimate_offset_address_p): Correct offset range check.
2486
2487         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
2488         -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
2489         and MASK_STRING.
2490
2491 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
2492
2493         * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
2494         for little endian.
2495         ("ashrdi3_no_power"): Disable for little endian.
2496         (ashrdi3): Same.
2497
2498 2004-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2499
2500         * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
2501         builtins.
2502
2503 2004-03-08  Hans-Peter Nilsson  <hp@axis.com>
2504
2505         PR target/14471
2506         * configure.ac (Target-specific assembler checks) <cris-*-*>: New
2507         case, checking for -no-mul-bug-abort option.
2508         * configure, config.in: Regenerate.
2509         * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
2510         and -mno-mul-bug-workaround.
2511         * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
2512         ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
2513         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
2514         Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
2515         * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
2516         sure mulu.d is not last on cache-line.
2517         * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
2518         into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
2519         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
2520         (TARGET_SWITCHES): New options -mmul-bug-workaround and
2521         -mno-mul-bug-workaround.
2522         (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
2523         (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
2524         * config/cris/cris.c (cris_operand_extend_operator): Clarify
2525         relation to MULT in head comment.
2526         (cris_op_str): Abort for MULT.
2527         (cris_print_operand) <case '!'>: New case.
2528
2529 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
2530
2531         PR debug/11983
2532         * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
2533         dw_val_class_vec.  Replace use throughout file.
2534         (dw_float_const): Delete.
2535         (dw_vec_const): New.
2536         (dw_val_struct_union): Rename val_float to val_vec.  Replace use
2537         throughout file.
2538         (add_AT_vec): Rename from add_AT_float.  Add elt_size param.
2539         (same_dw_val_p): Adjust vec comparison.  Use memcmp.
2540         (size_of_die): Adjust dw_val_class_vec sizing.
2541         (output_die): Output dw_val_class_vec.
2542         (insert_int, extract_int, insert_float): New functions.
2543         (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
2544         Handle CONST_VECTOR.
2545         (add_location_or_const_value_attribute): Handle CONST_VECTOR.
2546
2547 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
2548
2549         * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
2550         AltiVec abi cannot co-exist.
2551
2552         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
2553
2554 2004-03-07  Jan Hubicka  <jh@suse.cz>
2555
2556         * except.c (emit_to_new_bb_before):  Break fallthru edges.
2557
2558 2004-03-07  Stephane Carrez  <stcarrez@nerim.fr>
2559
2560         * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
2561         ("*lshrsi3"): Also accept an immediate for 68HC12.
2562         ("*ashrsi3_const"): Likewise.
2563         ("*ashrsi3"): Likewise.
2564         ("*ashlsi3_const"): Likewise.
2565         ("*ashlsi3"): Likewise.
2566         ("cmphi_1_hc12"): Compare two hard register by pushing them and
2567         comparing with a pop; don't use a split for that.
2568         ("cmphi split"): Disable compare split for 68HC12.
2569
2570         * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
2571         the status operands if they have side effects.
2572
2573 2004-03-07  Kazu Hirata  <kazu@cs.umass.edu>
2574
2575         * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
2576         definition.
2577         * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
2578         config/h8300/h8300.h, config/ia64/ia64.h,
2579         config/mcore/mcore.h, config/mmix/mmix.h,
2580         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
2581         config/stormy16/stormy16.h, config/v850/v850.h,
2582         config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
2583         * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
2584         definition.
2585
2586 2004-03-07  Roger Sayle  <roger@eyesopen.com>
2587
2588         * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
2589         <XOR_EXPR>: Fold x ^ x as zero.
2590         <AND_EXPR>: Fold x & x as x.
2591
2592 2004-03-07  Roger Sayle  <roger@eyesopen.com>
2593
2594         * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
2595         "foo++ == const" into "++foo == const+incr".
2596
2597 2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
2598
2599         * config/mips/mips.c (mips_in_small_data_p): Return false if
2600         TARGET_ABICALLS.
2601
2602 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
2603
2604         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
2605         the stack register.
2606         (expand_prologue): Don't make an interrupt or a trap handler a far
2607         symbol.
2608         (m68hc11_initial_elimination_offset): Likewise.
2609
2610 2004-03-06  Richard Henderson  <rth@redhat.com>
2611
2612         * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
2613
2614 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
2615
2616         * config/ns32k/ns32k-protos.h: Add a prototype for
2617         ns32k_notice_update_cc.
2618         * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
2619         * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
2620         ns32k_notice_update_cc.
2621
2622 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
2623
2624         * config/s390/s390.md ("load_multiple", "*load_multiple_di",
2625         "*load_multiple_si"): Allow only if reload_completed.
2626         ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
2627         Likewise.
2628
2629 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
2630
2631         * config/vax/vax-protos.h: Add a prototype for
2632         vax_notice_update_cc.
2633         * config/vax/vax.c (vax_notice_update_cc): New.
2634         * config/vax/vax.h (NOTICE_UPDATE_CC): Call
2635         vax_notice_update_cc.
2636
2637 2004-03-06  David Edelsohn  <edelsohn@gnu.org>
2638
2639         * collect2.c (main): Only export initfunc and finifunc if
2640         LD_INIT_SWITCH not defined.
2641         (scan_prog_file): Only export constructors and destructors if
2642         LD_INIT_SWITCH not defined.  Only export symbols not found in
2643         shared objects.
2644
2645 2004-03-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2646
2647         * pa.md (icacheflush): Reorder operands to make match_scratch operand
2648         last.
2649         * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
2650         from calls to gen_icacheflush.
2651
2652 2004-03-06  Richard Henderson  <rth@redhat.com>
2653
2654         * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
2655         (TARGET_LONG_DOUBLE_128): New.
2656         (TARGET_SWITCHES): Add long-double-{128,64}.
2657         (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
2658         (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
2659         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
2660         (WIDEST_HARDWARE_FP_SIZE): New.
2661         (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
2662         * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
2663         if TARGET_VAX_FLOAT.
2664         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
2665         (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
2666
2667 2004-03-06  Richard Henderson  <rth@redhat.com>
2668
2669         * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
2670         botched rtx class conversion.
2671
2672 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2673
2674         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
2675         BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
2676
2677         * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
2678         macros.
2679         * fold-const.c (fold_mathfn_compare, fold): Likewise.
2680
2681 2004-03-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
2682
2683         PR target/14343
2684         * config/i386/i386.md (movv2di_internal): Conditionalize on
2685         TARGET_SSE, not TARGET_SSE2.
2686
2687 2004-03-05  Chris Demetriou  <cgd@broadcom.com>
2688
2689         * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
2690         duplicated line.
2691
2692 2004-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2693
2694         * builtins.c: Consistently use logN not log* in comments.
2695
2696 2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>
2697
2698         * rtl.h (mem_expr_equal_p): Function prototype added.
2699         * cfgcleanup.c (merge_memattrs): New function.
2700         (flow_find_cross_jump): Call merge_memattrs for matching insns.
2701         * emit-rtl.c (mem_expr_equal_p): New function.
2702
2703 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
2704
2705         * objc/objc-act.c (synth_module_prologue): Const-qualify
2706         objc_selector type if using the GNU runtime; fix generated
2707         signatures for objc_msg_lookup and objc_msg_lookup_super
2708         to match what GNU ObjC headers provide; reformat and clean up.
2709         (synth_self_and_ucmd_args): Use previously constructed (and
2710         hence possibly const-qualified) objc_selector type.
2711
2712 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
2713
2714         * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
2715
2716 2004-03-05  Jason Merrill  <jason@redhat.com>
2717
2718         * tree.h (TYPE_HASH): Use TYPE_UID.
2719         (TREE_HASH): New macro with old definition of TYPE_HASH.
2720         * tree.c (build_type_attribute_variant): Use iterative_hash_object.
2721         (build_array_type, build_function_type): Likewise.
2722         (build_method_type_directly): Likewise.
2723         (build_offset_type, build_complex_type): Likewise.
2724         (type_hash_list, attribute_hash_list): Likewise. Now static.
2725         * except.c: s/TYPE_HASH/TREE_HASH/.
2726
2727 2004-03-05  Bob Wilson  <bob.wilson@acm.org>
2728
2729         * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
2730         (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
2731         __va_ndx by 2 words when referencing an argument on the stack.
2732         (xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
2733         words when an arg on the stack is first seen.
2734
2735 2004-03-05  Paul Brook  <paul@codesourcery.com>
2736
2737         * arm.h (ARM_FLAG_VFP): Remove.
2738         (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
2739         * netbsd-elf.h (ARM_FLAG_VFP): Remove.
2740
2741 2004-03-05  Paul Brook  <paul@codesourcery.com>
2742
2743         * function.c (assign_parms): Include pretend alignment offset.
2744
2745 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2746
2747         * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
2748         FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
2749
2750 2004-03-05  Ian Lance Taylor  <ian@wasabisystems.com>
2751
2752         * configure.ac: When passing --enable-languages to subdir
2753         configure when host != build, make sure we don't pass an empty
2754         value.
2755         * configure: Regenerate.
2756
2757 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
2758
2759         PR 13577
2760         * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
2761         options.
2762
2763 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
2764
2765         * simplify-rtx.c (simplify_relational_operation): If
2766         flag_wrapv is set, do not move terms between the two
2767         side of a relational operator.
2768
2769 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
2770
2771         * rtlanal.c: Include target.h and output.h
2772         (rtx_cost, address_cost, default_address_cost): Move from...
2773         * cse.c (rtx_cost, address_cost, default_address_cost):
2774         ... this file.
2775         * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
2776         * Makefile.in: Adjust dependencies.
2777
2778 2004-03-05  Paolo Bonzini <bonzini@gnu.org>
2779
2780         * cse.c (cse_end_of_basic_block): Make static.
2781         * local-alloc.c (function_invariant_p): Move to
2782         reload1.c.
2783         * loop.c (libcall_other_reg, record_excess_regs):
2784         Make static.
2785         * reload1.c (function_invariant_p): Moved here
2786         from local-alloc.c, made static.
2787         * rtl.h (cse_end_of_basic_block, function_invariant_p,
2788         libcall_other_reg, record_excess_regs): Remove
2789         declarations.
2790
2791 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
2792
2793         * config/m32r/m32r.c (signed_comparison_operator): Add a
2794         missing parenthesis.
2795
2796 2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
2797
2798         * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
2799         going to call mmap again.  Read the file into the right place.
2800         Give a fatal error if we have to relocate.
2801
2802 2004-03-04  Bob Wilson  <bob.wilson@acm.org>
2803
2804         * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
2805         (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
2806
2807 2004-03-05  Hans-Peter Nilsson  <hp@axis.com>
2808
2809         PR other/14354
2810         * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
2811         round the same.  When rounding, clear bits that would cause a
2812         second rounding in pack_d.
2813         (_fpmul_parts): Ditto.  Remove #if 0:d code.
2814
2815 2004-03-04  Ziemowit Laski  <zlaski@apple.com>
2816
2817         PR c++/14425, c++/14426
2818         * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
2819         vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
2820         Change C++ definitions to accept a 'const int' argument;
2821         the prototypes already do.
2822         * config/rs6000/rs6000.c (rs6000_common_init_builtins):
2823         Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
2824         v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
2825         v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
2826         v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
2827         v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
2828         end in ..._int; change them to accept an int instead of a char
2829         as the last parameter.
2830
2831 2004-03-04  Phil Edwards  <phil@codesourcery.com>
2832
2833         * genmultilib:  Change '=' to '-' when translating option names
2834         to directory names.
2835
2836 2004-03-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2837
2838         * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
2839         stack slot for temp used for result of BLKmode but in integral mode.
2840
2841 2004-03-04  Jan Hubicka  <jh@suse.cz>
2842
2843         * reload.c (find_reloads): Reorganize if seqeunce to switch.
2844
2845         * cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
2846         (cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.
2847
2848 2004-03-04  Steve Ellcey  <sje@cup.hp.com>
2849
2850         * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
2851         * testsuite/gcc.dg/20040303-1.c: New test.
2852
2853 2004-03-04  Steven Bosscher  <stevenb@suse.de>
2854
2855         * ppro.md: Rewrite as a DFA pipeline description.
2856         * i386.md: Remove all uses of the ppro_uops attribute.
2857         * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
2858         ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
2859         ix86_sched_reorder, ix86_variable_issue,
2860         struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
2861         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
2862         (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
2863         (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
2864         * athlon.md (athlon_ssecmp_load): Fix comment
2865
2866 2004-03-04  Stuart Hastings  <stuart@apple.com>
2867
2868         * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
2869
2870 2004-03-04  Stuart Hastings  <stuart@apple.com>
2871
2872         * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
2873         686, tell Darwin assembler to allow prefetch insns, non-empty def
2874         of SUBTARGET_OPTION_TRANSLATE_TABLE.
2875
2876 2004-03-04  DJ Delorie  <dj@redhat.com>
2877
2878         PR optimization/14282
2879         * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
2880         between a call and the assignment of its return value.
2881
2882 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2883
2884         * config/h8300/h8300.c: Put a comment for every function.
2885
2886 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2887
2888         * config/h8300/h8300.md: Add comments about peephole2's.
2889
2890 2004-03-04  Steven Bosscher  <stevenb@suse.de>
2891
2892         * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
2893
2894 2004-03-04  Jan Hubicka  <jh@suse.cz>
2895
2896         * cfgcleanup.c (thread_jump): Update call of cselib_init.
2897         * cselib.c (cselib_record_memory): New static variable.
2898         (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
2899         Give up on memories when asked for.
2900         (cselib_init): Accept new argument.
2901         * cselib.h (cselib_init): Update prototype.
2902         * gcse.c (local_cprop_pass): Update call of cselib_init.
2903         * loop.c (load_mems): Update call of cselib_init.
2904         * postreload.c (reload_cse_regs_1): Update call of cselib_init.
2905         * sched-deps.c (sched_analyze): Update call of cselib_init.
2906
2907 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
2908             GP <gp@qnx.com>
2909
2910         * config/rs6000/rs6000.c (output_function_profiler): Append @plt
2911         when compiling PIC.
2912
2913 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
2914
2915         PR/14362
2916         * var-tracking.c (track_expr_p): Do not track variables which
2917         should be ignored for debugging purposes.
2918
2919 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2920
2921         * real.c (encode_ibm_extended): Don't bother rounding low double.
2922         * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
2923         when fmt->pnan < fmt->p.
2924
2925 2004-03-04  Eric Christopher  <echristo@redhat.com>
2926
2927         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
2928         only range of valid arg registers and fixed_regs.
2929
2930 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2931
2932         PR target/14406
2933         * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
2934         (abstf2, abstf2_internal): New define_expand.
2935
2936 2004-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2937
2938         PR optimization/14235
2939         * expr.c (convert_move): Copy the source to a new pseudo
2940         when converting from a sub-word source to a larger-than-word
2941         register which conflicts with the source.
2942
2943 2004-03-03  Zack Weinberg  <zack@codesourcery.com>
2944
2945         PR 13728
2946         * c-decl.c (diagnose_mismatched_decls): Issue an error for two
2947         parameters with the same name, unless one is a forward decl.
2948         Do not issue a redundant-redeclaration warning for forward
2949         decls of parameters.
2950
2951 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
2952
2953         * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
2954         configuration.
2955
2956 2004-03-03  Ian Lance Taylor  <ian@wasabisystems.com>
2957
2958         * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
2959
2960 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2961
2962         * target-def.h (TARGET_OPTF): Delete.
2963         * c-opts.c (TARGET_OPTF): Define.
2964
2965 2004-03-04  Jan Hubicka  <jh@suse.cz>
2966
2967         * cselib.c (cselib_finish): Fix another miss-application of my previous
2968         patch.
2969
2970 2004-03-03  Mike Stump  <mrs@apple.com>
2971
2972         Add framework support for darwin.
2973
2974         * c-incpath.c: Include target.h and machmode.h.
2975         (add_path): Use a consistent style for cpp_dir.  Initialize
2976         p->construct to 0.
2977         (add_cpp_dir_path): New.
2978         (register_include_chains): Add use of extra_includes callback.
2979         (hook_void_int): Add.
2980         (target_c_incpath): Add.
2981         * c-incpath.h (add_cpp_dir_path): New.
2982         (target_c_incpath_s): Add.
2983         (target_c_incpath): Add.
2984         (C_INCPATH_INIT): Add.
2985         * c-opts.c (c_common_missing_argument,
2986         c_common_handle_option): Add -F argument processing.
2987         * c.opt: Add -F argument processing.
2988         * gcc.c (trad_capable_cpp): Add -F argument processing.
2989         * cppfiles.c (find_file_in_dir): Update to use construct
2990         callback.
2991         (search_path_exhausted, cpp_get_path, cpp_get_buffer,
2992         cpp_get_prev): New.
2993         (_cpp_find_file): Use search_path_exhausted.
2994         (make_cpp_dir): Initialize construct to 0.
2995         * cpplib.h (missing_header_cb
2996         cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
2997         (cpp_callbacks): Add missing_header
2998         (cpp_dir): Add construct.
2999         * target-def.h: (TARGET_OPTF): New.
3000         * hooks.c (hook_void_int, hook_void_charptr): Add.
3001         * hooks.h (hook_void_int, hook_void_charptr): Add.
3002         * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
3003         $(MACHMODE_H) dependencies.
3004         * doc/invoke.texi (Darwin Options): Document -F.
3005         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
3006         (TARGET_OPTF): Add.
3007         * fix-header.c (target_c_incpath): Add.
3008
3009         * config/darwin-c.c: Add c-incpath.h include.
3010         (using_frameworks, find_subframework_file,
3011         find_subframework_header, add_system_framework_path,
3012         frameworks_in_use, num_frameworks, max_frameworks,
3013         add_framework, find_framework, struct framework_header,
3014         framework_header_dirs, framework_construct_pathname,
3015         find_subframework_file, add_system_framework_path,
3016         add_framework_path, framework_defaults,
3017         darwin_register_frameworks, find_subframework_header): Add.
3018         * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
3019         (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
3020         (CPP_SPEC): Add __APPLE_CC__ support.
3021         * t-darwin (darwin-c.o): Add c-incpath.h dependency.
3022
3023 2004-03-04  Jan Hubicka  <jh@suse.cz>
3024
3025         * cselib.c (cselib_finish): Fix miss-application of my previous
3026         patch.
3027
3028 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
3029
3030         * hooks.c (hook_tree_tree_identity): New.
3031         * hooks.h: Add a prototype for hook_tree_tree_identity.
3032         * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
3033         instead of MD_ASM_CLOBBERS.
3034         * system.h (MD_ASM_CLOBBERS): Poison.
3035         * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
3036         (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
3037         * target.h (gcc_target): Add md_asm_clobbers.
3038         * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
3039         (ix86_md_asm_clobbers): New.
3040         * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
3041         * doc/tm.texi (MD_ASM_CLOBBERS): Change to
3042         TARGET_MD_ASM_CLOBBERS.
3043
3044 2004-03-03  Stuart Hastings  <stuart@apple.com>
3045
3046         * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
3047
3048 2004-03-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3049
3050         * config/sparc/sparc.c (noov_compare64_op): Fix typo.
3051
3052         * config/sparc/sparc.h (ASM_FLOAT): Delete.
3053         (ASM_DOUBLE): Likewise.
3054         (ASM_LONGDOUBLE): Likewise.
3055         * config/sparc/pbd.h (ASM_INT_OP): Delete.
3056
3057 2003-03-03  Richard Henderson  <rth@redhat.com>
3058
3059         PR opt/13862
3060         * cselib.c (cselib_record_sets): Don't record multiple sets in
3061         asm insns.
3062
3063 2004-03-03  Mostafa Hagog  <mustafa@il.ibm.com>
3064
3065         * common.opt: Add description of the new -fgcse-after-reload flag.
3066
3067         * flags.h (flag_gcse_after_reload): Declaration of global variable.
3068
3069         * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
3070         reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
3071         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
3072         get_bb_avail_insn, hash_scan_set_after_reload,
3073         compute_hash_table_after_reload, eliminate_partially_redundant_loads,
3074         gcse_after_reload, get_bb_avail_insn): New functions to implement
3075         gcse-after-reload.
3076         (gcse_after_reload_main): New function, the main entry point to
3077         gcse-after-reload.
3078
3079         * rtl.h (gcse_after_reload_main): Declaration of the new function.
3080
3081         * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
3082
3083         * toplev.c (flag_gcse_after_reload): Initialization.
3084
3085         * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
3086
3087         * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
3088         PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
3089         the gcse after reload optimization.
3090
3091         * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
3092         GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
3093         parameters.
3094
3095         * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
3096
3097 2004-03-03  Nicolas Pitre <nico@cam.org>
3098
3099         * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
3100         small negative values.
3101
3102 2004-03-03  Jan Hubicka  <jh@suse.cz>
3103
3104         * cselib.c (hash_table):  Remove GTY marker.
3105         (reg_values): Turn into array.
3106         (used_regs): Likewise.
3107         (n_used_regs): New static variable.
3108         (reg_values_old): Kill.
3109         (clear_table): Update uses of arrays.
3110         (cselib_lookup): Likewise.
3111         (cselib_record_set): Likewise.
3112         (cselib_init): Likewise.
3113         (cselib_finish): Likewise.
3114         (cselib_udpate_varray_sizes): Kill.
3115         * cselib.h (cselib_update_varray_sizes): Kill.
3116
3117 2004-03-03  Paul Brook  <paul@codesourcery.com>
3118
3119         * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
3120
3121 2004-03-03  Jan Hubicka  <jh@suse.cz>
3122
3123         * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
3124         Rename from ...; make statistics transparent.
3125         (ggc_alloc_cleared, ggc_realloc_stat): ... these.
3126         (loc_descriptor): New structure.
3127         (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
3128         add_statistics):
3129         New static function.
3130         (ggc_record_overhead, dump_statistics): New global function.
3131         * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
3132         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
3133         from ...; accept locations
3134         (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
3135         ggc_realloc, ggc_alloc_typed):  ... this one.
3136         from ...; accept locations
3137         * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
3138         ggc_alloc_stat): Rename from ... ; pass locations
3139         * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
3140         ... this one.
3141         (ggc_alloc_stat): Record overehead.
3142         * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
3143         ggc_realloc, ggc_alloc_typed):  Turn to macros
3144         (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
3145         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
3146         (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
3147         * langhooks.h (lhd_make_node): Declare.
3148         (LANG_HOOKS_MAKE_TYPE): Default to new function,
3149         * langhooks.c (lhd_make_node): New.
3150         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
3151         locations.
3152         (rtx_alloc, swallow_copy_rtx): ... this one.
3153         * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
3154         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
3155         * toplpev.c (finalize): Dump stats.
3156         * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
3157         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
3158         Rename from ... ; pass locators.
3159         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
3160         build?,  build_decl): Declare.
3161         * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
3162         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
3163         Declare.
3164         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
3165         build?,  build_decl): New macros.
3166         * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
3167         * statistics.h: New file.
3168
3169 2004-03-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3170             Richard Sandiford  <rsandifo@redhat.com>
3171
3172         * config/mips/mips.h (MASK_FIX_SB1): Bump.
3173         (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
3174         (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
3175         * config/mips/mips.c (mips_output_division): Fill the branch delay
3176         slot with a nop if TARGET_FIX_R4000.  Extend R4000 workarounds to
3177         TARGET_FIX_R4400.
3178         (mips_output_division): Adjust accordingly.
3179         (override_options): Make -march=r4400 imply -mfix-r4400 by default.
3180         * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
3181
3182 2004-03-03  Paolo Bonzini  <bonzini@gnu.org>
3183
3184         * alias.c (rtx_equal_for_memref_p): Use predicates
3185         to test rtx classes and new rtx class codes, possibly
3186         splitting conditionals that tested against '<' and 'o'.
3187         * caller-save.c (save_call_clobbered_regs): Likewise.
3188         * combine.c (contains_muldiv, find_split_point, subst,
3189         combine_simplify_rtx, simplify_if_then_else,
3190         simplify_set, simplify_logical, expand_compound_operation,
3191         make_compound_operation, if_then_else_cond, known_cond,
3192         apply_distributive_law, cached_nonzero_bits,
3193         cached_num_sign_bit_copies, simplify_shift_const,
3194         gen_binary, simplify_comparison, update_table_tick,
3195         record_value_for_reg, get_lsat_value_validate): Likewise.
3196         * cse.c (mention_regs, find_best_addr, find_comparison_args,
3197         fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
3198         Likewise.
3199         * emit-rtl.c (copy_insn_1): Likewise.
3200         * expr.c (force_operand): Likewise.
3201         * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
3202         * flow.c (notice_stack_pointer_modification_1,
3203         invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
3204         and_reg_cond, elim_reg_cond): Likewise.
3205         * function.c (update_epilogue_consts): Likewise.
3206         * genattrtab.c (attr_rtx_1): Likewise.
3207         * genopinit.c (gen_insn): Likewise.
3208         * integrate.c (subst_constants): Likewise.
3209         * jump.c (reversed_comparison_code_parts,
3210         reversed_comparison_code, delete_related_insns,
3211         rtx_renumbered_equal_p): Likewise.
3212         * local-alloc.c (block_alloc): Likewise.
3213         * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
3214         canonicalize_condition): Likewise.
3215         * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
3216         Likewise.
3217         * optabs.c (add_equal_node, expand_binop): Likewise.
3218         * predict.c (estimate_probability): Likewise.
3219         * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
3220         * recog.c (validate_replace_rtx_1, comparison_operator,
3221         offsettable_address_p, constrain_operands): Likewise.
3222         * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
3223         Likewise.
3224         * regclass.c (scan_one_insn): Likewise.
3225         * regmove.c (stable_and_no_regs_but_for_p): Likewise.
3226         * regrename.c (kill_autoinc_value): Likewise.
3227         * reload.c (find_reusable_reload, find_reloads,
3228         reg_overlap_mentioned_for_reload_p): Likewise.
3229         * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
3230         * rtl.c (copy_rtx): Likewise.
3231         * rtl.h (CONSTANT_P, INSN_P): Likewise.
3232         * rtlanal.c (commutative_operand_precedence): Likewise.
3233         * sched-deps.c (conditions_mutex_p): Likewise.
3234         * sched-rgn.c (is_cfg_nonregular): Likewise.
3235         * simplify-rtx.c (simplify_gen_binary,
3236         simplify_gen_relational, simplify_replace_rtx,
3237         simplify_unary_operation, simplify_binary_operation,
3238         simplify_ternary_operation, simplify_rtx): Likewise.
3239         * unroll.c (reg_dead_after_loop): Likewise.
3240         * config/alpha/alpha.c (alpha_swapped_comparison_operator,
3241         print_operand): Likewise.
3242         * config/arc/arc.c (proper_comparison_operator): Likewise.
3243         * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
3244         Likewise.
3245         * config/avr/avr.c (_reg_unused_after): Likewise.
3246         * config/frv/frv.c (frv_ifcvt_modify_tests,
3247         frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
3248         * config/i386/i386.c (ix86_comparison_operator,
3249         ix86_carry_flag_operator, fcmov_comparison_operator,
3250         arith_or_logical_operator, print_operand,
3251         ix86_expand_binary_operator, ix86_binary_operator_ok):
3252         Likewise.
3253         * config/i386/i386.md: Likewise.
3254         * config/ia64/ia64.c (not_postinc_memory_operand,
3255         ia64_print_operand, update_set_flags, errata_emit_nops):
3256         Likewise.
3257         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
3258         CONSTRAINT_OK_FOR_S): Likewise.
3259         * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
3260         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3261         ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
3262         ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
3263         Likewise.
3264         * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
3265         eqne_comparison_operator, signed_comparison_operator):
3266         Likewise.
3267         * config/mips/mips.c (cmp_op, symbolic_expression_p):
3268         Likewise.
3269         * config/mmix/mmix (mmix_foldable_comparison_operator,
3270         mmix_comparison_operator): Likewise.
3271         * config/pa/pa.c (hppa_legitimize_address): Likewise.
3272         * config/rs6000/rs6000.c (stmw_operation,
3273         branch_comparison_operator, trap_comparison_operator,
3274         ccr_bit): Likewise.
3275         * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
3276         * config/s390/s390.c (s390_alc_comparison,
3277         s390_slb_comparison):L Likewise.
3278         * config/sh/sh.c (gen_block_redirect, reg_unused_after):
3279         Likewise.
3280         * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
3281         noov_compare_op, noov_compare64_op, v9_regcmp_op,
3282         emit_hard_tfmode_operation, reg_unused_after)
3283         * doc/md.texi, doc/rtl.texi: Likewise.
3284
3285         * ra-debug.c: Add 2004 to list of copyright years.
3286         * unroll.c: Likewise.
3287
3288         * combine.c (simplify_logical): Remove dummy test,
3289         (apply_distributive_law): Fix typo in comment.
3290         GET_CODE (x) == AND so x is a commutative binary op.
3291         * jump.c (delete_related_insns): simplify loop
3292         condition, move testing of RTX codes inside the loop.
3293         (rtx_renumbered_equal_p): do not use RTX_CODE.
3294         * rtl.c (rtx_class): Declare as enum rtx_class.
3295         * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
3296         Move to RTX_COMM_COMPARE class.
3297         (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
3298         Move to RTX_CONST_OBJ class.
3299         * rtl.h (enum rtx_class): New declaration,
3300         (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
3301         RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
3302         RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
3303         RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
3304         RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
3305         ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
3306         SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
3307         OBJECT_P): New macros.
3308         * config/sparc/sparc.c (noov_compare_op): Remove register
3309         from parameter.
3310
3311 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
3312
3313         * target.h: Remove texi jargons in comments.
3314
3315 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3316
3317         * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
3318         threshold to 0x4f.
3319
3320         Revert:
3321         2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3322         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3323         as well.
3324         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3325         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3326
3327 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3328
3329         * doc/md.texi (cbranchmode4): New.
3330
3331 2004-03-02  Eric Christopher  <echristo@redhat.com>
3332
3333         * config/mips/mips16.S: Change fixsfsi and fixdfsi to
3334         fix_trunc.
3335         * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
3336         * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
3337         * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
3338         * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
3339
3340 2004-03-02  Richard Henderson  <rth@redhat.com>
3341
3342         PR middle-end/11767
3343         * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
3344         * optabs.c (prepare_cmp_insn): Force trapping memories to registers
3345         before the compare, if flag_non_call_exceptions.
3346
3347 2004-03-02  Richard Henderson  <rth@redhat.com>
3348
3349         PR middle-end/14327
3350         * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
3351         emitting the label, not after.
3352
3353 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3354
3355         * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
3356         (m68hc11_mov_addr_mode): Likewise.
3357         (m68hc11_override_options): Initialize them based on target.
3358         (register_indirect_p): Allow a MEM for indirect addressing modes and
3359         use flags to control what is allowed.
3360         (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
3361         supported addressing modes.
3362         (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
3363         (go_if_legitimate_address_internal): Likewise.
3364         (m68hc11_indirect_p): Likewise and check the mode.
3365         (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
3366
3367 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3368
3369         * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
3370         (expand_builtin_setjmp_setup): Use
3371         targetm.builtin_setjmp_frame_value instead of
3372         BUILTIN_SETJMP_FRAME_VALUE.
3373         * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
3374         * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
3375         (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3376         * target.h (gcc_target): Add builtin_setjmp_frame_value.
3377         * targhooks.c (default_builtin_setjmp_frame_value): New.
3378         * targhooks.h: Add a prototype for
3379         default_builtin_setjmp_frame_value.
3380         * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
3381         TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3382
3383 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3384
3385         * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
3386         sequences of moves.
3387         (add peepholes): New peepholes to optimize sequences adding small
3388         constants.
3389         (bset peepholes): New peepholes to transform an OR in a bset form
3390         (bclr peepholes): Likewise for bclr form.
3391         (cmp peepholes): New peepholes to avoid register copies when comparing.
3392
3393 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3394
3395         * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
3396         to separate push from moves.
3397         ("*pushdf_internal"): Likewise.
3398         ("*pushsf_internal"): Likewise.
3399         ("*pushsi_internal"): Likewise.
3400         ("movdi_internal"): Use define_insn_and_split; non push operand.
3401         ("movdf_internal"): Likewise.
3402         ("movsf_internal"): Likewise.
3403         ("movsi_internal"): Likewise.
3404         ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
3405         ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
3406         ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
3407
3408 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3409
3410         * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
3411         ("cmphi_z_used", "cmpqi_z_used"): Likewise.
3412         ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
3413         ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
3414         ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
3415         ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
3416         ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
3417         ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
3418         ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
3419         ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
3420         ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
3421
3422 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3423
3424         * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
3425         (SOFT_XY_REGNUM): Define.
3426         (cmp split): Use the above instead of hard coded numbers.
3427         (8-bit op split): No need to check the mode; allow Q_REG.
3428         (ashift split): Adjust the first operand if it uses the SP and we
3429         are pushing the shifted value.
3430         (plus shift split): Fix when a source is in register D+X.
3431         ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
3432
3433 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3434
3435         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
3436         comparing with Z register.
3437
3438 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3439
3440         * cfgloop.h (struct loop_desc): Removed.
3441         (struct loop): Fields simple, desc and has_desc removed.
3442         (simple_loop_p, count_loop_iterations): Declaration removed.
3443         * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
3444         (unmark_altered, blocks_invariant_registers, unmark_altered_insn
3445         blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
3446         invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
3447         simple_loop_exit_p, variable_initial_value, variable_initial_values,
3448         simple_condition_p, simple_increment, count_strange_loop_iterations,
3449         inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
3450         Removed.
3451         * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
3452
3453 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3454
3455         * genattrtab.c: Don't handle MATCH_INSN.
3456         * genrecog.c: Likewise.
3457         * gensupport.c: Likewise.
3458         * rtl.def (match_insn): Remove.
3459         * doc/md.texi (match_insn, match_insn2): Remove.
3460
3461 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
3462
3463         * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
3464         macro results in memory allocation.
3465
3466 2004-03-02  David O'Brien  <obrien@FreeBSD.org>
3467
3468         * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
3469         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
3470         %(fbsd_dynamic_linker),
3471         (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
3472         config/i386/freebsd.h
3473         * config/arm/freebsd.h: Ditto.
3474         * config/i386/freebsd.h: Ditto.
3475         * config/i386/freebsd64.h: Ditto.
3476         * config/ia64/freebsd.h: Ditto.
3477         * config/rs6000/sysv4.h: Ditto.
3478         * config/sparc/freebsd.h: Ditto.
3479
3480 2004-03-02  Loren James Rittle  <ljrittle@acm.org>
3481
3482         * gcc/doc/install.texi (*-*-freebsd*): Update target information.
3483
3484 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3485
3486         * rtl.def (define_combine): Remove.
3487
3488 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3489
3490         * config/h8300/h8300.md: Tweak formatting.
3491
3492 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3493
3494         * config/h8300/h8300.md (*cmphi_h8300): Rename to
3495         *cmphi_h8300_znvc.
3496         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
3497
3498 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
3499
3500         PR bootstrap/14356
3501         * gcc.c (process_command): Remove const-qualification from argv.
3502         (main): Likewise.
3503
3504 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3505
3506         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
3507         pushqi1_h8300hs_advanced.  Adjust its caller.
3508         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
3509         Adjust its caller.
3510
3511 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
3512
3513         * Makefile.in (install-libgcc, install-multilib): Pass
3514         mkinstalldirs var to libgcc.mk.
3515
3516 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
3517
3518         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
3519         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
3520
3521 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
3522
3523         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
3524         * config/h8300/h8300.md: Split several peephole2's, each into
3525         two.
3526
3527 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3528
3529         * dominance.c (recount_dominator): Handle postdominators.
3530
3531 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
3532
3533         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
3534         (NUM_SYMBOL_TYPES): Likewise.
3535         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
3536         (mips_unspec_address): Declare.
3537         (mips_gotoff_page, mips_gotoff_global): Delete.
3538         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
3539         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
3540         (mips_symbolic_constant_p, mips_symbolic_address_p)
3541         (mips_symbol_insns): Handle new symbol types.
3542         (general_symbolic_operand): New predicate.
3543         (mips_unspec_address): Make extern.
3544         (mips_gotoff_page, mips_gotoff_global): Delete.
3545         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
3546         Handle new symbol types.
3547         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
3548         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
3549         mips_unspec_address directly.
3550         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
3551         the documentation of -mexplicit-relocs.
3552
3553 2004-03-01  Jeff Law  <law@redhat.com>
3554
3555         * fold-const.c (fold): An equality comparison of a non-weak object
3556         against zero has a known result.  Similarly an equality comparison
3557         of the address of two non-weak, unaliased symbols has a known result.
3558
3559         * ggc-page.c (struct page_entry): New field PREV.
3560         (ggc_alloc): Update PREV field appropriately.
3561         (sweep_pages): Likewise.
3562         (ggc_free): Likewise.  Use PREV field rather than loop to
3563         improve ggc_free performance.
3564
3565 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
3566
3567         * config/mips/mips.c (mips_output_division): Use the division
3568         instruction to fill the delay slot of a zero check.
3569         (mips_idiv_insns): Adjust accordingly.
3570
3571 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
3572
3573         * config.gcc: Create a default tmake_file for linux, and use
3574         it in all but two linux clauses.  Comment those two.
3575
3576 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
3577
3578         * combine.c (try_combine):  Do not refer to is_replaced.
3579         (gen_lowpart_for_combine):  Perverse subregs now have a
3580         more politically correct name.
3581         * cse.c (cse_insn): Likewise.
3582         * jump.c: Fix bogus reference to delete_insn.
3583
3584 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
3585
3586         PR debug/14328
3587         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
3588         constants as signed values.
3589
3590         PR middle-end/13448
3591         * c-tree.h (readonly_warning): Rename to ...
3592         (readonly_error): ... this.
3593         * c-typeck.c (build_unary_op): Adjust accordingly.
3594         (readonly_warning): Rename to ...
3595         (readonly_error): ... this and issue errors, not warnings.
3596         (build_modify_expr): Call readonly_error, not readonly_warning.
3597         (c_expand_asm_operands): Likewise.
3598         * tree-inline.c (optimize_inline_calls): Do not inline functions
3599         after errors have occurred.
3600
3601 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
3602
3603         * configure.ac: Rearrange some threading code for clarity;
3604         add section comment.
3605         * configure: Regenerate.
3606
3607 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3608
3609         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
3610         typos.
3611         * doc/cppopts.texi: Fix a typo.
3612
3613 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3614
3615         * config/i386/i386.md: Fix formatting.
3616
3617 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
3618
3619         * configure.ac: Add some comments delineating sections of code.
3620
3621         * doc/install.texi: Note that libada uses autoconf 2.57 also.
3622
3623         * doc/install.texi: Fix idiot typo in previous commit.
3624
3625         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
3626
3627 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3628
3629         * config/h8300/h8300.md: Add comments about peephole2's.
3630
3631 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3632
3633         * config/h8300/h8300.md: Tweak operand numbers of some
3634         peephole2's.
3635
3636 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3637
3638         * config/h8300/h8300.md: Tweak comments about peephole2's.
3639
3640 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
3641
3642         PR middle-end/14203
3643         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
3644         instead of testing whether DECL_RTL is not NULL.
3645
3646 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3647
3648         * config/sh/sh.c: Fix formatting.
3649
3650 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3651
3652         * config/sh/sh.c: Convert to ISO-C.
3653
3654 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
3655
3656         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
3657         my previous patch.
3658
3659         * config/darwin.h (machopic_finish): Output stub even if the
3660         symbol is already defined.
3661
3662 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3663
3664         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
3665
3666 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3667
3668         * genattr.c (main): Don't define
3669         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
3670         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
3671         (DFA_PIPELINE_INTERFACE): Likewise.
3672         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
3673         (DFA_PIPELINE_INTERFACE): Likewise.
3674
3675 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
3676
3677         * config/mips/mips.md (tstsi, tstdi): Delete.
3678
3679 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3680
3681         * config/mips/mips.c (override_options): Remove an obsolete
3682         duplicate definition of the "e" constraint.
3683         * config/mips/mips.h: Update a comment accordingly.
3684
3685 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3686
3687         * config/mips/mips.md: Complete the unfinished R4000
3688         multiply/shift errata workaround.  Improve documentation.
3689         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
3690         has a hilo hazard.
3691         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
3692         (muldi3, muldi3_internal): Likewise.
3693         (muldi3_internal2): Remove, replacing with...
3694         (muldi3_mult3, muldi3_r4000): ...these new patterns.
3695         (mulsidi3): Take the errata into account.
3696         (mulsidi3_32bit): Remove, replacing with...
3697         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
3698         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
3699         (umulsidi3): Take the errata into account.
3700         (umulsidi3_32bit): Remove, replacing with..
3701         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
3702         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
3703         TARGET_FIX_R4000.
3704         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
3705         (smuldi3_highpart, umuldi3_highpart): Likewise.
3706         * doc/invoke.texi: Document the errata workaround.
3707
3708 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3709
3710         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
3711         * config/mips/mips.h (MASK_FIX_SB1): Bump.
3712         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
3713         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
3714         * config/mips/mips.c (mips_idiv_insns): New function.
3715         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
3716         (mips_output_division): Add a workaround for the R4000 divide/shift
3717         errata.
3718         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
3719         the length of an "idiv" instruction.
3720         * doc/invoke.texi: Document the new switches.
3721
3722 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3723
3724         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
3725         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
3726
3727 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3728
3729         PR optimization/14229
3730         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
3731
3732 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
3733
3734         * fold-const.c (fold): Strip NOPs that change the signedness
3735         for RSHIFT too.  Expand comment.
3736
3737 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
3738
3739         PR optimization/7871
3740         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
3741         from or to call insns.
3742
3743 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
3744
3745         PR optimization/7871
3746         * flow.c (propagate_one_insn): Interpret calls as setting global
3747         registers, not merely clobbering them.
3748
3749 2004-02-27  Dale Johannesen  <dalej@apple.com>
3750
3751         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
3752         config/darwin-protos.h:  Ditto.
3753         config/darwin.h:  Remove call to it.
3754         * combine.c (distribute_notes): Do not place a REG_DEAD note
3755         when value is both set and used.
3756
3757 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3758
3759         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3760         as well.
3761         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3762         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3763
3764 2004-02-27  Andrew Pinski  <apinski@apple.com>
3765
3766         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
3767         Speedup common case of the type values being in the same order.
3768
3769 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
3770
3771         * config/ia64/ia64.h (no-inline-float-divide): New option.
3772         * config/ia64/ia64.h (no-inline-int-divide): New option.
3773         * config/ia64/ia64.h (no-inline-sqrt): New option.
3774         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
3775         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3776         * config/ia64/ia64.c (ia64_override_options): Modify error
3777         checking for inlined division/sqrt.
3778
3779 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3780
3781         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
3782         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
3783         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
3784         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
3785         copyright.
3786
3787 2004-02-27  Paul Brook  <paul@codesourcery.com>
3788
3789         * function.c (assign_parms): Don't count pretend args for alignment.
3790
3791 2004-02-27  Richard Henderson  <rth@redhat.com>
3792
3793         * passes.c: New file.
3794         * Makefile.in (OBJS-common): Add it.
3795         * diagnostic.c (rtl_dump_and_exit): Move decl ...
3796         * flags.h (rtl_dump_and_exit): ... here.
3797         * output.h (size_directive_output, last_assemble_variable_decl):
3798         Move from toplev.c.
3799         * rtl.h (reg_alloc): Move from toplev.c.
3800         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
3801         struct dump_file_info, enum dump_file_index, dump_file_tbl,
3802         open_dump_file, close_dump_file, rest_of_decl_compilation,
3803         rest_of_type_compilation, rest_of_handle_final,
3804         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3805         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3806         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
3807         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
3808         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
3809         rest_of_handle_tracer, rest_of_handle_if_conversion,
3810         rest_of_handle_if_after_combine, rest_of_handle_web,
3811         rest_of_handle_branch_prob,
3812         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3813         rest_of_handle_addressof, rest_of_handle_sibling_calls,
3814         rest_of_handle_jump_bypass, rest_of_handle_inlining,
3815         rest_of_handle_null_pointer, rest_of_handle_combine,
3816         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3817         rest_of_handle_gcse, rest_of_handle_loop_optimize,
3818         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
3819         (decode_d_option): Use enable_rtl_dump_file.
3820         (compile_file, finalize, do_compile): Move profile+combine+graph
3821         cleanup to finish_optimization_passes.
3822         * toplev.h (init_optimization_passes, finish_optimization_passes,
3823         enable_rtl_dump_file): Declare.
3824
3825 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
3826             Roger Sayle  <roger@eyesopen.com>
3827
3828         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
3829         operands to build a tree with swapped operands.
3830         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
3831         'unsignedp' predicate to specify the signedness.
3832
3833 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3834
3835         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
3836         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
3837         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
3838         comment typos and formatting.  Follow spelling conventions.
3839
3840 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
3841
3842         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
3843         fix_truncsfsi2.
3844
3845         * config/rs6000/spe.md: Delete spe_efsctuiz.
3846         Add spe_fixuns_truncsfsi2.
3847         Add spe_fix_truncsfsi2.
3848
3849 2004-02-26  Eric Christopher  <echristo@redhat.com>
3850
3851         * c-lex.c (c_lex_string_translate): New variable.
3852         (lex_string): Use to determine string translation.
3853         * c-pragma.h: Prototype.
3854         * c-parse.in (start_string_translation): New. Set above.
3855         (stop_string_translation): Ditto.
3856         (attribute, attribute_list, asm_def, asm_stmt,
3857         asm_operand): Use above functions.
3858         * cp/parser.c (cp_parser_declaration): Translate strings
3859         unless token is RID_EXTERN. Set c_lex_string_translate
3860         for recursive use.
3861         (cp_parser_asm_definition): Only translate argument strings
3862         to asms.
3863         (cp_parser_asm_operand_list): Ditto.
3864         (cp_parser_attribute_list): Do not translate attribute strings.
3865
3866 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3867
3868         * stmt.c (expand_start_case_dummy): Remove.
3869         * tree.h: Remove the corresponding prototype.
3870
3871 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3872
3873         * builtins.c (apply_args_register_offset): Remove.
3874         * tree.h: Remove the corresponding prototype.
3875
3876 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3877
3878         * stor-layout.c (is_pending_size): Remove.
3879         * tree.h: Remove the corresponding prototype.
3880
3881 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3882
3883         * recog.c (validate_replace_src): Remove.
3884         * recog.h: Remove the corresponding prototype.
3885
3886 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3887
3888         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
3889         MAYBE_REG_PARM_STACK_SPACE.
3890         * function.c: Likewise.
3891         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
3892         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3893         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
3894         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3895
3896 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3897
3898         * c-decl.c (c_expand_deferred_function): Remove.
3899         * c-tree.h: Remove the corresponding prototype.
3900
3901 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3902
3903         * postreload.c (reload_cse_move2add): Generate just a PLUS
3904         instead of an entire SET.
3905
3906 2004-02-26  Jan Hubicka  <jh@suse.cz>
3907
3908         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
3909         /pentium4m.
3910         * i386.c (override_options): Add support for new CPUs.
3911         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
3912         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
3913         constants.
3914         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
3915
3916 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
3917
3918         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
3919
3920 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
3921
3922         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
3923         (sparc_emit_fixunsdi): New prototype.
3924         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
3925         (sparc_emit_fixunsdi): New function.
3926         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
3927         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
3928         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
3929         to sparc_emit_floatunsdi.
3930         (fixuns_truncsfdi2): New expander.
3931         (fixuns_truncdfdi2): Likewise.
3932
3933 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
3934
3935         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
3936         unless HAVE_cc0.
3937
3938 2004-02-25  Richard Henderson  <rth@redhat.com>
3939
3940         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
3941         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
3942         use (op0-op1) == 0 if op0 is a pointer.
3943         * config/alpha/alpha.md (cmpdi): Use some_operand.
3944         (three comparison combine splits): Remove.
3945
3946 2004-02-25  Richard Henderson  <rth@redhat.com>
3947
3948         PR c/12794
3949         * c-common.c (handle_alias_attribute): Reject the attribute if
3950         current_function_decl is set.
3951
3952 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
3953
3954         * config.gcc: Add comment describing extra_gcc_objs.
3955         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
3956         * configure.ac (extra_gcc_objs): New substitution variable.
3957         (host_extra_gcc_objs): Don't substitute.
3958         * configure: Regenerate.
3959         * Makefile.in: Use extra_gcc_objs.
3960
3961 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
3962
3963         * doc/contrib.texi: Add an entry for myself.
3964
3965 2004-02-25  Jan Hubicka  <jh@suse.cz>
3966
3967         * basic-block.h (make_eh_edge, break_superblocks): Declare.
3968         * cfgbuild.c (make_eh_edge):  Make global.
3969         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
3970         * except.c (build_post_landing_pads, connect_post_landing_pads,
3971         dw2_build_landing_pads, sjlj_emit_function_enter,
3972         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3973         sjlj_build_landing_pads): Update CFG.
3974         (emit_to_new_bb_before): New function.
3975         (finish_eh_generation): Do not rebuild the CFG.
3976
3977 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3978
3979         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
3980         target_cpu_default defines.
3981         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
3982         * pa.h (TARGET_DEFAULT): Likewise.
3983
3984 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
3985
3986         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
3987         comparisons with regard to signedness.
3988
3989 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
3990
3991         * arm.c (thumb_legitimize_address): New function.
3992         * arm-protos.h: Prototype it.
3993         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
3994         (LEGITIMIZE_ADDRESS): Use it.
3995
3996 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
3997
3998         * reload1.c (reload): Only spill eliminable register with multiple
3999         adjacent elimination alternatives if all alternatives fail.
4000
4001 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
4002
4003         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
4004         is -4095...+4095 inclusive.
4005
4006 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
4007
4008         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
4009         the bootstrap failure with Sun CC 5.4 and 5.5.
4010
4011 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
4012
4013         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
4014         which modifies NEWREG.
4015         (cse_condition_code_reg): Update the mode of CC_REG in
4016         CC_SRC_INSN on our own.
4017
4018 2004-02-24  Michael Matz  <matz@suse.de>
4019
4020         * config/i386/i386.c (ix86_comp_type_attributes): Check for
4021         regparm attributes.
4022
4023 2004-02-24  Richard Henderson  <rth@redhat.com>
4024
4025         * toplev.c (dump_file_tbl): Rename from dump_file.
4026         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
4027         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
4028         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
4029         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
4030         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
4031         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
4032         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
4033         s/rtl_dump_file/dump_file/g.
4034
4035 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
4036
4037         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
4038         (spe_fixuns_truncsfsi2): Delete.
4039
4040         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
4041         (fixuns_truncsfsi2): Delete.
4042
4043 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
4044
4045         PR/14240
4046         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
4047
4048 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
4049
4050         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
4051
4052 2004-02-24  Jason Merrill  <jason@redhat.com>
4053
4054         * tree.c (check_qualified_type): New fn.
4055         (get_qualified_type): Use it.  If type already has the desired
4056         quals, just return it.
4057         * tree.h: Declare it.
4058
4059 2003-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
4060
4061         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
4062         TARGET_SCHED_FINISH_GLOBAL): New macros.
4063
4064         * target.h (md_init_global, md_finish_global): Function
4065         declarations corresponding to new target macros.
4066
4067         * haifa-sched.c (sched_init, sched_finish): Allow target to
4068         call the new schedular hooks.
4069
4070         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
4071         call to update_life_info.
4072
4073         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
4074         flag_schedule_insns for SH4.
4075
4076         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
4077         find_set_regmode_weight, find_insn_regmode_weight,
4078         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
4079         sh_variable_issue, high_pressure, ready_reorder,
4080         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
4081         functions used to throttle the insn movement in first
4082         scheduling pass for SH.
4083
4084         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
4085         TARGET_SCHED_FINISH_GLOBAL.
4086
4087 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
4088
4089         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
4090         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
4091         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
4092         symbols in sections named by the user.
4093         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
4094         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
4095         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
4096         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
4097         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
4098         the above.
4099         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
4100         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
4101         one more pseudo to further improve code generation.
4102         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
4103         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
4104         inside UNSPEC.
4105         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
4106         * config/frv/frv.c (frv_legitimate_address_p): Added
4107         allow_double_reg_p argument.  Adjust all callers.  Use it to
4108         decide whether to enable double-register indirect addressing.
4109         (frv_funcdesc_alias_set): Remove.
4110         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
4111         register.  Emit movdi_ldd.
4112         (ldd_address_operand): New.
4113         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
4114         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4115         (PREDICATE_CODES): Add ldd_address_operand.
4116         * config/frv/frv.md (movdi_ldd): New.
4117         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
4118         intermediate computations if possible.
4119         (symGOTOFF2reg_i): Fix harmless typo.
4120         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
4121         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
4122         relocated p_vaddr to vaddr type.
4123         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
4124         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
4125         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
4126         MEM, or use a funcdesc alias set.  Use regular move instead of
4127         ldd.
4128         (dbl_memory_one_insn_operand): Recognize function descriptors by
4129         type or by alias set, and don't split them.
4130         * config/frv/frv.md (call, call_value): Never use call_internal
4131         for fdpic.
4132         (call_internal, call_value_internal): Never match for FDPIC.
4133         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
4134         call_value_fdpicsi): Require FDPIC.
4135         (ldd): Removed.
4136         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
4137         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
4138         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
4139         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
4140         FDPIC.  Compute data base address.
4141         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
4142         before the other self-specs are processed.
4143         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
4144         Build with -fPIC.
4145         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
4146         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
4147         inhibit_libc is defined.
4148         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
4149         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
4150         __FRV_FDPIC__.
4151         (__RELOC_POINTER): Define.
4152         (_Unwind_IteratePhdrCallback): Use it.
4153         * config/frv/frv.h (Twrite): Define.
4154         (TRANSFER_FROM_TRAMPOLINE): Use it.
4155         * config/frv/linux.h (INVOKE__main): Undefine.
4156         (Twrite): Override.
4157         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
4158         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
4159         (-mlibrary-pic): Emphasize that this option generates EABI code.
4160         (-mcpu): Add fr550.
4161         (-mpack): Remove.
4162         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
4163         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
4164         and CONSTs in FDPIC mode.
4165         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
4166         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
4167         * config/frv/frv.c (move_source_operand): Don't accept symbolic
4168         constants.
4169         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
4170         rather than 'i' constraint for the 2-instruction alternative.
4171         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
4172         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
4173         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
4174         EXTRA_CONSTRAINT_FOR_Y.
4175         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
4176         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
4177         (addsi3): Change 'Y' constraint to 'Q'.
4178         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
4179         * reload.c (CONST_POOL_OK_P): New macro.
4180         (find_reloads): Use it to decide whether a constant can be forced
4181         into memory.
4182         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
4183         constant satisfies got12_operand.
4184         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
4185         (frv_legitimate_address_p): Check for valid unspec offsets using
4186         got12_operand rather than frv_legitimate_fdpic_operand_p.
4187         (frv_legitimate_fdpic_operand_p): Delete.
4188         (frv_emit_movsi): Abort if we try to use the FDPIC register during
4189         or after reload.
4190         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
4191         TARGET_FDPIC.
4192         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
4193         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
4194         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
4195         (frv_fdpic_fptr_operand): Don't declare here.
4196         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
4197         rather than fdpic_got12_operand.
4198         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
4199         got12_operand and const_unspec_operand.
4200         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
4201         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
4202         (symbolic_operand): Remove.
4203         (const_unspec_operand): New predicate.
4204         * config/frv/frv.md (*movsi_got): Use got12_operand.
4205         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
4206         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
4207         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
4208         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
4209         * config/frv/frv.c (frv_unspec): New structure.
4210         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
4211         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
4212         validate CONST indices.  Use frv_output_const_unspec to print them.
4213         (frv_print_operand): Update call to unspec_got_name.  Use
4214         frv_output_const_unspec to print constant unspecs.
4215         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
4216         Reject UNSPECs otherwise.
4217         (unspec_got_name): Take the relocation number as argument, not an
4218         rtx containing it.
4219         (frv_output_addr_const_extra): Remove, replacing with...
4220         (frv_output_const_unspec): ...this new function.
4221         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
4222         (gpr_or_int12_operand): Use fdpic_got12_operand.
4223         (dbl_memory_one_insn_operand): Likewise.
4224         (fdpic_got12_operand): Use frv_const_unspec_p.
4225         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
4226         are already legitimate.  Use frv_small_data_reloc_p when deciding
4227         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
4228         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
4229         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
4230         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
4231         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
4232         label, for real this time.
4233         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
4234         representation of visibility.
4235         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
4236         such.
4237         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
4238         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
4239         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
4240         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
4241         it was explicitly disabled.
4242         (frv_stack_info): There is no need to save the link register in every
4243         frame unless TARGET_LINKED_FP is true.
4244         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
4245         frame pointer if the stack pointer might change value.
4246         (frv_return_addr_rtx): Check and process "count" argument.
4247         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
4248         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
4249         (frv_find_base_term): Declare.
4250         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
4251         (FIND_BASE_TERM): Define.
4252         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
4253         small_data_register_operand, small_data_symbolic_operand.  Add
4254         symbolic_operand.
4255         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
4256         (frv_print_operand_memory_reference, output_move_single): Remove
4257         special handling for unlegitimized sdata addresses.
4258         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
4259         and symbolic addresses.
4260         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
4261         (frv_find_base_term): New function.
4262         (int_2word_operand): Check specifically for symbolic address constants.
4263         (pic_register_operand, pic_symbolic_operand): Delete.
4264         (small_data_register_operand, small_data_symbolic_operand): Delete.
4265         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
4266         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
4267         (move_source_operand): Only accept CONSTs if they're a two-insn
4268         symbolic constant.
4269         (fdpic_got12_operand): Don't require TARGET_FDPIC.
4270         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
4271         using gen_symGOTOFF2reg*.
4272         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
4273         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
4274         themselves a cost of 3 insns.
4275         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
4276         Change predicate to symbolic_operand.
4277         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
4278         (*movsi_lda_sdata): Delete.
4279         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
4280         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
4281         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
4282         frv-*-*linux*.
4283         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
4284         label.
4285         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
4286         -multilib-library-pic.
4287         (LINK_SPEC): Add -z text for -mfdpic.
4288         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
4289         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
4290         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
4291         Override.
4292         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
4293         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
4294         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
4295         crtstuff-generated files.
4296         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
4297         * config.gcc: Add frv-*-*linux*.
4298         * config/frv/linux.h, config/frv/t-linux: New.
4299         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
4300         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
4301         when -mfdpic even if a linker script is explicitly listed.
4302         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
4303         * config/frv/frv.c (frv_override_options): Clear asm_out
4304         unaligned_op for SImode on FDPIC.
4305         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
4306         argument passed to decl_readonly_section.
4307         (frv_assemble_integer): Revert 2003-09-30's change, but make the
4308         whole block run with FDPIC even with -fno-PIC.
4309         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
4310         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
4311         symbol or label plus offset to memory.
4312         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
4313         GOTOFF and GPREL for LABEL_REF.
4314         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
4315         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
4316         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
4317         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
4318         * doc/invoke.texi: Document them.
4319         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
4320         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
4321         (frv_splittable_got_operand): Removed.
4322         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
4323         LO_SUM.  Add comments.
4324         (frv_override_options): Moved enabling of FDPIC to
4325         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
4326         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
4327         (frv_legitimize_fdpic_address): Don't duplicate logic in
4328         frv_emit_movsi.
4329         (frv_gen_GPsym2reg): New.
4330         (unspec_got_name): Added gprel.
4331         (frv_expand_fdpic_call): Add support for inlining PLTs.
4332         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
4333         (gpr_or_int12_operand): Added GPREL12.
4334         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
4335         (small_data_symbolic_operand): Fail if FDPIC.
4336         (fdpic_splittable_got_operand): Removed.
4337         (fdpic_got12_operand): Added GPREL12.
4338         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
4339         when appropriate.  Fix sdata GOTOFF.
4340         (frv_legitimate_constant_p): Require legitimate PIC operand for
4341         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
4342         (frv_assemble_integer): Move FDPIC funcdesc handling out of
4343         flag_pic case.
4344         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
4345         frv_assemble_integer fails.
4346         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
4347         (SUBTARGET_DRIVER_SELF_SPECS): New.
4348         (ASM_SPEC): Don't pass -mno-fdpic.
4349         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
4350         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
4351         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
4352         -multilib-library-pic.
4353         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
4354         condexec_si_media_operator, condexec_sf_add_operator and
4355         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
4356         and condexec_sf_unary_operator.
4357         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
4358         New.
4359         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
4360         movsi_internal.  Give them internal names.  movsi_got has type
4361         int.
4362         (fdpic got splitters): Remove.
4363         (symGPREL2reg, symGPREL2reg_hilo): New.
4364         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
4365         to -mlibrary-pic.  Map -multilib-library-pic to it.
4366         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
4367         Document.
4368         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
4369         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
4370         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
4371         (frv_cannot_force_const_mem): New function.
4372         (const_small_data_p, plus_small_data_p): Update comments on sdata
4373         on FDPIC.
4374         (frv_override_options): Set flag_pie for FDPIC too.
4375         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
4376         call-saved registers on FDPIC.
4377         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
4378         don't force LR to be preserved.
4379         (frv_expand_prologue): Likewise.
4380         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
4381         (frv_frame_pointer_required): Don't force it just because the
4382         FDPIC register is used.
4383         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
4384         operand only if !condexec_p.
4385         (frv_legitimize_address): Return the FDPIC-legitimized address.
4386         Don't match small data here on FDPIC.
4387         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
4388         symbols.  Use TRUE/FALSE instead of 1/0.
4389         (frv_local_funcdesc_p): New.
4390         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
4391         immediates when possible.
4392         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
4393         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
4394         an UNSPEC_GOT.
4395         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
4396         12-bit immediates when possible.
4397         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
4398         are not legitimate pic operands.
4399         (frv_in_small_data_p): Re-enable for FDPIC.
4400         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
4401         (FRV_GLOBAL_P): Removed.
4402         * config/frv/frv.md: Add modes to CONSTs.
4403         (movsi_got): New.
4404         (movsi_lo_sum_got): Use separate matches instead of match_dup.
4405         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
4406         (fdpic splittable operations): Match on flag_pic != 1.
4407         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
4408         * config/frv/frv.c (frv_asm_out_constructor,
4409         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
4410         bytes, not bits.
4411         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
4412         * config/frv/frv.c (frv_assemble_integer): Reject complex
4413         expressions referencing function SYMBOL_REFs.
4414         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
4415         (move_source_operand): Reject CONSTs that reference function
4416         SYMBOL_REFs on FDPIC.
4417         (frv_emit_movsi): If we get such a CONST, break it up.
4418         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
4419         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
4420         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
4421         MEM.
4422         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
4423         (frv_trampoline_size): Increase for FDPIC.
4424         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
4425         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
4426         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
4427         Disable use of GOTOFF for now.
4428         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
4429         Disable use of small data in FDPIC for now.
4430         (frv_asm_output_mi_thunk): Implement for FDPIC.
4431         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
4432         * config/frv/frv.c (frv_asm_out_constructor): Use
4433         frv_assemble_integer for FDPIC pointers.
4434         (frv_asm_out_destructor): Likewise.
4435         * config/frv/frv.md (ldd): Fix order of operands.  Use
4436         address_operand for input.
4437         2003-09-18  DJ Delorie  <dj@redhat.com>
4438         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
4439         (unspec_got_name): Correct typo.
4440         (frv_emit_movsi): Pre-expand splittable GOTs.
4441         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
4442         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
4443         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
4444         * config/frv/t-frv: Add -mfdpic multilibs.
4445         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
4446         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
4447         * config/frv/frv.c (frv_override_options): -mfdpic assumes
4448         flag_pic, default to 32-bit pics, require DWORD ops.
4449         (frv_override_options): Add W and Z constraints.
4450         (frv_expand_prologue): No pic prologue for -mfdpic.
4451         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
4452         (frv_print_operand_memory_reference): Handle GOT constants.
4453         (frv_legitimate_address_p): Allow GOT constants.
4454         (frv_legitimize_address): Handle GOT addresses too.
4455         (frv_legitimate_fdpic_operand_p): New.
4456         (frv_legitimize_fdpic_address): New.
4457         (unspec_got_name): New.
4458         (frv_output_addr_const_extra): New.
4459         (frv_expand_fdpic_call): New.
4460         (frv_fdpic_fptr_operand): New.
4461         (gpr_or_int12_operand): Handle GOT operands.
4462         (int_2word_operand): Handle GOT operands.
4463         (fdpic_operand): New.
4464         (fdpic_splittable_got_operand): New.
4465         (fdpic_got12_operand): New.
4466         (frv_emit_movsi): Handle GOT operands.
4467         (frv_assemble_integer): -mfdpic doesn't use rofixups.
4468         (frv_print_operand): Support 'g' code for GOT operands.
4469         * config/frv/frv-protos.h: Add prototypes as needed.
4470         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
4471         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
4472         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
4473         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
4474         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
4475         R_FRV_GOTOFFLO): New.
4476         (movsi_high_got, movsi_lo_sum_got): New.
4477         (*movsi_pic): Don't use this splitter for -mfdpic.
4478         (addsi3): Allow GOT references also.
4479         (call, call_value): Handle -mfdpic separately.
4480         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
4481         call_value_fdpicsi): New.
4482         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
4483         symGOTOFF2reg_i): New.
4484         * config/frv/frv.h (MASK_FDPIC): New.
4485         (TARGET_FDPIC): New.
4486         (TARGET_SWITCHES): Add -mfdpic.
4487         (FDPIC_FPTR_REGNO): New.
4488         (FDPIC_REGNO): New.
4489         (OUR_FDPIC_REG): New.
4490         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
4491         FDPIC_CALL_REGS.
4492         (REG_CLASS_NAMES): Likewise.
4493         (REG_CLASS_CONTENTS): Likewise.
4494         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
4495         (EXTRA_CONSTRAINT): Add it here.
4496         (FRV_GLOBAL_P): New.
4497         (OUTPUT_ADDR_CONST_EXTRA): New.
4498
4499 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
4500
4501         * config/sparc/sparc.h: Remove commented-out definitions of
4502         TARGET_EDOM and GEN_ERRNO_RTX.
4503
4504 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
4505
4506         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
4507         df_analyse with df_analyze.
4508
4509 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
4510
4511         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
4512         beginning of block.
4513
4514 2004-02-23  James E Wilson  <wilson@specifixinc.com>
4515
4516         * calls.c (precompute_arguments): Update comment.
4517
4518 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4519
4520         * et-forest.c: Replace et_occurences with et_occurrences.
4521
4522 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4523
4524         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
4525         with iv_analyze.
4526
4527 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
4528
4529         * config/i386/i386.c: Rename pni to sse3.
4530         * config/i386/i386.h: Likewise.
4531         * config/i386/i386.md: Likewise.
4532         * config/i386/pmmintrin.h: Likewise.
4533         * doc/extend.texi: Likewise.
4534         * doc/invoke.texi: Likewise.
4535
4536 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
4537             Kazu Hirata  <kazu@cs.umass.edu>
4538
4539         Remove -fwritable-strings.
4540         * c-common.c (fix_string_type): Don't check
4541         flag_writable_strings.
4542         (fix_string_type): Likewise.
4543         * c-opts.c (set_std_c89): Don't initialize
4544         flag_writable_strings.
4545         (set_std_c99): Likewise.
4546         * common.opt (fwritable-strings): Remove.
4547         * flags.h: Remove the external declaration of
4548         flag_writable_strings.
4549         * opts.c (common_handle_option) <OPT_fwritable_strings>:
4550         Remove.
4551         * toplev.c (flag_writable_strings): Remove.
4552         (f_options): Remove an entry for writable-strings.
4553         * varasm.c (const_hash_1) <STRING_CST>: Don't check
4554         flag_writable_strings.
4555         (compare_constant) <STRING_CST>: Likewise.
4556         (build_constant_desc): Likewise.
4557         * config/darwin.c (machopic_select_section): Likewise.
4558         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
4559         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
4560         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
4561         * config/mips/mips.c (mips_select_section): Likewise.
4562         (mips_encode_section_info): Likewise.
4563         * config/pa/pa.c (pa_select_section): Likewise.
4564         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
4565         * config/v850/v850.c (v850_select_section): Likewise.
4566         * doc/invoke.texi (-fwritable-strings): Remove.
4567         (-fno-const-strings): Don't mention -fwritable-strings.
4568         * doc/trouble.texi: Don't mention -fwritable-strings.
4569
4570 2003-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4571
4572         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
4573
4574 2004-02-23  Dale Johannesen  <dalej@apple.com>
4575
4576         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
4577         (movdf_hardfloat64):  Ditto.
4578         (movdf_softfloat64):  Ditto.
4579
4580 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
4581         * config/rs6000/rs6000.c (function_arg): call to
4582         rs6000_mixed_function_arg for DFmode moved to allow
4583         normal DFmode incoming register assignment.
4584
4585 2004-02-23  Dale Johannesen  <dalej@apple.com>
4586
4587         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
4588         (movdf_hardfloat64):  Ditto.
4589
4590 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4591
4592         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
4593         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
4594         copyright.
4595
4596 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
4597
4598         PR c/14156
4599         * c-typeck.c (c_expand_return): Change check for VAR_DECL
4600         to use DECL_P instead.
4601
4602         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
4603         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
4604
4605 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4606
4607         * Makefile.in (opts.o): Depend on target.h.
4608         * opts.c (decode_options): Use targetm.default_short_enums
4609         instead of DEFAULT_SHORT_ENUMS.
4610         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4611         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
4612         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
4613         * target.h (gcc_target): Add default_short_enums.
4614         * config/cris/cris.h: Remove a comment about
4615         DEFAULT_SHORT_ENUMS.
4616         * config/ip2k/ip2k.h: Likewise.
4617         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
4618         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
4619
4620 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
4621             Falk Hueffner  <falk@debian.org>
4622
4623         PR c/14188
4624         * builtins.c (expand_builtin_va_arg): Emit an informative message
4625         if a trap is generated.
4626         * c-typeck.c (build_function_call): Likewise.
4627
4628 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
4629
4630         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
4631         fopen.
4632         * libgcov.c: Include sys/stat.h.
4633         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
4634         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
4635         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
4636         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
4637
4638 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
4639
4640         * reorg.c: Remove comments about dead ports.
4641
4642 2004-02-22  Christopher Faylor  <cgf@redhat.com>
4643
4644         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
4645         extra host object file when targetting cygwin rather than generic
4646         object files.
4647
4648 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
4649
4650         Merge from tree-ssa:
4651         2003-11-20  Richard Henderson  <rth@redhat.com>
4652
4653                 * tree-inline.c (insert_decl_map): New.
4654                 (remap_decl, remap_type, remap_block, copy_body_r,
4655                 initialize_inlined_parameters, declare_return_variable,
4656                 remap_save_expr): Use it.
4657
4658         * function.c (copy_body_r): Add mapping from id->ret_label to
4659         id->ret_label.  Revert test for ret_label.
4660
4661 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
4662
4663         * genoutput.c (process_template): Strip trailing whitespace in @
4664         templates and issue a warning if there was any.
4665
4666 2004-02-21  Christopher Faylor  <cgf@redhat.com>
4667
4668         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
4669         object file when targetting cygwin.
4670         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
4671         overridden by top-level Makefile.
4672
4673 2004-02-21  Roger Sayle  <roger@eyesopen.com>
4674
4675         * config/i386/i386.c (standard_80387_constant_p): Also prefer
4676         the x87's load constant instructions when optimizing for size.
4677
4678 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
4679
4680         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
4681         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
4682         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
4683         * fold-const.c: Likewise.
4684         * simplify-rtx.c: Likewise.
4685
4686 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
4687
4688         * combine.c (can_combine_p): Don't ignore SETs marked with
4689         REG_EH_REGION notes.
4690         (try_combine): When attemting to fix unrecognized insns, don't
4691         split a PARALLEL that contains the original i2.
4692
4693 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
4694
4695         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
4696         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
4697         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
4698         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
4699         (vector, pixel, bool): #define to __vector, __pixel and __bool.
4700         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
4701         portion of header.
4702         (__altivec_link_error_invalid_argument): Remove prototype; will use
4703         __builtin_altivec_compiletime_error("vec_*") instead.
4704         (vec_*): Fix/complete set of available operation overloads given the
4705         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
4706         cv-correctness of pointer arguments; in C, always check for correct
4707         argument types before macro expansion.
4708         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
4709         defining Darwin/PowerPC-specific '-f[no-]altivec' and
4710         '-W[no-]altivec-long-deprecated' switches.
4711         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
4712         '__vector', '__pixel' and '__bool' macros using
4713         '__attribute__((altivec(...)))' types.
4714         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
4715         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
4716         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
4717         New type nodes.
4718         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
4719         handling '-W[no-]altivec-long-deprecated'.
4720         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
4721         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
4722         altivec_expand_dst_builtin): Remove casts from integer literals.
4723         (altivec_expand_builtin): Likewise; handle expansion of new
4724         '__builtin_altivec_compiletime_error' function.
4725         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
4726         types, and make them distinct from other vector types; register
4727         '__builtin_altivec_compiletime_error' function.
4728         (print_operand): For 'P', print a full target register name instead of
4729         merely its number.
4730         (rs6000_attribute_table): Add "altivec" attribute.
4731         (rs6000_handle_altivec_attribute): New function.
4732         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
4733         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
4734         maps to).
4735         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
4736         declare.
4737         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
4738
4739 2004-02-20  James E Wilson  <wilson@specifixinc.com>
4740
4741         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
4742         check.
4743         (shift_mix4left+2): Delete redundant pattern.
4744
4745 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4746
4747         * alias.c (OUTGOING_REGNO): Don't define the default.
4748         * builtins.c (OUTGOING_REGNO): Likewise.
4749         (INCOMING_REGNO): Likewise.
4750         (apply_args_register_offset): Always use OUTGOING_REGNO.
4751         * combine.c (OUTGOING_REGNO): Likewise.
4752         * sibcall.c (OUTGOING_REGNO): Likewise.
4753         * defaults.h (INCOMING_REGNO): Provide the default.
4754         (OUTGOING_REGNO): Likewise.
4755
4756 2004-02-21  Jan Hubicka  <jh@suse.cz>
4757
4758         * params.def (max-peeled-insns, max-completely-peeled-insns,
4759         max-once-peeled-insns): Set to 400.
4760
4761 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4762
4763         PR c++/12007
4764         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
4765         are set for parameters before outputing debugging information.
4766
4767 2004-02-20  Falk Hueffner  <falk@debian.org>
4768
4769         PR target/14201
4770         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
4771         numbers.
4772
4773 2004-02-20  Per Bothner  <per@bothner.com>
4774
4775         * input.h:  Don't #include line-map.h.  It may cause link problems
4776         with undefined linemap_line_start when line-map.h is included but
4777         line-map.o is not linked, as currently happens with gengtype on
4778         compilers that don't support inline.
4779         * toplev.c:  So we do have to explicitly #include line-map.h here.
4780
4781 2004-02-20  Richard Henderson  <rth@redhat.com>
4782
4783         * doc/invoke.texi: Add -Wvariadic-macros.
4784
4785 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4786
4787         * haifa-sched.c (sched_emit_insn): Remove.
4788         * sched-int.h: Remove the corresponding prototype.
4789
4790 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4791
4792         Revert:
4793         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4794         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4795         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4796         * config/cris/cris.h: Remove a comment about
4797         DEFAULT_SHORT_ENUMS.
4798         * config/ip2k/ip2k.h: Likewise.
4799         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4800
4801 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
4802             Tom Tromey  <tromey@redhat.com>
4803
4804         * doc/install.texi: Moved --disable-libgcj and
4805         --with-system-zlib documentation to new section for
4806         Java-specific options.
4807         Added explicit Cross-Compiler-Specific Options subheading.
4808         Added section for Java-specific options.
4809
4810 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
4811
4812         * doc/install.texi (Building the Ada compiler): Remove
4813         example.
4814
4815 2004-02-20  James E Wilson  <wilson@specifixinc.com>
4816
4817         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
4818
4819 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4820
4821         * gcc.c (process_command): Allow translation of the copyright
4822         symbol but not the rest of the copyright message.
4823         * gcov.c (print_version): Likewise.  Allow translation of the
4824         message about warranty.
4825
4826 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
4827
4828         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
4829         predicate.
4830         ("*andsi_clear"): Tweak constraints to not match postincrement.
4831         Adjust the predicate to exclude a volatile memory reference.
4832         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
4833         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
4834
4835 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
4836
4837         * move-if-change: Remove.
4838         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
4839         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
4840         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
4841         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
4842         (s-gtyp-gen, s-iov): Use the top level move-if-change.
4843         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
4844
4845 2004-02-19  James E Wilson  <wilson@specifixinc.com>
4846
4847         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
4848         for operand2.  Add condition that requires register_operand operand2
4849         before reload.
4850
4851 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
4852             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4853
4854         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
4855         * config/mips/mips.md: Expand comment above unaligned loads and stores.
4856
4857 2004-02-19  Richard Henderson  <rth@redhat.com>
4858
4859         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
4860         * tree.c (build0, build1, build2, build3, build4): Split out from...
4861         (build): ... here.  Call them.
4862         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
4863
4864         * convert.c (convert_to_integer): Remove extra build argument.
4865         * tree-inline.c (expand_call_inline): Likewise.
4866
4867 2004-02-19  Richard Henderson  <rth@redhat.com>
4868
4869         * c-opts.c (warn_variadic_macros): New.
4870         (c_common_handle_option): Set it.
4871         (sanitize_cpp_opts): Copy it to cpp_opts.
4872         * c.opt (Wvariadic-macros): New.
4873         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
4874         * cppinit.c (cpp_create_reader): Initialize it.
4875         * cppmacro.c (parse_params): Check it.
4876
4877 2004-02-19  David Daney <ddaney@avtrex.com>
4878
4879         PR preprocessor/14198
4880         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
4881         builtin_assert ("machine=mips")
4882
4883 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4884
4885         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4886         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4887         * config/cris/cris.h: Remove a comment about
4888         DEFAULT_SHORT_ENUMS.
4889         * config/ip2k/ip2k.h: Likewise.
4890         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4891
4892 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
4893
4894         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
4895         when passing single SFmode quantities in general registers,
4896         put them in the high half.
4897
4898 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
4899
4900         * doc/md.texi (Standard Names): Document additional dependency on
4901         fix pattern.
4902
4903         * optabs.c (ftruncify): Remove.
4904         (expand_fix): Manually inline ftruncify above.
4905         (can_fix_p): Add FIXME note.
4906
4907 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
4908
4909         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
4910         spe_fixuns_truncsfsi2.
4911
4912         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
4913         fixuns_truncsfsi2.
4914
4915 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
4916
4917         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
4918         * testsuite/gcc.dg/20040219-1.c: New test.
4919
4920 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
4921
4922         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
4923         "*subsf3_cconly"): Subtraction is not commutative.
4924
4925 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
4926
4927         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
4928         (sdbout_symbol): If called before sdbout_init, queue DECL for
4929         later and return.
4930         (sdbout_init): Set sdbout_initialized true, process decls
4931         queued earlier by sdbout_symbol.
4932         (sdbout_finish): Use size_t for index variable.
4933
4934 2004-02-19  Jeff Law  <law@redhat.com>
4935
4936         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
4937         for unordered comparison codes.
4938
4939 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
4940
4941         * reload1.c (reload): Correct comment.
4942         (scan_paradoxical_subregs): Remove #if 0 and old comment.
4943         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
4944         register variables are not used by reload.
4945
4946 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
4947
4948         PR target/14209
4949         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
4950         constraints to not match postincrement.  Adjust the predicate to
4951         exclude a volatile memory reference.
4952
4953 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4954
4955         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
4956
4957 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4958
4959         * hooks.c (hook_void_tree_int): Remove.
4960         (hook_void_constcharptr): Likewise.
4961         (hook_int_void_0): Likewise.
4962         * hooks.h: Remove the prototypes for the above three
4963         functions.
4964         * targhooks.c (hook_bool_machine_mode_true): Remove.
4965         * targhooks.h: Remove the prototype for
4966         hook_bool_machine_mode_true.
4967
4968 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4969
4970         * emit-rtl.c (subreg_realpart_p): Remove.
4971         (reorder_insns_with_line_notes): Likewise.
4972         (end_full_sequence): Likewise.
4973         * rtl.h: Remove the prototype for the above functions.
4974
4975 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4976
4977         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
4978         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
4979         config/iq2000/iq2000.h, config/m32r/m32r.h,
4980         config/pdp11/pdp11.h, config/sparc/sparc.h,
4981         config/xtensa/xtensa.h: Remove commented-out or useless
4982         definitions of CASE_VECTOR_PC_RELATIVE.
4983
4984 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4985
4986         * loop.c (all_sets_invariant_p): Remove.
4987
4988 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
4989
4990         PR target/12916
4991         * config/sparc/sparc.h (NPARM_REGS): Delete.
4992         (BASE_RETURN_VALUE_REG): Likewise.
4993         (BASE_OUTGOING_VALUE_REG): Likewise.
4994         (BASE_PASSING_ARG_REG): Likewise.
4995         (BASE_INCOMING_ARG_REG): Likewise.
4996         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
4997         TARGET_ARCH64, not TARGET_V9.
4998         (function_arg_slotno): Dispatch based on the mode class.
4999         Handle vector modes like floating-point modes.
5000         (function_arg_record_value_1): Handle vector types like
5001         floating-point types.
5002         (function_arg_record_value_2): Likewise.
5003         Calculate regno after mode transformation.
5004         (function_arg): Handle vector modes like floating-point modes.
5005         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
5006         If ARCH64, do not recheck alignment.
5007         (function_arg_pass_by_reference): Reorder the conditions.
5008         (sparc_return_in_memory): Move after function_arg_padding.
5009         Implement calling conventions for vector modes.
5010         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
5011         (function_value): Move scope of 'regbase'.
5012         Implement calling conventions for vector modes.
5013         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
5014         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
5015         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
5016         the argument is passed by reference.
5017         (sparc_type_code): Handle vector types.
5018
5019 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
5020
5021         * function.c (assign_parms): When building decl_rtl for
5022         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
5023
5024 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
5025
5026         * expr.c (is_aligning_offset): Check if we are aligning the
5027         expressions's address over BIGGEST_ALIGNMENT in bytes, not
5028         in bits.
5029
5030 2003-02-18  Matt Austern  <austern@apple.com>
5031
5032         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
5033         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
5034         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
5035         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
5036         spec string.
5037         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
5038
5039 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
5040
5041         * dwarf2out.c (loclabel_num): Move outside #ifdef
5042         DWARF2_DEBUGGING_INFO and mark with GTY(()).
5043         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
5044         Mark with GTY(()).
5045         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
5046         Allocate memory with ggc_alloc.  No need to copy anything.
5047         (ia64_hpux_file_end): Update to match.
5048
5049 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
5050
5051         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
5052         by default.
5053
5054 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5055
5056         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
5057         ("divmodtisi3"): Likewise.
5058         ("udivmoddi4", "udivmodtidi3"): Likewise.
5059         ("divmodsi4", "divmoddisi3"): Likewise.
5060         ("udivmodsi4", "udivmoddisi3"): Likewise.
5061         ("udivsi3", "umodsi3"): Likewise.
5062
5063 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5064
5065         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
5066         placeholder insn when chunkifying the pool.
5067
5068 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5069
5070         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
5071         generating PIC code.
5072
5073 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5074
5075         * config/h8300/h8300-protos.h: Add a prototype for
5076         h8300_expand_branch.
5077         * config/h8300/h8300.c (h8300_expand_branch): New.
5078         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
5079         bgtu, beq, bne): Call h8300_expand_branch().
5080
5081 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5082
5083         * config/h8300/h8300-protos.h: Add prototypes for
5084         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
5085         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
5086         (h8300_hard_regno_mode_ok): Likewise.
5087         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
5088         h8300_hard_regno_nregs().
5089         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
5090
5091 2004-02-18  Per Bothner  <per@bothner.com>
5092
5093         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
5094         partly reverts my 2003-10-01 change, because we're back to logically
5095         including <command line> inside the main line.
5096         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
5097         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
5098         Fixes PR preprocessor/14103.
5099
5100         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
5101         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
5102         (cpp_push_include):  Don't need to increment pfile's line field.
5103         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
5104
5105         * c-ppoutput.c (print struct):  New first_time field.
5106         (init_pp_output):  Set print.first_time.
5107         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
5108         which is set also for (say) <command line>.  Clear print.first_time.
5109
5110         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
5111         does not match the code, so fix both.
5112         (should_stack_file):  Inline include_pch_p function.
5113         (include_pch_p):  Remove pointless function.
5114
5115         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
5116
5117 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5118
5119         * config/h8300/h8300.md (four define_peephole2's): Use
5120         h8300_regs_ok_for_stm().
5121
5122 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5123
5124         * config/h8300/h8300-protos.h: Update the prototype for
5125         expand_a_rotate().
5126         * config/h8300/h8300.c (expand_a_rotate): Remove the first
5127         argument.
5128         * config/h8300/h8300.md: Update all callers.
5129
5130 2004-02-18  Jan Hubicka  <jh@suse.cz>
5131
5132         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
5133         floats.
5134         (simplify_binary_operation): Deal with logicals on floats.
5135
5136         * i386.md (SSE fabs splitters): Emit new patterns.
5137         (SSE cmov splitters): Likewise.
5138         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
5139         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
5140         subregs.
5141         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
5142         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
5143
5144 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5145
5146         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
5147         by hand.
5148         (output_a_rotate): Tweak a comment.
5149         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
5150         (*rotlhi3_1): Change to rotlhi3_1.
5151         (*rotlsi3_1): Change to rotlsi3_1.
5152
5153 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
5154
5155         PR target/13866
5156         * arm.c (load_multiple_operation): Don't insist that the source reg
5157         of a post-increment component is the same as the destination.
5158         (store_multiple_operation): Likewise.
5159
5160 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5161
5162         * config/h8300/h8300.md: Move movsf patterns into one section
5163         of the file.
5164
5165 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5166
5167         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
5168         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
5169         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
5170         config/mips/linux64.h, config/pa/pa-64.h,
5171         config/rs6000/aix51.h, config/rs6000/aix52.h,
5172         config/rs6000/spe.md, config/sparc/linux.h,
5173         config/sparc/linux64.h: Update copyright.
5174
5175 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5176
5177         * config/h8300/h8300.md: Move push patterns into one
5178         section of the file.
5179
5180 2004-02-18  Mark Mitchell <mark@codesourcery.com>
5181
5182         PR c++/11326
5183         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
5184         fntype.
5185
5186 2004-02-18  Paul Brook  <paul@codesourcery.com>
5187
5188         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
5189
5190 2004-02-18  Paul Brook  <paul@codesourcery.com>
5191
5192         PR debug/12934
5193         * dwarf2out.c (loc_descriptor_from_tree): Handle
5194         EXPR_WITH_FILE_LOCATION.
5195
5196 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
5197
5198         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
5199         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
5200         trailing whitespace from instructions.
5201
5202 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
5203
5204         * configure.ac: When generating auto-build.h, pass
5205         --enable-languages to the sub-configure.
5206         Put quotes around ${program_transform_name} when generating
5207         name of as, ld, nm, objdump.
5208         * configure: Regenerate.
5209
5210 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
5211
5212         * Makefile.in (s-check, s-config, s-conditions, s-flags)
5213         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
5214         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
5215         (s-preds, s-iov): Do not depend on move-if-change.
5216
5217 2004-02-17  James E Wilson  <wilson@specifixinc.com>
5218
5219         * caller-save.c (insert_restore): Pass mem through copy_rtx.
5220         (insert_save): Likewise.
5221
5222 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5223
5224         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
5225         warning.
5226
5227 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5228
5229         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
5230         *one_cmplsi2_h8300.
5231         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
5232
5233 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5234
5235         * config/h8300/h8300-protos.h: Update the prototype of
5236         fix_bit_operand().
5237         * config/h8300/h8300.c (fix_bit_operand): Remove the second
5238         argument "what".
5239         * config/h8300/h8300.md: Update all callers.
5240
5241 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5242
5243         * config/h8300/h8300.c (fix_bit_operand): Change the name of
5244         the last argument to "code" from "type".
5245
5246 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5247
5248         * config/h8300/h8300.c: Remove an extern declaration of
5249         rtx_equal_function_value_matters.
5250
5251 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5252
5253         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
5254         by hand.
5255         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
5256         (*iorqi3_1): Change to iorqi3_1.
5257         (*xorqi3_1): Change to xorqi3_1.
5258
5259 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5260
5261         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
5262         typos.
5263
5264 2004-02-17  Jan Hubicka  <jh@suse.cz>
5265
5266         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
5267
5268 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
5269
5270         PR optimization/14119
5271         * combine.c (try_combine): When attemting to fix unrecognized insns,
5272         don't delete SETs marked with REG_EH_REGION notes.
5273
5274 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
5275
5276         * combine.c (simplify_if_then_else): Do not replace
5277         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
5278         modes differ.
5279
5280 2004-02017  Steven Bosscher  <stevenb@suse.de>
5281
5282         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
5283         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
5284         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
5285         * ada/utils.c: Likewise.
5286         * cp/decl.c: Likewise.
5287         * f/com.c: Likewise.
5288         * java/class.c: Likewise.
5289
5290 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5291
5292         * config/h8300/h8300.md: Fix comment typos.
5293
5294 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5295
5296         * config/mips/t-iris6gld: Renamed to ...
5297         * config/mips/t-irix-gld: ... this.
5298         * config.gcc (mips-sgi-irix6*): Reflect this
5299         (mips-sgi-irix5*): Use it with GNU ld.
5300
5301         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
5302         to ...
5303         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
5304         * config/mips/t-irix-gld: Reflect this.
5305         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5306
5307         * config/mips/iris5gld.h: New file.
5308         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
5309         Only use collect2 without gas.
5310
5311         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
5312         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
5313         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
5314         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5315
5316         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
5317         * config/mips/iris5.h: ... here.
5318
5319         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
5320         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
5321         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
5322
5323         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
5324         using irix_startfile_spec, irix_endfile_spec.
5325
5326 2004-02-16  Gunther Nikl  <gni@gecko.de>
5327
5328         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
5329
5330 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5331
5332         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
5333         insns by hand.
5334
5335 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5336
5337         * cfghooks.c (split_edge): Speed up updating of dominators.
5338
5339 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
5340
5341         PR c++/11326
5342         * c-common.c (flag_abi_version): Remove.
5343         * c-common.h (flag_abi_version): Likewise.
5344         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
5345         * c.opt (fabi-version): Remove.
5346         * calls.c (expand_call): Always pass a function type to
5347         struct_value_rtx.  Use convert_memory_address.
5348         * common.opt (fabi-version): Add it.
5349         * flags.h (flag_abi_version): Likewise.
5350         (abi_version_at_least): New macro.
5351         * opts.c (common_handle_option): Add OPT_fabi_version.
5352         * toplev.c (flag_abi_version): Define it.
5353         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
5354         New function.
5355         (ia64_output_mi_thunk): Use it.
5356         (ia64_struct_value_rtx): Likewise.
5357
5358 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5359
5360         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
5361         Don't generate insns by hand.
5362
5363 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
5364
5365         PR c++/14178
5366         * doc/invoke.texi (fabi-version): The default is 2 now.
5367
5368 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5369
5370         * loop-iv.c: New file.
5371         * Makefile.in (loop-iv.o): New.
5372         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
5373         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
5374         num_loop_branches): New functions.
5375         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
5376         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
5377         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
5378         get_simple_loop_desc, free_simple_loop_desc): Declare.
5379         (simple_loop_desc): New inline function.
5380         (struct rtx_iv, struct niter_desc): New.
5381         * cfgloopmanip.c (loopify): Specify semantics more precisely.
5382         * expr.c (force_operand): Handle subregs of expressions created by
5383         loop unroller.
5384         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
5385         parts of the initialization to toplev.c
5386         * loop-unroll.c (loop_exit_at_end_p): New.
5387         (unroll_and_peel_loops): Call iv_analysis_done.
5388         (decide_peel_once_rolling, decide_peel_completely,
5389         decide_unroll_stupid, decide_unroll_constant_iterations,
5390         decide_unroll_runtime_iterations, decide_peel_simple,
5391         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
5392         unroll_loop_runtime_iterations): Use new simple loop analysis.
5393         * loop-unswitch.c (compare_and_jump_seq): New.
5394         (may_unswitch_on_p): Renamed to ...
5395         (may_unswitch_on): Use new iv analysis.
5396         (reversed_condition): Export.
5397         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
5398         * predict.c (estimate_probability): Use new simple loop analysis.
5399         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
5400         canon_condition, simplify_using_condition): Declare.
5401         * stor-layout.c (get_mode_bounds): New.
5402         * toplev.c (rest_of_handle_loop2): Some parts of
5403         initialization/finalization moved here from loop-init.c.
5404
5405 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5406
5407         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
5408         pointer.
5409         (CALL_USED_REGISTERS): Likewise.
5410         (REG_ALLOC_ORDER): Likewise.
5411         (REG_CLASS) <GENERAL_REGS>: Likewise.
5412
5413 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
5414
5415         * doc/md.texi (Insn Canonicalizations): Document left-chaining
5416         in associative operators.
5417         * rtlanal.c (commutative_operand_precedence): Create some new
5418         variables.  Prefer a commutative operand on the left, then
5419         binary expressions, then NEG and NOT.
5420
5421 2004-02-16  Matthias Klose  <doko@debian.org>
5422
5423         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
5424         in terms of SHLIB_SOVERSION.
5425         * config/m68k/t-slibgcc-elf-ver: New file.
5426         * config/pa/t-slibgcc-elf-ver: New file.
5427         * config.gcc (m68k-linux, parisc-linux): Use them when not
5428         sjlj exceptions are not configured.
5429
5430 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
5431
5432         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
5433
5434 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
5435
5436         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
5437
5438 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
5439
5440         * doc/sourcebuild.texi: Mention backends.html.
5441
5442 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
5443
5444         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
5445         line-map.c, line-map.h, var-tracking.c: Fix comment
5446         formatting.
5447
5448 2004-02-16  Richard Henderson  <rth@redhat.com>
5449
5450         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
5451
5452         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
5453
5454 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
5455
5456         * config/h8300/h8300.md: Remove unnecessary parallels from
5457         all define_insn and define_split patterns.
5458
5459 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
5460
5461         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
5462         "clobber").
5463
5464 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
5465
5466         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
5467         '%#'.
5468
5469 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
5470
5471         * config/ia64/ia64.c, config/mips/mips.c,
5472         config/mmix/mmix-modes.def: Fix comment typos.
5473
5474 2004-02-15  Roger Sayle  <roger@eyesopen.com>
5475
5476         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
5477         (get_directive_line): Remove unused function prototype.
5478
5479 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
5480
5481         * tree-inline.c (copy_body_r): Do not replace ret_label.
5482
5483 2004-02-14  Jan Hubicka  <jh@suse.cz>
5484
5485         * i386.c (x86_four_jump_limit): New variable.
5486         (k8_avoid_jump_misspredicts): Rename to ...
5487         (ix86_avoid_jump_misspredicts): .. this one.
5488         (ix86_pad_returns): Break out from ...
5489         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
5490         to.
5491         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
5492
5493 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
5494
5495         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
5496         PARALLEL is NULL.
5497
5498 2004-02-14  Per Bothner  <per@bothner.com>
5499
5500         * fix-header.c (line_table):  Move local variable in main to global.
5501         * scan.h (line_table):  Use it.
5502         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
5503         line (recently renamed to src_loc) before calling recognized_function.
5504
5505 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
5506
5507         * Makefile.in: Fix comment typos.
5508
5509 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
5510
5511         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
5512         for start_value when it is directly moved into reg, and factorize
5513         the retrieval of GET_MODE (reg).
5514
5515 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
5516
5517         * config/mips/mips-protos.h (mips_load_got_page): Delete.
5518         (mips_load_got_global): Delete.
5519         (mips_gotoff_page): Declare.
5520         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
5521         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
5522         UNSPEC_LOAD_GOT pattern rather than a MEM.
5523         (*load_got[sd]i): New patterns.
5524         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
5525         (mips_load_got_page, mips_load_got_global): Delete.
5526         (mips_gotoff_page): New function.
5527         (override_options): Don't initialize mips_got_alias_set.
5528
5529 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
5530
5531         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
5532         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
5533         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
5534         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
5535         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
5536         * config/mips/mips.c: Fix some overly-long lines.
5537         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
5538         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
5539
5540 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5541
5542         * configure.ac: Search for as, ld below libexec/gcc.
5543         * configure: Regenerate.
5544
5545 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
5546
5547         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
5548         __builtin_arm_setwcx ().
5549         * config/arm/arm.c (arm_expand_builtin): Generate operands
5550         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
5551
5552 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
5553
5554         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
5555         and "wmuluh" to "wmulsm" and "wmulum", respectively.
5556         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
5557         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
5558         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
5559         (_mm_mulhi_pu16): Likewise.
5560
5561 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
5562
5563         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
5564         DECL_NAME != 0 before dereferencing.
5565
5566 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
5567
5568         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
5569         (s390_output_addr_const_extra): Declare.
5570         (s390_output_pool_entry): Remove FILE * argument.
5571         * config/s390/s390.c (s390_output_symbolic_const): Remove.
5572         (s390_output_addr_const_extra): New function.
5573         (print_operand_address): Call output_addr_const instead of
5574         s390_output_symbolic_const.
5575         (print_operand): Likewise.
5576         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
5577         Remove FILE * argument.
5578         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
5579         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
5580         call.
5581
5582 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5583
5584         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
5585         (struct edge, struct vertex, struct graph): New.
5586         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
5587         free_graph): New functions.
5588
5589 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
5590
5591         * config/mips/mips.md (casesi_internal, casesi_internal_di):
5592         Use ".set macro" to avoid warnings about multi-instruction
5593         macros, since they're intentional.
5594
5595 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
5596
5597         * config/darwin.h: Add include guards.  Remove old, now incorrect,
5598         comment about STANDARD_EXEC_PREFIX.
5599
5600         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
5601         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
5602         for installing .1 manpages.  Add rules for installing cpp
5603         and gcov manpages under their installed names.
5604
5605 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
5606
5607         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
5608         host, but try LD_FOR_TARGET first.
5609         * configure: Rebuilt.
5610
5611 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5612
5613         * dbxout.c: Move declaration of dbxout_type_decl outside
5614         #ifdef DBX_DEBUGGING_INFO.
5615         * c-parse.in: Don't give the asmdef production a type.
5616
5617 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5618
5619         * debug.h (struct gcc_debug_hooks): Add type_decl field.
5620         (debug_nothing_tree_int): Prototype.
5621         (dwarf_debug_hooks): Delete, unused.
5622         * debug.c (do_nothing_debug_hooks): Update.
5623         (debug_nothing_tree_int): New function.
5624         * langhooks.h (struct lang_hooks_for_decls):
5625         Remove builtin_type_decls field.
5626         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
5627         (LANG_HOOKS_DECLS): Update.
5628         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
5629         Use debug_hooks->type_decl.
5630         * dbxout.c (preinit_symbols): New static.
5631         (dbx_debug_hooks, xcoff_debug_hooks): Update.
5632         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
5633         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
5634         for symbols to output.
5635         (dbxout_type_decl): New function.
5636         (dbxout_symbol): If called before dbxout_init has run, queue
5637         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
5638         to TYPE_DECLs before emitting them.
5639         * xcoffout.c (assign_type_number): Delete.
5640         (xcoff_type_numbers): New static table.
5641         (xcoff_assign_fundamental_type_number): New function.
5642         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
5643         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
5644         * sdbout.c: Include varray.h.
5645         (deferred_global_decls): New static.
5646         (sdb_debug_hooks): Update.
5647         (sdbout_global_decl): If we can't emit something right now,
5648         remember it in deferred_global_decls.
5649         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
5650         (sdbout_init): Initialize deferred_global_decls.
5651         * Makefile.in: Update dependencies of sdbout.o.
5652         * dwarf2out.c (dwarf2out_type_decl): New function.
5653         (dwarf2_debug_hooks): Update.
5654         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
5655         * c-decl.c (getdecls): Just return 0.
5656         (check_for_loop_decls): Don't use getdecls.
5657         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
5658         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
5659
5660 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
5661
5662         * config/s390/s390.c (s390_sched_reorder2): Remove.
5663         (TARGET_SCHED_REORDER2): Do not redefine.
5664
5665 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5666
5667         * c-parse.in (maybe_type_qual): Delete.
5668         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
5669         (asm_argument): New grammar rules.
5670         (extdef_1): Use asmdef.
5671         (maybeasm): Move down with other asm rules; use simple_asm_expr.
5672         (xexpr): Move up with other expression rules.
5673         (stmt): Use asm_stmt.
5674
5675         * c-typeck.c (build_asm_expr): New function - body mostly
5676         pulled from build_asm_stmt.
5677         (build_asm_stmt): Just handle tacking on the volatile qualifier.
5678         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
5679
5680 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
5681
5682         PR bootstrap/13617
5683         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
5684         (mips_declare_object): Make variadic.
5685         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
5686         mips_output_aligned_decl_common.
5687         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
5688         (mips_declare_object): Make variadic.
5689
5690 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5691
5692         * function.c (update_epilogue_consts): Teach about binary operations.
5693
5694         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
5695         previous MEM_VOLATILE in REF.
5696         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
5697         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
5698
5699 2004-02-12  Gunther Nikl  <gni@gecko.de>
5700
5701         * config.gcc: Restore support for m68k-openbsd.
5702
5703 2004-02-12  Jan Hubicka  <jh@suse.cz>
5704
5705         * tree-optimize.c (tree_rest_of_compilation): Do not release
5706         DECL_ARGUMENTS.
5707
5708 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
5709
5710         * doc/install.texi: Fix the spelling of "explicitly".
5711
5712 2004-02-11  Eric Christopher  <echristo@redhat.com>
5713
5714         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
5715         duplicate argument structure of cpp_interpret_string.
5716         * cpphash.h: Move prototype...
5717         * cpplib.h: Here.
5718         * cpplib.c: Fix calls to match new function signature.
5719
5720 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
5721
5722         PR c/456
5723         * cppexp.c (num_binary_op): Don't allow comma operators in #if
5724         constant expressions at all outside C99 mode if pedantic.
5725
5726 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
5727
5728         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
5729         (log10_optab, log2_optab): Define corresponding macros.
5730         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
5731         * genopinit.c (optabs): Implement log10_optab and log2_optab
5732         using log10?f2 and log2?f2 patterns.
5733         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
5734         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
5735         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
5736         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5737
5738         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
5739         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
5740         log2, log2f and log2l built-ins as inline x87 intrinsics.
5741
5742 2004-02-11  Richard Henderson  <rth@redhat.com>
5743
5744         PR target/1532
5745         * flow.c (insn_dead_p): A clobber of a dead hard register is a
5746         dead insn after reload.
5747
5748 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
5749
5750         * tree.h (frame_base_decl): Add GTY marker.
5751         * var-tracking.c (frame_base_decl): Likewise.
5752
5753 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
5754
5755         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
5756         incorrect, hunk.
5757         (add_location_or_const_value_attribute): Use text_section_label,
5758         not TEXT_SECTION_NAME.
5759
5760 2004-02-11  Per Bothner  <per@bothner.com>
5761
5762         Represent column numbers using line-map's source_location.
5763         The "next available source_location" is now managed internally by
5764         line-maps.c rather than by clients.
5765         * line-map.h (struct line_map):  New field column_bits.
5766         <from_line>:  Rename field to start_location.
5767         (struct line_maps):  New fields highest_location and max_column_hint.
5768         (linemap_check_files_exited):  New declaration.
5769         (linemap_line_start):  New declaration.
5770         (linemap_add):  Remove from_line parameter; use highest_location field.
5771         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
5772         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
5773         (CURRENT_LINE_MAP):  Remove macro.
5774         (linemap_position_for_column):  New inline function.
5775         * line-map.c (linemap_init):  Clear new fields.
5776         (linemap_check_files_exited):  New function, extracted from ...
5777         (linemap_free):  Use linemap_check_files_exited.
5778         (linemap_add):  Remove from_line parameter.  Various updates.
5779         (linemap_line_start):  New function.
5780         (linemap_lookeup):  Update for new field names.
5781         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
5782         linemap_position_for_column may unpredictably change the current map,
5783         it is cleaner and simpler for us to not cache it in cpp_reader.
5784         (struct cpp_buffer):  New sysp field.
5785         Changed warned_cplusplus_comments and from_stage3 to bitfields.
5786         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
5787         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
5788         current map using linemap_lookup.
5789         (do_linemarker):  Also set buffer's sysp field.
5790         (destringize_and_run):  No longer need to decrement current line.
5791         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
5792         (search_path_head, open_file_failed):  Use buffer's sysp.
5793         (cpp_make_system_header):  Get current map using linemap_lookup.
5794         Also set buffer's sysp flag.
5795         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
5796         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
5797         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
5798         (struct cpp_reader):  ... and adding saved_line_base field.
5799         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
5800         Update accordingly.  Don't adjust line.
5801         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
5802         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
5803         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
5804         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
5805         * cpplex.c (_cpp_lex_direct):  Likewise.
5806         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
5807         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
5808         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
5809         Remove col field as it is now subsumed by src_loc.
5810         * cpperror.c:  Update various field, parameter, and macro names.
5811         (print_location):  If col==0, try SOURCE_COLUMN of line.
5812         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
5813         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
5814         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
5815         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
5816         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
5817         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
5818         (_cpp_lex_direct):  Use linemap_position_for_column.
5819         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
5820         parameter.  Instead get it from the line_table global.  Adjust callers.
5821         (print):  Remove map field.  Replace line field to src_line.
5822         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
5823         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
5824         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
5825         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
5826         * cpptrad.c (copy_comment):  Rename variable.
5827         * c-lex.c (map):  Remove static variable, for same reason we removed
5828         cpp_reader's map field.
5829         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
5830         to call linemap_lookup.
5831         (cb_line_change):  Token's line field replaced by src_loc.
5832         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
5833         Don't save new_map.
5834
5835         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
5836         source_location.
5837
5838 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
5839
5840         * config/rs6000/altivec.md (*movv4si_internal): At least one
5841         operand must be register_operand.
5842         (*movv8hi_internal1): Likewise.
5843         (*movv16qi_internal1): Likewise.
5844         (*movv4sf_internal1): Likewise.
5845
5846 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
5847
5848         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
5849         operand.
5850         (movv4hi_internal): Same.
5851         (movv2sf_internal): Same.
5852         (movv1di_internal): Same.
5853
5854 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
5855
5856         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
5857         TARGET_OLDABI consistently.
5858         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
5859         mips_va_arg,override_options,compute_frame_size,
5860         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
5861         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
5862         and TARGET_OLDABI consistently.
5863         * config/mips/mips.md (exception_receiver): Likewise.
5864         * config/mips/linux64.h: Likewise.
5865
5866 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
5867
5868         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
5869         Set AltiVec ABI and vrsave as default for ppc64 linux.
5870         (init_cumulative_args): Post error, if try to return
5871         value in AltiVec register without enable AltiVec.
5872         (function_arg_advance): Ditto for passing arguments.
5873
5874 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
5875
5876         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
5877         a label before updating its usage count.
5878
5879 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
5880
5881         * doc/install.texi: Remove extra cd.
5882
5883 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
5884
5885         * c-common.c (vector_size_helper): Remove; call
5886         reconstruct_complex_type() instead.
5887         * tree.c (reconstruct_complex_type): New function
5888         (formerly vector_size_helper() in c-common.c).
5889         (make_vector): Make externally visible.
5890         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
5891
5892 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
5893
5894         * config/h8300/h8300-protos.h: Add a prototype for
5895         h8300_regs_ok_for_stm.
5896         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
5897         * config/h8300/h8300.md (stm_h8300s_2_advanced,
5898         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
5899         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
5900         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
5901         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
5902         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
5903         ldm_h8300s_4_normal, ldm_h8300s_4): Use
5904         h8300_regs_ok_for_stm().
5905
5906 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
5907
5908         PR c/14088
5909         * real.c (real_from_string): Look for 'X' as well as 'x' in
5910         hexfloat strings.
5911
5912 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
5913
5914         * config/h8300/h8300.md: Remove an incorrect comment about
5915         peephole2.  Add comments.
5916
5917 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
5918
5919         PR/14058
5920         * emit-rtl.c (set_decl_incoming_rtl): New.
5921         * tree.h (set_decl_incoming_rtl): New.
5922         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
5923         DECL_INCOMING_RTL.
5924         * ada/misc.c (adjust_decl_rtl): Likewise.
5925
5926 2004-02-10  Per Bothner  <per@bothner.com>
5927
5928         * c-opts.c (c_common_post_options):   Don't emit working directory
5929         in cpp output if -P was specified.
5930
5931 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
5932
5933         PR c/14092
5934         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
5935         negate_expr back to the original type.
5936
5937 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
5938
5939         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
5940         bump retaddr here.
5941
5942 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
5943
5944         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
5945         gen_lowpart_SUBREG): Move under the file in which they
5946         are actually declared.
5947
5948 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
5949
5950         * doc/sourcebuild.texi: Add libada documentation.
5951
5952         * doc/install.texi: Update documentation on Ada build, now
5953         that the GNAT lib and tools are built automatically.
5954
5955 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
5956
5957         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
5958         && TARGET_IRIX.
5959
5960 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
5961
5962         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
5963         boundaries outside build_component_ref() call (a macro in ObjC++).
5964
5965 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
5966
5967         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
5968         (init_cumulative_args): Likewise.
5969         (a7_overlap_mentioned_p): Delete prototype.
5970         * config/xtensa/xtensa.c (struct machine_function): Replace
5971         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
5972         Add set_frame_ptr_insn field.
5973         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
5974         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
5975         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
5976         at the function entry and replace the operand with the pseudo.
5977         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
5978         argument and record this flag in CUMULATIVE_ARGS.
5979         (function_arg): Remove result_mode and special-case code to handle
5980         arguments in a7.  Instead, set need_a7_copy flag when there is an
5981         incoming argument in a7.
5982         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
5983         and use the value recorded in cfun->machine->set_frame_ptr_insn.
5984         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
5985         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
5986         special-case code.
5987         (a7_overlap_mentioned_p): Delete.
5988         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
5989         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
5990         arguments to init_cumulative_args and pass "incoming" flag instead.
5991         (BLOCK_REG_PADDING): Delete.
5992         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
5993         checks for reload_in_progress and reload_completed.  Update calls to
5994         xtensa_copy_incoming_a7.
5995         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
5996         to call xtensa_copy_incoming_a7.
5997
5998 2004-02-09  DJ Delorie  <dj@redhat.com>
5999
6000         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
6001         longer modify standard_exec_prefix, standard_bindir_prefix, or
6002         standard_startfile_prefix.
6003
6004 2004-02-09  James E Wilson  <wilson@specifixinc.com>
6005
6006         PR c++/11295
6007         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
6008         to expand_expr_real call, and pass in alt_rtl as last argument.
6009
6010         PR libstdc++/5625
6011         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
6012         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
6013         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
6014         * except.c (expand_builtin_extend_pointer): New.
6015         * except.h (expand_builtin_extend_pointer): Declare.
6016
6017 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
6018
6019         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
6020         unaligned loads and stores.
6021
6022 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6023
6024         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
6025         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
6026
6027         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
6028         * config/mips/iris5.h: ... here.
6029         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
6030
6031         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
6032         * config/mips/iris5.h: ... here.
6033
6034 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6035
6036         * configure.ac: Remove default executable files before AC_PROG_CC.
6037         * configure: Regenerate.
6038
6039 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
6040
6041         PR target/13721
6042         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
6043         print a operand other than a register.
6044
6045 2004-02-09  Roger Sayle  <roger@eyesopen.com>
6046
6047         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
6048         tree code rather than call fold_convert, which doesn't specify a
6049         default floating point to integer conversion.
6050
6051 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
6052
6053         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
6054         code to support SGS assembler.  Reformat adjacent code where possible.
6055         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
6056         definition.
6057         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
6058         for '%#'.
6059         * config/m68k/linux.h, config/m68k/m68k.c,
6060         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
6061         macros and asm_printf() format strings.
6062         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
6063         * config/m68k/linux.h: Update copyright.
6064         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
6065
6066 2004-02-08  Andreas Schwab  <schwab@suse.de>
6067             Bernardo Innocenti  <bernie@develer.com>
6068
6069         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
6070         REGISTER_PREFIX.
6071         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
6072         frame pointer register, overridable by OS targets.
6073         * (M68K_REGNAME): Macro to obtain register name for asm output,
6074         eventually replacing %a6 with M68K_FP_REG_NAME.
6075         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
6076         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
6077         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
6078         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
6079         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
6080
6081 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
6082
6083         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
6084         hook_rtx_tree_int_null.
6085         * targhooks.c (default_struct_value_rtx): Remove.
6086         * targhooks.h: Remove the prototype for
6087         default_struct_value_rtx.
6088         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
6089         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
6090         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
6091         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
6092         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
6093         config/rs6000/rs6000.c, config/s390/s390.c,
6094         config/stormy16/stormy16.c, config/v850/v850.c,
6095         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
6096         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
6097
6098 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
6099
6100         * README.Portability: Change "ISO C89" to "ISO C90".
6101         * c-parse.in (primary, initelt): Likewise.
6102
6103 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
6104
6105         * real.c (encode_ibm_extended): Normalize the input value before
6106         converting it to a double.  Handle the case where a normal value
6107         rounds to infinity.
6108
6109 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
6110
6111         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
6112         warning.
6113         * cse.c (preferrable): Change to preferable. Update all of its
6114         callers.
6115         * genautomata.c (ainsn): Change
6116         first_ainsn_with_given_equialence_num to
6117         first_ainsn_with_given_equivalence_num.  Update all of its
6118         references.
6119
6120 2004-02-08  Jan Hubicka  <jh@suse.cz>
6121
6122         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
6123
6124 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
6125
6126         * function.c (assign_parms): Fix formatting.
6127
6128 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6129
6130         * default.h (PROMOTE_PROTOTYPES): Remove.
6131         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
6132         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
6133         EXPAND_BUILTIN_SAVEREGS): Poison.
6134         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
6135         hook_bool_tree_false.
6136         (TARGET_PROMOTE_PROTOTYPES): Likewise.
6137         * target.h: Replace SETUP_INCOMING_VARARGS with
6138         targetm.calls.setup_incoming_varargs().
6139         * targhooks.c (default_promote_function_return): Remove.
6140         (default_promote_prototypes): Likewise.
6141         (default_struct_value_rtx): Always abort().
6142         (default_expand_builtin_saveregs): Always print an error
6143         message.
6144         (default_setup_incoming_varargs): Do nothing.
6145         (default_pretend_outgoing_varargs_named): Don't depend on
6146         SETUP_INCOMING_VARARGS.
6147         * targhooks.h: Remove the prototype for
6148         default_promote_function_return and
6149         default_promote_prototypes.
6150
6151 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6152
6153         * system.h (SHARED_SECTION_ASM_OP): Poison.
6154         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
6155         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
6156
6157 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
6158
6159         Bug 13856
6160         * c-decl.c (diagnose_mismatched_decls): Only give special
6161         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
6162         is also true.
6163         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
6164         DECL_FUNCTION_CODE when defining a built-in function.
6165         Don't update DECL_ESTIMATED_INSNS.
6166         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
6167         FUNCTION_DECLs.
6168         * tree.h: Delete DECL_ESTIMATED_INSNS.
6169         * tree-inline.c (struct inline_data): Delete inlined_insns field.
6170         (expand_call_inline, optimize_inline_calls): Don't update
6171         DECL_ESTIMATED_INSNS nor inlined_insns.
6172         * cgraphunit.c (cgraph_analyze_function): Don't update
6173         DECL_ESTIMATED_INSNS.
6174
6175 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
6176
6177         * c-common.c (shadow_warning): Delete.
6178         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
6179         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
6180         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
6181         * c-parse.in (free_parser_stacks): Delete.
6182
6183 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
6184
6185         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
6186         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
6187         Use the top level mkinstalldirs, not the one in the gcc subdir.
6188         * mkinstalldirs: Remove (from the gcc subdir).
6189
6190 2004-02-07  Roger Sayle  <roger@eyesopen.com>
6191
6192         PR middle-end/13696
6193         * fold-const.c (fold_convert): New function to provide type
6194         conversion to the middle-end without using convert.
6195         (negate_expr, associate_trees, size_diffop, omit_one_operand,
6196         operand_equal_for_comparison_p, pedantic_omit_one_operand,
6197         invert_truthvalue, optimize_bit_field_compare, range_binop,
6198         decode_field_reference, make_range, build_range_check, unextend,
6199         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
6200         fold_binary_op_with_conditional_arg, fold_inf_compare,
6201         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
6202         convert with calls to fold_convert.
6203
6204 2004-02-07  Jan Hubicka  <jh@suse.cz>
6205
6206         * genrecog.c (find_operand): add extra argument stop.
6207         (validate_pattern): Verify that mach_dup is duplicating operand
6208         defined lexically earlier.
6209
6210 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6211
6212         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
6213         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
6214         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
6215         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
6216         config/ia64/ia64.h, config/ip2k/ip2k.h,
6217         config/iq2000/iq2000.h, config/mips/iris5.h,
6218         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
6219         config/rs6000/aix51.h, config/rs6000/aix52.h,
6220         config/rs6000/darwin.h, config/rs6000/rs6000.h,
6221         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
6222         config/sparc/linux.h, config/sparc/linux64.h,
6223         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
6224         config/xtensa/xtensa.h: Remove the definitions of
6225         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
6226         MAX_WCHAR_TYPE_SIZE.
6227         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
6228         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
6229
6230 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
6231
6232         PR bootstrap/13990
6233         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
6234         gen_rtx_NE.
6235
6236 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
6237
6238         * var-tracking.c (vt_add_function_parameters): Surround checkings by
6239         #ifdef ENABLE_CHECKING and #endif.
6240
6241 2004-02-07  Roger Sayle  <roger@eyesopen.com>
6242
6243         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
6244         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
6245         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
6246         integer types and floating point with unsafe_math_optimizations.
6247         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
6248         Optimize A - B as A + (-B), if B is easily negated.
6249
6250 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6251
6252         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
6253         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
6254         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
6255         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
6256         Update copyright.
6257
6258 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6259
6260         * c-ppoutput.c, var-tracking.c: Fix comment typos.
6261
6262 2004-02-06  James E Wilson  <wilson@specifixinc.com>
6263
6264         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
6265         glibc 2.3 or better.
6266
6267 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6268
6269         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
6270         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
6271
6272 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
6273
6274         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
6275         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
6276         (SHLIB_MKMAP_OPTS): Delete.
6277         (TARGET_LIBGCC2_CFLAGS): Add -specs.
6278         (bispecs): Add rule.
6279         * config/rs6000/libgcc-ppc64.ver: New file.
6280         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
6281         (__floatdidf, __floatdisf): Optimize multiply.
6282         (__fixunstfdi): New function.
6283         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
6284         real and imag parts larger than one register.
6285         (function_arg): Correct type of reg used when fp arg split partially
6286         to stack.
6287         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
6288         and __MACH__ or __powerpc64__.
6289
6290 2004-02-06  Roger Sayle  <roger@eyesopen.com>
6291             Ulrich Weigand  <uweigand@de.ibm.com>
6292
6293         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
6294         of gen_highpart or gen_lowpart when the floating point format is
6295         wider than the result mode.
6296
6297 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
6298
6299         * dwarf2out.c (loclabel_num): Move into #ifdef
6300         DWARF2_DEBUGGING_INFO.
6301
6302 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
6303
6304         * objc/objc-act.c (build_super_template) the 'class' field of
6305         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
6306         (get_super_receiver): Likewise.
6307
6308 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6309
6310         * reload1.c (check_eliminable_occurrences): Optimize the reset
6311         of can_eliminate.
6312         (eliminate_regs_in_insn): Likewise.
6313
6314 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
6315             Josef Zlomek  <zlomekj@suse.cz>
6316
6317         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
6318         at the beginning of function, call dwarf2out_var_location for
6319         NOTE_INSN_VAR_LOCATION note.
6320         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
6321         decl_loc_table): New.
6322         (lookup_decl_loc): New function.
6323         (add_var_loc_to_decl): New function.
6324         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
6325         only if can_use_fbreg.
6326         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
6327         functions.
6328         (loc_descriptor): Likewise. Process VAR_LOCATION.
6329         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
6330         (loc_descriptor_from_tree): Call mem_loc_descriptor with
6331         can_use_fbreg == true.
6332         (add_location_or_const_value_attribute): Added parameter enum
6333         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
6334         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
6335         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
6336         with attr == DW_AT_location.
6337         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
6338         if frame_base_decl is defined and has a location list.
6339         (gen_variable_die): Call add_location_or_const_value_attribute with
6340         attr == DW_AT_location.
6341         (dwarf2out_var_location): New function.
6342         (dwarf2out_begin_function): New function.
6343         (dwarf2out_init): Create decl_loc_table.
6344
6345 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6346
6347         * loop.c (force_movables): Transitively increase the priorities of
6348         all insns forces by an insn, not just the first one.
6349
6350 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
6351             Daniel Berlin <dberlin@dberlin.org>
6352
6353         Josef Zlomek  <zlomekj@suse.cz>
6354         * Makefile.in (var-tracking.o): New.
6355         * common.opt (fvar-tracking): New.
6356         * flags.h (flag_var_tracking): New.
6357         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
6358         * opts.c (common_handle_option): Add OPT_fvar_tracking.
6359         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
6360         * rtl.c (note_insn_name): Likewise.
6361         * rtl.def (VAR_LOCATION): New.
6362         * rtl.h (NOTE_VAR_LOCATION): New.
6363         (NOTE_VAR_LOCATION_DECL): New.
6364         (NOTE_VAR_LOCATION_LOC): New.
6365         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
6366         (variable_tracking_main): New exported function.
6367         * timevar.def (TV_VAR_TRACKING): New.
6368         * toplev.c (enum dump_file_index): Added DFI_vartrack.
6369         (dump_file): "vartrack" was added (-dV).
6370         (flag_var_tracking): New.
6371         (f_options): "var-tracking" was added.
6372         (rest_of_handle_variable_tracking): New function.
6373         (rest_of_compilation): Run variable tracking.
6374         (process_options): If user has not specified flag_var_tracking set it
6375         according to optimize, debug_info_level and debug_hooks.
6376         * tree.h (frame_base_decl): New.
6377         * var-tracking.c: New file.
6378         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
6379         (ia64_override_options): Set flags to run variable tracking in machine
6380         dependent reorg instead of toplev.c.
6381         (ia64_reorg): Run variable tracking if wanted.
6382         * doc/invoke.texi: Mention variable tracking in -dV,
6383         add and -fvar-tracking.
6384         * doc/passes.texi: Added variable tracking pass.
6385
6386         Daniel Berlin <dberlin@dberlin.org>
6387         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
6388         * dbxout.c (dbx_debug_hooks): Likewise.
6389         (xcoff_debug): Likewise.
6390         * debug.c (do_nothing_debug_hooks): Likewise.
6391         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
6392         * dwarfout.c (dwarf_debug_hooks): Likewise.
6393         * sdbout.c (sdb_debug_hooks): Likewise.
6394         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6395         * final.c (final_scan_insn): Call var_location debug hook for each
6396         NOTE_INSN_VAR_LOCATION.
6397
6398 2004-02-06  Jan Hubicka  <jh@suse.cz>
6399
6400         * flow.c (update_life_info): Allocate reg_deaths when called from
6401         scheudler.
6402         (attempt_auto_inc):  Update life ranges accordingly.
6403
6404 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6405
6406         PR debug/11816
6407         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
6408
6409 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6410
6411         * cfganal.c (flow_call_edges_add): Never split a libcall block.
6412
6413 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
6414
6415         * dwarf2out.c (output_loc_list): Don't use deltas if we have
6416         a separate line info table in use.
6417         Use the correct size for terminators.
6418         (output_die): Use offset, not delta.
6419
6420 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
6421
6422         * doc/invoke.texi: Remove the pni option from -mfpmath=.
6423
6424 2004-02-06  Jan Hubicka  <jh@suse.cz>
6425
6426         * recog.c (split_all_insns): Do not update reg info.
6427         * regrename.c (regrename_optimize): Likewise.
6428         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
6429         * flow.c (struct propagate_block_info): Add insn_num field.
6430         (reg_deaths): New array.
6431         (life_analysis): Free reg_deaths info.
6432         (allocate_reg_life_data): Allocate reg_deaths array.
6433         (propagate_one_insn): Use new array.
6434         (init_propagate_block): Initialize it.
6435         (free_propagate_block_info): Finish compuation of
6436         REG_LIVE_LENGTH
6437         (attempt_auto_inc): Sanity check that REG_INFO is not
6438         computed at same time.
6439         (mark_used_regs): Update new array.
6440
6441         * reg-stack.c (subst_stack_regs): Unshare clobbers before
6442         substitution.
6443
6444 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6445
6446         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
6447         *extendqisi2_short_displ.
6448
6449 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
6450
6451         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
6452         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
6453         (emit_library_call_value_1): Likewise pass nargs.
6454         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
6455         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
6456         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
6457         parameter instead of scanning TYPE_ARGS_TYPES to count args.
6458         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
6459         prototype.
6460         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
6461         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
6462         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
6463         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
6464         INIT_CUMULATIVE_ARGS.
6465         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
6466         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
6467         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
6468         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
6469         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
6470         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
6471         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
6472         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
6473         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
6474         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
6475         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
6476         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
6477
6478 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6479
6480         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
6481         possible.
6482
6483 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6484
6485         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
6486         note containing (plus (reg) (const_int)), where reg is an
6487         eliminable reg, then perform the register elimination without
6488         depending on eliminate_regs().
6489
6490 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6491
6492         * config/arc/arc.c (arc_return_in_memory): Check the return
6493         value of int_size_in_bytes against -1.  Don't check
6494         TREE_ADDRESSABLE.
6495         * config/avr/avr.c (avr_return_in_memory): Check the return
6496         value of int_size_in_bytes against -1.
6497         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
6498         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
6499         Likewise.
6500         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
6501         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
6502         Likewise.
6503
6504 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6505
6506         * config/frv/frv-protos.h: Remove the prototype for
6507         frv_setup_incoming_varargs.
6508         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
6509         (frv_setup_incoming_varargs): Make it static.
6510         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
6511
6512 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6513
6514         * config/fr30/fr30-protos.h: Remove the prototype for
6515         fr30_setup_incoming_varargs.
6516         Update the prototypes for fr30_num_arg_regs and
6517         fr30_function_arg_partial_nregs.
6518         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
6519         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6520         (fr30_setup_incoming_varargs): Make it static.
6521         Add argument second_time.  Don't do anything when second_time
6522         is nonzero.
6523         (fr30_num_arg_regs): Change the type of the first argument to
6524         enum machine_mode.
6525         (fr30_function_arg_partial_nregs): Change the type of the
6526         second argument to enum machine_mode.
6527         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
6528         (SETUP_INCOMING_VARARGS): Remove.
6529
6530 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6531
6532         * config/arc/arc-protos.h: Remove the prototype for
6533         arc_setup_incoming_varargs.
6534         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
6535         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6536         (arc_setup_incoming_varargs): Make it static.
6537         (arc_external_libcall): Likewise.
6538         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
6539         Remove the commented-out definition of
6540         ASM_OUTPUT_EXTERNAL_LIBCALL.
6541
6542 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
6543
6544         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
6545         to $$(slibdir) in the installation commands.
6546
6547 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
6548
6549         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
6550         with inner_regno, not regno.
6551         * rtlanal.c (refers_to_regno_p): Same.
6552
6553 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6554
6555         * config.gcc: Remove i370 support.
6556
6557 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
6558
6559         * doc/install.texi:  Update automake and autoconf version
6560         requirements.  Note where to find gcj automake version.
6561
6562 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
6563
6564         * Makefile.in (generate-manpages): Move dependencies to ...
6565         (man): here.
6566         * doc/makefile.texi: Document new targets.
6567         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
6568
6569 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
6570
6571         PR/13485
6572         Makefile.in (srcextra):  Add a level of indirection to ...
6573         (gcc.srcextra): ... here.
6574         (po-generated): Delete.
6575         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
6576         options.c.
6577         (start.encap): Remove superfluous lang.srcextra dependency.
6578         objc/Make-lang.in (po-generated):  Delete.
6579
6580 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6581
6582         * config/ia64/ia64.c (REG_GP): Remove.
6583
6584 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6585
6586         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
6587
6588 2004-02-05  Devang Patel  <dpatel@apple.com>
6589
6590         * dwarf2out.c (force_type_die): Look up input type itself
6591         instead of root_type() of type.
6592
6593 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
6594
6595         * config/s390/s390.md ("*tmqidi_ext"): New insn.
6596         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
6597         pre-reload splitters are transformed to post-reload
6598         define_insn_and_split patterns.
6599         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
6600
6601 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6602
6603         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
6604         TARGET_PROMOTE_PROTOTYPES.
6605
6606 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6607
6608         PR middle-end/13750
6609         Revert:
6610         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
6611         PR pch/13361
6612         * c-typeck.c (constructor_asmspec): Delete.
6613         (struct initializer_stack): Delete field 'asmspec'.
6614         (start_init): Delete saving of asmspec.
6615         (finish_init): Don't update constructor_asmspec.
6616         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
6617         * stmt.c (expand_asm): Duplicate strings from tree.
6618         (expand_asm_operands): Likewise.
6619         * tree.c (tree_size): Update computation of size of STRING_CST.
6620         (make_node): Don't make STRING_CST nodes.
6621         (build_string): Allocate string with tree node.
6622         * tree.def (STRING_CST): Update comment.
6623         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
6624         (tree_string): Place contents of string in tree node.
6625         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
6626         from tree.
6627
6628 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
6629
6630         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
6631         msgid.
6632
6633 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
6634
6635         * config/rs6000/altivec.md (*movv4si_internal): At least one
6636         operand must be altivec_register_operand.
6637         (*movv8hi_internal1): Likewise.
6638         (*movv16qi_internal1): Likewise.
6639         (*movv4sf_internal1): Likewise.
6640
6641 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
6642
6643         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
6644         * configure: Regenerate.
6645
6646 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
6647
6648         * doc/install.texi: Update description of --gxx-include-dir to
6649         give correct default value.
6650
6651 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6652
6653         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
6654         8 with MAC_REG.
6655
6656 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6657
6658         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
6659         gen_rtx_PARALLEL.
6660
6661 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6662
6663         * emit-rtl.c: Update the comment about the file.
6664
6665 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
6666
6667         * sourcebuild.texi (Test Idioms): Update testcase naming
6668         conventions.
6669
6670 2004-02-04  Per Bothner  <per@bothner.com>
6671
6672         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
6673         * c-ppoutput.c (pp_dir_change):  New function.
6674         * c-common.h (pp_dir_change):  New declaration.
6675         * cpplib.h (struct cpp_options):  Remove working_directory field.
6676         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
6677         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
6678         Don't handle -fworking_directory here, but in c_common_post_options.
6679         (read_original_directory): Don't back up when done.
6680         Don't clear no-longer used working_directory flag.
6681         * cpplib.h:  Update declarations to match.
6682         * c-lex.c (cb_dir_change):  Move to c-opts.c.
6683         (init_c_lex):  Don't set dir_change callback here, since we want
6684         to set it even if flag_preprocess_only.
6685         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
6686         (c_common_post_options):  Set dir_change callback.
6687         Call pp_dir_change if approporiate.
6688         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
6689         unneeded parameter and result. Do LC_RENAME for <built-in>.
6690         (c_common_post_options):  Call cpp_read_main_file here instead.
6691         (c_common_init):  Update accordingly.
6692         (push_command_line_include):  Don't cpp_push_main_file.
6693         Do LC_RENAME rather than LC_LEASE to get back to main file.
6694         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
6695         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
6696         files, but call finish_options for all files.
6697         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
6698         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
6699         cpp_find_main_file + cpp_push_main_file.
6700         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
6701         * opts.c (handle_options):  Only set main_input_filename first time.
6702
6703 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
6704
6705         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
6706
6707 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
6708
6709         * reload.c (find_equiv_reg): When checking for register overlap,
6710         don't index hard_regno_nregs with a pseudo-reg.
6711
6712 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6713
6714         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
6715
6716 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
6717
6718         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
6719         against FIRST_PSEUDO_REGISTER.
6720
6721 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6722
6723         * Makefile.in: Move target, host overrides after per-language
6724         fragments.
6725
6726         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
6727         (GNATLIBCFLAGS): Remove -g.
6728
6729 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6730
6731         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
6732         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6733         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6734         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
6735         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
6736         config/sparc/sparc.c, config/vax/vax.c: Revert the
6737         replacements of "FALLTHRU" with "Fall through" done in the
6738         previous patch.
6739
6740 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6741
6742         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
6743         config/arm/arm.c, config/arm/arm.md,
6744         config/cris/cris-protos.h, config/fr30/fr30.c,
6745         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
6746         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
6747         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
6748         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
6749         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
6750         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
6751         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
6752         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
6753         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
6754         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
6755         config/s390/s390.md, config/sparc/netbsd-elf.h,
6756         config/sparc/openbsd.h, config/sparc/sparc.c,
6757         config/xtensa/lib2funcs.S: Fix comment formatting.
6758
6759 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6760
6761         * config/alpha/alpha.c, config/arc/arc.c,
6762         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
6763         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
6764         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
6765         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
6766         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6767         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6768         config/iq2000/iq2000.c, config/m32r/m32r.c,
6769         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6770         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
6771         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
6772         config/rs6000/rs6000.h, config/sparc/sparc.c,
6773         config/vax/vax.c: Fix comment typos.  Follow spelling
6774         conventions.
6775
6776 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6777
6778         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
6779         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
6780         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
6781         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
6782         config/arm/fpa.md, config/arm/iwmmxt.md,
6783         config/arm/netbsd-elf.h, config/arm/netbsd.h,
6784         config/m68hc11/m68hc11.md, config/mips/iris5.h,
6785         config/mn10300/mn10300.md, config/rs6000/altivec.md,
6786         config/sparc/netbsd-elf.h: Update copyright.
6787
6788 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
6789
6790         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
6791         for all modes whose size is greater than 8 bytes if ARCH32.
6792         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
6793         by reference if ARCH32.
6794
6795 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
6796
6797         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
6798
6799 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6800
6801         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
6802         to before adddi3 insn patterns.
6803         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
6804         "reload_insi"): Move to before addsi3 insn patterns.
6805
6806 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
6807
6808         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
6809         parameter.  Use it instead of current_function_is_thunk.
6810         * function.h (struct function): Update documentation for is_thunk.
6811         * tree.h (CALL_FROM_THUNK_P): New macro.
6812         * config/alpha/alpha.c (alpha_sa_mask): Do not check
6813         no_new_pseudos when testing current_function_is_thunk.
6814         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
6815
6816 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6817
6818         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
6819         TARGET_SETUP_INCOMING_VARARGS.
6820
6821 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6822
6823         * emit-rtl.c (gen_rtx): Remove.
6824         * genattrtab.c: Don't mention gen_rtx in a comment.
6825         * rtl.h: Remove the prototype for gen_rtx.
6826         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
6827
6828 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6829
6830         * config/arc/arc.h, config/fr30/fr30.h
6831         (SETUP_INCOMING_VARARGS): Remove the target-independent
6832         comments.
6833         * doc/tm.texi: Don't mention deprecated target macros.
6834
6835 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6836
6837         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
6838         target-independent comment.
6839
6840 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6841
6842         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
6843         mention deprecated target macros.
6844
6845 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6846
6847         * config.gcc: Remove obsolete ports and configurations.
6848         * config/linux-aout.h, config/netware.h,
6849         config/t-linux-gnulibc1, config/d30v/abi,
6850         config/d30v/d30v-protos.h, config/d30v/d30v.c,
6851         config/d30v/d30v.h, config/d30v/d30v.md,
6852         config/d30v/libgcc1.asm, config/d30v/t-d30v,
6853         config/dsp16xx/dsp16xx-modes.def,
6854         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
6855         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
6856         config/i370/README, config/i370/i370-c.c,
6857         config/i370/i370-protos.h, config/i370/i370.c,
6858         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6859         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
6860         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
6861         config/i386/moss.h, config/i386/netware.h,
6862         config/i386/svr3.ifile, config/i386/svr3dbx.h,
6863         config/i386/svr3gas.h, config/i386/svr3z.ifile,
6864         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
6865         config/i960/i960-c.c, config/i960/i960-coff.h,
6866         config/i960/i960-modes.def, config/i960/i960-protos.h,
6867         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6868         config/i960/rtems.h, config/i960/t-960bare,
6869         config/m68k/hp310.h, config/m68k/hp320.h,
6870         config/m68k/hp320base.h, config/m68k/m68kv4.h,
6871         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
6872         Remove.
6873         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
6874         doc/md.texi: Remove mentions of obsolete ports.
6875
6876 2004-02-04  Jan Hubicka  <jh@suse.cz>
6877
6878         * alias.c (find_base_term, get_addr):  Do not dereference NULL
6879         pointer when all VALUE's locations has been invalidated.
6880         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
6881
6882 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
6883
6884         * doc/invoke.texi (x86 options): Fix spelling/wording.
6885
6886 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
6887
6888         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
6889         put the original string in a comment.
6890         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
6891         * config/mips/mips.c (mips_output_ascii): Likewise.
6892         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
6893
6894 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6895
6896         * system.h (GIV_SORT_CRITERION): Poison.
6897         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
6898         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
6899
6900 2004-02-03  Roger Sayle  <roger@eyesopen.com>
6901
6902         PR target/9348
6903         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
6904         multiplies with a multiplication of the wrong signedness, its the
6905         signedness of the multiplication that we've performed that needs to
6906         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
6907         if expand_mult_highpart_adjust places the result in target.
6908
6909 2004-02-03  Richard Henderson  <rth@redhat.com>
6910
6911         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
6912
6913 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
6914
6915         * config.gcc (sh[234]l): Use little endian fragments.
6916
6917 2004-02-03  Paul Koning  <pkoning@equallogic.com>
6918
6919         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
6920         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
6921         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
6922         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
6923         floating point format.
6924         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
6925         the above functions.
6926         (output_move_quad): Output float values in correct target format.
6927         (legitimate_const_double_p): New function.
6928         * config/pdp11/pdp11.h: Fix typos.
6929         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
6930         (TARGET_FLOAT_FORMAT): Ditto.
6931         (pdp11_f_format, pdp11_d_format): Add external declarations.
6932         (MAX_REGS_PER_ADDRESS): Corrected.
6933         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
6934         (PRINT_OPERAND): Output float literals in target format.
6935
6936 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
6937
6938         PR c++/13975
6939         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
6940         TI_PRIVATE.
6941         (access_public_node): Redefine.
6942         (access_protected_node): Likewise.
6943         (access_private_node): Likewise.
6944         * tree.c (build_common_tree_nodes): Create access_public_node,
6945         access_protected_node, and access_private_node.
6946
6947 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
6948
6949         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
6950         (MASK_INLINE_INT_DIV_THR): Ditto.
6951         (MASK_INLINE_SQRT_LAT): Ditto.
6952         (MASK_INLINE_SQRT_THR): Ditto.
6953         (MASK_DWARF2_ASM): Ditto.
6954         (MASK_EARLY_STOP_BITS): Ditto.
6955
6956 2004-02-02  Paul Brook  <paul@codesourcery.com>
6957
6958         Merge from csl-arm-branch.
6959
6960         2004-01-30  Paul Brook  <paul@codesourcery.com>
6961
6962         * aof.h (REGISTER_NAMES): Add vfp reg names
6963         (ADDITIONAL_REGISTER_NAMES): Ditto.
6964         * aout.h (REGISTER_NAMES): Ditto.
6965         (ADDITIONAL_REGISTER_NAMES): Ditto.
6966         * arm-protos.h: Update/Add Prototypes.
6967         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
6968         Only allow 0.0 for VFP.
6969         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
6970         (values_fp): Rename from values_fpa.  Update Users.
6971         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
6972         Update users.  Only check valid constants for this hardware.
6973         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
6974         Only allow consts for FPA.
6975         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
6976         Only allow consts for FPA.
6977         (use_return_insn): Check for saved VFP regs.
6978         (arm_legitimate_address_p): Handle VFP DFmode addressing.
6979         (arm_legitimize_address): Ditto.
6980         (arm_general_register_operand): New function.
6981         (vfp_mem_operand): New function.
6982         (vfp_compare_operand): New function.
6983         (vfp_secondary_reload_class): New function.
6984         (arm_float_compare_operand): New function.
6985         (vfp_print_multi): New function.
6986         (vfp_output_fstmx): New function.
6987         (vfp_emit_fstm): New function.
6988         (arm_output_epilogue): Output VPF reg restore code.
6989         (arm_expand_prologue): Output VFP reg save code.
6990         (arm_print_operand): Add 'P'.
6991         (arm_hard_regno_mode_ok): Return modes for VFP regs.
6992         (arm_regno_class): Return classes for VFP regs.
6993         (arm_compute_initial_elimination_offset): Include space for VFP regs.
6994         (arm_get_frame_size): Ditto.
6995         * arm.h (FIXED_REGISTERS): Add VFP regs.
6996         (CALL_USED_REGISTERS): Ditto.
6997         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
6998         (FIRST_VFP_REGNUM): Define.
6999         (LAST_VFP_REGNUM): Define.
7000         (IS_VFP_REGNUM): Define.
7001         (FIRST_PSEUDO_REGISTER): Include VFP regs.
7002         (HARD_REGNO_NREGS): Handle VFP regs.
7003         (REG_ALLOC_ORDER): Add VFP regs.
7004         (enum reg_class): Add VFP_REGS.
7005         (REG_CLASS_NAMES): Ditto.
7006         (REG_CLASS_CONTENTS): Ditto.
7007         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
7008         (REG_CLASS_FROM_LETTER): Add 'w'.
7009         (EXTRA_CONSTRAINT_ARM): Add 'U'.
7010         (EXTRA_MEMORY_CONSTRAINT): Define.
7011         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
7012         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
7013         (REGISTER_MOVE_COST): Ditto.
7014         (PREDICATE_CODES): Add arm_general_register_operand,
7015         arm_float_compare_operand and vfp_compare_operand.
7016         * arm.md (various): Rename as above.
7017         (divsf3): Enable when TARGET_VFP.
7018         (divdf3): Ditto.
7019         (movdfcc): Ditto.
7020         (sqrtsf2): Ditto.
7021         (sqrtdf2): Ditto.
7022         (arm_movdi): Disable when TARGET_VFP.
7023         (arm_movsi_insn): Ditto.
7024         (movsi): Only split with general regs.
7025         (cmpsf): Use arm_float_compare_operand.
7026         (push_fp_multi): Restrict to TARGET_FPA.
7027         (vfp.md): Include.
7028         * vfp.md: New file.
7029         * fpa.md (various): Rename as above.
7030         * doc/md.texi: Document ARM w and U constraints.
7031
7032         2004-01-15  Paul Brook  <paul@codesourcery.com>
7033
7034         * config.gcc: Add with_fpu.  Allow with-float=softfp.
7035         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
7036         Break out of loop when we find a float-abi.  Fix typo.
7037         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
7038         Set -mfloat-abi=.
7039         * doc/install.texi: Document --with-fpu.
7040
7041         2003-01-14  Paul Brook  <paul@codesourcery.com>
7042
7043         * config.gcc (with_arch): Add armv6.
7044         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
7045         * config/arm/arm.c (arm_overrride_options): Ditto.
7046
7047         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
7048
7049         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
7050         (FL_ARCH6): Renamed from FL_ARCH6J.
7051         (arm_arch3m): Renamed from arm_fast_multiply.
7052         (arm_arch6): Renamed from arm_arch6j.
7053         * arm.h: Update all uses of above.
7054         * arm-cores.def: Likewise.
7055         * arm.md: Likewise.
7056
7057         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
7058         not arm6j.  Add entry for arch armv6.
7059
7060         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
7061
7062         * arm.c (arm_emit_extendsi): Delete.
7063         * arm-protos.h (arm_emit_extendsi): Delete.
7064         * arm.md (zero_extendhisi2): Also handle zero-extension of
7065         non-subregs.
7066         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
7067         (thumb_zero_extendhisi2): Only match if not v6.
7068         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
7069         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
7070         (thumb_extendqisi2): Likewise.
7071         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
7072         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
7073         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
7074         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
7075         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
7076         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
7077         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
7078         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
7079         (arm_extendqisi2addsi): Likewise.
7080
7081         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
7082
7083         Revert this change:
7084         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
7085         + REG addressing modes.
7086
7087         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
7088         + REG addressing modes.
7089
7090         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
7091
7092         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
7093         CONSTANT_P_RTX.
7094
7095         2003-30-12  Paul Brook  <paul@codesourcery.com>
7096
7097         * longlong.h: protect arm inlines with !defined (__thumb__)
7098
7099         2003-30-12  Paul Brook  <paul@codesourcery.com>
7100
7101         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
7102
7103         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
7104
7105         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
7106         change.
7107
7108         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
7109
7110         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
7111         to the virtual incoming args pointer for downward stacks.
7112
7113         2003-12-29  Paul Brook  <paul@codesourcery.com>
7114
7115         * config/arm/arm-cores.def: Add cost function.
7116         * config/arm/arm.c (arm_*_rtx_costs): New functions.
7117         (arm_rtx_costs): Remove
7118         (struct processors): Add rtx_costs field.
7119         (all_cores, all_architectures): Ditto.
7120         (arm_override_options): Set targetm.rtx_costs.
7121         (thumb_rtx_costs): New function.
7122         (arm_rtx_costs_1): Remove cases handled elsewhere.
7123         * config/arm/arm.h (processor_type): Add COSTS parameter.
7124
7125         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
7126
7127         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
7128         (arm926ejs.md): Include it.
7129         * config/arm/arm926ejs.md: New pipeline description.
7130
7131         2003-12-24  Paul Brook  <paul@codesourcery.com>
7132
7133         * config/arm/arm.c (arm_arch6j): New variable.
7134         (arm_override_options): Set it.
7135         (arm_emit_extendsi): New function.
7136         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
7137         * config/arm/arm.h (arm_arch6j): Declare.
7138         * config/arm/arm.md: Add sign/zero extend insns.
7139
7140         2003-12-23  Paul Brook  <paul@codesourcery.com>
7141
7142         * config/arm/arm.c (all_architectures): Add armv6.
7143         * doc/invoke.texi: Document it.
7144
7145         2003-12-19  Paul Brook  <paul@codesourcery.com>
7146
7147         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
7148         insn patterns to match.
7149         * config/arm/arm-generic.md: Ditto.
7150         * config/arm/cirrus.md: Ditto.
7151         * config/arm/fpa.md: Ditto.
7152         * config/amm/iwmmxt.md: Ditto.
7153         * config/arm/arm1026ejs.md: Ditto.
7154         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
7155         for 11_loadb.
7156
7157         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
7158
7159         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
7160         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
7161         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
7162         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
7163         arm_no_early_mul_dep): Correctly deal with conditional execution,
7164         parallels and single shift operations.
7165         (arm_no_early_alu_shift_value_dep): Define.
7166         * arm.md (attr type): Replace 'normal' with 'alu',
7167         'alu_shift' and 'alu_shift_reg'.
7168         (attr core_cycles): Adjust.
7169         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
7170         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
7171         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
7172         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
7173         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
7174         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
7175         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
7176         attribute appropriately.
7177         * config/arm/arm1026ejs.md (alu_op): Adjust.
7178         (alu_shift_op, alu_shift_reg_op): New.
7179         * config/arm/arm1136.md: Add better bypasses for early
7180         registers. Remove load[234] and store[234] bypasses.
7181         (11_alu_op): Adjust.
7182         (11_alu_shift_op, 11_alu_shift_reg_op): New.
7183
7184         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
7185
7186         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
7187         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
7188         * config/arm/arm.c (arm_no_early_store_addr_dep,
7189         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
7190         * config/arm/arm1026ejs.md: Add load-store bypass.
7191         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
7192         Add bypasses between instructions.
7193
7194         2003-12-10  Paul Brook  <paul@codesourcery.com>
7195
7196         * config/arm/arm.c (arm_fpu_model): New variable.
7197         (arm_fload_abi): New variable.
7198         (target_fpe_name): Rename from target_fp_name.
7199         (target_fpu_name): New variable.
7200         (arm_is_cirrus): Remove.
7201         (fpu_desc): New struct.
7202         (all_fpus): Define.
7203         (pf_model_for_fpu): Define.
7204         (all_loat_abis): Define.
7205         (arm_override_options): Set fp arch flags based on -mfpu=
7206         and -float-abi=.
7207         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
7208         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
7209         (*): Use new TARGET_* flags.
7210         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
7211         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
7212         (TARGET_SOFT_FLOAT): Ditto.
7213         (TARGET_SOFT_FLOAT_ABI): New.
7214         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
7215         TARGET_HARD_FLOAT.
7216         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
7217         (TARGET_OPTIONS): Add -mfpu=.
7218         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
7219         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
7220         (arm_pf_model): Define.
7221         (arm_float_abi_type): Define.
7222         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
7223         * config/arm/arm.md: Use new TARGET_* flags.
7224         * config/arm/cirrus.md: Ditto.
7225         * config/arm/fpa.md: Ditto.
7226         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
7227         * config/arm/semi.h (ASM_SPEC): Ditto.
7228         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
7229         (FPUTYPE_DEFAULT): Set to VFP.
7230         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
7231
7232         2003-11-22  Phil Edwards  <phil@codesourcery.com>
7233
7234         PR target/12476
7235         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
7236         'bx' instead of 'b' to avoid branch range restrictions.  Output
7237         the thunk immediately before the thunked-to function.
7238         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
7239         .thumb_func if a thunk is being generated.  Emit .code 16 along
7240         with .thumb_func if a thunk is not being generated.
7241
7242         2003-11-15  Nicolas Pitre <nico@cam.org>
7243
7244         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
7245         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
7246         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
7247         (lshrdi3_iwmmxt): Renamed from lshrdi3.
7248         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
7249
7250         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
7251             Ian Lance Taylor  <ian@wasabisystems.com>
7252
7253         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
7254         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
7255
7256         2003-11-05  Phil Edwards  <phil@codesourcery.com>
7257
7258         * config/arm/arm.md (insn):  Add new V6 instruction names.
7259         (generic_sched):  New attr.
7260         * config/arm/arm-generic.md:  Use generic_sched here.
7261         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
7262         stages of pipeline.  Adjust latency counts accordingly.
7263         * config/arm/arm1136jfs.md:  New file.
7264
7265         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
7266
7267         * config/arm/arm.h (processor_type): New enumeration type.
7268         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
7269         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
7270         (CPP_CPU_ARCH_SPEC): Likewise.
7271         * config/arm/arm.c (arm_tune): New variable.
7272         (all_cores): Use cores.def.
7273         (all_architectures): Add representative processor.
7274         (arm_override_options): Restructure way in which tuning
7275         information is deduced.
7276         * arm.md: Update "insn" and "type" attributes throughout.
7277         (insn): New attribute.
7278         (type): Compute "mult" from "insn" attribute.  Add load2,
7279         load3, load4 alternatives.
7280         (arm automaton): Move to arm-generic.md.
7281         * config/arm/arm-cores.def: New file.
7282         * config/arm/arm-generic.md: Likewise.
7283         * config/arm/arm1026ejs.md: Likewise.
7284
7285 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
7286
7287         * doc/invoke.texi (SPARC options): Remove -mflat and
7288         all -mxxx (xxx:chip) options.
7289         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
7290         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
7291         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
7292         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
7293         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
7294         * config/sparc/sparc.c: Likewise.
7295         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
7296         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
7297         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
7298         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
7299         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
7300         (sparc_flat_must_save_register_p): Likewise.
7301         (sparc_flat_compute_frame_size): Likewise.
7302         (sparc_flat_save_restore): Likewise.
7303         (sparc_flat_function_prologue): Likewise.
7304         (sparc_flat_function_epilogue): Likewise.
7305         (sparc_flat_epilogue_delay_slots): Likewise.
7306         (sparc_flat_eligible_for_epilogue_delay): Likewise.
7307         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
7308         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
7309         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
7310         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
7311         (CONDITIONAL_REGISTER_USAGE): Likewise.
7312         (FRAME_POINTER_REQUIRED): Likewise.
7313         (INITIAL_ELIMINATION_OFFSET): Likewise.
7314         (BASE_RETURN_VALUE_REG): Likewise.
7315         (BASE_OUTGOING_VALUE_REG): Likewise.
7316         (BASE_PASSING_ARG_REG): Likewise.
7317         (BASE_INCOMING_ARG_REG): Likewise.
7318         (INCOMING_REGNO): Likewise.
7319         (OUTGOING_REGNO): Likewise.
7320         (LOCAL_REGNO): Likewise.
7321         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
7322         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
7323         (EPILOGUE_USES): Likewise.
7324         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
7325         ("flat" attribute): Delete.
7326         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
7327         handling.
7328         (call followed by jump define_peephole's): Delete.
7329         (exception_receiver): Likewise.
7330         (builtin_setjmp_receiver): Likewise.
7331         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
7332
7333 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
7334
7335         PR c/11658
7336         PR c/13994
7337         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
7338         on langhooks.h.
7339         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
7340         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
7341         Include langhooks.h.  Replace c_common_truthvalue_conversion
7342         with the truthvalue_conversion language hook throughout.
7343         (expr_no_commas): Call default_conversion before save_expr
7344         for the first term of the production 'x ? : y'.
7345         * c-common.c (c_common_truthvalue_conversion): Remove
7346         obsolete block.  Invoke recursively the hook instead
7347         of this function.
7348         * c-convert.c (convert): handle ERROR_MARK_NODE.
7349         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
7350         returned by the truthvalue_conversion language hook.
7351         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
7352         c_objc_common_truthvalue_conversion.
7353         * c-objc-common.c (c_objc_common_truthvalue_conversion):
7354         New function.
7355         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
7356         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
7357         c_objc_common_truthvalue_conversion.
7358
7359 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7360
7361         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
7362         of gen_rtx.
7363         (LIBCALL_VALUE): Likewise.
7364         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
7365         gen_rtx_CC0 instead of gen_rtx.
7366         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
7367         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
7368         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
7369         gen_rtx.
7370         (m68hc11_emit_logical): Likewise.
7371
7372 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7373
7374         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
7375         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
7376         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
7377         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
7378         config/mips/mips.md, config/mmix/mmix.c,
7379         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
7380         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
7381         config/rs6000/altivec.md, config/s390/s390.c,
7382         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
7383         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
7384         Use const0_rtx instead of GEN_INT (0).  Do the same for other
7385         constants that are readily available.
7386
7387 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7388
7389         * doloop.c, optabs.c, regmove.c, sched-deps.c,
7390         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
7391         instead of GEN_INT (0).  Do the same for other constants that
7392         are readily available.
7393
7394 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7395
7396         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
7397         gen_rtx.
7398         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
7399         instead of gen_rtx.
7400         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
7401         gen_rtx.
7402         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
7403         gen_rtx_ASHIFT instead of gen_rtx.
7404         (udivmodqi4): Likewise.
7405
7406 2004-02-02  Richard Henderson  <rth@redhat.com>
7407
7408         PR target/13789
7409         * expr.c (store_expr): Use force_operand before emit_move_insn.
7410
7411 2004-02-02  Jeff Law  <law@redhat.com>
7412             Roger Sayle  <roger@eyesopen.com>
7413
7414         * tree.c (commutative_tree_code, associative_tree_code): New
7415         functions.
7416         (iterative_hash_expr): Use commutative_tree_code.
7417         * tree.h (commutative_tree_code, associative_tree_code): Declare.
7418         * fold-const.c (operand_equal_p): Use commutative_tree_code
7419         rather than inlining the commutativity check.
7420         (fold): Likewise.
7421
7422 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7423
7424         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
7425         * config/frv/frv-protos.h: Remove the prototype for
7426         frv_function_arg_keep_as_reference.
7427         * config/frv/frv.c (frv_function_arg_keep_as_reference):
7428         Remove.
7429         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
7430         * config/stormy16/stormy16.h: Remove the commented-out
7431         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
7432
7433 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
7434
7435         PR target/13914
7436         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
7437         for retaddr_column.
7438
7439 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7440
7441         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
7442         gen_rtx.
7443
7444 2004-02-02  Eric Christopher  <echristo@redhat.com>
7445             Zack Weinberg  <zack@codesourcery.com>
7446
7447         * c-opts.c (c_common_handle_option): Add -finput-charset.
7448         * c.opt: Ditto.
7449         * cppcharset.c (one_iso88591_to_utf8): Remove.
7450         (convert_iso88591_utf8): Ditto.
7451         (conversion_tab): Remove 8859-1 converter.
7452         (_cpp_input_to_utf8): Remove.
7453         (_cpp_init_iconv_buffer): Ditto.
7454         (_cpp_close_iconv_buffer): Ditto.
7455         (_cpp_convert_input): New function.
7456         (_cpp_default_encoding): Ditto.
7457         * cpphash.h: Add/remove prototypes for above.
7458         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
7459         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
7460         for narrow execution and input character sets.
7461         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
7462         * doc/cppopts.texi: Document -finput-charset.
7463
7464 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
7465
7466         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
7467         against FIRST_PSEUDO_REGISTER.
7468
7469 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7470
7471         * doc/invoke.texi (SPARC options): Further improve.
7472
7473 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7474
7475         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
7476         config/h8300/h8300.c, config/ip2k/ip2k.md,
7477         config/iq2000/iq2000.c, config/mips/mips.c,
7478         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
7479         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
7480         config/v850/v850.md: Fix indentation.
7481
7482 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7483
7484         * config/sparc/sparc.c (function_arg_slotno): Align TImode
7485         arguments on a 16-byte boundary in the parameter array if ARCH64.
7486         Split handling of TFmode.
7487
7488 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
7489
7490         * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
7491         Don't test CONSTANT_P (x).
7492         (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
7493         ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
7494         Fix misindentation.
7495
7496 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7497
7498         * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
7499
7500 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7501
7502         * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
7503         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
7504         config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
7505         config/iq2000/iq2000.c, config/m32r/m32r.c,
7506         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
7507         config/mn10300/mn10300.c, config/rs6000/rs6000.c,
7508         config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
7509         config/stormy16/stormy16.c, config/v850/v850.md,
7510         config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
7511
7512 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
7513
7514         * config/mcore/mcore.c (block_move_sequence): Replace
7515         gen_rtx_CONST_INT with GEN_INT.
7516
7517 2004-02-02  Jan Hubicka  <jh@suse.cz>
7518
7519         * alias.c (record_set): Use hard_regno_nregs.
7520         * bt-load.c (find_btr_reference, note_btr_set): Likewise.
7521         * builtins.c (apply_args_size): Likewise.
7522         * caller-save.c (setup_save_areas, save_call_clobbered_regs,
7523         mark_set_regs, add_stored_regs, mark_referenced_regs,
7524         insert_restore, insert_save, insert_one_insn): Likewise.
7525         * cfgcleanup.c: Include regs.h
7526         (mark_effect, mentions_nonequal_regs): Likewise.
7527         * cfgrtl.c (mark_killed_regs): Likewise
7528         * combine.c (update_table_tick, record_value_for_reg,
7529         record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
7530         reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
7531         reg_bitfield_target_p, distribute_notes): Likewise.
7532         * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
7533         exp_equiv_p, cse_insn): Likewise.
7534         * cselib.c (cselib_lookup): Likewise.
7535         (cselib_invalidate_regno, cselib_record_set): Likewise.
7536         * df.c (df_ref_record): Likewise.
7537         * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
7538         Likewise.
7539         * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
7540         count_or_remove_death_notes_bb): Likewise.
7541         * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
7542         * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
7543         mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
7544         * integrate.c (mark_stores): Likewise.
7545         * jump.c (delete_prior_computation): Likewise.
7546         * lcm.c (reg_dies, reg_becomes_live): Likewise.
7547         * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
7548         * loop.c (LOOP_REGNO_NREGS): Likewise.
7549         * postreload.c (reload_combine, reload_combine_note_store,
7550         reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
7551         * ra-colorize.c (combine, color_usable_p, get_free_reg,
7552         calculate_dont_begin, calculate_dont_begin, colorize_one_web,
7553         try_recolor_web, insert_coalesced_conflicts, check_colors,
7554         break_precolored_alias): Likewise.
7555         * ra-debug.c: Include regs.h
7556         (ra_print_rtx_object): Likewise.
7557         * ra-rewrite (choose_spill_colors): Likewise.
7558         (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
7559         * ra.c (init_ra): Likewise.
7560         * recog.c (reg_fits_class_p, peep2_reg_dead_p,
7561         peep2_find_free_register): Likewise.
7562         * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
7563         * regclass.c (hard_regno_nregs): New array.
7564         (init_reg_modes_once): Initialize it.
7565         (choose_hard_reg_mode): Use it.
7566         (record_reg_classes): Likewise.
7567         * regmove.c (mark_flags_life_zones): Likewise.
7568         * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
7569         scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
7570         copy_value, maybe_mode_change, find_oldest_value_reg,
7571         copyprop_hardreg_forward_1):
7572         * regs.h (hard_regno_nregs): Declare.
7573         * realod.c (reload_inner_reg_of_subreg): Use it.
7574         (push_reload, combine_reloads, find_dummy_reload,
7575         hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
7576         refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
7577         reload_adjust_reg_for_mode): Likewise.
7578         * reload1.c (compute_use_by_pseudos, count_pseudo,
7579         count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
7580         spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
7581         clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
7582         allocate_reload_reg, choose_reload_regs, emit_reload_insns,
7583         delete_output_reload): Likewise.
7584         * resource.c (update_live_status, mark_referenced_resources,
7585         mark_set_resources, mark_target_live_regs): Likewise.
7586         * rtlanal.c:  Include regs.h
7587         (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
7588         dead_or_set_regno_p, find_regno_note, find_reg_fusage,
7589         subreg_regno_offset, subreg_offset_representable_p,
7590         hoist_test_store): Likewise.
7591         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
7592         * sched-rgn.c (check_live_1, update_live_1): Likewise.
7593         * stmt.c: Include regs.h
7594         (decl_conflicts_with_clobbers_p): Likewise.
7595         * varasm.c (make_decl_rtl): Likewise.
7596         * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
7597
7598 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
7599
7600         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
7601         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
7602         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
7603         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
7604         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
7605         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
7606         config/iq2000/iq2000.h, config/m32r/m32r.c,
7607         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
7608         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
7609         config/mcore/mcore.c, config/mcore/mcore.h,
7610         config/mcore/mcore.md, config/mips/mips.c,
7611         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
7612         config/rs6000/rs6000.c, config/s390/s390.c,
7613         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
7614         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
7615         "gen_rtx (FOO, " with "gen_rtx_FOO (".
7616
7617 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
7618
7619         * config/h8300/h8300.md (two peephole2's): New.
7620
7621 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
7622
7623         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
7624         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
7625         (ASM_CPU_SPEC): Likewise
7626         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
7627         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
7628
7629 2004-02-01  Roger Sayle  <roger@eyesopen.com>
7630
7631         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
7632         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
7633         (expand_builtin): Always call expand_builtin_pow.
7634
7635 2004-02-01  Roger Sayle  <roger@eyesopen.com>
7636
7637         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
7638         BUILT_IN_SIGNBITL): New GCC builtins.
7639         * builtins.c (expand_builtin_signbit): New function to RTL expand
7640         calls to signbit, signbitf and signbitl as inline intrinsics.
7641         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
7642         (fold_builtin_signbit): New function to perform constant folding
7643         of signbit, signbitf and signbitl.
7644         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
7645
7646         * doc/extend.texi: Document new signbit{,f,l} builtins.
7647
7648 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
7649
7650         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
7651
7652 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
7653
7654         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
7655         "mips_const_double_ok" and "simple_memory_operand", which were
7656         removed from the MIPS port with the mips-3_4-rewrite branch merge.
7657         * config/mips/mips.c (mips16_lay_out_constants): Update comment
7658         for removal of simple_memory_operand.
7659
7660 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7661
7662         * config/c4x/c4x.md: Use GEN_INT instead of
7663         gen_rtx (CONST_INT, ...).
7664
7665 2004-01-31  Richard Henderson  <rth@redhat.com>
7666
7667         * varasm.c (output_constant_pool): Don't zap the pool.
7668
7669 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7670
7671         * genrecog.c (decision_type): Add DT_const_int.
7672         (write_cond) [DT_const_int]: Print a comparison against small
7673         constant.
7674         (write_node): Simplify comparisons against small constants
7675         before printing tests.
7676
7677 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7678
7679         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
7680         instead of gen_rtx_CONST_INT.
7681
7682 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7683
7684         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
7685         instead of gen_rtx_CONST_INT.
7686
7687 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7688
7689         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
7690         hook_bool_CUMULATIVE_ARGS_false.
7691         * targhooks.c (default_strict_argument_naming): Rename to
7692         hook_bool_CUMULATIVE_ARGS_false.
7693         * targhooks.h: Update the prototype for
7694         default_strict_argument_naming.
7695
7696 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7697
7698         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
7699         * config/sh/sh.h: Likewise.
7700         * config/sh/sh.md: Likewise.
7701
7702 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
7703
7704         * doc/invoke.texi (SPARC options): Restructure and update.
7705
7706 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7707
7708         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
7709         STRICT_ARGUMENT_NAMING): Poison.
7710         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
7711         hook_bool_tree_false.
7712         * targhooks.c (default_promote_function_args): Remove.
7713         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
7714         Don't check incoming.
7715         (default_strict_argument_naming): Don't use
7716         STRICT_ARGUMENT_NAMING.
7717         * targhooks.h: Remove the prototype for
7718         default_promote_function_args.
7719
7720 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7721
7722         * config/i386/i386-protos.h: Remove the prototype for
7723         ix86_setup_incoming_varargs.
7724         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
7725         (ix86_setup_incoming_varargs): Make it static.
7726         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
7727
7728 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7729
7730         * alloc-pool.c: Fix comment typos.
7731         * builtin-types.def: Likewise.
7732         * builtins.def: Likewise.
7733         * c-pretty-print.c: Likewise.
7734         * df.h: Likewise.
7735         * reload1.c: Likewise.
7736
7737 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7738
7739         * doc/invoke.texi: Follow spelling conventions.
7740         * doc/tm.texi: Likewise.
7741
7742 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7743
7744         * doc/install.texi: Fix typos.
7745         * doc/invoke.texi: Likewise.
7746
7747 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
7748
7749         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
7750         registers as pointers.
7751         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
7752
7753 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
7754
7755         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
7756         and restore it to gen_lowpart_general on exit.
7757         (gen_lowpart_for_combine): Adjust all callers to go through
7758         gen_lowpart.
7759         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
7760         and restore it to gen_lowpart_general on exit.
7761         (gen_lowpart_if_possible): Adjust all callers to go through
7762         gen_lowpart.
7763         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
7764         (gen_lowpart): Declare as pointer to function, initialized to
7765         gen_lowpart_general.
7766         * rtl.h (gen_lowpart): Declare as pointer to function.
7767
7768 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7769
7770         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
7771         * calls.c: Likewise.
7772         * emit-rtl.c: Likewise.
7773         * function.c: Likewise.
7774         * reload1.c: Likewise.
7775         * config/i386/cygming.h: Likewise.
7776         * config/i386/i386.c: Likewise.
7777         * config/i386/winnt.c: Likewise.
7778
7779 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
7780
7781         PR bootstrap/9249
7782         * doc/install.texi: document --enable-__cxa_atexit option.
7783         * configure.ac: Disable __cxa_atexit if not supported.
7784         * configure: Regenerate.
7785
7786 2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
7787
7788         * ggc-zone.c (ggc_free): New function.
7789
7790 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7791
7792         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
7793         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
7794         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
7795         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
7796         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
7797         config/alpha/alpha.c, config/alpha/alpha.h,
7798         config/alpha/alpha.md, config/alpha/unicosmk.h,
7799         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
7800         config/c4x/c4x-protos.h, config/c4x/c4x.md,
7801         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
7802         config/frv/frvend.c, config/i386/cygming.h,
7803         config/i386/djgpp.h, config/i386/emmintrin.h,
7804         config/i386/gthr-win32.c, config/i386/i386-interix.h,
7805         config/i386/i386-protos.h, config/i386/openbsd.h,
7806         config/i386/winnt.c, config/i386/xm-mingw32.h,
7807         config/i386/xmmintrin.h, config/ia64/ia64.md,
7808         config/iq2000/iq2000.md, config/m32r/m32r.md,
7809         config/m68k/m68k.md, config/mcore/mcore-elf.h,
7810         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
7811         config/mips/iris5gas.h, config/mips/iris6.h,
7812         config/mips/iris6gas.h, config/mips/linux.h,
7813         config/mips/mips.md, config/mips/netbsd.h,
7814         config/mips/openbsd.h, config/mips/windiss.h,
7815         config/pa/fptr.c, config/rs6000/aix.h,
7816         config/rs6000/altivec.h, config/rs6000/darwin.h,
7817         config/rs6000/xcoff.h, config/s390/s390-protos.h,
7818         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
7819         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
7820         config/sparc/sol2.h: Update copyright.
7821
7822 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
7823
7824         * Makefile.in (abs_docdir, abs_srcdir): Define.
7825         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
7826
7827 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7828
7829         * genconfig.c (main): Have CC0_P check its operand even on a
7830         target without cc0.
7831
7832 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7833
7834         * config/alpha/alpha.c: Remove mentions of deprecates macros
7835         in comments, remove some target-independent comments about target
7836         macros, and/or add minimal function comments for target hook
7837         implementations.
7838         * config/avr/avr.c: Likewise.
7839         * config/ia64/ia64.h: Likewise.
7840         * config/ip2k/ip2k.c: Likewise.
7841         * config/iq2000/iq2000.c: Likewise.
7842         * config/m32r/m32r.h: Likewise.
7843         * config/m68hc11/m68hc11.c: Likewise.
7844         * config/mcore/mcore.c: Likewise.
7845         * config/mmix/mmix.c: Likewise.
7846         * config/mn10300/mn10300.c: Likewise.
7847         * config/pa/pa.c: Likewise.
7848         * config/pdp11/pdp11.c: Likewise.
7849         * config/rs6000/rs6000.h: Likewise.
7850         * config/sh/sh.c: Likewise.
7851         * config/sh/sh.h: Likewise.
7852         * config/sparc/sparc.c: Likewise.
7853         * config/sparc/sparc.h: Likewise.
7854         * config/stormy16/stormy16.c: Likewise.
7855         * config/xtensa/xtensa.c: Likewise.
7856
7857 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7858
7859         PR optimization/12147
7860         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
7861         RELOAD_FOR_OPADDR_ADDR.
7862         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
7863         might be reused as RELOAD_FOR_OPADDR_ADDR register.
7864
7865 2004-01-30  Jan Hubicka  <jh@suse.cz>
7866
7867         * reload.c (get_secondary_mem): Fix updating of
7868         secondary_memlocs_elim_used.
7869
7870 2004-01-30  Richard Henderson  <rth@redhat.com>
7871
7872         * varasm.c (struct rtx_const, struct pool_constant): Remove.
7873         (MAX_RTX_HASH_TABLE): Remove.
7874         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
7875         (first_pool, last_pool, pool_offset): Remove.
7876         (struct rtx_constant_pool): Split out from ...
7877         (struct varasm_status): ... here.  Reference one via pointer.
7878         (struct constant_descriptor_rtx): Merge struct pool_constant.
7879         (SYMHASH): Remove.
7880         (decode_rtx_const): Remove.
7881         (const_hash_rtx, compare_constant_rtx): Remove.
7882         (record_constant_rtx): Remove.
7883         (const_desc_rtx_hash, const_desc_rtx_eq): New.
7884         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
7885         (const_rtx_hash_1, const_rtx_hash): New.
7886         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
7887         (simplify_subtraction): Use simplify_rtx.
7888         (force_const_mem): Rewrite to use new data structures.
7889         (find_pool_constant): Likewise.
7890         (get_pool_constant, get_pool_constant_mark,
7891         get_pool_constant_for_function, get_pool_mode,
7892         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
7893         (output_constant_pool_2): Split out from output_constant_pool.
7894         (output_constant_pool_1): Likewise.  Use new pool datastructures.
7895         (output_constant_pool): Zap entire pool datastructure.
7896         (mark_constant): Use new pool datastructures.
7897         (mark_constants): Use for_each_rtx.
7898         (mark_constant_pool): Use new pool datastructures.
7899
7900 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
7901
7902         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
7903         Copy operands[1] to pseudo for simplify_gen_subreg.
7904
7905 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7906
7907         * gcse.c (bypass_block): Fix a typo in the previous check-in
7908         to the file.
7909
7910 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
7911
7912         * toplev.c: Include alloc-pool.h.
7913         * Makefile.in (toplev.c): Update dependencies.
7914
7915 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7916
7917         * combine.c (simplify_shift_const, case XOR): Be careful when
7918         commuting XOR with ASHIFTRT.
7919
7920 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7921             Eric Botcazou  <ebotcazou@libertysurf.fr>
7922
7923         * config/sparc/sparc-protos.h: Remove the prototype for
7924         sparc_builtin_saveregs.
7925         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7926         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7927         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7928         (TARGET_STRUCT_VALUE_RTX): Likewise.
7929         (TARGET_RETURN_IN_MEMORY): Likewise.
7930         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7931         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7932         (sparc_builtin_saveregs): Make it static.
7933         (sparc_promote_prototypes): New.
7934         (sparc_struct_value_rtx): Likewise.
7935         (sparc_return_in_memory): Likewise.
7936         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
7937         (PROMOTE_FUNCTION_RETURN): Likewise.
7938         (RETURN_IN_MEMORY): Likewise.
7939         (STRUCT_VALUE): Likewise.
7940         (STRUCT_VALUE_INCOMING): Likewise.
7941         (EXPAND_BUILTIN_SAVEREGS): Likewise.
7942         (STRICT_ARGUMENT_NAMING): Likewise.
7943         (PROMOTE_PROTOTYPES): Likewise.
7944
7945         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
7946
7947 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7948
7949         PR c/12818
7950         * varasm.c (const_hash_1) <STRING_CST>: Use the
7951         address to compute the hash value if flag_writable_strings.
7952         (compare_constant) <STRING_CST>: Compare the addresses
7953         if flag_writable_strings.
7954         (build_constant_desc): Do not copy the expression for a
7955         STRING_CST if flag_writable_strings.
7956
7957 2004-01-30  Jan Hubicka  <jh@suse.cz>
7958
7959         * alloc-pool.c: Include hashtab.h
7960         (alloc_pool_descriptor): New structure
7961         (alloc_pool_hash): New global variable.
7962         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
7963         (create_alloc_pool): Update statistics.
7964         (free_alloc_pool): Likewise.
7965         (pool_alloc): Likewise.
7966         (output_info): New structure
7967         (print_statistics, dump_alloc_pool_statistics): New function.
7968         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
7969         (dump_alloc_pool_statistics): Declare.
7970         * toplev.c (finalize):  Dump statistics.
7971
7972         * reload.c (secondary_memlocs_elim_used): New static variable.
7973         (get_secondary_mem): Update it.
7974         (find_reloads): Use it.
7975
7976 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
7977
7978         * toplev.c: Fix broken checkin of 2003-12-30, again.
7979
7980 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7981
7982         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
7983         s390*-*-* targets by specifying a 'nop' insn.
7984         * configure: Regenerate.
7985
7986 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7987
7988         PR target/11475
7989         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
7990
7991 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
7992
7993         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
7994         of addr when creating MEM copy.
7995
7996 2004-01-29  Devang Patel  <dpatel@apple.com>
7997
7998         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
7999
8000 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
8001
8002         PR inline-asm/6162
8003         * reload.c (find_reloads): Only support one pair of commutative
8004         operands.
8005
8006 2004-01-29  Roger Sayle  <roger@eyesopen.com>
8007
8008         PR java/13824
8009         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
8010         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
8011         recursion.
8012
8013 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
8014
8015         * config/frv/frv.c: Don't mention deprecated macros in
8016         comments.  Remove some target-independent comments about
8017         target macros.
8018         * config/frv/frv.h: Likewise.
8019
8020 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8021
8022         * cfghooks.c (split_block): Set probability and count of the
8023         new edge.
8024
8025 2005-01-29  Josef Zlomek  <zlomekj@suse.cz>
8026
8027         * dwarf2out.c (struct die_struct): Added field decl_id.
8028         (decl_die_table): Changed to hash table.
8029         (decl_die_table_allocated): Deleted.
8030         (decl_die_table_in_use): Deleted.
8031         (DECL_DIE_TABLE_INCREMENT): Deleted.
8032         (decl_die_table_hash): New function.
8033         (decl_die_table_eq): New function.
8034         (lookup_decl_die): Lookup in a hash table.
8035         (equate_decl_number_to_die): Insert into a hash table.
8036         (dwarf2out_init): Init hash table decl_die_table.
8037
8038 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
8039
8040         PR optimization/13424
8041         * expr.c (store_constructor): Revert 2003-12-03 change.
8042
8043         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
8044         expected before returning early.  Avoid sharing RTL if they
8045         need to be changed.
8046
8047         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
8048         handling so that memory attributes are preserved.  Don't call
8049         ix86_set_move_mem_attrs.
8050         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
8051         (ix86_expand_clrstr): Rename src argument to
8052         dst.  Rework rep_stos and strset handling so that memory attributes
8053         are preserved.
8054         (ix86_expand_strlen): Pass src argument to
8055         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
8056         memory attributes are preserved.
8057         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
8058         change_address instead of gen_rtx_MEM.
8059         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
8060         expanders.
8061         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
8062         strmovqi, strmovqi_rex64): Remove.
8063         (rep_mov*, strmov*): Prefix insn names with *.
8064         (strset, strset_singleop, rep_stos): New expanders.
8065         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
8066         strsetqi, strsetqi_rex64): Remove.
8067         (rep_stos*, strset*): Prefix insn names with *.
8068         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
8069         to SImode.
8070         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
8071         are preserved.
8072         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
8073         Prefix insn names with *.
8074         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
8075         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
8076         (strlenqi_1): New expander.
8077         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
8078
8079 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8080
8081         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
8082         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
8083         verify_flow_info): Declaration removed.
8084         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
8085         (debug_bb, debug_bb_n): Add argument to dump_bb call.
8086         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
8087         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
8088         instead of delete_block.
8089         * cfghooks.c: Include timevar.h and toplev.h.
8090         (cfg_hooks): Define here.
8091         (verify_flow_info, dump_bb): Moved from cfg.c.
8092         (redirect_edge_and_branch, redirect_edge_and_branch_force,
8093         split_block, split_block_after_labels, move_block_after,
8094         delete_basic_block, split_edge, create_basic_block,
8095         create_empty_bb, can_merge_blocks_p, merge_blocks,
8096         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
8097         New functions.
8098         * cfghooks.h (struct cfg_hooks): Added fields name,
8099         make_forwarder_block, tidy_fallthru_edge and
8100         move_block_after. Changed type of verify_flow_info, dump_bb,
8101         split_block fields. Renamed cfgh_split_edge and delete_block
8102         fields.
8103         (redirect_edge_and_branch, redirect_edge_and_branch_force,
8104         split_block, delete_block, split_edge, create_basic_block,
8105         can_merge_blocks_p, merge_blocks): Macros removed.
8106         (cfg_hooks): Do not export.
8107         (verify_flow_info, dump_bb, redirect_edge_and_branch,
8108         redirect_edge_and_branch_force, split_block, split_block_after_labels,
8109         move_block_after, delete_basic_block, split_edge, create_basic_block,
8110         create_empty_bb, can_merge_blocks_p, merge_blocks,
8111         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
8112         Declare.
8113         (cfg_layout_rtl_cfg_hooks): Declare.
8114         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
8115         New functions.
8116         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
8117         (redirect_edge_with_latch_update): Removed.
8118         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
8119         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
8120         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
8121         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
8122         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
8123         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
8124         cfghooks.c.
8125         (rtl_create_basic_block): Coding style fix.
8126         (rtl_tidy_fallthru_edge, rtl_move_block_after,
8127         rtl_make_forwarder_block): New functions.
8128         (update_cfg_after_block_merging): Removed.
8129         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
8130         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
8131         to dump_bb.
8132         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
8133         find_if_case_2): Don't update dominators.
8134         * timevar.def (TV_CFG_VERIFY): New.
8135         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
8136         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
8137         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
8138         (remove_bbs): Don't call remove_bbs.
8139         (create_preheader): Use make_forwarder_block.
8140         (mfb_keep_just, mfb_update_loops): New static functions.
8141
8142 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
8143
8144         * config/avr/avr.h: Remove target-independent comments about
8145         target macros.
8146
8147 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
8148
8149         * timevar.c (timevar_print): Mention when checking is enabled.
8150
8151 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
8152
8153         * c-lex.c (c_lex): Rename to...
8154         (c_lex_with_flags): Add new parameter to get CPP flags.
8155         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
8156         * c-pragma.h (c_lex_with_flags): Declare.
8157
8158 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8159
8160         * config/mcore/mcore.c (mcore_external_libcall): Add a
8161         comment.
8162         (mcore_return_in_memory): Likewise.
8163
8164 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8165
8166         * config/mcore/mcore-protos.h: Remove the prototype for
8167         mcore_setup_incoming_varargs.
8168         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
8169         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
8170         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8171         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8172         (TARGET_STRUCT_VALUE_RTX): Likewise.
8173         (TARGET_RETURN_IN_MEMORY): Likewise.
8174         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8175         (mcore_setup_incoming_varargs): Make it static.  Receive the
8176         first argument by reference.  Add argument second_time.
8177         (mcore_external_libcall): New.
8178         (mcore_return_in_memory): Likewise.
8179         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
8180         (PROMOTE_FUNCTION_RETURN): Likewise.
8181         (STRUCT_VALUE): Likewise.
8182         (RETURN_IN_MEMORY): Likewise.
8183         (SETUP_INCOMING_VARARGS): Likewise.
8184         (PROMOTE_PROTOTYPES): Likewise.
8185         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8186
8187 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8188
8189         * config/m32r/m32r-protos.h: Remove the prototype for
8190         m32r_setup_incoming_varargs.
8191         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
8192         (TARGET_STRUCT_VALUE_RTX): Likewise.
8193         (TARGET_RETURN_IN_MEMORY): Likewise.
8194         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8195         (m32r_return_in_memory): New.
8196         (m32r_setup_incoming_varargs): Make it static.
8197         * config/m32r/m32r.h: Remove #undef of
8198         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
8199         definitions of PROMOTE_FUNCTION_ARGS and
8200         PROMOTE_FUNCTION_RETURN.
8201         (PROMOTE_PROTOTYPES): Remove.
8202         (RETURN_IN_MEMORY): Likewise.
8203         (STRUCT_VALUE): Likewise.
8204
8205 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8206
8207         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
8208         (TARGET_STRUCT_VALUE_RTX): Likewise.
8209         (m68k_struct_value_rtx): Likewise.
8210         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
8211         STRUCT_VALUE_REGNUM.
8212         (PROMOTE_PROTOTYPES): Remove.
8213         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
8214         STRUCT_VALUE_REGNUM.
8215         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
8216         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
8217
8218 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8219
8220         * config/stormy16/stormy16.c
8221         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
8222         TARGET_BUILD_BUILTIN_VA_LIST.
8223
8224 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8225
8226         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
8227         (TARGET_STRUCT_VALUE_RTX): Likewise.
8228         (TARGET_RETURN_IN_MEMORY): Likewise.
8229         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8230         (v850_return_in_memory): Likewise.
8231         (v850_setup_incoming_varargs): Likewise.
8232         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
8233         (SETUP_INCOMING_VARARGS): Likewise.
8234         (RETURN_IN_MEMORY): Likewise.
8235         (STRUCT_VALUE): Likewise.
8236
8237 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8238
8239         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
8240         (fr30_setup_incoming_varargs): Don't use
8241         STRICT_ARGUMENT_NAMING.
8242         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
8243         (STRICT_ARGUMENT_NAMING): Likewise.
8244
8245 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8246
8247         * config/frv/frv-protos.h: Remove the prototype for
8248         frv_expand_builtin_saveregs.
8249         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
8250         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8251         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
8252         STRUCT_VALUE_REGNUM.
8253         (frv_expand_builtin_saveregs): Make it static.
8254         (frv_struct_value_rtx): New.
8255         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
8256
8257 2004-01-29  Jan Hubicka  <jh@suse.cz>
8258
8259         PR c++/12850
8260         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
8261         initial pointers.
8262         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
8263         for functions that will be only inlined.
8264         (cgraph_mark_function_to_output): Likewise.
8265         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
8266         do not clear function body.
8267         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
8268         (tree_rest_of_compilation): Reorganize the logic releasing function
8269         body to use callgraph datastructure.
8270
8271 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8272
8273         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
8274         to register_operand.
8275
8276 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
8277
8278         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
8279         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
8280         match_operand expressions so that all match_dups appear
8281         lexically after their corresponding match_operands.
8282
8283 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8284
8285         * config/h8300/h8300.c (WORD_REG_USED): Use
8286         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
8287         (compute_saved_regs): Likewise.
8288         (h8300_expand_prologue): Likewise.  Allocate locals after
8289         saving registers.
8290         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
8291         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
8292         registers.
8293         (h8300_initial_elimination_offset): Adjust for the new frame
8294         layout, which swaps flips the order of locals and saved
8295         registers.
8296         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
8297         (HARD_FRAME_POINTER_REGNUM): New.
8298         (ELIMINABLE_REGS): Add an elimination rule from
8299         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
8300         (REGISTER_NAMES): Add fp.
8301         * config/h8300/h8300.md (FP_REG): Change to 11.
8302         (HFP_REG): New.
8303
8304 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8305
8306         * genrecog.c (write_node): Remove a useless local variable.
8307
8308 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
8309
8310         * Makefile.in (options.c options.h): Use stamp file s-options to
8311         avoid unnecessary rebuilds.
8312         (options.o): New target listing dependencies.
8313         (gtyp-gen.h): Use stamp file s-gtyp-gen.
8314         (STAGESTUFF): Add s-gtyp-gen.
8315
8316 2004-01-28  Richard Henderson  <rth@redhat.com>
8317
8318         * ggc.h (ggc_free): Declare.
8319         * ggc-common.c (ggc_realloc): Use it.
8320         * ggc-page.c: Remove lots of inline markers.
8321         (globals): Add free_object_list.
8322         (ggc_alloc): Tidy.
8323         (ggc_free, validate_free_objects): New.
8324         (poison_pages): Provide default.
8325         (ggc_collect): Call validate_free_objects; emit markers to
8326         the debug file.
8327
8328 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
8329             Jim Wilson  <wilson@specifixinc.com>
8330
8331         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
8332         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
8333         scratch pointer.
8334         (ia64_secondary_reload_class): Delete case GR_REGS.
8335         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
8336         Do not allocate a scratch register.
8337         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
8338
8339 2004-01-28  Jan Hubicka  <jh@suse.cz>
8340
8341         * gcse.c (bypass_block): Prevent edges to be unified when we are
8342         about to emit compenstation code.
8343
8344 2004-01-28  Nick Clifton  <nickc@redhat.com>
8345
8346         * config/arm/arm.c (arm_expand_builtin): Force second argument of
8347         the setcwx insn into a register.
8348
8349 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
8350
8351         * config/fp-bit.c (pack_d): When using paired doubles to implement
8352         a long double, round the high part separately.
8353         (unpack_d): Fix the case in which the high part is a power of two
8354         and the low part is a nonzero value of the opposite sign.
8355
8356 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8357
8358         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
8359         (TARGET_STRUCT_VALUE_RTX): Likewise.
8360         (c4x_external_libcall): Likewise.
8361         (c4x_struct_value_rtx): Likewise.
8362         * config/c4x/c4x.h: Remove.
8363         (STRUCT_VALUE_REGNUM): Likewise.
8364         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8365
8366 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8367
8368         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
8369         (TARGET_STRUCT_VALUE_RTX): Likewise.
8370         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
8371         (STRUCT_VALUE): Likewise.
8372         (PROMOTE_PROTOTYPES): Likewise.
8373
8374 2004-01-27  Roger Sayle  <roger@eyesopen.com>
8375
8376         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
8377         CONST_INT before using INTVAL.
8378
8379 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
8380
8381         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
8382         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
8383         frame if !TARGET_BACKCHAIN.
8384         * config/s390/s390.md ("allocate_stack"): Use pattern only if
8385         TARGET_BACKCHAIN.
8386         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
8387
8388 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
8389
8390         * ia64.c (ia64_function_arg): When placing HFAs in integer
8391         registers, do not special case the mode used for complex
8392         types.  Do not advance int_regs until the current register
8393         is full.
8394
8395 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
8396
8397         PR target/7297
8398         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
8399
8400 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
8401
8402         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
8403         slow, unaligned loads and stores while debugging.  Fix formatting.
8404
8405 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
8406
8407         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
8408         of computing wmode.
8409         (restore_stack_nonlocal): Same.
8410
8411 2004-01-27  Devang Patel <dpatel@apple.com>
8412
8413         * Makefile.in (dwarf2out.o): Depend on input.h
8414         * dbxout.c (dbx_debug_hooks): Add new empty hook for
8415         imported_module_or_decl.
8416         (xcoff_debug_hooks): Same.
8417         * sdbout.c (sdb_debug_hooks): Same.
8418         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
8419         * debug.c (do_nothing_debug_hooks): Same.
8420         (debug_nothing_tree_tree): New function.
8421         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
8422         * dwarf2out.c: Include input.h.
8423         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
8424         (remove_child_TAG): New function.
8425         (dwarf_tag_name): Handle DW_TAG_imported_module.
8426         (gen_subprogram_die): Equate decl number to declaration die. Do not
8427         remove all children dies while reusing declaration die for definition.
8428         Instead, selectively remove only formal parameters.
8429         (gen_variable_die): Equate variable decl to declaration die.
8430         (gen_field_die): Equate field decl to line number.
8431         (force_namespace_die): Replace it with ...
8432         (force_decl_die): ... this.
8433         (force_type_die): New function.
8434         (setup_namespace_context): Replace use of force_namespace_die() with
8435         force_decl_die().
8436         (gen_namespace_die): Same.
8437         (dwarf2out_imported_module_or_decl): New function.
8438
8439 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
8440
8441         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
8442         on CQImode and CHImode incoming arguments in register a7.
8443         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
8444         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
8445         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
8446         xtensa_copy_incoming_a7 before reload.
8447
8448 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
8449
8450         * coverage.c (get_coverage_counts): Give a different message
8451         if flag_guess_branch_prob is set.
8452         * predict.c (counts_to_freqs): Return an int.
8453         (estimate_bb_frequencies): If counts_to_freqs returns zero,
8454         calculate estimates.
8455
8456 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
8457
8458         * config/iq2000/iq2000-protos.h: Remove the prototype for
8459         iq2000_setup_incoming_varargs.
8460         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8461         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8462         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8463         (TARGET_STRUCT_VALUE_RTX): Likewise.
8464         (TARGET_RETURN_IN_MEMORY): Likewise.
8465         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8466         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8467         (iq2000_return_in_memory): Likewise.
8468         (iq2000_setup_incoming_varargs): Make it static.  Receive the
8469         first argument by reference.
8470         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
8471         (PROMOTE_FUNCTION_RETURN): Likewise.
8472         (PROMOTE_PROTOTYPES): Likewise.
8473         (RETURN_IN_MEMORY): Likewise.
8474         (STRUCT_VALUE): Likewise.
8475         (SETUP_INCOMING_VARARGS): Likewise.
8476         (STRICT_ARGUMENT_NAMING): Likewise.
8477
8478 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
8479
8480         * fixinc/fixinc.c (test_test): Initialize res.
8481         (start_flexer): Initialize pz_cmd_save.
8482
8483 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
8484
8485         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
8486         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
8487
8488 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
8489
8490         PR 7198
8491         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
8492         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
8493         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
8494         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
8495         Possibly rename pattern for consistency.
8496         Remove ??? comments suggesting that this be done.
8497         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
8498         New patterns.
8499         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
8500         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
8501         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
8502         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
8503         Update to match.
8504
8505 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
8506
8507         * config/arm/arm.c (output_return_instruction): Only restore IP
8508         into SP if frame_pointer_needed.
8509
8510 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
8511
8512         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
8513         for SCmode and DCmode if ARCH32.
8514         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
8515         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
8516         if ARCH32.
8517         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
8518         if ARCH32.
8519         (BASE_OUTGOING_VALUE_REG): Likewise.
8520
8521 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
8522
8523         PR target/10904
8524         PR target/13058
8525         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
8526         Forbid mode changes from SImode for lower FP regs if ARCH64.
8527
8528 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
8529
8530         * Makefile.in (bt-load.o): Depend on except.h.
8531         * bt-load.c (except.h): #include.
8532         (compute_defs_uses_and_gen): If insn at end of BB can throw
8533         within this function, consider registers used by it unavailable for
8534         btr migration.
8535         (move_btr_def): If insn at end of BB can throw, insert before rather
8536         than after.
8537
8538         * flags.h (flag_btr_bb_exclusive): Declare.
8539         * toplev.c (flag_btr_bb_exclusive): New variable.
8540         (f_options): Add btr-bb-exclusive.
8541         * bt-load.c (augment_live_range): Restore old behaviour if
8542         flag_btr_bb_exclusive is set.
8543         * common.opt: Add entry for -fbtr-bb-exclusive.
8544         * opts.c (common_handle_options): Same.
8545         * doc/invoke.texi: Document -fbtr-bb-exclusive.
8546
8547         * bt-load.c (btrs_live_at_end): New variable.
8548         (compute_defs_uses_and_gen): Compute its pointed-to array.
8549         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
8550         (augment_live_range): When augmenting with a new dominator,
8551         use only its btrs_live_at_end set, but also add in the full set
8552         of the old dominator.
8553         (btr_def_live_range): Use btrs_live_at_end.
8554         (move_btr_def): Set other_btr_uses_before_def, and move new set
8555         to the end of the basic block, if appropriate.
8556         (migrate_btr_defs): Allocate and free btrs_live_at_end.
8557
8558         * bt-load.c (basic_block_freq): Remove outdated comment.
8559
8560 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
8561
8562         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
8563         (PREDICATE_CODES): Remove duplicate.
8564         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
8565         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
8566         (MASK_PROFILE_KERNEL): Adjust define.
8567
8568 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
8569
8570         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
8571         of long string literals from 32 bytes to sizeof (void *) when !-Os
8572         and to 1 with -Os.
8573
8574 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8575
8576         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
8577         constant addresses in the normal mode.
8578
8579 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8580
8581         * system.h (CHAR_BITFIELD): Delete.
8582         (BOOL_BITFIELD): New.
8583         * c-decl.c (c_scope): Use BOOL_BITFIELD.
8584         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
8585
8586 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8587
8588         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8589         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8590         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8591         (TARGET_STRUCT_VALUE_RTX): Likewise.
8592         (TARGET_RETURN_IN_MEMORY): Likewise.
8593         (arc_return_in_memory): Likewise.
8594         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
8595         (PROMOTE_FUNCTION_RETURN): Likewise.
8596         (RETURN_IN_MEMORY): Likewise.
8597         (STRUCT_VALUE): Likewise.
8598
8599 2004-01-26  Richard Henderson  <rth@redhat.com>
8600
8601         * c-parse.in (extension): Use itype.
8602         (SAVE_EXT_FLAGS): Don't allocate a tree.
8603         (RESTORE_EXT_FLAGS): Don't read a tree.
8604
8605 2004-01-26  Jan Hubicka  <jh@suse.cz>
8606
8607         * cselib.c (discard_useless_values):  Clear out value pointer pointing
8608         to datastructure to be recycled.
8609
8610 2004-01-25  Jan Hubicka  <jh@suse.cz>
8611
8612         * genextract.c (main): Do not output the memset when not checking.
8613
8614 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8615
8616         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
8617         switch statement instead of a chain of if statements.
8618
8619 2004-01-26  Jeff Law  <law@redhat.com>
8620
8621         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
8622         acute accents for Petur Runolfsson's entry.
8623
8624 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8625
8626         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
8627         (TARGET_RETURN_IN_MEMORY): Likewise.
8628         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
8629         (RETURN_IN_MEMORY): Likewise.
8630
8631 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8632
8633          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
8634          unaligned load/store into smaller loads and stores.
8635
8636 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8637
8638         * function.c (assign_parms): Do not assign
8639         long long argument to memory in prologue if
8640         is it loaded into register.
8641
8642 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8643
8644          PR middle-end/13779
8645          * expr.c (emit_group_load): split constant
8646          correctly into register components of PARALLEL insn.
8647
8648 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8649
8650         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
8651         Use adjust_address_nv directly with appropriate mode.
8652         (restore_stack_nonlocal): Ditto.
8653
8654 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8655
8656         * config/xtensa/xtensa-protos.h: Remove the prototype for
8657         xtensa_builtin_saveregs.
8658         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8659         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8660         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8661         (TARGET_STRUCT_VALUE_RTX): Likewise.
8662         (TARGET_RETURN_IN_MEMORY): Likewise.
8663         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8664         (xtensa_builtin_saveregs): Make it static.
8665         (xtensa_return_in_memory): New.
8666         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
8667         (PROMOTE_FUNCTION_RETURN): Likewise.
8668         (PROMOTE_PROTOTYPES): Likewise.
8669         (STRUCT_VALUE): Likewise.
8670         (RETURN_IN_MEMORY): Likewise.
8671         (EXPAND_BUILTIN_SAVEREGS): Likewise.
8672
8673 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8674
8675         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
8676         (arm_setup_incoming_varargs): Likewise.
8677         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
8678
8679 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8680
8681         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
8682         (cris_setup_incoming_varargs): Likewise.
8683         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
8684
8685 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8686
8687         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
8688         (ns32k_struct_value_rtx): Likewise.
8689         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
8690         NS32K_STRUCT_VALUE_REGNUM.
8691
8692 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8693
8694         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8695         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8696         (TARGET_STRUCT_VALUE_RTX): Likewise.
8697         (arm_struct_value_rtx): Likewise.
8698         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
8699         (STRUCT_VALUE): Likewise.
8700         (STRUCT_VALUE_REGNUM): Likewise.
8701         (PROMOTE_PROTOTYPES): Likewise.
8702
8703 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8704
8705         * config/ia64/ia64-protos.h: Remove the prototype for
8706         ia64_setup_incoming_varargs and ia64_return_in_memory.
8707         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
8708         (TARGET_RETURN_IN_MEMORY): Likewise.
8709         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8710         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8711         (ia64_setup_incoming_varargs): Adjust the arguments to meet
8712         the requirement of TARGET_SETUP_INCOMING_VARARGS.
8713         (ia64_return_in_memory): Make it static.  Change the return
8714         type to bool from int.  Add an argument.
8715         (ia64_struct_value_rtx): New.
8716         * config/ia64/ia64.h: Remove commented-out definitions of
8717         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
8718         PROMOTE_PROTOTYPES.
8719         (RETURN_IN_MEMORY): Remove.
8720         (STRUCT_VALUE_REGNUM): Likewise.
8721         (STRICT_ARGUMENT_NAMING): Likewise.
8722
8723 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
8724
8725         PR target/13666
8726         * config/sparc/sparc.c (function_arg_union_value): New function.
8727         (function_arg): Use it to deal with unions.
8728         (function_value): Likewise.  Define 'regbase' only for ARCH64.
8729         Replace a conditional statement by a simpler one.
8730
8731 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
8732
8733         * config/mips/mips.c (mips16_optimize_gp): Delete.
8734         (mips_reorg): Don't call it.
8735
8736 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8737
8738         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
8739         (floatunsqihf2): Remove operand 6.
8740         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
8741         fix patterns.
8742         (ldi_conditional, ldf_conditional): Validate operands.
8743
8744 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8745
8746         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
8747         (HAVE_GAS_HIDDEN): Undefine as interim measure.
8748
8749 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8750
8751         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
8752         memory references if TARGET_EXPOSE_LDP nonzero.
8753
8754 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8755
8756         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
8757
8758 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8759
8760         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
8761         invalid operand combinations.
8762
8763 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8764
8765         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
8766         c4x_legitimate_address_p.  Fix post_modify check.
8767
8768         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
8769         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
8770
8771 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8772
8773         * config/pa/pa-protos.h: Remove the prototype for
8774         hppa_builtin_saveregs.  Add a prototype for
8775         pa_return_in_memory.
8776         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
8777         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8778         (TARGET_STRUCT_VALUE_RTX): Likewise.
8779         (TARGET_RETURN_IN_MEMORY): Likewise.
8780         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8781         (pa_struct_value_rtx): Likewise.
8782         (pa_return_in_memory): Likewise.
8783         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
8784         PA_STRUCT_VALUE_REGNUM.
8785         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
8786         (EXPAND_BUILTIN_SAVEREGS): Remove.
8787         (PROMOTE_PROTOTYPES): Likewise.
8788         (PROMOTE_FUNCTION_RETURN): Likewise.
8789
8790 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8791
8792         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
8793         (TARGET_STRUCT_VALUE_RTX): Likewise.
8794         (vax_struct_value_rtx): Likewise.
8795         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
8796         VAX_STRUCT_VALUE_REGNUM.
8797         (PROMOTE_PROTOTYPES): Remove.
8798
8799 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8800
8801         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
8802
8803 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
8804
8805         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
8806         and MIPS64 have HI/LO interlocks.  Update comment.
8807
8808 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8809
8810         * config/stormy16/stormy16-protos.h: Remove the prototype for
8811         xstormy16_setup_incoming_varargs.
8812         * config/stormy16/stormy16.c
8813         (xstormy16_setup_incoming_varargs): Remove.
8814         (xstormy16_return_in_memory): New.
8815         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
8816         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8817         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8818         (TARGET_STRUCT_VALUE_RTX): Likewise.
8819         (TARGET_RETURN_IN_MEMORY): Likewise.
8820         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
8821         (PROMOTE_FUNCTION_RETURN): Likewise
8822         (PROMOTE_PROTOTYPES): Likewise
8823         (RETURN_IN_MEMORY): Likewise
8824         (STRUCT_VALUE): Likewise
8825         (SETUP_INCOMING_VARARGS): Likewise
8826
8827 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
8828
8829         * config/mips/mips.c (mips_offset_within_object_p): New function.
8830         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
8831         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
8832         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
8833
8834 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8835
8836         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
8837         (PROMOTE_FUNCTION_RETURN): Likewise.
8838
8839 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8840
8841         * config/mn10300/mn10300-protos.h: Remove the prototype for
8842         mn10300_builtin_saveregs.
8843         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
8844         (TARGET_STRUCT_VALUE_RTX): Likewise.
8845         (TARGET_RETURN_IN_MEMORY): Likewise.
8846         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8847         (mn10300_return_in_memory): Likewise.
8848         (mn10300_builtin_saveregs): Make it static.
8849         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
8850         (RETURN_IN_MEMORY): Likewise.
8851         (STRUCT_VALUE): Likewise.
8852         (EXPAND_BUILTIN_SAVEREGS): Likewise.
8853
8854 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
8855
8856         PR bootstrap/13853
8857         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
8858
8859 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8860
8861         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
8862         using ccr.
8863
8864 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8865
8866         * config/i860/i860-protos.h: Remove the prototype for
8867         i860_saveregs.
8868         * config/i860/i860.c (i860_saveregs): Make it static.
8869         (i860_struct_value_rtx): New.
8870         (TARGET_STRUCT_VALUE_RTX): Likewise.
8871         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8872         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
8873         I860_STRUCT_VALUE_REGNUM.
8874         (EXPAND_BUILTIN_SAVEREGS): Remove.
8875
8876 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8877
8878         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
8879         (TARGET_RETURN_IN_MEMORY): Likewise.
8880         (m68hc11_struct_value_rtx): Likewise.
8881         (m68hc11_return_in_memory): Likewise.
8882         * config/m68hc11/m68hc11.h: Remove a commented-out definition
8883         of PROMOTE_PROTOTYPES.
8884         (RETURN_IN_MEMORY): Remove.
8885         (STRUCT_VALUE_REGNUM): Likewise.
8886
8887 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8888
8889         * config/mmix/mmix-protos.h: Remove the prototype for
8890         mmix_setup_incoming_varargs.
8891         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8892         (TARGET_STRUCT_VALUE_RTX): Likewise.
8893         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8894         (mmix_setup_incoming_varargs): Make it static.
8895         (mmix_struct_value_rtx): New.
8896         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
8897         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
8898         (STRUCT_VALUE_REGNUM): Remove.
8899         (SETUP_INCOMING_VARARGS): Likewise.
8900
8901 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8902
8903         * config/mips/mips-protos.h: Remove the prototypes for
8904         mips_setup_incoming_varargs and mips_return_in_memory.
8905         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8906         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8907         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8908         (TARGET_STRUCT_VALUE_RTX): Likewise.
8909         (TARGET_RETURN_IN_MEMORY): Likewise.
8910         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8911         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8912         (mips_setup_incoming_varargs): Match the prototype for
8913         TARGET_SETUP_INCOMING_VARARGS.
8914         (mips_return_in_memory): Make it static.  Add argument fntype.
8915         (mips_strict_argument_naming): New.
8916         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
8917         (PROMOTE_FUNCTION_ARGS): Likewise.
8918         (PROMOTE_FUNCTION_RETURN): Likewise.
8919         (STRUCT_VALUE): Likewise.
8920         (RETURN_IN_MEMORY): Likewise.
8921         (SETUP_INCOMING_VARARGS): Likewise.
8922         (STRICT_ARGUMENT_NAMING): Likewise.
8923
8924 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8925
8926         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
8927         (TARGET_RETURN_IN_MEMORY): Likewise.
8928         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8929         (ip2k_return_in_memory): Likewise.
8930         (ip2k_setup_incoming_varargs): Likewise.
8931         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
8932         (STRUCT_VALUE): Likewise.
8933         (STRUCT_VALUE_INCOMING): Likewise.
8934         (SETUP_INCOMING_VARARGS): Likewise.
8935
8936 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8937
8938         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
8939         (TARGET_RETURN_IN_MEMORY): Likewise.
8940         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8941         (avr_return_in_memory): Remove.
8942         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
8943         (STRUCT_VALUE): Likewise.
8944         (STRUCT_VALUE_INCOMING): Likewise.
8945         (STRICT_ARGUMENT_NAMING): Likewise.
8946
8947 2004-01-25  Jan Hubicka  <jh@suse.cz>
8948
8949         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
8950
8951 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
8952
8953         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
8954         (mips_regno_mode_ok_for_base_p): Declare.
8955         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
8956         (FRAME_POINTER_REGNUM): Renumber to 78.
8957         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
8958         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
8959         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
8960         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
8961         (REG_MODE_OK_FOR_BASE_P): Likewise.
8962         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
8963         entry for 77 to "$arg" and entry for 78 to "$frame".
8964         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
8965         (mips_reg_mode_ok_for_base_p): Remove.
8966         (mips_regno_mode_ok_for_base_p): New function, derived from old
8967         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
8968         restrictions unless we're being strict.
8969         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
8970
8971 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8972
8973         * c-common.h: Fix comment typos.
8974         * c-decl.c: Likewise.
8975         * cgraphunit.c: Likewise.
8976         * combine.c: Likewise.
8977         * et-forest.c: Likewise.
8978         * flow.c: Likewise.
8979         * function.c: Likewise.
8980         * ifcvt.c: Likewise.
8981         * integrate.c: Likewise.
8982         * jump.c: Likewise.
8983         * postreload.c: Likewise.
8984         * varray.c: Likewise.
8985
8986 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8987
8988         * doc/frontends.texi: Update copyright.
8989         * doc/gcov.texi: Likewise.
8990         * doc/gty.texi: Likewise.
8991         * doc/sourcebuild.texi: Likewise.
8992         * doc/standards.texi: Likewise.
8993
8994 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
8995
8996         PR target/12978
8997         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
8998         Remove movstrqi_small because it conflicts with movstrqi_large.
8999
9000 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
9001
9002         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9003         (TARGET_STRUCT_VALUE_RTX): Likewise.
9004         (cris_struct_value_rtx): Likewise.
9005         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
9006         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
9007         STRUCT_VALUE_REGNUM.
9008         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
9009
9010 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
9011
9012         PR bootstrap/13848
9013         * cse.c (cse_cc_succs): Change the mode of the source expression
9014         as soon as decide we need a new mode.  Don't permit changing modes
9015         if we found a match in a successor block.
9016         (cse_condition_code_reg): Save original mode of source expression
9017         so that we know whether we have to change the mode in other
9018         insns.
9019
9020 2004-01-24  Jan Hubicka  <jh@suse.cz>
9021
9022         * emit-rtl.c (change_address, adjust_address_1, offset_address,
9023         widen_memory_access):  Return early when there is nothing to change.
9024
9025 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
9026
9027         * simplify-rtx.c (simplify_relational_operation): Don't
9028         simplify address == constant into address + -constant == 0.
9029
9030 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
9031
9032         * gcc.c (process_command): Don't internationalize the
9033         Copyright message.
9034         * mips-tfile.c (main): Likewise.
9035
9036 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
9037
9038         * cse.c: (cse_cc_succs) Fix comparison warning.
9039
9040 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
9041
9042         * config/h8300/h8300.md: Remove extraneous USE in expanders.
9043
9044 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
9045
9046         * config/h8300/h8300-protos.h: Provide prototypes for
9047         h8300_legitimate_constant_p and h8300_legitimate_address_p.
9048         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
9049         (h8300_rtx_ok_for_base_p): Likewise.
9050         (h8300_legitimate_address_p): Likewise.
9051         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
9052         h8300_legitimate_constant_p.
9053         (RTX_OK_FOR_BASE_P): Remove.
9054         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
9055
9056 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
9057
9058         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
9059         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
9060         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
9061         (REG_OK_FOR_BASE_STRICT_P): Likewise.
9062         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
9063         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
9064         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
9065         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
9066
9067 2004-01-24  Jan Hubicka  <jh@suse.cz>
9068
9069         * cselib.c (remove_useless_values):  Do not access discarded values.
9070
9071 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9072
9073         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
9074         arrays.
9075
9076 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
9077
9078         * recog.c: Fix a typo in copyright.
9079
9080 2004-01-23  Andrew Pinski  <apinski@apple.com>
9081
9082         * config/rs6000/rs6000.md (call): Fix misappiled patch.
9083         (call_value): Likewise.
9084
9085 2004-01-23  Richard Henderson  <rth@redhat.com>
9086
9087         PR opt/12941
9088         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
9089         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
9090         if SHIFT_COUNT_TRUNCATED is set.
9091
9092 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
9093
9094         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
9095         separate real and imaginary parts.
9096         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
9097
9098 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
9099
9100         PR target/13674
9101         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
9102         loading into GPR.
9103
9104 2004-01-23  Jan Hubicka  <jh@suse.cz>
9105
9106         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
9107         change.
9108
9109         * alloc-pool.c (align_four): Kill.
9110         (create_alloc_pool): Align size to eight.
9111         (free_alloc_pool, free_pool): Invalidate deallocated data.
9112
9113 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
9114
9115         PR gcc/1532
9116         * cse.c (cse_change_cc_mode): New static function.
9117         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
9118         (cse_condition_code_reg): New function.
9119         * rtl.h (cse_condition_code_reg): Declare.
9120         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
9121         * target.h (struct gcc_target): Add fixed_condition_code_regs and
9122         cc_modes_compatible.
9123         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9124         (TARGET_CC_MODES_COMPATIBLE): Define.
9125         (TARGET_INITIALIZER): Add new initializers.
9126         * targhooks.c (default_cc_modes_compatible): New function.
9127         * targhooks.c (default_cc_modes_compatible): Declare.
9128         * hooks.c (hook_bool_intp_intp_false): New function.
9129         * hooks.h (hook_bool_intp_intp_false): Declare.
9130         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9131         (TARGET_CC_MODES_COMPATIBLE): Define.
9132         (ix86_fixed_condition_code_regs): New static function.
9133         (ix86_cc_modes_compatible): Likewise.
9134         * doc/tm.texi (Condition Code): Document new hooks.
9135
9136 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9137
9138         * fixinc/inclhack.def (bad_lval): Renamed to ...
9139         (alpha_bad_lval): ... this.
9140         Removed file list.
9141         Restrict to alpha*-dec-osf*.
9142         * fixinc/fixincl.x: Regenerate.
9143         * fixinc/tests/base/dirent.h: Remove, moving test ...
9144         * fixinc/tests/base/testing.h: ... here, reflecting new name.
9145
9146 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
9147
9148         PR c/13814
9149         * c-decl.c (diagnose_mismatched_decls): Also discard a
9150         built-in if we encounter an old-style definition with the
9151         same name.
9152
9153 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
9154
9155         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
9156         set to default{32,64}.
9157
9158 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
9159
9160         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
9161         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
9162
9163 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
9164             Olivier Hainque  <hainque@act-europe.fr>
9165
9166         * fold-const.c (fold_binary_op_with_conditional_arg): Only
9167         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
9168
9169 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
9170
9171         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
9172         size for minipool references.
9173
9174 2004-01-23  Roger Sayle  <roger@eyesopen.com>
9175
9176         * real.c (real_floor, real_ceil): Tweak to allow input and output
9177         arguments to overlap.
9178         (real_round): New function to implement round(3m) semantics.
9179         * real.h (real_round): Prototype here.
9180         * builtins.c (fold_builtin_round): New function to constant fold
9181         round, roundf and roundl.
9182         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
9183
9184 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
9185
9186         PR optimization/13819
9187         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
9188         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
9189         (sh_handle_sp_switch_attribute): Remove warning.
9190
9191 2003-11-30  Jan Hubicka  <jh@suse.cz>
9192
9193         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
9194
9195 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
9196
9197         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
9198         may or may not return non-NIL.
9199         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
9200         check CANNOT_CHANGE_MODE_CLASS
9201
9202 2004-01-23  Jan Hubicka  <jh@suse.cz>
9203
9204         * basic-block.h (PROP_POSTRELOAD): New macro.
9205         (CLEANUP_LOG_LINKS): New.
9206         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
9207         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
9208
9209         * cselib.c (value_pool): New.
9210         (new_cselib_val): Use pool.
9211         (cselib_init): Initialize value_pool
9212         (cselib_finish): Free pool.
9213
9214 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
9215
9216         * config/sparc/sparc.c (scan_record_type): New function.
9217         (function_arg_slotno): Use it to determine which kinds of
9218         registers the record can be passed in.
9219
9220 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
9221
9222         * config/pa/fptr.c: Fix old-style definition.
9223
9224 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
9225
9226         PR optimization/13724
9227         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
9228         represents the zero bits produced by a ZERO_EXTEND operation.
9229
9230 2004-01-22  Roger Sayle  <roger@eyesopen.com>
9231
9232         PR optimization/13821
9233         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
9234         correctly calculate the lowpart offset of the contracted subreg.
9235
9236 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
9237
9238         * doc/invoke.texi (Optimize Options): Note that --param arguments
9239         are subject to change without notice.
9240
9241 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9242
9243         * config.gcc (mips-sgi-irix6*o32): Removed.
9244         * config/mips/iris6-o32-as.h: Likewise.
9245         * config/mips/iris6-o32-gas.h: Likewise.
9246         * config/mips/iris6-o32.h: Likewise.
9247
9248 2004-01-22  Jan Hubicka  <jh@suse.cz>
9249
9250         * cfgcleanup.c (first_pass): New static variable.
9251         (try_forward_edges):  Add work limiting check for threading.
9252         (try_crossjump_bb):  Add work limiting check for crossjumping.
9253         (try_optimize_cfg):  Maintain first pass variable.
9254
9255 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
9256
9257         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
9258         handles complex and vector modes.
9259
9260 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
9261
9262         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
9263         (REG_OK_FOR_BASE_P_STRICT): Likewise.
9264         (STRICT): Likewise.
9265
9266 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
9267
9268         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
9269         (genrtl_for_stmt): Remove emit_nop calls.
9270
9271 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9272
9273         PR target/13713
9274         PR target/13324
9275         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
9276         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
9277         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
9278
9279 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
9280
9281         * config/arm/arm.c: Include "debug.h".
9282         (thumb_pushpop): Take two new arguments.  Add some commentary.
9283         Output frame information when pushing.
9284         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
9285         thumb_pushpop.
9286         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
9287         offset, and pass it to thumb_pushpop.  Output CFI information.
9288         (thumb_expand_prologue): Add some frame-related markers and notes.
9289
9290 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
9291
9292         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
9293         for TARGET_64BIT.
9294         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
9295         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
9296
9297 2004-01-22  Roger Sayle  <roger@eyesopen.com>
9298             Paolo Bonzini  <bonzini@gnu.org>
9299
9300         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
9301         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
9302         * rtl.h (subreg_lsb_1): Prototype here.
9303         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
9304         sign extensions.
9305
9306 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
9307
9308         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
9309         macro need not be defined if jump-tables should contain
9310         relative addresses only when -fPIC or -fPIC is in effect.
9311
9312 2004-01-22  Jan Hubicka  <jh@suse.cz>
9313
9314         * alias.c (reg_base_value): Turn into varray.
9315         (reg_base_value_size): Kill.
9316         (old_reg_base_value): New deletable varray.
9317         (alias_invariant_size): New variable.
9318         (REG_BASE_VALUE): Update to use varray.
9319         (find_base_value): Likewise.
9320         (record_set): Likewise.
9321         (record_base_value): Likewise.
9322         (memrefs_conflict_p): Likewise.
9323         (record_set): Likewise
9324         (record_base_value): Likewise.
9325         (memrefs_conflict_p): Use alias_invariant_size.
9326         (init_alias_analysis): Use varray; set alias_invariant_size;
9327         rescale other arrays to be sized by maxreg.
9328         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
9329
9330 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9331
9332         * config/sparc/sparc.c (function_arg_slotno): Use
9333         FLOAT_TYPE_P to detect FP fields in structures.
9334         (function_arg_record_value_1): Likewise.
9335         (function_arg_record_value_2): Likewise.
9336
9337 2004-01-22  Jan Hubicka  <jh@suse.cz>
9338
9339         * function.c (allocate_struct_function): Do not initialize expr, emit
9340         and varasm.
9341         (prepare_function_start): Do it here.
9342         * c-parse.in (maybe_type_qual): Do not produce line number notes.
9343
9344 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9345
9346         PR target/13559
9347         * config/sparc/sparc.c (function_arg_record_value_3): Revert
9348         to 'word_mode' once the first slot has been filled.
9349
9350 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
9351
9352         * config/sparc/sparc.c (function_arg_record_value_1): Fix
9353         computation of the number of integer registers required.
9354
9355 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9356
9357         * config/i386/i386.md: Simplify certain comparisons of
9358         const_int.
9359
9360 2004-01-21  Andrew Pinski  <apinski@apple.com>
9361
9362         PR target/13785
9363         * config/rs6000/rs6000.md (call_value): Force operand
9364         1 not operand 0 into a register.
9365
9366 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9367
9368         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
9369         unwind-dw2-fde.h: Update copyright.
9370
9371 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9372
9373         * pa-protos.h: Update copyright.
9374         * pa.h: Likewise.
9375         * pa.md: Likewise.
9376
9377 2004-01-21  Caroline Tice  <ctice@apple.com>
9378
9379         PR target/12308
9380         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
9381         flags register.
9382         (fix_truncdfdi2): Likewise.
9383         (fix_truncsfdi2): Likewise.
9384         (*fix_truncdi_1): Likewise.
9385         (fix_truncxfsi2): Likewise.
9386         (fix_truncdfsi2): Likewise.
9387         (fix_truncsfsi2): Likewise.
9388         (*fix_truncsi_1): Likewise.
9389         (fix_truncxfhi2): Likewise.
9390         (fix_truncdfhi2): Likewise.
9391         (fix_truncsfhi2): Likewise.
9392         (*fix_trunchi_1): Likewise.
9393
9394 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9395
9396         * alias.c, basic-block.h, c-common.c, c-common.h,
9397         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
9398         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
9399         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
9400         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
9401         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
9402         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
9403         genautomata.c, genconditions.c, genemit.c, genflags.c,
9404         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
9405         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
9406         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
9407         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
9408         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
9409         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
9410         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
9411         unwind.h, varray.c, varray.h: Update copyright.
9412
9413 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9414
9415         * config/h8300/coff.h: Update copyright.
9416         * config/h8300/elf.h: Likewise.
9417         * config/h8300/h8300-protos.h: Likewise.
9418         * config/h8300/h8300.c: Likewise.
9419         * config/h8300/h8300.h: Likewise.
9420         * config/h8300/h8300.md: Likewise.
9421
9422 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9423
9424         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
9425         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
9426         ultrix_unistd): New hacks.
9427         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
9428         ULTRIX_CONST2_CHECK): Add checks.
9429         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
9430         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
9431         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
9432         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
9433         * fixinc/tests/base/locale.h: New file.
9434         * fixinc/fixincl.x: Rebuilt.
9435
9436 2004-01-21  Andreas Jaeger  <aj@suse.de>
9437             Michael Matz  <matz@suse.de>
9438
9439         * doc/extend.texi (Extended Asm): Clarify memory clobber.
9440
9441 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
9442
9443         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
9444         _Jv_RegisterClasses through a function pointer.
9445
9446 2004-01-21  Falk Hueffner  <falk@debian.org>
9447
9448         PR target/12898
9449         * config/alpha/alpha.c (alpha_emit_set_const_1): If
9450         no_new_pseudos, use gen_rtx_SET directly for SImode constants
9451         which need multiple instructions to emit.
9452
9453 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
9454
9455         * config/m32r/m32r.h (CPP_SPEC): Define.
9456
9457 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
9458
9459         * c-decl.c (merge_decls): Kill different_binding_level and
9460         different_tu arguments; simplify throughout.
9461         (duplicate_decls): Likewise.
9462         (pushdecl, merge_translation_unit_decls): Update calls to
9463         duplicate_decls.
9464
9465 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9466
9467         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
9468         $(SYSTEM_H).
9469         (print-rtl1.o): Depend on $(SYSTEM_H).
9470
9471 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
9472
9473         PR bootstrap/12730
9474         * configure.ac: Delete definition and subsitution of docdir.
9475         Add info, man, srcman and srcinfo to target hooks. Create doc/
9476         directory.
9477         * configure: Regenerate.
9478         * Makefile.in: Don't substitute docdir and delete all references
9479         throughout.
9480         (MAKEINFOFLAGS): Define.
9481         (stmp-docobjdir): Delete.
9482         (INFOFILES, MANFILES): Define.
9483         (info): Call lang.info, srcinfo and lang.srcinfo.
9484         (generated-manpages): Call lang.man, srcman and lang.srcman.
9485         (srcinfo, srcman): New rules to copy back files to source directory.
9486         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
9487         (install-man): Revamp rule.
9488         (clean): Update dvi directory.
9489         (distclean): Delete TAGS from front end directorys.
9490         (maintainer-clean): Delete all document files in source directory.
9491
9492         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
9493         (objc.srcman, objc.srcinfo): Likewise.
9494
9495 2004-01-20  Bruce Korb  <bkorb@gnu.org>
9496
9497         * fixinc/inclhack.def(math_exception): bypass only for glibc.
9498         (matherr_decl): rename & relocate as exception_structure.
9499         This fix must precede the math_exception fix.
9500
9501 2004-01-20  Roger Sayle  <roger@eyesopen.com>
9502
9503         * fold-const.c (fold_convert): Rename to fold_convert_const.
9504         (fold_convert_const): Change arguments to take a tree_code,
9505         a type and the operand/expression to be converted.  Return
9506         NULL_TREE if no simplification is possible.  Add support for
9507         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
9508         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
9509         Adjust call to fold_convert to match new fold_convert_const.
9510         Avoid modifying the tree passed to fold in-place.
9511
9512 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
9513
9514         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
9515         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
9516         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
9517
9518 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9519
9520         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
9521         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
9522         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
9523         (emit_move_sequence): Check scratch_reg first in various if statements.
9524         Extend source simplification to handle all 64-bit CONST_INTs.
9525         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
9526         frame size.
9527         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
9528         frame offset calculations.
9529         * pa.h (NEW_HP_ASSEMBLER): Add comment.
9530         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
9531         LEGITIMATE_64BIT_CONST_INT_P): Define.
9532         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
9533         any CONST_INT as legitimate during and after reload.
9534         (VAL_32_BITS_P, INT_32_BITS): Define.
9535         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
9536
9537 2004-01-20  Jan Hubicka  <jh@suse.cz>
9538
9539         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
9540         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
9541         containing hard regs are shared.
9542         (gen_hard_reg_clobber): New function.
9543         (hard_reg_clobbers): New array.
9544         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
9545         (copy_rtx): Do not copy clobbers containing hard regs.
9546         * rtl.h (gen_hard_reg_clobber): Declare.
9547
9548 2004-01-20  Jan Hubicka  <jh@suse.cz>
9549
9550         * varray.c:  Include hashtab.h
9551         (varray_descriptor): New structure.
9552         (hash_descriptor, eq_descriptor, varray_descriptor,
9553         print_statistics): New static functions
9554         (varray_init, varray_grow): Update statistics
9555         (dump_varray_statistics): New function.
9556         * varray.h (dump_varray_statistics): Declare.
9557         * toplev.c (finalize): Call it.
9558         * Makefile.in (varray.o): Add dependency.
9559
9560 2004-01-20  Jan Hubicka  <jh@suse.cz>
9561
9562         * cselib.c: Include alloc-pool.h
9563         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
9564         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
9565         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
9566         unchain_one_elt_loc_list_pool, unchain_one_value,
9567         new_cselib_val): Simplify using allocpool.
9568         (cselib_init): Initialize allocpools.
9569         (cselib_finish): Finish allocpools.
9570         * Makefile.in (cselib.o): Depend on alloc-pool.h
9571
9572 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
9573
9574         * config/mips/mips.c (mips_load_call_address): Make the call insn
9575         use $gp if it could be calling a lazy binding stub.
9576
9577 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
9578
9579         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
9580         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9581         (TARGET_STRUCT_VALUE_RTX): Likewise.
9582         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
9583         (PROMOTE_FUNCTION_RETURN): Remove.
9584         (STRUCT_VALUE): Remove.
9585
9586 2004-01-20  Denis Chertykov  <denisc@overta.ru>
9587
9588         PR bootstrap/13735
9589         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
9590         register as pointer after reload.
9591
9592 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9593
9594         PR optimization/12440
9595         * loop.c: Include ggc.h.
9596         (loop_optimize): Run garbage collector between optimization of loops.
9597         * Makefile.in (loop.o): Add GGC_H dependency.
9598
9599 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
9600
9601         * gcc/config/rs6000/rs6000.c (function_arg) Handle
9602         vector register special in function without prototype.
9603         (function_arg_advance): Vector parameters get always
9604         GPRs allocated for the linux64 target.
9605
9606 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
9607
9608         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
9609         not TARGET_M32RX_MASK.
9610
9611 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
9612
9613         PR target/13557
9614         * config/sparc/sparc.c (function_arg): Reorder the cases.
9615
9616 2004-01-19  Per Bothner  <per@bothner.com>
9617
9618         Move cpp_reader's line_maps field to a shared global.
9619         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
9620         and change the type to a pointer rather than a struct.
9621         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
9622         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
9623         Likewise.
9624         * cppfiles.c (validate_pch):  Likewise.
9625         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
9626         Likewise.
9627         * cpperror.c (print_location):  Likewise.
9628         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
9629         * cppinit.c (cpp_create_reader):  Handle new parameter.
9630         (cpp_destroy):  Don't free line_maps - that's no longer our job.
9631         * input.h (line_table):  New variable.
9632         * toplev.c (line_table):  Declare variable.
9633         (general_init):  Initialize line_table.
9634         * c-opts.c (c_common_init_options):  Pass line_table to
9635         cpp_create_reader.
9636         * fix-header.c (read_scan_file):  New local variable line_table.
9637         Initialize, and pass it to cpp_create_reader.
9638         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
9639         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
9640
9641 2004-01-19  Per Bothner  <per@bothner.com>
9642
9643         Implement a cache for linemap_lookup.
9644         * line-map.h (struct_line_maps):  Add cache field.
9645         * line-map.c (linemap_init):  Zero cache field.
9646         (linemap_add):  Set cache field to offset of newly allocated map.
9647         (linemap_lookup):  Use and set cache field.
9648
9649 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9650
9651         PR optimization/13567
9652         * cse.c (cse_basic_block): Call cse_insn with a non-null
9653         libcall_insn for the last SET insn of a no-confilict block.
9654
9655 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
9656
9657         * Makefile.in (target_noncanonical, program_transform_name): Use
9658         immediate define instead of deferred.
9659         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
9660         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
9661         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
9662         deferred backquote.
9663
9664 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
9665
9666         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
9667         true unconditionally.
9668         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
9669         Remove.
9670         (build_unary_op, build_modify_expr): Don't handle extended
9671         lvalues.
9672         (build_component_ref, build_conditional_expr): Call non_lvalue
9673         instead of pedantic_non_lvalue.
9674         (build_c_cast): Don't condition use of non_lvalue on pedantic.
9675         * fold-const.c (fold): Don't check pedantic directly for
9676         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
9677         passed to pedantic_non_lvalue.
9678         * doc/extend.texi: Remove documentation of extended lvalues.
9679
9680 2004-01-19  Roger Sayle  <roger@eyesopen.com>
9681
9682         PR optimization/5263
9683         * simplify-rtx.c (associative_constant_p): Delete.
9684         (simplify_associative_operation): Rewrite to linearize terms, and
9685         attempt to simplify new term against both left and right subterms.
9686         (simplify_binary_operation): Call swap_commutative_operands_p on
9687         op0 and op1, not trueop0 and trueop1.  Move the initialization of
9688         trueop0 and trueop1 down to where first needed.
9689         (simplify_relational_operation): Likewise.
9690         * rtlanal.c (commutative_operand_precedence): Also order constant
9691         operands using avoid_constant_pool_reference.
9692
9693 2004-01-19  Richard Henderson  <rth@redhat.com>
9694
9695         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
9696         don't check memory mode.
9697         (unaligned_memory_operand): Likewise.
9698         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
9699         abort for op0 not MEM.
9700
9701         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
9702         is not a reg, copy to a scratch first.
9703         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
9704         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
9705         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
9706         (reload_inqi, reload_inhi): Fix mode of op0.
9707         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
9708         reload_outhi_help): Likewise.  Use define_insn_and_split.
9709
9710         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
9711         as well as $29 dead.
9712
9713 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
9714
9715         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
9716         "tls_object" for thread-local objects.
9717         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
9718         "#tls" for thread-local sections.
9719         * configure.ac (thread-local checks): Specify --fatal-warnings in
9720         every binutils-specific checks.  For sparc*-*-*, test whether the
9721         OS is Solaris and the tools are native and act accordingly.
9722         * configure: Rebuild.
9723
9724 2004-01-19  Jeff Law  <law@redhat.com>
9725
9726         * contrib.texi: Update Paolo Carlini's entry.  New entries for
9727         Jerry Quinn and Petur Runolfsson.
9728
9729 2004-01-19  Roger Sayle  <roger@eyesopen.com>
9730
9731         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
9732         size, don't use the larger zero-extending loads.
9733
9734 2004-01-19  Richard Henderson  <rth@redhat.com>
9735
9736         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
9737         * alpha.md (UNSPEC_NT_LDA): Remove.
9738         (UNSPEC_CVTLQ, cvtlq): New.
9739         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
9740         (extendsidi2_fix): Remove.
9741         (extendsidi2 splitter): Use cvtlq.
9742         (extendsidi2 fp peepholes): Remove.
9743         (cvtql): Use SFmode instead of SImode.
9744         (fix_trunc?fsi): Update to match.
9745         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
9746         (movsi): Rename from movsi_nofix, remove f alternatives.
9747         (movsi_nt_vms): Similarly.
9748         (movsi_fix, movsi_nt_vms_fix): Remove.
9749         (nt_lda): Remove.
9750         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
9751
9752 2004-01-19  Jan Hubicka  <jh@suse.cz>
9753
9754         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
9755         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
9756         list.
9757         (cgraph_remove_unreachable_nodes): New function
9758         (cgraph_decide_inlining_of_small_function): Fix pasto.
9759         (cgraph_decide_inlining_incrementally): Fix pasto.
9760         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
9761
9762 2004-01-19  Steven Bosscher  <stevenb@suse.de>
9763
9764         * gengtype.c (header_file): Make it static.
9765         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
9766         * gengtype.h (header_file): No longer extern.
9767
9768 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9769
9770         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
9771         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
9772         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
9773
9774 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9775
9776         * stmt.c (HAVE_casesi): Define it not already defined.
9777         (HAVE_tablejump): Likewise.
9778         (expand_end_case_type): Resort to the binary tree method if
9779         neither casesi or tablejump is available.
9780
9781 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
9782
9783         * final.c (final_scan_insn): Make non-static again.
9784         * output.h (final_scan_insn): Re-add prototype.
9785         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
9786         to final_scan_insn call.
9787         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
9788         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
9789         * config/pa/pa.c (output_lbranch, output_call): Likewise.
9790         * config/sh/sh.c (print_slot): Likewise.
9791         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
9792         (output_sibcall, sparc_flat_function_epilogue): Likewise.
9793
9794 2004-01-18  Jan Hubicka  <jh@suse.cz>
9795
9796         * basic-block.h (try_redirect_by_replacing_jump): Declare.
9797         * cfgcleanup.c (try_optimize_cfg): Use it.
9798         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
9799         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
9800         Kill hack.
9801         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
9802
9803         Revert:
9804         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9805
9806                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9807                 even after reload, just don't remove the actual jump tables.
9808
9809 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9810
9811         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
9812
9813 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9814
9815         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
9816         the size of a pointer in bytes.
9817
9818 2004-01-18  Roger Sayle  <roger@eyesopen.com>
9819
9820         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
9821         live "next" variable, which could lead to an infinite loop.
9822
9823 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
9824
9825         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
9826         block.
9827
9828         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9829         Check for NULL in the chain and remove repeated code.
9830
9831 2004-01-18  Jan Hubicka  <jh@suse.cz>
9832
9833         * coverage.c (checksum_string): Rename to ...
9834         (coverage_checksum_string): ... this one, Use crc32_string; recognize
9835         names containing random number and zero the number out in order to get
9836         match.
9837
9838 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
9839
9840         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
9841
9842 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9843
9844         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
9845         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
9846         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
9847         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
9848         doc/trouble.texi: Remove trailing whitespace.
9849
9850 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
9851
9852         PR target/7618
9853         * config/mips/mips.c: Include cfglayout.h.
9854         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9855         (mips_unspec_offset_high): Add temporary register argument.
9856         (mips_load_call_address): New function, split out from...
9857         (mips_expand_call): ...here.
9858         (mips_output_cplocal): New function.
9859         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
9860         (mips_emit_loadgp): New function, split out from...
9861         (mips_expand_prologue): ...here.
9862         (mips_output_mi_thunk): New function.
9863
9864 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
9865
9866         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
9867         mcpu32): Remove redundant checks for implied target predefines.
9868
9869 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
9870
9871         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9872         Return type is unsigned int not int.
9873         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9874         Likewise.
9875
9876 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9877
9878         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
9879         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
9880         "GNU/Linux" and "Microsoft Windows" terminology.
9881
9882 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9883
9884         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
9885         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
9886         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
9887         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
9888         @smallexample instead of @example.
9889
9890 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
9891
9892         * objc/objc-act.c (build_objc_method_call): Use target
9893         hooks instead of macros to determine if ..._stret
9894         dispatchers should be used (NeXT runtime only).
9895
9896 2004-01-17  Roger Sayle  <roger@eyesopen.com>
9897
9898         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
9899         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
9900
9901 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
9902
9903         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
9904         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
9905         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
9906         macros.
9907         * reload1.c (emit_reload_insns): Use them.
9908         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
9909         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
9910         for NULL PATTERN.
9911
9912 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
9913
9914         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
9915         (final_scan_insn): Update to take an additional SEEN argument.  Emit
9916         a line note after the prologue.  Make static.
9917         (line_note_exists): Remove.
9918         (final): Don't initialize line_note_exists.  Update call to
9919         final_scan_insn.
9920         * output.h (final_scan_insn): Remove prologue.
9921         * function.c (set_insn_locators): Update comment.
9922         (thread_prologue_and_epilogue_insns): Add a comment.
9923
9924 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
9925
9926         PR target/10781
9927         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9928         Prototype.
9929         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9930         New function.
9931         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
9932         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
9933         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
9934
9935 2004-01-17  Jan Hubicka  <jh@suse.cz>
9936
9937         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
9938         commit.
9939
9940         * toplev.c (HAVE_conditional_execution): Provide default.
9941         (rest_of_handle_reorder_blocks): For conditional_execution target
9942         update liveness once after all transformations
9943         (rest_of_compilation): Do crossjumping before ce3.
9944
9945 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
9946
9947         * alias.c (new_alias_set): Mark last_alias_set for PCH.
9948         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
9949         for PCH.
9950         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
9951         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
9952         (get_TOC_alias_set): Mark 'set' for PCH.
9953
9954 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9955
9956         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9957         even after reload, just don't remove the actual jump tables.
9958
9959 2004-01-17  J. Brobecker  <brobecker@gnat.com>
9960
9961         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
9962         Remove checks for is_ada() and TREE_UNSIGNED.
9963         (subrange_type_die): Emit a byte_size attribute if the subrange
9964         type size is different from the base type size.
9965         (modified_type_die): Replace call to is_ada_subrange_type() by
9966         call to is_subrange_type().
9967
9968 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
9969
9970         * config/sh/sh.c: Include ggc.h.
9971
9972 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9973
9974         * Makefile.in (MD5_H): New.
9975         (fold-const.o): Depend on md5.h.
9976         (dwarf2out.o): Likewise.
9977         (cppfiles.o): Likewise.
9978         * cppfiles.c: Include md5.h.
9979         (should_stack_file): Check against list read from PCH file.
9980         (struct pchf_data): New.
9981         (pchf): New variable.
9982         (struct pchf_adder_info): New.
9983         (pchf_adder): New.
9984         (pchf_save_compare): New.
9985         (_cpp_save_file_entries): New.
9986         (_cpp_read_file_entries): New.
9987         (struct pchf_compare_data): New.
9988         (pchf_compare): New.
9989         (check_file_against_entries): New.
9990         * cpphash.h (_cpp_save_file_entries): Prototype.
9991         (_cpp_read_file_entries): Prototype.
9992         * cpppch.c (cpp_write_pch_state): Write the list of headers.
9993         (cpp_read_state): Read the list of headers.
9994
9995 2004-01-17  Jan Hubicka  <jh@suse.cz>
9996
9997         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
9998         builtin_expect specially.
9999         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
10000         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
10001         * invoke.texi (max-inline-insns-single): Set to 100.
10002         (large-function-insns): Set to 3000.
10003
10004 2004-01-16  Eric Christopher  <echristo@redhat.com>
10005             Chandrakala Chavva <cchavva@redhat.com>
10006
10007         * cppcharset.c (one_iso88591_to_utf8): New function.
10008         (convert_iso88591_utf8): Ditto. Use.
10009         (conversion_tab): Use.
10010         (_cpp_input_to_utf8): New function.
10011         (_cpp_init_iconv_buffer): Ditto.
10012         (_cpp_close_iconv_buffer): Ditto.
10013         * cpphash.h: Prototype new functions.
10014         (cpp_buffer): Add input_cset_desc.
10015         * cppinit.c: Add input_charset default.
10016         * cpplib.c (cpp_push_buffer): Support init and
10017         close of iconv.
10018         * cpplib.h (cpp_options): Add input_charset.
10019
10020 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
10021
10022         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
10023         * config/alpha/unicosmk.h: Remove a commented-out definition
10024         of ASM_OUTPUT_SECTION_NAME.
10025         * config/stormy16/stormy16.h: Likewise.
10026
10027 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10028
10029         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
10030         (alpha___extern_prefix_sys_stat): ... this.
10031         Apply to <sys/mount.h>, too.
10032         Tweak to match more variations.
10033         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
10034
10035         * fixinc/inclhack.def (alpha___extern_prefix,
10036         alpha___extern_prefix_standards): New hacks to obey
10037         __PRAGMA_EXTERN_PREFIX.
10038         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
10039         test.
10040         * fixinc/tests/base/standards.h: Likewise.
10041
10042         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
10043         variations.
10044         New testcase.
10045         * fixinc/tests/base/pthread.h: Handle it.
10046
10047         * fixincl/inclhack.def (bad_lval): Sort file list.
10048         Add many missing files up to Tru64 UNIX V5.1B.
10049         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
10050         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
10051         order.
10052
10053         * fixinc/fixincl.x: Regenerate.
10054
10055 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
10056
10057         * version.c (version_string): Change to 3.5.0.
10058         * doc/include/gcc-common.texi (version-GCC): Likewise.
10059
10060 2004-01-16  Jan Hubicka  <jh@suse.cz>
10061
10062         * i386.md (load_tp_di): Fix pasto.
10063
10064         PR opt/13608
10065         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
10066
10067         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
10068         pp_c_character_constant, pp_c_floating_constant,
10069         pp_c_additive_expression, pp_c_shift_expression,
10070         pp_c_equality_expression, pp_c_and_expression,
10071         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
10072         pp_c_logical_and_expression): Remove inline modifier.
10073         * dwarf2out.c (get_AT): Likewise.
10074         * et-forest.c (et_splay): Likewise.
10075         * ra.h (ra_alloc, ra_calloc): Likewise
10076
10077 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
10078
10079         * config/frv/frv-protos.h: Fix comment formatting.
10080         * config/frv/frv.c: Likewise.
10081         * config/frv/frv.h: Likewise.
10082         * config/frv/frv.md: Likewise.
10083         * config/frv/frvbegin.c: Likewise.
10084         * config/frv/frvend.c: Likewise.
10085
10086 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
10087
10088         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
10089         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
10090         LINKER_DOES_NOT_WORK_WITH_DWARF2.
10091         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
10092
10093 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
10094
10095         PR 11864
10096         * postreload.c (reload_cse_simplify_operands): Don't remove
10097         implicit extension from LOAD_EXTEND_OP.
10098
10099 2004-01-16  Jan Hubicka  <jh@suse.cz>
10100
10101         PR opt/11350
10102         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
10103         after reload.
10104         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
10105         rtl_try_redirect_by_replacing_branch): Likewise.
10106
10107 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
10108
10109         PR pch/13689
10110         * alias.c (struct alias_set_entry): Mark for GC.
10111         (alias_sets): Make static, mark for GC.
10112         (record_alias_subset): Use GC to allocate alias structures.
10113         * varray.c (element): Make generic varrays GCed.
10114
10115         PR pch/13361
10116         * c-typeck.c (constructor_asmspec): Delete.
10117         (struct initializer_stack): Delete field 'asmspec'.
10118         (start_init): Delete saving of asmspec.
10119         (finish_init): Don't update constructor_asmspec.
10120         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
10121         * stmt.c (expand_asm): Duplicate strings from tree.
10122         (expand_asm_operands): Likewise.
10123         * tree.c (tree_size): Update computation of size of STRING_CST.
10124         (make_node): Don't make STRING_CST nodes.
10125         (build_string): Allocate string with tree node.
10126         * tree.def (STRING_CST): Update comment.
10127         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
10128         (tree_string): Place contents of string in tree node.
10129         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
10130         from tree.
10131
10132         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
10133         altivec operands.
10134
10135 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10136
10137         * c-common.h: Fix comment formatting.
10138         * c-cppbuiltin.c: Likewise.
10139         * c-pragma.c: Likewise.
10140         * calls.c: Likewise.
10141         * collect2.c: Likewise.
10142         * cppcharset.c: Likewise.
10143         * cpptrad.c: Likewise.
10144         * dbxout.c: Likewise.
10145         * defaults.h: Likewise.
10146         * dwarf2out.c: Likewise.
10147         * fold-const.c: Likewise.
10148         * genautomata.c: Likewise.
10149         * genconditions.c: Likewise.
10150         * genflags.c: Likewise.
10151         * gengtype.c: Likewise.
10152         * integrate.c: Likewise.
10153         * loop.c: Likewise.
10154         * predict.c: Likewise.
10155         * sdbout.c: Likewise.
10156
10157 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
10158
10159         * config/ia64/ia64.md (*movti_internal): C output template
10160         extracted to ia64.c.
10161         (*movti_internal_reg): Delete.
10162         (reload_inti, reload_outti): Use the correct mode on operand 2
10163         in the first place, don't fix it up in the output template.
10164         (movtf, reload_ointf, reload_outtf): New expanders.
10165         (*movtf_internal): New define_insn_and_split.
10166         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
10167         make static; do not hand TFmode CONST_DOUBLEs to split_double.
10168         (ia64_split_tmode_move): New function, body mostly pulled
10169         from ia64.md:*movti_internal.
10170         (ia64_function_arg_words): New function, extracted common
10171         logic from ia64_function_arg et seq.
10172         (ia64_function_arg_offset): Likewise.  Handle correctly the
10173         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
10174         (ia64_function_arg, ia64_function_arg_partial_nregs)
10175         (ia64_function_arg_advance): Use ia64_function_arg_words and
10176         ia64_function_arg_offset.
10177         (ia64_function_value): TCmode does not go in float regs.
10178         (ia64_secondary_reload_class): Also handle TFmode.
10179         * config/ia64/ia64-protos.h: Remove prototype for
10180         ia64_split_timode; add prototype for ia64_split_tmode_move.
10181
10182 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
10183
10184         * Makefile.in (MAINT): Make it an immediate assignment.
10185
10186 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10187
10188         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
10189
10190 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10191
10192         * config/h8300/coff.h: Replace Hitachi with Renesas.
10193         * config/h8300/elf.h: Likewise.
10194         * config/h8300/h8300-protos.h: Likewise.
10195         * config/h8300/h8300.c: Likewise.
10196         * config/h8300/h8300.h: Likewise.
10197         * config/h8300/h8300.md: Likewise.
10198         * config/h8300/lib1funcs.asm: Likewise.
10199
10200 2004-01-15  Andrew Pinski  <apinski@apple.com>
10201
10202         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
10203         around it.
10204
10205 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10206
10207         * config/h8300/h8300.c (h8300_return_in_memory): New.
10208         (TARGET_STRUCT_VALUE_RTX): Likewise.
10209         (TARGET_RETURN_IN_MEMORY): Likewise.
10210         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
10211         (RETURN_IN_MEMORY): Likewise.
10212
10213 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
10214
10215         PR optimization/13375
10216         * gcse.c (handle_avail_expr): Just return if the source is not a
10217         single set.
10218
10219 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
10220             Daniel Jacobowitz  <drow@mvista.com>
10221
10222         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
10223         (EQUIV): Define.
10224         (ARM_FUNC_ALIAS): New macro.
10225         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
10226         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
10227
10228 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10229
10230         PR optimization/12372
10231         * calls.c (expand_call): Add call_fusage data for stack arguments in
10232         constant calls.
10233
10234 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
10235
10236         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
10237         (rs6000_elf_declare_function_name): Formatting.
10238         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
10239
10240 2004-01-15  Jan Hubicka  <jh@suse.cz>
10241
10242         PR bootstrap/13692
10243         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
10244         previous patch.
10245
10246 2004-01-15  Richard Henderson  <rth@redhat.com>
10247
10248         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
10249         integer regs of the same call-savedness.
10250
10251 2004-01-15  Andreas Schwab  <schwab@suse.de>
10252
10253         PR bootstrap/13562
10254         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
10255         status for NOTB/NOTW/NEGW methods.
10256
10257 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10258
10259         * doc/invoke.texi: Update dump file names.  Fix a typo.
10260
10261 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10262
10263         * builtins.c (expand_builtin_va_end): Don't use
10264         EXPAND_BUILTIN_VA_END.
10265         * system.h (EXPAND_BUILTIN_VA_END): Poison.
10266         * config/d30v/d30v.h: Remove a commented-out definition of
10267         EXPAND_BUILTIN_VA_END.
10268         * config/stormy16/stormy16.h: Likewise.
10269
10270 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10271
10272         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
10273         * targhooks.c (default_struct_value_rtx): Don't use
10274         STRUCT_VALUE_INCOMING_REGNUM.
10275
10276 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
10277
10278         PR bootstrap/12744
10279         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
10280         GENINSRC and not parsedir.  Define srcextra as a langhook.
10281         * configure: Regenerate.
10282         * Makefile.in: Suppress default .l.c rule.  Don't substitute
10283         parsedir and delete all references throughout.  Conditionally define
10284         rule for srcextra dependent on GENINSRC.
10285         (stmp-docobjdir): Delete.
10286         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
10287         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
10288         and gengtype-yacc.h back to source directory.
10289         (maintainer-clean): Delete all parse files in source directory.
10290         (distclean): Delete generated files.
10291
10292         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
10293         (objc-parse.c, objc-parse.y): Don't use parsedir.
10294         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
10295         directory if requested.
10296         (po-generated): Don't use parsedir.
10297         (objc.maintainer-clean): Delete above files from source directory.
10298
10299 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10300
10301         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
10302
10303 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10304
10305         * doc/tm.texi: Replace RETURN_IN_MEMORY with
10306         TARGET_RETURN_IN_MEMORY.
10307
10308 2004-01-15  Jan Hubicka  <jh@suse.cz>
10309
10310         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
10311         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
10312         functions accepting SSE arguments
10313         (function_arg): Warn only when asked to warn.
10314         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
10315
10316 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
10317
10318         * c-parse.in (stmts_and_decls): Make label at end of compound
10319         statement a hard error.
10320
10321 2004-01-14  Jan Hubicka  <jh@suse.cz>
10322
10323         * cgraph.c (create_edge): Use local.redefined_extern_inline.
10324         * cgraph.h (cgraph_local_info): Sort fields by size; add
10325         redefined_extern_inline
10326         (cgraph_global_info): Sort fields by size.
10327         (cgraph_node): Likewise.
10328         * cgraphunit.c (cgraph_finalize_function): Se
10329         local.redefined_extern_inline on redefinition.
10330         (cgraph_analyze_function): Use it; fix formating.
10331
10332 2004-01-14  Jan Hubicka  <jh@suse.cz>
10333
10334         PR c++/10776
10335         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
10336         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
10337         bitmaps
10338         (cache_size): New variable
10339         (add_dependence): Update use; canonize early memory locations
10340         (sched_analyze_1): Likewise.
10341         (sched_analyze_2): Likewise.
10342         (init_dependency_caches): Initialize bitmaps.
10343         (free_dependency_caches): Free bitmaps
10344
10345 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10346
10347         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
10348         targetm.calls.strict_argument_naming().
10349         * target.h: Likewise.
10350
10351 2004-01-14  Richard Henderson  <rth@redhat.com>
10352
10353         PR debug/13231
10354         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
10355         instructions.
10356
10357 2004-01-14  Richard Henderson  <rth@redhat.com>
10358
10359         PR c++/12491
10360         * except.c (struct eh_region): Add u.fixup.resolved.
10361         (resolve_one_fixup_region): Split out from ...
10362         (resolve_fixup_regions): ... here.
10363
10364 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10365
10366         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
10367
10368 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10369
10370         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
10371         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
10372         (STRUCT_VALUE): Remove.
10373
10374 2004-01-14  Steven Bosscher  <stevenb@suse.de>
10375
10376         * system.h: Poison PROMOTED_MODE
10377         * integrate.c (expand_inline_function): Don't mention the
10378         PROMOTED_MODE.
10379         * loop.c (update_giv_derive): Same.
10380         * tree.h (DECL_RTL): Same.
10381
10382 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
10383
10384         PR target/9365
10385         * sh.c (gen_block_redirect): Add special handling of RETURN.
10386         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
10387         far branch target (i.e. it's a return).
10388
10389 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10390
10391         * regrename.c (find_oldest_value_reg): Fix a warning.
10392
10393 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
10394
10395         PR bootstrap/12527
10396         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
10397         Move linux-gas.h and linux-elf.h before aout.h.
10398         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
10399         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
10400
10401 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10402
10403         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
10404         (CONST_INT, VOIDmode, ...).
10405
10406 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
10407
10408         * regrename.c (find_oldest_value_reg): If the replacement uses
10409         multiple hard registers, check that all of them are in CLASS.
10410
10411 2004-01-14  Jan Hubicka  <jh@suse.cz>
10412
10413         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
10414         impossible.
10415
10416 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
10417
10418         * Makefile.in: Define MAINT from --enable-maintainer-mode.
10419
10420 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10421
10422         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
10423         Calculate always vrsave_mask if TARGET_ALTIVEC.
10424         (rs6000_emit_prologue): Emit code for vrsave
10425         only if TARGET_ALTIVEC_VRSAVE.
10426         (rs6000_emit_epilogue): Likewise.
10427
10428 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
10429
10430         * config/sparc/sparc.md (tie_add32): Fix pasto.
10431         (tie_add64): Likewise.
10432
10433 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10434
10435         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
10436
10437 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10438
10439         * config/iq2000/iq2000-protos.h: Fix comment formatting.
10440         * config/iq2000/iq2000.c: Likewise.
10441         * config/iq2000/iq2000.md: Likewise.
10442
10443 2004-01-14  J. Brobecker  <brobecker@gnat.com>
10444
10445         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
10446         (subrange_type_die): Add handle for nameless subrange types.
10447
10448 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10449
10450         * config/h8300/h8300-protos.h: Replace do_movsi with
10451         h8300_expand_movsi.
10452         * config/h8300/h8300.c (do_movsi): Change to
10453         h8300_expand_movsi.
10454         * config/h8300/h8300.md (movsi): Replace do_movsi with
10455         h8300_expand_movsi.
10456         (movsf): Likewise.
10457
10458 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10459
10460         * config/h8300/h8300.c (dosize): Change to
10461         h8300_emit_stack_adjustment.  Update callers.
10462
10463 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10464
10465         * config/h8300/h8300.md (movstrictqi): Add an alternative with
10466         the source being post_inc.  Tighten the predicate for the
10467         destination to register_operand.
10468         (movstricthi): Likewise.
10469
10470 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10471
10472         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
10473         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
10474         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
10475
10476 2004-01-14  Jan Hubicka  <jh@suse.cz>
10477
10478         Partial fix PR c++/12850
10479         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
10480         at zero nest level.
10481
10482 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
10483
10484         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
10485         pseudo-register.
10486
10487 2004-01-13  Devang Patel <dpatel@apple.com
10488
10489         PR debug/7078
10490         * dbxout.c (dbxout_symbol_name): Emit mangled names for
10491         NAMESPACE_DECL memebers.
10492
10493 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
10494
10495         PR c++/12709
10496         * c-common.c (finish_fname_decls): Use the chain only if the
10497         tree is an expr_stmt.
10498
10499 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
10500
10501         * rtl.def: Add comment about new option in automata_option.
10502
10503         * genautomata.c (PROGRESS_OPTION): New macro.
10504         (progress_flag): New global variable.
10505         (gen_automata_option): Process `progress'.
10506         (transform_insn_regexps, check_unit_distributions_to_automata,
10507         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
10508         expand_automata, write_automata): Print about the progress only if
10509         progress_flag.  Remove fflush.
10510         (initiate_automaton_gen): Process command line flag `-progress'.
10511
10512         * doc/md.texi: Describe the new option.
10513
10514 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10515
10516         * cfg.c (dump_bb): Dump entry edges.
10517
10518 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
10519
10520         * arm.c (thumb_legitimate_address_p): Only allow constant pool
10521         references from SImode.
10522         * arm.md (thumb_movhi_insn): Don't allow minipool references.
10523
10524 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10525
10526         * system.h (TEXT_SECTION): Poison.
10527         * varasm.c (text_section): Don't use TEXT_SECTION.
10528         * config/sh/sh.c (sh_file_start): Fix a comment typo.
10529         * doc/tm.texi (TEXT_SECTION): Remove.
10530
10531 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
10532
10533         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
10534
10535 2004-01-12  James E Wilson  <wilson@specifixinc.com>
10536
10537         * unwind-libunwind.c: Delete.
10538
10539 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
10540
10541         PR 13656
10542         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
10543         oldtype is set, set *newtypep or *oldtypep too.  Do not set
10544         them at the very end.
10545         (validate_proto_after_old_defn): Restructure for comprehensibility;
10546         make error messages clearer.
10547
10548 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
10549
10550         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
10551         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
10552         * varray.c: No need to prototype error.
10553         (varray_check_failed): Wrap long string onto two lines.
10554         (varray_underflow): New function.
10555
10556 2004-01-13  Steven Bosscher  <stevenb@suse.de>
10557
10558         PR c++/13376
10559         * function.h (struct function): Kill `name' field.
10560         (current_function_name): Make it an extern function.
10561         * function.c (current_function_name): New function.
10562         * graph.c: Update all uses of current_function_name.
10563         * gcse.c: Likewise.
10564         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
10565         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
10566         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
10567         instead of a strcmp with "main".
10568
10569 2004-01-13  Jan Hubicka  <jh@suse.cz>
10570
10571         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
10572
10573         * cgraphunit.c (cgraph_optimize_function):  Always do
10574         optimize_inline_calls when there is always_inline callee.
10575         (cgraph_decide_inlining): Fix formating.
10576         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
10577         functions.
10578         (expand_call_inline): Likewise.
10579         * toplev.h (sorry): Fix prototype.
10580
10581 2004-01-12  Roger Sayle  <roger@eyesopen.com>
10582
10583         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
10584         conditional jumps that drop through to unconditional jumps or the
10585         end of the sequence.
10586
10587 2004-01-13  Jan Hubicka  <jh@suse.cz>
10588
10589         * alias.c (new_alias_set): Construct the alias_set varray.
10590         (init_alias_once): Don't do it here.
10591
10592 2004-01-12  Marc Espie <espie@openbsd.org>
10593
10594         * system.h: handle YYBYACC like YYBISON.
10595
10596 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
10597
10598         PR target/10847
10599         * config.gcc: No longer includes conflicting header sparc/sol2.h when
10600         building on sparc64-*-openbsd*.
10601
10602 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
10603
10604         PR debug/13539
10605         * dbxout.c (dbxout_type): Protected inheritance is not
10606         private but protected.
10607
10608 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
10609
10610         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
10611
10612 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
10613
10614         PR optimization/12508.
10615         * combine.c (try_combine): Remove a dead set in a parallel
10616         even if its destination is a subreg.
10617
10618         Revert:
10619         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
10620         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
10621         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
10622
10623 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
10624
10625         * real.c: Update copyright date.
10626         * emit-rtl.c: Likewise.
10627         * rtl.h: Likewise.
10628         * dwarf2out.c: Likewise.
10629         * config/rs6000/darwin-ldouble.c: Likewise.
10630         * config/rs6000/rs6000.md: Likewise.
10631
10632 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
10633
10634         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
10635         TFmode to SImode libfuncs.
10636
10637 2004-01-12  Roger Sayle  <roger@eyesopen.com>
10638
10639         PR middle-end/11397
10640         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
10641
10642 2004-01-12  Jan Hubicka  <jh@suse.cz>
10643
10644         PR opt/12826
10645         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
10646         stored.
10647
10648         PR opt/12863
10649         * cfgcleanup.c (label_is_jump_target_p): Move to...
10650         * rtlanal.c (label_is_jump_target_p): ... here.
10651         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
10652         edges unified with branch edges.
10653
10654 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
10655
10656         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
10657         high word of an integral CONST_DOUBLE.
10658
10659 2004-01-12  Paul Brook  <paul@codesourcery.com>
10660
10661         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
10662
10663 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
10664
10665         PR target/13585
10666         * sh-protos.h (check_use_sfunc_addr): Declare.
10667         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
10668         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
10669
10670 2004-01-12  Jan Hubicka  <jh@suse.cz>
10671
10672         * alias.c:  Invlude varray.h
10673         (alias_sets): Turn into varray.
10674         (get_alias_set_entry): Use VARRAY; mark inline.
10675         (mems_in_disjoint_alias_sets_p): Mark inline.
10676         (record_alias_subset): Use varray.
10677         (init_alias_once): Initialize varray.
10678         (new_alias_set): Grow array.
10679         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
10680
10681 2004-01-12  Jan Hubicka  <jh@suse.cz>
10682
10683         Partial fix for PR opt/10776 II
10684         * cselib.c: Include params.h
10685         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
10686         locations.
10687         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
10688         * Makefile.in (cselib.o): Depend on params.h
10689
10690 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
10691
10692         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
10693         simplify_unary_operation if the operand has a known mode.
10694
10695 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
10696
10697         PR target/13534
10698         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
10699         predicate to handle 'ld' conform addresses.
10700         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
10701         contraint.
10702         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
10703         are memory contraints.
10704         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
10705         New prototype.
10706         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
10707         Change 'o' to 'Y' constraint.
10708         (*movdf_softfloat64): Ditto.
10709
10710 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
10711
10712         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
10713         brace-enclosed syntax in all C output statements.
10714
10715 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
10716
10717         PR target/13401
10718         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
10719         Objective-C language type value is 14.
10720
10721 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
10722
10723         PR c/12148
10724         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
10725         `int' in a number of places to make sure we always have a SImode
10726         and not a HImode.  Add a 'L' suffix to a number of constants.
10727
10728 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10729
10730         * pa.c: Don't include obstack.h.
10731
10732         * pa.md: Correct constraint in pattern for loading PIC label address.
10733
10734 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10735
10736         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
10737          before defining.
10738
10739 2004-01-11  Steven Bosscher  <stevenb@suse.de>
10740
10741         PR fortran/9972
10742         * toplev.c (rest_of_handle_inline): Also consider functions
10743         for deferral if the language is GNU F77.
10744
10745 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
10746
10747         * c-decl.c (diagnose_arglist_conflict): Add missing space to
10748         diagnostic messages.
10749
10750 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
10751
10752         PR middle-end/13392
10753         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
10754         to drop through label.  Don't fall back to SCC even when conditional
10755         jump has not been found.
10756
10757 2004-01-11  Jan Hubicka  <jh@suse.cz>
10758
10759         * invoke.texi: Fix syntax error in previous patch.
10760
10761         Partial fix for PR opt/10776
10762         * Makefile.in (reload.o): Include param.h
10763         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
10764         * reload.c: Include params.h.
10765         (find_equiv_reg): Work limiting check.
10766         * invoke.texi: Document.
10767
10768 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
10769
10770         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
10771         out-of-bounds accesses to string constants.  Simplify mips16
10772         case accordingly.
10773
10774 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
10775
10776         PR optimization/13469
10777         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
10778         reload_cse_regs (-fnon-call-exceptions only).
10779
10780 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
10781
10782         * config/mcore/lib1.asm: Fix comment formatting.
10783         * config/mcore/mcore-elf.h: Likewise.
10784         * config/mcore/mcore.c: Likewise.
10785         * config/mcore/mcore.h: Likewise.
10786         * config/mcore/mcore.md: Likewise.
10787
10788 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
10789
10790         * c-decl.c (duplicate_decls): Break apart into...
10791         (diagnose_arglist_conflict, validate_proto_after_old_defn)
10792         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
10793         ... these new functions.  Restructure for comprehensibility.
10794         Remove various archaic special cases.  Always report the
10795         location of the previous declaration when a diagnostic is issued.
10796         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
10797         (match_builtin_function_types): Delete unnecessary forward declaration.
10798
10799 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
10800
10801         * genautomata.c (make_automaton, NDFA_to_DFA):
10802         Print progress bars with '.' characters instead of '*'.
10803         (build_automaton): Change notes to match.
10804
10805 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
10806
10807         * config/m32r/m32r.md: Use define_constants for unspec and
10808         unspec_volatile.
10809
10810 2004-01-10  Jan Hubicka  <jh@suse.cz>
10811
10812         PR opt/11635
10813         * expr.c (expand_expr_real):  More curefully expand union casts.
10814
10815 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
10816
10817         * config/m32r/m32r.md (flush_icache): Use 1 for
10818         unspec_volatile.
10819
10820 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
10821             James E Wilson  <wilson@specifixinc.com>
10822
10823         PR debug/12860
10824         * dbxout.c (dbxout_symbol): Remove initialization of
10825         current_sym_code, current_sym_value, and current_sym_addr.
10826         (dbxout_symbol_location): Same.
10827         (dbxout_prepare_symbol): Zero current_sym_code,
10828         current_sym_value, and current_sym_addr.
10829
10830 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
10831
10832         * tree.c (get_unwidened): Reorder conditions so that the null pointer
10833         check is done first.
10834
10835 2004-01-09  Eric Christopher  <echristo@redhat.com>
10836
10837         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
10838         if we're running mark_constant_function.
10839
10840 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
10841
10842         PR target/12561
10843         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
10844
10845 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
10846
10847         PR debug/11231
10848         * dbxout.c (dbxout_type_fields): Return if any item is
10849         error_mark_node or the type is error_mark_node.
10850
10851 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
10852
10853         * config/rs6000/darwin-ldouble.c: Add big comment explaining
10854         exactly what is expected as a 'long double'.
10855         (_xlqadd): When a value to be returned is representable as a
10856         'double', just return it directly, do not construct it using a union.
10857         Also, correct final fixup.
10858         (_xlqmul): Likewise.
10859         (_xlqdiv): Likewise.
10860         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
10861
10862         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
10863
10864 2004-01-09  Richard Henderson  <rth@redhat.com>
10865
10866         * recog.c (constrain_operands): Validate mem operands.
10867
10868 2004-01-09   James E Wilson  <wilson@specifixinc.com>
10869
10870         * gcc.c (init_spec): Remove -lunwind from shared case.
10871         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
10872
10873 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
10874
10875         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
10876         * configure: Regenerate
10877
10878 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
10879
10880         PR c/11234
10881         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
10882         between function and object pointers.
10883         (digest_init): When comparing a pointer to function type to the
10884         target type, only apply TREE_TYPE once to the pointer to function
10885         type.
10886         * except.c (for_each_eh_label_1): Treat data as a pointer to a
10887         function pointer rather than casting it to a function pointer.
10888         (for_each_eh_label): Update caller.
10889         * recog.h (struct insn_data): Use a struct or union for output.
10890         * genoutput.c (output_insn_data): Update.
10891         * final.c (get_insn_template): Update.
10892
10893 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
10894
10895         * expr.h (expand_expr): Make it a macro, not a function.
10896         (expand_expr_real): New function.
10897         * expr.c (store_expr): Adjust logic for deciding whether or not to
10898         copy the value returned by expand_expr.
10899         (expand_expr): Rename to ...
10900         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
10901         calls to language hooks.
10902         * c-common.h (c_expand_expr): Adjust prototype.
10903         * c-common.c (c_expand_expr): Add alt_rtl parameter.
10904         * langhooks-def.h (lhd_expand_expr): Change prototype.
10905         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
10906         * langhooks.h (lang_hooks): Change type of expand_expr.
10907         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
10908         (last_expr_alt_rtl): Likewise.
10909         (expand_expr_stmt_value): Set last_expr_alt_rtl.
10910         (clear_last_expr): Clear it.
10911         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
10912         (expand_end_bindings): Save and restor last_expr_alt_rtl.
10913         * tree.def (RTL_EXPR): Give it an additional operand.
10914         * tree.h (RTL_EXPR_ALT_RTL): New macro.
10915
10916 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10917
10918         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
10919         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
10920
10921 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10922
10923         PR target/13380.
10924         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
10925         or (ne:SI (reg:CC 17) (const_int 0)).
10926         Be specific about modes wherever possible.
10927
10928 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10929
10930         * config/m32r/m32r.c (m32r_expand_block_move): Call
10931         gen_movestrsi_internal with two more arguments.
10932         (m32r_output_block_move): Adjust operand numbers.
10933         Properly update the source and destination pointers.
10934         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
10935         'r+'.  Change the set detinations to match_operand.
10936
10937 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10938
10939         * final.c (FIRST_INSN_ADDRESS): Remove.
10940         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
10941         * system.h (FIRST_INSN_ADDRESS): Poison.
10942         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
10943         * config/m32r/m32r-protos.h: Remove the prototype for
10944         m32r_first_insn_address.
10945         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
10946         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
10947         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
10948
10949 2004-01-09  J. Brobecker  <brobecker@gnat.com>
10950
10951         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
10952         we just created.
10953         (is_ada_subrange_type): DIEs for enumeration subtypes should be
10954         emitted as subrange types too.
10955         (subrange_type_die): Add handling of enumeration subtypes.
10956
10957 2004-01-08  Richard Henderson  <rth@redhat.com>
10958
10959         PR opt/12441
10960         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
10961         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10962         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10963         (ix86_address_cost): Be prepared for SUBREGed registers.
10964         (legitimate_address_p): Accept SUBREGed registers.
10965
10966 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
10967
10968         * Makefile.in: Rename configure.in to configure.ac
10969         * doc/sourcebuild.texi: Likewise.
10970         * configure: Regenerate.
10971         * config.in: Regenerate.
10972
10973 2004-01-08  Stuart Hastings  <stuart@apple.com>
10974
10975         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
10976
10977 2004-01-08  Jan Hubicka  <jh@suse.cz>
10978
10979         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
10980
10981 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
10982
10983         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
10984         (UNSPEC_FIX_TRUNC_TF): New constant.
10985         (movtf_internal): Make splitter active only when insn is active.
10986         (extenddftf2): Rewrite to properly load zero into low part.
10987         (extenddftf2_internal): New.
10988         (extendsftf2): Rewrite.
10989         (truncdftf2): Correct length.
10990         (floatditf2): Delete.
10991         (fix_trunc_helper): New.
10992         (fix_trunctfdi2): Use fix_trunc_helper.
10993         (fix_trunctfsi2): Likewise.fix_trunc
10994         (fix_trunctfsi2_internal): New.
10995
10996         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
10997         addresses are legitimate on Darwin even when flag_pic.
10998         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
10999         non-offsettable addresses for loads of TFmode constants.
11000
11001 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
11002
11003         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
11004         variables in the appropriate bss section.
11005
11006 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
11007
11008         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
11009         target_flags has MASK_POWERPC64 when -m64.
11010         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
11011         to 620, 630, power3, power4 and rs64a entries.
11012         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
11013
11014 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
11015
11016         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
11017         floating-point constants.
11018
11019 2004-01-08  J. Brobecker  <brobecker@gnat.com>
11020
11021         * dwarf2out.c (subrange_type_die): Add context_die parameter.
11022         Create the subrange_type DIE using the given context DIE.
11023         (modified_type_die): Update call to subrange_type_die.
11024
11025 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
11026
11027         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
11028         Add multiple-include guard.
11029
11030 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
11031
11032         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
11033         all vector constant loadable by vsplt*.
11034         (output_vec_const_move): Likewise.
11035
11036 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
11037
11038         PR c/6024
11039         * c-typeck.c (comptypes): Only treat enumerated types in the same
11040         translation unit as compatible with each other when they are the
11041         same type.
11042         * doc/extend.texi: Update.
11043
11044 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
11045
11046         PR c/12165
11047         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
11048         array type from the array element type.
11049
11050 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
11051
11052         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
11053         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
11054         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
11055         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
11056         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
11057
11058 2004-01-06  Eric Christopher  <echristo@redhat.com>
11059
11060         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
11061         (DWARF2_DEBUGGING_INFO): Define.
11062         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
11063         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
11064         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
11065         for irix as.
11066         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
11067         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
11068         * config/mips/iris5gas.h: Ditto.
11069         (DBX_DEBUGGING_INFO): Remove.
11070         (DWARF2_DEBUGGING_INFO): Ditto.
11071         (MIPS_DEBUGGING_INFO): Ditto.
11072         (PREFERRED_DEBUGGING_TYPE): Ditto.
11073         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
11074         (PREFERRED_DEBUGGING_TYPE): Ditto.
11075         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
11076         * config/mips/elf64.h: Ditto.
11077
11078 2004-01-06  Jan Hubicka  <jh@suse.cz>
11079
11080         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
11081         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
11082
11083 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
11084
11085         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
11086         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
11087         * config/rs6000/darwin-ldouble.c: New.
11088
11089         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
11090         for constants.
11091         (constant_subword): Delete.
11092         * rtl.h (constant_subword): Delete prototype.
11093         (immed_double_const): Is not in varasm.c.
11094         * simplify-rtx.c (simplify_immed_subreg): New.
11095         (simplify_subreg): Use simplify_immed_subreg.
11096
11097         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
11098         than trying to generate RTL directly.
11099         (fix_trunctfsi2): Use expand_fix rather than trying to generate
11100         RTL directly.
11101
11102         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
11103
11104 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
11105
11106         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
11107         function into a separate macro.
11108         (read_only_data_section): Add void argument.
11109         (private_data_section): Same.
11110         (read_only_private_data_section): Same.
11111         (toc_section): Same.
11112
11113 2004-01-06  Jan Hubicka  <jh@suse.cz>
11114
11115         * invoke.texi:  Remove typo in last change.
11116
11117         PR target/10301
11118         * config.gcc: Accept opteron and athlon-64 as variants
11119         of k8.
11120         * i386.c (override_options): Likewise.
11121         * invoke.texi (i386 -mtune): Expand documentation.
11122
11123 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
11124
11125         * alias.c: Fix comment typos.
11126         * builtins.c: Likewise.
11127         * cfg.c: Likewise.
11128         * df.c: Likewise.
11129         * dominance.c: Likewise.
11130         * dwarf2out.c: Likewise.
11131         * emit-rtl.c: Likewise.
11132         * expr.c: Likewise.
11133         * final.c: Likewise.
11134         * fold-const.c: Likewise.
11135         * gcse.c: Likewise.
11136         * genattrtab.c: Likewise.
11137         * genrecog.c: Likewise.
11138         * gensupport.c: Likewise.
11139         * ggc-zone.c: Likewise.
11140         * integrate.c: Likewise.
11141         * local-alloc.c: Likewise.
11142         * loop.c: Likewise.
11143         * recog.c: Likewise.
11144         * regmove.c: Likewise.
11145         * reg-stack.c: Likewise.
11146         * reorg.c: Likewise.
11147         * rtlanal.c: Likewise.
11148         * rtl.h: Likewise.
11149         * sched-ebb.c: Likewise.
11150         * simplify-rtx.c: Likewise.
11151         * toplev.c: Likewise.
11152         * varasm.c: Likewise.
11153
11154 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
11155
11156         * doc/install.texi: Fix typos.
11157         * doc/invoke.texi: Likewise.
11158         * doc/md.texi: Likewise.
11159
11160 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
11161
11162         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
11163
11164 2004-01-06  Jan Hubicka  <jh@suse.cz>
11165
11166         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
11167         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
11168         of MMX_REGPARM.
11169         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
11170         add MMX_REGPARM.
11171         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
11172         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
11173         (MMX_REGPARM_MAX): Similarly for -mmmx.
11174
11175 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11176
11177         * config/sh/linux.h: Fix comment formatting.
11178         * config/sh/netbsd-elf.h: Likewise.
11179         * config/sh/sh.c: Likewise.
11180         * config/sh/sh.h: Likewise.
11181         * config/sh/vxworks.h: Likewise.
11182
11183 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11184
11185         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
11186         * toplev.c (output_file_directive): Don't use
11187         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
11188
11189 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
11190
11191         * toplev.c: Fix broken checkin of 2003-12-30.
11192
11193 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
11194
11195         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
11196         (USING_MMAP): We don't support non-mmap.
11197         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
11198         large objects.
11199         (struct page_entry): Remove bytes_free.
11200         (struct page_table_chain): Remove.
11201         (struct globals): Remove page_table member.
11202         (loookup_page_table_entry): Function deleted.
11203         (set_page_table_entry): Ditto.
11204         (ggc_allocated_p): No longer need page table lookups.
11205         (ggc_marked_p): Ditto.
11206         (alloc_small_page): Don't care about bytes_free anymore.
11207         (alloc_large_page): Round up size.
11208         (ggc_alloc_zone_1): Mark large objects as such, and calculate
11209         their size the new way.
11210         Remove page table lookups and setting.
11211         (ggc_get_size): Calculate large object size the new way.
11212         (sweep_pages): Redo to account for fact that we no longer have
11213         bytes_free.
11214         (ggc_collect): No longer need to reincrement bytes_free.
11215         (ggc_pch_alloc_object): Handle new large objects properly.
11216         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
11217
11218 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11219
11220         * doc/invoke.texi: Remove a page break.
11221
11222 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11223
11224         * config/avr/avr.c (avr_output_function_prologue): Remove an
11225         extra pair of curly braces.
11226
11227 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11228
11229         * config/mn10300/mn10300.c: Fix comment formatting.
11230         * config/mn10300/mn10300.h: Likewise.
11231
11232 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11233
11234         * tree.h: Update documentation on nothrow_flag.
11235         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
11236         types.
11237
11238 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11239
11240         * doc/invoke.texi: Remove traces of dead ports.
11241
11242 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
11243
11244         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
11245         option.
11246
11247 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
11248
11249         PR target/12945
11250         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
11251         counter labels.
11252         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
11253         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
11254         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
11255         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
11256         (mips_symbol_insns): Don't trust the local/global classification.
11257         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
11258         (override_options): Make -mabicalls -fno-unit-at-a-time imply
11259         -mno-explicit-relocs.
11260         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
11261         between local and global symbols.
11262
11263 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
11264
11265         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
11266         (mips_preferred_reload_class): Declare.
11267         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
11268         (EXTRA_CONSTRAINT): Update accordingly.
11269         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
11270         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
11271         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
11272         mips_dangerous_for_la25_p.
11273         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
11274         if mips_dangerous_for_la25_p.
11275
11276 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
11277
11278         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
11279         warning.
11280
11281 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
11282
11283         * configure.ac: Use AC_PROG_CPP_WERROR.
11284         * configure: Regenerate.
11285
11286 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
11287
11288         * .cvsignore: Add autom4te.cache.
11289
11290 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
11291
11292         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
11293         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
11294         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
11295         then architecture options, then ABI options.  General rewording.
11296
11297 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
11298
11299         PR c/3414
11300         * doc/extend.texi: Clarify definition of malloc attribute.
11301
11302 2004-01-04  Jan Hubicka  <jh@suse.cz>
11303
11304         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
11305         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
11306         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
11307         (cgraph_inline_p): Add extra argument reason.
11308         * cgraphunit.c: Minor formating fixes.
11309         cgraph_first_inlined_callee): New functions.
11310         (record_call_1): Record builtins too.
11311         (cgraph_analyze_function): Update inline_failed messages.
11312         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
11313         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
11314         (cgraph_check_inline_limits): Likewise; Add argument reason.
11315         (cgraph_set_inline_failed): New static function.
11316         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
11317         reasons.
11318         (cgraph_inline_p): Add new argument reason.
11319         * tree-inline.c (expand_call_inline):  Update warning.
11320
11321 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
11322
11323         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
11324         with modern equivalents.
11325         * configure: Regenerate.
11326
11327         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
11328         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
11329         * configure: Regenerate.
11330
11331         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
11332
11333         * configure.in: Rename to configure.ac.
11334         * configure.ac: Renamed from configure.in; make minimum necessary
11335         changes for autoconf 2.5x.
11336         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
11337         * configure: Regenerate with autoconf 2.57.
11338
11339 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
11340
11341         * config/mips/linux.h: Fix comment formatting.
11342         * config/mips/mips.c: Likewise.
11343         * config/mips/mips.h: Likewise.
11344         * config/mips/mips.md: Likewise.
11345         * config/mips/netbsd.h: Likewise.
11346         * config/mips/windiss.h: Likewise.
11347
11348 2004-01-02  Richard Henderson  <rth@redhat.com>
11349
11350         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
11351         for sse and 387; add suppression for mmx.
11352
11353 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
11354
11355         * loop.c (loop_optimize): Free all loops_info's mems.
11356
11357         * c-typeck.c (finish_init): Free spelling_base before
11358         setting it again.
11359
11360         * cfgloop.c (flow_loops_find): Always free the sbitmap
11361         headers.
11362
11363         * predict.c (estimate_probability): Free bbs after being
11364         done with it.
11365
11366 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
11367
11368         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
11369         const_8bit_operand and call_address_operand.
11370
11371 2004-01-02  Jan Hubicka  <jh@suse.cz>
11372
11373         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
11374         when there is nothing to inline but warnings are requested.
11375         (cgraph_decide_inlining):  Fix memory leak.
11376
11377 2004-01-02  Jan Hubicka  <jh@suse.cz>
11378
11379         * expr.c (store_constructor):  Fix pasto in previous patch.
11380
11381 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
11382
11383         * config/i386/cygming.h: Fix comment formatting.
11384         * config/i386/djgpp.h: Likewise.
11385         * config/i386/gthr-win32.c: Likewise.
11386         * config/i386/i386-interix.h: Likewise.
11387         * config/i386/i386.c: Likewise.
11388         * config/i386/i386.h: Likewise.
11389         * config/i386/openbsd.h: Likewise.
11390         * config/i386/winnt.c: Likewise.
11391         * config/i386/xm-mingw32.h: Likewise.
11392
11393 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
11394
11395         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
11396         copyright and last modification dates.
11397
11398 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
11399
11400         * doc/install.texi (Specific): Mention x86_64.
11401
11402 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11403
11404         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
11405         Call force_operand on plus_constant result.
11406
11407 2004-01-01  Jan Hubicka  <jh@suse.cz>
11408
11409         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
11410         * expr.c (store_constructor): Use vec_init pattern.
11411         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
11412         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
11413         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
11414         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
11415         New patterns.
11416         (sse2_unpc?pd): Fix pattern.
11417         (sse2_movlpd): Kill.
11418         (sse2_movsd): Deal with movlpd too.
11419         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
11420         (ix86_expand_vector_init): New.
11421         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
11422         * md.texi (vec_set, vec_extract): Document
11423
11424 2003-12-31  Jan Hubicka  <jh@suse.cz>
11425
11426         PR opt/13473
11427         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
11428         ASM input operands
11429
11430         PR opt/12617
11431         * toplev.c (dump_file_index): Reorder ce3 and bbro.
11432         (dump_file): Likewise.
11433         (rest_of_compilation): Likewise.
11434
11435         PR debug/13367
11436         * cgraph.c (cgraph_function_possibly_inlined):  Even with
11437         flag_really_no_inline we inline always_inline functions.
11438         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
11439         for non-always_inline functions when there is flag_really_no_inline.
11440         (cgraph_decide_inlining): Limit work done when not inlining.
11441         (cgraph_decide_inlining_incrementally): Likewise.
11442         (cgraph_optimize_function): Check whether something got inlined.
11443         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
11444         extern inline functions when not inlining.
11445
11446         * opts.c (decode_options):  Disable crossjumping at -O1
11447         * invoke.texi (-O1): Document change.
11448
11449 See ChangeLog.10 for earlier changes.