OSDN Git Service

* cse.c (cse_insn): Correct usage of simplify_replace_rtx when
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-04-04  Roger Sayle  <roger@eyesopen.com>
2
3         * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
4         updating the REG_EQUAL note on an insn's libcall_insn.
5
6 2004-04-04  Roger Sayle  <roger@eyesopen.com>
7
8         * df.h: Tidy up whitespace in the definitions of the DF_ flags.
9
10 2004-04-03  Roger Sayle  <roger@eyesopen.com>
11
12         * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
13         with reorder_operands_p.
14
15 2004-04-03  Jan Hubicka  <jh@suse.cz>
16
17         * md.texi (vec_set, vec_extract, vec_init): Document.
18
19 2004-04-02  Gabor Loki <loki@inf.u-szeged.hu>
20
21        * opts.c (decode_options): Do function inlining with very small
22        max-inline-insns-* parameters when optimizing for size.
23
24 2004-04-02  Vladimir Makarov  <vmakarov@redhat.com>
25
26         * config/i386/i386.h (TARGET_NOCONA): New macro.
27         (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
28         (processor_type): Add PROCESSOR_NOCONA.
29         
30         * config/i386/i386.md (cpu): Add nocona to the attribute values.
31
32         * config/i386/i386.c (nocona_cost): New variable.
33         (m_NOCONA): New macro.
34         (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
35         x86_branch_hints, x86_use_sahf, x86_single_stringop,
36         x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
37         x86_integer_DFmode_moves, x86_partial_reg_dependency,
38         x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
39         x86_decompose_lea, x86_arch_always_fancy_math_387,
40         x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
41         x86_ext_80387_constants, x86_four_jump_limit):
42         (override_options): Add nocona_cost to processor_target_table.
43         Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
44         (incdec_operand): Prevent inc/dec generation for Nocona too.
45         (ix86_issue_rate): Add PROCESSOR_NOCONA.
46         
47 2004-04-01  Andrew Pinski  <pinskia@physics.uc.edu>
48
49         * rtlanal.c (find_reg_note): Manually
50         unswitch the loop.
51
52 2004-04-01  Mark Mitchell  <mark@codesourcery.com>
53
54         * genemit.c (gen_split): Change prototype of generated code.
55         * genrecog.c (write_action): Adjust prototype for and calls to
56         gen_split_*.
57         * gensupport.c (struct queue_elem): Add split field.
58         (queue_pattern): Return a value.  Clear the split field.
59         (process_rtx): Maintain an association between an insn and the
60         split generated from it for a define_insn_and_split.
61         (process_one_cond_exec): Generate a new split for a
62         define_insn_and_split.
63         * config/arm/arm-protos.h (arm_split_constant): Add insn
64         parameter.
65         (emit_constant_insn): New function.
66         (arm_gen_constant): Use it.
67         * config/arm/arm.md: Adjust calls to arm_split_constant.
68
69 2004-04-02  Jan Hubicka  <jh@suse.cz>
70
71         * cgraph.c: Add overall comment.
72         (cgraph_inline_hash): New global variable.
73         (cgraph_create_node): Break out from ...
74         (cgraph_node): ... here.
75         (cgraph_edge): New function.
76         (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
77         (cgraph_remove_edge): Accept edge, intead of source and destination.
78         (cgraph_redirect_edge_callee): New.
79         (cgraph_remove_node): Update all new datastructures.
80         (cgraph_record_call, cgraph_remove_call): Kill.
81         (dump_cgraph_node): Break out from ... ; dump new datastructures.
82         (dump_cgraph): ... here.
83         (cgraph_function_possibly_inlined_p): Use new hashtable.
84         (cgraph_clone_edge, cgraph_clone_node): New.
85         * cgraph.h: Include hashtab.h
86         (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
87         fields, add inlined_to pointer.
88         (cgraph_node): Add pointer to next_clone.
89         (cgraph_remove_edge, cgraph_create_edge): Update prototype.
90         (cgraph_remove_call, cgraph_record_call): Kill.
91         (cgraph_inline_hash): Declare.
92         (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
93         cgraph_redirect_edge_callee): Declare.
94         (cgraph_create_edges, cgraph_inline_p): Update prorotype.
95         (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
96         cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
97         * cgraphunit.c: Add overall comment.
98         (cgraph_optimize_function): Kill.
99         (cgraph_assemble_pending_functions): Do not assemble inline clones.
100         (cgraph_finalize_function): Update call of cgraph_remove_node
101         (record_call_1): Record call sites.
102         (cgraph_create_edges): Accept node instead of decl argument.
103         (error_found): New static variable.
104         (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
105         (cgraph_analyze_function): Update for new datastructures.
106         (cgraph_finalize_compilation_unit): Plug memory leak.
107         (cgraph_optimize_function): Kill.
108         (cgraph_expand_function): Do not use cgraph_optimize_function.
109         (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
110         cgraph_inlined_callees): Kill.
111         (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
112         clones.
113         (estimate_growth): Simplify.
114         (cgraph_clone_inlined_nodes): New function.
115         (cgraph_mark_inline_edge): Re-implement.
116         (cgraph_mark_inline): Likewise.
117         (cgraph_check_inline_limits): Simplify.
118         (cgraph_recursive_inlining_p): New.
119         (update_callee_keys): Break out from ...
120         (cgraph_decide_inlining_of_small_functions): ... here; simplify.
121         (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
122         Likewise.
123         (cgraph_expand_all_functions):  Remove inline clones from the ordered
124         list.
125         (cgraph_preserve_function_body_p): New predicate.
126         (cgraph_optimize): Verify cgraph.
127         * function.h (struct function): Add fields saved_tree/saved_args.
128         * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
129         * toplev.c (rest_of_compilation): Do not free cfun.
130         * tree-inline.c: Include function.h
131         (struct inline_data): Add saving_p field; replace decl/current_decl by
132         node/current_node.
133         (insert_decl_map): New function.
134         (copy_body_r): Handle saving; update cgraph datastructure.
135         (copy_body): Handle recursive inlining.
136         (initialize_inlined_parameters): Likewise.
137         (expand_call_inline): Propagate node attributes; update cgraph.
138         (optimize_inline_calls): Verify that datastructure still match.
139         (save_body): New function.
140         * tree-inline.h (save_body): New.
141         * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
142         * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
143         * langhooks.c (lang_hooks): Add update_decl_after_saving.
144
145 2004-04-01  Serge Belyshev  <1319@bot.ru>
146
147         PR target/14702
148         * config/i386/i386.md: fix source operand constraints in
149         mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
150
151 2004-04-01  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
152
153         * fold-const.c (folda): Preserve types of comparisons.
154
155 2004-04-01  Richard Henderson  <rth@redhat.com>
156
157         * toplev.c (backend_init): Move init_optimization_passes call ...
158         (lang_dependent_init): ... here.
159
160 2004-04-01  Alan Modra  <amodra@bigpond.net.au>
161             Jakub Jelinek  <jakub@redhat.com>
162
163         * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
164         -lgcc --as-needed -lgcc_s --no-as-needed by default.
165         * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
166         * configure: Rebuilt.
167         * config.in: Rebuilt.
168         * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
169         (stage2-start, stage3-start, stage4-start): Likewise.
170         (stageprofile-start, stagefeedback-start): Likewise.
171
172 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
173
174         * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
175         * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
176         * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
177         * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
178         (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
179         * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
180         with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
181         * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
182         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
183         * config/sparc/t-linux: Removed.
184
185 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
186
187         PR c++/14755
188         * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
189         "bitfld++ == const" to "++bitfld == const + incr" transformations.
190
191 2004-04-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
192
193         * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
194         * stor-layout.c (layout_decl): Likewise.
195         * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
196         * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
197         * print-tree.c (print_node): Handle various used of unsigned_flag.
198         * tree.def (BIT_FIELD_REF): Update comment.
199         * tree.h (TREE_UNSIGNED): Deleted.
200         (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
201
202 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
203
204         * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
205         Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
206         * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
207         * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
208         * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
209         * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
210         * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
211         * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
212         * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
213         * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
214         REAL_TYPE, not INTEGER_TYPE.
215         (layout_type, case VECTOR_TYPE): Simplify code.
216         * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
217         * tree.h: Update comments.
218         (STRIP_NOPS): Use TYPE_UNSIGNED.
219         (TYPE_UNSIGNED): New macro.
220         (TYPE_TRAP_SIGNED): Remove now redundant check.
221         (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
222
223 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
224
225         * function.c (put_var_into_stack): Properly set orig_reg for indirect.
226
227 2004-03-31  Andrew Pinski  <pinskia@physics.uc.edu>
228
229         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
230         Add darwin-fpsave.asm, darwin-vecsave.asm,
231         and darwin-world.asm.
232         (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
233         as the asm files contain altivec instructions.
234         * config/rs6000/darwin-fpsave.asm: New file.
235         * config/rs6000/darwin-vecsave.asm: New file.
236         * config/rs6000/darwin-world.asm: New file.
237
238 2004-03-31  Zack Weinberg  <zack@codesourcery.com>
239
240         * gengtype-yacc.y (option, stringseq): Add missing
241         terminating semicolon.
242
243 2004-03-30  David Edelsohn  <edelsohn@gnu.org>
244
245         * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
246         tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
247         tls_dtprel_ha_32, tls_dtprel_ha_64,
248         tls_dtprel_lo_32, tls_dtprel_lo_64,
249         tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
250         tls_tprel_ha_32, tls_tprel_ha_64,
251         tls_tprel_lo_32, tls_tprel_lo_64,
252         tls_got_tprel_32, tls_got_tprel_64,
253         tls_tls_32, tls_tls_64): Replace register_operand with
254         gpc_reg_operand.
255
256 2004-03-30  Mostafa Hagog  <mustafa@il.ibm.com>
257
258         * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
259         *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
260         *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
261         *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
262         *ctrdi_internal6): Replace register_operand with
263         nonimmediate_operand.
264
265 2004-03-29  Fariborz Jahanian <fjahanian@apple.com>
266
267         * fold-const.c (fold): Reassociate multiply expression
268         with an adjacent non-multiply expression to use
269         architecture's multiply-add instruction.
270
271 2004-03-30  Zack Weinberg  <zack@codesourcery.com>
272
273         * gengtype.c (create_option): New function.
274         * gengtype.h: Prototype it.
275         * gengtype-yacc.y (stringseq): New rule.
276         (option): Use create_option.  Add new bare ID production.  Use
277         stringseq, not STRING directly.
278
279         * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
280         * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
281         * varray.h, config/alpha/alpha.c:
282         Use new shorter form of GTY markers.
283
284         * doc/gty.texi: Rewrite.
285
286 2004-03-30  Andrew Pinski  <pinskia@physics.uc.edu>
287
288         * config/darwin.c (machopic_function_base_name):
289         Remove current_name and getting the name of the
290         current function.
291
292 2004-03-30  Nick Clifton  <nickc@redhat.com>
293
294         * config/arm/arm.md (thumb_jump): Reduce the backward branch
295         range, and increase the forward branch range, to allow for
296         the fact that the PC will be off by 4.
297
298 2004-03-30  Alan Modra  <amodra@bigpond.net.au>
299
300         * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
301
302 2004-03-30  Hartmut Penner  <hpenner@de.ibm.com>
303
304         * config/rs6000/rs6000.c (output_vec_const_move):
305         Find all cases of EASY_VECTOR_15_ADD_SELF.
306         (easy_vector_constant_add_self): Accept
307         all vector constant loadable by vsplt* and vadd*.
308         (easy_vector_same): Use easy_vector_splat_const.
309         (easy_vector_const): Use easy_vector_splat_const.
310         (easy_vector_splat_const): New function.
311         (gen_easy_vector_constant_add_self): New function.
312
313         * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
314         New prototype.
315
316         * config/rs6000/altivec.md (movv4si splitter): Change to
317         emit move insn with halfed vector constant.
318         (*movv8hi splitter): Likewise.
319         (*movv16qi splitter): Likewise.
320
321 2004-03-30  Hartmut Penner  <hpenner@de.ibm.com>
322
323         PR 11591
324         * config/rs6000/rs6000.c (rs6000_legitimate_address):
325         Allow any offset to argument pointer in no-strict case.
326
327 2004-03-30  Jan Hubicka  <jh@suse.cz>
328
329         * toplev.c (backend_init): Add missing call to inint_optimization_passes.
330         * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
331         dump file in non-unit-at-a-time mode.
332
333 2004-03-29  Hans-Peter Nilsson  <hp@axis.com>
334
335         * config/cris/cris.h: Correct #ifdef to test for
336         HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
337         HAVE_AS_MUL_BUG_ABORT_OPTION.
338
339 2004-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
340
341         * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
342         the address inside the old RTL.
343
344 2004-03-28  Zack Weinberg  <zack@codesourcery.com>
345
346         * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
347         (struct c_binding, struct c_scope): Add chain_next
348         attributes to GTY markers.
349         (struct lang_identifier, struct lang_tree_node): Define
350         here...
351         * c-tree.h: ... not here.  No longer need to declare struct
352         c_binding either.  Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
353         * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
354         to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
355
356         PR 14734, 11944
357         * c-decl.c (get_parm_info): If error_mark_node is encountered
358         in the bindings chain, unbind and discard it; don't abort.
359
360 2004-03-28  Olga Golovonevsky <olga@il.ibm.com>
361             Dorit Naishlos <dorit@il.ibm.com>
362
363         * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
364         one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
365
366 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
367
368         * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
369
370         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
371         (m68hc11_attribute_table): New attribute "page0" to mark a global
372         variable as being allocated from within page0 section.
373         (m68hc11_encode_label): New function.
374         (m68hc11_strip_name_encoding): New function.
375         (m68hc11_page0_symbol_p): New function.
376         (m68hc11_indirect_p): Accept global variables marked in page0.
377         (m68hc11_encode_section_info): Lookup "page0" attribute.
378
379         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
380         represents access to page0 variables.
381
382         * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
383         ("*logicalsi3_silshl16_zext"): Likewise.
384         ("*ashldi3_const32"): Likewise.
385         (peephole2 ashift): Likewise.
386
387 2004-03-28  Joseph S. Myers  <jsm@polyomino.org.uk>
388
389         * c-tree.h (C_DECL_REGISTER): New.
390         * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
391         finish_decl, grokdeclarator, get_parm_info), c-typeck.c
392         (build_array_ref, c_mark_addressable): Set and use it.
393         * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
394         Allow structures with volatile fields to be declared register.
395         Don't check TREE_ADDRESSABLE before warning about taking address
396         of register.
397         * c-decl.c (finish_decl): Don't allow structures with volatile
398         fields to be placed in named register.
399         * doc/trouble.texi: Remove reference to structures with volatile
400         fields in registers.
401
402 2004-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
403
404         * function.c (thread_prologue_and_epilogue): Move
405         NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
406         before the epilogue.
407
408 2004-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
409
410         * expr.c (store_constructor): Use gen_int_mode to correctly
411         sign-extend CONST_INT value.
412
413 2004-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
414
415         * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
416         * builtins.def (DEF_C94_BUILTIN): New.  Add wctype builtins.
417         * doc/extend.texi: Likewise.
418
419 2004-03-26  Diego Novillo  <dnovillo@redhat.com>
420
421         * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
422           with TYPE_ORIG_SIZE_TYPE.
423
424 2004-03-25  Aldy Hernandez  <aldyh@redhat.com>
425
426         PR 14219
427         * c-typeck.c (build_binary_op): Do not allow comparisons of
428         vectors.
429
430 2004-03-26  James A. Morrison  <ja2morri@uwaterloo.ca>
431
432         * config.gcc: Remove sparc-tti-*.
433         * config/sparc/pbd.h: Delete.
434
435         * config/sparc/sol2.h: Remove note about Sun OS 4.x.
436         * config/sparc/aout.h: Likewise.
437
438         * config/sparc/sparc.h: Remove if 0'd code.
439         * config/sparc/sparc.md (call): Remove if 0'd code.
440         (call_value): Likewise.
441         (nonlocal_goto): Likewise.
442         (unimp_insn): Delete.
443
444 2004-03-25  Roger Sayle  <roger@eyesopen.com>
445
446         * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
447         BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
448
449 2004-03-25  Richard Henderson  <rth@redhat.com>
450
451         PR 11527
452         * c-typeck.c (pop_init_level): Emit pending init elements earlier
453         rather than later.
454
455 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
456
457         * builtins.c (fold_builtin): Fix error in last change.
458
459 2004-03-25  Richard Sandiford  <rsandifo@redhat.com>
460
461         * config/mips/mips.h: Formatting fix.
462
463 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
464
465         * builtins.def: Add ctype builtins.
466         * doc/extend.texi: Likewise.
467
468 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
469
470         * builtins.c (fold_builtin): Add new builtin optimizations for
471         sqrt and/or cbrt.
472         * fold-const.c (fold): Likewise.
473
474 2004-03-25  David Edelsohn  <edelsohn@gnu.org>
475
476         * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
477         (rs6000_sched_groups): New variable.
478         (processor_target_table): Add power5.
479         (rs6000_override_options): Set rs6000_sched_insert_nops,
480         rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
481         from rs6000_sched_groups.
482         (output_cbranch): Use rs6000_always_hint.
483         (rs6000_variable_issue): Use rs6000_sched_groups.
484         (rs6000_adjust_cost): Add CPU_POWER5.
485         (is_microcoded_insn): Use rs6000_sched_groups.
486         (is_dispatch_slot_restricted): Use rs6000_sched_groups.
487         Return 2 for POWER5 cracked instructions.
488         (is_cracked_insn): Use rs6000_sched_groups.
489         (is_branch_slot_insn): Use rs6000_sched_groups.
490         (rs6000_issue_rate): Add CPU_POWER5.
491         (rs6000_sched_finish): Use rs6000_sched_groups.
492         (rs6000_rtx_costs): Add PROCESSOR_POWER5.
493         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
494         (DEFAULT_SCHED_COSTLY_DEP): Delete.
495         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
496         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
497         * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
498         * config/rs6000/power5.md: New file.
499         * doc/invoke.texi: Add power5 option.
500
501 2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>
502
503         * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
504         config/arm/arm.c, objc/objc-act.c: Fix comment typos.
505         * doc/invoke.texi: Fix a typo.
506
507 2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>
508
509         PR optimization/9707.
510         * stmt.c (emit_case_nodes): Emit equality comparisons instead
511         of recursing if both children are single-valued cases with no
512         children.
513
514 2004-03-25  Paul Brook  <paul@codesourcery.com>
515
516         * config/arm/arm.c (vfp_print_multi): Remove.
517         (arm_output_fldmx): New function.
518         (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
519         (arm_expand_prologue): Update to match.
520         (arm_get_vfp_saved_size): New Function.
521         (arm_get_frame_offsets): Use it.
522         (arm_output_epilogue): Use new functions.
523
524 2004-03-24  Richard Henderson  <rth@redhat.com>
525
526         * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
527         (reg_known_value, reg_known_value_size): Likewise; make static.
528         (reg_known_equiv_p): Make static.
529         (clear_reg_alias_info): Update for new indexing.
530         (get_reg_known_value, set_reg_known_value): New.
531         (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
532         (canon_rtx): Use them.
533         (init_alias_analysis): Likewise.  Allocate reg_known_value with gc.
534         Don't play queer offsetting games with reg_known_value and
535         reg_known_equiv_p.
536         (end_alias_analysis): Free reg_known_value with gc.
537         * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
538         * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
539         (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
540         functions instead.
541
542 2004-03-24  Kazu Hirata  <kazu@cs.umass.edu>
543
544         * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
545         config/i386/mmintrin.h: Update copyright.
546
547 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
548
549         * configure.ac: Add --enable-werror-always (for top level bootstrap
550         support).
551         * configure: Regenerate.
552
553 2004-03-24  Ziemowit Laski  <zlaski@apple.com>
554
555         * objc/objc-act.c (objc_comptypes): Treat comparisons
556         between 'Class' and '<class> *' as explicitly invalid.
557
558 2004-03-24  David Edelsohn  <edelsohn@gnu.org>
559
560         * doc/invoke.texi (-frename-registers: Add enabled at -O3.
561         (-fprofile-values): Add enabled with profile-{generate,use}.
562         (-fvpt): Same.
563         (-ftracer): Add enabled with profile-use.
564         (-funit-at-a-time): Add enabled at -O2,-O3.
565         (-funroll-loops): Add enabled with profile-use.
566         (-funswitch-loops): Add enabled with profile-use.  Remove duplicates.
567         (max-gcse-passes): Mention default.
568         (max-cse-path-length): Mention default.
569
570 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
571
572         * Makefile.in (STRICT2_WARN): Reorder.
573         * configure.ac: Check for -Wold-style-definition, and use it
574         in strict1_warn if it's available.
575         * configure: Regnerate.
576
577 2004-03-24  Paul Brook  <paul@nowt.org>
578
579         * config.gcc <arm>: Add --with-abi=
580         * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
581         thumb_far_jump_used): Remove prototypes.
582         (arm_needs_doubleword_align): Add prototype.
583         (thumb_compute_initial_elimination_offset): Ditto.
584         * config/arm/arm.c (arm_get_frame_offsets): New function.
585         (use_return_insn, output_return_instruction, arm_output_epilogue,
586         arm_output_function_epilogue, arm_compute_initial_elimination_offset,
587         arm_expand_prologue, thumb_expand_epilogue): Use it.
588         (arm_abi, target_abi_name, all_arm_abis): New variables.
589         (arm_override_options): Set them.  Set structure padding for AAPCS.
590         (arm_return_in_memory): Update ABI check.
591         (arm_init_cumulative_args): Initialize can_split.
592         (arm_needs_doubleword_align): New function.
593         (arm_function_arg): Don't split args after pushing to stack. Handle
594         doubleword/even reg alignment.
595         (arm_va_arg): Handle all doubleword aligned args.
596         (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
597         on ABI, not CPU.
598         (arm_compute_save_reg0_reg12_mask): Fix comment.
599         (thumb_get_frame_size, thumb_get_frame_size): Remove.
600         (thumb_jump_far_used_p): Remove superfluous argument.  Return save
601         value for alignment.
602         (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
603         to match.
604         (thumb_compute_initial_elimination_offset): New function.
605         (thumb_expand_prologue): Use arm_get_frame_offsets.  Remove
606         unneccessary rounding.
607         * config/arm/arm.h (target_abi_name): Declare.
608         (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
609         arm_abi_type, ARM_DEFAULT_ABI): Define.
610         (ARM_FLAG_ATPCS): Remove.
611         (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
612         (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
613         (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
614         TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
615         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
616         Contitionalize on ABI, not CPU.
617         (struct arm_stack_offsets): Define.
618         (struct machine_function): Add stack_offsets.  Remove frame_size.
619         (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
620         pushed.
621         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
622         doubleword alignment.
623         (THUMB_INITIAL_ELIMINATION_OFFSET,
624         ARM_INITIAL_ELIMINATION_OFFSET): Remove.
625         (INITIAL_ELIMINATION_OFFSET): Call functions directly.
626         * config/arm/arm.md (align_8): Enable for all targets.
627         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
628         (ARM_DEFAULT_ABI): Define.
629         * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
630         -mstructure-size-boundary.
631
632 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
633
634         * configure.ac: Check for -Wno-variadic-macros; don't use
635         -pedantic (in stage 1 or a simple 'make all') unless it's available,
636         and if it's available, use it.  Also, clean up check for
637         -Wno-long-long.
638         * configure: Regenerate.
639
640 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
641
642         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
643         * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
644         (MULTILIB_DEFAULTS): Use it.
645         (MIPS_CPU_STRING_DEFAULT): Remove.
646         (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
647         (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120.  Make
648         EABI64 -mlong32 the default ABI.  Enforce the default architecture.
649         * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
650         march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
651         (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
652         (MULTILIB_EXCEPTIONS): Change choice of multilibs.  Update comments
653         accordingly.
654
655 2004-03-24  DJ Delorie  <dj@redhat.com>
656             Richard Sandiford  <rsandifo@redhat.com>
657
658         * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
659         (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
660         (ASM_SPEC): Pass down -mfix-vr4122-bugs.
661         * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
662         in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
663         (mips_init_libfuncs): Use special functions for divsi3 and modsi3
664         if TARGET_FIX_VR4122.
665         * config/mips/mips.md (define_attr length): Account for nops inserted
666         after macc and dmult when using -mfix-vr4122-bugs.
667         (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
668         * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
669         LIB2FUNCS_EXTRA.  Add config/mips/vr4122-div.S.
670         * config/mips/vr4122-div.S: New file.
671         * doc/invoke.texi: Document -mfix-vr4122-bugs.
672
673 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
674
675         * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
676         (TARGET_MIPS4130): New macro.
677         (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
678         * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
679         (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
680         with PROCESSOR_R4130.
681         * config/mips/mips.md (define_attr cpu): Add r4130.
682         * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
683
684 2004-03-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
685             Richard Sandiford  <rsandifo@redhat.com>
686
687         * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
688
689 2004-03-24  Alexandre Oliva  <aoliva@redhat.com>
690
691         PR preprocessor/14438
692         * cpplib.c (do_pragma): Remove line_change call after pragma
693         handler.
694
695 2004-03-23  Ian Lance Taylor  <ian@wasabisystems.com>
696
697         * doc/extend.texi (ARM Built-in Functions): Replace with correct
698         declarations.
699
700 2004-03-23  Roger Sayle  <roger@eyesopen.com>
701
702         * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
703         if flag_unsafe_math_optimizations.
704         * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
705         and TARGET_80387 expand using truncdfsf2_noop pattern.
706         (truncxfsf2): Likewise using truncxfsf2_noop.
707         (truncxfdf2): Likewise using truncxfdf2_noop.
708         (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
709
710 2004-03-23  Ziemowit Laski  <zlaski@apple.com>
711
712         * hooks.c (hook_constcharptr_tree_null): New hook.
713         * hooks.h (hook_constcharptr_tree_null): New prototype.
714         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
715         * target.h (mangle_fundamental_type): New target hook.
716         * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
717         target hook at rs6000_mangle_fundamental_type.
718         (rs6000_mangle_fundamental_type): New function.
719         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
720
721 2004-03-23  Zack Weinberg  <zack@codesourcery.com>
722
723         PR 12267, 12391, 12560, 13129, 14114, 14133
724         * c-tree.h: Forward declare struct c_binding.  Declare
725         c_override_bindings_to_false.  Update prototypes.
726         (struct lang_identifier): Update comments.  Change fields to be
727         struct c_binding *.
728         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
729         (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
730         (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
731         (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
732         * c-common.h: Update prototypes.
733         * c-decl.c (struct c_scope): Update commentary.  Remove names,
734         names_last, parms, parms_last, tags, and shadowed fields.  Add
735         bindings and depth fields.
736         (scope_freelist): Move to more appropriate location.
737         (c_print_identifier): Update for changes to struct lang_identifier.
738         (objc_mark_locals_volatile): Update for new bindings structures.
739         (global_bindings_p): Honor c_override_global_bindings_to_false.
740         (pushlevel): Rename to push_scope; take no arguments; use the
741         scope_freelist; initialize scope->depth and check for overflow.
742         (poplevel): Rename to pop_scope; totally rewritten for new bindings
743         structures.
744         (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
745         C_DECL_INVISIBLE, for certain decisions.  Adjust some diagnostics.
746         Improve some commentary.  Adjust handling of forward parm decls.
747         (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
748         Preserve C_DECL_IN_EXTERNAL_SCOPE.
749         (warn_if_shadowing): Correct indentation.  Improve diagnostics.
750         (pushdecl): Remove unnecessary assertion.  Short-circuit anonymous
751         decls.  Rewrite for new bindings structures.  Improve commentary.
752         Eliminate the copy_node call.
753         (implicit_decl_warning): Use the "diag" idiom (as seen in
754         locate_old_decl) to reduce code duplication; call locate_old_decl
755         if appropriate.  Relocate to remove need for forward declaration.
756         (implicitly_declare): Adjust for new bindings structures.  Kludge
757         around Objective-C not-really-builtin functions.
758         (undeclared_variable): Improve diagnostics.  If current_function_decl
759         is nonnull but current_function_scope is null, use current_scope.
760         Use bind.
761         (lookup_tag): Adjust for new bindings structures.  Kludge around
762         Objective-C's tag declarations that wind up in the external scope.
763         (lookup_name): Adjust for new bindings structures.  Kludge around
764         c-common.c's pseudo-typedefs that wind up in the external scope.
765         (lookup_name_current_level): Rename lookup_name_in_scope; take a
766         second argument indicating the scope to examine; rewrite for
767         new bindings structures.
768         (c_init_decl_processing): Adjust for renamed functions.  Do not
769         initialize current_file_decl, first_builtin_decl, last_builtin_decl.
770         First scope pushed is the external scope, not the global scope.
771         (builtin_function): Use bind, not pushdecl.  Adjust other bits
772         for new data structures.  Keep track of builtins that should be
773         made visible automatically.
774         (start_decl): Adjust diagnostics.  Remove unnecessary call to
775         expand_decl.
776         (grokparms): Return 0 if arg_types is error_mark_node.
777         (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
778         reversed sense.  Rewrite for new bindings structures.  Do not
779         leave any decls in the scope, to prevent pop_scope from doing
780         contradictory things with them.
781         (finish_struct, finish_enum): Remove redundant diagnostics.
782         (build_enumerator): Don't cascade diagnostics for error_mark_node.
783         Mark location where -pedantic changes the meaning of the program.
784         (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
785         parameter decls into the function's scope structure using bind.
786         Warn here about function definitions in the wrong style.
787         Adjust diagnostics.
788         (store_parm_decls): Correct the determination of whether a
789         function was defined with a prototype.
790         (c_write_global_declarations): Operate on all file decls and on
791         the external scope.  Split body of the loop to...
792         (c_write_global_declarations_1): ... this new function, to avoid
793         code duplication.
794         (truly_local_externals, first_builtin_decl, last_builtin_decl)
795         (make_scope, pop_scope, in_parm_level_p, set_block)
796         (any_external_decl, record_external_decl, bind_label, getdecls)
797         (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
798         (c_reset_state): Delete.
799         (visible_builtins, c_override_global_bindings_to_false)
800         (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
801         (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
802         (external_scope, binding_freelist, bind, free_binding_and_advance)
803         (push_file_scope, pop_file_scope): New.
804         (pushtag, pushdecl_top_level, lookup_label, declare_label)
805         (define_label, c_make_fname_decl, finish_decl)
806         (mark_forward_parm_decls, build_compound_literal)
807         (grokdeclarator, start_function, check_for_loop_decls)
808         (identifier_global_value, record_builtin_type): Minor adjustments
809         for new bindings structures.  Improve diagnostics and commentary.
810         * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
811         pushlevel/poplevel respectively.
812         (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
813         * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
814         Warn about YYDEBUG not being defined only if -dy.  Remove no-longer-
815         correct loop over multiple translation units; call fatal_error if
816         requested to compile more than one file at once.  (This disables
817         IMA temporarily - an up-front error being preferable to a crash.)
818         * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
819         (all actions): Adjust calls to pushlevel/poplevel.
820         (parsing_iso_function_signature): Delete.
821         (extdef_1): Fold into extdef.
822         (old_style_parm_decls_1): Fold into old_style_parm_decls.  Don't
823         warn here about function definitions in the wrong style.
824         (after_tyle_declarator, parm_declarator_starttypename)
825         (parm_declarator_nostarttypename, notype_declarator): Remove
826         commented-out productions.
827         (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
828         an empty TREE_LIST node.  Adjust calls to get_parm_info.
829         (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
830         to suppress -Wold-style-definition after this error.
831         (c_parse_file): Don't clear the binding stack or call
832         finish_fname_decls here.  Correct comment.
833         * c-typeck.c (same_translation_unit_p): Export.
834         (common_type): Use c_override_global_bindings_to_false, not
835         pushlevel/poplevel/declare_parm_level.
836         * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
837         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
838         and LANG_HOOKS_GETDECLS with do-nothing stubs.
839         * objc/objc-lang.c: Likewise.
840         * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
841         get_parm_info.
842         (OBJC_VOID_AT_END): Delete; replace all uses
843         with void_list_node.
844         (generate_forward_declaration_to_string_table): Delete.
845         * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
846
847         * coverage.c (create_coverage): Don't pushdecl anything.
848         * langhooks.c (lhd_clear_binding_stack): Call
849         lang_hooks.decls.poplevel, not poplevel.
850         * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
851         circular list rather than going into an infinite loop.
852
853 2004-03-23  Olivier Hainque  <hainque@act-europe.fr>
854
855         * optabs.c (expand_binop): When synthesizing double word rotates
856         from single word shifts, use a new register target if the provided
857         target is not a REG already.
858
859 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
860
861         * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
862         * c-common.c (handle_mode_attribute): Add extra arg to
863         build_pointer_type_for_mode and build_reference_type_for_mode.
864         * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
865         for INTEGER_CST.
866         * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
867         Chain pointers via TYPE_NEXT_PTR_TO.
868         (build_reference_type_for_mode): Similarly.
869         (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
870         and build_reference_type_for_mode.
871         (tree_check4_failed): New function.
872         * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
873         (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
874         (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
875         Add check.
876
877 2004-03-23  Roger Sayle  <roger@eyesopen.com>
878
879         * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
880         A is nonnegative or B is nonnegative.  Similarly A|B is nonnegative
881         when both A and B are nonnegative.
882         (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
883         nonzero.
884
885 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
886
887         * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
888         VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
889
890 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
891
892         PR optimization/14669
893         * fold-const.c (fold): Only unwiden integer comparisons for equality
894         and inequality operators, or when the signedness doesn't change.
895
896 2004-03-23  Jakub Jelinek  <jakub@redhat.com>
897
898         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
899         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
900         * config/sparc/t-linux: New file.
901
902 2004-03-23  Richard Sandiford  <rsandifo@redhat.com>
903
904         * gcse.c (can_assign_to_reg_p): New function, split out from...
905         (want_to_gcse_p): ...here.
906         (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
907         the rhs of a store.
908
909 2004-03-22  Diego Novillo  <dnovillo@redhat.com>
910
911         * c-typeck.c (same_translation_unit_p): Fix pasto.
912
913 2004-03-22  David Edelsohn  <edelsohn@gnu.org>
914
915         * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
916         (PARAM_MAX_SCHED_REGION_INSNS): New.
917         * sched-rgn.c: Include params.h
918         (MAX_RGN_BLOCKS): Delete.
919         (MAX_RGN_INSNS): Delete.
920         (too_large): Return bool.  Convert to PARAM_VALUE.
921         * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
922         * doc/invoke.texi (param): Document max-sched-region-blocks and
923         max-sched-region-insns.
924
925 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
926
927         * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
928         for base types.
929
930 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
931
932         * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
933         change.
934
935 2004-03-22  Jakub Jelinek  <jakub@redhat.com>
936
937         PR c/14069
938         * c-decl.c (finish_struct): Change type of incorrect flexible array
939         field into error_mark_node.
940
941 2004-03-22  Andrew Pinski  <pinskia@physics.uc.edu>
942
943         PR target/14580
944         * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
945         who are not local for Darwin PIC.
946
947 2004-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
948
949         * regrename.c (regrename_optimize): Set regs_ever_live for all
950         registers introduced as replacement.
951
952 2004-03-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
953
954         PR middle-end/14470
955         * expr.c (mark_queue): New function.
956         (emit_insns_enqueued_after_mark): New function replacing
957         emit_queue.  Clear the body of emitted queued insns.
958         (emit_queue): Call emit_insns_enqueued_after_mark.
959         (store_expr): Mark the increment queue on entry.  Emit
960         only the incrementations queued when expanding the source.
961
962 2004-03-22  Nathanael Nerode  <neroden@gcc.gnu.org>
963
964         * configure.ac: Allow --disable-coverage-flags (for the future benefit
965         of top level bootstrap, and consistency).  Reindent.
966         * configure: Regenerate.
967
968 2004-03-21  Kazu Hirata  <kazu@cs.umass.edu>
969
970         * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
971         ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
972         unnecessary casts.
973
974 2004-03-22  Danny Smith  <dannysmith@users.sourceforge.net>
975
976         PR target/14291
977         * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
978         __MINGW32__.
979
980 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
981
982         * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
983         to nonimmediate_operand.
984         ("*doloop_di"): Likewise.
985
986 2004-03-21  Alexandre Oliva  <aoliva@redhat.com>
987
988         * real.h (struct real_value): Use the same type for all
989         bitfields.  Rename exp to uexp.
990         (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
991         Adjust all uses of exp...
992         * builtins.c: ... here, ...
993         * emit-rtl.c: ... here, and ...
994         * real.c: ... and here.
995
996 2004-03-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
997
998         * pretty-print.c (pp_base_maybe_space): New function.
999         * pretty-print.h (pp_base_maybe_space): Declare.
1000         (pp_maybe_space): New macro.
1001
1002 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
1003
1004         * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
1005
1006 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
1007
1008         * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
1009         of using register multiplication cost.
1010         (expand_mult): Adapt choose_mult_variant call.
1011         (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
1012         of MODE; pass appropriate cost bound.  Adjust result when
1013         performing signed multiplication by a negative constant.
1014         Don't use intermediate modes larger than word_mode.
1015
1016 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1017
1018         * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
1019         * emit-rtl.c (component_ref_for_mem_expr): Likewise.
1020         (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
1021         * explow.c (expr_size): Likewise.
1022         * expr.h (placeholder_list, find_placeholder): Deleted.
1023         * expr.c (store_constructor): Likewise.
1024         (get_inner_reference): Likewise.  Also don't call find_placeholder.
1025         (placeholder_list, find_placeholder): Deleted.
1026         (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
1027         (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
1028         (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
1029         * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
1030         * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
1031         Likewise.
1032         * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
1033         (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
1034         * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
1035         (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
1036         Clean up by using first_rtl_op.
1037         (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
1038         (substitute_placeholder_in_expr): New function.
1039         * tree.def (WITH_RECORD_EXPR): Deleted.
1040         * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
1041         (substitute_placeholder_in_expr): New.
1042
1043 2004-03-21  Andrew Pinski  <pinskia@gcc.gnu.org>
1044
1045         * dojump.c (prefer_and_bit_test): Fix which part of
1046         the and_test is replaced.
1047
1048 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
1049
1050         * frontends.texi: Add missing line.
1051
1052 2004-03-21  Zack Weinberg  <zack@codesourcery.com>
1053             Chris Devers  <cdevers@pobox.com>
1054             Joseph S. Myers  <jsm@polyomino.org.uk>
1055
1056         * doc/frontends.texi: Rewrite.
1057         * doc/gcc.texi: Update last modification date.
1058
1059 2004-03-21  Josef Zlomek  <zlomekj@suse.cz>
1060
1061         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
1062         message before redirecting the edge.
1063
1064 2004-03-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1065
1066         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
1067         flag.
1068         * explow.c (force_not_mem): Set REG_POINTER flag according to
1069         MEM_POINTER one.
1070         * rtl.h (MEM_POINTER): New macro.
1071         (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
1072         for MEM_POINTER.
1073
1074 2004-03-20  Roger Sayle  <roger@eyesopen.com>
1075
1076         PR target/13889
1077         * cse.c (fold_rtx): Avoid substituting constants into unary
1078         conversion operations.
1079
1080 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1081
1082         * fold-const.c (fold): Replace "expr" with "t".
1083
1084 2004-03-20  Ian Lance Taylor  <ian@wasabisystems.com>
1085
1086         PR c/12373
1087         * c-typeck.c (tagged_types_tu_compatible_p): Don't use
1088         DECL_ORIGINAL_TYPE if there isn't one.
1089
1090 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1091
1092         * fold-const.c (fold): Replace "final_type" with "type".
1093         Remove variable "final_type".
1094
1095 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1096
1097         * fold-const.c (fold): Constify "type".
1098         Replace "TREE_TYPE (t)" with "type".
1099
1100 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1101
1102         * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
1103         dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
1104         via (*targetm.foo) () with targetm.foo ().
1105
1106 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1107
1108         PR other/14630
1109         * doc/install.texi: Add info directory category and entry.
1110
1111 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1112
1113         * fold-const.c (fold): Replace "t" with "tem" where it is used
1114         as a temporary variable.  Remove "orig_t" and all of its uses.
1115
1116 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1117
1118         * fold-const.c (fold): Remove variable "invert".
1119         Move the handling of relational expressions that can be folded
1120         to a constant ...
1121         (fold_relational_const): ... here.
1122         (tree_expr_nonzero_p): New.
1123
1124 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1125
1126         PR c/14635
1127         * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
1128         DEF_GCC_BUILTIN.
1129
1130 2004-03-20  Richard Sandiford  <rsandifo@redhat.com>
1131
1132         * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
1133         (GTFILES): Add $(srcdir)/dojump.h.
1134         (gt-dojump.h): New dependency.
1135         * dojump.c (and_reg, and_test, shift_test): New static variables.
1136         (prefer_and_bit_test): New function.
1137         (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
1138
1139 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1140
1141         * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
1142         expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
1143         reorg.c, tree.h: Fix comment typos.
1144
1145 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1146
1147         * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
1148         c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
1149         cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
1150         haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
1151         sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
1152         vmsdbgout.c: Replace calls via (*targetm.foo) () with
1153         targetm.foo ().
1154
1155 2004-03-19  Ziemowit Laski  <zlaski@apple.com>
1156
1157         * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
1158         vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
1159         always_inline attribute.
1160         * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
1161         Treat expansion as completed even if literal argument is
1162         invalid (so that other expansions are not tried in vain).
1163
1164 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1165
1166         * loop-doloop.c (add_test): Replace GEN_INT (0) with
1167         const0_rtx.
1168
1169 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1170
1171         * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
1172         ...
1173         (fold_abs_const): ... here.
1174
1175 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1176
1177         * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
1178
1179 2004-03-19  Denis Chertykov  <denisc@overta.ru>
1180
1181         PR target/11520
1182         * config/avr/avr.md ("call_insn"): Handle explicit integer
1183         specially.
1184         (call_value_insn): Likewise.
1185
1186 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1187
1188         * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
1189
1190 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1191
1192         * fold-const.c (negate_expr): Move the handling of constants
1193         ...
1194         (fold_negate_const): ... here.
1195
1196 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1197
1198         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
1199         * langhooks.h (struct lang_hooks_for_types): New field hash_types.
1200         * tree.c (debug_no_type_hash): Deleted.
1201         (type_hash_canon): Abort if passed a variant.
1202         Check lang_hooks.types.hash_types.
1203         (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
1204         (build_array_type): Remove unnecessary allocation of pointer type.
1205         (build_complex_type): Properly qualify resulting type.
1206
1207 2004-03-19  Paolo Bonzini  <bonzini@gnu.org>
1208
1209         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
1210
1211 2004-03-19  Richard Sandiford  <rsandifo@redhat.com>
1212
1213         * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
1214         (expand_mult): ...here.
1215         (extract_high_half): New, split out from expand_mult_highpart.
1216         (expand_highpart_optab): Likewise.  Don't clobber target prematurely.
1217         (expand_highpart): Evaluate the cost of a shift/add sequence,
1218         then see if any of the specialized optabs are cheaper.
1219
1220 2004-03-18  Ian Lance Taylor  <ian@wasabisystems.com>
1221
1222         * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
1223
1224 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1225
1226         * convert.c (convert_to_real): Add more math builtins.
1227
1228 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1229
1230         * convert.c (convert_to_real): Reformat using switch stmt.
1231
1232 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
1233
1234         * c-common.c (pointer_int_sum): Do not complain about using
1235         pointers to pointers-to-members.
1236
1237 2004-03-18  Kazu Hirata  <kazu@cs.umass.edu>
1238
1239         * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
1240         have moved to the target hooks structure".
1241
1242 2004-03-18  James E Wilson  <wilson@specifixinc.com>
1243
1244         * config/mips/mips.md (type): Split move into arith and fmove.  Split
1245         hilo into mthilo and mfhilo.  Add trap.  Delete icmp.  Fix all uses.
1246         * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
1247         Likewise.
1248         * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
1249         Likewise.
1250         * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
1251         rm7_fp_quick): Likewise.
1252         * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
1253         rm9k_fquick): Likewise.
1254         * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
1255         Likewise.
1256         (ir_sr70_icmp): Delete.
1257
1258 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1259
1260         * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
1261         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
1262         (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
1263         (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
1264         (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
1265         Protect with proper check.
1266         (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
1267         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
1268         * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
1269         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
1270         * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
1271         * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
1272         not TYPE_FIELDS.
1273         * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
1274
1275 2004-03-18  Mostafa Hagog  <mustafa@il.ibm.com>
1276
1277         * gcse.c (eliminate_partially_redundant_loads): Reject change if
1278         dest is set between beginning and current insn.
1279
1280 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
1281
1282         * c-decl.c (grokdeclarator): Do not complain about redeclaring
1283         visible "static" identifiers "extern" in a local scope.
1284         * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
1285         post-increments/decrements.
1286
1287 2004-03-18  Bob Wilson  <bob.wilson@acm.org>
1288
1289         * config/xtensa/xtensa.c (current_function_arg_words): Delete.
1290         (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
1291         (xtensa_va_start): Remove assignment to current_function_arg_words.
1292
1293 2004-03-18  Richard Sandiford  <rsandifo@redhat.com>
1294
1295         * alias.c (record_set): Detect the case where a register is assigned
1296         a new value that has the same base term as the old one.
1297
1298 2004-03-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1299
1300         * doloop.c: Removed.
1301         * loop-doloop.c: New file.
1302         * Makefile.in (doloop.o): Remove.
1303         (loop-doloop.o): New.
1304         * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
1305         * cfgloopanal.c (get_loop_level): New function.
1306         * loop-iv.c (iv_number_of_iterations): Handle case when loop
1307         is leaved immediatelly.
1308         * loop.c (strength_reduce): Do not call doloop optimization.
1309         * loop.h (LOOP_BCT): Removed.
1310         * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
1311         (rest_of_handle_loop2): Call doloop_optimize_loops.
1312         (rest_of_compilation): Test for optimizations moved to
1313         rest_of_handle_loop2.
1314
1315 2004-03-17  Fariborz Jahanian <fjahanian@apple.com>
1316
1317         * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
1318         for mixed mode.
1319         (rs6000_emit_prologue): Ditto.
1320         (rs6000_emit_epilogue): Ditto.
1321         * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
1322         macro for mixed mode.
1323
1324 2004-03-18  Jan Hubicka  <jh@suse.cz>
1325
1326         * predict.c (propagate_freq): Compute correctly frequency of
1327         EXIT_BLOCK.
1328
1329 2004-03-17  Eric Christopher  <echristo@redhat.com>
1330
1331         * builtins.c (apply_args_size): Use reg_raw_mode.
1332         (apply_result_size): Ditto.
1333
1334 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1335
1336         PR target/14620
1337         * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
1338
1339 2004-03-17  Jakub Jelinek  <jakub@redhat.com>
1340
1341         * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
1342         32-bit builds when defaulting to 32-bit.
1343
1344 2004-03-17  Jan Hubicka  <jh@suse.cz>
1345
1346         * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
1347         array.
1348
1349 2004-03-17  James E Wilson  <wilson@specifixinc.com>
1350
1351         * config/mips/mips.md (zero_extendsidi2): Add length attribute.
1352         (hazard_nop): Change type to nop.
1353         (type): Split arith into arith, shift, slt, clz.  Delete darith.
1354         Fix all uses.  Change arith to multi if more than one insn emitted.
1355         * config/mips/5400.md (ir_vr54_arith): Likewise.
1356         * config/mips/5500.md (ir_vr55_arith): Likewise.
1357         * config/mips/7000.md (rm7_int_other): Likewise.
1358         * config/mips/9000.md (rm9k_int): Likewise.
1359         * config/mips/sr71k.md (ir_sr70_arith): Likewise.
1360
1361 2004-03-17  Joel Brobecker  <brobecker@gnat.com>
1362
1363         * dwarf2out.c (subrange_type_die): Define new variable "subtype"
1364         to hold the subtype tree instead of recomputing it several times.
1365
1366 2004-03-17  Kazu Hirata  <kazu@cs.umass.edu>
1367
1368         * config/mn10300/mn10300.c (notice_update_cc): Don't handle
1369         CC_INVERT.
1370         * config/mn10300/mn10300.md (cc): Remove "invert".
1371
1372 2004-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1373
1374         * builtins.c (integer_valued_real_p): Add builtin rint.
1375         (fold_builtin): Likewise.
1376         * convert.c (convert_to_real): Likewise.
1377
1378         * convert.c (convert_to_real): Fix typos in `long double'
1379         builtins.
1380
1381 2004-03-16  Mark Mitchell  <mark@codesourcery.com>
1382
1383         PR c++/14481
1384         * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
1385         generated COMPOUND_EXPRs.
1386
1387 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1388
1389         * config/h8300/t-rtems (h8300-*-rtems*): New.
1390
1391 2004-03-16  Eric Christopher  <echristo@redhat.com>
1392
1393         * doc/cppopts.texi(fwide-exec-charset): Fix typo.
1394
1395 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
1396
1397         * config/i386/i386-protos.h: Add a prototype for
1398         ix86_reverse_condition.
1399         * config/i386/i386.c (ix86_reverse_condition): New.
1400         * config/i386/i386.h (REVERSE_CONDITION): Use
1401         ix86_reverse_condition.
1402         * config/i386/i386.md: Use ix86_reverse_condition instead of
1403         REVERSE_CONDITION.
1404
1405 2004-03-16  J. Brobecker  <brobecker@gnat.com>
1406
1407         * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
1408
1409 2004-03-16  Nathanael Nerode  <neroden@gcc.gnu.org>
1410
1411         PR bootstrap/12974
1412         * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
1413
1414 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
1415
1416         * c-common.c (c_common_type_for_mode): Build vector types on
1417         demand.
1418         (handle_mode_attribute): Deprecate using the mode attribute
1419         to create vector types.  Fix indentation.
1420         (vector_type_node_list): Remove.
1421         (handle_vector_size_attribute): Create vector types on demand.
1422         Strip a NON_LVALUE_EXPR from the attribute if there is one.
1423         * c-typeck.c (comptypes): Make vector types compatible if they
1424         have the same underlying mode.
1425         (convert_for_assignment): Use comptypes to convert between
1426         vector types.
1427         * tree.c (build_common_tree_nodes_2): Do not create vector types.
1428         * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
1429         vector types.
1430         * tree.h: Remove vector types.
1431         * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
1432         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
1433         (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
1434         V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
1435         * doc/extend.texi (Vector Types): Document how to use the
1436         vector_size attribute to create vectors, rather than mode.
1437
1438         * config/arm/mmintrin.h: Use vector_size attribute, not mode.
1439         * config/i386/emmintrin.h: Likewise.
1440         * config/i386/mmintrin.h: Likewise.
1441         * config/i386/xmmintrin.h: Likewise.
1442         * config/sh/ushmedia.h: Likewise.
1443
1444 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
1445
1446         * config/freebsd-spec.h, config/arc/arc-protos.h,
1447         config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
1448         config/arm/linux-gas.h, config/arm/semi.h,
1449         config/cris/cris-protos.h, config/i386/xm-djgpp.h,
1450         config/ia64/freebsd.h, config/mips/7000.md,
1451         config/mips/9000.md, config/ns32k/ns32k-protos.h,
1452         config/sparc/pbd.h: Update copyright.
1453
1454 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1455
1456         PR target/14577
1457         * config.gcc: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff.
1458
1459 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
1460
1461         * combine.c (combine_simplify_rtx): Remove the "last"
1462         parameter and its documentation.  Adjust recursive calls.
1463         (simplify_logical): Always perform the only simplification
1464         controlled by "last", if the simplified expression is
1465         actually different.
1466         (try_combine): Do not pass the "last" parameter to
1467         combine_simplify_rtx.
1468
1469 2004-03-16  Richard Sandiford  <rsandifo@redhat.com>
1470
1471         PR target/14599
1472         * config/mips/mips.md (UNSPEC_GP): New constant.
1473         * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
1474         an UNSPEC instead of (reg $gp).
1475         (mips16_gp_pseudo_reg): Change accordingly.
1476         (print_operand): Print $gp directly when handling CONST_GP_P.
1477
1478 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
1479
1480         * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
1481         * longlong.h: Make code 68060 clean when compiling for m68060.
1482
1483 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
1484
1485         * config/m68k/m68k.md: Fix constraints for bitfield instructions.
1486         * doc/md.texi: Clarify description of "i" constraint.
1487
1488 2004-03-15  James E Wilson  <wilson@specifixinc.com>
1489
1490         * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
1491         Split store into store, fpstore, fpidxstore.  Fix all uses.
1492         * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
1493         Likewise.
1494         * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
1495         * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
1496         * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
1497         * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
1498         ir_sr70_fstore): Likewise.
1499
1500 2004-03-15  Richard Henderson  <rth@redhat.com>
1501
1502         PR middle-end/14535
1503         * except.c (collect_one_action_chain): Record action for cleanup
1504         outer of exception spec.
1505
1506 2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>
1507
1508         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1509         Fix the check for abort and only do the mmap if we can.
1510
1511 2004-03-15  Eric Botcazou  <ebotcazou@act-europe.fr>
1512
1513         * config/sparc/sparc.h: Rework comments about the code model
1514         in 64-bit environment and the mode 'Pmode'.
1515         * doc/invoke.texi (SPARC options): Rework description of the
1516         different code models supported in 64-bit environment.
1517
1518 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
1519
1520         * defaults.h (REVERSIBLE_CC_MODE): Define.
1521         * jump.c (reversed_comparison_code_parts): Don't check if
1522         REVERSIBLE_CC_MODE is defined.
1523
1524 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
1525
1526         * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
1527         et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
1528         hosthooks.h, params.h, ra-colorize.c, web.c,
1529         config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
1530         config/avr/avr-protos.h, config/avr/avr.md,
1531         config/fr30/fr30-protos.h, config/fr30/fr30.md,
1532         config/h8300/fixunssfsi.c, config/i386/darwin.h,
1533         config/i386/freebsd.h, config/i386/freebsd64.h,
1534         config/ia64/hpux.h, config/ia64/unwind-ia64.c,
1535         config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
1536         config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
1537         config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
1538         config/pa/pa64-regs.h, config/rs6000/aix41.h,
1539         config/rs6000/aix43.h, config/rs6000/host-darwin.c,
1540         config/sparc/aout.h, config/sparc/freebsd.h,
1541         config/sparc/litecoff.h, config/vax/vax-protos.h,
1542         doc/hostconfig.texi, doc/include/gcc-common.texi: Update
1543         copyright.
1544
1545 2004-03-15  Paul Brook  <paul@codesourcery.com>
1546
1547         * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
1548
1549 2004-03-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1550
1551         * c-pretty-print.c (pp_c_semicolon): Fix formatting.
1552         (pp_c_cv_qualifier): Document.
1553         (pp_c_space_for_pointer_operator): Likewise.
1554         (pp_c_integer_constant): Likewise.
1555         (pp_c_identifier): Likewise.
1556         (pp_c_init_declarator): Don't print function body.
1557
1558 2004-03-14  Joseph S. Myers  <jsm@polyomino.org.uk>
1559
1560         * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
1561         doc/install.texi, doc/invoke.texi, doc/makefile.texi,
1562         doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
1563         "gcc", "g++" and "g77" or mark up with appropriate markup.  Adjust
1564         wording and grammar.
1565
1566 2004-03-14  Roger Sayle  <roger@eyesopen.com>
1567
1568         * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
1569         with lang_hooks.foo ().
1570         * builtins.c (expand_builtin_va_arg): Likewise.
1571         * c-common.c (fname_as_string, c_common_truthvalue_conversion,
1572         c_common_type_for_mode, c_common_nodes_and_builtins,
1573         handle_mode_attribute, handle_vector_size_attribute): Likewise.
1574         * c-convert.c (convert): Likewise.
1575         * c-format.c (check_format_types): Likewise.
1576         * c-objc-common.c (c_tree_printer): Likewise.
1577         * c-typeck.c (build_unary_op, build_conditional_expr,
1578         build_binary_op): Likewise.
1579         * calls.c (try_to_integrate, expand_call,
1580         emit_library_call_value_1): Likewise.
1581         * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
1582         Likewise.
1583         * cgraphunit.c (record_call_1, cgraph_analyze_function,
1584         cgraph_expand_function): Likewise.
1585         * convert.c (convert_to_pointer, convert_to_integer): Likewise.
1586         * coverage.c (build_fn_info_type, build_ctr_info_type,
1587         build_gcov_info, create_coverage): Likewise.
1588         * dbxout.c (dbxout_init): Likewise.
1589         * diagnostic.c (diagnostic_report_current_function): Likewise.
1590         * dojump.c (do_jump): Likewise.
1591         * dwarf2out.c (dwarf2_name): Likewise.
1592         * except.c (init_eh): Likewise.
1593         * explow.c (expr_size, int_expr_size): Likewise.
1594         * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
1595         Likewise.
1596         * expr.c (store_expr, store_constructor, safe_from_p,
1597         expand_expr_real, do_store_flag, try_casesi): Likewise.
1598         * function.c (push_function_context_to, pop_function_context_from,
1599         free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
1600         put_var_into_stack, allocate_struct_function, current_function_name):
1601         Likewise.
1602         * integrate.c (copy_decl_for_inlining, expand_inline_function):
1603         Likewise.
1604         * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
1605         lhd_print_error_function): Likewise.
1606         * opts.c (handle_option, decode_options): Likewise.
1607         * passes.c (open_dump_file): Likewise.
1608         * print-tree.c (print_node): Likewise.
1609         * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
1610         expand_decl_cleanup, emit_case_nodes): Likewise.
1611         * stor-layout.c (variable_size): Likewise.
1612         * toplev.c (announce_function, wrapup_global_declarations,
1613         check_global_declarations, compile_file, default_tree_printer,
1614         process_options, lang_dependent_init, finalize): Likewise.
1615         * tree-dump.c (dequeue_and_dump): Likewise.
1616         * tree-inline.c (remap_decl, remap_block, copy_body_r,
1617         initialize_inlined_parameters, declare_return_variable,
1618         inlinable_function_p, expand_call_inline, optimize_inline_calls,
1619         walk_tree, copy_tree_r): Likewise.
1620         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1621         * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
1622         unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
1623         variably_modified_type_p, dump_tree_statistics): Likewise.
1624         * varasm.c (assemble_variable, compare_constant, copy_constant,
1625         force_const_mem, compute_reloc_for_constant, output_constant,
1626         output_addressed_constants, initializer_constant_valid_p): Likewise.
1627
1628 2004-03-14  Kelley Cook  <kcook@gcc.gnu.org>
1629
1630         * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
1631
1632 2004-03-14  Andreas Tobler  <a.tobler@schweiz.ch>
1633
1634         * doc/install.texi: Reflect autoconf and automake version for
1635         libffi. Update autoconf version to 2.59.
1636
1637 2004-03-13  Roger Sayle  <roger@eyesopen.com>
1638
1639         * fold-const.c (negate_expr, operand_equal_for_comparison_p,
1640         optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
1641         make_range, build_range_check, fold_range_test, unextend,
1642         constant_boolean_node, fold_binary_op_with_conditional_arg,
1643         fold_truthop, fold_mathfn_compare, fold_inf_compare,
1644         fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
1645         with lang_hooks.foo ().
1646
1647 2004-03-14  Richard Earnshaw  <rearnsha@arm.com>
1648
1649         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
1650
1651 2004-03-13  Dara Hazeghi  <dhazeghi@yahoo.com>
1652
1653         * doc/install.texi: Note status of -fnew-ra.
1654
1655 2004-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1656
1657         PR middle-end/14470
1658         * expr.c (store_expr): Call emit_queue before generating the move
1659         from the temporary to the original target.  Protect the temporary
1660         from emit_queue.
1661
1662 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
1663
1664         PR target/14533
1665         * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
1666         other than UNSPEC_GOTOFF.
1667
1668 2004-03-13  Richard Earnshaw  <rearnsha@arm.com>
1669
1670         * arm.c (arm_legitimate_address_p): New argument, OUTER.  Pass through
1671         to arm_legitimate_index_p.  Update all callers with SET as default
1672         value.
1673         (arm_legitimate_index_p): New argument, OUTER.  Restrict the index
1674         range if OUTER is a sign-extend operation on QImode.  Correctly
1675         reject shift operations on sign-extended QImode addresses.
1676         (bad_signed_byte_operand): Delete.
1677         (arm_extendqisi_mem_op): New function.
1678         * arm.h (EXTRA_CONSTRAINT_ARM): Delete.  Replace with...
1679         (EXTRA_CONSTRAINT_STR_ARM): ... this.  Handle extended address
1680         constraints.
1681         (CONSTRAINT_LEN): New.
1682         (EXTRA_CONSTRAINT): Delete.  Replace with...
1683         (EXTRA_CONSTRAINT_STR): ... this.
1684         (PREDICATE_CODES): Remove bad_signed_byte_operand.
1685         * arm.md (extendqihi_insn): Use new constraint Uq.  Rework.  Length
1686         is now always default.
1687         (define_splits for bad sign-extend loads): Delete.
1688         (arm_extendqisi, arm_extendqisi_v5): Likewise.
1689         * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
1690         Rework 'U' constraint to 'Uv'.
1691         * arm-protos.h: Remove bad_signed_byte_operand.  Add
1692         arm_extendqisi_mem_op.
1693         * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
1694         Add Uq constraint.
1695
1696 2004-03-13  Alan Modra  <amodra@bigpond.net.au>
1697
1698         * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
1699         with targetm version.
1700
1701         PR target/14567
1702         * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
1703         (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
1704         * config/rs6000/rs6000.c (rs6000_arg_size): New function.
1705         Update all users of RS6000_ARG_SIZE.
1706         (function_arg_advance): Count fregno using mode size.
1707         (function_arg): Handle long double split over regs and memory.
1708         (function_arg_partial_nregs): Likewise.
1709         (rs6000_va_arg): Repackage complex args.
1710
1711 2004-03-13  Dean Ferreyra <dferreyra@igc.org>
1712
1713         PR target/14047
1714         * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
1715         (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
1716         * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
1717
1718 2004-03-12  Jakub Jelinek  <jakub@redhat.com>
1719
1720         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
1721         prototype.
1722         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
1723         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1724
1725 2003-03-12  Andrew Pinski  <apinski@apple.com>
1726
1727         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1728         Use ret instead of result. Use addr instead of base.
1729
1730 2004-03-12  David Edelsohn  <edelsohn@gnu.org>
1731
1732         * doc/install.texi (*-ibm-aix*): Document assembler and achiver
1733         fixes required by libstdc++ and update installation instructions
1734         for libstdc++.a.
1735
1736 2004-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
1737
1738         * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
1739         leading '@' on fastcall symbols before stripping suffix.
1740
1741 2004-03-12  Roger Sayle  <roger@eyesopen.com>
1742
1743         * combine.c (unmentioned_reg_p): New function to check whether an
1744         expression is a "specialization" of another, i.e. that there are
1745         no registers or memory references mentioned in the first that don't
1746         appear in the second.
1747         (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
1748         (combine_instructions): Also try combining instructions using the
1749         REG_EQUAL note from a preceding log-linked instruction.
1750
1751 2004-03-12  Roger Sayle  <roger@eyesopen.com>
1752
1753         * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
1754
1755 2004-03-12  Matt Austern  <austern@apple.com>
1756
1757         * target.h (struct gcc_target): New target hook, unwind_label.
1758         * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
1759         * output.h (default_emit_unwind_label): New function.
1760         * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
1761         (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
1762         (TARGET_SUPPORTS_HIDDEN): New target macro.
1763         * dwarf2out.c (struct dw_fde_struct): Add field for function decl
1764         that corresponds to this FDE.
1765         (FRAME_BEGIN_LABEL): Allow target to override default label.
1766         (output_call_frame_info): If FDEs are linknonce, then use extra
1767         indirection for FDE encoding, output a label for each FDE, and
1768         output an empty label for each function without an FDE.
1769         (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
1770         * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
1771         decls with DECL_ONE_ONLY set, if that macro is defined.
1772         (make_decl_one_only): Don't use DECL_COMMON if we're compiling
1773         for a SUPPORTS_ONE_ONLY target.
1774         * config/darwin-protos.h (darwin_unique_section): Declare.
1775         (darwin_asm_named_section): Likewise.
1776         (darwin_section_type_flags): Likewise.
1777         (darwin_non_lazy_pcrel): Likewise.
1778         (darwin_emit_unwind_label): Likewise.
1779         (darwin_make_decl_one_only): Likewise.
1780         * config/darwin.c (machopic_finish): Get rid of tweak that
1781         eliminate stubs for symbols that are defined.
1782         (darwin_encode_section_info): Don't treat weak functions as defined.
1783         (darwin_make_decl_one_only): Define.
1784         (darwin_asm_named_section): Likewise.
1785         (darwin_section_type_flags): Likewise.
1786         (darwin_unique_section): Likewise.
1787         (darwin_emit_unwind_label): Likewise.
1788         (darwin_non_lazy_pcrel): Likewise.
1789         (darwin_asm_output_dwarf_delta): Difference between two labels is
1790         local only if both labels are local.
1791         * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
1792         (ASM_MAKE_LABEL_LINKONCE): Likewise.
1793         (TARGET_SUPPORTS_HIDDEN): Likewise.
1794         (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
1795         (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
1796         (FRAME_BEGIN_LABEL): Likewise.
1797         (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
1798         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1799         (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
1800         (TARGET_ASM_UNIQUE_SECTION): Define.
1801         (EH_FRAME_SECTION_NAME): Define.
1802         (EH_FRAME_SECTION_ATTR): Likewise.
1803         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1804         (TARGET_ASM_NAMED_SECTION): Likewise.
1805         (TARGET_SECTION_TYPE_FLAGS): Likewise.
1806         * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
1807         TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
1808         TARGET_ASM_EMIT_UNWIND_LABEL.
1809
1810 2004-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1811
1812         * builtins.c (expand_builtin_mathfn): Add pow10* to the
1813         existing exp10* case.
1814         (expand_builtin): Likewise.
1815
1816 2004-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1817
1818         * doc/tm.texi (registers) <Values in Registers>: Add
1819         entry for REGMODE_NATURAL_SIZE.
1820
1821 2004-03-12  Richard Henderson  <rth@redhat.com>
1822
1823         PR target/14547
1824         * target.h (struct gcc_target): Move calls substructure before
1825         booleans.  Add split_complex_arg.
1826         * function.c (assign_parms, split_complex_args): Use it.
1827         * calls.c (expand_call): Likewise.
1828         (split_complex_values): Likewise.  Check for splittable types
1829         before allocating memory.
1830         (split_complex_types): Likewise.
1831         * system.h (SPLIT_COMPLEX_ARGS): Poison.
1832         * expr.h (SPLIT_COMPLEX_ARGS): Remove.
1833         * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
1834         * config/alpha/alpha.c (alpha_split_complex_arg): New.
1835         (TARGET_SPLIT_COMPLEX_ARG): New.
1836         * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
1837         * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
1838         (rs6000_override_options): Zap it for non-AIX.
1839         (rs6000_function_value): Use targetm.calls.split_complex_arg.
1840         * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
1841         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
1842         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
1843         * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
1844         SPLIT_COMPLEX_ARGS entry.
1845
1846 2004-03-11  Richard Henderson  <rth@redhat.com>
1847
1848         * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
1849         (alpha_lookup_xfloating_lib_func): Use them, return rtx.
1850         (alpha_emit_xfloating_arith): Update to match.
1851         (alpha_emit_xfloating_compare): Likewise.
1852         (alpha_emit_xfloating_cvt): Likewise.
1853         (alpha_emit_xfloating_libcall): Take already built symbol,
1854         mark call const.
1855         * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
1856         op1 in a register.
1857
1858 2004-03-11  Richard Henderson  <rth@redhat.com>
1859
1860         PR target/14539
1861         * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
1862
1863         * simplify-rtx.c (simplify_relational_operation): Fix typo.
1864
1865 2004-03-11  Richard Henderson  <rth@redhat.com>
1866
1867         PR middle-end/14477
1868         * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
1869
1870 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
1871
1872         PR target/14262
1873         * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
1874         defined, pass small BLKmode values in registers in the low-order part.
1875
1876 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
1877
1878         * combine.c (if_then_else_cond): Check for NULL return value of
1879         simplify_gen_subreg.
1880
1881 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
1882
1883         PR target/14496
1884         * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
1885         TARGET_SINGLE_FLOAT.
1886
1887 2004-03-11  Steve Ellcey  <sje@cup.hp.com>
1888
1889         * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
1890         * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
1891         * config/ia64/ia64.c (ia64_init_libfuncs): New.
1892         (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
1893
1894 2004-03-11  Roger Sayle  <roger@eyesopen.com>
1895
1896         * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
1897         -((int)X>>C) where C is an integer constant one bit less than the
1898         size of X into (unsigned)X>>C.  Similarly for unsigned->signed.
1899         (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
1900
1901         * simplify-rtx.c (simplify_unary_operation): Also implement the
1902         above transformations at the RTL level.
1903
1904 2004-03-11  Alan Modra  <amodra@bigpond.net.au>
1905
1906         * real.c (encode_ibm_extended): Do round low word.
1907
1908 2004-03-11  Ben Elliston  <bje@wasabisystems.com>
1909
1910         * config/arm/arm.md (is_xscale): Comment this attribute and move
1911         it a bit further up in the file, closer to related attributes.
1912
1913 2004-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
1914
1915         * config/host-solaris.c (sol_gt_pch_use_address): Add
1916         missing terminating marker to comment.
1917
1918 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
1919
1920         * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
1921         (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
1922         (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
1923         (*movsf_mips16, *movdf_mips16):  Name unnamed patterns.  Use
1924         move_operand as source predicate in all cases.
1925         (*movdi_32bit): Renamed from movdi_internal.  Remove 'F' constraint.
1926         Test reg_or_0_operand.  Use move_operand as source predicate.
1927         (*movdi_64bit): Renamed from movdi_internal2.  Test reg_or_0_operand.
1928         (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
1929         (*movsi_internal): Renamed from movsi_internal.  Test reg_or_0_operand.
1930         (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
1931         (*movhi_internal): Renamed from movhi_internal.  Test reg_or_0_operand.
1932         Use move_operand as source predicate.  Remove 'K' constraint.
1933         (*movqi_internal): Likewise movqi_internal.
1934         (*movsf_hardfloat): Renamed from movsf_internal1.  Test
1935         reg_or_0_operand.  Use move_operand as source predicate.
1936         (*movsf_softfloat): Likewise movsf_internal2.
1937         (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
1938         (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
1939         (*movdf_softfloat): Likewise movdf_internal2.
1940         * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
1941         for DImode if !TARGET_64BIT.
1942         (mips_legitimize_move): Simplify accordingly.
1943
1944 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
1945
1946         PR/14362
1947         * var-tracking.c (struct variable_def): Added field refcount.
1948         (variable_htab_free): Decrease the refcount and delete variable
1949         only if there are no more references.
1950         (unshare_variable): New function.
1951         (vars_copy_1): Increase refcount instead of copying the variable.
1952         (variable_union): Share the variables where possible, unshare
1953         the variables if needed.
1954         (variable_different_p): Return false if var1 and var2 are
1955         the same structure.
1956         (variable_was_changed): Init the refcount of new variable.
1957         (set_frame_base_location): Unshare variable if needed.
1958         (set_variable_part): Init the refcount of new variable.
1959         Unshare the variables if needed.
1960         (delete_variable_part): Unshare the variables if needed.
1961         (emit_notes_for_differences_1): Init the refcount of new variable.
1962         (vt_add_function_parameters): Do not add function parameters to
1963         IN set of ENTRY_BLOCK_PTR because it is unused anyway.
1964         (vt_initialize): Do not add frame_base_decl to IN set of
1965         ENTRY_BLOCK_PTR because it is unused anyway.
1966
1967 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
1968
1969         * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
1970         (vars_copy): Likewise.
1971         (variable_union): Likewise.
1972         (set_variable_part): Likewise.
1973         (delete_variable_part): Likewise.
1974
1975 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
1976
1977         * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
1978         ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
1979         config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
1980         config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
1981         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
1982         config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
1983         config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1984         config/pdp11/pdp11.h, config/rs6000/rs6000.c,
1985         config/stormy16/stormy16.c: Fix comment typos and formatting.
1986
1987 2004-03-11  Nathanael Nerode  <neroden@gcc.gnu.org>
1988
1989         * configure: Regenerate, since I forgot to while committing Paolo's
1990         changes.
1991
1992 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
1993
1994         PR ada/14131
1995         Move language detection to the top level.
1996         * configure.ac: Remove code to detect languages,
1997         it now lives exclusively in the top level.
1998         * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
1999         top level, renamed to ACX_PROG_GNAT.
2000
2001 2004-03-10  Richard Henderson  <rth@redhat.com>
2002
2003         * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
2004         extra arguments.
2005         * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
2006         and host_xmake_file fragments.
2007         * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
2008         (gt_pch_restore): Similarly for gt_pch_use_address.
2009         (default_gt_pch_get_address): New.
2010         (mmap_gt_pch_get_address): Split out of gt_pch_save.
2011         (default_gt_pch_use_address): Split out of gt_pch_restore.
2012         (mmap_gt_pch_use_address): Likewise.
2013         * hooks.c (hook_voidp_size_t_null): Remove.
2014         (hook_bool_voidp_size_t_false): Remove.
2015         * hooks.h: Likewise.
2016         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
2017         default_ or mmap_ definitions.
2018         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
2019         * hosthooks.h (struct host_hooks): Update gt_pch_get_address
2020         and gt_pch_use_address.
2021         * config/host-linux.c, config/host-solaris.c: New files.
2022         * config/x-linux, config/x-solaris: New files.
2023         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
2024         Update for changed definition.
2025         (darwin_rs6000_gt_pch_use_address): Likewise.
2026         * doc/hostconfig.texi: Update docs.
2027
2028 2004-03-10  Richard Henderson  <rth@redhat.com>
2029
2030         PR c/14517
2031         * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
2032         except for pedantic c90 mode.
2033
2034 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
2035
2036         * configure.ac: Bump AC_PREREQ to 2.59.
2037         * configure: Regenerate.
2038
2039 2004-03-10  Uros Bizjak  <uros@kss-loka.si>
2040
2041         * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
2042         (exp10_optab, exp2_optab): Define corresponding macros.
2043         * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
2044         * genopinit.c (optabs): Implement exp10_optab and exp2_optab
2045         using exp10?f2 and exp2?f2 patterns.
2046         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
2047         using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
2048         (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
2049         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2050
2051         * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
2052         exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
2053         exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
2054
2055 2004-03-10  Anthony Green  <green@redhat.com>
2056
2057         * doc/invoke.texi (ARM Options): Fix -mpfu typo.
2058
2059 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
2060
2061         * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
2062         (TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
2063         __LONGDOUBLE128.
2064         * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
2065         TARGET_OS_AIX_CPP_BUILTINS.
2066         * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
2067         * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
2068         * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
2069         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
2070         previous change.
2071
2072 2004-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2073
2074         * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
2075
2076 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
2077
2078         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2079         __LONGDOUBLE128 on AIX.
2080
2081 2004-03-10  Andrew Haley  <aph@redhat.com>
2082
2083         PR optimization/14381
2084         * function.c (expand_function_end): Emit a blockage insn before
2085         the epilogue when -fnon-call-exceptions is used.
2086
2087         * except.c (expand_start_all_catch): Make comment more accurate.
2088
2089 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
2090
2091         PR target/14480
2092         * config/rs6000/t-rtems: Add missing file on branch.
2093
2094 2004-03-10  Ulrich Weigand  <uweigand@de.ibm.com>
2095
2096         * dbxout.c (dbxout_symbol_location): Do not output references
2097         to optimized-out constant pool symbols.
2098
2099 2004-03-10  Andreas Schwab  <schwab@suse.de>
2100
2101         * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
2102         twon34_r.
2103
2104 2004-03-09  James E Wilson  <wilson@specifixinc.com>
2105
2106         * alias.c (alias_sets_might_conflict_p): New.
2107         * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
2108         * common.opt (Wstrict-aliasing=): New.
2109         * flags.h (warn_strict_aliasing): Change type to int.
2110         * opts.c (warn_strict_aliasing): Change type to int.
2111         (common_handle_option): Handle OPT_Wstrict_aliasing_.
2112         * tree.h (alias_sets_might_conflict_p): Declare it.
2113         * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
2114
2115 2004-03-10  Roman Zippel  <zippel@linux-m68k.org>
2116
2117         PR bootstrap/12371
2118         * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
2119         (CALL_USED_REGISTERS): Likewise.
2120         (REG_CLASS_CONTENTS): Likewise.
2121         (REG_ALLOC_ORDER): New.
2122         (REGNO_REG_CLASS): Use regno_reg_class.
2123         * config/m68k/m68k.c: Add regno_reg_class array.
2124
2125 2004-03-09  Steve Ellcey  <sje@cup.hp.com>
2126
2127         * config/ia64/ia64.md (divsi3): Fix algorithm.
2128           (udivsi3): Ditto.
2129           (setf_exp_xf): Remove '*' from name.
2130         * testsuite/gcc.dg/20040309-1.c: New test.
2131
2132 2004-03-09  Ian Lance Taylor  <ian@wasabisystems.com>
2133
2134         * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
2135         * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
2136         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
2137         * config/sparc/sparc.c (sparc_aout_select_section): Remove.
2138         (sparc_aout_select_rtx_section): Don't check
2139         SUNOS4_SHARED_LIBRARIES.
2140         * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
2141
2142 2004-03-10  Hans-Peter Nilsson  <hp@axis.com>
2143
2144         PR other/14474
2145         * doc/md.texi (Pattern Ordering, Dependent Patterns)
2146         (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
2147         INTERNALS".
2148
2149 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
2150
2151         * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
2152         (LIBGCC_SPEC): Update to match.
2153
2154 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
2155
2156         * c-decl.c (last_function_parms, last_function_parm_tags)
2157         (last_function_parm_others, current_function_parms)
2158         (current_function_parm_tags, current_function_parm_others):
2159         Delete.
2160         (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
2161         New macros.
2162         (grokdeclarator): For function definitions, save the arg-info
2163         block from the declarator in DECL_ARGUMENTS.
2164         (grokparms): Do not write to last_function_parm*.  Use ARG_INFO_*
2165         macros to operate on arg-info block.  Can assume ARG_INFO_PARMS
2166         contains only PARM_DECLs.  Improve diagnostics.
2167         (get_parm_info): Use ARG_INFO_* macros.  Improve comments and
2168         diagnostics.  Disable some expensive checks if not ENABLE_CHECKING.
2169         (store_parm_decls_newstyle): Take the function to operate on,
2170         and an arg-info block, as arguments; don't get anything from
2171         current_function_* globals.
2172         (store_parm_decls_oldstyle): Likewise.
2173         (store_parm_decls): Pass fndecl and its arg-info block down to
2174         store_parm_decls_newstyle/oldstyle.  Send functions with empty
2175         argument lists through store_parm_decls_newstyle to reduce
2176         overhead.
2177         (pushdecl): Comment on the problems with the call to copy_node.
2178         Clear DECL_ARGUMENTS of the old node after copying it, if it
2179         is an arg-info block instead of a chain of decls.
2180         (start_function): Do not manipulate current_function_parm* or
2181         last_function_parm*.
2182
2183 2004-03-09  Roger Sayle  <roger@eyesopen.com>
2184             Andrew Pinski  <pinskia@physics.uc.edu>
2185
2186         * ifcvt.c (noce_try_sign_mask): New function to transform
2187         "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
2188         (noce_process_if_block): Call noce_try_sign_mask.
2189
2190 2004-03-09  Andrew Pinski  <apinski@apple.com>
2191
2192         * c-typeck.c (tagged_types_tu_compatible_p):
2193         Fix typo.
2194
2195 2004-03-09  Roger Sayle  <roger@eyesopen.com>
2196
2197         * simplify-rtx.c (simplify_const_relational_operation): New function
2198         renamed from simplify_relational_operation.
2199         (simplify_relational_operation): Change prototype to accept an
2200         additional mode argument.  Call simplify_const_relational_operation.
2201         (simplify_gen_relational): Update simplify_relational_operation call.
2202         (simplify_ternary_operation): Update simplify_relational_operation
2203         subroutine call to use simplify_const_relational_operation instead.
2204
2205         * rtl.h (simplify_const_relational_operation): Prototype here.
2206         (simplify_relational_operation): Add addtional mode argument.
2207
2208         * combine.c (combine_simplify_rtx): Update calls to
2209         simplify_relational_operation.
2210         (simplify_set): Likewise.
2211         (gen_binary): Likewise.
2212         * cse.c (fold_rtx): Likewise.
2213         * dojump.c (compare_from_rtx): Likewise.
2214         (do_compare_rtx_and_jump): Likewise.
2215         * integrate.c (subst_constants): Likewise.
2216         * unroll.c (simplify_cmp_and_jump_insns): Likewise.
2217
2218 2004-03-09  Kazu Hirata  <kazu@cs.umass.edu>
2219
2220         * config/m32r/m32r.md: Remove all define_peephole's.
2221
2222 2004-03-09  Alan Modra  <amodra@bigpond.net.au>
2223
2224         * config/rs6000/rs6000.md: Remove trailing whitespace.
2225
2226 2004-03-08  Eric Christopher  <echristo@redhat.com>
2227
2228         * Makefile.in (site.exp): Add libiconv variable definition.
2229
2230 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
2231
2232         * configure: Regenerate for config/accross.m4 correction.
2233
2234 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
2235
2236         PR target/14480
2237         * config/rs6000/t-rtems: Add missing file on branch.
2238
2239 2004-03-08  Roger Sayle  <roger@eyesopen.com>
2240
2241         PR middle-end/14289
2242         * c-typeck.c (c_mark_addressable): A register variable should
2243         be considered global if its not automatic, i.e. TREE_PUBLIC,
2244         TREE_STATIC or DECL_EXTERNAL.
2245         * function.c (put_var_into_stack): Call abort when placing a
2246         hard register into the stack, if x_parm_reg_stack_loc is NULL.
2247
2248 2004-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
2249
2250         * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
2251         ("*extendqisi2_short_displ"): Likewise.
2252
2253 2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
2254
2255         * config/pdp11/pdp11.c (comparison_operator_index): Remove.
2256         (comp_operator): Likewise.
2257         * config/pdp11/pdp11-protos.h: Remove corresponding
2258         prototypes.
2259
2260 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
2261
2262         * expr.c (highest_pow2_factor_for_type): Rename into
2263         highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
2264         TYPE_ALIGN when the target is a COMPONENT_REF.
2265         (expand_assignment): Ajust call to highest_pow2_factor_for_type.
2266
2267 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
2268
2269         * config/rs6000/rs6000.c: Formatting fix.
2270         (legitimate_offset_address_p): Correct offset range check.
2271
2272         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
2273         -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
2274         and MASK_STRING.
2275
2276 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
2277
2278         * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
2279         for little endian.
2280         ("ashrdi3_no_power"): Disable for little endian.
2281         (ashrdi3): Same.
2282
2283 2004-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2284
2285         * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
2286         builtins.
2287
2288 2004-03-08  Hans-Peter Nilsson  <hp@axis.com>
2289
2290         PR target/14471
2291         * configure.ac (Target-specific assembler checks) <cris-*-*>: New
2292         case, checking for -no-mul-bug-abort option.
2293         * configure, config.in: Regenerate.
2294         * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
2295         and -mno-mul-bug-workaround.
2296         * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
2297         ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
2298         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
2299         Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
2300         * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
2301         sure mulu.d is not last on cache-line.
2302         * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
2303         into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
2304         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
2305         (TARGET_SWITCHES): New options -mmul-bug-workaround and
2306         -mno-mul-bug-workaround.
2307         (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
2308         (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
2309         * config/cris/cris.c (cris_operand_extend_operator): Clarify
2310         relation to MULT in head comment.
2311         (cris_op_str): Abort for MULT.
2312         (cris_print_operand) <case '!'>: New case.
2313
2314 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
2315
2316         PR debug/11983
2317         * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
2318         dw_val_class_vec.  Replace use throughout file.
2319         (dw_float_const): Delete.
2320         (dw_vec_const): New.
2321         (dw_val_struct_union): Rename val_float to val_vec.  Replace use
2322         throughout file.
2323         (add_AT_vec): Rename from add_AT_float.  Add elt_size param.
2324         (same_dw_val_p): Adjust vec comparison.  Use memcmp.
2325         (size_of_die): Adjust dw_val_class_vec sizing.
2326         (output_die): Output dw_val_class_vec.
2327         (insert_int, extract_int, insert_float): New functions.
2328         (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
2329         Handle CONST_VECTOR.
2330         (add_location_or_const_value_attribute): Handle CONST_VECTOR.
2331
2332 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
2333
2334         * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
2335         AltiVec abi cannot co-exist.
2336
2337         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
2338
2339 2004-03-07  Jan Hubicka  <jh@suse.cz>
2340
2341         * except.c (emit_to_new_bb_before):  Break fallthru edges.
2342
2343 2004-03-07  Stephane Carrez  <stcarrez@nerim.fr>
2344
2345         * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
2346         ("*lshrsi3"): Also accept an immediate for 68HC12.
2347         ("*ashrsi3_const"): Likewise.
2348         ("*ashrsi3"): Likewise.
2349         ("*ashlsi3_const"): Likewise.
2350         ("*ashlsi3"): Likewise.
2351         ("cmphi_1_hc12"): Compare two hard register by pushing them and
2352         comparing with a pop; don't use a split for that.
2353         ("cmphi split"): Disable compare split for 68HC12.
2354
2355         * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
2356         the status operands if they have side effects.
2357
2358 2004-03-07  Kazu Hirata  <kazu@cs.umass.edu>
2359
2360         * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
2361         definition.
2362         * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
2363         config/h8300/h8300.h, config/ia64/ia64.h,
2364         config/mcore/mcore.h, config/mmix/mmix.h,
2365         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
2366         config/stormy16/stormy16.h, config/v850/v850.h,
2367         config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
2368         * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
2369         definition.
2370
2371 2004-03-07  Roger Sayle  <roger@eyesopen.com>
2372
2373         * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
2374         <XOR_EXPR>: Fold x ^ x as zero.
2375         <AND_EXPR>: Fold x & x as x.
2376
2377 2004-03-07  Roger Sayle  <roger@eyesopen.com>
2378
2379         * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
2380         "foo++ == const" into "++foo == const+incr".
2381
2382 2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
2383
2384         * config/mips/mips.c (mips_in_small_data_p): Return false if
2385         TARGET_ABICALLS.
2386
2387 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
2388
2389         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
2390         the stack register.
2391         (expand_prologue): Don't make an interrupt or a trap handler a far
2392         symbol.
2393         (m68hc11_initial_elimination_offset): Likewise.
2394
2395 2004-03-06  Richard Henderson  <rth@redhat.com>
2396
2397         * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
2398
2399 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
2400
2401         * config/ns32k/ns32k-protos.h: Add a prototype for
2402         ns32k_notice_update_cc.
2403         * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
2404         * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
2405         ns32k_notice_update_cc.
2406
2407 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
2408
2409         * config/s390/s390.md ("load_multiple", "*load_multiple_di",
2410         "*load_multiple_si"): Allow only if reload_completed.
2411         ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
2412         Likewise.
2413
2414 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
2415
2416         * config/vax/vax-protos.h: Add a prototype for
2417         vax_notice_update_cc.
2418         * config/vax/vax.c (vax_notice_update_cc): New.
2419         * config/vax/vax.h (NOTICE_UPDATE_CC): Call
2420         vax_notice_update_cc.
2421
2422 2004-03-06  David Edelsohn  <edelsohn@gnu.org>
2423
2424         * collect2.c (main): Only export initfunc and finifunc if
2425         LD_INIT_SWITCH not defined.
2426         (scan_prog_file): Only export constructors and destructors if
2427         LD_INIT_SWITCH not defined.  Only export symbols not found in
2428         shared objects.
2429
2430 2004-03-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2431
2432         * pa.md (icacheflush): Reorder operands to make match_scratch operand
2433         last.
2434         * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
2435         from calls to gen_icacheflush.
2436
2437 2004-03-06  Richard Henderson  <rth@redhat.com>
2438
2439         * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
2440         (TARGET_LONG_DOUBLE_128): New.
2441         (TARGET_SWITCHES): Add long-double-{128,64}.
2442         (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
2443         (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
2444         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
2445         (WIDEST_HARDWARE_FP_SIZE): New.
2446         (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
2447         * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
2448         if TARGET_VAX_FLOAT.
2449         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
2450         (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
2451
2452 2004-03-06  Richard Henderson  <rth@redhat.com>
2453
2454         * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
2455         botched rtx class conversion.
2456
2457 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2458
2459         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
2460         BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
2461
2462         * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
2463         macros.
2464         * fold-const.c (fold_mathfn_compare, fold): Likewise.
2465
2466 2004-03-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
2467
2468         PR target/14343
2469         * config/i386/i386.md (movv2di_internal): Conditionalize on
2470         TARGET_SSE, not TARGET_SSE2.
2471
2472 2004-03-05  Chris Demetriou  <cgd@broadcom.com>
2473
2474         * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
2475         duplicated line.
2476
2477 2004-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2478
2479         * builtins.c: Consistently use logN not log* in comments.
2480
2481 2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>
2482
2483         * rtl.h (mem_expr_equal_p): Function prototype added.
2484         * cfgcleanup.c (merge_memattrs): New function.
2485         (flow_find_cross_jump): Call merge_memattrs for matching insns.
2486         * emit-rtl.c (mem_expr_equal_p): New function.
2487
2488 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
2489
2490         * objc/objc-act.c (synth_module_prologue): Const-qualify
2491         objc_selector type if using the GNU runtime; fix generated
2492         signatures for objc_msg_lookup and objc_msg_lookup_super
2493         to match what GNU ObjC headers provide; reformat and clean up.
2494         (synth_self_and_ucmd_args): Use previously constructed (and
2495         hence possibly const-qualified) objc_selector type.
2496
2497 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
2498
2499         * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
2500
2501 2004-03-05  Jason Merrill  <jason@redhat.com>
2502
2503         * tree.h (TYPE_HASH): Use TYPE_UID.
2504         (TREE_HASH): New macro with old definition of TYPE_HASH.
2505         * tree.c (build_type_attribute_variant): Use iterative_hash_object.
2506         (build_array_type, build_function_type): Likewise.
2507         (build_method_type_directly): Likewise.
2508         (build_offset_type, build_complex_type): Likewise.
2509         (type_hash_list, attribute_hash_list): Likewise. Now static.
2510         * except.c: s/TYPE_HASH/TREE_HASH/.
2511
2512 2004-03-05  Bob Wilson  <bob.wilson@acm.org>
2513
2514         * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
2515         (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
2516         __va_ndx by 2 words when referencing an argument on the stack.
2517         (xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
2518         words when an arg on the stack is first seen.
2519
2520 2004-03-05  Paul Brook  <paul@codesourcery.com>
2521
2522         * arm.h (ARM_FLAG_VFP): Remove.
2523         (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
2524         * netbsd-elf.h (ARM_FLAG_VFP): Remove.
2525
2526 2004-03-05  Paul Brook  <paul@codesourcery.com>
2527
2528         * function.c (assign_parms): Include pretend alignment offset.
2529
2530 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2531
2532         * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
2533         FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
2534
2535 2004-03-05  Ian Lance Taylor  <ian@wasabisystems.com>
2536
2537         * configure.ac: When passing --enable-languages to subdir
2538         configure when host != build, make sure we don't pass an empty
2539         value.
2540         * configure: Regenerate.
2541
2542 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
2543
2544         PR 13577
2545         * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
2546         options.
2547
2548 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
2549
2550         * simplify-rtx.c (simplify_relational_operation): If
2551         flag_wrapv is set, do not move terms between the two
2552         side of a relational operator.
2553
2554 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
2555
2556         * rtlanal.c: Include target.h and output.h
2557         (rtx_cost, address_cost, default_address_cost): Move from...
2558         * cse.c (rtx_cost, address_cost, default_address_cost):
2559         ... this file.
2560         * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
2561         * Makefile.in: Adjust dependencies.
2562
2563 2004-03-05  Paolo Bonzini <bonzini@gnu.org>
2564
2565         * cse.c (cse_end_of_basic_block): Make static.
2566         * local-alloc.c (function_invariant_p): Move to
2567         reload1.c.
2568         * loop.c (libcall_other_reg, record_excess_regs):
2569         Make static.
2570         * reload1.c (function_invariant_p): Moved here
2571         from local-alloc.c, made static.
2572         * rtl.h (cse_end_of_basic_block, function_invariant_p,
2573         libcall_other_reg, record_excess_regs): Remove
2574         declarations.
2575
2576 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
2577
2578         * config/m32r/m32r.c (signed_comparison_operator): Add a
2579         missing parenthesis.
2580
2581 2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
2582
2583         * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
2584         going to call mmap again.  Read the file into the right place.
2585         Give a fatal error if we have to relocate.
2586
2587 2004-03-04  Bob Wilson  <bob.wilson@acm.org>
2588
2589         * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
2590         (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
2591
2592 2004-03-05  Hans-Peter Nilsson  <hp@axis.com>
2593
2594         PR other/14354
2595         * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
2596         round the same.  When rounding, clear bits that would cause a
2597         second rounding in pack_d.
2598         (_fpmul_parts): Ditto.  Remove #if 0:d code.
2599
2600 2004-03-04  Ziemowit Laski  <zlaski@apple.com>
2601
2602         PR c++/14425, c++/14426
2603         * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
2604         vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
2605         Change C++ definitions to accept a 'const int' argument;
2606         the prototypes already do.
2607         * config/rs6000/rs6000.c (rs6000_common_init_builtins):
2608         Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
2609         v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
2610         v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
2611         v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
2612         v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
2613         end in ..._int; change them to accept an int instead of a char
2614         as the last parameter.
2615
2616 2004-03-04  Phil Edwards  <phil@codesourcery.com>
2617
2618         * genmultilib:  Change '=' to '-' when translating option names
2619         to directory names.
2620
2621 2004-03-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2622
2623         * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
2624         stack slot for temp used for result of BLKmode but in integral mode.
2625
2626 2004-03-04  Jan Hubicka  <jh@suse.cz>
2627
2628         * reload.c (find_reloads): Reorganize if seqeunce to switch.
2629
2630         * cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
2631         (cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.
2632
2633 2004-03-04  Steve Ellcey  <sje@cup.hp.com>
2634
2635         * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
2636         * testsuite/gcc.dg/20040303-1.c: New test.
2637
2638 2004-03-04  Steven Bosscher  <stevenb@suse.de>
2639
2640         * ppro.md: Rewrite as a DFA pipeline description.
2641         * i386.md: Remove all uses of the ppro_uops attribute.
2642         * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
2643         ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
2644         ix86_sched_reorder, ix86_variable_issue,
2645         struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
2646         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
2647         (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
2648         (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
2649         * athlon.md (athlon_ssecmp_load): Fix comment
2650
2651 2004-03-04  Stuart Hastings  <stuart@apple.com>
2652
2653         * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
2654
2655 2004-03-04  Stuart Hastings  <stuart@apple.com>
2656
2657         * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
2658         686, tell Darwin assembler to allow prefetch insns, non-empty def
2659         of SUBTARGET_OPTION_TRANSLATE_TABLE.
2660
2661 2004-03-04  DJ Delorie  <dj@redhat.com>
2662
2663         PR optimization/14282
2664         * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
2665         between a call and the assignment of its return value.
2666
2667 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2668
2669         * config/h8300/h8300.c: Put a comment for every function.
2670
2671 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2672
2673         * config/h8300/h8300.md: Add comments about peephole2's.
2674
2675 2004-03-04  Steven Bosscher  <stevenb@suse.de>
2676
2677         * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
2678
2679 2004-03-04  Jan Hubicka  <jh@suse.cz>
2680
2681         * cfgcleanup.c (thread_jump): Update call of cselib_init.
2682         * cselib.c (cselib_record_memory): New static variable.
2683         (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
2684         Give up on memories when asked for.
2685         (cselib_init): Accept new argument.
2686         * cselib.h (cselib_init): Update prototype.
2687         * gcse.c (local_cprop_pass): Update call of cselib_init.
2688         * loop.c (load_mems): Update call of cselib_init.
2689         * postreload.c (reload_cse_regs_1): Update call of cselib_init.
2690         * sched-deps.c (sched_analyze): Update call of cselib_init.
2691
2692 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
2693             GP <gp@qnx.com>
2694
2695         * config/rs6000/rs6000.c (output_function_profiler): Append @plt
2696         when compiling PIC.
2697
2698 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
2699
2700         PR/14362
2701         * var-tracking.c (track_expr_p): Do not track variables which
2702         should be ignored for debugging purposes.
2703
2704 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2705
2706         * real.c (encode_ibm_extended): Don't bother rounding low double.
2707         * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
2708         when fmt->pnan < fmt->p.
2709
2710 2004-03-04  Eric Christopher  <echristo@redhat.com>
2711
2712         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
2713         only range of valid arg registers and fixed_regs.
2714
2715 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2716
2717         PR target/14406
2718         * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
2719         (abstf2, abstf2_internal): New define_expand.
2720
2721 2004-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2722
2723         PR optimization/14235
2724         * expr.c (convert_move): Copy the source to a new pseudo
2725         when converting from a sub-word source to a larger-than-word
2726         register which conflicts with the source.
2727
2728 2004-03-03  Zack Weinberg  <zack@codesourcery.com>
2729
2730         PR 13728
2731         * c-decl.c (diagnose_mismatched_decls): Issue an error for two
2732         parameters with the same name, unless one is a forward decl.
2733         Do not issue a redundant-redeclaration warning for forward
2734         decls of parameters.
2735
2736 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
2737
2738         * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
2739         configuration.
2740
2741 2004-03-03  Ian Lance Taylor  <ian@wasabisystems.com>
2742
2743         * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
2744
2745 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2746
2747         * target-def.h (TARGET_OPTF): Delete.
2748         * c-opts.c (TARGET_OPTF): Define.
2749
2750 2004-03-04  Jan Hubicka  <jh@suse.cz>
2751
2752         * cselib.c (cselib_finish): Fix another miss-application of my previous
2753         patch.
2754
2755 2004-03-03  Mike Stump  <mrs@apple.com>
2756
2757         Add framework support for darwin.
2758
2759         * c-incpath.c: Include target.h and machmode.h.
2760         (add_path): Use a consistent style for cpp_dir.  Initialize
2761         p->construct to 0.
2762         (add_cpp_dir_path): New.
2763         (register_include_chains): Add use of extra_includes callback.
2764         (hook_void_int): Add.
2765         (target_c_incpath): Add.
2766         * c-incpath.h (add_cpp_dir_path): New.
2767         (target_c_incpath_s): Add.
2768         (target_c_incpath): Add.
2769         (C_INCPATH_INIT): Add.
2770         * c-opts.c (c_common_missing_argument,
2771         c_common_handle_option): Add -F argument processing.
2772         * c.opt: Add -F argument processing.
2773         * gcc.c (trad_capable_cpp): Add -F argument processing.
2774         * cppfiles.c (find_file_in_dir): Update to use construct
2775         callback.
2776         (search_path_exhausted, cpp_get_path, cpp_get_buffer,
2777         cpp_get_prev): New.
2778         (_cpp_find_file): Use search_path_exhausted.
2779         (make_cpp_dir): Initialize construct to 0.
2780         * cpplib.h (missing_header_cb
2781         cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
2782         (cpp_callbacks): Add missing_header
2783         (cpp_dir): Add construct.
2784         * target-def.h: (TARGET_OPTF): New.
2785         * hooks.c (hook_void_int, hook_void_charptr): Add.
2786         * hooks.h (hook_void_int, hook_void_charptr): Add.
2787         * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
2788         $(MACHMODE_H) dependencies.
2789         * doc/invoke.texi (Darwin Options): Document -F.
2790         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
2791         (TARGET_OPTF): Add.
2792         * fix-header.c (target_c_incpath): Add.
2793
2794         * config/darwin-c.c: Add c-incpath.h include.
2795         (using_frameworks, find_subframework_file,
2796         find_subframework_header, add_system_framework_path,
2797         frameworks_in_use, num_frameworks, max_frameworks,
2798         add_framework, find_framework, struct framework_header,
2799         framework_header_dirs, framework_construct_pathname,
2800         find_subframework_file, add_system_framework_path,
2801         add_framework_path, framework_defaults,
2802         darwin_register_frameworks, find_subframework_header): Add.
2803         * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
2804         (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
2805         (CPP_SPEC): Add __APPLE_CC__ support.
2806         * t-darwin (darwin-c.o): Add c-incpath.h dependency.
2807
2808 2004-03-04  Jan Hubicka  <jh@suse.cz>
2809
2810         * cselib.c (cselib_finish): Fix miss-application of my previous
2811         patch.
2812
2813 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2814
2815         * hooks.c (hook_tree_tree_identity): New.
2816         * hooks.h: Add a prototype for hook_tree_tree_identity.
2817         * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
2818         instead of MD_ASM_CLOBBERS.
2819         * system.h (MD_ASM_CLOBBERS): Poison.
2820         * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
2821         (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
2822         * target.h (gcc_target): Add md_asm_clobbers.
2823         * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
2824         (ix86_md_asm_clobbers): New.
2825         * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
2826         * doc/tm.texi (MD_ASM_CLOBBERS): Change to
2827         TARGET_MD_ASM_CLOBBERS.
2828
2829 2004-03-03  Stuart Hastings  <stuart@apple.com>
2830
2831         * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
2832
2833 2004-03-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
2834
2835         * config/sparc/sparc.c (noov_compare64_op): Fix typo.
2836
2837         * config/sparc/sparc.h (ASM_FLOAT): Delete.
2838         (ASM_DOUBLE): Likewise.
2839         (ASM_LONGDOUBLE): Likewise.
2840         * config/sparc/pbd.h (ASM_INT_OP): Delete.
2841
2842 2003-03-03  Richard Henderson  <rth@redhat.com>
2843
2844         PR opt/13862
2845         * cselib.c (cselib_record_sets): Don't record multiple sets in
2846         asm insns.
2847
2848 2004-03-03  Mostafa Hagog  <mustafa@il.ibm.com>
2849
2850         * common.opt: Add description of the new -fgcse-after-reload flag.
2851
2852         * flags.h (flag_gcse_after_reload): Declaration of global variable.
2853
2854         * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
2855         reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
2856         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2857         get_bb_avail_insn, hash_scan_set_after_reload,
2858         compute_hash_table_after_reload, eliminate_partially_redundant_loads,
2859         gcse_after_reload, get_bb_avail_insn): New functions to implement
2860         gcse-after-reload.
2861         (gcse_after_reload_main): New function, the main entry point to
2862         gcse-after-reload.
2863
2864         * rtl.h (gcse_after_reload_main): Declaration of the new function.
2865
2866         * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
2867
2868         * toplev.c (flag_gcse_after_reload): Initialization.
2869
2870         * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
2871
2872         * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2873         PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
2874         the gcse after reload optimization.
2875
2876         * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2877         GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
2878         parameters.
2879
2880         * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
2881
2882 2004-03-03  Nicolas Pitre <nico@cam.org>
2883
2884         * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
2885         small negative values.
2886
2887 2004-03-03  Jan Hubicka  <jh@suse.cz>
2888
2889         * cselib.c (hash_table):  Remove GTY marker.
2890         (reg_values): Turn into array.
2891         (used_regs): Likewise.
2892         (n_used_regs): New static variable.
2893         (reg_values_old): Kill.
2894         (clear_table): Update uses of arrays.
2895         (cselib_lookup): Likewise.
2896         (cselib_record_set): Likewise.
2897         (cselib_init): Likewise.
2898         (cselib_finish): Likewise.
2899         (cselib_udpate_varray_sizes): Kill.
2900         * cselib.h (cselib_update_varray_sizes): Kill.
2901
2902 2004-03-03  Paul Brook  <paul@codesourcery.com>
2903
2904         * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
2905
2906 2004-03-03  Jan Hubicka  <jh@suse.cz>
2907
2908         * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
2909         Rename from ...; make statistics transparent.
2910         (ggc_alloc_cleared, ggc_realloc_stat): ... these.
2911         (loc_descriptor): New structure.
2912         (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
2913         add_statistics):
2914         New static function.
2915         (ggc_record_overhead, dump_statistics): New global function.
2916         * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2917         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
2918         from ...; accept locations
2919         (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2920         ggc_realloc, ggc_alloc_typed):  ... this one.
2921         from ...; accept locations
2922         * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
2923         ggc_alloc_stat): Rename from ... ; pass locations
2924         * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
2925         ... this one.
2926         (ggc_alloc_stat): Record overehead.
2927         * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2928         ggc_realloc, ggc_alloc_typed):  Turn to macros
2929         (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2930         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
2931         (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
2932         * langhooks.h (lhd_make_node): Declare.
2933         (LANG_HOOKS_MAKE_TYPE): Default to new function,
2934         * langhooks.c (lhd_make_node): New.
2935         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
2936         locations.
2937         (rtx_alloc, swallow_copy_rtx): ... this one.
2938         * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
2939         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
2940         * toplpev.c (finalize): Dump stats.
2941         * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
2942         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
2943         Rename from ... ; pass locators.
2944         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2945         build?,  build_decl): Declare.
2946         * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
2947         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
2948         Declare.
2949         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2950         build?,  build_decl): New macros.
2951         * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
2952         * statistics.h: New file.
2953
2954 2004-03-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2955             Richard Sandiford  <rsandifo@redhat.com>
2956
2957         * config/mips/mips.h (MASK_FIX_SB1): Bump.
2958         (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
2959         (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
2960         * config/mips/mips.c (mips_output_division): Fill the branch delay
2961         slot with a nop if TARGET_FIX_R4000.  Extend R4000 workarounds to
2962         TARGET_FIX_R4400.
2963         (mips_output_division): Adjust accordingly.
2964         (override_options): Make -march=r4400 imply -mfix-r4400 by default.
2965         * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
2966
2967 2004-03-03  Paolo Bonzini  <bonzini@gnu.org>
2968
2969         * alias.c (rtx_equal_for_memref_p): Use predicates
2970         to test rtx classes and new rtx class codes, possibly
2971         splitting conditionals that tested against '<' and 'o'.
2972         * caller-save.c (save_call_clobbered_regs): Likewise.
2973         * combine.c (contains_muldiv, find_split_point, subst,
2974         combine_simplify_rtx, simplify_if_then_else,
2975         simplify_set, simplify_logical, expand_compound_operation,
2976         make_compound_operation, if_then_else_cond, known_cond,
2977         apply_distributive_law, cached_nonzero_bits,
2978         cached_num_sign_bit_copies, simplify_shift_const,
2979         gen_binary, simplify_comparison, update_table_tick,
2980         record_value_for_reg, get_lsat_value_validate): Likewise.
2981         * cse.c (mention_regs, find_best_addr, find_comparison_args,
2982         fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
2983         Likewise.
2984         * emit-rtl.c (copy_insn_1): Likewise.
2985         * expr.c (force_operand): Likewise.
2986         * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
2987         * flow.c (notice_stack_pointer_modification_1,
2988         invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
2989         and_reg_cond, elim_reg_cond): Likewise.
2990         * function.c (update_epilogue_consts): Likewise.
2991         * genattrtab.c (attr_rtx_1): Likewise.
2992         * genopinit.c (gen_insn): Likewise.
2993         * integrate.c (subst_constants): Likewise.
2994         * jump.c (reversed_comparison_code_parts,
2995         reversed_comparison_code, delete_related_insns,
2996         rtx_renumbered_equal_p): Likewise.
2997         * local-alloc.c (block_alloc): Likewise.
2998         * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
2999         canonicalize_condition): Likewise.
3000         * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
3001         Likewise.
3002         * optabs.c (add_equal_node, expand_binop): Likewise.
3003         * predict.c (estimate_probability): Likewise.
3004         * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
3005         * recog.c (validate_replace_rtx_1, comparison_operator,
3006         offsettable_address_p, constrain_operands): Likewise.
3007         * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
3008         Likewise.
3009         * regclass.c (scan_one_insn): Likewise.
3010         * regmove.c (stable_and_no_regs_but_for_p): Likewise.
3011         * regrename.c (kill_autoinc_value): Likewise.
3012         * reload.c (find_reusable_reload, find_reloads,
3013         reg_overlap_mentioned_for_reload_p): Likewise.
3014         * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
3015         * rtl.c (copy_rtx): Likewise.
3016         * rtl.h (CONSTANT_P, INSN_P): Likewise.
3017         * rtlanal.c (commutative_operand_precedence): Likewise.
3018         * sched-deps.c (conditions_mutex_p): Likewise.
3019         * sched-rgn.c (is_cfg_nonregular): Likewise.
3020         * simplify-rtx.c (simplify_gen_binary,
3021         simplify_gen_relational, simplify_replace_rtx,
3022         simplify_unary_operation, simplify_binary_operation,
3023         simplify_ternary_operation, simplify_rtx): Likewise.
3024         * unroll.c (reg_dead_after_loop): Likewise.
3025         * config/alpha/alpha.c (alpha_swapped_comparison_operator,
3026         print_operand): Likewise.
3027         * config/arc/arc.c (proper_comparison_operator): Likewise.
3028         * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
3029         Likewise.
3030         * config/avr/avr.c (_reg_unused_after): Likewise.
3031         * config/frv/frv.c (frv_ifcvt_modify_tests,
3032         frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
3033         * config/i386/i386.c (ix86_comparison_operator,
3034         ix86_carry_flag_operator, fcmov_comparison_operator,
3035         arith_or_logical_operator, print_operand,
3036         ix86_expand_binary_operator, ix86_binary_operator_ok):
3037         Likewise.
3038         * config/i386/i386.md: Likewise.
3039         * config/ia64/ia64.c (not_postinc_memory_operand,
3040         ia64_print_operand, update_set_flags, errata_emit_nops):
3041         Likewise.
3042         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
3043         CONSTRAINT_OK_FOR_S): Likewise.
3044         * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
3045         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3046         ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
3047         ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
3048         Likewise.
3049         * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
3050         eqne_comparison_operator, signed_comparison_operator):
3051         Likewise.
3052         * config/mips/mips.c (cmp_op, symbolic_expression_p):
3053         Likewise.
3054         * config/mmix/mmix (mmix_foldable_comparison_operator,
3055         mmix_comparison_operator): Likewise.
3056         * config/pa/pa.c (hppa_legitimize_address): Likewise.
3057         * config/rs6000/rs6000.c (stmw_operation,
3058         branch_comparison_operator, trap_comparison_operator,
3059         ccr_bit): Likewise.
3060         * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
3061         * config/s390/s390.c (s390_alc_comparison,
3062         s390_slb_comparison):L Likewise.
3063         * config/sh/sh.c (gen_block_redirect, reg_unused_after):
3064         Likewise.
3065         * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
3066         noov_compare_op, noov_compare64_op, v9_regcmp_op,
3067         emit_hard_tfmode_operation, reg_unused_after)
3068         * doc/md.texi, doc/rtl.texi: Likewise.
3069
3070         * ra-debug.c: Add 2004 to list of copyright years.
3071         * unroll.c: Likewise.
3072
3073         * combine.c (simplify_logical): Remove dummy test,
3074         (apply_distributive_law): Fix typo in comment.
3075         GET_CODE (x) == AND so x is a commutative binary op.
3076         * jump.c (delete_related_insns): simplify loop
3077         condition, move testing of RTX codes inside the loop.
3078         (rtx_renumbered_equal_p): do not use RTX_CODE.
3079         * rtl.c (rtx_class): Declare as enum rtx_class.
3080         * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
3081         Move to RTX_COMM_COMPARE class.
3082         (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
3083         Move to RTX_CONST_OBJ class.
3084         * rtl.h (enum rtx_class): New declaration,
3085         (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
3086         RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
3087         RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
3088         RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
3089         RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
3090         ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
3091         SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
3092         OBJECT_P): New macros.
3093         * config/sparc/sparc.c (noov_compare_op): Remove register
3094         from parameter.
3095
3096 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
3097
3098         * target.h: Remove texi jargons in comments.
3099
3100 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3101
3102         * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
3103         threshold to 0x4f.
3104
3105         Revert:
3106         2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3107         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3108         as well.
3109         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3110         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3111
3112 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3113
3114         * doc/md.texi (cbranchmode4): New.
3115
3116 2004-03-02  Eric Christopher  <echristo@redhat.com>
3117
3118         * config/mips/mips16.S: Change fixsfsi and fixdfsi to
3119         fix_trunc.
3120         * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
3121         * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
3122         * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
3123         * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
3124
3125 2004-03-02  Richard Henderson  <rth@redhat.com>
3126
3127         PR middle-end/11767
3128         * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
3129         * optabs.c (prepare_cmp_insn): Force trapping memories to registers
3130         before the compare, if flag_non_call_exceptions.
3131
3132 2004-03-02  Richard Henderson  <rth@redhat.com>
3133
3134         PR middle-end/14327
3135         * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
3136         emitting the label, not after.
3137
3138 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3139
3140         * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
3141         (m68hc11_mov_addr_mode): Likewise.
3142         (m68hc11_override_options): Initialize them based on target.
3143         (register_indirect_p): Allow a MEM for indirect addressing modes and
3144         use flags to control what is allowed.
3145         (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
3146         supported addressing modes.
3147         (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
3148         (go_if_legitimate_address_internal): Likewise.
3149         (m68hc11_indirect_p): Likewise and check the mode.
3150         (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
3151
3152 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3153
3154         * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
3155         (expand_builtin_setjmp_setup): Use
3156         targetm.builtin_setjmp_frame_value instead of
3157         BUILTIN_SETJMP_FRAME_VALUE.
3158         * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
3159         * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
3160         (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3161         * target.h (gcc_target): Add builtin_setjmp_frame_value.
3162         * targhooks.c (default_builtin_setjmp_frame_value): New.
3163         * targhooks.h: Add a prototype for
3164         default_builtin_setjmp_frame_value.
3165         * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
3166         TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3167
3168 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3169
3170         * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
3171         sequences of moves.
3172         (add peepholes): New peepholes to optimize sequences adding small
3173         constants.
3174         (bset peepholes): New peepholes to transform an OR in a bset form
3175         (bclr peepholes): Likewise for bclr form.
3176         (cmp peepholes): New peepholes to avoid register copies when comparing.
3177
3178 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3179
3180         * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
3181         to separate push from moves.
3182         ("*pushdf_internal"): Likewise.
3183         ("*pushsf_internal"): Likewise.
3184         ("*pushsi_internal"): Likewise.
3185         ("movdi_internal"): Use define_insn_and_split; non push operand.
3186         ("movdf_internal"): Likewise.
3187         ("movsf_internal"): Likewise.
3188         ("movsi_internal"): Likewise.
3189         ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
3190         ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
3191         ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
3192
3193 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3194
3195         * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
3196         ("cmphi_z_used", "cmpqi_z_used"): Likewise.
3197         ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
3198         ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
3199         ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
3200         ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
3201         ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
3202         ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
3203         ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
3204         ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
3205         ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
3206
3207 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3208
3209         * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
3210         (SOFT_XY_REGNUM): Define.
3211         (cmp split): Use the above instead of hard coded numbers.
3212         (8-bit op split): No need to check the mode; allow Q_REG.
3213         (ashift split): Adjust the first operand if it uses the SP and we
3214         are pushing the shifted value.
3215         (plus shift split): Fix when a source is in register D+X.
3216         ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
3217
3218 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3219
3220         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
3221         comparing with Z register.
3222
3223 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3224
3225         * cfgloop.h (struct loop_desc): Removed.
3226         (struct loop): Fields simple, desc and has_desc removed.
3227         (simple_loop_p, count_loop_iterations): Declaration removed.
3228         * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
3229         (unmark_altered, blocks_invariant_registers, unmark_altered_insn
3230         blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
3231         invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
3232         simple_loop_exit_p, variable_initial_value, variable_initial_values,
3233         simple_condition_p, simple_increment, count_strange_loop_iterations,
3234         inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
3235         Removed.
3236         * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
3237
3238 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3239
3240         * genattrtab.c: Don't handle MATCH_INSN.
3241         * genrecog.c: Likewise.
3242         * gensupport.c: Likewise.
3243         * rtl.def (match_insn): Remove.
3244         * doc/md.texi (match_insn, match_insn2): Remove.
3245
3246 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
3247
3248         * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
3249         macro results in memory allocation.
3250
3251 2004-03-02  David O'Brien  <obrien@FreeBSD.org>
3252
3253         * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
3254         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
3255         %(fbsd_dynamic_linker),
3256         (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
3257         config/i386/freebsd.h
3258         * config/arm/freebsd.h: Ditto.
3259         * config/i386/freebsd.h: Ditto.
3260         * config/i386/freebsd64.h: Ditto.
3261         * config/ia64/freebsd.h: Ditto.
3262         * config/rs6000/sysv4.h: Ditto.
3263         * config/sparc/freebsd.h: Ditto.
3264
3265 2004-03-02  Loren James Rittle  <ljrittle@acm.org>
3266
3267         * gcc/doc/install.texi (*-*-freebsd*): Update target information.
3268
3269 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3270
3271         * rtl.def (define_combine): Remove.
3272
3273 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3274
3275         * config/h8300/h8300.md: Tweak formatting.
3276
3277 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3278
3279         * config/h8300/h8300.md (*cmphi_h8300): Rename to
3280         *cmphi_h8300_znvc.
3281         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
3282
3283 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
3284
3285         PR bootstrap/14356
3286         * gcc.c (process_command): Remove const-qualification from argv.
3287         (main): Likewise.
3288
3289 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3290
3291         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
3292         pushqi1_h8300hs_advanced.  Adjust its caller.
3293         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
3294         Adjust its caller.
3295
3296 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
3297
3298         * Makefile.in (install-libgcc, install-multilib): Pass
3299         mkinstalldirs var to libgcc.mk.
3300
3301 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
3302
3303         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
3304         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
3305
3306 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
3307
3308         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
3309         * config/h8300/h8300.md: Split several peephole2's, each into
3310         two.
3311
3312 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3313
3314         * dominance.c (recount_dominator): Handle postdominators.
3315
3316 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
3317
3318         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
3319         (NUM_SYMBOL_TYPES): Likewise.
3320         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
3321         (mips_unspec_address): Declare.
3322         (mips_gotoff_page, mips_gotoff_global): Delete.
3323         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
3324         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
3325         (mips_symbolic_constant_p, mips_symbolic_address_p)
3326         (mips_symbol_insns): Handle new symbol types.
3327         (general_symbolic_operand): New predicate.
3328         (mips_unspec_address): Make extern.
3329         (mips_gotoff_page, mips_gotoff_global): Delete.
3330         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
3331         Handle new symbol types.
3332         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
3333         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
3334         mips_unspec_address directly.
3335         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
3336         the documentation of -mexplicit-relocs.
3337
3338 2004-03-01  Jeff Law  <law@redhat.com>
3339
3340         * fold-const.c (fold): An equality comparison of a non-weak object
3341         against zero has a known result.  Similarly an equality comparison
3342         of the address of two non-weak, unaliased symbols has a known result.
3343
3344         * ggc-page.c (struct page_entry): New field PREV.
3345         (ggc_alloc): Update PREV field appropriately.
3346         (sweep_pages): Likewise.
3347         (ggc_free): Likewise.  Use PREV field rather than loop to
3348         improve ggc_free performance.
3349
3350 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
3351
3352         * config/mips/mips.c (mips_output_division): Use the division
3353         instruction to fill the delay slot of a zero check.
3354         (mips_idiv_insns): Adjust accordingly.
3355
3356 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
3357
3358         * config.gcc: Create a default tmake_file for linux, and use
3359         it in all but two linux clauses.  Comment those two.
3360
3361 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
3362
3363         * combine.c (try_combine):  Do not refer to is_replaced.
3364         (gen_lowpart_for_combine):  Perverse subregs now have a
3365         more politically correct name.
3366         * cse.c (cse_insn): Likewise.
3367         * jump.c: Fix bogus reference to delete_insn.
3368
3369 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
3370
3371         PR debug/14328
3372         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
3373         constants as signed values.
3374
3375         PR middle-end/13448
3376         * c-tree.h (readonly_warning): Rename to ...
3377         (readonly_error): ... this.
3378         * c-typeck.c (build_unary_op): Adjust accordingly.
3379         (readonly_warning): Rename to ...
3380         (readonly_error): ... this and issue errors, not warnings.
3381         (build_modify_expr): Call readonly_error, not readonly_warning.
3382         (c_expand_asm_operands): Likewise.
3383         * tree-inline.c (optimize_inline_calls): Do not inline functions
3384         after errors have occurred.
3385
3386 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
3387
3388         * configure.ac: Rearrange some threading code for clarity;
3389         add section comment.
3390         * configure: Regenerate.
3391
3392 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3393
3394         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
3395         typos.
3396         * doc/cppopts.texi: Fix a typo.
3397
3398 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3399
3400         * config/i386/i386.md: Fix formatting.
3401
3402 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
3403
3404         * configure.ac: Add some comments delineating sections of code.
3405
3406         * doc/install.texi: Note that libada uses autoconf 2.57 also.
3407
3408         * doc/install.texi: Fix idiot typo in previous commit.
3409
3410         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
3411
3412 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3413
3414         * config/h8300/h8300.md: Add comments about peephole2's.
3415
3416 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3417
3418         * config/h8300/h8300.md: Tweak operand numbers of some
3419         peephole2's.
3420
3421 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3422
3423         * config/h8300/h8300.md: Tweak comments about peephole2's.
3424
3425 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
3426
3427         PR middle-end/14203
3428         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
3429         instead of testing whether DECL_RTL is not NULL.
3430
3431 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3432
3433         * config/sh/sh.c: Fix formatting.
3434
3435 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3436
3437         * config/sh/sh.c: Convert to ISO-C.
3438
3439 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
3440
3441         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
3442         my previous patch.
3443
3444         * config/darwin.h (machopic_finish): Output stub even if the
3445         symbol is already defined.
3446
3447 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3448
3449         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
3450
3451 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3452
3453         * genattr.c (main): Don't define
3454         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
3455         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
3456         (DFA_PIPELINE_INTERFACE): Likewise.
3457         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
3458         (DFA_PIPELINE_INTERFACE): Likewise.
3459
3460 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
3461
3462         * config/mips/mips.md (tstsi, tstdi): Delete.
3463
3464 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3465
3466         * config/mips/mips.c (override_options): Remove an obsolete
3467         duplicate definition of the "e" constraint.
3468         * config/mips/mips.h: Update a comment accordingly.
3469
3470 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3471
3472         * config/mips/mips.md: Complete the unfinished R4000
3473         multiply/shift errata workaround.  Improve documentation.
3474         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
3475         has a hilo hazard.
3476         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
3477         (muldi3, muldi3_internal): Likewise.
3478         (muldi3_internal2): Remove, replacing with...
3479         (muldi3_mult3, muldi3_r4000): ...these new patterns.
3480         (mulsidi3): Take the errata into account.
3481         (mulsidi3_32bit): Remove, replacing with...
3482         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
3483         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
3484         (umulsidi3): Take the errata into account.
3485         (umulsidi3_32bit): Remove, replacing with..
3486         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
3487         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
3488         TARGET_FIX_R4000.
3489         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
3490         (smuldi3_highpart, umuldi3_highpart): Likewise.
3491         * doc/invoke.texi: Document the errata workaround.
3492
3493 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3494
3495         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
3496         * config/mips/mips.h (MASK_FIX_SB1): Bump.
3497         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
3498         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
3499         * config/mips/mips.c (mips_idiv_insns): New function.
3500         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
3501         (mips_output_division): Add a workaround for the R4000 divide/shift
3502         errata.
3503         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
3504         the length of an "idiv" instruction.
3505         * doc/invoke.texi: Document the new switches.
3506
3507 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3508
3509         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
3510         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
3511
3512 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3513
3514         PR optimization/14229
3515         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
3516
3517 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
3518
3519         * fold-const.c (fold): Strip NOPs that change the signedness
3520         for RSHIFT too.  Expand comment.
3521
3522 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
3523
3524         PR optimization/7871
3525         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
3526         from or to call insns.
3527
3528 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
3529
3530         PR optimization/7871
3531         * flow.c (propagate_one_insn): Interpret calls as setting global
3532         registers, not merely clobbering them.
3533
3534 2004-02-27  Dale Johannesen  <dalej@apple.com>
3535
3536         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
3537         config/darwin-protos.h:  Ditto.
3538         config/darwin.h:  Remove call to it.
3539         * combine.c (distribute_notes): Do not place a REG_DEAD note
3540         when value is both set and used.
3541
3542 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3543
3544         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3545         as well.
3546         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3547         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3548
3549 2004-02-27  Andrew Pinski  <apinski@apple.com>
3550
3551         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
3552         Speedup common case of the type values being in the same order.
3553
3554 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
3555
3556         * config/ia64/ia64.h (no-inline-float-divide): New option.
3557         * config/ia64/ia64.h (no-inline-int-divide): New option.
3558         * config/ia64/ia64.h (no-inline-sqrt): New option.
3559         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
3560         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3561         * config/ia64/ia64.c (ia64_override_options): Modify error
3562         checking for inlined division/sqrt.
3563
3564 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3565
3566         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
3567         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
3568         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
3569         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
3570         copyright.
3571
3572 2004-02-27  Paul Brook  <paul@codesourcery.com>
3573
3574         * function.c (assign_parms): Don't count pretend args for alignment.
3575
3576 2004-02-27  Richard Henderson  <rth@redhat.com>
3577
3578         * passes.c: New file.
3579         * Makefile.in (OBJS-common): Add it.
3580         * diagnostic.c (rtl_dump_and_exit): Move decl ...
3581         * flags.h (rtl_dump_and_exit): ... here.
3582         * output.h (size_directive_output, last_assemble_variable_decl):
3583         Move from toplev.c.
3584         * rtl.h (reg_alloc): Move from toplev.c.
3585         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
3586         struct dump_file_info, enum dump_file_index, dump_file_tbl,
3587         open_dump_file, close_dump_file, rest_of_decl_compilation,
3588         rest_of_type_compilation, rest_of_handle_final,
3589         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3590         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3591         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
3592         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
3593         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
3594         rest_of_handle_tracer, rest_of_handle_if_conversion,
3595         rest_of_handle_if_after_combine, rest_of_handle_web,
3596         rest_of_handle_branch_prob,
3597         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3598         rest_of_handle_addressof, rest_of_handle_sibling_calls,
3599         rest_of_handle_jump_bypass, rest_of_handle_inlining,
3600         rest_of_handle_null_pointer, rest_of_handle_combine,
3601         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3602         rest_of_handle_gcse, rest_of_handle_loop_optimize,
3603         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
3604         (decode_d_option): Use enable_rtl_dump_file.
3605         (compile_file, finalize, do_compile): Move profile+combine+graph
3606         cleanup to finish_optimization_passes.
3607         * toplev.h (init_optimization_passes, finish_optimization_passes,
3608         enable_rtl_dump_file): Declare.
3609
3610 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
3611             Roger Sayle  <roger@eyesopen.com>
3612
3613         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
3614         operands to build a tree with swapped operands.
3615         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
3616         'unsignedp' predicate to specify the signedness.
3617
3618 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3619
3620         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
3621         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
3622         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
3623         comment typos and formatting.  Follow spelling conventions.
3624
3625 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
3626
3627         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
3628         fix_truncsfsi2.
3629
3630         * config/rs6000/spe.md: Delete spe_efsctuiz.
3631         Add spe_fixuns_truncsfsi2.
3632         Add spe_fix_truncsfsi2.
3633
3634 2004-02-26  Eric Christopher  <echristo@redhat.com>
3635
3636         * c-lex.c (c_lex_string_translate): New variable.
3637         (lex_string): Use to determine string translation.
3638         * c-pragma.h: Prototype.
3639         * c-parse.in (start_string_translation): New. Set above.
3640         (stop_string_translation): Ditto.
3641         (attribute, attribute_list, asm_def, asm_stmt,
3642         asm_operand): Use above functions.
3643         * cp/parser.c (cp_parser_declaration): Translate strings
3644         unless token is RID_EXTERN. Set c_lex_string_translate
3645         for recursive use.
3646         (cp_parser_asm_definition): Only translate argument strings
3647         to asms.
3648         (cp_parser_asm_operand_list): Ditto.
3649         (cp_parser_attribute_list): Do not translate attribute strings.
3650
3651 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3652
3653         * stmt.c (expand_start_case_dummy): Remove.
3654         * tree.h: Remove the corresponding prototype.
3655
3656 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3657
3658         * builtins.c (apply_args_register_offset): Remove.
3659         * tree.h: Remove the corresponding prototype.
3660
3661 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3662
3663         * stor-layout.c (is_pending_size): Remove.
3664         * tree.h: Remove the corresponding prototype.
3665
3666 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3667
3668         * recog.c (validate_replace_src): Remove.
3669         * recog.h: Remove the corresponding prototype.
3670
3671 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3672
3673         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
3674         MAYBE_REG_PARM_STACK_SPACE.
3675         * function.c: Likewise.
3676         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
3677         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3678         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
3679         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3680
3681 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3682
3683         * c-decl.c (c_expand_deferred_function): Remove.
3684         * c-tree.h: Remove the corresponding prototype.
3685
3686 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3687
3688         * postreload.c (reload_cse_move2add): Generate just a PLUS
3689         instead of an entire SET.
3690
3691 2004-02-26  Jan Hubicka  <jh@suse.cz>
3692
3693         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
3694         /pentium4m.
3695         * i386.c (override_options): Add support for new CPUs.
3696         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
3697         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
3698         constants.
3699         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
3700
3701 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
3702
3703         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
3704
3705 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
3706
3707         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
3708         (sparc_emit_fixunsdi): New prototype.
3709         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
3710         (sparc_emit_fixunsdi): New function.
3711         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
3712         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
3713         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
3714         to sparc_emit_floatunsdi.
3715         (fixuns_truncsfdi2): New expander.
3716         (fixuns_truncdfdi2): Likewise.
3717
3718 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
3719
3720         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
3721         unless HAVE_cc0.
3722
3723 2004-02-25  Richard Henderson  <rth@redhat.com>
3724
3725         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
3726         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
3727         use (op0-op1) == 0 if op0 is a pointer.
3728         * config/alpha/alpha.md (cmpdi): Use some_operand.
3729         (three comparison combine splits): Remove.
3730
3731 2004-02-25  Richard Henderson  <rth@redhat.com>
3732
3733         PR c/12794
3734         * c-common.c (handle_alias_attribute): Reject the attribute if
3735         current_function_decl is set.
3736
3737 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
3738
3739         * config.gcc: Add comment describing extra_gcc_objs.
3740         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
3741         * configure.ac (extra_gcc_objs): New substitution variable.
3742         (host_extra_gcc_objs): Don't substitute.
3743         * configure: Regenerate.
3744         * Makefile.in: Use extra_gcc_objs.
3745
3746 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
3747
3748         * doc/contrib.texi: Add an entry for myself.
3749
3750 2004-02-25  Jan Hubicka  <jh@suse.cz>
3751
3752         * basic-block.h (make_eh_edge, break_superblocks): Declare.
3753         * cfgbuild.c (make_eh_edge):  Make global.
3754         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
3755         * except.c (build_post_landing_pads, connect_post_landing_pads,
3756         dw2_build_landing_pads, sjlj_emit_function_enter,
3757         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3758         sjlj_build_landing_pads): Update CFG.
3759         (emit_to_new_bb_before): New function.
3760         (finish_eh_generation): Do not rebuild the CFG.
3761
3762 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3763
3764         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
3765         target_cpu_default defines.
3766         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
3767         * pa.h (TARGET_DEFAULT): Likewise.
3768
3769 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
3770
3771         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
3772         comparisons with regard to signedness.
3773
3774 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
3775
3776         * arm.c (thumb_legitimize_address): New function.
3777         * arm-protos.h: Prototype it.
3778         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
3779         (LEGITIMIZE_ADDRESS): Use it.
3780
3781 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
3782
3783         * reload1.c (reload): Only spill eliminable register with multiple
3784         adjacent elimination alternatives if all alternatives fail.
3785
3786 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
3787
3788         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
3789         is -4095...+4095 inclusive.
3790
3791 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3792
3793         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
3794         the bootstrap failure with Sun CC 5.4 and 5.5.
3795
3796 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
3797
3798         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
3799         which modifies NEWREG.
3800         (cse_condition_code_reg): Update the mode of CC_REG in
3801         CC_SRC_INSN on our own.
3802
3803 2004-02-24  Michael Matz  <matz@suse.de>
3804
3805         * config/i386/i386.c (ix86_comp_type_attributes): Check for
3806         regparm attributes.
3807
3808 2004-02-24  Richard Henderson  <rth@redhat.com>
3809
3810         * toplev.c (dump_file_tbl): Rename from dump_file.
3811         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
3812         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
3813         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
3814         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
3815         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
3816         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
3817         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
3818         s/rtl_dump_file/dump_file/g.
3819
3820 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
3821
3822         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
3823         (spe_fixuns_truncsfsi2): Delete.
3824
3825         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
3826         (fixuns_truncsfsi2): Delete.
3827
3828 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
3829
3830         PR/14240
3831         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
3832
3833 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
3834
3835         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
3836
3837 2004-02-24  Jason Merrill  <jason@redhat.com>
3838
3839         * tree.c (check_qualified_type): New fn.
3840         (get_qualified_type): Use it.  If type already has the desired
3841         quals, just return it.
3842         * tree.h: Declare it.
3843
3844 2003-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
3845
3846         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
3847         TARGET_SCHED_FINISH_GLOBAL): New macros.
3848
3849         * target.h (md_init_global, md_finish_global): Function
3850         declarations corresponding to new target macros.
3851
3852         * haifa-sched.c (sched_init, sched_finish): Allow target to
3853         call the new schedular hooks.
3854
3855         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
3856         call to update_life_info.
3857
3858         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
3859         flag_schedule_insns for SH4.
3860
3861         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
3862         find_set_regmode_weight, find_insn_regmode_weight,
3863         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
3864         sh_variable_issue, high_pressure, ready_reorder,
3865         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
3866         functions used to throttle the insn movement in first
3867         scheduling pass for SH.
3868
3869         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
3870         TARGET_SCHED_FINISH_GLOBAL.
3871
3872 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
3873
3874         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
3875         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
3876         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
3877         symbols in sections named by the user.
3878         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
3879         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
3880         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
3881         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
3882         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
3883         the above.
3884         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
3885         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
3886         one more pseudo to further improve code generation.
3887         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
3888         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
3889         inside UNSPEC.
3890         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
3891         * config/frv/frv.c (frv_legitimate_address_p): Added
3892         allow_double_reg_p argument.  Adjust all callers.  Use it to
3893         decide whether to enable double-register indirect addressing.
3894         (frv_funcdesc_alias_set): Remove.
3895         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
3896         register.  Emit movdi_ldd.
3897         (ldd_address_operand): New.
3898         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
3899         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
3900         (PREDICATE_CODES): Add ldd_address_operand.
3901         * config/frv/frv.md (movdi_ldd): New.
3902         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
3903         intermediate computations if possible.
3904         (symGOTOFF2reg_i): Fix harmless typo.
3905         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
3906         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
3907         relocated p_vaddr to vaddr type.
3908         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
3909         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
3910         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
3911         MEM, or use a funcdesc alias set.  Use regular move instead of
3912         ldd.
3913         (dbl_memory_one_insn_operand): Recognize function descriptors by
3914         type or by alias set, and don't split them.
3915         * config/frv/frv.md (call, call_value): Never use call_internal
3916         for fdpic.
3917         (call_internal, call_value_internal): Never match for FDPIC.
3918         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
3919         call_value_fdpicsi): Require FDPIC.
3920         (ldd): Removed.
3921         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
3922         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
3923         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
3924         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
3925         FDPIC.  Compute data base address.
3926         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
3927         before the other self-specs are processed.
3928         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
3929         Build with -fPIC.
3930         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
3931         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
3932         inhibit_libc is defined.
3933         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
3934         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
3935         __FRV_FDPIC__.
3936         (__RELOC_POINTER): Define.
3937         (_Unwind_IteratePhdrCallback): Use it.
3938         * config/frv/frv.h (Twrite): Define.
3939         (TRANSFER_FROM_TRAMPOLINE): Use it.
3940         * config/frv/linux.h (INVOKE__main): Undefine.
3941         (Twrite): Override.
3942         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
3943         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
3944         (-mlibrary-pic): Emphasize that this option generates EABI code.
3945         (-mcpu): Add fr550.
3946         (-mpack): Remove.
3947         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
3948         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
3949         and CONSTs in FDPIC mode.
3950         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
3951         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
3952         * config/frv/frv.c (move_source_operand): Don't accept symbolic
3953         constants.
3954         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
3955         rather than 'i' constraint for the 2-instruction alternative.
3956         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
3957         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
3958         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
3959         EXTRA_CONSTRAINT_FOR_Y.
3960         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
3961         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
3962         (addsi3): Change 'Y' constraint to 'Q'.
3963         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
3964         * reload.c (CONST_POOL_OK_P): New macro.
3965         (find_reloads): Use it to decide whether a constant can be forced
3966         into memory.
3967         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
3968         constant satisfies got12_operand.
3969         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
3970         (frv_legitimate_address_p): Check for valid unspec offsets using
3971         got12_operand rather than frv_legitimate_fdpic_operand_p.
3972         (frv_legitimate_fdpic_operand_p): Delete.
3973         (frv_emit_movsi): Abort if we try to use the FDPIC register during
3974         or after reload.
3975         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
3976         TARGET_FDPIC.
3977         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
3978         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
3979         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
3980         (frv_fdpic_fptr_operand): Don't declare here.
3981         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
3982         rather than fdpic_got12_operand.
3983         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
3984         got12_operand and const_unspec_operand.
3985         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
3986         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
3987         (symbolic_operand): Remove.
3988         (const_unspec_operand): New predicate.
3989         * config/frv/frv.md (*movsi_got): Use got12_operand.
3990         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
3991         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
3992         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
3993         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
3994         * config/frv/frv.c (frv_unspec): New structure.
3995         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
3996         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
3997         validate CONST indices.  Use frv_output_const_unspec to print them.
3998         (frv_print_operand): Update call to unspec_got_name.  Use
3999         frv_output_const_unspec to print constant unspecs.
4000         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
4001         Reject UNSPECs otherwise.
4002         (unspec_got_name): Take the relocation number as argument, not an
4003         rtx containing it.
4004         (frv_output_addr_const_extra): Remove, replacing with...
4005         (frv_output_const_unspec): ...this new function.
4006         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
4007         (gpr_or_int12_operand): Use fdpic_got12_operand.
4008         (dbl_memory_one_insn_operand): Likewise.
4009         (fdpic_got12_operand): Use frv_const_unspec_p.
4010         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
4011         are already legitimate.  Use frv_small_data_reloc_p when deciding
4012         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
4013         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
4014         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
4015         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
4016         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
4017         label, for real this time.
4018         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
4019         representation of visibility.
4020         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
4021         such.
4022         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
4023         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
4024         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
4025         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
4026         it was explicitly disabled.
4027         (frv_stack_info): There is no need to save the link register in every
4028         frame unless TARGET_LINKED_FP is true.
4029         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
4030         frame pointer if the stack pointer might change value.
4031         (frv_return_addr_rtx): Check and process "count" argument.
4032         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
4033         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
4034         (frv_find_base_term): Declare.
4035         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
4036         (FIND_BASE_TERM): Define.
4037         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
4038         small_data_register_operand, small_data_symbolic_operand.  Add
4039         symbolic_operand.
4040         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
4041         (frv_print_operand_memory_reference, output_move_single): Remove
4042         special handling for unlegitimized sdata addresses.
4043         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
4044         and symbolic addresses.
4045         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
4046         (frv_find_base_term): New function.
4047         (int_2word_operand): Check specifically for symbolic address constants.
4048         (pic_register_operand, pic_symbolic_operand): Delete.
4049         (small_data_register_operand, small_data_symbolic_operand): Delete.
4050         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
4051         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
4052         (move_source_operand): Only accept CONSTs if they're a two-insn
4053         symbolic constant.
4054         (fdpic_got12_operand): Don't require TARGET_FDPIC.
4055         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
4056         using gen_symGOTOFF2reg*.
4057         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
4058         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
4059         themselves a cost of 3 insns.
4060         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
4061         Change predicate to symbolic_operand.
4062         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
4063         (*movsi_lda_sdata): Delete.
4064         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
4065         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
4066         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
4067         frv-*-*linux*.
4068         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
4069         label.
4070         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
4071         -multilib-library-pic.
4072         (LINK_SPEC): Add -z text for -mfdpic.
4073         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
4074         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
4075         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
4076         Override.
4077         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
4078         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
4079         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
4080         crtstuff-generated files.
4081         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
4082         * config.gcc: Add frv-*-*linux*.
4083         * config/frv/linux.h, config/frv/t-linux: New.
4084         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
4085         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
4086         when -mfdpic even if a linker script is explicitly listed.
4087         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
4088         * config/frv/frv.c (frv_override_options): Clear asm_out
4089         unaligned_op for SImode on FDPIC.
4090         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
4091         argument passed to decl_readonly_section.
4092         (frv_assemble_integer): Revert 2003-09-30's change, but make the
4093         whole block run with FDPIC even with -fno-PIC.
4094         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
4095         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
4096         symbol or label plus offset to memory.
4097         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
4098         GOTOFF and GPREL for LABEL_REF.
4099         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
4100         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
4101         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
4102         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
4103         * doc/invoke.texi: Document them.
4104         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
4105         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
4106         (frv_splittable_got_operand): Removed.
4107         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
4108         LO_SUM.  Add comments.
4109         (frv_override_options): Moved enabling of FDPIC to
4110         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
4111         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
4112         (frv_legitimize_fdpic_address): Don't duplicate logic in
4113         frv_emit_movsi.
4114         (frv_gen_GPsym2reg): New.
4115         (unspec_got_name): Added gprel.
4116         (frv_expand_fdpic_call): Add support for inlining PLTs.
4117         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
4118         (gpr_or_int12_operand): Added GPREL12.
4119         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
4120         (small_data_symbolic_operand): Fail if FDPIC.
4121         (fdpic_splittable_got_operand): Removed.
4122         (fdpic_got12_operand): Added GPREL12.
4123         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
4124         when appropriate.  Fix sdata GOTOFF.
4125         (frv_legitimate_constant_p): Require legitimate PIC operand for
4126         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
4127         (frv_assemble_integer): Move FDPIC funcdesc handling out of
4128         flag_pic case.
4129         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
4130         frv_assemble_integer fails.
4131         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
4132         (SUBTARGET_DRIVER_SELF_SPECS): New.
4133         (ASM_SPEC): Don't pass -mno-fdpic.
4134         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
4135         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
4136         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
4137         -multilib-library-pic.
4138         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
4139         condexec_si_media_operator, condexec_sf_add_operator and
4140         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
4141         and condexec_sf_unary_operator.
4142         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
4143         New.
4144         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
4145         movsi_internal.  Give them internal names.  movsi_got has type
4146         int.
4147         (fdpic got splitters): Remove.
4148         (symGPREL2reg, symGPREL2reg_hilo): New.
4149         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
4150         to -mlibrary-pic.  Map -multilib-library-pic to it.
4151         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
4152         Document.
4153         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
4154         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
4155         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
4156         (frv_cannot_force_const_mem): New function.
4157         (const_small_data_p, plus_small_data_p): Update comments on sdata
4158         on FDPIC.
4159         (frv_override_options): Set flag_pie for FDPIC too.
4160         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
4161         call-saved registers on FDPIC.
4162         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
4163         don't force LR to be preserved.
4164         (frv_expand_prologue): Likewise.
4165         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
4166         (frv_frame_pointer_required): Don't force it just because the
4167         FDPIC register is used.
4168         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
4169         operand only if !condexec_p.
4170         (frv_legitimize_address): Return the FDPIC-legitimized address.
4171         Don't match small data here on FDPIC.
4172         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
4173         symbols.  Use TRUE/FALSE instead of 1/0.
4174         (frv_local_funcdesc_p): New.
4175         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
4176         immediates when possible.
4177         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
4178         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
4179         an UNSPEC_GOT.
4180         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
4181         12-bit immediates when possible.
4182         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
4183         are not legitimate pic operands.
4184         (frv_in_small_data_p): Re-enable for FDPIC.
4185         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
4186         (FRV_GLOBAL_P): Removed.
4187         * config/frv/frv.md: Add modes to CONSTs.
4188         (movsi_got): New.
4189         (movsi_lo_sum_got): Use separate matches instead of match_dup.
4190         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
4191         (fdpic splittable operations): Match on flag_pic != 1.
4192         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
4193         * config/frv/frv.c (frv_asm_out_constructor,
4194         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
4195         bytes, not bits.
4196         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
4197         * config/frv/frv.c (frv_assemble_integer): Reject complex
4198         expressions referencing function SYMBOL_REFs.
4199         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
4200         (move_source_operand): Reject CONSTs that reference function
4201         SYMBOL_REFs on FDPIC.
4202         (frv_emit_movsi): If we get such a CONST, break it up.
4203         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
4204         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
4205         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
4206         MEM.
4207         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
4208         (frv_trampoline_size): Increase for FDPIC.
4209         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
4210         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
4211         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
4212         Disable use of GOTOFF for now.
4213         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
4214         Disable use of small data in FDPIC for now.
4215         (frv_asm_output_mi_thunk): Implement for FDPIC.
4216         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
4217         * config/frv/frv.c (frv_asm_out_constructor): Use
4218         frv_assemble_integer for FDPIC pointers.
4219         (frv_asm_out_destructor): Likewise.
4220         * config/frv/frv.md (ldd): Fix order of operands.  Use
4221         address_operand for input.
4222         2003-09-18  DJ Delorie  <dj@redhat.com>
4223         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
4224         (unspec_got_name): Correct typo.
4225         (frv_emit_movsi): Pre-expand splittable GOTs.
4226         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
4227         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
4228         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
4229         * config/frv/t-frv: Add -mfdpic multilibs.
4230         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
4231         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
4232         * config/frv/frv.c (frv_override_options): -mfdpic assumes
4233         flag_pic, default to 32-bit pics, require DWORD ops.
4234         (frv_override_options): Add W and Z constraints.
4235         (frv_expand_prologue): No pic prologue for -mfdpic.
4236         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
4237         (frv_print_operand_memory_reference): Handle GOT constants.
4238         (frv_legitimate_address_p): Allow GOT constants.
4239         (frv_legitimize_address): Handle GOT addresses too.
4240         (frv_legitimate_fdpic_operand_p): New.
4241         (frv_legitimize_fdpic_address): New.
4242         (unspec_got_name): New.
4243         (frv_output_addr_const_extra): New.
4244         (frv_expand_fdpic_call): New.
4245         (frv_fdpic_fptr_operand): New.
4246         (gpr_or_int12_operand): Handle GOT operands.
4247         (int_2word_operand): Handle GOT operands.
4248         (fdpic_operand): New.
4249         (fdpic_splittable_got_operand): New.
4250         (fdpic_got12_operand): New.
4251         (frv_emit_movsi): Handle GOT operands.
4252         (frv_assemble_integer): -mfdpic doesn't use rofixups.
4253         (frv_print_operand): Support 'g' code for GOT operands.
4254         * config/frv/frv-protos.h: Add prototypes as needed.
4255         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
4256         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
4257         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
4258         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
4259         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
4260         R_FRV_GOTOFFLO): New.
4261         (movsi_high_got, movsi_lo_sum_got): New.
4262         (*movsi_pic): Don't use this splitter for -mfdpic.
4263         (addsi3): Allow GOT references also.
4264         (call, call_value): Handle -mfdpic separately.
4265         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
4266         call_value_fdpicsi): New.
4267         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
4268         symGOTOFF2reg_i): New.
4269         * config/frv/frv.h (MASK_FDPIC): New.
4270         (TARGET_FDPIC): New.
4271         (TARGET_SWITCHES): Add -mfdpic.
4272         (FDPIC_FPTR_REGNO): New.
4273         (FDPIC_REGNO): New.
4274         (OUR_FDPIC_REG): New.
4275         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
4276         FDPIC_CALL_REGS.
4277         (REG_CLASS_NAMES): Likewise.
4278         (REG_CLASS_CONTENTS): Likewise.
4279         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
4280         (EXTRA_CONSTRAINT): Add it here.
4281         (FRV_GLOBAL_P): New.
4282         (OUTPUT_ADDR_CONST_EXTRA): New.
4283
4284 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
4285
4286         * config/sparc/sparc.h: Remove commented-out definitions of
4287         TARGET_EDOM and GEN_ERRNO_RTX.
4288
4289 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
4290
4291         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
4292         df_analyse with df_analyze.
4293
4294 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
4295
4296         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
4297         beginning of block.
4298
4299 2004-02-23  James E Wilson  <wilson@specifixinc.com>
4300
4301         * calls.c (precompute_arguments): Update comment.
4302
4303 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4304
4305         * et-forest.c: Replace et_occurences with et_occurrences.
4306
4307 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4308
4309         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
4310         with iv_analyze.
4311
4312 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
4313
4314         * config/i386/i386.c: Rename pni to sse3.
4315         * config/i386/i386.h: Likewise.
4316         * config/i386/i386.md: Likewise.
4317         * config/i386/pmmintrin.h: Likewise.
4318         * doc/extend.texi: Likewise.
4319         * doc/invoke.texi: Likewise.
4320
4321 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
4322             Kazu Hirata  <kazu@cs.umass.edu>
4323
4324         Remove -fwritable-strings.
4325         * c-common.c (fix_string_type): Don't check
4326         flag_writable_strings.
4327         (fix_string_type): Likewise.
4328         * c-opts.c (set_std_c89): Don't initialize
4329         flag_writable_strings.
4330         (set_std_c99): Likewise.
4331         * common.opt (fwritable-strings): Remove.
4332         * flags.h: Remove the external declaration of
4333         flag_writable_strings.
4334         * opts.c (common_handle_option) <OPT_fwritable_strings>:
4335         Remove.
4336         * toplev.c (flag_writable_strings): Remove.
4337         (f_options): Remove an entry for writable-strings.
4338         * varasm.c (const_hash_1) <STRING_CST>: Don't check
4339         flag_writable_strings.
4340         (compare_constant) <STRING_CST>: Likewise.
4341         (build_constant_desc): Likewise.
4342         * config/darwin.c (machopic_select_section): Likewise.
4343         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
4344         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
4345         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
4346         * config/mips/mips.c (mips_select_section): Likewise.
4347         (mips_encode_section_info): Likewise.
4348         * config/pa/pa.c (pa_select_section): Likewise.
4349         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
4350         * config/v850/v850.c (v850_select_section): Likewise.
4351         * doc/invoke.texi (-fwritable-strings): Remove.
4352         (-fno-const-strings): Don't mention -fwritable-strings.
4353         * doc/trouble.texi: Don't mention -fwritable-strings.
4354
4355 2003-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4356
4357         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
4358
4359 2004-02-23  Dale Johannesen  <dalej@apple.com>
4360
4361         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
4362         (movdf_hardfloat64):  Ditto.
4363         (movdf_softfloat64):  Ditto.
4364
4365 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
4366         * config/rs6000/rs6000.c (function_arg): call to
4367         rs6000_mixed_function_arg for DFmode moved to allow
4368         normal DFmode incoming register assignment.
4369
4370 2004-02-23  Dale Johannesen  <dalej@apple.com>
4371
4372         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
4373         (movdf_hardfloat64):  Ditto.
4374
4375 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4376
4377         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
4378         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
4379         copyright.
4380
4381 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
4382
4383         PR c/14156
4384         * c-typeck.c (c_expand_return): Change check for VAR_DECL
4385         to use DECL_P instead.
4386
4387         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
4388         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
4389
4390 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4391
4392         * Makefile.in (opts.o): Depend on target.h.
4393         * opts.c (decode_options): Use targetm.default_short_enums
4394         instead of DEFAULT_SHORT_ENUMS.
4395         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4396         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
4397         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
4398         * target.h (gcc_target): Add default_short_enums.
4399         * config/cris/cris.h: Remove a comment about
4400         DEFAULT_SHORT_ENUMS.
4401         * config/ip2k/ip2k.h: Likewise.
4402         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
4403         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
4404
4405 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
4406             Falk Hueffner  <falk@debian.org>
4407
4408         PR c/14188
4409         * builtins.c (expand_builtin_va_arg): Emit an informative message
4410         if a trap is generated.
4411         * c-typeck.c (build_function_call): Likewise.
4412
4413 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
4414
4415         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
4416         fopen.
4417         * libgcov.c: Include sys/stat.h.
4418         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
4419         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
4420         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
4421         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
4422
4423 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
4424
4425         * reorg.c: Remove comments about dead ports.
4426
4427 2004-02-22  Christopher Faylor  <cgf@redhat.com>
4428
4429         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
4430         extra host object file when targetting cygwin rather than generic
4431         object files.
4432
4433 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
4434
4435         Merge from tree-ssa:
4436         2003-11-20  Richard Henderson  <rth@redhat.com>
4437
4438                 * tree-inline.c (insert_decl_map): New.
4439                 (remap_decl, remap_type, remap_block, copy_body_r,
4440                 initialize_inlined_parameters, declare_return_variable,
4441                 remap_save_expr): Use it.
4442
4443         * function.c (copy_body_r): Add mapping from id->ret_label to
4444         id->ret_label.  Revert test for ret_label.
4445
4446 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
4447
4448         * genoutput.c (process_template): Strip trailing whitespace in @
4449         templates and issue a warning if there was any.
4450
4451 2004-02-21  Christopher Faylor  <cgf@redhat.com>
4452
4453         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
4454         object file when targetting cygwin.
4455         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
4456         overridden by top-level Makefile.
4457
4458 2004-02-21  Roger Sayle  <roger@eyesopen.com>
4459
4460         * config/i386/i386.c (standard_80387_constant_p): Also prefer
4461         the x87's load constant instructions when optimizing for size.
4462
4463 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
4464
4465         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
4466         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
4467         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
4468         * fold-const.c: Likewise.
4469         * simplify-rtx.c: Likewise.
4470
4471 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
4472
4473         * combine.c (can_combine_p): Don't ignore SETs marked with
4474         REG_EH_REGION notes.
4475         (try_combine): When attemting to fix unrecognized insns, don't
4476         split a PARALLEL that contains the original i2.
4477
4478 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
4479
4480         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
4481         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
4482         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
4483         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
4484         (vector, pixel, bool): #define to __vector, __pixel and __bool.
4485         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
4486         portion of header.
4487         (__altivec_link_error_invalid_argument): Remove prototype; will use
4488         __builtin_altivec_compiletime_error("vec_*") instead.
4489         (vec_*): Fix/complete set of available operation overloads given the
4490         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
4491         cv-correctness of pointer arguments; in C, always check for correct
4492         argument types before macro expansion.
4493         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
4494         defining Darwin/PowerPC-specific '-f[no-]altivec' and
4495         '-W[no-]altivec-long-deprecated' switches.
4496         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
4497         '__vector', '__pixel' and '__bool' macros using
4498         '__attribute__((altivec(...)))' types.
4499         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
4500         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
4501         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
4502         New type nodes.
4503         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
4504         handling '-W[no-]altivec-long-deprecated'.
4505         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
4506         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
4507         altivec_expand_dst_builtin): Remove casts from integer literals.
4508         (altivec_expand_builtin): Likewise; handle expansion of new
4509         '__builtin_altivec_compiletime_error' function.
4510         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
4511         types, and make them distinct from other vector types; register
4512         '__builtin_altivec_compiletime_error' function.
4513         (print_operand): For 'P', print a full target register name instead of
4514         merely its number.
4515         (rs6000_attribute_table): Add "altivec" attribute.
4516         (rs6000_handle_altivec_attribute): New function.
4517         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
4518         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
4519         maps to).
4520         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
4521         declare.
4522         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
4523
4524 2004-02-20  James E Wilson  <wilson@specifixinc.com>
4525
4526         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
4527         check.
4528         (shift_mix4left+2): Delete redundant pattern.
4529
4530 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4531
4532         * alias.c (OUTGOING_REGNO): Don't define the default.
4533         * builtins.c (OUTGOING_REGNO): Likewise.
4534         (INCOMING_REGNO): Likewise.
4535         (apply_args_register_offset): Always use OUTGOING_REGNO.
4536         * combine.c (OUTGOING_REGNO): Likewise.
4537         * sibcall.c (OUTGOING_REGNO): Likewise.
4538         * defaults.h (INCOMING_REGNO): Provide the default.
4539         (OUTGOING_REGNO): Likewise.
4540
4541 2004-02-21  Jan Hubicka  <jh@suse.cz>
4542
4543         * params.def (max-peeled-insns, max-completely-peeled-insns,
4544         max-once-peeled-insns): Set to 400.
4545
4546 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4547
4548         PR c++/12007
4549         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
4550         are set for parameters before outputing debugging information.
4551
4552 2004-02-20  Falk Hueffner  <falk@debian.org>
4553
4554         PR target/14201
4555         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
4556         numbers.
4557
4558 2004-02-20  Per Bothner  <per@bothner.com>
4559
4560         * input.h:  Don't #include line-map.h.  It may cause link problems
4561         with undefined linemap_line_start when line-map.h is included but
4562         line-map.o is not linked, as currently happens with gengtype on
4563         compilers that don't support inline.
4564         * toplev.c:  So we do have to explicitly #include line-map.h here.
4565
4566 2004-02-20  Richard Henderson  <rth@redhat.com>
4567
4568         * doc/invoke.texi: Add -Wvariadic-macros.
4569
4570 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4571
4572         * haifa-sched.c (sched_emit_insn): Remove.
4573         * sched-int.h: Remove the corresponding prototype.
4574
4575 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4576
4577         Revert:
4578         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4579         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4580         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4581         * config/cris/cris.h: Remove a comment about
4582         DEFAULT_SHORT_ENUMS.
4583         * config/ip2k/ip2k.h: Likewise.
4584         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4585
4586 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
4587             Tom Tromey  <tromey@redhat.com>
4588
4589         * doc/install.texi: Moved --disable-libgcj and
4590         --with-system-zlib documentation to new section for
4591         Java-specific options.
4592         Added explicit Cross-Compiler-Specific Options subheading.
4593         Added section for Java-specific options.
4594
4595 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
4596
4597         * doc/install.texi (Building the Ada compiler): Remove
4598         example.
4599
4600 2004-02-20  James E Wilson  <wilson@specifixinc.com>
4601
4602         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
4603
4604 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4605
4606         * gcc.c (process_command): Allow translation of the copyright
4607         symbol but not the rest of the copyright message.
4608         * gcov.c (print_version): Likewise.  Allow translation of the
4609         message about warranty.
4610
4611 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
4612
4613         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
4614         predicate.
4615         ("*andsi_clear"): Tweak constraints to not match postincrement.
4616         Adjust the predicate to exclude a volatile memory reference.
4617         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
4618         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
4619
4620 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
4621
4622         * move-if-change: Remove.
4623         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
4624         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
4625         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
4626         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
4627         (s-gtyp-gen, s-iov): Use the top level move-if-change.
4628         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
4629
4630 2004-02-19  James E Wilson  <wilson@specifixinc.com>
4631
4632         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
4633         for operand2.  Add condition that requires register_operand operand2
4634         before reload.
4635
4636 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
4637             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4638
4639         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
4640         * config/mips/mips.md: Expand comment above unaligned loads and stores.
4641
4642 2004-02-19  Richard Henderson  <rth@redhat.com>
4643
4644         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
4645         * tree.c (build0, build1, build2, build3, build4): Split out from...
4646         (build): ... here.  Call them.
4647         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
4648
4649         * convert.c (convert_to_integer): Remove extra build argument.
4650         * tree-inline.c (expand_call_inline): Likewise.
4651
4652 2004-02-19  Richard Henderson  <rth@redhat.com>
4653
4654         * c-opts.c (warn_variadic_macros): New.
4655         (c_common_handle_option): Set it.
4656         (sanitize_cpp_opts): Copy it to cpp_opts.
4657         * c.opt (Wvariadic-macros): New.
4658         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
4659         * cppinit.c (cpp_create_reader): Initialize it.
4660         * cppmacro.c (parse_params): Check it.
4661
4662 2004-02-19  David Daney <ddaney@avtrex.com>
4663
4664         PR preprocessor/14198
4665         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
4666         builtin_assert ("machine=mips")
4667
4668 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4669
4670         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4671         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4672         * config/cris/cris.h: Remove a comment about
4673         DEFAULT_SHORT_ENUMS.
4674         * config/ip2k/ip2k.h: Likewise.
4675         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4676
4677 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
4678
4679         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
4680         when passing single SFmode quantities in general registers,
4681         put them in the high half.
4682
4683 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
4684
4685         * doc/md.texi (Standard Names): Document additional dependency on
4686         fix pattern.
4687
4688         * optabs.c (ftruncify): Remove.
4689         (expand_fix): Manually inline ftruncify above.
4690         (can_fix_p): Add FIXME note.
4691
4692 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
4693
4694         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
4695         spe_fixuns_truncsfsi2.
4696
4697         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
4698         fixuns_truncsfsi2.
4699
4700 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
4701
4702         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
4703         * testsuite/gcc.dg/20040219-1.c: New test.
4704
4705 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
4706
4707         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
4708         "*subsf3_cconly"): Subtraction is not commutative.
4709
4710 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
4711
4712         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
4713         (sdbout_symbol): If called before sdbout_init, queue DECL for
4714         later and return.
4715         (sdbout_init): Set sdbout_initialized true, process decls
4716         queued earlier by sdbout_symbol.
4717         (sdbout_finish): Use size_t for index variable.
4718
4719 2004-02-19  Jeff Law  <law@redhat.com>
4720
4721         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
4722         for unordered comparison codes.
4723
4724 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
4725
4726         * reload1.c (reload): Correct comment.
4727         (scan_paradoxical_subregs): Remove #if 0 and old comment.
4728         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
4729         register variables are not used by reload.
4730
4731 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
4732
4733         PR target/14209
4734         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
4735         constraints to not match postincrement.  Adjust the predicate to
4736         exclude a volatile memory reference.
4737
4738 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4739
4740         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
4741
4742 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4743
4744         * hooks.c (hook_void_tree_int): Remove.
4745         (hook_void_constcharptr): Likewise.
4746         (hook_int_void_0): Likewise.
4747         * hooks.h: Remove the prototypes for the above three
4748         functions.
4749         * targhooks.c (hook_bool_machine_mode_true): Remove.
4750         * targhooks.h: Remove the prototype for
4751         hook_bool_machine_mode_true.
4752
4753 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4754
4755         * emit-rtl.c (subreg_realpart_p): Remove.
4756         (reorder_insns_with_line_notes): Likewise.
4757         (end_full_sequence): Likewise.
4758         * rtl.h: Remove the prototype for the above functions.
4759
4760 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4761
4762         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
4763         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
4764         config/iq2000/iq2000.h, config/m32r/m32r.h,
4765         config/pdp11/pdp11.h, config/sparc/sparc.h,
4766         config/xtensa/xtensa.h: Remove commented-out or useless
4767         definitions of CASE_VECTOR_PC_RELATIVE.
4768
4769 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4770
4771         * loop.c (all_sets_invariant_p): Remove.
4772
4773 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
4774
4775         PR target/12916
4776         * config/sparc/sparc.h (NPARM_REGS): Delete.
4777         (BASE_RETURN_VALUE_REG): Likewise.
4778         (BASE_OUTGOING_VALUE_REG): Likewise.
4779         (BASE_PASSING_ARG_REG): Likewise.
4780         (BASE_INCOMING_ARG_REG): Likewise.
4781         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
4782         TARGET_ARCH64, not TARGET_V9.
4783         (function_arg_slotno): Dispatch based on the mode class.
4784         Handle vector modes like floating-point modes.
4785         (function_arg_record_value_1): Handle vector types like
4786         floating-point types.
4787         (function_arg_record_value_2): Likewise.
4788         Calculate regno after mode transformation.
4789         (function_arg): Handle vector modes like floating-point modes.
4790         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
4791         If ARCH64, do not recheck alignment.
4792         (function_arg_pass_by_reference): Reorder the conditions.
4793         (sparc_return_in_memory): Move after function_arg_padding.
4794         Implement calling conventions for vector modes.
4795         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
4796         (function_value): Move scope of 'regbase'.
4797         Implement calling conventions for vector modes.
4798         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
4799         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
4800         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
4801         the argument is passed by reference.
4802         (sparc_type_code): Handle vector types.
4803
4804 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
4805
4806         * function.c (assign_parms): When building decl_rtl for
4807         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
4808
4809 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
4810
4811         * expr.c (is_aligning_offset): Check if we are aligning the
4812         expressions's address over BIGGEST_ALIGNMENT in bytes, not
4813         in bits.
4814
4815 2003-02-18  Matt Austern  <austern@apple.com>
4816
4817         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
4818         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
4819         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
4820         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
4821         spec string.
4822         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
4823
4824 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
4825
4826         * dwarf2out.c (loclabel_num): Move outside #ifdef
4827         DWARF2_DEBUGGING_INFO and mark with GTY(()).
4828         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
4829         Mark with GTY(()).
4830         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
4831         Allocate memory with ggc_alloc.  No need to copy anything.
4832         (ia64_hpux_file_end): Update to match.
4833
4834 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
4835
4836         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
4837         by default.
4838
4839 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
4840
4841         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
4842         ("divmodtisi3"): Likewise.
4843         ("udivmoddi4", "udivmodtidi3"): Likewise.
4844         ("divmodsi4", "divmoddisi3"): Likewise.
4845         ("udivmodsi4", "udivmoddisi3"): Likewise.
4846         ("udivsi3", "umodsi3"): Likewise.
4847
4848 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
4849
4850         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
4851         placeholder insn when chunkifying the pool.
4852
4853 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4854
4855         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
4856         generating PIC code.
4857
4858 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4859
4860         * config/h8300/h8300-protos.h: Add a prototype for
4861         h8300_expand_branch.
4862         * config/h8300/h8300.c (h8300_expand_branch): New.
4863         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
4864         bgtu, beq, bne): Call h8300_expand_branch().
4865
4866 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4867
4868         * config/h8300/h8300-protos.h: Add prototypes for
4869         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
4870         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
4871         (h8300_hard_regno_mode_ok): Likewise.
4872         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
4873         h8300_hard_regno_nregs().
4874         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
4875
4876 2004-02-18  Per Bothner  <per@bothner.com>
4877
4878         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
4879         partly reverts my 2003-10-01 change, because we're back to logically
4880         including <command line> inside the main line.
4881         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
4882         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
4883         Fixes PR preprocessor/14103.
4884
4885         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
4886         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
4887         (cpp_push_include):  Don't need to increment pfile's line field.
4888         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
4889
4890         * c-ppoutput.c (print struct):  New first_time field.
4891         (init_pp_output):  Set print.first_time.
4892         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
4893         which is set also for (say) <command line>.  Clear print.first_time.
4894
4895         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
4896         does not match the code, so fix both.
4897         (should_stack_file):  Inline include_pch_p function.
4898         (include_pch_p):  Remove pointless function.
4899
4900         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
4901
4902 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4903
4904         * config/h8300/h8300.md (four define_peephole2's): Use
4905         h8300_regs_ok_for_stm().
4906
4907 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4908
4909         * config/h8300/h8300-protos.h: Update the prototype for
4910         expand_a_rotate().
4911         * config/h8300/h8300.c (expand_a_rotate): Remove the first
4912         argument.
4913         * config/h8300/h8300.md: Update all callers.
4914
4915 2004-02-18  Jan Hubicka  <jh@suse.cz>
4916
4917         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
4918         floats.
4919         (simplify_binary_operation): Deal with logicals on floats.
4920
4921         * i386.md (SSE fabs splitters): Emit new patterns.
4922         (SSE cmov splitters): Likewise.
4923         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
4924         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
4925         subregs.
4926         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
4927         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
4928
4929 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4930
4931         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
4932         by hand.
4933         (output_a_rotate): Tweak a comment.
4934         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
4935         (*rotlhi3_1): Change to rotlhi3_1.
4936         (*rotlsi3_1): Change to rotlsi3_1.
4937
4938 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
4939
4940         PR target/13866
4941         * arm.c (load_multiple_operation): Don't insist that the source reg
4942         of a post-increment component is the same as the destination.
4943         (store_multiple_operation): Likewise.
4944
4945 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4946
4947         * config/h8300/h8300.md: Move movsf patterns into one section
4948         of the file.
4949
4950 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4951
4952         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
4953         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
4954         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
4955         config/mips/linux64.h, config/pa/pa-64.h,
4956         config/rs6000/aix51.h, config/rs6000/aix52.h,
4957         config/rs6000/spe.md, config/sparc/linux.h,
4958         config/sparc/linux64.h: Update copyright.
4959
4960 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4961
4962         * config/h8300/h8300.md: Move push patterns into one
4963         section of the file.
4964
4965 2004-02-18  Mark Mitchell <mark@codesourcery.com>
4966
4967         PR c++/11326
4968         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
4969         fntype.
4970
4971 2004-02-18  Paul Brook  <paul@codesourcery.com>
4972
4973         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
4974
4975 2004-02-18  Paul Brook  <paul@codesourcery.com>
4976
4977         PR debug/12934
4978         * dwarf2out.c (loc_descriptor_from_tree): Handle
4979         EXPR_WITH_FILE_LOCATION.
4980
4981 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
4982
4983         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
4984         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
4985         trailing whitespace from instructions.
4986
4987 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
4988
4989         * configure.ac: When generating auto-build.h, pass
4990         --enable-languages to the sub-configure.
4991         Put quotes around ${program_transform_name} when generating
4992         name of as, ld, nm, objdump.
4993         * configure: Regenerate.
4994
4995 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
4996
4997         * Makefile.in (s-check, s-config, s-conditions, s-flags)
4998         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
4999         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
5000         (s-preds, s-iov): Do not depend on move-if-change.
5001
5002 2004-02-17  James E Wilson  <wilson@specifixinc.com>
5003
5004         * caller-save.c (insert_restore): Pass mem through copy_rtx.
5005         (insert_save): Likewise.
5006
5007 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5008
5009         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
5010         warning.
5011
5012 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5013
5014         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
5015         *one_cmplsi2_h8300.
5016         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
5017
5018 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5019
5020         * config/h8300/h8300-protos.h: Update the prototype of
5021         fix_bit_operand().
5022         * config/h8300/h8300.c (fix_bit_operand): Remove the second
5023         argument "what".
5024         * config/h8300/h8300.md: Update all callers.
5025
5026 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5027
5028         * config/h8300/h8300.c (fix_bit_operand): Change the name of
5029         the last argument to "code" from "type".
5030
5031 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5032
5033         * config/h8300/h8300.c: Remove an extern declaration of
5034         rtx_equal_function_value_matters.
5035
5036 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5037
5038         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
5039         by hand.
5040         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
5041         (*iorqi3_1): Change to iorqi3_1.
5042         (*xorqi3_1): Change to xorqi3_1.
5043
5044 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5045
5046         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
5047         typos.
5048
5049 2004-02-17  Jan Hubicka  <jh@suse.cz>
5050
5051         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
5052
5053 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
5054
5055         PR optimization/14119
5056         * combine.c (try_combine): When attemting to fix unrecognized insns,
5057         don't delete SETs marked with REG_EH_REGION notes.
5058
5059 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
5060
5061         * combine.c (simplify_if_then_else): Do not replace
5062         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
5063         modes differ.
5064
5065 2004-02017  Steven Bosscher  <stevenb@suse.de>
5066
5067         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
5068         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
5069         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
5070         * ada/utils.c: Likewise.
5071         * cp/decl.c: Likewise.
5072         * f/com.c: Likewise.
5073         * java/class.c: Likewise.
5074
5075 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5076
5077         * config/h8300/h8300.md: Fix comment typos.
5078
5079 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5080
5081         * config/mips/t-iris6gld: Renamed to ...
5082         * config/mips/t-irix-gld: ... this.
5083         * config.gcc (mips-sgi-irix6*): Reflect this
5084         (mips-sgi-irix5*): Use it with GNU ld.
5085
5086         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
5087         to ...
5088         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
5089         * config/mips/t-irix-gld: Reflect this.
5090         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5091
5092         * config/mips/iris5gld.h: New file.
5093         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
5094         Only use collect2 without gas.
5095
5096         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
5097         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
5098         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
5099         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5100
5101         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
5102         * config/mips/iris5.h: ... here.
5103
5104         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
5105         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
5106         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
5107
5108         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
5109         using irix_startfile_spec, irix_endfile_spec.
5110
5111 2004-02-16  Gunther Nikl  <gni@gecko.de>
5112
5113         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
5114
5115 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5116
5117         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
5118         insns by hand.
5119
5120 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5121
5122         * cfghooks.c (split_edge): Speed up updating of dominators.
5123
5124 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
5125
5126         PR c++/11326
5127         * c-common.c (flag_abi_version): Remove.
5128         * c-common.h (flag_abi_version): Likewise.
5129         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
5130         * c.opt (fabi-version): Remove.
5131         * calls.c (expand_call): Always pass a function type to
5132         struct_value_rtx.  Use convert_memory_address.
5133         * common.opt (fabi-version): Add it.
5134         * flags.h (flag_abi_version): Likewise.
5135         (abi_version_at_least): New macro.
5136         * opts.c (common_handle_option): Add OPT_fabi_version.
5137         * toplev.c (flag_abi_version): Define it.
5138         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
5139         New function.
5140         (ia64_output_mi_thunk): Use it.
5141         (ia64_struct_value_rtx): Likewise.
5142
5143 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5144
5145         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
5146         Don't generate insns by hand.
5147
5148 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
5149
5150         PR c++/14178
5151         * doc/invoke.texi (fabi-version): The default is 2 now.
5152
5153 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5154
5155         * loop-iv.c: New file.
5156         * Makefile.in (loop-iv.o): New.
5157         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
5158         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
5159         num_loop_branches): New functions.
5160         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
5161         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
5162         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
5163         get_simple_loop_desc, free_simple_loop_desc): Declare.
5164         (simple_loop_desc): New inline function.
5165         (struct rtx_iv, struct niter_desc): New.
5166         * cfgloopmanip.c (loopify): Specify semantics more precisely.
5167         * expr.c (force_operand): Handle subregs of expressions created by
5168         loop unroller.
5169         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
5170         parts of the initialization to toplev.c
5171         * loop-unroll.c (loop_exit_at_end_p): New.
5172         (unroll_and_peel_loops): Call iv_analysis_done.
5173         (decide_peel_once_rolling, decide_peel_completely,
5174         decide_unroll_stupid, decide_unroll_constant_iterations,
5175         decide_unroll_runtime_iterations, decide_peel_simple,
5176         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
5177         unroll_loop_runtime_iterations): Use new simple loop analysis.
5178         * loop-unswitch.c (compare_and_jump_seq): New.
5179         (may_unswitch_on_p): Renamed to ...
5180         (may_unswitch_on): Use new iv analysis.
5181         (reversed_condition): Export.
5182         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
5183         * predict.c (estimate_probability): Use new simple loop analysis.
5184         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
5185         canon_condition, simplify_using_condition): Declare.
5186         * stor-layout.c (get_mode_bounds): New.
5187         * toplev.c (rest_of_handle_loop2): Some parts of
5188         initialization/finalization moved here from loop-init.c.
5189
5190 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5191
5192         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
5193         pointer.
5194         (CALL_USED_REGISTERS): Likewise.
5195         (REG_ALLOC_ORDER): Likewise.
5196         (REG_CLASS) <GENERAL_REGS>: Likewise.
5197
5198 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
5199
5200         * doc/md.texi (Insn Canonicalizations): Document left-chaining
5201         in associative operators.
5202         * rtlanal.c (commutative_operand_precedence): Create some new
5203         variables.  Prefer a commutative operand on the left, then
5204         binary expressions, then NEG and NOT.
5205
5206 2004-02-16  Matthias Klose  <doko@debian.org>
5207
5208         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
5209         in terms of SHLIB_SOVERSION.
5210         * config/m68k/t-slibgcc-elf-ver: New file.
5211         * config/pa/t-slibgcc-elf-ver: New file.
5212         * config.gcc (m68k-linux, parisc-linux): Use them when not
5213         sjlj exceptions are not configured.
5214
5215 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
5216
5217         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
5218
5219 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
5220
5221         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
5222
5223 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
5224
5225         * doc/sourcebuild.texi: Mention backends.html.
5226
5227 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
5228
5229         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
5230         line-map.c, line-map.h, var-tracking.c: Fix comment
5231         formatting.
5232
5233 2004-02-16  Richard Henderson  <rth@redhat.com>
5234
5235         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
5236
5237         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
5238
5239 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
5240
5241         * config/h8300/h8300.md: Remove unnecessary parallels from
5242         all define_insn and define_split patterns.
5243
5244 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
5245
5246         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
5247         "clobber").
5248
5249 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
5250
5251         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
5252         '%#'.
5253
5254 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
5255
5256         * config/ia64/ia64.c, config/mips/mips.c,
5257         config/mmix/mmix-modes.def: Fix comment typos.
5258
5259 2004-02-15  Roger Sayle  <roger@eyesopen.com>
5260
5261         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
5262         (get_directive_line): Remove unused function prototype.
5263
5264 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
5265
5266         * tree-inline.c (copy_body_r): Do not replace ret_label.
5267
5268 2004-02-14  Jan Hubicka  <jh@suse.cz>
5269
5270         * i386.c (x86_four_jump_limit): New variable.
5271         (k8_avoid_jump_misspredicts): Rename to ...
5272         (ix86_avoid_jump_misspredicts): .. this one.
5273         (ix86_pad_returns): Break out from ...
5274         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
5275         to.
5276         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
5277
5278 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
5279
5280         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
5281         PARALLEL is NULL.
5282
5283 2004-02-14  Per Bothner  <per@bothner.com>
5284
5285         * fix-header.c (line_table):  Move local variable in main to global.
5286         * scan.h (line_table):  Use it.
5287         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
5288         line (recently renamed to src_loc) before calling recognized_function.
5289
5290 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
5291
5292         * Makefile.in: Fix comment typos.
5293
5294 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
5295
5296         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
5297         for start_value when it is directly moved into reg, and factorize
5298         the retrieval of GET_MODE (reg).
5299
5300 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
5301
5302         * config/mips/mips-protos.h (mips_load_got_page): Delete.
5303         (mips_load_got_global): Delete.
5304         (mips_gotoff_page): Declare.
5305         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
5306         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
5307         UNSPEC_LOAD_GOT pattern rather than a MEM.
5308         (*load_got[sd]i): New patterns.
5309         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
5310         (mips_load_got_page, mips_load_got_global): Delete.
5311         (mips_gotoff_page): New function.
5312         (override_options): Don't initialize mips_got_alias_set.
5313
5314 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
5315
5316         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
5317         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
5318         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
5319         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
5320         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
5321         * config/mips/mips.c: Fix some overly-long lines.
5322         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
5323         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
5324
5325 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5326
5327         * configure.ac: Search for as, ld below libexec/gcc.
5328         * configure: Regenerate.
5329
5330 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
5331
5332         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
5333         __builtin_arm_setwcx ().
5334         * config/arm/arm.c (arm_expand_builtin): Generate operands
5335         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
5336
5337 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
5338
5339         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
5340         and "wmuluh" to "wmulsm" and "wmulum", respectively.
5341         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
5342         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
5343         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
5344         (_mm_mulhi_pu16): Likewise.
5345
5346 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
5347
5348         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
5349         DECL_NAME != 0 before dereferencing.
5350
5351 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
5352
5353         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
5354         (s390_output_addr_const_extra): Declare.
5355         (s390_output_pool_entry): Remove FILE * argument.
5356         * config/s390/s390.c (s390_output_symbolic_const): Remove.
5357         (s390_output_addr_const_extra): New function.
5358         (print_operand_address): Call output_addr_const instead of
5359         s390_output_symbolic_const.
5360         (print_operand): Likewise.
5361         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
5362         Remove FILE * argument.
5363         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
5364         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
5365         call.
5366
5367 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5368
5369         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
5370         (struct edge, struct vertex, struct graph): New.
5371         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
5372         free_graph): New functions.
5373
5374 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
5375
5376         * config/mips/mips.md (casesi_internal, casesi_internal_di):
5377         Use ".set macro" to avoid warnings about multi-instruction
5378         macros, since they're intentional.
5379
5380 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
5381
5382         * config/darwin.h: Add include guards.  Remove old, now incorrect,
5383         comment about STANDARD_EXEC_PREFIX.
5384
5385         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
5386         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
5387         for installing .1 manpages.  Add rules for installing cpp
5388         and gcov manpages under their installed names.
5389
5390 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
5391
5392         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
5393         host, but try LD_FOR_TARGET first.
5394         * configure: Rebuilt.
5395
5396 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5397
5398         * dbxout.c: Move declaration of dbxout_type_decl outside
5399         #ifdef DBX_DEBUGGING_INFO.
5400         * c-parse.in: Don't give the asmdef production a type.
5401
5402 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5403
5404         * debug.h (struct gcc_debug_hooks): Add type_decl field.
5405         (debug_nothing_tree_int): Prototype.
5406         (dwarf_debug_hooks): Delete, unused.
5407         * debug.c (do_nothing_debug_hooks): Update.
5408         (debug_nothing_tree_int): New function.
5409         * langhooks.h (struct lang_hooks_for_decls):
5410         Remove builtin_type_decls field.
5411         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
5412         (LANG_HOOKS_DECLS): Update.
5413         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
5414         Use debug_hooks->type_decl.
5415         * dbxout.c (preinit_symbols): New static.
5416         (dbx_debug_hooks, xcoff_debug_hooks): Update.
5417         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
5418         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
5419         for symbols to output.
5420         (dbxout_type_decl): New function.
5421         (dbxout_symbol): If called before dbxout_init has run, queue
5422         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
5423         to TYPE_DECLs before emitting them.
5424         * xcoffout.c (assign_type_number): Delete.
5425         (xcoff_type_numbers): New static table.
5426         (xcoff_assign_fundamental_type_number): New function.
5427         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
5428         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
5429         * sdbout.c: Include varray.h.
5430         (deferred_global_decls): New static.
5431         (sdb_debug_hooks): Update.
5432         (sdbout_global_decl): If we can't emit something right now,
5433         remember it in deferred_global_decls.
5434         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
5435         (sdbout_init): Initialize deferred_global_decls.
5436         * Makefile.in: Update dependencies of sdbout.o.
5437         * dwarf2out.c (dwarf2out_type_decl): New function.
5438         (dwarf2_debug_hooks): Update.
5439         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
5440         * c-decl.c (getdecls): Just return 0.
5441         (check_for_loop_decls): Don't use getdecls.
5442         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
5443         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
5444
5445 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
5446
5447         * config/s390/s390.c (s390_sched_reorder2): Remove.
5448         (TARGET_SCHED_REORDER2): Do not redefine.
5449
5450 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5451
5452         * c-parse.in (maybe_type_qual): Delete.
5453         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
5454         (asm_argument): New grammar rules.
5455         (extdef_1): Use asmdef.
5456         (maybeasm): Move down with other asm rules; use simple_asm_expr.
5457         (xexpr): Move up with other expression rules.
5458         (stmt): Use asm_stmt.
5459
5460         * c-typeck.c (build_asm_expr): New function - body mostly
5461         pulled from build_asm_stmt.
5462         (build_asm_stmt): Just handle tacking on the volatile qualifier.
5463         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
5464
5465 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
5466
5467         PR bootstrap/13617
5468         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
5469         (mips_declare_object): Make variadic.
5470         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
5471         mips_output_aligned_decl_common.
5472         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
5473         (mips_declare_object): Make variadic.
5474
5475 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5476
5477         * function.c (update_epilogue_consts): Teach about binary operations.
5478
5479         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
5480         previous MEM_VOLATILE in REF.
5481         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
5482         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
5483
5484 2004-02-12  Gunther Nikl  <gni@gecko.de>
5485
5486         * config.gcc: Restore support for m68k-openbsd.
5487
5488 2004-02-12  Jan Hubicka  <jh@suse.cz>
5489
5490         * tree-optimize.c (tree_rest_of_compilation): Do not release
5491         DECL_ARGUMENTS.
5492
5493 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
5494
5495         * doc/install.texi: Fix the spelling of "explicitly".
5496
5497 2004-02-11  Eric Christopher  <echristo@redhat.com>
5498
5499         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
5500         duplicate argument structure of cpp_interpret_string.
5501         * cpphash.h: Move prototype...
5502         * cpplib.h: Here.
5503         * cpplib.c: Fix calls to match new function signature.
5504
5505 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
5506
5507         PR c/456
5508         * cppexp.c (num_binary_op): Don't allow comma operators in #if
5509         constant expressions at all outside C99 mode if pedantic.
5510
5511 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
5512
5513         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
5514         (log10_optab, log2_optab): Define corresponding macros.
5515         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
5516         * genopinit.c (optabs): Implement log10_optab and log2_optab
5517         using log10?f2 and log2?f2 patterns.
5518         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
5519         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
5520         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
5521         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5522
5523         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
5524         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
5525         log2, log2f and log2l built-ins as inline x87 intrinsics.
5526
5527 2004-02-11  Richard Henderson  <rth@redhat.com>
5528
5529         PR target/1532
5530         * flow.c (insn_dead_p): A clobber of a dead hard register is a
5531         dead insn after reload.
5532
5533 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
5534
5535         * tree.h (frame_base_decl): Add GTY marker.
5536         * var-tracking.c (frame_base_decl): Likewise.
5537
5538 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
5539
5540         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
5541         incorrect, hunk.
5542         (add_location_or_const_value_attribute): Use text_section_label,
5543         not TEXT_SECTION_NAME.
5544
5545 2004-02-11  Per Bothner  <per@bothner.com>
5546
5547         Represent column numbers using line-map's source_location.
5548         The "next available source_location" is now managed internally by
5549         line-maps.c rather than by clients.
5550         * line-map.h (struct line_map):  New field column_bits.
5551         <from_line>:  Rename field to start_location.
5552         (struct line_maps):  New fields highest_location and max_column_hint.
5553         (linemap_check_files_exited):  New declaration.
5554         (linemap_line_start):  New declaration.
5555         (linemap_add):  Remove from_line parameter; use highest_location field.
5556         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
5557         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
5558         (CURRENT_LINE_MAP):  Remove macro.
5559         (linemap_position_for_column):  New inline function.
5560         * line-map.c (linemap_init):  Clear new fields.
5561         (linemap_check_files_exited):  New function, extracted from ...
5562         (linemap_free):  Use linemap_check_files_exited.
5563         (linemap_add):  Remove from_line parameter.  Various updates.
5564         (linemap_line_start):  New function.
5565         (linemap_lookeup):  Update for new field names.
5566         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
5567         linemap_position_for_column may unpredictably change the current map,
5568         it is cleaner and simpler for us to not cache it in cpp_reader.
5569         (struct cpp_buffer):  New sysp field.
5570         Changed warned_cplusplus_comments and from_stage3 to bitfields.
5571         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
5572         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
5573         current map using linemap_lookup.
5574         (do_linemarker):  Also set buffer's sysp field.
5575         (destringize_and_run):  No longer need to decrement current line.
5576         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
5577         (search_path_head, open_file_failed):  Use buffer's sysp.
5578         (cpp_make_system_header):  Get current map using linemap_lookup.
5579         Also set buffer's sysp flag.
5580         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
5581         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
5582         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
5583         (struct cpp_reader):  ... and adding saved_line_base field.
5584         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
5585         Update accordingly.  Don't adjust line.
5586         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
5587         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
5588         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
5589         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
5590         * cpplex.c (_cpp_lex_direct):  Likewise.
5591         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
5592         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
5593         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
5594         Remove col field as it is now subsumed by src_loc.
5595         * cpperror.c:  Update various field, parameter, and macro names.
5596         (print_location):  If col==0, try SOURCE_COLUMN of line.
5597         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
5598         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
5599         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
5600         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
5601         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
5602         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
5603         (_cpp_lex_direct):  Use linemap_position_for_column.
5604         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
5605         parameter.  Instead get it from the line_table global.  Adjust callers.
5606         (print):  Remove map field.  Replace line field to src_line.
5607         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
5608         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
5609         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
5610         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
5611         * cpptrad.c (copy_comment):  Rename variable.
5612         * c-lex.c (map):  Remove static variable, for same reason we removed
5613         cpp_reader's map field.
5614         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
5615         to call linemap_lookup.
5616         (cb_line_change):  Token's line field replaced by src_loc.
5617         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
5618         Don't save new_map.
5619
5620         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
5621         source_location.
5622
5623 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
5624
5625         * config/rs6000/altivec.md (*movv4si_internal): At least one
5626         operand must be register_operand.
5627         (*movv8hi_internal1): Likewise.
5628         (*movv16qi_internal1): Likewise.
5629         (*movv4sf_internal1): Likewise.
5630
5631 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
5632
5633         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
5634         operand.
5635         (movv4hi_internal): Same.
5636         (movv2sf_internal): Same.
5637         (movv1di_internal): Same.
5638
5639 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
5640
5641         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
5642         TARGET_OLDABI consistently.
5643         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
5644         mips_va_arg,override_options,compute_frame_size,
5645         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
5646         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
5647         and TARGET_OLDABI consistently.
5648         * config/mips/mips.md (exception_receiver): Likewise.
5649         * config/mips/linux64.h: Likewise.
5650
5651 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
5652
5653         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
5654         Set AltiVec ABI and vrsave as default for ppc64 linux.
5655         (init_cumulative_args): Post error, if try to return
5656         value in AltiVec register without enable AltiVec.
5657         (function_arg_advance): Ditto for passing arguments.
5658
5659 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
5660
5661         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
5662         a label before updating its usage count.
5663
5664 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
5665
5666         * doc/install.texi: Remove extra cd.
5667
5668 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
5669
5670         * c-common.c (vector_size_helper): Remove; call
5671         reconstruct_complex_type() instead.
5672         * tree.c (reconstruct_complex_type): New function
5673         (formerly vector_size_helper() in c-common.c).
5674         (make_vector): Make externally visible.
5675         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
5676
5677 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
5678
5679         * config/h8300/h8300-protos.h: Add a prototype for
5680         h8300_regs_ok_for_stm.
5681         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
5682         * config/h8300/h8300.md (stm_h8300s_2_advanced,
5683         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
5684         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
5685         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
5686         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
5687         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
5688         ldm_h8300s_4_normal, ldm_h8300s_4): Use
5689         h8300_regs_ok_for_stm().
5690
5691 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
5692
5693         PR c/14088
5694         * real.c (real_from_string): Look for 'X' as well as 'x' in
5695         hexfloat strings.
5696
5697 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
5698
5699         * config/h8300/h8300.md: Remove an incorrect comment about
5700         peephole2.  Add comments.
5701
5702 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
5703
5704         PR/14058
5705         * emit-rtl.c (set_decl_incoming_rtl): New.
5706         * tree.h (set_decl_incoming_rtl): New.
5707         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
5708         DECL_INCOMING_RTL.
5709         * ada/misc.c (adjust_decl_rtl): Likewise.
5710
5711 2004-02-10  Per Bothner  <per@bothner.com>
5712
5713         * c-opts.c (c_common_post_options):   Don't emit working directory
5714         in cpp output if -P was specified.
5715
5716 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
5717
5718         PR c/14092
5719         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
5720         negate_expr back to the original type.
5721
5722 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
5723
5724         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
5725         bump retaddr here.
5726
5727 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
5728
5729         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
5730         gen_lowpart_SUBREG): Move under the file in which they
5731         are actually declared.
5732
5733 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
5734
5735         * doc/sourcebuild.texi: Add libada documentation.
5736
5737         * doc/install.texi: Update documentation on Ada build, now
5738         that the GNAT lib and tools are built automatically.
5739
5740 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
5741
5742         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
5743         && TARGET_IRIX.
5744
5745 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
5746
5747         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
5748         boundaries outside build_component_ref() call (a macro in ObjC++).
5749
5750 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
5751
5752         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
5753         (init_cumulative_args): Likewise.
5754         (a7_overlap_mentioned_p): Delete prototype.
5755         * config/xtensa/xtensa.c (struct machine_function): Replace
5756         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
5757         Add set_frame_ptr_insn field.
5758         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
5759         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
5760         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
5761         at the function entry and replace the operand with the pseudo.
5762         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
5763         argument and record this flag in CUMULATIVE_ARGS.
5764         (function_arg): Remove result_mode and special-case code to handle
5765         arguments in a7.  Instead, set need_a7_copy flag when there is an
5766         incoming argument in a7.
5767         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
5768         and use the value recorded in cfun->machine->set_frame_ptr_insn.
5769         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
5770         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
5771         special-case code.
5772         (a7_overlap_mentioned_p): Delete.
5773         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
5774         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
5775         arguments to init_cumulative_args and pass "incoming" flag instead.
5776         (BLOCK_REG_PADDING): Delete.
5777         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
5778         checks for reload_in_progress and reload_completed.  Update calls to
5779         xtensa_copy_incoming_a7.
5780         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
5781         to call xtensa_copy_incoming_a7.
5782
5783 2004-02-09  DJ Delorie  <dj@redhat.com>
5784
5785         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
5786         longer modify standard_exec_prefix, standard_bindir_prefix, or
5787         standard_startfile_prefix.
5788
5789 2004-02-09  James E Wilson  <wilson@specifixinc.com>
5790
5791         PR c++/11295
5792         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
5793         to expand_expr_real call, and pass in alt_rtl as last argument.
5794
5795         PR libstdc++/5625
5796         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
5797         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
5798         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
5799         * except.c (expand_builtin_extend_pointer): New.
5800         * except.h (expand_builtin_extend_pointer): Declare.
5801
5802 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
5803
5804         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
5805         unaligned loads and stores.
5806
5807 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5808
5809         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
5810         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
5811
5812         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
5813         * config/mips/iris5.h: ... here.
5814         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
5815
5816         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
5817         * config/mips/iris5.h: ... here.
5818
5819 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5820
5821         * configure.ac: Remove default executable files before AC_PROG_CC.
5822         * configure: Regenerate.
5823
5824 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
5825
5826         PR target/13721
5827         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
5828         print a operand other than a register.
5829
5830 2004-02-09  Roger Sayle  <roger@eyesopen.com>
5831
5832         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
5833         tree code rather than call fold_convert, which doesn't specify a
5834         default floating point to integer conversion.
5835
5836 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
5837
5838         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
5839         code to support SGS assembler.  Reformat adjacent code where possible.
5840         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
5841         definition.
5842         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
5843         for '%#'.
5844         * config/m68k/linux.h, config/m68k/m68k.c,
5845         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
5846         macros and asm_printf() format strings.
5847         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
5848         * config/m68k/linux.h: Update copyright.
5849         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
5850
5851 2004-02-08  Andreas Schwab  <schwab@suse.de>
5852             Bernardo Innocenti  <bernie@develer.com>
5853
5854         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
5855         REGISTER_PREFIX.
5856         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
5857         frame pointer register, overridable by OS targets.
5858         * (M68K_REGNAME): Macro to obtain register name for asm output,
5859         eventually replacing %a6 with M68K_FP_REG_NAME.
5860         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
5861         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
5862         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
5863         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
5864         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
5865
5866 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
5867
5868         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
5869         hook_rtx_tree_int_null.
5870         * targhooks.c (default_struct_value_rtx): Remove.
5871         * targhooks.h: Remove the prototype for
5872         default_struct_value_rtx.
5873         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
5874         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
5875         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
5876         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
5877         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
5878         config/rs6000/rs6000.c, config/s390/s390.c,
5879         config/stormy16/stormy16.c, config/v850/v850.c,
5880         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
5881         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
5882
5883 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
5884
5885         * README.Portability: Change "ISO C89" to "ISO C90".
5886         * c-parse.in (primary, initelt): Likewise.
5887
5888 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
5889
5890         * real.c (encode_ibm_extended): Normalize the input value before
5891         converting it to a double.  Handle the case where a normal value
5892         rounds to infinity.
5893
5894 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
5895
5896         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
5897         warning.
5898         * cse.c (preferrable): Change to preferable. Update all of its
5899         callers.
5900         * genautomata.c (ainsn): Change
5901         first_ainsn_with_given_equialence_num to
5902         first_ainsn_with_given_equivalence_num.  Update all of its
5903         references.
5904
5905 2004-02-08  Jan Hubicka  <jh@suse.cz>
5906
5907         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
5908
5909 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
5910
5911         * function.c (assign_parms): Fix formatting.
5912
5913 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5914
5915         * default.h (PROMOTE_PROTOTYPES): Remove.
5916         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
5917         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
5918         EXPAND_BUILTIN_SAVEREGS): Poison.
5919         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
5920         hook_bool_tree_false.
5921         (TARGET_PROMOTE_PROTOTYPES): Likewise.
5922         * target.h: Replace SETUP_INCOMING_VARARGS with
5923         targetm.calls.setup_incoming_varargs().
5924         * targhooks.c (default_promote_function_return): Remove.
5925         (default_promote_prototypes): Likewise.
5926         (default_struct_value_rtx): Always abort().
5927         (default_expand_builtin_saveregs): Always print an error
5928         message.
5929         (default_setup_incoming_varargs): Do nothing.
5930         (default_pretend_outgoing_varargs_named): Don't depend on
5931         SETUP_INCOMING_VARARGS.
5932         * targhooks.h: Remove the prototype for
5933         default_promote_function_return and
5934         default_promote_prototypes.
5935
5936 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5937
5938         * system.h (SHARED_SECTION_ASM_OP): Poison.
5939         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
5940         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
5941
5942 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
5943
5944         Bug 13856
5945         * c-decl.c (diagnose_mismatched_decls): Only give special
5946         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
5947         is also true.
5948         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
5949         DECL_FUNCTION_CODE when defining a built-in function.
5950         Don't update DECL_ESTIMATED_INSNS.
5951         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
5952         FUNCTION_DECLs.
5953         * tree.h: Delete DECL_ESTIMATED_INSNS.
5954         * tree-inline.c (struct inline_data): Delete inlined_insns field.
5955         (expand_call_inline, optimize_inline_calls): Don't update
5956         DECL_ESTIMATED_INSNS nor inlined_insns.
5957         * cgraphunit.c (cgraph_analyze_function): Don't update
5958         DECL_ESTIMATED_INSNS.
5959
5960 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
5961
5962         * c-common.c (shadow_warning): Delete.
5963         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
5964         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
5965         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
5966         * c-parse.in (free_parser_stacks): Delete.
5967
5968 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
5969
5970         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
5971         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
5972         Use the top level mkinstalldirs, not the one in the gcc subdir.
5973         * mkinstalldirs: Remove (from the gcc subdir).
5974
5975 2004-02-07  Roger Sayle  <roger@eyesopen.com>
5976
5977         PR middle-end/13696
5978         * fold-const.c (fold_convert): New function to provide type
5979         conversion to the middle-end without using convert.
5980         (negate_expr, associate_trees, size_diffop, omit_one_operand,
5981         operand_equal_for_comparison_p, pedantic_omit_one_operand,
5982         invert_truthvalue, optimize_bit_field_compare, range_binop,
5983         decode_field_reference, make_range, build_range_check, unextend,
5984         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
5985         fold_binary_op_with_conditional_arg, fold_inf_compare,
5986         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
5987         convert with calls to fold_convert.
5988
5989 2004-02-07  Jan Hubicka  <jh@suse.cz>
5990
5991         * genrecog.c (find_operand): add extra argument stop.
5992         (validate_pattern): Verify that mach_dup is duplicating operand
5993         defined lexically earlier.
5994
5995 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5996
5997         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
5998         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
5999         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
6000         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
6001         config/ia64/ia64.h, config/ip2k/ip2k.h,
6002         config/iq2000/iq2000.h, config/mips/iris5.h,
6003         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
6004         config/rs6000/aix51.h, config/rs6000/aix52.h,
6005         config/rs6000/darwin.h, config/rs6000/rs6000.h,
6006         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
6007         config/sparc/linux.h, config/sparc/linux64.h,
6008         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
6009         config/xtensa/xtensa.h: Remove the definitions of
6010         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
6011         MAX_WCHAR_TYPE_SIZE.
6012         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
6013         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
6014
6015 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
6016
6017         PR bootstrap/13990
6018         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
6019         gen_rtx_NE.
6020
6021 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
6022
6023         * var-tracking.c (vt_add_function_parameters): Surround checkings by
6024         #ifdef ENABLE_CHECKING and #endif.
6025
6026 2004-02-07  Roger Sayle  <roger@eyesopen.com>
6027
6028         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
6029         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
6030         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
6031         integer types and floating point with unsafe_math_optimizations.
6032         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
6033         Optimize A - B as A + (-B), if B is easily negated.
6034
6035 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6036
6037         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
6038         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
6039         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
6040         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
6041         Update copyright.
6042
6043 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6044
6045         * c-ppoutput.c, var-tracking.c: Fix comment typos.
6046
6047 2004-02-06  James E Wilson  <wilson@specifixinc.com>
6048
6049         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
6050         glibc 2.3 or better.
6051
6052 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6053
6054         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
6055         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
6056
6057 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
6058
6059         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
6060         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
6061         (SHLIB_MKMAP_OPTS): Delete.
6062         (TARGET_LIBGCC2_CFLAGS): Add -specs.
6063         (bispecs): Add rule.
6064         * config/rs6000/libgcc-ppc64.ver: New file.
6065         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
6066         (__floatdidf, __floatdisf): Optimize multiply.
6067         (__fixunstfdi): New function.
6068         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
6069         real and imag parts larger than one register.
6070         (function_arg): Correct type of reg used when fp arg split partially
6071         to stack.
6072         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
6073         and __MACH__ or __powerpc64__.
6074
6075 2004-02-06  Roger Sayle  <roger@eyesopen.com>
6076             Ulrich Weigand  <uweigand@de.ibm.com>
6077
6078         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
6079         of gen_highpart or gen_lowpart when the floating point format is
6080         wider than the result mode.
6081
6082 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
6083
6084         * dwarf2out.c (loclabel_num): Move into #ifdef
6085         DWARF2_DEBUGGING_INFO.
6086
6087 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
6088
6089         * objc/objc-act.c (build_super_template) the 'class' field of
6090         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
6091         (get_super_receiver): Likewise.
6092
6093 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6094
6095         * reload1.c (check_eliminable_occurrences): Optimize the reset
6096         of can_eliminate.
6097         (eliminate_regs_in_insn): Likewise.
6098
6099 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
6100             Josef Zlomek  <zlomekj@suse.cz>
6101
6102         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
6103         at the beginning of function, call dwarf2out_var_location for
6104         NOTE_INSN_VAR_LOCATION note.
6105         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
6106         decl_loc_table): New.
6107         (lookup_decl_loc): New function.
6108         (add_var_loc_to_decl): New function.
6109         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
6110         only if can_use_fbreg.
6111         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
6112         functions.
6113         (loc_descriptor): Likewise. Process VAR_LOCATION.
6114         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
6115         (loc_descriptor_from_tree): Call mem_loc_descriptor with
6116         can_use_fbreg == true.
6117         (add_location_or_const_value_attribute): Added parameter enum
6118         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
6119         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
6120         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
6121         with attr == DW_AT_location.
6122         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
6123         if frame_base_decl is defined and has a location list.
6124         (gen_variable_die): Call add_location_or_const_value_attribute with
6125         attr == DW_AT_location.
6126         (dwarf2out_var_location): New function.
6127         (dwarf2out_begin_function): New function.
6128         (dwarf2out_init): Create decl_loc_table.
6129
6130 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6131
6132         * loop.c (force_movables): Transitively increase the priorities of
6133         all insns forces by an insn, not just the first one.
6134
6135 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
6136             Daniel Berlin <dberlin@dberlin.org>
6137
6138         Josef Zlomek  <zlomekj@suse.cz>
6139         * Makefile.in (var-tracking.o): New.
6140         * common.opt (fvar-tracking): New.
6141         * flags.h (flag_var_tracking): New.
6142         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
6143         * opts.c (common_handle_option): Add OPT_fvar_tracking.
6144         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
6145         * rtl.c (note_insn_name): Likewise.
6146         * rtl.def (VAR_LOCATION): New.
6147         * rtl.h (NOTE_VAR_LOCATION): New.
6148         (NOTE_VAR_LOCATION_DECL): New.
6149         (NOTE_VAR_LOCATION_LOC): New.
6150         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
6151         (variable_tracking_main): New exported function.
6152         * timevar.def (TV_VAR_TRACKING): New.
6153         * toplev.c (enum dump_file_index): Added DFI_vartrack.
6154         (dump_file): "vartrack" was added (-dV).
6155         (flag_var_tracking): New.
6156         (f_options): "var-tracking" was added.
6157         (rest_of_handle_variable_tracking): New function.
6158         (rest_of_compilation): Run variable tracking.
6159         (process_options): If user has not specified flag_var_tracking set it
6160         according to optimize, debug_info_level and debug_hooks.
6161         * tree.h (frame_base_decl): New.
6162         * var-tracking.c: New file.
6163         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
6164         (ia64_override_options): Set flags to run variable tracking in machine
6165         dependent reorg instead of toplev.c.
6166         (ia64_reorg): Run variable tracking if wanted.
6167         * doc/invoke.texi: Mention variable tracking in -dV,
6168         add and -fvar-tracking.
6169         * doc/passes.texi: Added variable tracking pass.
6170
6171         Daniel Berlin <dberlin@dberlin.org>
6172         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
6173         * dbxout.c (dbx_debug_hooks): Likewise.
6174         (xcoff_debug): Likewise.
6175         * debug.c (do_nothing_debug_hooks): Likewise.
6176         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
6177         * dwarfout.c (dwarf_debug_hooks): Likewise.
6178         * sdbout.c (sdb_debug_hooks): Likewise.
6179         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6180         * final.c (final_scan_insn): Call var_location debug hook for each
6181         NOTE_INSN_VAR_LOCATION.
6182
6183 2004-02-06  Jan Hubicka  <jh@suse.cz>
6184
6185         * flow.c (update_life_info): Allocate reg_deaths when called from
6186         scheudler.
6187         (attempt_auto_inc):  Update life ranges accordingly.
6188
6189 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6190
6191         PR debug/11816
6192         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
6193
6194 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6195
6196         * cfganal.c (flow_call_edges_add): Never split a libcall block.
6197
6198 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
6199
6200         * dwarf2out.c (output_loc_list): Don't use deltas if we have
6201         a separate line info table in use.
6202         Use the correct size for terminators.
6203         (output_die): Use offset, not delta.
6204
6205 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
6206
6207         * doc/invoke.texi: Remove the pni option from -mfpmath=.
6208
6209 2004-02-06  Jan Hubicka  <jh@suse.cz>
6210
6211         * recog.c (split_all_insns): Do not update reg info.
6212         * regrename.c (regrename_optimize): Likewise.
6213         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
6214         * flow.c (struct propagate_block_info): Add insn_num field.
6215         (reg_deaths): New array.
6216         (life_analysis): Free reg_deaths info.
6217         (allocate_reg_life_data): Allocate reg_deaths array.
6218         (propagate_one_insn): Use new array.
6219         (init_propagate_block): Initialize it.
6220         (free_propagate_block_info): Finish compuation of
6221         REG_LIVE_LENGTH
6222         (attempt_auto_inc): Sanity check that REG_INFO is not
6223         computed at same time.
6224         (mark_used_regs): Update new array.
6225
6226         * reg-stack.c (subst_stack_regs): Unshare clobbers before
6227         substitution.
6228
6229 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6230
6231         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
6232         *extendqisi2_short_displ.
6233
6234 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
6235
6236         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
6237         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
6238         (emit_library_call_value_1): Likewise pass nargs.
6239         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
6240         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
6241         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
6242         parameter instead of scanning TYPE_ARGS_TYPES to count args.
6243         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
6244         prototype.
6245         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
6246         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
6247         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
6248         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
6249         INIT_CUMULATIVE_ARGS.
6250         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
6251         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
6252         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
6253         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
6254         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
6255         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
6256         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
6257         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
6258         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
6259         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
6260         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
6261         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
6262
6263 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6264
6265         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
6266         possible.
6267
6268 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6269
6270         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
6271         note containing (plus (reg) (const_int)), where reg is an
6272         eliminable reg, then perform the register elimination without
6273         depending on eliminate_regs().
6274
6275 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6276
6277         * config/arc/arc.c (arc_return_in_memory): Check the return
6278         value of int_size_in_bytes against -1.  Don't check
6279         TREE_ADDRESSABLE.
6280         * config/avr/avr.c (avr_return_in_memory): Check the return
6281         value of int_size_in_bytes against -1.
6282         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
6283         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
6284         Likewise.
6285         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
6286         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
6287         Likewise.
6288
6289 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6290
6291         * config/frv/frv-protos.h: Remove the prototype for
6292         frv_setup_incoming_varargs.
6293         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
6294         (frv_setup_incoming_varargs): Make it static.
6295         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
6296
6297 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6298
6299         * config/fr30/fr30-protos.h: Remove the prototype for
6300         fr30_setup_incoming_varargs.
6301         Update the prototypes for fr30_num_arg_regs and
6302         fr30_function_arg_partial_nregs.
6303         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
6304         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6305         (fr30_setup_incoming_varargs): Make it static.
6306         Add argument second_time.  Don't do anything when second_time
6307         is nonzero.
6308         (fr30_num_arg_regs): Change the type of the first argument to
6309         enum machine_mode.
6310         (fr30_function_arg_partial_nregs): Change the type of the
6311         second argument to enum machine_mode.
6312         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
6313         (SETUP_INCOMING_VARARGS): Remove.
6314
6315 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6316
6317         * config/arc/arc-protos.h: Remove the prototype for
6318         arc_setup_incoming_varargs.
6319         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
6320         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6321         (arc_setup_incoming_varargs): Make it static.
6322         (arc_external_libcall): Likewise.
6323         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
6324         Remove the commented-out definition of
6325         ASM_OUTPUT_EXTERNAL_LIBCALL.
6326
6327 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
6328
6329         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
6330         to $$(slibdir) in the installation commands.
6331
6332 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
6333
6334         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
6335         with inner_regno, not regno.
6336         * rtlanal.c (refers_to_regno_p): Same.
6337
6338 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6339
6340         * config.gcc: Remove i370 support.
6341
6342 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
6343
6344         * doc/install.texi:  Update automake and autoconf version
6345         requirements.  Note where to find gcj automake version.
6346
6347 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
6348
6349         * Makefile.in (generate-manpages): Move dependencies to ...
6350         (man): here.
6351         * doc/makefile.texi: Document new targets.
6352         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
6353
6354 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
6355
6356         PR/13485
6357         Makefile.in (srcextra):  Add a level of indirection to ...
6358         (gcc.srcextra): ... here.
6359         (po-generated): Delete.
6360         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
6361         options.c.
6362         (start.encap): Remove superfluous lang.srcextra dependency.
6363         objc/Make-lang.in (po-generated):  Delete.
6364
6365 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6366
6367         * config/ia64/ia64.c (REG_GP): Remove.
6368
6369 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6370
6371         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
6372
6373 2004-02-05  Devang Patel  <dpatel@apple.com>
6374
6375         * dwarf2out.c (force_type_die): Look up input type itself
6376         instead of root_type() of type.
6377
6378 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
6379
6380         * config/s390/s390.md ("*tmqidi_ext"): New insn.
6381         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
6382         pre-reload splitters are transformed to post-reload
6383         define_insn_and_split patterns.
6384         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
6385
6386 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6387
6388         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
6389         TARGET_PROMOTE_PROTOTYPES.
6390
6391 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6392
6393         PR middle-end/13750
6394         Revert:
6395         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
6396         PR pch/13361
6397         * c-typeck.c (constructor_asmspec): Delete.
6398         (struct initializer_stack): Delete field 'asmspec'.
6399         (start_init): Delete saving of asmspec.
6400         (finish_init): Don't update constructor_asmspec.
6401         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
6402         * stmt.c (expand_asm): Duplicate strings from tree.
6403         (expand_asm_operands): Likewise.
6404         * tree.c (tree_size): Update computation of size of STRING_CST.
6405         (make_node): Don't make STRING_CST nodes.
6406         (build_string): Allocate string with tree node.
6407         * tree.def (STRING_CST): Update comment.
6408         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
6409         (tree_string): Place contents of string in tree node.
6410         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
6411         from tree.
6412
6413 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
6414
6415         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
6416         msgid.
6417
6418 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
6419
6420         * config/rs6000/altivec.md (*movv4si_internal): At least one
6421         operand must be altivec_register_operand.
6422         (*movv8hi_internal1): Likewise.
6423         (*movv16qi_internal1): Likewise.
6424         (*movv4sf_internal1): Likewise.
6425
6426 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
6427
6428         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
6429         * configure: Regenerate.
6430
6431 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
6432
6433         * doc/install.texi: Update description of --gxx-include-dir to
6434         give correct default value.
6435
6436 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6437
6438         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
6439         8 with MAC_REG.
6440
6441 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6442
6443         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
6444         gen_rtx_PARALLEL.
6445
6446 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6447
6448         * emit-rtl.c: Update the comment about the file.
6449
6450 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
6451
6452         * sourcebuild.texi (Test Idioms): Update testcase naming
6453         conventions.
6454
6455 2004-02-04  Per Bothner  <per@bothner.com>
6456
6457         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
6458         * c-ppoutput.c (pp_dir_change):  New function.
6459         * c-common.h (pp_dir_change):  New declaration.
6460         * cpplib.h (struct cpp_options):  Remove working_directory field.
6461         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
6462         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
6463         Don't handle -fworking_directory here, but in c_common_post_options.
6464         (read_original_directory): Don't back up when done.
6465         Don't clear no-longer used working_directory flag.
6466         * cpplib.h:  Update declarations to match.
6467         * c-lex.c (cb_dir_change):  Move to c-opts.c.
6468         (init_c_lex):  Don't set dir_change callback here, since we want
6469         to set it even if flag_preprocess_only.
6470         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
6471         (c_common_post_options):  Set dir_change callback.
6472         Call pp_dir_change if approporiate.
6473         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
6474         unneeded parameter and result. Do LC_RENAME for <built-in>.
6475         (c_common_post_options):  Call cpp_read_main_file here instead.
6476         (c_common_init):  Update accordingly.
6477         (push_command_line_include):  Don't cpp_push_main_file.
6478         Do LC_RENAME rather than LC_LEASE to get back to main file.
6479         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
6480         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
6481         files, but call finish_options for all files.
6482         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
6483         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
6484         cpp_find_main_file + cpp_push_main_file.
6485         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
6486         * opts.c (handle_options):  Only set main_input_filename first time.
6487
6488 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
6489
6490         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
6491
6492 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
6493
6494         * reload.c (find_equiv_reg): When checking for register overlap,
6495         don't index hard_regno_nregs with a pseudo-reg.
6496
6497 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6498
6499         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
6500
6501 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
6502
6503         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
6504         against FIRST_PSEUDO_REGISTER.
6505
6506 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6507
6508         * Makefile.in: Move target, host overrides after per-language
6509         fragments.
6510
6511         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
6512         (GNATLIBCFLAGS): Remove -g.
6513
6514 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6515
6516         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
6517         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6518         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6519         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
6520         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
6521         config/sparc/sparc.c, config/vax/vax.c: Revert the
6522         replacements of "FALLTHRU" with "Fall through" done in the
6523         previous patch.
6524
6525 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6526
6527         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
6528         config/arm/arm.c, config/arm/arm.md,
6529         config/cris/cris-protos.h, config/fr30/fr30.c,
6530         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
6531         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
6532         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
6533         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
6534         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
6535         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
6536         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
6537         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
6538         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
6539         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
6540         config/s390/s390.md, config/sparc/netbsd-elf.h,
6541         config/sparc/openbsd.h, config/sparc/sparc.c,
6542         config/xtensa/lib2funcs.S: Fix comment formatting.
6543
6544 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6545
6546         * config/alpha/alpha.c, config/arc/arc.c,
6547         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
6548         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
6549         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
6550         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
6551         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6552         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6553         config/iq2000/iq2000.c, config/m32r/m32r.c,
6554         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6555         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
6556         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
6557         config/rs6000/rs6000.h, config/sparc/sparc.c,
6558         config/vax/vax.c: Fix comment typos.  Follow spelling
6559         conventions.
6560
6561 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6562
6563         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
6564         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
6565         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
6566         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
6567         config/arm/fpa.md, config/arm/iwmmxt.md,
6568         config/arm/netbsd-elf.h, config/arm/netbsd.h,
6569         config/m68hc11/m68hc11.md, config/mips/iris5.h,
6570         config/mn10300/mn10300.md, config/rs6000/altivec.md,
6571         config/sparc/netbsd-elf.h: Update copyright.
6572
6573 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
6574
6575         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
6576         for all modes whose size is greater than 8 bytes if ARCH32.
6577         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
6578         by reference if ARCH32.
6579
6580 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
6581
6582         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
6583
6584 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6585
6586         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
6587         to before adddi3 insn patterns.
6588         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
6589         "reload_insi"): Move to before addsi3 insn patterns.
6590
6591 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
6592
6593         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
6594         parameter.  Use it instead of current_function_is_thunk.
6595         * function.h (struct function): Update documentation for is_thunk.
6596         * tree.h (CALL_FROM_THUNK_P): New macro.
6597         * config/alpha/alpha.c (alpha_sa_mask): Do not check
6598         no_new_pseudos when testing current_function_is_thunk.
6599         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
6600
6601 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6602
6603         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
6604         TARGET_SETUP_INCOMING_VARARGS.
6605
6606 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6607
6608         * emit-rtl.c (gen_rtx): Remove.
6609         * genattrtab.c: Don't mention gen_rtx in a comment.
6610         * rtl.h: Remove the prototype for gen_rtx.
6611         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
6612
6613 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6614
6615         * config/arc/arc.h, config/fr30/fr30.h
6616         (SETUP_INCOMING_VARARGS): Remove the target-independent
6617         comments.
6618         * doc/tm.texi: Don't mention deprecated target macros.
6619
6620 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6621
6622         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
6623         target-independent comment.
6624
6625 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6626
6627         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
6628         mention deprecated target macros.
6629
6630 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6631
6632         * config.gcc: Remove obsolete ports and configurations.
6633         * config/linux-aout.h, config/netware.h,
6634         config/t-linux-gnulibc1, config/d30v/abi,
6635         config/d30v/d30v-protos.h, config/d30v/d30v.c,
6636         config/d30v/d30v.h, config/d30v/d30v.md,
6637         config/d30v/libgcc1.asm, config/d30v/t-d30v,
6638         config/dsp16xx/dsp16xx-modes.def,
6639         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
6640         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
6641         config/i370/README, config/i370/i370-c.c,
6642         config/i370/i370-protos.h, config/i370/i370.c,
6643         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6644         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
6645         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
6646         config/i386/moss.h, config/i386/netware.h,
6647         config/i386/svr3.ifile, config/i386/svr3dbx.h,
6648         config/i386/svr3gas.h, config/i386/svr3z.ifile,
6649         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
6650         config/i960/i960-c.c, config/i960/i960-coff.h,
6651         config/i960/i960-modes.def, config/i960/i960-protos.h,
6652         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6653         config/i960/rtems.h, config/i960/t-960bare,
6654         config/m68k/hp310.h, config/m68k/hp320.h,
6655         config/m68k/hp320base.h, config/m68k/m68kv4.h,
6656         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
6657         Remove.
6658         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
6659         doc/md.texi: Remove mentions of obsolete ports.
6660
6661 2004-02-04  Jan Hubicka  <jh@suse.cz>
6662
6663         * alias.c (find_base_term, get_addr):  Do not dereference NULL
6664         pointer when all VALUE's locations has been invalidated.
6665         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
6666
6667 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
6668
6669         * doc/invoke.texi (x86 options): Fix spelling/wording.
6670
6671 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
6672
6673         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
6674         put the original string in a comment.
6675         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
6676         * config/mips/mips.c (mips_output_ascii): Likewise.
6677         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
6678
6679 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6680
6681         * system.h (GIV_SORT_CRITERION): Poison.
6682         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
6683         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
6684
6685 2004-02-03  Roger Sayle  <roger@eyesopen.com>
6686
6687         PR target/9348
6688         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
6689         multiplies with a multiplication of the wrong signedness, its the
6690         signedness of the multiplication that we've performed that needs to
6691         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
6692         if expand_mult_highpart_adjust places the result in target.
6693
6694 2004-02-03  Richard Henderson  <rth@redhat.com>
6695
6696         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
6697
6698 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
6699
6700         * config.gcc (sh[234]l): Use little endian fragments.
6701
6702 2004-02-03  Paul Koning  <pkoning@equallogic.com>
6703
6704         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
6705         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
6706         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
6707         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
6708         floating point format.
6709         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
6710         the above functions.
6711         (output_move_quad): Output float values in correct target format.
6712         (legitimate_const_double_p): New function.
6713         * config/pdp11/pdp11.h: Fix typos.
6714         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
6715         (TARGET_FLOAT_FORMAT): Ditto.
6716         (pdp11_f_format, pdp11_d_format): Add external declarations.
6717         (MAX_REGS_PER_ADDRESS): Corrected.
6718         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
6719         (PRINT_OPERAND): Output float literals in target format.
6720
6721 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
6722
6723         PR c++/13975
6724         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
6725         TI_PRIVATE.
6726         (access_public_node): Redefine.
6727         (access_protected_node): Likewise.
6728         (access_private_node): Likewise.
6729         * tree.c (build_common_tree_nodes): Create access_public_node,
6730         access_protected_node, and access_private_node.
6731
6732 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
6733
6734         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
6735         (MASK_INLINE_INT_DIV_THR): Ditto.
6736         (MASK_INLINE_SQRT_LAT): Ditto.
6737         (MASK_INLINE_SQRT_THR): Ditto.
6738         (MASK_DWARF2_ASM): Ditto.
6739         (MASK_EARLY_STOP_BITS): Ditto.
6740
6741 2004-02-02  Paul Brook  <paul@codesourcery.com>
6742
6743         Merge from csl-arm-branch.
6744
6745         2004-01-30  Paul Brook  <paul@codesourcery.com>
6746
6747         * aof.h (REGISTER_NAMES): Add vfp reg names
6748         (ADDITIONAL_REGISTER_NAMES): Ditto.
6749         * aout.h (REGISTER_NAMES): Ditto.
6750         (ADDITIONAL_REGISTER_NAMES): Ditto.
6751         * arm-protos.h: Update/Add Prototypes.
6752         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
6753         Only allow 0.0 for VFP.
6754         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
6755         (values_fp): Rename from values_fpa.  Update Users.
6756         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
6757         Update users.  Only check valid constants for this hardware.
6758         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
6759         Only allow consts for FPA.
6760         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
6761         Only allow consts for FPA.
6762         (use_return_insn): Check for saved VFP regs.
6763         (arm_legitimate_address_p): Handle VFP DFmode addressing.
6764         (arm_legitimize_address): Ditto.
6765         (arm_general_register_operand): New function.
6766         (vfp_mem_operand): New function.
6767         (vfp_compare_operand): New function.
6768         (vfp_secondary_reload_class): New function.
6769         (arm_float_compare_operand): New function.
6770         (vfp_print_multi): New function.
6771         (vfp_output_fstmx): New function.
6772         (vfp_emit_fstm): New function.
6773         (arm_output_epilogue): Output VPF reg restore code.
6774         (arm_expand_prologue): Output VFP reg save code.
6775         (arm_print_operand): Add 'P'.
6776         (arm_hard_regno_mode_ok): Return modes for VFP regs.
6777         (arm_regno_class): Return classes for VFP regs.
6778         (arm_compute_initial_elimination_offset): Include space for VFP regs.
6779         (arm_get_frame_size): Ditto.
6780         * arm.h (FIXED_REGISTERS): Add VFP regs.
6781         (CALL_USED_REGISTERS): Ditto.
6782         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
6783         (FIRST_VFP_REGNUM): Define.
6784         (LAST_VFP_REGNUM): Define.
6785         (IS_VFP_REGNUM): Define.
6786         (FIRST_PSEUDO_REGISTER): Include VFP regs.
6787         (HARD_REGNO_NREGS): Handle VFP regs.
6788         (REG_ALLOC_ORDER): Add VFP regs.
6789         (enum reg_class): Add VFP_REGS.
6790         (REG_CLASS_NAMES): Ditto.
6791         (REG_CLASS_CONTENTS): Ditto.
6792         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
6793         (REG_CLASS_FROM_LETTER): Add 'w'.
6794         (EXTRA_CONSTRAINT_ARM): Add 'U'.
6795         (EXTRA_MEMORY_CONSTRAINT): Define.
6796         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
6797         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
6798         (REGISTER_MOVE_COST): Ditto.
6799         (PREDICATE_CODES): Add arm_general_register_operand,
6800         arm_float_compare_operand and vfp_compare_operand.
6801         * arm.md (various): Rename as above.
6802         (divsf3): Enable when TARGET_VFP.
6803         (divdf3): Ditto.
6804         (movdfcc): Ditto.
6805         (sqrtsf2): Ditto.
6806         (sqrtdf2): Ditto.
6807         (arm_movdi): Disable when TARGET_VFP.
6808         (arm_movsi_insn): Ditto.
6809         (movsi): Only split with general regs.
6810         (cmpsf): Use arm_float_compare_operand.
6811         (push_fp_multi): Restrict to TARGET_FPA.
6812         (vfp.md): Include.
6813         * vfp.md: New file.
6814         * fpa.md (various): Rename as above.
6815         * doc/md.texi: Document ARM w and U constraints.
6816
6817         2004-01-15  Paul Brook  <paul@codesourcery.com>
6818
6819         * config.gcc: Add with_fpu.  Allow with-float=softfp.
6820         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
6821         Break out of loop when we find a float-abi.  Fix typo.
6822         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
6823         Set -mfloat-abi=.
6824         * doc/install.texi: Document --with-fpu.
6825
6826         2003-01-14  Paul Brook  <paul@codesourcery.com>
6827
6828         * config.gcc (with_arch): Add armv6.
6829         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
6830         * config/arm/arm.c (arm_overrride_options): Ditto.
6831
6832         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
6833
6834         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
6835         (FL_ARCH6): Renamed from FL_ARCH6J.
6836         (arm_arch3m): Renamed from arm_fast_multiply.
6837         (arm_arch6): Renamed from arm_arch6j.
6838         * arm.h: Update all uses of above.
6839         * arm-cores.def: Likewise.
6840         * arm.md: Likewise.
6841
6842         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
6843         not arm6j.  Add entry for arch armv6.
6844
6845         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
6846
6847         * arm.c (arm_emit_extendsi): Delete.
6848         * arm-protos.h (arm_emit_extendsi): Delete.
6849         * arm.md (zero_extendhisi2): Also handle zero-extension of
6850         non-subregs.
6851         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
6852         (thumb_zero_extendhisi2): Only match if not v6.
6853         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
6854         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
6855         (thumb_extendqisi2): Likewise.
6856         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
6857         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
6858         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
6859         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
6860         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
6861         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
6862         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
6863         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
6864         (arm_extendqisi2addsi): Likewise.
6865
6866         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
6867
6868         Revert this change:
6869         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6870         + REG addressing modes.
6871
6872         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6873         + REG addressing modes.
6874
6875         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
6876
6877         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
6878         CONSTANT_P_RTX.
6879
6880         2003-30-12  Paul Brook  <paul@codesourcery.com>
6881
6882         * longlong.h: protect arm inlines with !defined (__thumb__)
6883
6884         2003-30-12  Paul Brook  <paul@codesourcery.com>
6885
6886         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
6887
6888         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
6889
6890         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
6891         change.
6892
6893         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
6894
6895         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
6896         to the virtual incoming args pointer for downward stacks.
6897
6898         2003-12-29  Paul Brook  <paul@codesourcery.com>
6899
6900         * config/arm/arm-cores.def: Add cost function.
6901         * config/arm/arm.c (arm_*_rtx_costs): New functions.
6902         (arm_rtx_costs): Remove
6903         (struct processors): Add rtx_costs field.
6904         (all_cores, all_architectures): Ditto.
6905         (arm_override_options): Set targetm.rtx_costs.
6906         (thumb_rtx_costs): New function.
6907         (arm_rtx_costs_1): Remove cases handled elsewhere.
6908         * config/arm/arm.h (processor_type): Add COSTS parameter.
6909
6910         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
6911
6912         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
6913         (arm926ejs.md): Include it.
6914         * config/arm/arm926ejs.md: New pipeline description.
6915
6916         2003-12-24  Paul Brook  <paul@codesourcery.com>
6917
6918         * config/arm/arm.c (arm_arch6j): New variable.
6919         (arm_override_options): Set it.
6920         (arm_emit_extendsi): New function.
6921         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
6922         * config/arm/arm.h (arm_arch6j): Declare.
6923         * config/arm/arm.md: Add sign/zero extend insns.
6924
6925         2003-12-23  Paul Brook  <paul@codesourcery.com>
6926
6927         * config/arm/arm.c (all_architectures): Add armv6.
6928         * doc/invoke.texi: Document it.
6929
6930         2003-12-19  Paul Brook  <paul@codesourcery.com>
6931
6932         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
6933         insn patterns to match.
6934         * config/arm/arm-generic.md: Ditto.
6935         * config/arm/cirrus.md: Ditto.
6936         * config/arm/fpa.md: Ditto.
6937         * config/amm/iwmmxt.md: Ditto.
6938         * config/arm/arm1026ejs.md: Ditto.
6939         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
6940         for 11_loadb.
6941
6942         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
6943
6944         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
6945         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
6946         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
6947         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
6948         arm_no_early_mul_dep): Correctly deal with conditional execution,
6949         parallels and single shift operations.
6950         (arm_no_early_alu_shift_value_dep): Define.
6951         * arm.md (attr type): Replace 'normal' with 'alu',
6952         'alu_shift' and 'alu_shift_reg'.
6953         (attr core_cycles): Adjust.
6954         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
6955         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
6956         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
6957         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
6958         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
6959         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
6960         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
6961         attribute appropriately.
6962         * config/arm/arm1026ejs.md (alu_op): Adjust.
6963         (alu_shift_op, alu_shift_reg_op): New.
6964         * config/arm/arm1136.md: Add better bypasses for early
6965         registers. Remove load[234] and store[234] bypasses.
6966         (11_alu_op): Adjust.
6967         (11_alu_shift_op, 11_alu_shift_reg_op): New.
6968
6969         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
6970
6971         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
6972         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
6973         * config/arm/arm.c (arm_no_early_store_addr_dep,
6974         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
6975         * config/arm/arm1026ejs.md: Add load-store bypass.
6976         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
6977         Add bypasses between instructions.
6978
6979         2003-12-10  Paul Brook  <paul@codesourcery.com>
6980
6981         * config/arm/arm.c (arm_fpu_model): New variable.
6982         (arm_fload_abi): New variable.
6983         (target_fpe_name): Rename from target_fp_name.
6984         (target_fpu_name): New variable.
6985         (arm_is_cirrus): Remove.
6986         (fpu_desc): New struct.
6987         (all_fpus): Define.
6988         (pf_model_for_fpu): Define.
6989         (all_loat_abis): Define.
6990         (arm_override_options): Set fp arch flags based on -mfpu=
6991         and -float-abi=.
6992         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
6993         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
6994         (*): Use new TARGET_* flags.
6995         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
6996         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
6997         (TARGET_SOFT_FLOAT): Ditto.
6998         (TARGET_SOFT_FLOAT_ABI): New.
6999         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
7000         TARGET_HARD_FLOAT.
7001         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
7002         (TARGET_OPTIONS): Add -mfpu=.
7003         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
7004         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
7005         (arm_pf_model): Define.
7006         (arm_float_abi_type): Define.
7007         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
7008         * config/arm/arm.md: Use new TARGET_* flags.
7009         * config/arm/cirrus.md: Ditto.
7010         * config/arm/fpa.md: Ditto.
7011         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
7012         * config/arm/semi.h (ASM_SPEC): Ditto.
7013         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
7014         (FPUTYPE_DEFAULT): Set to VFP.
7015         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
7016
7017         2003-11-22  Phil Edwards  <phil@codesourcery.com>
7018
7019         PR target/12476
7020         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
7021         'bx' instead of 'b' to avoid branch range restrictions.  Output
7022         the thunk immediately before the thunked-to function.
7023         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
7024         .thumb_func if a thunk is being generated.  Emit .code 16 along
7025         with .thumb_func if a thunk is not being generated.
7026
7027         2003-11-15  Nicolas Pitre <nico@cam.org>
7028
7029         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
7030         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
7031         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
7032         (lshrdi3_iwmmxt): Renamed from lshrdi3.
7033         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
7034
7035         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
7036             Ian Lance Taylor  <ian@wasabisystems.com>
7037
7038         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
7039         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
7040
7041         2003-11-05  Phil Edwards  <phil@codesourcery.com>
7042
7043         * config/arm/arm.md (insn):  Add new V6 instruction names.
7044         (generic_sched):  New attr.
7045         * config/arm/arm-generic.md:  Use generic_sched here.
7046         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
7047         stages of pipeline.  Adjust latency counts accordingly.
7048         * config/arm/arm1136jfs.md:  New file.
7049
7050         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
7051
7052         * config/arm/arm.h (processor_type): New enumeration type.
7053         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
7054         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
7055         (CPP_CPU_ARCH_SPEC): Likewise.
7056         * config/arm/arm.c (arm_tune): New variable.
7057         (all_cores): Use cores.def.
7058         (all_architectures): Add representative processor.
7059         (arm_override_options): Restructure way in which tuning
7060         information is deduced.
7061         * arm.md: Update "insn" and "type" attributes throughout.
7062         (insn): New attribute.
7063         (type): Compute "mult" from "insn" attribute.  Add load2,
7064         load3, load4 alternatives.
7065         (arm automaton): Move to arm-generic.md.
7066         * config/arm/arm-cores.def: New file.
7067         * config/arm/arm-generic.md: Likewise.
7068         * config/arm/arm1026ejs.md: Likewise.
7069
7070 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
7071
7072         * doc/invoke.texi (SPARC options): Remove -mflat and
7073         all -mxxx (xxx:chip) options.
7074         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
7075         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
7076         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
7077         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
7078         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
7079         * config/sparc/sparc.c: Likewise.
7080         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
7081         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
7082         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
7083         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
7084         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
7085         (sparc_flat_must_save_register_p): Likewise.
7086         (sparc_flat_compute_frame_size): Likewise.
7087         (sparc_flat_save_restore): Likewise.
7088         (sparc_flat_function_prologue): Likewise.
7089         (sparc_flat_function_epilogue): Likewise.
7090         (sparc_flat_epilogue_delay_slots): Likewise.
7091         (sparc_flat_eligible_for_epilogue_delay): Likewise.
7092         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
7093         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
7094         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
7095         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
7096         (CONDITIONAL_REGISTER_USAGE): Likewise.
7097         (FRAME_POINTER_REQUIRED): Likewise.
7098         (INITIAL_ELIMINATION_OFFSET): Likewise.
7099         (BASE_RETURN_VALUE_REG): Likewise.
7100         (BASE_OUTGOING_VALUE_REG): Likewise.
7101         (BASE_PASSING_ARG_REG): Likewise.
7102         (BASE_INCOMING_ARG_REG): Likewise.
7103         (INCOMING_REGNO): Likewise.
7104         (OUTGOING_REGNO): Likewise.
7105         (LOCAL_REGNO): Likewise.
7106         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
7107         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
7108         (EPILOGUE_USES): Likewise.
7109         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
7110         ("flat" attribute): Delete.
7111         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
7112         handling.
7113         (call followed by jump define_peephole's): Delete.
7114         (exception_receiver): Likewise.
7115         (builtin_setjmp_receiver): Likewise.
7116         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
7117
7118 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
7119
7120         PR c/11658
7121         PR c/13994
7122         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
7123         on langhooks.h.
7124         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
7125         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
7126         Include langhooks.h.  Replace c_common_truthvalue_conversion
7127         with the truthvalue_conversion language hook throughout.
7128         (expr_no_commas): Call default_conversion before save_expr
7129         for the first term of the production 'x ? : y'.
7130         * c-common.c (c_common_truthvalue_conversion): Remove
7131         obsolete block.  Invoke recursively the hook instead
7132         of this function.
7133         * c-convert.c (convert): handle ERROR_MARK_NODE.
7134         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
7135         returned by the truthvalue_conversion language hook.
7136         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
7137         c_objc_common_truthvalue_conversion.
7138         * c-objc-common.c (c_objc_common_truthvalue_conversion):
7139         New function.
7140         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
7141         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
7142         c_objc_common_truthvalue_conversion.
7143
7144 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7145
7146         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
7147         of gen_rtx.
7148         (LIBCALL_VALUE): Likewise.
7149         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
7150         gen_rtx_CC0 instead of gen_rtx.
7151         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
7152         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
7153         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
7154         gen_rtx.
7155         (m68hc11_emit_logical): Likewise.
7156
7157 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7158
7159         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
7160         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
7161         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
7162         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
7163         config/mips/mips.md, config/mmix/mmix.c,
7164         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
7165         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
7166         config/rs6000/altivec.md, config/s390/s390.c,
7167         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
7168         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
7169         Use const0_rtx instead of GEN_INT (0).  Do the same for other
7170         constants that are readily available.
7171
7172 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7173
7174         * doloop.c, optabs.c, regmove.c, sched-deps.c,
7175         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
7176         instead of GEN_INT (0).  Do the same for other constants that
7177         are readily available.
7178
7179 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7180
7181         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
7182         gen_rtx.
7183         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
7184         instead of gen_rtx.
7185         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
7186         gen_rtx.
7187         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
7188         gen_rtx_ASHIFT instead of gen_rtx.
7189         (udivmodqi4): Likewise.
7190
7191 2004-02-02  Richard Henderson  <rth@redhat.com>
7192
7193         PR target/13789
7194         * expr.c (store_expr): Use force_operand before emit_move_insn.
7195
7196 2004-02-02  Jeff Law  <law@redhat.com>
7197             Roger Sayle  <roger@eyesopen.com>
7198
7199         * tree.c (commutative_tree_code, associative_tree_code): New
7200         functions.
7201         (iterative_hash_expr): Use commutative_tree_code.
7202         * tree.h (commutative_tree_code, associative_tree_code): Declare.
7203         * fold-const.c (operand_equal_p): Use commutative_tree_code
7204         rather than inlining the commutativity check.
7205         (fold): Likewise.
7206
7207 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7208
7209         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
7210         * config/frv/frv-protos.h: Remove the prototype for
7211         frv_function_arg_keep_as_reference.
7212         * config/frv/frv.c (frv_function_arg_keep_as_reference):
7213         Remove.
7214         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
7215         * config/stormy16/stormy16.h: Remove the commented-out
7216         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
7217
7218 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
7219
7220         PR target/13914
7221         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
7222         for retaddr_column.
7223
7224 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7225
7226         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
7227         gen_rtx.
7228
7229 2004-02-02  Eric Christopher  <echristo@redhat.com>
7230             Zack Weinberg  <zack@codesourcery.com>
7231
7232         * c-opts.c (c_common_handle_option): Add -finput-charset.
7233         * c.opt: Ditto.
7234         * cppcharset.c (one_iso88591_to_utf8): Remove.
7235         (convert_iso88591_utf8): Ditto.
7236         (conversion_tab): Remove 8859-1 converter.
7237         (_cpp_input_to_utf8): Remove.
7238         (_cpp_init_iconv_buffer): Ditto.
7239         (_cpp_close_iconv_buffer): Ditto.
7240         (_cpp_convert_input): New function.
7241         (_cpp_default_encoding): Ditto.
7242         * cpphash.h: Add/remove prototypes for above.
7243         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
7244         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
7245         for narrow execution and input character sets.
7246         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
7247         * doc/cppopts.texi: Document -finput-charset.
7248
7249 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
7250
7251         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
7252         against FIRST_PSEUDO_REGISTER.
7253
7254 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7255
7256         * doc/invoke.texi (SPARC options): Further improve.
7257
7258 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7259
7260         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
7261         config/h8300/h8300.c, config/ip2k/ip2k.md,
7262         config/iq2000/iq2000.c, config/mips/mips.c,
7263         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
7264         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
7265         config/v850/v850.md: Fix indentation.
7266
7267 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7268
7269         * config/sparc/sparc.c (function_arg_slotno): Align TImode
7270         arguments on a 16-byte boundary in the parameter array if ARCH64.
7271         Split handling of TFmode.
7272
7273 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
7274
7275         * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
7276         Don't test CONSTANT_P (x).
7277         (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
7278         ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
7279         Fix misindentation.
7280
7281 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7282
7283         * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
7284
7285 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7286
7287         * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
7288         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
7289         config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
7290         config/iq2000/iq2000.c, config/m32r/m32r.c,
7291         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
7292         config/mn10300/mn10300.c, config/rs6000/rs6000.c,
7293         config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
7294         config/stormy16/stormy16.c, config/v850/v850.md,
7295         config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
7296
7297 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
7298
7299         * config/mcore/mcore.c (block_move_sequence): Replace
7300         gen_rtx_CONST_INT with GEN_INT.
7301
7302 2004-02-02  Jan Hubicka  <jh@suse.cz>
7303
7304         * alias.c (record_set): Use hard_regno_nregs.
7305         * bt-load.c (find_btr_reference, note_btr_set): Likewise.
7306         * builtins.c (apply_args_size): Likewise.
7307         * caller-save.c (setup_save_areas, save_call_clobbered_regs,
7308         mark_set_regs, add_stored_regs, mark_referenced_regs,
7309         insert_restore, insert_save, insert_one_insn): Likewise.
7310         * cfgcleanup.c: Include regs.h
7311         (mark_effect, mentions_nonequal_regs): Likewise.
7312         * cfgrtl.c (mark_killed_regs): Likewise
7313         * combine.c (update_table_tick, record_value_for_reg,
7314         record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
7315         reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
7316         reg_bitfield_target_p, distribute_notes): Likewise.
7317         * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
7318         exp_equiv_p, cse_insn): Likewise.
7319         * cselib.c (cselib_lookup): Likewise.
7320         (cselib_invalidate_regno, cselib_record_set): Likewise.
7321         * df.c (df_ref_record): Likewise.
7322         * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
7323         Likewise.
7324         * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
7325         count_or_remove_death_notes_bb): Likewise.
7326         * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
7327         * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
7328         mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
7329         * integrate.c (mark_stores): Likewise.
7330         * jump.c (delete_prior_computation): Likewise.
7331         * lcm.c (reg_dies, reg_becomes_live): Likewise.
7332         * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
7333         * loop.c (LOOP_REGNO_NREGS): Likewise.
7334         * postreload.c (reload_combine, reload_combine_note_store,
7335         reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
7336         * ra-colorize.c (combine, color_usable_p, get_free_reg,
7337         calculate_dont_begin, calculate_dont_begin, colorize_one_web,
7338         try_recolor_web, insert_coalesced_conflicts, check_colors,
7339         break_precolored_alias): Likewise.
7340         * ra-debug.c: Include regs.h
7341         (ra_print_rtx_object): Likewise.
7342         * ra-rewrite (choose_spill_colors): Likewise.
7343         (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
7344         * ra.c (init_ra): Likewise.
7345         * recog.c (reg_fits_class_p, peep2_reg_dead_p,
7346         peep2_find_free_register): Likewise.
7347         * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
7348         * regclass.c (hard_regno_nregs): New array.
7349         (init_reg_modes_once): Initialize it.
7350         (choose_hard_reg_mode): Use it.
7351         (record_reg_classes): Likewise.
7352         * regmove.c (mark_flags_life_zones): Likewise.
7353         * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
7354         scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
7355         copy_value, maybe_mode_change, find_oldest_value_reg,
7356         copyprop_hardreg_forward_1):
7357         * regs.h (hard_regno_nregs): Declare.
7358         * realod.c (reload_inner_reg_of_subreg): Use it.
7359         (push_reload, combine_reloads, find_dummy_reload,
7360         hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
7361         refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
7362         reload_adjust_reg_for_mode): Likewise.
7363         * reload1.c (compute_use_by_pseudos, count_pseudo,
7364         count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
7365         spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
7366         clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
7367         allocate_reload_reg, choose_reload_regs, emit_reload_insns,
7368         delete_output_reload): Likewise.
7369         * resource.c (update_live_status, mark_referenced_resources,
7370         mark_set_resources, mark_target_live_regs): Likewise.
7371         * rtlanal.c:  Include regs.h
7372         (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
7373         dead_or_set_regno_p, find_regno_note, find_reg_fusage,
7374         subreg_regno_offset, subreg_offset_representable_p,
7375         hoist_test_store): Likewise.
7376         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
7377         * sched-rgn.c (check_live_1, update_live_1): Likewise.
7378         * stmt.c: Include regs.h
7379         (decl_conflicts_with_clobbers_p): Likewise.
7380         * varasm.c (make_decl_rtl): Likewise.
7381         * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
7382
7383 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
7384
7385         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
7386         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
7387         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
7388         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
7389         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
7390         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
7391         config/iq2000/iq2000.h, config/m32r/m32r.c,
7392         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
7393         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
7394         config/mcore/mcore.c, config/mcore/mcore.h,
7395         config/mcore/mcore.md, config/mips/mips.c,
7396         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
7397         config/rs6000/rs6000.c, config/s390/s390.c,
7398         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
7399         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
7400         "gen_rtx (FOO, " with "gen_rtx_FOO (".
7401
7402 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
7403
7404         * config/h8300/h8300.md (two peephole2's): New.
7405
7406 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
7407
7408         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
7409         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
7410         (ASM_CPU_SPEC): Likewise
7411         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
7412         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
7413
7414 2004-02-01  Roger Sayle  <roger@eyesopen.com>
7415
7416         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
7417         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
7418         (expand_builtin): Always call expand_builtin_pow.
7419
7420 2004-02-01  Roger Sayle  <roger@eyesopen.com>
7421
7422         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
7423         BUILT_IN_SIGNBITL): New GCC builtins.
7424         * builtins.c (expand_builtin_signbit): New function to RTL expand
7425         calls to signbit, signbitf and signbitl as inline intrinsics.
7426         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
7427         (fold_builtin_signbit): New function to perform constant folding
7428         of signbit, signbitf and signbitl.
7429         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
7430
7431         * doc/extend.texi: Document new signbit{,f,l} builtins.
7432
7433 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
7434
7435         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
7436
7437 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
7438
7439         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
7440         "mips_const_double_ok" and "simple_memory_operand", which were
7441         removed from the MIPS port with the mips-3_4-rewrite branch merge.
7442         * config/mips/mips.c (mips16_lay_out_constants): Update comment
7443         for removal of simple_memory_operand.
7444
7445 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7446
7447         * config/c4x/c4x.md: Use GEN_INT instead of
7448         gen_rtx (CONST_INT, ...).
7449
7450 2004-01-31  Richard Henderson  <rth@redhat.com>
7451
7452         * varasm.c (output_constant_pool): Don't zap the pool.
7453
7454 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7455
7456         * genrecog.c (decision_type): Add DT_const_int.
7457         (write_cond) [DT_const_int]: Print a comparison against small
7458         constant.
7459         (write_node): Simplify comparisons against small constants
7460         before printing tests.
7461
7462 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7463
7464         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
7465         instead of gen_rtx_CONST_INT.
7466
7467 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7468
7469         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
7470         instead of gen_rtx_CONST_INT.
7471
7472 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7473
7474         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
7475         hook_bool_CUMULATIVE_ARGS_false.
7476         * targhooks.c (default_strict_argument_naming): Rename to
7477         hook_bool_CUMULATIVE_ARGS_false.
7478         * targhooks.h: Update the prototype for
7479         default_strict_argument_naming.
7480
7481 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7482
7483         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
7484         * config/sh/sh.h: Likewise.
7485         * config/sh/sh.md: Likewise.
7486
7487 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
7488
7489         * doc/invoke.texi (SPARC options): Restructure and update.
7490
7491 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7492
7493         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
7494         STRICT_ARGUMENT_NAMING): Poison.
7495         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
7496         hook_bool_tree_false.
7497         * targhooks.c (default_promote_function_args): Remove.
7498         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
7499         Don't check incoming.
7500         (default_strict_argument_naming): Don't use
7501         STRICT_ARGUMENT_NAMING.
7502         * targhooks.h: Remove the prototype for
7503         default_promote_function_args.
7504
7505 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7506
7507         * config/i386/i386-protos.h: Remove the prototype for
7508         ix86_setup_incoming_varargs.
7509         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
7510         (ix86_setup_incoming_varargs): Make it static.
7511         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
7512
7513 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7514
7515         * alloc-pool.c: Fix comment typos.
7516         * builtin-types.def: Likewise.
7517         * builtins.def: Likewise.
7518         * c-pretty-print.c: Likewise.
7519         * df.h: Likewise.
7520         * reload1.c: Likewise.
7521
7522 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7523
7524         * doc/invoke.texi: Follow spelling conventions.
7525         * doc/tm.texi: Likewise.
7526
7527 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7528
7529         * doc/install.texi: Fix typos.
7530         * doc/invoke.texi: Likewise.
7531
7532 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
7533
7534         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
7535         registers as pointers.
7536         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
7537
7538 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
7539
7540         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
7541         and restore it to gen_lowpart_general on exit.
7542         (gen_lowpart_for_combine): Adjust all callers to go through
7543         gen_lowpart.
7544         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
7545         and restore it to gen_lowpart_general on exit.
7546         (gen_lowpart_if_possible): Adjust all callers to go through
7547         gen_lowpart.
7548         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
7549         (gen_lowpart): Declare as pointer to function, initialized to
7550         gen_lowpart_general.
7551         * rtl.h (gen_lowpart): Declare as pointer to function.
7552
7553 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7554
7555         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
7556         * calls.c: Likewise.
7557         * emit-rtl.c: Likewise.
7558         * function.c: Likewise.
7559         * reload1.c: Likewise.
7560         * config/i386/cygming.h: Likewise.
7561         * config/i386/i386.c: Likewise.
7562         * config/i386/winnt.c: Likewise.
7563
7564 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
7565
7566         PR bootstrap/9249
7567         * doc/install.texi: document --enable-__cxa_atexit option.
7568         * configure.ac: Disable __cxa_atexit if not supported.
7569         * configure: Regenerate.
7570
7571 2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
7572
7573         * ggc-zone.c (ggc_free): New function.
7574
7575 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7576
7577         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
7578         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
7579         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
7580         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
7581         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
7582         config/alpha/alpha.c, config/alpha/alpha.h,
7583         config/alpha/alpha.md, config/alpha/unicosmk.h,
7584         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
7585         config/c4x/c4x-protos.h, config/c4x/c4x.md,
7586         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
7587         config/frv/frvend.c, config/i386/cygming.h,
7588         config/i386/djgpp.h, config/i386/emmintrin.h,
7589         config/i386/gthr-win32.c, config/i386/i386-interix.h,
7590         config/i386/i386-protos.h, config/i386/openbsd.h,
7591         config/i386/winnt.c, config/i386/xm-mingw32.h,
7592         config/i386/xmmintrin.h, config/ia64/ia64.md,
7593         config/iq2000/iq2000.md, config/m32r/m32r.md,
7594         config/m68k/m68k.md, config/mcore/mcore-elf.h,
7595         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
7596         config/mips/iris5gas.h, config/mips/iris6.h,
7597         config/mips/iris6gas.h, config/mips/linux.h,
7598         config/mips/mips.md, config/mips/netbsd.h,
7599         config/mips/openbsd.h, config/mips/windiss.h,
7600         config/pa/fptr.c, config/rs6000/aix.h,
7601         config/rs6000/altivec.h, config/rs6000/darwin.h,
7602         config/rs6000/xcoff.h, config/s390/s390-protos.h,
7603         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
7604         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
7605         config/sparc/sol2.h: Update copyright.
7606
7607 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
7608
7609         * Makefile.in (abs_docdir, abs_srcdir): Define.
7610         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
7611
7612 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7613
7614         * genconfig.c (main): Have CC0_P check its operand even on a
7615         target without cc0.
7616
7617 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7618
7619         * config/alpha/alpha.c: Remove mentions of deprecates macros
7620         in comments, remove some target-independent comments about target
7621         macros, and/or add minimal function comments for target hook
7622         implementations.
7623         * config/avr/avr.c: Likewise.
7624         * config/ia64/ia64.h: Likewise.
7625         * config/ip2k/ip2k.c: Likewise.
7626         * config/iq2000/iq2000.c: Likewise.
7627         * config/m32r/m32r.h: Likewise.
7628         * config/m68hc11/m68hc11.c: Likewise.
7629         * config/mcore/mcore.c: Likewise.
7630         * config/mmix/mmix.c: Likewise.
7631         * config/mn10300/mn10300.c: Likewise.
7632         * config/pa/pa.c: Likewise.
7633         * config/pdp11/pdp11.c: Likewise.
7634         * config/rs6000/rs6000.h: Likewise.
7635         * config/sh/sh.c: Likewise.
7636         * config/sh/sh.h: Likewise.
7637         * config/sparc/sparc.c: Likewise.
7638         * config/sparc/sparc.h: Likewise.
7639         * config/stormy16/stormy16.c: Likewise.
7640         * config/xtensa/xtensa.c: Likewise.
7641
7642 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7643
7644         PR optimization/12147
7645         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
7646         RELOAD_FOR_OPADDR_ADDR.
7647         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
7648         might be reused as RELOAD_FOR_OPADDR_ADDR register.
7649
7650 2004-01-30  Jan Hubicka  <jh@suse.cz>
7651
7652         * reload.c (get_secondary_mem): Fix updating of
7653         secondary_memlocs_elim_used.
7654
7655 2004-01-30  Richard Henderson  <rth@redhat.com>
7656
7657         * varasm.c (struct rtx_const, struct pool_constant): Remove.
7658         (MAX_RTX_HASH_TABLE): Remove.
7659         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
7660         (first_pool, last_pool, pool_offset): Remove.
7661         (struct rtx_constant_pool): Split out from ...
7662         (struct varasm_status): ... here.  Reference one via pointer.
7663         (struct constant_descriptor_rtx): Merge struct pool_constant.
7664         (SYMHASH): Remove.
7665         (decode_rtx_const): Remove.
7666         (const_hash_rtx, compare_constant_rtx): Remove.
7667         (record_constant_rtx): Remove.
7668         (const_desc_rtx_hash, const_desc_rtx_eq): New.
7669         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
7670         (const_rtx_hash_1, const_rtx_hash): New.
7671         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
7672         (simplify_subtraction): Use simplify_rtx.
7673         (force_const_mem): Rewrite to use new data structures.
7674         (find_pool_constant): Likewise.
7675         (get_pool_constant, get_pool_constant_mark,
7676         get_pool_constant_for_function, get_pool_mode,
7677         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
7678         (output_constant_pool_2): Split out from output_constant_pool.
7679         (output_constant_pool_1): Likewise.  Use new pool datastructures.
7680         (output_constant_pool): Zap entire pool datastructure.
7681         (mark_constant): Use new pool datastructures.
7682         (mark_constants): Use for_each_rtx.
7683         (mark_constant_pool): Use new pool datastructures.
7684
7685 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
7686
7687         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
7688         Copy operands[1] to pseudo for simplify_gen_subreg.
7689
7690 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7691
7692         * gcse.c (bypass_block): Fix a typo in the previous check-in
7693         to the file.
7694
7695 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
7696
7697         * toplev.c: Include alloc-pool.h.
7698         * Makefile.in (toplev.c): Update dependencies.
7699
7700 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7701
7702         * combine.c (simplify_shift_const, case XOR): Be careful when
7703         commuting XOR with ASHIFTRT.
7704
7705 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7706             Eric Botcazou  <ebotcazou@libertysurf.fr>
7707
7708         * config/sparc/sparc-protos.h: Remove the prototype for
7709         sparc_builtin_saveregs.
7710         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7711         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7712         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7713         (TARGET_STRUCT_VALUE_RTX): Likewise.
7714         (TARGET_RETURN_IN_MEMORY): Likewise.
7715         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7716         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7717         (sparc_builtin_saveregs): Make it static.
7718         (sparc_promote_prototypes): New.
7719         (sparc_struct_value_rtx): Likewise.
7720         (sparc_return_in_memory): Likewise.
7721         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
7722         (PROMOTE_FUNCTION_RETURN): Likewise.
7723         (RETURN_IN_MEMORY): Likewise.
7724         (STRUCT_VALUE): Likewise.
7725         (STRUCT_VALUE_INCOMING): Likewise.
7726         (EXPAND_BUILTIN_SAVEREGS): Likewise.
7727         (STRICT_ARGUMENT_NAMING): Likewise.
7728         (PROMOTE_PROTOTYPES): Likewise.
7729
7730         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
7731
7732 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7733
7734         PR c/12818
7735         * varasm.c (const_hash_1) <STRING_CST>: Use the
7736         address to compute the hash value if flag_writable_strings.
7737         (compare_constant) <STRING_CST>: Compare the addresses
7738         if flag_writable_strings.
7739         (build_constant_desc): Do not copy the expression for a
7740         STRING_CST if flag_writable_strings.
7741
7742 2004-01-30  Jan Hubicka  <jh@suse.cz>
7743
7744         * alloc-pool.c: Include hashtab.h
7745         (alloc_pool_descriptor): New structure
7746         (alloc_pool_hash): New global variable.
7747         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
7748         (create_alloc_pool): Update statistics.
7749         (free_alloc_pool): Likewise.
7750         (pool_alloc): Likewise.
7751         (output_info): New structure
7752         (print_statistics, dump_alloc_pool_statistics): New function.
7753         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
7754         (dump_alloc_pool_statistics): Declare.
7755         * toplev.c (finalize):  Dump statistics.
7756
7757         * reload.c (secondary_memlocs_elim_used): New static variable.
7758         (get_secondary_mem): Update it.
7759         (find_reloads): Use it.
7760
7761 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
7762
7763         * toplev.c: Fix broken checkin of 2003-12-30, again.
7764
7765 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7766
7767         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
7768         s390*-*-* targets by specifying a 'nop' insn.
7769         * configure: Regenerate.
7770
7771 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7772
7773         PR target/11475
7774         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
7775
7776 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
7777
7778         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
7779         of addr when creating MEM copy.
7780
7781 2004-01-29  Devang Patel  <dpatel@apple.com>
7782
7783         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
7784
7785 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
7786
7787         PR inline-asm/6162
7788         * reload.c (find_reloads): Only support one pair of commutative
7789         operands.
7790
7791 2004-01-29  Roger Sayle  <roger@eyesopen.com>
7792
7793         PR java/13824
7794         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
7795         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
7796         recursion.
7797
7798 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
7799
7800         * config/frv/frv.c: Don't mention deprecated macros in
7801         comments.  Remove some target-independent comments about
7802         target macros.
7803         * config/frv/frv.h: Likewise.
7804
7805 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7806
7807         * cfghooks.c (split_block): Set probability and count of the
7808         new edge.
7809
7810 2005-01-29  Josef Zlomek  <zlomekj@suse.cz>
7811
7812         * dwarf2out.c (struct die_struct): Added field decl_id.
7813         (decl_die_table): Changed to hash table.
7814         (decl_die_table_allocated): Deleted.
7815         (decl_die_table_in_use): Deleted.
7816         (DECL_DIE_TABLE_INCREMENT): Deleted.
7817         (decl_die_table_hash): New function.
7818         (decl_die_table_eq): New function.
7819         (lookup_decl_die): Lookup in a hash table.
7820         (equate_decl_number_to_die): Insert into a hash table.
7821         (dwarf2out_init): Init hash table decl_die_table.
7822
7823 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
7824
7825         PR optimization/13424
7826         * expr.c (store_constructor): Revert 2003-12-03 change.
7827
7828         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
7829         expected before returning early.  Avoid sharing RTL if they
7830         need to be changed.
7831
7832         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
7833         handling so that memory attributes are preserved.  Don't call
7834         ix86_set_move_mem_attrs.
7835         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
7836         (ix86_expand_clrstr): Rename src argument to
7837         dst.  Rework rep_stos and strset handling so that memory attributes
7838         are preserved.
7839         (ix86_expand_strlen): Pass src argument to
7840         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
7841         memory attributes are preserved.
7842         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
7843         change_address instead of gen_rtx_MEM.
7844         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
7845         expanders.
7846         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
7847         strmovqi, strmovqi_rex64): Remove.
7848         (rep_mov*, strmov*): Prefix insn names with *.
7849         (strset, strset_singleop, rep_stos): New expanders.
7850         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
7851         strsetqi, strsetqi_rex64): Remove.
7852         (rep_stos*, strset*): Prefix insn names with *.
7853         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
7854         to SImode.
7855         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
7856         are preserved.
7857         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
7858         Prefix insn names with *.
7859         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
7860         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
7861         (strlenqi_1): New expander.
7862         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
7863
7864 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7865
7866         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
7867         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
7868         verify_flow_info): Declaration removed.
7869         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
7870         (debug_bb, debug_bb_n): Add argument to dump_bb call.
7871         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
7872         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
7873         instead of delete_block.
7874         * cfghooks.c: Include timevar.h and toplev.h.
7875         (cfg_hooks): Define here.
7876         (verify_flow_info, dump_bb): Moved from cfg.c.
7877         (redirect_edge_and_branch, redirect_edge_and_branch_force,
7878         split_block, split_block_after_labels, move_block_after,
7879         delete_basic_block, split_edge, create_basic_block,
7880         create_empty_bb, can_merge_blocks_p, merge_blocks,
7881         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7882         New functions.
7883         * cfghooks.h (struct cfg_hooks): Added fields name,
7884         make_forwarder_block, tidy_fallthru_edge and
7885         move_block_after. Changed type of verify_flow_info, dump_bb,
7886         split_block fields. Renamed cfgh_split_edge and delete_block
7887         fields.
7888         (redirect_edge_and_branch, redirect_edge_and_branch_force,
7889         split_block, delete_block, split_edge, create_basic_block,
7890         can_merge_blocks_p, merge_blocks): Macros removed.
7891         (cfg_hooks): Do not export.
7892         (verify_flow_info, dump_bb, redirect_edge_and_branch,
7893         redirect_edge_and_branch_force, split_block, split_block_after_labels,
7894         move_block_after, delete_basic_block, split_edge, create_basic_block,
7895         create_empty_bb, can_merge_blocks_p, merge_blocks,
7896         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7897         Declare.
7898         (cfg_layout_rtl_cfg_hooks): Declare.
7899         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
7900         New functions.
7901         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
7902         (redirect_edge_with_latch_update): Removed.
7903         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
7904         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
7905         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
7906         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
7907         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
7908         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
7909         cfghooks.c.
7910         (rtl_create_basic_block): Coding style fix.
7911         (rtl_tidy_fallthru_edge, rtl_move_block_after,
7912         rtl_make_forwarder_block): New functions.
7913         (update_cfg_after_block_merging): Removed.
7914         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
7915         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
7916         to dump_bb.
7917         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
7918         find_if_case_2): Don't update dominators.
7919         * timevar.def (TV_CFG_VERIFY): New.
7920         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
7921         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
7922         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
7923         (remove_bbs): Don't call remove_bbs.
7924         (create_preheader): Use make_forwarder_block.
7925         (mfb_keep_just, mfb_update_loops): New static functions.
7926
7927 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
7928
7929         * config/avr/avr.h: Remove target-independent comments about
7930         target macros.
7931
7932 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
7933
7934         * timevar.c (timevar_print): Mention when checking is enabled.
7935
7936 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
7937
7938         * c-lex.c (c_lex): Rename to...
7939         (c_lex_with_flags): Add new parameter to get CPP flags.
7940         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
7941         * c-pragma.h (c_lex_with_flags): Declare.
7942
7943 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7944
7945         * config/mcore/mcore.c (mcore_external_libcall): Add a
7946         comment.
7947         (mcore_return_in_memory): Likewise.
7948
7949 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7950
7951         * config/mcore/mcore-protos.h: Remove the prototype for
7952         mcore_setup_incoming_varargs.
7953         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
7954         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
7955         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7956         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7957         (TARGET_STRUCT_VALUE_RTX): Likewise.
7958         (TARGET_RETURN_IN_MEMORY): Likewise.
7959         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7960         (mcore_setup_incoming_varargs): Make it static.  Receive the
7961         first argument by reference.  Add argument second_time.
7962         (mcore_external_libcall): New.
7963         (mcore_return_in_memory): Likewise.
7964         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
7965         (PROMOTE_FUNCTION_RETURN): Likewise.
7966         (STRUCT_VALUE): Likewise.
7967         (RETURN_IN_MEMORY): Likewise.
7968         (SETUP_INCOMING_VARARGS): Likewise.
7969         (PROMOTE_PROTOTYPES): Likewise.
7970         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7971
7972 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7973
7974         * config/m32r/m32r-protos.h: Remove the prototype for
7975         m32r_setup_incoming_varargs.
7976         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
7977         (TARGET_STRUCT_VALUE_RTX): Likewise.
7978         (TARGET_RETURN_IN_MEMORY): Likewise.
7979         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7980         (m32r_return_in_memory): New.
7981         (m32r_setup_incoming_varargs): Make it static.
7982         * config/m32r/m32r.h: Remove #undef of
7983         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
7984         definitions of PROMOTE_FUNCTION_ARGS and
7985         PROMOTE_FUNCTION_RETURN.
7986         (PROMOTE_PROTOTYPES): Remove.
7987         (RETURN_IN_MEMORY): Likewise.
7988         (STRUCT_VALUE): Likewise.
7989
7990 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7991
7992         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
7993         (TARGET_STRUCT_VALUE_RTX): Likewise.
7994         (m68k_struct_value_rtx): Likewise.
7995         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
7996         STRUCT_VALUE_REGNUM.
7997         (PROMOTE_PROTOTYPES): Remove.
7998         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
7999         STRUCT_VALUE_REGNUM.
8000         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
8001         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
8002
8003 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8004
8005         * config/stormy16/stormy16.c
8006         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
8007         TARGET_BUILD_BUILTIN_VA_LIST.
8008
8009 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8010
8011         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
8012         (TARGET_STRUCT_VALUE_RTX): Likewise.
8013         (TARGET_RETURN_IN_MEMORY): Likewise.
8014         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8015         (v850_return_in_memory): Likewise.
8016         (v850_setup_incoming_varargs): Likewise.
8017         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
8018         (SETUP_INCOMING_VARARGS): Likewise.
8019         (RETURN_IN_MEMORY): Likewise.
8020         (STRUCT_VALUE): Likewise.
8021
8022 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8023
8024         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
8025         (fr30_setup_incoming_varargs): Don't use
8026         STRICT_ARGUMENT_NAMING.
8027         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
8028         (STRICT_ARGUMENT_NAMING): Likewise.
8029
8030 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8031
8032         * config/frv/frv-protos.h: Remove the prototype for
8033         frv_expand_builtin_saveregs.
8034         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
8035         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8036         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
8037         STRUCT_VALUE_REGNUM.
8038         (frv_expand_builtin_saveregs): Make it static.
8039         (frv_struct_value_rtx): New.
8040         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
8041
8042 2004-01-29  Jan Hubicka  <jh@suse.cz>
8043
8044         PR c++/12850
8045         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
8046         initial pointers.
8047         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
8048         for functions that will be only inlined.
8049         (cgraph_mark_function_to_output): Likewise.
8050         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
8051         do not clear function body.
8052         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
8053         (tree_rest_of_compilation): Reorganize the logic releasing function
8054         body to use callgraph datastructure.
8055
8056 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8057
8058         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
8059         to register_operand.
8060
8061 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
8062
8063         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
8064         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
8065         match_operand expressions so that all match_dups appear
8066         lexically after their corresponding match_operands.
8067
8068 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8069
8070         * config/h8300/h8300.c (WORD_REG_USED): Use
8071         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
8072         (compute_saved_regs): Likewise.
8073         (h8300_expand_prologue): Likewise.  Allocate locals after
8074         saving registers.
8075         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
8076         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
8077         registers.
8078         (h8300_initial_elimination_offset): Adjust for the new frame
8079         layout, which swaps flips the order of locals and saved
8080         registers.
8081         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
8082         (HARD_FRAME_POINTER_REGNUM): New.
8083         (ELIMINABLE_REGS): Add an elimination rule from
8084         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
8085         (REGISTER_NAMES): Add fp.
8086         * config/h8300/h8300.md (FP_REG): Change to 11.
8087         (HFP_REG): New.
8088
8089 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8090
8091         * genrecog.c (write_node): Remove a useless local variable.
8092
8093 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
8094
8095         * Makefile.in (options.c options.h): Use stamp file s-options to
8096         avoid unnecessary rebuilds.
8097         (options.o): New target listing dependencies.
8098         (gtyp-gen.h): Use stamp file s-gtyp-gen.
8099         (STAGESTUFF): Add s-gtyp-gen.
8100
8101 2004-01-28  Richard Henderson  <rth@redhat.com>
8102
8103         * ggc.h (ggc_free): Declare.
8104         * ggc-common.c (ggc_realloc): Use it.
8105         * ggc-page.c: Remove lots of inline markers.
8106         (globals): Add free_object_list.
8107         (ggc_alloc): Tidy.
8108         (ggc_free, validate_free_objects): New.
8109         (poison_pages): Provide default.
8110         (ggc_collect): Call validate_free_objects; emit markers to
8111         the debug file.
8112
8113 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
8114             Jim Wilson  <wilson@specifixinc.com>
8115
8116         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
8117         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
8118         scratch pointer.
8119         (ia64_secondary_reload_class): Delete case GR_REGS.
8120         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
8121         Do not allocate a scratch register.
8122         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
8123
8124 2004-01-28  Jan Hubicka  <jh@suse.cz>
8125
8126         * gcse.c (bypass_block): Prevent edges to be unified when we are
8127         about to emit compenstation code.
8128
8129 2004-01-28  Nick Clifton  <nickc@redhat.com>
8130
8131         * config/arm/arm.c (arm_expand_builtin): Force second argument of
8132         the setcwx insn into a register.
8133
8134 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
8135
8136         * config/fp-bit.c (pack_d): When using paired doubles to implement
8137         a long double, round the high part separately.
8138         (unpack_d): Fix the case in which the high part is a power of two
8139         and the low part is a nonzero value of the opposite sign.
8140
8141 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8142
8143         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
8144         (TARGET_STRUCT_VALUE_RTX): Likewise.
8145         (c4x_external_libcall): Likewise.
8146         (c4x_struct_value_rtx): Likewise.
8147         * config/c4x/c4x.h: Remove.
8148         (STRUCT_VALUE_REGNUM): Likewise.
8149         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8150
8151 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8152
8153         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
8154         (TARGET_STRUCT_VALUE_RTX): Likewise.
8155         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
8156         (STRUCT_VALUE): Likewise.
8157         (PROMOTE_PROTOTYPES): Likewise.
8158
8159 2004-01-27  Roger Sayle  <roger@eyesopen.com>
8160
8161         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
8162         CONST_INT before using INTVAL.
8163
8164 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
8165
8166         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
8167         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
8168         frame if !TARGET_BACKCHAIN.
8169         * config/s390/s390.md ("allocate_stack"): Use pattern only if
8170         TARGET_BACKCHAIN.
8171         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
8172
8173 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
8174
8175         * ia64.c (ia64_function_arg): When placing HFAs in integer
8176         registers, do not special case the mode used for complex
8177         types.  Do not advance int_regs until the current register
8178         is full.
8179
8180 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
8181
8182         PR target/7297
8183         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
8184
8185 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
8186
8187         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
8188         slow, unaligned loads and stores while debugging.  Fix formatting.
8189
8190 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
8191
8192         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
8193         of computing wmode.
8194         (restore_stack_nonlocal): Same.
8195
8196 2004-01-27  Devang Patel <dpatel@apple.com>
8197
8198         * Makefile.in (dwarf2out.o): Depend on input.h
8199         * dbxout.c (dbx_debug_hooks): Add new empty hook for
8200         imported_module_or_decl.
8201         (xcoff_debug_hooks): Same.
8202         * sdbout.c (sdb_debug_hooks): Same.
8203         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
8204         * debug.c (do_nothing_debug_hooks): Same.
8205         (debug_nothing_tree_tree): New function.
8206         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
8207         * dwarf2out.c: Include input.h.
8208         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
8209         (remove_child_TAG): New function.
8210         (dwarf_tag_name): Handle DW_TAG_imported_module.
8211         (gen_subprogram_die): Equate decl number to declaration die. Do not
8212         remove all children dies while reusing declaration die for definition.
8213         Instead, selectively remove only formal parameters.
8214         (gen_variable_die): Equate variable decl to declaration die.
8215         (gen_field_die): Equate field decl to line number.
8216         (force_namespace_die): Replace it with ...
8217         (force_decl_die): ... this.
8218         (force_type_die): New function.
8219         (setup_namespace_context): Replace use of force_namespace_die() with
8220         force_decl_die().
8221         (gen_namespace_die): Same.
8222         (dwarf2out_imported_module_or_decl): New function.
8223
8224 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
8225
8226         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
8227         on CQImode and CHImode incoming arguments in register a7.
8228         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
8229         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
8230         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
8231         xtensa_copy_incoming_a7 before reload.
8232
8233 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
8234
8235         * coverage.c (get_coverage_counts): Give a different message
8236         if flag_guess_branch_prob is set.
8237         * predict.c (counts_to_freqs): Return an int.
8238         (estimate_bb_frequencies): If counts_to_freqs returns zero,
8239         calculate estimates.
8240
8241 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
8242
8243         * config/iq2000/iq2000-protos.h: Remove the prototype for
8244         iq2000_setup_incoming_varargs.
8245         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8246         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8247         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8248         (TARGET_STRUCT_VALUE_RTX): Likewise.
8249         (TARGET_RETURN_IN_MEMORY): Likewise.
8250         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8251         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8252         (iq2000_return_in_memory): Likewise.
8253         (iq2000_setup_incoming_varargs): Make it static.  Receive the
8254         first argument by reference.
8255         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
8256         (PROMOTE_FUNCTION_RETURN): Likewise.
8257         (PROMOTE_PROTOTYPES): Likewise.
8258         (RETURN_IN_MEMORY): Likewise.
8259         (STRUCT_VALUE): Likewise.
8260         (SETUP_INCOMING_VARARGS): Likewise.
8261         (STRICT_ARGUMENT_NAMING): Likewise.
8262
8263 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
8264
8265         * fixinc/fixinc.c (test_test): Initialize res.
8266         (start_flexer): Initialize pz_cmd_save.
8267
8268 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
8269
8270         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
8271         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
8272
8273 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
8274
8275         PR 7198
8276         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
8277         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
8278         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
8279         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
8280         Possibly rename pattern for consistency.
8281         Remove ??? comments suggesting that this be done.
8282         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
8283         New patterns.
8284         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
8285         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
8286         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
8287         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
8288         Update to match.
8289
8290 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
8291
8292         * config/arm/arm.c (output_return_instruction): Only restore IP
8293         into SP if frame_pointer_needed.
8294
8295 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
8296
8297         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
8298         for SCmode and DCmode if ARCH32.
8299         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
8300         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
8301         if ARCH32.
8302         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
8303         if ARCH32.
8304         (BASE_OUTGOING_VALUE_REG): Likewise.
8305
8306 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
8307
8308         PR target/10904
8309         PR target/13058
8310         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
8311         Forbid mode changes from SImode for lower FP regs if ARCH64.
8312
8313 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
8314
8315         * Makefile.in (bt-load.o): Depend on except.h.
8316         * bt-load.c (except.h): #include.
8317         (compute_defs_uses_and_gen): If insn at end of BB can throw
8318         within this function, consider registers used by it unavailable for
8319         btr migration.
8320         (move_btr_def): If insn at end of BB can throw, insert before rather
8321         than after.
8322
8323         * flags.h (flag_btr_bb_exclusive): Declare.
8324         * toplev.c (flag_btr_bb_exclusive): New variable.
8325         (f_options): Add btr-bb-exclusive.
8326         * bt-load.c (augment_live_range): Restore old behaviour if
8327         flag_btr_bb_exclusive is set.
8328         * common.opt: Add entry for -fbtr-bb-exclusive.
8329         * opts.c (common_handle_options): Same.
8330         * doc/invoke.texi: Document -fbtr-bb-exclusive.
8331
8332         * bt-load.c (btrs_live_at_end): New variable.
8333         (compute_defs_uses_and_gen): Compute its pointed-to array.
8334         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
8335         (augment_live_range): When augmenting with a new dominator,
8336         use only its btrs_live_at_end set, but also add in the full set
8337         of the old dominator.
8338         (btr_def_live_range): Use btrs_live_at_end.
8339         (move_btr_def): Set other_btr_uses_before_def, and move new set
8340         to the end of the basic block, if appropriate.
8341         (migrate_btr_defs): Allocate and free btrs_live_at_end.
8342
8343         * bt-load.c (basic_block_freq): Remove outdated comment.
8344
8345 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
8346
8347         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
8348         (PREDICATE_CODES): Remove duplicate.
8349         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
8350         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
8351         (MASK_PROFILE_KERNEL): Adjust define.
8352
8353 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
8354
8355         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
8356         of long string literals from 32 bytes to sizeof (void *) when !-Os
8357         and to 1 with -Os.
8358
8359 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8360
8361         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
8362         constant addresses in the normal mode.
8363
8364 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8365
8366         * system.h (CHAR_BITFIELD): Delete.
8367         (BOOL_BITFIELD): New.
8368         * c-decl.c (c_scope): Use BOOL_BITFIELD.
8369         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
8370
8371 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8372
8373         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8374         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8375         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8376         (TARGET_STRUCT_VALUE_RTX): Likewise.
8377         (TARGET_RETURN_IN_MEMORY): Likewise.
8378         (arc_return_in_memory): Likewise.
8379         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
8380         (PROMOTE_FUNCTION_RETURN): Likewise.
8381         (RETURN_IN_MEMORY): Likewise.
8382         (STRUCT_VALUE): Likewise.
8383
8384 2004-01-26  Richard Henderson  <rth@redhat.com>
8385
8386         * c-parse.in (extension): Use itype.
8387         (SAVE_EXT_FLAGS): Don't allocate a tree.
8388         (RESTORE_EXT_FLAGS): Don't read a tree.
8389
8390 2004-01-26  Jan Hubicka  <jh@suse.cz>
8391
8392         * cselib.c (discard_useless_values):  Clear out value pointer pointing
8393         to datastructure to be recycled.
8394
8395 2004-01-25  Jan Hubicka  <jh@suse.cz>
8396
8397         * genextract.c (main): Do not output the memset when not checking.
8398
8399 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8400
8401         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
8402         switch statement instead of a chain of if statements.
8403
8404 2004-01-26  Jeff Law  <law@redhat.com>
8405
8406         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
8407         acute accents for Petur Runolfsson's entry.
8408
8409 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8410
8411         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
8412         (TARGET_RETURN_IN_MEMORY): Likewise.
8413         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
8414         (RETURN_IN_MEMORY): Likewise.
8415
8416 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8417
8418          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
8419          unaligned load/store into smaller loads and stores.
8420
8421 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8422
8423         * function.c (assign_parms): Do not assign
8424         long long argument to memory in prologue if
8425         is it loaded into register.
8426
8427 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8428
8429          PR middle-end/13779
8430          * expr.c (emit_group_load): split constant
8431          correctly into register components of PARALLEL insn.
8432
8433 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8434
8435         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
8436         Use adjust_address_nv directly with appropriate mode.
8437         (restore_stack_nonlocal): Ditto.
8438
8439 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8440
8441         * config/xtensa/xtensa-protos.h: Remove the prototype for
8442         xtensa_builtin_saveregs.
8443         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8444         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8445         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8446         (TARGET_STRUCT_VALUE_RTX): Likewise.
8447         (TARGET_RETURN_IN_MEMORY): Likewise.
8448         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8449         (xtensa_builtin_saveregs): Make it static.
8450         (xtensa_return_in_memory): New.
8451         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
8452         (PROMOTE_FUNCTION_RETURN): Likewise.
8453         (PROMOTE_PROTOTYPES): Likewise.
8454         (STRUCT_VALUE): Likewise.
8455         (RETURN_IN_MEMORY): Likewise.
8456         (EXPAND_BUILTIN_SAVEREGS): Likewise.
8457
8458 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8459
8460         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
8461         (arm_setup_incoming_varargs): Likewise.
8462         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
8463
8464 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8465
8466         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
8467         (cris_setup_incoming_varargs): Likewise.
8468         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
8469
8470 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8471
8472         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
8473         (ns32k_struct_value_rtx): Likewise.
8474         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
8475         NS32K_STRUCT_VALUE_REGNUM.
8476
8477 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8478
8479         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8480         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8481         (TARGET_STRUCT_VALUE_RTX): Likewise.
8482         (arm_struct_value_rtx): Likewise.
8483         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
8484         (STRUCT_VALUE): Likewise.
8485         (STRUCT_VALUE_REGNUM): Likewise.
8486         (PROMOTE_PROTOTYPES): Likewise.
8487
8488 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8489
8490         * config/ia64/ia64-protos.h: Remove the prototype for
8491         ia64_setup_incoming_varargs and ia64_return_in_memory.
8492         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
8493         (TARGET_RETURN_IN_MEMORY): Likewise.
8494         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8495         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8496         (ia64_setup_incoming_varargs): Adjust the arguments to meet
8497         the requirement of TARGET_SETUP_INCOMING_VARARGS.
8498         (ia64_return_in_memory): Make it static.  Change the return
8499         type to bool from int.  Add an argument.
8500         (ia64_struct_value_rtx): New.
8501         * config/ia64/ia64.h: Remove commented-out definitions of
8502         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
8503         PROMOTE_PROTOTYPES.
8504         (RETURN_IN_MEMORY): Remove.
8505         (STRUCT_VALUE_REGNUM): Likewise.
8506         (STRICT_ARGUMENT_NAMING): Likewise.
8507
8508 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
8509
8510         PR target/13666
8511         * config/sparc/sparc.c (function_arg_union_value): New function.
8512         (function_arg): Use it to deal with unions.
8513         (function_value): Likewise.  Define 'regbase' only for ARCH64.
8514         Replace a conditional statement by a simpler one.
8515
8516 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
8517
8518         * config/mips/mips.c (mips16_optimize_gp): Delete.
8519         (mips_reorg): Don't call it.
8520
8521 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8522
8523         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
8524         (floatunsqihf2): Remove operand 6.
8525         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
8526         fix patterns.
8527         (ldi_conditional, ldf_conditional): Validate operands.
8528
8529 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8530
8531         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
8532         (HAVE_GAS_HIDDEN): Undefine as interim measure.
8533
8534 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8535
8536         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
8537         memory references if TARGET_EXPOSE_LDP nonzero.
8538
8539 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8540
8541         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
8542
8543 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8544
8545         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
8546         invalid operand combinations.
8547
8548 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8549
8550         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
8551         c4x_legitimate_address_p.  Fix post_modify check.
8552
8553         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
8554         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
8555
8556 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8557
8558         * config/pa/pa-protos.h: Remove the prototype for
8559         hppa_builtin_saveregs.  Add a prototype for
8560         pa_return_in_memory.
8561         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
8562         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8563         (TARGET_STRUCT_VALUE_RTX): Likewise.
8564         (TARGET_RETURN_IN_MEMORY): Likewise.
8565         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8566         (pa_struct_value_rtx): Likewise.
8567         (pa_return_in_memory): Likewise.
8568         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
8569         PA_STRUCT_VALUE_REGNUM.
8570         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
8571         (EXPAND_BUILTIN_SAVEREGS): Remove.
8572         (PROMOTE_PROTOTYPES): Likewise.
8573         (PROMOTE_FUNCTION_RETURN): Likewise.
8574
8575 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8576
8577         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
8578         (TARGET_STRUCT_VALUE_RTX): Likewise.
8579         (vax_struct_value_rtx): Likewise.
8580         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
8581         VAX_STRUCT_VALUE_REGNUM.
8582         (PROMOTE_PROTOTYPES): Remove.
8583
8584 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8585
8586         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
8587
8588 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
8589
8590         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
8591         and MIPS64 have HI/LO interlocks.  Update comment.
8592
8593 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8594
8595         * config/stormy16/stormy16-protos.h: Remove the prototype for
8596         xstormy16_setup_incoming_varargs.
8597         * config/stormy16/stormy16.c
8598         (xstormy16_setup_incoming_varargs): Remove.
8599         (xstormy16_return_in_memory): New.
8600         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
8601         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8602         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8603         (TARGET_STRUCT_VALUE_RTX): Likewise.
8604         (TARGET_RETURN_IN_MEMORY): Likewise.
8605         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
8606         (PROMOTE_FUNCTION_RETURN): Likewise
8607         (PROMOTE_PROTOTYPES): Likewise
8608         (RETURN_IN_MEMORY): Likewise
8609         (STRUCT_VALUE): Likewise
8610         (SETUP_INCOMING_VARARGS): Likewise
8611
8612 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
8613
8614         * config/mips/mips.c (mips_offset_within_object_p): New function.
8615         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
8616         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
8617         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
8618
8619 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8620
8621         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
8622         (PROMOTE_FUNCTION_RETURN): Likewise.
8623
8624 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8625
8626         * config/mn10300/mn10300-protos.h: Remove the prototype for
8627         mn10300_builtin_saveregs.
8628         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
8629         (TARGET_STRUCT_VALUE_RTX): Likewise.
8630         (TARGET_RETURN_IN_MEMORY): Likewise.
8631         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8632         (mn10300_return_in_memory): Likewise.
8633         (mn10300_builtin_saveregs): Make it static.
8634         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
8635         (RETURN_IN_MEMORY): Likewise.
8636         (STRUCT_VALUE): Likewise.
8637         (EXPAND_BUILTIN_SAVEREGS): Likewise.
8638
8639 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
8640
8641         PR bootstrap/13853
8642         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
8643
8644 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8645
8646         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
8647         using ccr.
8648
8649 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8650
8651         * config/i860/i860-protos.h: Remove the prototype for
8652         i860_saveregs.
8653         * config/i860/i860.c (i860_saveregs): Make it static.
8654         (i860_struct_value_rtx): New.
8655         (TARGET_STRUCT_VALUE_RTX): Likewise.
8656         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8657         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
8658         I860_STRUCT_VALUE_REGNUM.
8659         (EXPAND_BUILTIN_SAVEREGS): Remove.
8660
8661 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8662
8663         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
8664         (TARGET_RETURN_IN_MEMORY): Likewise.
8665         (m68hc11_struct_value_rtx): Likewise.
8666         (m68hc11_return_in_memory): Likewise.
8667         * config/m68hc11/m68hc11.h: Remove a commented-out definition
8668         of PROMOTE_PROTOTYPES.
8669         (RETURN_IN_MEMORY): Remove.
8670         (STRUCT_VALUE_REGNUM): Likewise.
8671
8672 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8673
8674         * config/mmix/mmix-protos.h: Remove the prototype for
8675         mmix_setup_incoming_varargs.
8676         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8677         (TARGET_STRUCT_VALUE_RTX): Likewise.
8678         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8679         (mmix_setup_incoming_varargs): Make it static.
8680         (mmix_struct_value_rtx): New.
8681         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
8682         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
8683         (STRUCT_VALUE_REGNUM): Remove.
8684         (SETUP_INCOMING_VARARGS): Likewise.
8685
8686 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8687
8688         * config/mips/mips-protos.h: Remove the prototypes for
8689         mips_setup_incoming_varargs and mips_return_in_memory.
8690         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8691         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8692         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8693         (TARGET_STRUCT_VALUE_RTX): Likewise.
8694         (TARGET_RETURN_IN_MEMORY): Likewise.
8695         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8696         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8697         (mips_setup_incoming_varargs): Match the prototype for
8698         TARGET_SETUP_INCOMING_VARARGS.
8699         (mips_return_in_memory): Make it static.  Add argument fntype.
8700         (mips_strict_argument_naming): New.
8701         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
8702         (PROMOTE_FUNCTION_ARGS): Likewise.
8703         (PROMOTE_FUNCTION_RETURN): Likewise.
8704         (STRUCT_VALUE): Likewise.
8705         (RETURN_IN_MEMORY): Likewise.
8706         (SETUP_INCOMING_VARARGS): Likewise.
8707         (STRICT_ARGUMENT_NAMING): Likewise.
8708
8709 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8710
8711         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
8712         (TARGET_RETURN_IN_MEMORY): Likewise.
8713         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8714         (ip2k_return_in_memory): Likewise.
8715         (ip2k_setup_incoming_varargs): Likewise.
8716         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
8717         (STRUCT_VALUE): Likewise.
8718         (STRUCT_VALUE_INCOMING): Likewise.
8719         (SETUP_INCOMING_VARARGS): Likewise.
8720
8721 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8722
8723         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
8724         (TARGET_RETURN_IN_MEMORY): Likewise.
8725         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8726         (avr_return_in_memory): Remove.
8727         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
8728         (STRUCT_VALUE): Likewise.
8729         (STRUCT_VALUE_INCOMING): Likewise.
8730         (STRICT_ARGUMENT_NAMING): Likewise.
8731
8732 2004-01-25  Jan Hubicka  <jh@suse.cz>
8733
8734         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
8735
8736 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
8737
8738         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
8739         (mips_regno_mode_ok_for_base_p): Declare.
8740         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
8741         (FRAME_POINTER_REGNUM): Renumber to 78.
8742         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
8743         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
8744         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
8745         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
8746         (REG_MODE_OK_FOR_BASE_P): Likewise.
8747         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
8748         entry for 77 to "$arg" and entry for 78 to "$frame".
8749         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
8750         (mips_reg_mode_ok_for_base_p): Remove.
8751         (mips_regno_mode_ok_for_base_p): New function, derived from old
8752         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
8753         restrictions unless we're being strict.
8754         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
8755
8756 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8757
8758         * c-common.h: Fix comment typos.
8759         * c-decl.c: Likewise.
8760         * cgraphunit.c: Likewise.
8761         * combine.c: Likewise.
8762         * et-forest.c: Likewise.
8763         * flow.c: Likewise.
8764         * function.c: Likewise.
8765         * ifcvt.c: Likewise.
8766         * integrate.c: Likewise.
8767         * jump.c: Likewise.
8768         * postreload.c: Likewise.
8769         * varray.c: Likewise.
8770
8771 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8772
8773         * doc/frontends.texi: Update copyright.
8774         * doc/gcov.texi: Likewise.
8775         * doc/gty.texi: Likewise.
8776         * doc/sourcebuild.texi: Likewise.
8777         * doc/standards.texi: Likewise.
8778
8779 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
8780
8781         PR target/12978
8782         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
8783         Remove movstrqi_small because it conflicts with movstrqi_large.
8784
8785 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8786
8787         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8788         (TARGET_STRUCT_VALUE_RTX): Likewise.
8789         (cris_struct_value_rtx): Likewise.
8790         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
8791         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
8792         STRUCT_VALUE_REGNUM.
8793         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
8794
8795 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
8796
8797         PR bootstrap/13848
8798         * cse.c (cse_cc_succs): Change the mode of the source expression
8799         as soon as decide we need a new mode.  Don't permit changing modes
8800         if we found a match in a successor block.
8801         (cse_condition_code_reg): Save original mode of source expression
8802         so that we know whether we have to change the mode in other
8803         insns.
8804
8805 2004-01-24  Jan Hubicka  <jh@suse.cz>
8806
8807         * emit-rtl.c (change_address, adjust_address_1, offset_address,
8808         widen_memory_access):  Return early when there is nothing to change.
8809
8810 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
8811
8812         * simplify-rtx.c (simplify_relational_operation): Don't
8813         simplify address == constant into address + -constant == 0.
8814
8815 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8816
8817         * gcc.c (process_command): Don't internationalize the
8818         Copyright message.
8819         * mips-tfile.c (main): Likewise.
8820
8821 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
8822
8823         * cse.c: (cse_cc_succs) Fix comparison warning.
8824
8825 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8826
8827         * config/h8300/h8300.md: Remove extraneous USE in expanders.
8828
8829 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8830
8831         * config/h8300/h8300-protos.h: Provide prototypes for
8832         h8300_legitimate_constant_p and h8300_legitimate_address_p.
8833         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
8834         (h8300_rtx_ok_for_base_p): Likewise.
8835         (h8300_legitimate_address_p): Likewise.
8836         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
8837         h8300_legitimate_constant_p.
8838         (RTX_OK_FOR_BASE_P): Remove.
8839         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
8840
8841 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8842
8843         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
8844         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
8845         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
8846         (REG_OK_FOR_BASE_STRICT_P): Likewise.
8847         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
8848         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
8849         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
8850         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
8851
8852 2004-01-24  Jan Hubicka  <jh@suse.cz>
8853
8854         * cselib.c (remove_useless_values):  Do not access discarded values.
8855
8856 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
8857
8858         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
8859         arrays.
8860
8861 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
8862
8863         * recog.c: Fix a typo in copyright.
8864
8865 2004-01-23  Andrew Pinski  <apinski@apple.com>
8866
8867         * config/rs6000/rs6000.md (call): Fix misappiled patch.
8868         (call_value): Likewise.
8869
8870 2004-01-23  Richard Henderson  <rth@redhat.com>
8871
8872         PR opt/12941
8873         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
8874         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
8875         if SHIFT_COUNT_TRUNCATED is set.
8876
8877 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
8878
8879         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
8880         separate real and imaginary parts.
8881         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
8882
8883 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
8884
8885         PR target/13674
8886         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
8887         loading into GPR.
8888
8889 2004-01-23  Jan Hubicka  <jh@suse.cz>
8890
8891         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
8892         change.
8893
8894         * alloc-pool.c (align_four): Kill.
8895         (create_alloc_pool): Align size to eight.
8896         (free_alloc_pool, free_pool): Invalidate deallocated data.
8897
8898 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
8899
8900         PR gcc/1532
8901         * cse.c (cse_change_cc_mode): New static function.
8902         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
8903         (cse_condition_code_reg): New function.
8904         * rtl.h (cse_condition_code_reg): Declare.
8905         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
8906         * target.h (struct gcc_target): Add fixed_condition_code_regs and
8907         cc_modes_compatible.
8908         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8909         (TARGET_CC_MODES_COMPATIBLE): Define.
8910         (TARGET_INITIALIZER): Add new initializers.
8911         * targhooks.c (default_cc_modes_compatible): New function.
8912         * targhooks.c (default_cc_modes_compatible): Declare.
8913         * hooks.c (hook_bool_intp_intp_false): New function.
8914         * hooks.h (hook_bool_intp_intp_false): Declare.
8915         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8916         (TARGET_CC_MODES_COMPATIBLE): Define.
8917         (ix86_fixed_condition_code_regs): New static function.
8918         (ix86_cc_modes_compatible): Likewise.
8919         * doc/tm.texi (Condition Code): Document new hooks.
8920
8921 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8922
8923         * fixinc/inclhack.def (bad_lval): Renamed to ...
8924         (alpha_bad_lval): ... this.
8925         Removed file list.
8926         Restrict to alpha*-dec-osf*.
8927         * fixinc/fixincl.x: Regenerate.
8928         * fixinc/tests/base/dirent.h: Remove, moving test ...
8929         * fixinc/tests/base/testing.h: ... here, reflecting new name.
8930
8931 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
8932
8933         PR c/13814
8934         * c-decl.c (diagnose_mismatched_decls): Also discard a
8935         built-in if we encounter an old-style definition with the
8936         same name.
8937
8938 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
8939
8940         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
8941         set to default{32,64}.
8942
8943 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
8944
8945         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
8946         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
8947
8948 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
8949             Olivier Hainque  <hainque@act-europe.fr>
8950
8951         * fold-const.c (fold_binary_op_with_conditional_arg): Only
8952         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
8953
8954 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
8955
8956         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
8957         size for minipool references.
8958
8959 2004-01-23  Roger Sayle  <roger@eyesopen.com>
8960
8961         * real.c (real_floor, real_ceil): Tweak to allow input and output
8962         arguments to overlap.
8963         (real_round): New function to implement round(3m) semantics.
8964         * real.h (real_round): Prototype here.
8965         * builtins.c (fold_builtin_round): New function to constant fold
8966         round, roundf and roundl.
8967         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
8968
8969 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
8970
8971         PR optimization/13819
8972         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
8973         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
8974         (sh_handle_sp_switch_attribute): Remove warning.
8975
8976 2003-11-30  Jan Hubicka  <jh@suse.cz>
8977
8978         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
8979
8980 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
8981
8982         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
8983         may or may not return non-NIL.
8984         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
8985         check CANNOT_CHANGE_MODE_CLASS
8986
8987 2004-01-23  Jan Hubicka  <jh@suse.cz>
8988
8989         * basic-block.h (PROP_POSTRELOAD): New macro.
8990         (CLEANUP_LOG_LINKS): New.
8991         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
8992         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
8993
8994         * cselib.c (value_pool): New.
8995         (new_cselib_val): Use pool.
8996         (cselib_init): Initialize value_pool
8997         (cselib_finish): Free pool.
8998
8999 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
9000
9001         * config/sparc/sparc.c (scan_record_type): New function.
9002         (function_arg_slotno): Use it to determine which kinds of
9003         registers the record can be passed in.
9004
9005 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
9006
9007         * config/pa/fptr.c: Fix old-style definition.
9008
9009 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
9010
9011         PR optimization/13724
9012         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
9013         represents the zero bits produced by a ZERO_EXTEND operation.
9014
9015 2004-01-22  Roger Sayle  <roger@eyesopen.com>
9016
9017         PR optimization/13821
9018         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
9019         correctly calculate the lowpart offset of the contracted subreg.
9020
9021 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
9022
9023         * doc/invoke.texi (Optimize Options): Note that --param arguments
9024         are subject to change without notice.
9025
9026 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9027
9028         * config.gcc (mips-sgi-irix6*o32): Removed.
9029         * config/mips/iris6-o32-as.h: Likewise.
9030         * config/mips/iris6-o32-gas.h: Likewise.
9031         * config/mips/iris6-o32.h: Likewise.
9032
9033 2004-01-22  Jan Hubicka  <jh@suse.cz>
9034
9035         * cfgcleanup.c (first_pass): New static variable.
9036         (try_forward_edges):  Add work limiting check for threading.
9037         (try_crossjump_bb):  Add work limiting check for crossjumping.
9038         (try_optimize_cfg):  Maintain first pass variable.
9039
9040 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
9041
9042         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
9043         handles complex and vector modes.
9044
9045 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
9046
9047         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
9048         (REG_OK_FOR_BASE_P_STRICT): Likewise.
9049         (STRICT): Likewise.
9050
9051 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
9052
9053         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
9054         (genrtl_for_stmt): Remove emit_nop calls.
9055
9056 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9057
9058         PR target/13713
9059         PR target/13324
9060         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
9061         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
9062         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
9063
9064 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
9065
9066         * config/arm/arm.c: Include "debug.h".
9067         (thumb_pushpop): Take two new arguments.  Add some commentary.
9068         Output frame information when pushing.
9069         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
9070         thumb_pushpop.
9071         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
9072         offset, and pass it to thumb_pushpop.  Output CFI information.
9073         (thumb_expand_prologue): Add some frame-related markers and notes.
9074
9075 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
9076
9077         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
9078         for TARGET_64BIT.
9079         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
9080         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
9081
9082 2004-01-22  Roger Sayle  <roger@eyesopen.com>
9083             Paolo Bonzini  <bonzini@gnu.org>
9084
9085         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
9086         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
9087         * rtl.h (subreg_lsb_1): Prototype here.
9088         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
9089         sign extensions.
9090
9091 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
9092
9093         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
9094         macro need not be defined if jump-tables should contain
9095         relative addresses only when -fPIC or -fPIC is in effect.
9096
9097 2004-01-22  Jan Hubicka  <jh@suse.cz>
9098
9099         * alias.c (reg_base_value): Turn into varray.
9100         (reg_base_value_size): Kill.
9101         (old_reg_base_value): New deletable varray.
9102         (alias_invariant_size): New variable.
9103         (REG_BASE_VALUE): Update to use varray.
9104         (find_base_value): Likewise.
9105         (record_set): Likewise.
9106         (record_base_value): Likewise.
9107         (memrefs_conflict_p): Likewise.
9108         (record_set): Likewise
9109         (record_base_value): Likewise.
9110         (memrefs_conflict_p): Use alias_invariant_size.
9111         (init_alias_analysis): Use varray; set alias_invariant_size;
9112         rescale other arrays to be sized by maxreg.
9113         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
9114
9115 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9116
9117         * config/sparc/sparc.c (function_arg_slotno): Use
9118         FLOAT_TYPE_P to detect FP fields in structures.
9119         (function_arg_record_value_1): Likewise.
9120         (function_arg_record_value_2): Likewise.
9121
9122 2004-01-22  Jan Hubicka  <jh@suse.cz>
9123
9124         * function.c (allocate_struct_function): Do not initialize expr, emit
9125         and varasm.
9126         (prepare_function_start): Do it here.
9127         * c-parse.in (maybe_type_qual): Do not produce line number notes.
9128
9129 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9130
9131         PR target/13559
9132         * config/sparc/sparc.c (function_arg_record_value_3): Revert
9133         to 'word_mode' once the first slot has been filled.
9134
9135 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
9136
9137         * config/sparc/sparc.c (function_arg_record_value_1): Fix
9138         computation of the number of integer registers required.
9139
9140 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9141
9142         * config/i386/i386.md: Simplify certain comparisons of
9143         const_int.
9144
9145 2004-01-21  Andrew Pinski  <apinski@apple.com>
9146
9147         PR target/13785
9148         * config/rs6000/rs6000.md (call_value): Force operand
9149         1 not operand 0 into a register.
9150
9151 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9152
9153         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
9154         unwind-dw2-fde.h: Update copyright.
9155
9156 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9157
9158         * pa-protos.h: Update copyright.
9159         * pa.h: Likewise.
9160         * pa.md: Likewise.
9161
9162 2004-01-21  Caroline Tice  <ctice@apple.com>
9163
9164         PR target/12308
9165         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
9166         flags register.
9167         (fix_truncdfdi2): Likewise.
9168         (fix_truncsfdi2): Likewise.
9169         (*fix_truncdi_1): Likewise.
9170         (fix_truncxfsi2): Likewise.
9171         (fix_truncdfsi2): Likewise.
9172         (fix_truncsfsi2): Likewise.
9173         (*fix_truncsi_1): Likewise.
9174         (fix_truncxfhi2): Likewise.
9175         (fix_truncdfhi2): Likewise.
9176         (fix_truncsfhi2): Likewise.
9177         (*fix_trunchi_1): Likewise.
9178
9179 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9180
9181         * alias.c, basic-block.h, c-common.c, c-common.h,
9182         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
9183         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
9184         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
9185         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
9186         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
9187         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
9188         genautomata.c, genconditions.c, genemit.c, genflags.c,
9189         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
9190         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
9191         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
9192         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
9193         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
9194         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
9195         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
9196         unwind.h, varray.c, varray.h: Update copyright.
9197
9198 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9199
9200         * config/h8300/coff.h: Update copyright.
9201         * config/h8300/elf.h: Likewise.
9202         * config/h8300/h8300-protos.h: Likewise.
9203         * config/h8300/h8300.c: Likewise.
9204         * config/h8300/h8300.h: Likewise.
9205         * config/h8300/h8300.md: Likewise.
9206
9207 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9208
9209         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
9210         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
9211         ultrix_unistd): New hacks.
9212         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
9213         ULTRIX_CONST2_CHECK): Add checks.
9214         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
9215         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
9216         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
9217         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
9218         * fixinc/tests/base/locale.h: New file.
9219         * fixinc/fixincl.x: Rebuilt.
9220
9221 2004-01-21  Andreas Jaeger  <aj@suse.de>
9222             Michael Matz  <matz@suse.de>
9223
9224         * doc/extend.texi (Extended Asm): Clarify memory clobber.
9225
9226 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
9227
9228         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
9229         _Jv_RegisterClasses through a function pointer.
9230
9231 2004-01-21  Falk Hueffner  <falk@debian.org>
9232
9233         PR target/12898
9234         * config/alpha/alpha.c (alpha_emit_set_const_1): If
9235         no_new_pseudos, use gen_rtx_SET directly for SImode constants
9236         which need multiple instructions to emit.
9237
9238 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
9239
9240         * config/m32r/m32r.h (CPP_SPEC): Define.
9241
9242 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
9243
9244         * c-decl.c (merge_decls): Kill different_binding_level and
9245         different_tu arguments; simplify throughout.
9246         (duplicate_decls): Likewise.
9247         (pushdecl, merge_translation_unit_decls): Update calls to
9248         duplicate_decls.
9249
9250 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9251
9252         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
9253         $(SYSTEM_H).
9254         (print-rtl1.o): Depend on $(SYSTEM_H).
9255
9256 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
9257
9258         PR bootstrap/12730
9259         * configure.ac: Delete definition and subsitution of docdir.
9260         Add info, man, srcman and srcinfo to target hooks. Create doc/
9261         directory.
9262         * configure: Regenerate.
9263         * Makefile.in: Don't substitute docdir and delete all references
9264         throughout.
9265         (MAKEINFOFLAGS): Define.
9266         (stmp-docobjdir): Delete.
9267         (INFOFILES, MANFILES): Define.
9268         (info): Call lang.info, srcinfo and lang.srcinfo.
9269         (generated-manpages): Call lang.man, srcman and lang.srcman.
9270         (srcinfo, srcman): New rules to copy back files to source directory.
9271         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
9272         (install-man): Revamp rule.
9273         (clean): Update dvi directory.
9274         (distclean): Delete TAGS from front end directorys.
9275         (maintainer-clean): Delete all document files in source directory.
9276
9277         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
9278         (objc.srcman, objc.srcinfo): Likewise.
9279
9280 2004-01-20  Bruce Korb  <bkorb@gnu.org>
9281
9282         * fixinc/inclhack.def(math_exception): bypass only for glibc.
9283         (matherr_decl): rename & relocate as exception_structure.
9284         This fix must precede the math_exception fix.
9285
9286 2004-01-20  Roger Sayle  <roger@eyesopen.com>
9287
9288         * fold-const.c (fold_convert): Rename to fold_convert_const.
9289         (fold_convert_const): Change arguments to take a tree_code,
9290         a type and the operand/expression to be converted.  Return
9291         NULL_TREE if no simplification is possible.  Add support for
9292         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
9293         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
9294         Adjust call to fold_convert to match new fold_convert_const.
9295         Avoid modifying the tree passed to fold in-place.
9296
9297 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
9298
9299         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
9300         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
9301         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
9302
9303 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9304
9305         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
9306         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
9307         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
9308         (emit_move_sequence): Check scratch_reg first in various if statements.
9309         Extend source simplification to handle all 64-bit CONST_INTs.
9310         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
9311         frame size.
9312         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
9313         frame offset calculations.
9314         * pa.h (NEW_HP_ASSEMBLER): Add comment.
9315         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
9316         LEGITIMATE_64BIT_CONST_INT_P): Define.
9317         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
9318         any CONST_INT as legitimate during and after reload.
9319         (VAL_32_BITS_P, INT_32_BITS): Define.
9320         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
9321
9322 2004-01-20  Jan Hubicka  <jh@suse.cz>
9323
9324         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
9325         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
9326         containing hard regs are shared.
9327         (gen_hard_reg_clobber): New function.
9328         (hard_reg_clobbers): New array.
9329         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
9330         (copy_rtx): Do not copy clobbers containing hard regs.
9331         * rtl.h (gen_hard_reg_clobber): Declare.
9332
9333 2004-01-20  Jan Hubicka  <jh@suse.cz>
9334
9335         * varray.c:  Include hashtab.h
9336         (varray_descriptor): New structure.
9337         (hash_descriptor, eq_descriptor, varray_descriptor,
9338         print_statistics): New static functions
9339         (varray_init, varray_grow): Update statistics
9340         (dump_varray_statistics): New function.
9341         * varray.h (dump_varray_statistics): Declare.
9342         * toplev.c (finalize): Call it.
9343         * Makefile.in (varray.o): Add dependency.
9344
9345 2004-01-20  Jan Hubicka  <jh@suse.cz>
9346
9347         * cselib.c: Include alloc-pool.h
9348         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
9349         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
9350         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
9351         unchain_one_elt_loc_list_pool, unchain_one_value,
9352         new_cselib_val): Simplify using allocpool.
9353         (cselib_init): Initialize allocpools.
9354         (cselib_finish): Finish allocpools.
9355         * Makefile.in (cselib.o): Depend on alloc-pool.h
9356
9357 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
9358
9359         * config/mips/mips.c (mips_load_call_address): Make the call insn
9360         use $gp if it could be calling a lazy binding stub.
9361
9362 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
9363
9364         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
9365         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9366         (TARGET_STRUCT_VALUE_RTX): Likewise.
9367         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
9368         (PROMOTE_FUNCTION_RETURN): Remove.
9369         (STRUCT_VALUE): Remove.
9370
9371 2004-01-20  Denis Chertykov  <denisc@overta.ru>
9372
9373         PR bootstrap/13735
9374         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
9375         register as pointer after reload.
9376
9377 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9378
9379         PR optimization/12440
9380         * loop.c: Include ggc.h.
9381         (loop_optimize): Run garbage collector between optimization of loops.
9382         * Makefile.in (loop.o): Add GGC_H dependency.
9383
9384 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
9385
9386         * gcc/config/rs6000/rs6000.c (function_arg) Handle
9387         vector register special in function without prototype.
9388         (function_arg_advance): Vector parameters get always
9389         GPRs allocated for the linux64 target.
9390
9391 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
9392
9393         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
9394         not TARGET_M32RX_MASK.
9395
9396 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
9397
9398         PR target/13557
9399         * config/sparc/sparc.c (function_arg): Reorder the cases.
9400
9401 2004-01-19  Per Bothner  <per@bothner.com>
9402
9403         Move cpp_reader's line_maps field to a shared global.
9404         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
9405         and change the type to a pointer rather than a struct.
9406         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
9407         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
9408         Likewise.
9409         * cppfiles.c (validate_pch):  Likewise.
9410         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
9411         Likewise.
9412         * cpperror.c (print_location):  Likewise.
9413         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
9414         * cppinit.c (cpp_create_reader):  Handle new parameter.
9415         (cpp_destroy):  Don't free line_maps - that's no longer our job.
9416         * input.h (line_table):  New variable.
9417         * toplev.c (line_table):  Declare variable.
9418         (general_init):  Initialize line_table.
9419         * c-opts.c (c_common_init_options):  Pass line_table to
9420         cpp_create_reader.
9421         * fix-header.c (read_scan_file):  New local variable line_table.
9422         Initialize, and pass it to cpp_create_reader.
9423         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
9424         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
9425
9426 2004-01-19  Per Bothner  <per@bothner.com>
9427
9428         Implement a cache for linemap_lookup.
9429         * line-map.h (struct_line_maps):  Add cache field.
9430         * line-map.c (linemap_init):  Zero cache field.
9431         (linemap_add):  Set cache field to offset of newly allocated map.
9432         (linemap_lookup):  Use and set cache field.
9433
9434 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9435
9436         PR optimization/13567
9437         * cse.c (cse_basic_block): Call cse_insn with a non-null
9438         libcall_insn for the last SET insn of a no-confilict block.
9439
9440 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
9441
9442         * Makefile.in (target_noncanonical, program_transform_name): Use
9443         immediate define instead of deferred.
9444         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
9445         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
9446         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
9447         deferred backquote.
9448
9449 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
9450
9451         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
9452         true unconditionally.
9453         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
9454         Remove.
9455         (build_unary_op, build_modify_expr): Don't handle extended
9456         lvalues.
9457         (build_component_ref, build_conditional_expr): Call non_lvalue
9458         instead of pedantic_non_lvalue.
9459         (build_c_cast): Don't condition use of non_lvalue on pedantic.
9460         * fold-const.c (fold): Don't check pedantic directly for
9461         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
9462         passed to pedantic_non_lvalue.
9463         * doc/extend.texi: Remove documentation of extended lvalues.
9464
9465 2004-01-19  Roger Sayle  <roger@eyesopen.com>
9466
9467         PR optimization/5263
9468         * simplify-rtx.c (associative_constant_p): Delete.
9469         (simplify_associative_operation): Rewrite to linearize terms, and
9470         attempt to simplify new term against both left and right subterms.
9471         (simplify_binary_operation): Call swap_commutative_operands_p on
9472         op0 and op1, not trueop0 and trueop1.  Move the initialization of
9473         trueop0 and trueop1 down to where first needed.
9474         (simplify_relational_operation): Likewise.
9475         * rtlanal.c (commutative_operand_precedence): Also order constant
9476         operands using avoid_constant_pool_reference.
9477
9478 2004-01-19  Richard Henderson  <rth@redhat.com>
9479
9480         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
9481         don't check memory mode.
9482         (unaligned_memory_operand): Likewise.
9483         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
9484         abort for op0 not MEM.
9485
9486         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
9487         is not a reg, copy to a scratch first.
9488         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
9489         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
9490         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
9491         (reload_inqi, reload_inhi): Fix mode of op0.
9492         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
9493         reload_outhi_help): Likewise.  Use define_insn_and_split.
9494
9495         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
9496         as well as $29 dead.
9497
9498 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
9499
9500         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
9501         "tls_object" for thread-local objects.
9502         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
9503         "#tls" for thread-local sections.
9504         * configure.ac (thread-local checks): Specify --fatal-warnings in
9505         every binutils-specific checks.  For sparc*-*-*, test whether the
9506         OS is Solaris and the tools are native and act accordingly.
9507         * configure: Rebuild.
9508
9509 2004-01-19  Jeff Law  <law@redhat.com>
9510
9511         * contrib.texi: Update Paolo Carlini's entry.  New entries for
9512         Jerry Quinn and Petur Runolfsson.
9513
9514 2004-01-19  Roger Sayle  <roger@eyesopen.com>
9515
9516         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
9517         size, don't use the larger zero-extending loads.
9518
9519 2004-01-19  Richard Henderson  <rth@redhat.com>
9520
9521         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
9522         * alpha.md (UNSPEC_NT_LDA): Remove.
9523         (UNSPEC_CVTLQ, cvtlq): New.
9524         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
9525         (extendsidi2_fix): Remove.
9526         (extendsidi2 splitter): Use cvtlq.
9527         (extendsidi2 fp peepholes): Remove.
9528         (cvtql): Use SFmode instead of SImode.
9529         (fix_trunc?fsi): Update to match.
9530         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
9531         (movsi): Rename from movsi_nofix, remove f alternatives.
9532         (movsi_nt_vms): Similarly.
9533         (movsi_fix, movsi_nt_vms_fix): Remove.
9534         (nt_lda): Remove.
9535         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
9536
9537 2004-01-19  Jan Hubicka  <jh@suse.cz>
9538
9539         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
9540         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
9541         list.
9542         (cgraph_remove_unreachable_nodes): New function
9543         (cgraph_decide_inlining_of_small_function): Fix pasto.
9544         (cgraph_decide_inlining_incrementally): Fix pasto.
9545         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
9546
9547 2004-01-19  Steven Bosscher  <stevenb@suse.de>
9548
9549         * gengtype.c (header_file): Make it static.
9550         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
9551         * gengtype.h (header_file): No longer extern.
9552
9553 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9554
9555         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
9556         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
9557         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
9558
9559 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9560
9561         * stmt.c (HAVE_casesi): Define it not already defined.
9562         (HAVE_tablejump): Likewise.
9563         (expand_end_case_type): Resort to the binary tree method if
9564         neither casesi or tablejump is available.
9565
9566 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
9567
9568         * final.c (final_scan_insn): Make non-static again.
9569         * output.h (final_scan_insn): Re-add prototype.
9570         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
9571         to final_scan_insn call.
9572         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
9573         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
9574         * config/pa/pa.c (output_lbranch, output_call): Likewise.
9575         * config/sh/sh.c (print_slot): Likewise.
9576         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
9577         (output_sibcall, sparc_flat_function_epilogue): Likewise.
9578
9579 2004-01-18  Jan Hubicka  <jh@suse.cz>
9580
9581         * basic-block.h (try_redirect_by_replacing_jump): Declare.
9582         * cfgcleanup.c (try_optimize_cfg): Use it.
9583         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
9584         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
9585         Kill hack.
9586         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
9587
9588         Revert:
9589         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9590
9591                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9592                 even after reload, just don't remove the actual jump tables.
9593
9594 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9595
9596         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
9597
9598 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9599
9600         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
9601         the size of a pointer in bytes.
9602
9603 2004-01-18  Roger Sayle  <roger@eyesopen.com>
9604
9605         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
9606         live "next" variable, which could lead to an infinite loop.
9607
9608 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
9609
9610         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
9611         block.
9612
9613         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9614         Check for NULL in the chain and remove repeated code.
9615
9616 2004-01-18  Jan Hubicka  <jh@suse.cz>
9617
9618         * coverage.c (checksum_string): Rename to ...
9619         (coverage_checksum_string): ... this one, Use crc32_string; recognize
9620         names containing random number and zero the number out in order to get
9621         match.
9622
9623 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
9624
9625         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
9626
9627 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9628
9629         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
9630         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
9631         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
9632         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
9633         doc/trouble.texi: Remove trailing whitespace.
9634
9635 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
9636
9637         PR target/7618
9638         * config/mips/mips.c: Include cfglayout.h.
9639         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9640         (mips_unspec_offset_high): Add temporary register argument.
9641         (mips_load_call_address): New function, split out from...
9642         (mips_expand_call): ...here.
9643         (mips_output_cplocal): New function.
9644         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
9645         (mips_emit_loadgp): New function, split out from...
9646         (mips_expand_prologue): ...here.
9647         (mips_output_mi_thunk): New function.
9648
9649 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
9650
9651         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
9652         mcpu32): Remove redundant checks for implied target predefines.
9653
9654 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
9655
9656         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9657         Return type is unsigned int not int.
9658         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9659         Likewise.
9660
9661 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9662
9663         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
9664         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
9665         "GNU/Linux" and "Microsoft Windows" terminology.
9666
9667 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9668
9669         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
9670         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
9671         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
9672         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
9673         @smallexample instead of @example.
9674
9675 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
9676
9677         * objc/objc-act.c (build_objc_method_call): Use target
9678         hooks instead of macros to determine if ..._stret
9679         dispatchers should be used (NeXT runtime only).
9680
9681 2004-01-17  Roger Sayle  <roger@eyesopen.com>
9682
9683         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
9684         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
9685
9686 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
9687
9688         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
9689         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
9690         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
9691         macros.
9692         * reload1.c (emit_reload_insns): Use them.
9693         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
9694         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
9695         for NULL PATTERN.
9696
9697 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
9698
9699         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
9700         (final_scan_insn): Update to take an additional SEEN argument.  Emit
9701         a line note after the prologue.  Make static.
9702         (line_note_exists): Remove.
9703         (final): Don't initialize line_note_exists.  Update call to
9704         final_scan_insn.
9705         * output.h (final_scan_insn): Remove prologue.
9706         * function.c (set_insn_locators): Update comment.
9707         (thread_prologue_and_epilogue_insns): Add a comment.
9708
9709 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
9710
9711         PR target/10781
9712         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9713         Prototype.
9714         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9715         New function.
9716         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
9717         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
9718         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
9719
9720 2004-01-17  Jan Hubicka  <jh@suse.cz>
9721
9722         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
9723         commit.
9724
9725         * toplev.c (HAVE_conditional_execution): Provide default.
9726         (rest_of_handle_reorder_blocks): For conditional_execution target
9727         update liveness once after all transformations
9728         (rest_of_compilation): Do crossjumping before ce3.
9729
9730 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
9731
9732         * alias.c (new_alias_set): Mark last_alias_set for PCH.
9733         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
9734         for PCH.
9735         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
9736         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
9737         (get_TOC_alias_set): Mark 'set' for PCH.
9738
9739 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9740
9741         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9742         even after reload, just don't remove the actual jump tables.
9743
9744 2004-01-17  J. Brobecker  <brobecker@gnat.com>
9745
9746         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
9747         Remove checks for is_ada() and TREE_UNSIGNED.
9748         (subrange_type_die): Emit a byte_size attribute if the subrange
9749         type size is different from the base type size.
9750         (modified_type_die): Replace call to is_ada_subrange_type() by
9751         call to is_subrange_type().
9752
9753 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
9754
9755         * config/sh/sh.c: Include ggc.h.
9756
9757 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9758
9759         * Makefile.in (MD5_H): New.
9760         (fold-const.o): Depend on md5.h.
9761         (dwarf2out.o): Likewise.
9762         (cppfiles.o): Likewise.
9763         * cppfiles.c: Include md5.h.
9764         (should_stack_file): Check against list read from PCH file.
9765         (struct pchf_data): New.
9766         (pchf): New variable.
9767         (struct pchf_adder_info): New.
9768         (pchf_adder): New.
9769         (pchf_save_compare): New.
9770         (_cpp_save_file_entries): New.
9771         (_cpp_read_file_entries): New.
9772         (struct pchf_compare_data): New.
9773         (pchf_compare): New.
9774         (check_file_against_entries): New.
9775         * cpphash.h (_cpp_save_file_entries): Prototype.
9776         (_cpp_read_file_entries): Prototype.
9777         * cpppch.c (cpp_write_pch_state): Write the list of headers.
9778         (cpp_read_state): Read the list of headers.
9779
9780 2004-01-17  Jan Hubicka  <jh@suse.cz>
9781
9782         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
9783         builtin_expect specially.
9784         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
9785         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
9786         * invoke.texi (max-inline-insns-single): Set to 100.
9787         (large-function-insns): Set to 3000.
9788
9789 2004-01-16  Eric Christopher  <echristo@redhat.com>
9790             Chandrakala Chavva <cchavva@redhat.com>
9791
9792         * cppcharset.c (one_iso88591_to_utf8): New function.
9793         (convert_iso88591_utf8): Ditto. Use.
9794         (conversion_tab): Use.
9795         (_cpp_input_to_utf8): New function.
9796         (_cpp_init_iconv_buffer): Ditto.
9797         (_cpp_close_iconv_buffer): Ditto.
9798         * cpphash.h: Prototype new functions.
9799         (cpp_buffer): Add input_cset_desc.
9800         * cppinit.c: Add input_charset default.
9801         * cpplib.c (cpp_push_buffer): Support init and
9802         close of iconv.
9803         * cpplib.h (cpp_options): Add input_charset.
9804
9805 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9806
9807         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
9808         * config/alpha/unicosmk.h: Remove a commented-out definition
9809         of ASM_OUTPUT_SECTION_NAME.
9810         * config/stormy16/stormy16.h: Likewise.
9811
9812 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9813
9814         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
9815         (alpha___extern_prefix_sys_stat): ... this.
9816         Apply to <sys/mount.h>, too.
9817         Tweak to match more variations.
9818         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
9819
9820         * fixinc/inclhack.def (alpha___extern_prefix,
9821         alpha___extern_prefix_standards): New hacks to obey
9822         __PRAGMA_EXTERN_PREFIX.
9823         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
9824         test.
9825         * fixinc/tests/base/standards.h: Likewise.
9826
9827         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
9828         variations.
9829         New testcase.
9830         * fixinc/tests/base/pthread.h: Handle it.
9831
9832         * fixincl/inclhack.def (bad_lval): Sort file list.
9833         Add many missing files up to Tru64 UNIX V5.1B.
9834         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
9835         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
9836         order.
9837
9838         * fixinc/fixincl.x: Regenerate.
9839
9840 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
9841
9842         * version.c (version_string): Change to 3.5.0.
9843         * doc/include/gcc-common.texi (version-GCC): Likewise.
9844
9845 2004-01-16  Jan Hubicka  <jh@suse.cz>
9846
9847         * i386.md (load_tp_di): Fix pasto.
9848
9849         PR opt/13608
9850         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
9851
9852         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
9853         pp_c_character_constant, pp_c_floating_constant,
9854         pp_c_additive_expression, pp_c_shift_expression,
9855         pp_c_equality_expression, pp_c_and_expression,
9856         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
9857         pp_c_logical_and_expression): Remove inline modifier.
9858         * dwarf2out.c (get_AT): Likewise.
9859         * et-forest.c (et_splay): Likewise.
9860         * ra.h (ra_alloc, ra_calloc): Likewise
9861
9862 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9863
9864         * config/frv/frv-protos.h: Fix comment formatting.
9865         * config/frv/frv.c: Likewise.
9866         * config/frv/frv.h: Likewise.
9867         * config/frv/frv.md: Likewise.
9868         * config/frv/frvbegin.c: Likewise.
9869         * config/frv/frvend.c: Likewise.
9870
9871 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9872
9873         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
9874         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
9875         LINKER_DOES_NOT_WORK_WITH_DWARF2.
9876         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
9877
9878 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
9879
9880         PR 11864
9881         * postreload.c (reload_cse_simplify_operands): Don't remove
9882         implicit extension from LOAD_EXTEND_OP.
9883
9884 2004-01-16  Jan Hubicka  <jh@suse.cz>
9885
9886         PR opt/11350
9887         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
9888         after reload.
9889         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
9890         rtl_try_redirect_by_replacing_branch): Likewise.
9891
9892 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
9893
9894         PR pch/13689
9895         * alias.c (struct alias_set_entry): Mark for GC.
9896         (alias_sets): Make static, mark for GC.
9897         (record_alias_subset): Use GC to allocate alias structures.
9898         * varray.c (element): Make generic varrays GCed.
9899
9900         PR pch/13361
9901         * c-typeck.c (constructor_asmspec): Delete.
9902         (struct initializer_stack): Delete field 'asmspec'.
9903         (start_init): Delete saving of asmspec.
9904         (finish_init): Don't update constructor_asmspec.
9905         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
9906         * stmt.c (expand_asm): Duplicate strings from tree.
9907         (expand_asm_operands): Likewise.
9908         * tree.c (tree_size): Update computation of size of STRING_CST.
9909         (make_node): Don't make STRING_CST nodes.
9910         (build_string): Allocate string with tree node.
9911         * tree.def (STRING_CST): Update comment.
9912         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
9913         (tree_string): Place contents of string in tree node.
9914         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
9915         from tree.
9916
9917         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
9918         altivec operands.
9919
9920 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9921
9922         * c-common.h: Fix comment formatting.
9923         * c-cppbuiltin.c: Likewise.
9924         * c-pragma.c: Likewise.
9925         * calls.c: Likewise.
9926         * collect2.c: Likewise.
9927         * cppcharset.c: Likewise.
9928         * cpptrad.c: Likewise.
9929         * dbxout.c: Likewise.
9930         * defaults.h: Likewise.
9931         * dwarf2out.c: Likewise.
9932         * fold-const.c: Likewise.
9933         * genautomata.c: Likewise.
9934         * genconditions.c: Likewise.
9935         * genflags.c: Likewise.
9936         * gengtype.c: Likewise.
9937         * integrate.c: Likewise.
9938         * loop.c: Likewise.
9939         * predict.c: Likewise.
9940         * sdbout.c: Likewise.
9941
9942 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
9943
9944         * config/ia64/ia64.md (*movti_internal): C output template
9945         extracted to ia64.c.
9946         (*movti_internal_reg): Delete.
9947         (reload_inti, reload_outti): Use the correct mode on operand 2
9948         in the first place, don't fix it up in the output template.
9949         (movtf, reload_ointf, reload_outtf): New expanders.
9950         (*movtf_internal): New define_insn_and_split.
9951         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
9952         make static; do not hand TFmode CONST_DOUBLEs to split_double.
9953         (ia64_split_tmode_move): New function, body mostly pulled
9954         from ia64.md:*movti_internal.
9955         (ia64_function_arg_words): New function, extracted common
9956         logic from ia64_function_arg et seq.
9957         (ia64_function_arg_offset): Likewise.  Handle correctly the
9958         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
9959         (ia64_function_arg, ia64_function_arg_partial_nregs)
9960         (ia64_function_arg_advance): Use ia64_function_arg_words and
9961         ia64_function_arg_offset.
9962         (ia64_function_value): TCmode does not go in float regs.
9963         (ia64_secondary_reload_class): Also handle TFmode.
9964         * config/ia64/ia64-protos.h: Remove prototype for
9965         ia64_split_timode; add prototype for ia64_split_tmode_move.
9966
9967 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
9968
9969         * Makefile.in (MAINT): Make it an immediate assignment.
9970
9971 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9972
9973         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
9974
9975 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9976
9977         * config/h8300/coff.h: Replace Hitachi with Renesas.
9978         * config/h8300/elf.h: Likewise.
9979         * config/h8300/h8300-protos.h: Likewise.
9980         * config/h8300/h8300.c: Likewise.
9981         * config/h8300/h8300.h: Likewise.
9982         * config/h8300/h8300.md: Likewise.
9983         * config/h8300/lib1funcs.asm: Likewise.
9984
9985 2004-01-15  Andrew Pinski  <apinski@apple.com>
9986
9987         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
9988         around it.
9989
9990 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9991
9992         * config/h8300/h8300.c (h8300_return_in_memory): New.
9993         (TARGET_STRUCT_VALUE_RTX): Likewise.
9994         (TARGET_RETURN_IN_MEMORY): Likewise.
9995         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
9996         (RETURN_IN_MEMORY): Likewise.
9997
9998 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
9999
10000         PR optimization/13375
10001         * gcse.c (handle_avail_expr): Just return if the source is not a
10002         single set.
10003
10004 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
10005             Daniel Jacobowitz  <drow@mvista.com>
10006
10007         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
10008         (EQUIV): Define.
10009         (ARM_FUNC_ALIAS): New macro.
10010         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
10011         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
10012
10013 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10014
10015         PR optimization/12372
10016         * calls.c (expand_call): Add call_fusage data for stack arguments in
10017         constant calls.
10018
10019 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
10020
10021         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
10022         (rs6000_elf_declare_function_name): Formatting.
10023         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
10024
10025 2004-01-15  Jan Hubicka  <jh@suse.cz>
10026
10027         PR bootstrap/13692
10028         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
10029         previous patch.
10030
10031 2004-01-15  Richard Henderson  <rth@redhat.com>
10032
10033         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
10034         integer regs of the same call-savedness.
10035
10036 2004-01-15  Andreas Schwab  <schwab@suse.de>
10037
10038         PR bootstrap/13562
10039         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
10040         status for NOTB/NOTW/NEGW methods.
10041
10042 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10043
10044         * doc/invoke.texi: Update dump file names.  Fix a typo.
10045
10046 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10047
10048         * builtins.c (expand_builtin_va_end): Don't use
10049         EXPAND_BUILTIN_VA_END.
10050         * system.h (EXPAND_BUILTIN_VA_END): Poison.
10051         * config/d30v/d30v.h: Remove a commented-out definition of
10052         EXPAND_BUILTIN_VA_END.
10053         * config/stormy16/stormy16.h: Likewise.
10054
10055 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10056
10057         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
10058         * targhooks.c (default_struct_value_rtx): Don't use
10059         STRUCT_VALUE_INCOMING_REGNUM.
10060
10061 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
10062
10063         PR bootstrap/12744
10064         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
10065         GENINSRC and not parsedir.  Define srcextra as a langhook.
10066         * configure: Regenerate.
10067         * Makefile.in: Suppress default .l.c rule.  Don't substitute
10068         parsedir and delete all references throughout.  Conditionally define
10069         rule for srcextra dependent on GENINSRC.
10070         (stmp-docobjdir): Delete.
10071         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
10072         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
10073         and gengtype-yacc.h back to source directory.
10074         (maintainer-clean): Delete all parse files in source directory.
10075         (distclean): Delete generated files.
10076
10077         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
10078         (objc-parse.c, objc-parse.y): Don't use parsedir.
10079         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
10080         directory if requested.
10081         (po-generated): Don't use parsedir.
10082         (objc.maintainer-clean): Delete above files from source directory.
10083
10084 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10085
10086         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
10087
10088 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10089
10090         * doc/tm.texi: Replace RETURN_IN_MEMORY with
10091         TARGET_RETURN_IN_MEMORY.
10092
10093 2004-01-15  Jan Hubicka  <jh@suse.cz>
10094
10095         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
10096         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
10097         functions accepting SSE arguments
10098         (function_arg): Warn only when asked to warn.
10099         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
10100
10101 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
10102
10103         * c-parse.in (stmts_and_decls): Make label at end of compound
10104         statement a hard error.
10105
10106 2004-01-14  Jan Hubicka  <jh@suse.cz>
10107
10108         * cgraph.c (create_edge): Use local.redefined_extern_inline.
10109         * cgraph.h (cgraph_local_info): Sort fields by size; add
10110         redefined_extern_inline
10111         (cgraph_global_info): Sort fields by size.
10112         (cgraph_node): Likewise.
10113         * cgraphunit.c (cgraph_finalize_function): Se
10114         local.redefined_extern_inline on redefinition.
10115         (cgraph_analyze_function): Use it; fix formating.
10116
10117 2004-01-14  Jan Hubicka  <jh@suse.cz>
10118
10119         PR c++/10776
10120         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
10121         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
10122         bitmaps
10123         (cache_size): New variable
10124         (add_dependence): Update use; canonize early memory locations
10125         (sched_analyze_1): Likewise.
10126         (sched_analyze_2): Likewise.
10127         (init_dependency_caches): Initialize bitmaps.
10128         (free_dependency_caches): Free bitmaps
10129
10130 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10131
10132         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
10133         targetm.calls.strict_argument_naming().
10134         * target.h: Likewise.
10135
10136 2004-01-14  Richard Henderson  <rth@redhat.com>
10137
10138         PR debug/13231
10139         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
10140         instructions.
10141
10142 2004-01-14  Richard Henderson  <rth@redhat.com>
10143
10144         PR c++/12491
10145         * except.c (struct eh_region): Add u.fixup.resolved.
10146         (resolve_one_fixup_region): Split out from ...
10147         (resolve_fixup_regions): ... here.
10148
10149 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10150
10151         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
10152
10153 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10154
10155         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
10156         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
10157         (STRUCT_VALUE): Remove.
10158
10159 2004-01-14  Steven Bosscher  <stevenb@suse.de>
10160
10161         * system.h: Poison PROMOTED_MODE
10162         * integrate.c (expand_inline_function): Don't mention the
10163         PROMOTED_MODE.
10164         * loop.c (update_giv_derive): Same.
10165         * tree.h (DECL_RTL): Same.
10166
10167 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
10168
10169         PR target/9365
10170         * sh.c (gen_block_redirect): Add special handling of RETURN.
10171         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
10172         far branch target (i.e. it's a return).
10173
10174 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10175
10176         * regrename.c (find_oldest_value_reg): Fix a warning.
10177
10178 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
10179
10180         PR bootstrap/12527
10181         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
10182         Move linux-gas.h and linux-elf.h before aout.h.
10183         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
10184         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
10185
10186 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10187
10188         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
10189         (CONST_INT, VOIDmode, ...).
10190
10191 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
10192
10193         * regrename.c (find_oldest_value_reg): If the replacement uses
10194         multiple hard registers, check that all of them are in CLASS.
10195
10196 2004-01-14  Jan Hubicka  <jh@suse.cz>
10197
10198         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
10199         impossible.
10200
10201 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
10202
10203         * Makefile.in: Define MAINT from --enable-maintainer-mode.
10204
10205 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10206
10207         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
10208         Calculate always vrsave_mask if TARGET_ALTIVEC.
10209         (rs6000_emit_prologue): Emit code for vrsave
10210         only if TARGET_ALTIVEC_VRSAVE.
10211         (rs6000_emit_epilogue): Likewise.
10212
10213 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
10214
10215         * config/sparc/sparc.md (tie_add32): Fix pasto.
10216         (tie_add64): Likewise.
10217
10218 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10219
10220         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
10221
10222 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10223
10224         * config/iq2000/iq2000-protos.h: Fix comment formatting.
10225         * config/iq2000/iq2000.c: Likewise.
10226         * config/iq2000/iq2000.md: Likewise.
10227
10228 2004-01-14  J. Brobecker  <brobecker@gnat.com>
10229
10230         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
10231         (subrange_type_die): Add handle for nameless subrange types.
10232
10233 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10234
10235         * config/h8300/h8300-protos.h: Replace do_movsi with
10236         h8300_expand_movsi.
10237         * config/h8300/h8300.c (do_movsi): Change to
10238         h8300_expand_movsi.
10239         * config/h8300/h8300.md (movsi): Replace do_movsi with
10240         h8300_expand_movsi.
10241         (movsf): Likewise.
10242
10243 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10244
10245         * config/h8300/h8300.c (dosize): Change to
10246         h8300_emit_stack_adjustment.  Update callers.
10247
10248 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10249
10250         * config/h8300/h8300.md (movstrictqi): Add an alternative with
10251         the source being post_inc.  Tighten the predicate for the
10252         destination to register_operand.
10253         (movstricthi): Likewise.
10254
10255 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10256
10257         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
10258         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
10259         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
10260
10261 2004-01-14  Jan Hubicka  <jh@suse.cz>
10262
10263         Partial fix PR c++/12850
10264         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
10265         at zero nest level.
10266
10267 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
10268
10269         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
10270         pseudo-register.
10271
10272 2004-01-13  Devang Patel <dpatel@apple.com
10273
10274         PR debug/7078
10275         * dbxout.c (dbxout_symbol_name): Emit mangled names for
10276         NAMESPACE_DECL memebers.
10277
10278 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
10279
10280         PR c++/12709
10281         * c-common.c (finish_fname_decls): Use the chain only if the
10282         tree is an expr_stmt.
10283
10284 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
10285
10286         * rtl.def: Add comment about new option in automata_option.
10287
10288         * genautomata.c (PROGRESS_OPTION): New macro.
10289         (progress_flag): New global variable.
10290         (gen_automata_option): Process `progress'.
10291         (transform_insn_regexps, check_unit_distributions_to_automata,
10292         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
10293         expand_automata, write_automata): Print about the progress only if
10294         progress_flag.  Remove fflush.
10295         (initiate_automaton_gen): Process command line flag `-progress'.
10296
10297         * doc/md.texi: Describe the new option.
10298
10299 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10300
10301         * cfg.c (dump_bb): Dump entry edges.
10302
10303 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
10304
10305         * arm.c (thumb_legitimate_address_p): Only allow constant pool
10306         references from SImode.
10307         * arm.md (thumb_movhi_insn): Don't allow minipool references.
10308
10309 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10310
10311         * system.h (TEXT_SECTION): Poison.
10312         * varasm.c (text_section): Don't use TEXT_SECTION.
10313         * config/sh/sh.c (sh_file_start): Fix a comment typo.
10314         * doc/tm.texi (TEXT_SECTION): Remove.
10315
10316 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
10317
10318         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
10319
10320 2004-01-12  James E Wilson  <wilson@specifixinc.com>
10321
10322         * unwind-libunwind.c: Delete.
10323
10324 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
10325
10326         PR 13656
10327         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
10328         oldtype is set, set *newtypep or *oldtypep too.  Do not set
10329         them at the very end.
10330         (validate_proto_after_old_defn): Restructure for comprehensibility;
10331         make error messages clearer.
10332
10333 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
10334
10335         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
10336         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
10337         * varray.c: No need to prototype error.
10338         (varray_check_failed): Wrap long string onto two lines.
10339         (varray_underflow): New function.
10340
10341 2004-01-13  Steven Bosscher  <stevenb@suse.de>
10342
10343         PR c++/13376
10344         * function.h (struct function): Kill `name' field.
10345         (current_function_name): Make it an extern function.
10346         * function.c (current_function_name): New function.
10347         * graph.c: Update all uses of current_function_name.
10348         * gcse.c: Likewise.
10349         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
10350         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
10351         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
10352         instead of a strcmp with "main".
10353
10354 2004-01-13  Jan Hubicka  <jh@suse.cz>
10355
10356         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
10357
10358         * cgraphunit.c (cgraph_optimize_function):  Always do
10359         optimize_inline_calls when there is always_inline callee.
10360         (cgraph_decide_inlining): Fix formating.
10361         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
10362         functions.
10363         (expand_call_inline): Likewise.
10364         * toplev.h (sorry): Fix prototype.
10365
10366 2004-01-12  Roger Sayle  <roger@eyesopen.com>
10367
10368         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
10369         conditional jumps that drop through to unconditional jumps or the
10370         end of the sequence.
10371
10372 2004-01-13  Jan Hubicka  <jh@suse.cz>
10373
10374         * alias.c (new_alias_set): Construct the alias_set varray.
10375         (init_alias_once): Don't do it here.
10376
10377 2004-01-12  Marc Espie <espie@openbsd.org>
10378
10379         * system.h: handle YYBYACC like YYBISON.
10380
10381 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
10382
10383         PR target/10847
10384         * config.gcc: No longer includes conflicting header sparc/sol2.h when
10385         building on sparc64-*-openbsd*.
10386
10387 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
10388
10389         PR debug/13539
10390         * dbxout.c (dbxout_type): Protected inheritance is not
10391         private but protected.
10392
10393 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
10394
10395         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
10396
10397 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
10398
10399         PR optimization/12508.
10400         * combine.c (try_combine): Remove a dead set in a parallel
10401         even if its destination is a subreg.
10402
10403         Revert:
10404         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
10405         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
10406         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
10407
10408 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
10409
10410         * real.c: Update copyright date.
10411         * emit-rtl.c: Likewise.
10412         * rtl.h: Likewise.
10413         * dwarf2out.c: Likewise.
10414         * config/rs6000/darwin-ldouble.c: Likewise.
10415         * config/rs6000/rs6000.md: Likewise.
10416
10417 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
10418
10419         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
10420         TFmode to SImode libfuncs.
10421
10422 2004-01-12  Roger Sayle  <roger@eyesopen.com>
10423
10424         PR middle-end/11397
10425         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
10426
10427 2004-01-12  Jan Hubicka  <jh@suse.cz>
10428
10429         PR opt/12826
10430         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
10431         stored.
10432
10433         PR opt/12863
10434         * cfgcleanup.c (label_is_jump_target_p): Move to...
10435         * rtlanal.c (label_is_jump_target_p): ... here.
10436         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
10437         edges unified with branch edges.
10438
10439 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
10440
10441         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
10442         high word of an integral CONST_DOUBLE.
10443
10444 2004-01-12  Paul Brook  <paul@codesourcery.com>
10445
10446         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
10447
10448 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
10449
10450         PR target/13585
10451         * sh-protos.h (check_use_sfunc_addr): Declare.
10452         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
10453         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
10454
10455 2004-01-12  Jan Hubicka  <jh@suse.cz>
10456
10457         * alias.c:  Invlude varray.h
10458         (alias_sets): Turn into varray.
10459         (get_alias_set_entry): Use VARRAY; mark inline.
10460         (mems_in_disjoint_alias_sets_p): Mark inline.
10461         (record_alias_subset): Use varray.
10462         (init_alias_once): Initialize varray.
10463         (new_alias_set): Grow array.
10464         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
10465
10466 2004-01-12  Jan Hubicka  <jh@suse.cz>
10467
10468         Partial fix for PR opt/10776 II
10469         * cselib.c: Include params.h
10470         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
10471         locations.
10472         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
10473         * Makefile.in (cselib.o): Depend on params.h
10474
10475 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
10476
10477         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
10478         simplify_unary_operation if the operand has a known mode.
10479
10480 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
10481
10482         PR target/13534
10483         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
10484         predicate to handle 'ld' conform addresses.
10485         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
10486         contraint.
10487         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
10488         are memory contraints.
10489         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
10490         New prototype.
10491         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
10492         Change 'o' to 'Y' constraint.
10493         (*movdf_softfloat64): Ditto.
10494
10495 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
10496
10497         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
10498         brace-enclosed syntax in all C output statements.
10499
10500 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
10501
10502         PR target/13401
10503         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
10504         Objective-C language type value is 14.
10505
10506 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
10507
10508         PR c/12148
10509         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
10510         `int' in a number of places to make sure we always have a SImode
10511         and not a HImode.  Add a 'L' suffix to a number of constants.
10512
10513 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10514
10515         * pa.c: Don't include obstack.h.
10516
10517         * pa.md: Correct constraint in pattern for loading PIC label address.
10518
10519 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10520
10521         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
10522          before defining.
10523
10524 2004-01-11  Steven Bosscher  <stevenb@suse.de>
10525
10526         PR fortran/9972
10527         * toplev.c (rest_of_handle_inline): Also consider functions
10528         for deferral if the language is GNU F77.
10529
10530 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
10531
10532         * c-decl.c (diagnose_arglist_conflict): Add missing space to
10533         diagnostic messages.
10534
10535 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
10536
10537         PR middle-end/13392
10538         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
10539         to drop through label.  Don't fall back to SCC even when conditional
10540         jump has not been found.
10541
10542 2004-01-11  Jan Hubicka  <jh@suse.cz>
10543
10544         * invoke.texi: Fix syntax error in previous patch.
10545
10546         Partial fix for PR opt/10776
10547         * Makefile.in (reload.o): Include param.h
10548         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
10549         * reload.c: Include params.h.
10550         (find_equiv_reg): Work limiting check.
10551         * invoke.texi: Document.
10552
10553 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
10554
10555         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
10556         out-of-bounds accesses to string constants.  Simplify mips16
10557         case accordingly.
10558
10559 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
10560
10561         PR optimization/13469
10562         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
10563         reload_cse_regs (-fnon-call-exceptions only).
10564
10565 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
10566
10567         * config/mcore/lib1.asm: Fix comment formatting.
10568         * config/mcore/mcore-elf.h: Likewise.
10569         * config/mcore/mcore.c: Likewise.
10570         * config/mcore/mcore.h: Likewise.
10571         * config/mcore/mcore.md: Likewise.
10572
10573 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
10574
10575         * c-decl.c (duplicate_decls): Break apart into...
10576         (diagnose_arglist_conflict, validate_proto_after_old_defn)
10577         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
10578         ... these new functions.  Restructure for comprehensibility.
10579         Remove various archaic special cases.  Always report the
10580         location of the previous declaration when a diagnostic is issued.
10581         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
10582         (match_builtin_function_types): Delete unnecessary forward declaration.
10583
10584 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
10585
10586         * genautomata.c (make_automaton, NDFA_to_DFA):
10587         Print progress bars with '.' characters instead of '*'.
10588         (build_automaton): Change notes to match.
10589
10590 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
10591
10592         * config/m32r/m32r.md: Use define_constants for unspec and
10593         unspec_volatile.
10594
10595 2004-01-10  Jan Hubicka  <jh@suse.cz>
10596
10597         PR opt/11635
10598         * expr.c (expand_expr_real):  More curefully expand union casts.
10599
10600 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
10601
10602         * config/m32r/m32r.md (flush_icache): Use 1 for
10603         unspec_volatile.
10604
10605 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
10606             James E Wilson  <wilson@specifixinc.com>
10607
10608         PR debug/12860
10609         * dbxout.c (dbxout_symbol): Remove initialization of
10610         current_sym_code, current_sym_value, and current_sym_addr.
10611         (dbxout_symbol_location): Same.
10612         (dbxout_prepare_symbol): Zero current_sym_code,
10613         current_sym_value, and current_sym_addr.
10614
10615 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
10616
10617         * tree.c (get_unwidened): Reorder conditions so that the null pointer
10618         check is done first.
10619
10620 2004-01-09  Eric Christopher  <echristo@redhat.com>
10621
10622         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
10623         if we're running mark_constant_function.
10624
10625 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
10626
10627         PR target/12561
10628         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
10629
10630 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
10631
10632         PR debug/11231
10633         * dbxout.c (dbxout_type_fields): Return if any item is
10634         error_mark_node or the type is error_mark_node.
10635
10636 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
10637
10638         * config/rs6000/darwin-ldouble.c: Add big comment explaining
10639         exactly what is expected as a 'long double'.
10640         (_xlqadd): When a value to be returned is representable as a
10641         'double', just return it directly, do not construct it using a union.
10642         Also, correct final fixup.
10643         (_xlqmul): Likewise.
10644         (_xlqdiv): Likewise.
10645         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
10646
10647         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
10648
10649 2004-01-09  Richard Henderson  <rth@redhat.com>
10650
10651         * recog.c (constrain_operands): Validate mem operands.
10652
10653 2004-01-09   James E Wilson  <wilson@specifixinc.com>
10654
10655         * gcc.c (init_spec): Remove -lunwind from shared case.
10656         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
10657
10658 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
10659
10660         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
10661         * configure: Regenerate
10662
10663 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
10664
10665         PR c/11234
10666         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
10667         between function and object pointers.
10668         (digest_init): When comparing a pointer to function type to the
10669         target type, only apply TREE_TYPE once to the pointer to function
10670         type.
10671         * except.c (for_each_eh_label_1): Treat data as a pointer to a
10672         function pointer rather than casting it to a function pointer.
10673         (for_each_eh_label): Update caller.
10674         * recog.h (struct insn_data): Use a struct or union for output.
10675         * genoutput.c (output_insn_data): Update.
10676         * final.c (get_insn_template): Update.
10677
10678 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
10679
10680         * expr.h (expand_expr): Make it a macro, not a function.
10681         (expand_expr_real): New function.
10682         * expr.c (store_expr): Adjust logic for deciding whether or not to
10683         copy the value returned by expand_expr.
10684         (expand_expr): Rename to ...
10685         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
10686         calls to language hooks.
10687         * c-common.h (c_expand_expr): Adjust prototype.
10688         * c-common.c (c_expand_expr): Add alt_rtl parameter.
10689         * langhooks-def.h (lhd_expand_expr): Change prototype.
10690         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
10691         * langhooks.h (lang_hooks): Change type of expand_expr.
10692         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
10693         (last_expr_alt_rtl): Likewise.
10694         (expand_expr_stmt_value): Set last_expr_alt_rtl.
10695         (clear_last_expr): Clear it.
10696         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
10697         (expand_end_bindings): Save and restor last_expr_alt_rtl.
10698         * tree.def (RTL_EXPR): Give it an additional operand.
10699         * tree.h (RTL_EXPR_ALT_RTL): New macro.
10700
10701 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10702
10703         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
10704         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
10705
10706 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10707
10708         PR target/13380.
10709         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
10710         or (ne:SI (reg:CC 17) (const_int 0)).
10711         Be specific about modes wherever possible.
10712
10713 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10714
10715         * config/m32r/m32r.c (m32r_expand_block_move): Call
10716         gen_movestrsi_internal with two more arguments.
10717         (m32r_output_block_move): Adjust operand numbers.
10718         Properly update the source and destination pointers.
10719         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
10720         'r+'.  Change the set detinations to match_operand.
10721
10722 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10723
10724         * final.c (FIRST_INSN_ADDRESS): Remove.
10725         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
10726         * system.h (FIRST_INSN_ADDRESS): Poison.
10727         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
10728         * config/m32r/m32r-protos.h: Remove the prototype for
10729         m32r_first_insn_address.
10730         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
10731         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
10732         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
10733
10734 2004-01-09  J. Brobecker  <brobecker@gnat.com>
10735
10736         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
10737         we just created.
10738         (is_ada_subrange_type): DIEs for enumeration subtypes should be
10739         emitted as subrange types too.
10740         (subrange_type_die): Add handling of enumeration subtypes.
10741
10742 2004-01-08  Richard Henderson  <rth@redhat.com>
10743
10744         PR opt/12441
10745         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
10746         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10747         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10748         (ix86_address_cost): Be prepared for SUBREGed registers.
10749         (legitimate_address_p): Accept SUBREGed registers.
10750
10751 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
10752
10753         * Makefile.in: Rename configure.in to configure.ac
10754         * doc/sourcebuild.texi: Likewise.
10755         * configure: Regenerate.
10756         * config.in: Regenerate.
10757
10758 2004-01-08  Stuart Hastings  <stuart@apple.com>
10759
10760         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
10761
10762 2004-01-08  Jan Hubicka  <jh@suse.cz>
10763
10764         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
10765
10766 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
10767
10768         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
10769         (UNSPEC_FIX_TRUNC_TF): New constant.
10770         (movtf_internal): Make splitter active only when insn is active.
10771         (extenddftf2): Rewrite to properly load zero into low part.
10772         (extenddftf2_internal): New.
10773         (extendsftf2): Rewrite.
10774         (truncdftf2): Correct length.
10775         (floatditf2): Delete.
10776         (fix_trunc_helper): New.
10777         (fix_trunctfdi2): Use fix_trunc_helper.
10778         (fix_trunctfsi2): Likewise.fix_trunc
10779         (fix_trunctfsi2_internal): New.
10780
10781         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
10782         addresses are legitimate on Darwin even when flag_pic.
10783         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
10784         non-offsettable addresses for loads of TFmode constants.
10785
10786 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10787
10788         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
10789         variables in the appropriate bss section.
10790
10791 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
10792
10793         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
10794         target_flags has MASK_POWERPC64 when -m64.
10795         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
10796         to 620, 630, power3, power4 and rs64a entries.
10797         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
10798
10799 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
10800
10801         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
10802         floating-point constants.
10803
10804 2004-01-08  J. Brobecker  <brobecker@gnat.com>
10805
10806         * dwarf2out.c (subrange_type_die): Add context_die parameter.
10807         Create the subrange_type DIE using the given context DIE.
10808         (modified_type_die): Update call to subrange_type_die.
10809
10810 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
10811
10812         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
10813         Add multiple-include guard.
10814
10815 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
10816
10817         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
10818         all vector constant loadable by vsplt*.
10819         (output_vec_const_move): Likewise.
10820
10821 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
10822
10823         PR c/6024
10824         * c-typeck.c (comptypes): Only treat enumerated types in the same
10825         translation unit as compatible with each other when they are the
10826         same type.
10827         * doc/extend.texi: Update.
10828
10829 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
10830
10831         PR c/12165
10832         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
10833         array type from the array element type.
10834
10835 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
10836
10837         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
10838         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
10839         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
10840         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
10841         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
10842
10843 2004-01-06  Eric Christopher  <echristo@redhat.com>
10844
10845         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
10846         (DWARF2_DEBUGGING_INFO): Define.
10847         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
10848         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
10849         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
10850         for irix as.
10851         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
10852         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
10853         * config/mips/iris5gas.h: Ditto.
10854         (DBX_DEBUGGING_INFO): Remove.
10855         (DWARF2_DEBUGGING_INFO): Ditto.
10856         (MIPS_DEBUGGING_INFO): Ditto.
10857         (PREFERRED_DEBUGGING_TYPE): Ditto.
10858         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
10859         (PREFERRED_DEBUGGING_TYPE): Ditto.
10860         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
10861         * config/mips/elf64.h: Ditto.
10862
10863 2004-01-06  Jan Hubicka  <jh@suse.cz>
10864
10865         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
10866         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
10867
10868 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
10869
10870         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
10871         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
10872         * config/rs6000/darwin-ldouble.c: New.
10873
10874         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
10875         for constants.
10876         (constant_subword): Delete.
10877         * rtl.h (constant_subword): Delete prototype.
10878         (immed_double_const): Is not in varasm.c.
10879         * simplify-rtx.c (simplify_immed_subreg): New.
10880         (simplify_subreg): Use simplify_immed_subreg.
10881
10882         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
10883         than trying to generate RTL directly.
10884         (fix_trunctfsi2): Use expand_fix rather than trying to generate
10885         RTL directly.
10886
10887         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
10888
10889 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
10890
10891         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
10892         function into a separate macro.
10893         (read_only_data_section): Add void argument.
10894         (private_data_section): Same.
10895         (read_only_private_data_section): Same.
10896         (toc_section): Same.
10897
10898 2004-01-06  Jan Hubicka  <jh@suse.cz>
10899
10900         * invoke.texi:  Remove typo in last change.
10901
10902         PR target/10301
10903         * config.gcc: Accept opteron and athlon-64 as variants
10904         of k8.
10905         * i386.c (override_options): Likewise.
10906         * invoke.texi (i386 -mtune): Expand documentation.
10907
10908 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
10909
10910         * alias.c: Fix comment typos.
10911         * builtins.c: Likewise.
10912         * cfg.c: Likewise.
10913         * df.c: Likewise.
10914         * dominance.c: Likewise.
10915         * dwarf2out.c: Likewise.
10916         * emit-rtl.c: Likewise.
10917         * expr.c: Likewise.
10918         * final.c: Likewise.
10919         * fold-const.c: Likewise.
10920         * gcse.c: Likewise.
10921         * genattrtab.c: Likewise.
10922         * genrecog.c: Likewise.
10923         * gensupport.c: Likewise.
10924         * ggc-zone.c: Likewise.
10925         * integrate.c: Likewise.
10926         * local-alloc.c: Likewise.
10927         * loop.c: Likewise.
10928         * recog.c: Likewise.
10929         * regmove.c: Likewise.
10930         * reg-stack.c: Likewise.
10931         * reorg.c: Likewise.
10932         * rtlanal.c: Likewise.
10933         * rtl.h: Likewise.
10934         * sched-ebb.c: Likewise.
10935         * simplify-rtx.c: Likewise.
10936         * toplev.c: Likewise.
10937         * varasm.c: Likewise.
10938
10939 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
10940
10941         * doc/install.texi: Fix typos.
10942         * doc/invoke.texi: Likewise.
10943         * doc/md.texi: Likewise.
10944
10945 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10946
10947         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
10948
10949 2004-01-06  Jan Hubicka  <jh@suse.cz>
10950
10951         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
10952         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
10953         of MMX_REGPARM.
10954         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
10955         add MMX_REGPARM.
10956         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
10957         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
10958         (MMX_REGPARM_MAX): Similarly for -mmmx.
10959
10960 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10961
10962         * config/sh/linux.h: Fix comment formatting.
10963         * config/sh/netbsd-elf.h: Likewise.
10964         * config/sh/sh.c: Likewise.
10965         * config/sh/sh.h: Likewise.
10966         * config/sh/vxworks.h: Likewise.
10967
10968 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10969
10970         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
10971         * toplev.c (output_file_directive): Don't use
10972         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
10973
10974 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
10975
10976         * toplev.c: Fix broken checkin of 2003-12-30.
10977
10978 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
10979
10980         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
10981         (USING_MMAP): We don't support non-mmap.
10982         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
10983         large objects.
10984         (struct page_entry): Remove bytes_free.
10985         (struct page_table_chain): Remove.
10986         (struct globals): Remove page_table member.
10987         (loookup_page_table_entry): Function deleted.
10988         (set_page_table_entry): Ditto.
10989         (ggc_allocated_p): No longer need page table lookups.
10990         (ggc_marked_p): Ditto.
10991         (alloc_small_page): Don't care about bytes_free anymore.
10992         (alloc_large_page): Round up size.
10993         (ggc_alloc_zone_1): Mark large objects as such, and calculate
10994         their size the new way.
10995         Remove page table lookups and setting.
10996         (ggc_get_size): Calculate large object size the new way.
10997         (sweep_pages): Redo to account for fact that we no longer have
10998         bytes_free.
10999         (ggc_collect): No longer need to reincrement bytes_free.
11000         (ggc_pch_alloc_object): Handle new large objects properly.
11001         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
11002
11003 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11004
11005         * doc/invoke.texi: Remove a page break.
11006
11007 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11008
11009         * config/avr/avr.c (avr_output_function_prologue): Remove an
11010         extra pair of curly braces.
11011
11012 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11013
11014         * config/mn10300/mn10300.c: Fix comment formatting.
11015         * config/mn10300/mn10300.h: Likewise.
11016
11017 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11018
11019         * tree.h: Update documentation on nothrow_flag.
11020         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
11021         types.
11022
11023 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11024
11025         * doc/invoke.texi: Remove traces of dead ports.
11026
11027 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
11028
11029         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
11030         option.
11031
11032 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
11033
11034         PR target/12945
11035         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
11036         counter labels.
11037         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
11038         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
11039         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
11040         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
11041         (mips_symbol_insns): Don't trust the local/global classification.
11042         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
11043         (override_options): Make -mabicalls -fno-unit-at-a-time imply
11044         -mno-explicit-relocs.
11045         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
11046         between local and global symbols.
11047
11048 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
11049
11050         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
11051         (mips_preferred_reload_class): Declare.
11052         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
11053         (EXTRA_CONSTRAINT): Update accordingly.
11054         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
11055         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
11056         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
11057         mips_dangerous_for_la25_p.
11058         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
11059         if mips_dangerous_for_la25_p.
11060
11061 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
11062
11063         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
11064         warning.
11065
11066 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
11067
11068         * configure.ac: Use AC_PROG_CPP_WERROR.
11069         * configure: Regenerate.
11070
11071 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
11072
11073         * .cvsignore: Add autom4te.cache.
11074
11075 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
11076
11077         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
11078         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
11079         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
11080         then architecture options, then ABI options.  General rewording.
11081
11082 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
11083
11084         PR c/3414
11085         * doc/extend.texi: Clarify definition of malloc attribute.
11086
11087 2004-01-04  Jan Hubicka  <jh@suse.cz>
11088
11089         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
11090         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
11091         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
11092         (cgraph_inline_p): Add extra argument reason.
11093         * cgraphunit.c: Minor formating fixes.
11094         cgraph_first_inlined_callee): New functions.
11095         (record_call_1): Record builtins too.
11096         (cgraph_analyze_function): Update inline_failed messages.
11097         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
11098         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
11099         (cgraph_check_inline_limits): Likewise; Add argument reason.
11100         (cgraph_set_inline_failed): New static function.
11101         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
11102         reasons.
11103         (cgraph_inline_p): Add new argument reason.
11104         * tree-inline.c (expand_call_inline):  Update warning.
11105
11106 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
11107
11108         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
11109         with modern equivalents.
11110         * configure: Regenerate.
11111
11112         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
11113         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
11114         * configure: Regenerate.
11115
11116         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
11117
11118         * configure.in: Rename to configure.ac.
11119         * configure.ac: Renamed from configure.in; make minimum necessary
11120         changes for autoconf 2.5x.
11121         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
11122         * configure: Regenerate with autoconf 2.57.
11123
11124 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
11125
11126         * config/mips/linux.h: Fix comment formatting.
11127         * config/mips/mips.c: Likewise.
11128         * config/mips/mips.h: Likewise.
11129         * config/mips/mips.md: Likewise.
11130         * config/mips/netbsd.h: Likewise.
11131         * config/mips/windiss.h: Likewise.
11132
11133 2004-01-02  Richard Henderson  <rth@redhat.com>
11134
11135         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
11136         for sse and 387; add suppression for mmx.
11137
11138 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
11139
11140         * loop.c (loop_optimize): Free all loops_info's mems.
11141
11142         * c-typeck.c (finish_init): Free spelling_base before
11143         setting it again.
11144
11145         * cfgloop.c (flow_loops_find): Always free the sbitmap
11146         headers.
11147
11148         * predict.c (estimate_probability): Free bbs after being
11149         done with it.
11150
11151 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
11152
11153         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
11154         const_8bit_operand and call_address_operand.
11155
11156 2004-01-02  Jan Hubicka  <jh@suse.cz>
11157
11158         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
11159         when there is nothing to inline but warnings are requested.
11160         (cgraph_decide_inlining):  Fix memory leak.
11161
11162 2004-01-02  Jan Hubicka  <jh@suse.cz>
11163
11164         * expr.c (store_constructor):  Fix pasto in previous patch.
11165
11166 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
11167
11168         * config/i386/cygming.h: Fix comment formatting.
11169         * config/i386/djgpp.h: Likewise.
11170         * config/i386/gthr-win32.c: Likewise.
11171         * config/i386/i386-interix.h: Likewise.
11172         * config/i386/i386.c: Likewise.
11173         * config/i386/i386.h: Likewise.
11174         * config/i386/openbsd.h: Likewise.
11175         * config/i386/winnt.c: Likewise.
11176         * config/i386/xm-mingw32.h: Likewise.
11177
11178 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
11179
11180         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
11181         copyright and last modification dates.
11182
11183 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
11184
11185         * doc/install.texi (Specific): Mention x86_64.
11186
11187 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11188
11189         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
11190         Call force_operand on plus_constant result.
11191
11192 2004-01-01  Jan Hubicka  <jh@suse.cz>
11193
11194         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
11195         * expr.c (store_constructor): Use vec_init pattern.
11196         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
11197         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
11198         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
11199         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
11200         New patterns.
11201         (sse2_unpc?pd): Fix pattern.
11202         (sse2_movlpd): Kill.
11203         (sse2_movsd): Deal with movlpd too.
11204         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
11205         (ix86_expand_vector_init): New.
11206         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
11207         * md.texi (vec_set, vec_extract): Document
11208
11209 2003-12-31  Jan Hubicka  <jh@suse.cz>
11210
11211         PR opt/13473
11212         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
11213         ASM input operands
11214
11215         PR opt/12617
11216         * toplev.c (dump_file_index): Reorder ce3 and bbro.
11217         (dump_file): Likewise.
11218         (rest_of_compilation): Likewise.
11219
11220         PR debug/13367
11221         * cgraph.c (cgraph_function_possibly_inlined):  Even with
11222         flag_really_no_inline we inline always_inline functions.
11223         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
11224         for non-always_inline functions when there is flag_really_no_inline.
11225         (cgraph_decide_inlining): Limit work done when not inlining.
11226         (cgraph_decide_inlining_incrementally): Likewise.
11227         (cgraph_optimize_function): Check whether something got inlined.
11228         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
11229         extern inline functions when not inlining.
11230
11231         * opts.c (decode_options):  Disable crossjumping at -O1
11232         * invoke.texi (-O1): Document change.
11233
11234 See ChangeLog.10 for earlier changes.