OSDN Git Service

2004-04-05 Caroline Tice <ctice@apple.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-04-05  Caroline Tice  <ctice@apple.com>
2
3         * gcc.c (combine_flag): New global variable, for new driver option.
4         (struct compiler): Add two new fields, to be used when
5         combining multiple input files in a single pass (IMA).
6         (default_compilers):  Add values for the new fields to all 
7         compiler entries. Modify the "@c" compiler entry for doing IMA 
8         properly with "-save-temps" and the "combine" flag.
9         (option_map):  Add new driver option, "--combine", to tell driver
10         to pass multiple input files to compiler at one time.
11         (have_o_argbuf_index): New global variable.
12         (store_arg): Modify to assign value to have_o_argbuf_index.
13         (struct infile):  Add three new fields, to help with IMA.
14         (display_help): Add help for new "combine" option.
15         (process_command): Remove local variable have_o; add code to check
16         for new "combine" option; remove assignment to combine_inputs.
17         (do_spec_1):  Modify to deal with IMA better.
18         (main): Make variable 'lang_n_infiles' local to entire function
19         rather than to a single block.  Use flag combine_flag to 
20         determine whether to do IMA or not; Modify loop initializing 
21         infiles to deal properly with linker files.
22         Add code for doing preprocessing in presence of
23         IMA with "-save-temps" flag.  Modify "main" loop to handle
24         multiple input files, in multiple languages, with or without
25         preprocessing,  gracefully.
26         * toplev.c (set_src_pwd): Modify to not complain if attempting to
27         re-set it to same directory it's previously been set to (avoid
28         irritating, meaningless warning messages when doing IMA with 
29         save-temps).
30         * doc/invoke.texi: Add "-combine" to list of Overall Options;
31         remove documentation about IMA that is no longer accurate; Add
32         documentation explaining what "-combine" does.
33         * ada/lang-specs.h: Add initialization values for new fields in
34         "struct compiler".
35         * cp/lang-specs.h: Likewise.
36         * f/lang-specs.h: Likewise.
37         * java/lang-specs.h: Likewise.
38         * objc/lang-specs.h: Likewise.
39         * treelang/lang-specs.h: Likewise.
40
41 2004-04-05  David Edelsohn
42
43         * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
44         symbol handling.
45
46 2004-04-05  Jakub Jelinek  <jakub@redhat.com>
47             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
48
49         PR optimization/13424 (hppa), bootstrap/14462, c/14828
50         * pa.md: Use replace_equiv_address to retain the attributes of the
51         memory operands used in the split and peephole2 patterns for optimizing
52         the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
53
54 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
55
56         * c-decl.c (build_compound_literal): Use TYPE_READONLY.
57         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
58         * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
59         * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
60         PARM_DECL.
61         * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
62         for a type.
63         * print-tree.c (print_node): Properly handle side-effects, readonly,
64         and constant flags.
65         * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
66         and TREE_CONSTANT if not a type.
67         * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
68         (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
69         (NON_TYPE_CHECK): New macro.
70         (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
71
72 2004-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
73
74         * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
75         to DWARF2_DEBUG unconditionally.
76         (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
77
78 2004-04-04  Ian Lance Taylor  <ian@wasabisystems.com>
79             Nathanael Nerode  <neroden@gcc.gnu.org>
80
81         PR target/14548
82         * config.host: Set the shell variable host_can_use_collect2.
83         Set it to yes by default, and to no for alpha*-dec-*vms*,
84         i[34567]86-*-mingw32*, and powerpc-*-beos*.
85         * configure.ac: Set and substitute the shell variable collect2.
86         Give an error if use_collect2 is yes and host_can_use_collect2 is
87         no.
88         * Makefile.in (COLLECT2): Rename from USE_COLLECT2.  Change all
89         uses.  Initialize to @collect2@.
90         (STAGESTUFF): Remove $(USE_COLLECT2).
91         * config/alpha/x-vms (USE_COLLECT2): Don't set.
92         * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
93         * config/rs6000/t-beos (USE_COLLECT2): Likewise.
94         * config/pa/t-pa64: Remove commented out USE_COLLECT2.
95         * configure: Regenerate.
96
97 2004-04-04  Roger Sayle  <roger@eyesopen.com>
98
99         * simplify-rtx.c (simplify_binary_operation): Constant fold
100         DIV, MOD, UDIV and UMOD using div_and_round_double.
101
102 2004-04-04  Mark Mitchell  <mark@codesourcery.com>
103
104         PR c++/14804
105         * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
106         RECORD_TYPEs.
107
108 2004-04-04  Mark Mitchell  <mark@codesourcery.com>
109
110         * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
111         documentation.
112
113 2004-04-04  Roger Sayle  <roger@eyesopen.com>
114
115         * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
116         updating the REG_EQUAL note on an insn's libcall_insn.
117
118 2004-04-04  Roger Sayle  <roger@eyesopen.com>
119
120         * df.h: Tidy up whitespace in the definitions of the DF_ flags.
121
122 2004-04-03  Roger Sayle  <roger@eyesopen.com>
123
124         * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
125         with reorder_operands_p.
126
127 2004-04-03  Jan Hubicka  <jh@suse.cz>
128
129         * md.texi (vec_set, vec_extract, vec_init): Document.
130
131 2004-04-02  Gabor Loki <loki@inf.u-szeged.hu>
132
133        * opts.c (decode_options): Do function inlining with very small
134        max-inline-insns-* parameters when optimizing for size.
135
136 2004-04-02  Vladimir Makarov  <vmakarov@redhat.com>
137
138         * config/i386/i386.h (TARGET_NOCONA): New macro.
139         (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
140         (processor_type): Add PROCESSOR_NOCONA.
141         
142         * config/i386/i386.md (cpu): Add nocona to the attribute values.
143
144         * config/i386/i386.c (nocona_cost): New variable.
145         (m_NOCONA): New macro.
146         (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
147         x86_branch_hints, x86_use_sahf, x86_single_stringop,
148         x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
149         x86_integer_DFmode_moves, x86_partial_reg_dependency,
150         x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
151         x86_decompose_lea, x86_arch_always_fancy_math_387,
152         x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
153         x86_ext_80387_constants, x86_four_jump_limit):
154         (override_options): Add nocona_cost to processor_target_table.
155         Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
156         (incdec_operand): Prevent inc/dec generation for Nocona too.
157         (ix86_issue_rate): Add PROCESSOR_NOCONA.
158         
159 2004-04-01  Andrew Pinski  <pinskia@physics.uc.edu>
160
161         * rtlanal.c (find_reg_note): Manually
162         unswitch the loop.
163
164 2004-04-01  Mark Mitchell  <mark@codesourcery.com>
165
166         * genemit.c (gen_split): Change prototype of generated code.
167         * genrecog.c (write_action): Adjust prototype for and calls to
168         gen_split_*.
169         * gensupport.c (struct queue_elem): Add split field.
170         (queue_pattern): Return a value.  Clear the split field.
171         (process_rtx): Maintain an association between an insn and the
172         split generated from it for a define_insn_and_split.
173         (process_one_cond_exec): Generate a new split for a
174         define_insn_and_split.
175         * config/arm/arm-protos.h (arm_split_constant): Add insn
176         parameter.
177         (emit_constant_insn): New function.
178         (arm_gen_constant): Use it.
179         * config/arm/arm.md: Adjust calls to arm_split_constant.
180
181 2004-04-02  Jan Hubicka  <jh@suse.cz>
182
183         * cgraph.c: Add overall comment.
184         (cgraph_inline_hash): New global variable.
185         (cgraph_create_node): Break out from ...
186         (cgraph_node): ... here.
187         (cgraph_edge): New function.
188         (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
189         (cgraph_remove_edge): Accept edge, intead of source and destination.
190         (cgraph_redirect_edge_callee): New.
191         (cgraph_remove_node): Update all new datastructures.
192         (cgraph_record_call, cgraph_remove_call): Kill.
193         (dump_cgraph_node): Break out from ... ; dump new datastructures.
194         (dump_cgraph): ... here.
195         (cgraph_function_possibly_inlined_p): Use new hashtable.
196         (cgraph_clone_edge, cgraph_clone_node): New.
197         * cgraph.h: Include hashtab.h
198         (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
199         fields, add inlined_to pointer.
200         (cgraph_node): Add pointer to next_clone.
201         (cgraph_remove_edge, cgraph_create_edge): Update prototype.
202         (cgraph_remove_call, cgraph_record_call): Kill.
203         (cgraph_inline_hash): Declare.
204         (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
205         cgraph_redirect_edge_callee): Declare.
206         (cgraph_create_edges, cgraph_inline_p): Update prorotype.
207         (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
208         cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
209         * cgraphunit.c: Add overall comment.
210         (cgraph_optimize_function): Kill.
211         (cgraph_assemble_pending_functions): Do not assemble inline clones.
212         (cgraph_finalize_function): Update call of cgraph_remove_node
213         (record_call_1): Record call sites.
214         (cgraph_create_edges): Accept node instead of decl argument.
215         (error_found): New static variable.
216         (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
217         (cgraph_analyze_function): Update for new datastructures.
218         (cgraph_finalize_compilation_unit): Plug memory leak.
219         (cgraph_optimize_function): Kill.
220         (cgraph_expand_function): Do not use cgraph_optimize_function.
221         (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
222         cgraph_inlined_callees): Kill.
223         (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
224         clones.
225         (estimate_growth): Simplify.
226         (cgraph_clone_inlined_nodes): New function.
227         (cgraph_mark_inline_edge): Re-implement.
228         (cgraph_mark_inline): Likewise.
229         (cgraph_check_inline_limits): Simplify.
230         (cgraph_recursive_inlining_p): New.
231         (update_callee_keys): Break out from ...
232         (cgraph_decide_inlining_of_small_functions): ... here; simplify.
233         (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
234         Likewise.
235         (cgraph_expand_all_functions):  Remove inline clones from the ordered
236         list.
237         (cgraph_preserve_function_body_p): New predicate.
238         (cgraph_optimize): Verify cgraph.
239         * function.h (struct function): Add fields saved_tree/saved_args.
240         * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
241         * toplev.c (rest_of_compilation): Do not free cfun.
242         * tree-inline.c: Include function.h
243         (struct inline_data): Add saving_p field; replace decl/current_decl by
244         node/current_node.
245         (insert_decl_map): New function.
246         (copy_body_r): Handle saving; update cgraph datastructure.
247         (copy_body): Handle recursive inlining.
248         (initialize_inlined_parameters): Likewise.
249         (expand_call_inline): Propagate node attributes; update cgraph.
250         (optimize_inline_calls): Verify that datastructure still match.
251         (save_body): New function.
252         * tree-inline.h (save_body): New.
253         * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
254         * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
255         * langhooks.c (lang_hooks): Add update_decl_after_saving.
256
257 2004-04-01  Serge Belyshev  <1319@bot.ru>
258
259         PR target/14702
260         * config/i386/i386.md: fix source operand constraints in
261         mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
262
263 2004-04-01  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
264
265         * fold-const.c (folda): Preserve types of comparisons.
266
267 2004-04-01  Richard Henderson  <rth@redhat.com>
268
269         * toplev.c (backend_init): Move init_optimization_passes call ...
270         (lang_dependent_init): ... here.
271
272 2004-04-01  Alan Modra  <amodra@bigpond.net.au>
273             Jakub Jelinek  <jakub@redhat.com>
274
275         * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
276         -lgcc --as-needed -lgcc_s --no-as-needed by default.
277         * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
278         * configure: Rebuilt.
279         * config.in: Rebuilt.
280         * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
281         (stage2-start, stage3-start, stage4-start): Likewise.
282         (stageprofile-start, stagefeedback-start): Likewise.
283
284 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
285
286         * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
287         * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
288         * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
289         * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
290         (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
291         * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
292         with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
293         * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
294         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
295         * config/sparc/t-linux: Removed.
296
297 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
298
299         PR c++/14755
300         * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
301         "bitfld++ == const" to "++bitfld == const + incr" transformations.
302
303 2004-04-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
304
305         * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
306         * stor-layout.c (layout_decl): Likewise.
307         * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
308         * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
309         * print-tree.c (print_node): Handle various used of unsigned_flag.
310         * tree.def (BIT_FIELD_REF): Update comment.
311         * tree.h (TREE_UNSIGNED): Deleted.
312         (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
313
314 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
315
316         * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
317         Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
318         * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
319         * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
320         * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
321         * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
322         * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
323         * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
324         * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
325         * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
326         REAL_TYPE, not INTEGER_TYPE.
327         (layout_type, case VECTOR_TYPE): Simplify code.
328         * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
329         * tree.h: Update comments.
330         (STRIP_NOPS): Use TYPE_UNSIGNED.
331         (TYPE_UNSIGNED): New macro.
332         (TYPE_TRAP_SIGNED): Remove now redundant check.
333         (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
334
335 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
336
337         * function.c (put_var_into_stack): Properly set orig_reg for indirect.
338
339 2004-03-31  Andrew Pinski  <pinskia@physics.uc.edu>
340
341         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
342         Add darwin-fpsave.asm, darwin-vecsave.asm,
343         and darwin-world.asm.
344         (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
345         as the asm files contain altivec instructions.
346         * config/rs6000/darwin-fpsave.asm: New file.
347         * config/rs6000/darwin-vecsave.asm: New file.
348         * config/rs6000/darwin-world.asm: New file.
349
350 2004-03-31  Zack Weinberg  <zack@codesourcery.com>
351
352         * gengtype-yacc.y (option, stringseq): Add missing
353         terminating semicolon.
354
355 2004-03-30  David Edelsohn  <edelsohn@gnu.org>
356
357         * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
358         tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
359         tls_dtprel_ha_32, tls_dtprel_ha_64,
360         tls_dtprel_lo_32, tls_dtprel_lo_64,
361         tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
362         tls_tprel_ha_32, tls_tprel_ha_64,
363         tls_tprel_lo_32, tls_tprel_lo_64,
364         tls_got_tprel_32, tls_got_tprel_64,
365         tls_tls_32, tls_tls_64): Replace register_operand with
366         gpc_reg_operand.
367
368 2004-03-30  Mostafa Hagog  <mustafa@il.ibm.com>
369
370         * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
371         *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
372         *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
373         *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
374         *ctrdi_internal6): Replace register_operand with
375         nonimmediate_operand.
376
377 2004-03-29  Fariborz Jahanian <fjahanian@apple.com>
378
379         * fold-const.c (fold): Reassociate multiply expression
380         with an adjacent non-multiply expression to use
381         architecture's multiply-add instruction.
382
383 2004-03-30  Zack Weinberg  <zack@codesourcery.com>
384
385         * gengtype.c (create_option): New function.
386         * gengtype.h: Prototype it.
387         * gengtype-yacc.y (stringseq): New rule.
388         (option): Use create_option.  Add new bare ID production.  Use
389         stringseq, not STRING directly.
390
391         * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
392         * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
393         * varray.h, config/alpha/alpha.c:
394         Use new shorter form of GTY markers.
395
396         * doc/gty.texi: Rewrite.
397
398 2004-03-30  Andrew Pinski  <pinskia@physics.uc.edu>
399
400         * config/darwin.c (machopic_function_base_name):
401         Remove current_name and getting the name of the
402         current function.
403
404 2004-03-30  Nick Clifton  <nickc@redhat.com>
405
406         * config/arm/arm.md (thumb_jump): Reduce the backward branch
407         range, and increase the forward branch range, to allow for
408         the fact that the PC will be off by 4.
409
410 2004-03-30  Alan Modra  <amodra@bigpond.net.au>
411
412         * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
413
414 2004-03-30  Hartmut Penner  <hpenner@de.ibm.com>
415
416         * config/rs6000/rs6000.c (output_vec_const_move):
417         Find all cases of EASY_VECTOR_15_ADD_SELF.
418         (easy_vector_constant_add_self): Accept
419         all vector constant loadable by vsplt* and vadd*.
420         (easy_vector_same): Use easy_vector_splat_const.
421         (easy_vector_const): Use easy_vector_splat_const.
422         (easy_vector_splat_const): New function.
423         (gen_easy_vector_constant_add_self): New function.
424
425         * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
426         New prototype.
427
428         * config/rs6000/altivec.md (movv4si splitter): Change to
429         emit move insn with halfed vector constant.
430         (*movv8hi splitter): Likewise.
431         (*movv16qi splitter): Likewise.
432
433 2004-03-30  Hartmut Penner  <hpenner@de.ibm.com>
434
435         PR 11591
436         * config/rs6000/rs6000.c (rs6000_legitimate_address):
437         Allow any offset to argument pointer in no-strict case.
438
439 2004-03-30  Jan Hubicka  <jh@suse.cz>
440
441         * toplev.c (backend_init): Add missing call to inint_optimization_passes.
442         * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
443         dump file in non-unit-at-a-time mode.
444
445 2004-03-29  Hans-Peter Nilsson  <hp@axis.com>
446
447         * config/cris/cris.h: Correct #ifdef to test for
448         HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
449         HAVE_AS_MUL_BUG_ABORT_OPTION.
450
451 2004-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
452
453         * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
454         the address inside the old RTL.
455
456 2004-03-28  Zack Weinberg  <zack@codesourcery.com>
457
458         * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
459         (struct c_binding, struct c_scope): Add chain_next
460         attributes to GTY markers.
461         (struct lang_identifier, struct lang_tree_node): Define
462         here...
463         * c-tree.h: ... not here.  No longer need to declare struct
464         c_binding either.  Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
465         * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
466         to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
467
468         PR 14734, 11944
469         * c-decl.c (get_parm_info): If error_mark_node is encountered
470         in the bindings chain, unbind and discard it; don't abort.
471
472 2004-03-28  Olga Golovonevsky <olga@il.ibm.com>
473             Dorit Naishlos <dorit@il.ibm.com>
474
475         * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
476         one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
477
478 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
479
480         * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
481
482         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
483         (m68hc11_attribute_table): New attribute "page0" to mark a global
484         variable as being allocated from within page0 section.
485         (m68hc11_encode_label): New function.
486         (m68hc11_strip_name_encoding): New function.
487         (m68hc11_page0_symbol_p): New function.
488         (m68hc11_indirect_p): Accept global variables marked in page0.
489         (m68hc11_encode_section_info): Lookup "page0" attribute.
490
491         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
492         represents access to page0 variables.
493
494         * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
495         ("*logicalsi3_silshl16_zext"): Likewise.
496         ("*ashldi3_const32"): Likewise.
497         (peephole2 ashift): Likewise.
498
499 2004-03-28  Joseph S. Myers  <jsm@polyomino.org.uk>
500
501         * c-tree.h (C_DECL_REGISTER): New.
502         * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
503         finish_decl, grokdeclarator, get_parm_info), c-typeck.c
504         (build_array_ref, c_mark_addressable): Set and use it.
505         * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
506         Allow structures with volatile fields to be declared register.
507         Don't check TREE_ADDRESSABLE before warning about taking address
508         of register.
509         * c-decl.c (finish_decl): Don't allow structures with volatile
510         fields to be placed in named register.
511         * doc/trouble.texi: Remove reference to structures with volatile
512         fields in registers.
513
514 2004-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
515
516         * function.c (thread_prologue_and_epilogue): Move
517         NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
518         before the epilogue.
519
520 2004-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
521
522         * expr.c (store_constructor): Use gen_int_mode to correctly
523         sign-extend CONST_INT value.
524
525 2004-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
526
527         * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
528         * builtins.def (DEF_C94_BUILTIN): New.  Add wctype builtins.
529         * doc/extend.texi: Likewise.
530
531 2004-03-26  Diego Novillo  <dnovillo@redhat.com>
532
533         * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
534           with TYPE_ORIG_SIZE_TYPE.
535
536 2004-03-25  Aldy Hernandez  <aldyh@redhat.com>
537
538         PR 14219
539         * c-typeck.c (build_binary_op): Do not allow comparisons of
540         vectors.
541
542 2004-03-26  James A. Morrison  <ja2morri@uwaterloo.ca>
543
544         * config.gcc: Remove sparc-tti-*.
545         * config/sparc/pbd.h: Delete.
546
547         * config/sparc/sol2.h: Remove note about Sun OS 4.x.
548         * config/sparc/aout.h: Likewise.
549
550         * config/sparc/sparc.h: Remove if 0'd code.
551         * config/sparc/sparc.md (call): Remove if 0'd code.
552         (call_value): Likewise.
553         (nonlocal_goto): Likewise.
554         (unimp_insn): Delete.
555
556 2004-03-25  Roger Sayle  <roger@eyesopen.com>
557
558         * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
559         BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
560
561 2004-03-25  Richard Henderson  <rth@redhat.com>
562
563         PR 11527
564         * c-typeck.c (pop_init_level): Emit pending init elements earlier
565         rather than later.
566
567 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
568
569         * builtins.c (fold_builtin): Fix error in last change.
570
571 2004-03-25  Richard Sandiford  <rsandifo@redhat.com>
572
573         * config/mips/mips.h: Formatting fix.
574
575 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
576
577         * builtins.def: Add ctype builtins.
578         * doc/extend.texi: Likewise.
579
580 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
581
582         * builtins.c (fold_builtin): Add new builtin optimizations for
583         sqrt and/or cbrt.
584         * fold-const.c (fold): Likewise.
585
586 2004-03-25  David Edelsohn  <edelsohn@gnu.org>
587
588         * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
589         (rs6000_sched_groups): New variable.
590         (processor_target_table): Add power5.
591         (rs6000_override_options): Set rs6000_sched_insert_nops,
592         rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
593         from rs6000_sched_groups.
594         (output_cbranch): Use rs6000_always_hint.
595         (rs6000_variable_issue): Use rs6000_sched_groups.
596         (rs6000_adjust_cost): Add CPU_POWER5.
597         (is_microcoded_insn): Use rs6000_sched_groups.
598         (is_dispatch_slot_restricted): Use rs6000_sched_groups.
599         Return 2 for POWER5 cracked instructions.
600         (is_cracked_insn): Use rs6000_sched_groups.
601         (is_branch_slot_insn): Use rs6000_sched_groups.
602         (rs6000_issue_rate): Add CPU_POWER5.
603         (rs6000_sched_finish): Use rs6000_sched_groups.
604         (rs6000_rtx_costs): Add PROCESSOR_POWER5.
605         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
606         (DEFAULT_SCHED_COSTLY_DEP): Delete.
607         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
608         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
609         * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
610         * config/rs6000/power5.md: New file.
611         * doc/invoke.texi: Add power5 option.
612
613 2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>
614
615         * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
616         config/arm/arm.c, objc/objc-act.c: Fix comment typos.
617         * doc/invoke.texi: Fix a typo.
618
619 2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>
620
621         PR optimization/9707.
622         * stmt.c (emit_case_nodes): Emit equality comparisons instead
623         of recursing if both children are single-valued cases with no
624         children.
625
626 2004-03-25  Paul Brook  <paul@codesourcery.com>
627
628         * config/arm/arm.c (vfp_print_multi): Remove.
629         (arm_output_fldmx): New function.
630         (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
631         (arm_expand_prologue): Update to match.
632         (arm_get_vfp_saved_size): New Function.
633         (arm_get_frame_offsets): Use it.
634         (arm_output_epilogue): Use new functions.
635
636 2004-03-24  Richard Henderson  <rth@redhat.com>
637
638         * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
639         (reg_known_value, reg_known_value_size): Likewise; make static.
640         (reg_known_equiv_p): Make static.
641         (clear_reg_alias_info): Update for new indexing.
642         (get_reg_known_value, set_reg_known_value): New.
643         (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
644         (canon_rtx): Use them.
645         (init_alias_analysis): Likewise.  Allocate reg_known_value with gc.
646         Don't play queer offsetting games with reg_known_value and
647         reg_known_equiv_p.
648         (end_alias_analysis): Free reg_known_value with gc.
649         * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
650         * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
651         (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
652         functions instead.
653
654 2004-03-24  Kazu Hirata  <kazu@cs.umass.edu>
655
656         * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
657         config/i386/mmintrin.h: Update copyright.
658
659 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
660
661         * configure.ac: Add --enable-werror-always (for top level bootstrap
662         support).
663         * configure: Regenerate.
664
665 2004-03-24  Ziemowit Laski  <zlaski@apple.com>
666
667         * objc/objc-act.c (objc_comptypes): Treat comparisons
668         between 'Class' and '<class> *' as explicitly invalid.
669
670 2004-03-24  David Edelsohn  <edelsohn@gnu.org>
671
672         * doc/invoke.texi (-frename-registers: Add enabled at -O3.
673         (-fprofile-values): Add enabled with profile-{generate,use}.
674         (-fvpt): Same.
675         (-ftracer): Add enabled with profile-use.
676         (-funit-at-a-time): Add enabled at -O2,-O3.
677         (-funroll-loops): Add enabled with profile-use.
678         (-funswitch-loops): Add enabled with profile-use.  Remove duplicates.
679         (max-gcse-passes): Mention default.
680         (max-cse-path-length): Mention default.
681
682 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
683
684         * Makefile.in (STRICT2_WARN): Reorder.
685         * configure.ac: Check for -Wold-style-definition, and use it
686         in strict1_warn if it's available.
687         * configure: Regnerate.
688
689 2004-03-24  Paul Brook  <paul@nowt.org>
690
691         * config.gcc <arm>: Add --with-abi=
692         * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
693         thumb_far_jump_used): Remove prototypes.
694         (arm_needs_doubleword_align): Add prototype.
695         (thumb_compute_initial_elimination_offset): Ditto.
696         * config/arm/arm.c (arm_get_frame_offsets): New function.
697         (use_return_insn, output_return_instruction, arm_output_epilogue,
698         arm_output_function_epilogue, arm_compute_initial_elimination_offset,
699         arm_expand_prologue, thumb_expand_epilogue): Use it.
700         (arm_abi, target_abi_name, all_arm_abis): New variables.
701         (arm_override_options): Set them.  Set structure padding for AAPCS.
702         (arm_return_in_memory): Update ABI check.
703         (arm_init_cumulative_args): Initialize can_split.
704         (arm_needs_doubleword_align): New function.
705         (arm_function_arg): Don't split args after pushing to stack. Handle
706         doubleword/even reg alignment.
707         (arm_va_arg): Handle all doubleword aligned args.
708         (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
709         on ABI, not CPU.
710         (arm_compute_save_reg0_reg12_mask): Fix comment.
711         (thumb_get_frame_size, thumb_get_frame_size): Remove.
712         (thumb_jump_far_used_p): Remove superfluous argument.  Return save
713         value for alignment.
714         (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
715         to match.
716         (thumb_compute_initial_elimination_offset): New function.
717         (thumb_expand_prologue): Use arm_get_frame_offsets.  Remove
718         unneccessary rounding.
719         * config/arm/arm.h (target_abi_name): Declare.
720         (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
721         arm_abi_type, ARM_DEFAULT_ABI): Define.
722         (ARM_FLAG_ATPCS): Remove.
723         (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
724         (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
725         (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
726         TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
727         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
728         Contitionalize on ABI, not CPU.
729         (struct arm_stack_offsets): Define.
730         (struct machine_function): Add stack_offsets.  Remove frame_size.
731         (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
732         pushed.
733         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
734         doubleword alignment.
735         (THUMB_INITIAL_ELIMINATION_OFFSET,
736         ARM_INITIAL_ELIMINATION_OFFSET): Remove.
737         (INITIAL_ELIMINATION_OFFSET): Call functions directly.
738         * config/arm/arm.md (align_8): Enable for all targets.
739         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
740         (ARM_DEFAULT_ABI): Define.
741         * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
742         -mstructure-size-boundary.
743
744 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
745
746         * configure.ac: Check for -Wno-variadic-macros; don't use
747         -pedantic (in stage 1 or a simple 'make all') unless it's available,
748         and if it's available, use it.  Also, clean up check for
749         -Wno-long-long.
750         * configure: Regenerate.
751
752 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
753
754         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
755         * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
756         (MULTILIB_DEFAULTS): Use it.
757         (MIPS_CPU_STRING_DEFAULT): Remove.
758         (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
759         (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120.  Make
760         EABI64 -mlong32 the default ABI.  Enforce the default architecture.
761         * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
762         march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
763         (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
764         (MULTILIB_EXCEPTIONS): Change choice of multilibs.  Update comments
765         accordingly.
766
767 2004-03-24  DJ Delorie  <dj@redhat.com>
768             Richard Sandiford  <rsandifo@redhat.com>
769
770         * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
771         (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
772         (ASM_SPEC): Pass down -mfix-vr4122-bugs.
773         * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
774         in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
775         (mips_init_libfuncs): Use special functions for divsi3 and modsi3
776         if TARGET_FIX_VR4122.
777         * config/mips/mips.md (define_attr length): Account for nops inserted
778         after macc and dmult when using -mfix-vr4122-bugs.
779         (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
780         * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
781         LIB2FUNCS_EXTRA.  Add config/mips/vr4122-div.S.
782         * config/mips/vr4122-div.S: New file.
783         * doc/invoke.texi: Document -mfix-vr4122-bugs.
784
785 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
786
787         * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
788         (TARGET_MIPS4130): New macro.
789         (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
790         * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
791         (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
792         with PROCESSOR_R4130.
793         * config/mips/mips.md (define_attr cpu): Add r4130.
794         * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
795
796 2004-03-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
797             Richard Sandiford  <rsandifo@redhat.com>
798
799         * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
800
801 2004-03-24  Alexandre Oliva  <aoliva@redhat.com>
802
803         PR preprocessor/14438
804         * cpplib.c (do_pragma): Remove line_change call after pragma
805         handler.
806
807 2004-03-23  Ian Lance Taylor  <ian@wasabisystems.com>
808
809         * doc/extend.texi (ARM Built-in Functions): Replace with correct
810         declarations.
811
812 2004-03-23  Roger Sayle  <roger@eyesopen.com>
813
814         * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
815         if flag_unsafe_math_optimizations.
816         * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
817         and TARGET_80387 expand using truncdfsf2_noop pattern.
818         (truncxfsf2): Likewise using truncxfsf2_noop.
819         (truncxfdf2): Likewise using truncxfdf2_noop.
820         (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
821
822 2004-03-23  Ziemowit Laski  <zlaski@apple.com>
823
824         * hooks.c (hook_constcharptr_tree_null): New hook.
825         * hooks.h (hook_constcharptr_tree_null): New prototype.
826         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
827         * target.h (mangle_fundamental_type): New target hook.
828         * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
829         target hook at rs6000_mangle_fundamental_type.
830         (rs6000_mangle_fundamental_type): New function.
831         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
832
833 2004-03-23  Zack Weinberg  <zack@codesourcery.com>
834
835         PR 12267, 12391, 12560, 13129, 14114, 14133
836         * c-tree.h: Forward declare struct c_binding.  Declare
837         c_override_bindings_to_false.  Update prototypes.
838         (struct lang_identifier): Update comments.  Change fields to be
839         struct c_binding *.
840         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
841         (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
842         (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
843         (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
844         * c-common.h: Update prototypes.
845         * c-decl.c (struct c_scope): Update commentary.  Remove names,
846         names_last, parms, parms_last, tags, and shadowed fields.  Add
847         bindings and depth fields.
848         (scope_freelist): Move to more appropriate location.
849         (c_print_identifier): Update for changes to struct lang_identifier.
850         (objc_mark_locals_volatile): Update for new bindings structures.
851         (global_bindings_p): Honor c_override_global_bindings_to_false.
852         (pushlevel): Rename to push_scope; take no arguments; use the
853         scope_freelist; initialize scope->depth and check for overflow.
854         (poplevel): Rename to pop_scope; totally rewritten for new bindings
855         structures.
856         (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
857         C_DECL_INVISIBLE, for certain decisions.  Adjust some diagnostics.
858         Improve some commentary.  Adjust handling of forward parm decls.
859         (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
860         Preserve C_DECL_IN_EXTERNAL_SCOPE.
861         (warn_if_shadowing): Correct indentation.  Improve diagnostics.
862         (pushdecl): Remove unnecessary assertion.  Short-circuit anonymous
863         decls.  Rewrite for new bindings structures.  Improve commentary.
864         Eliminate the copy_node call.
865         (implicit_decl_warning): Use the "diag" idiom (as seen in
866         locate_old_decl) to reduce code duplication; call locate_old_decl
867         if appropriate.  Relocate to remove need for forward declaration.
868         (implicitly_declare): Adjust for new bindings structures.  Kludge
869         around Objective-C not-really-builtin functions.
870         (undeclared_variable): Improve diagnostics.  If current_function_decl
871         is nonnull but current_function_scope is null, use current_scope.
872         Use bind.
873         (lookup_tag): Adjust for new bindings structures.  Kludge around
874         Objective-C's tag declarations that wind up in the external scope.
875         (lookup_name): Adjust for new bindings structures.  Kludge around
876         c-common.c's pseudo-typedefs that wind up in the external scope.
877         (lookup_name_current_level): Rename lookup_name_in_scope; take a
878         second argument indicating the scope to examine; rewrite for
879         new bindings structures.
880         (c_init_decl_processing): Adjust for renamed functions.  Do not
881         initialize current_file_decl, first_builtin_decl, last_builtin_decl.
882         First scope pushed is the external scope, not the global scope.
883         (builtin_function): Use bind, not pushdecl.  Adjust other bits
884         for new data structures.  Keep track of builtins that should be
885         made visible automatically.
886         (start_decl): Adjust diagnostics.  Remove unnecessary call to
887         expand_decl.
888         (grokparms): Return 0 if arg_types is error_mark_node.
889         (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
890         reversed sense.  Rewrite for new bindings structures.  Do not
891         leave any decls in the scope, to prevent pop_scope from doing
892         contradictory things with them.
893         (finish_struct, finish_enum): Remove redundant diagnostics.
894         (build_enumerator): Don't cascade diagnostics for error_mark_node.
895         Mark location where -pedantic changes the meaning of the program.
896         (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
897         parameter decls into the function's scope structure using bind.
898         Warn here about function definitions in the wrong style.
899         Adjust diagnostics.
900         (store_parm_decls): Correct the determination of whether a
901         function was defined with a prototype.
902         (c_write_global_declarations): Operate on all file decls and on
903         the external scope.  Split body of the loop to...
904         (c_write_global_declarations_1): ... this new function, to avoid
905         code duplication.
906         (truly_local_externals, first_builtin_decl, last_builtin_decl)
907         (make_scope, pop_scope, in_parm_level_p, set_block)
908         (any_external_decl, record_external_decl, bind_label, getdecls)
909         (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
910         (c_reset_state): Delete.
911         (visible_builtins, c_override_global_bindings_to_false)
912         (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
913         (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
914         (external_scope, binding_freelist, bind, free_binding_and_advance)
915         (push_file_scope, pop_file_scope): New.
916         (pushtag, pushdecl_top_level, lookup_label, declare_label)
917         (define_label, c_make_fname_decl, finish_decl)
918         (mark_forward_parm_decls, build_compound_literal)
919         (grokdeclarator, start_function, check_for_loop_decls)
920         (identifier_global_value, record_builtin_type): Minor adjustments
921         for new bindings structures.  Improve diagnostics and commentary.
922         * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
923         pushlevel/poplevel respectively.
924         (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
925         * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
926         Warn about YYDEBUG not being defined only if -dy.  Remove no-longer-
927         correct loop over multiple translation units; call fatal_error if
928         requested to compile more than one file at once.  (This disables
929         IMA temporarily - an up-front error being preferable to a crash.)
930         * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
931         (all actions): Adjust calls to pushlevel/poplevel.
932         (parsing_iso_function_signature): Delete.
933         (extdef_1): Fold into extdef.
934         (old_style_parm_decls_1): Fold into old_style_parm_decls.  Don't
935         warn here about function definitions in the wrong style.
936         (after_tyle_declarator, parm_declarator_starttypename)
937         (parm_declarator_nostarttypename, notype_declarator): Remove
938         commented-out productions.
939         (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
940         an empty TREE_LIST node.  Adjust calls to get_parm_info.
941         (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
942         to suppress -Wold-style-definition after this error.
943         (c_parse_file): Don't clear the binding stack or call
944         finish_fname_decls here.  Correct comment.
945         * c-typeck.c (same_translation_unit_p): Export.
946         (common_type): Use c_override_global_bindings_to_false, not
947         pushlevel/poplevel/declare_parm_level.
948         * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
949         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
950         and LANG_HOOKS_GETDECLS with do-nothing stubs.
951         * objc/objc-lang.c: Likewise.
952         * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
953         get_parm_info.
954         (OBJC_VOID_AT_END): Delete; replace all uses
955         with void_list_node.
956         (generate_forward_declaration_to_string_table): Delete.
957         * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
958
959         * coverage.c (create_coverage): Don't pushdecl anything.
960         * langhooks.c (lhd_clear_binding_stack): Call
961         lang_hooks.decls.poplevel, not poplevel.
962         * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
963         circular list rather than going into an infinite loop.
964
965 2004-03-23  Olivier Hainque  <hainque@act-europe.fr>
966
967         * optabs.c (expand_binop): When synthesizing double word rotates
968         from single word shifts, use a new register target if the provided
969         target is not a REG already.
970
971 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
972
973         * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
974         * c-common.c (handle_mode_attribute): Add extra arg to
975         build_pointer_type_for_mode and build_reference_type_for_mode.
976         * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
977         for INTEGER_CST.
978         * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
979         Chain pointers via TYPE_NEXT_PTR_TO.
980         (build_reference_type_for_mode): Similarly.
981         (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
982         and build_reference_type_for_mode.
983         (tree_check4_failed): New function.
984         * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
985         (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
986         (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
987         Add check.
988
989 2004-03-23  Roger Sayle  <roger@eyesopen.com>
990
991         * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
992         A is nonnegative or B is nonnegative.  Similarly A|B is nonnegative
993         when both A and B are nonnegative.
994         (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
995         nonzero.
996
997 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
998
999         * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
1000         VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
1001
1002 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
1003
1004         PR optimization/14669
1005         * fold-const.c (fold): Only unwiden integer comparisons for equality
1006         and inequality operators, or when the signedness doesn't change.
1007
1008 2004-03-23  Jakub Jelinek  <jakub@redhat.com>
1009
1010         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
1011         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
1012         * config/sparc/t-linux: New file.
1013
1014 2004-03-23  Richard Sandiford  <rsandifo@redhat.com>
1015
1016         * gcse.c (can_assign_to_reg_p): New function, split out from...
1017         (want_to_gcse_p): ...here.
1018         (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
1019         the rhs of a store.
1020
1021 2004-03-22  Diego Novillo  <dnovillo@redhat.com>
1022
1023         * c-typeck.c (same_translation_unit_p): Fix pasto.
1024
1025 2004-03-22  David Edelsohn  <edelsohn@gnu.org>
1026
1027         * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
1028         (PARAM_MAX_SCHED_REGION_INSNS): New.
1029         * sched-rgn.c: Include params.h
1030         (MAX_RGN_BLOCKS): Delete.
1031         (MAX_RGN_INSNS): Delete.
1032         (too_large): Return bool.  Convert to PARAM_VALUE.
1033         * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
1034         * doc/invoke.texi (param): Document max-sched-region-blocks and
1035         max-sched-region-insns.
1036
1037 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
1038
1039         * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
1040         for base types.
1041
1042 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
1043
1044         * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
1045         change.
1046
1047 2004-03-22  Jakub Jelinek  <jakub@redhat.com>
1048
1049         PR c/14069
1050         * c-decl.c (finish_struct): Change type of incorrect flexible array
1051         field into error_mark_node.
1052
1053 2004-03-22  Andrew Pinski  <pinskia@physics.uc.edu>
1054
1055         PR target/14580
1056         * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
1057         who are not local for Darwin PIC.
1058
1059 2004-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
1060
1061         * regrename.c (regrename_optimize): Set regs_ever_live for all
1062         registers introduced as replacement.
1063
1064 2004-03-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1065
1066         PR middle-end/14470
1067         * expr.c (mark_queue): New function.
1068         (emit_insns_enqueued_after_mark): New function replacing
1069         emit_queue.  Clear the body of emitted queued insns.
1070         (emit_queue): Call emit_insns_enqueued_after_mark.
1071         (store_expr): Mark the increment queue on entry.  Emit
1072         only the incrementations queued when expanding the source.
1073
1074 2004-03-22  Nathanael Nerode  <neroden@gcc.gnu.org>
1075
1076         * configure.ac: Allow --disable-coverage-flags (for the future benefit
1077         of top level bootstrap, and consistency).  Reindent.
1078         * configure: Regenerate.
1079
1080 2004-03-21  Kazu Hirata  <kazu@cs.umass.edu>
1081
1082         * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
1083         ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
1084         unnecessary casts.
1085
1086 2004-03-22  Danny Smith  <dannysmith@users.sourceforge.net>
1087
1088         PR target/14291
1089         * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
1090         __MINGW32__.
1091
1092 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
1093
1094         * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
1095         to nonimmediate_operand.
1096         ("*doloop_di"): Likewise.
1097
1098 2004-03-21  Alexandre Oliva  <aoliva@redhat.com>
1099
1100         * real.h (struct real_value): Use the same type for all
1101         bitfields.  Rename exp to uexp.
1102         (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
1103         Adjust all uses of exp...
1104         * builtins.c: ... here, ...
1105         * emit-rtl.c: ... here, and ...
1106         * real.c: ... and here.
1107
1108 2004-03-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1109
1110         * pretty-print.c (pp_base_maybe_space): New function.
1111         * pretty-print.h (pp_base_maybe_space): Declare.
1112         (pp_maybe_space): New macro.
1113
1114 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
1115
1116         * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
1117
1118 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
1119
1120         * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
1121         of using register multiplication cost.
1122         (expand_mult): Adapt choose_mult_variant call.
1123         (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
1124         of MODE; pass appropriate cost bound.  Adjust result when
1125         performing signed multiplication by a negative constant.
1126         Don't use intermediate modes larger than word_mode.
1127
1128 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1129
1130         * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
1131         * emit-rtl.c (component_ref_for_mem_expr): Likewise.
1132         (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
1133         * explow.c (expr_size): Likewise.
1134         * expr.h (placeholder_list, find_placeholder): Deleted.
1135         * expr.c (store_constructor): Likewise.
1136         (get_inner_reference): Likewise.  Also don't call find_placeholder.
1137         (placeholder_list, find_placeholder): Deleted.
1138         (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
1139         (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
1140         (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
1141         * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
1142         * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
1143         Likewise.
1144         * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
1145         (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
1146         * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
1147         (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
1148         Clean up by using first_rtl_op.
1149         (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
1150         (substitute_placeholder_in_expr): New function.
1151         * tree.def (WITH_RECORD_EXPR): Deleted.
1152         * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
1153         (substitute_placeholder_in_expr): New.
1154
1155 2004-03-21  Andrew Pinski  <pinskia@gcc.gnu.org>
1156
1157         * dojump.c (prefer_and_bit_test): Fix which part of
1158         the and_test is replaced.
1159
1160 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
1161
1162         * frontends.texi: Add missing line.
1163
1164 2004-03-21  Zack Weinberg  <zack@codesourcery.com>
1165             Chris Devers  <cdevers@pobox.com>
1166             Joseph S. Myers  <jsm@polyomino.org.uk>
1167
1168         * doc/frontends.texi: Rewrite.
1169         * doc/gcc.texi: Update last modification date.
1170
1171 2004-03-21  Josef Zlomek  <zlomekj@suse.cz>
1172
1173         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
1174         message before redirecting the edge.
1175
1176 2004-03-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1177
1178         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
1179         flag.
1180         * explow.c (force_not_mem): Set REG_POINTER flag according to
1181         MEM_POINTER one.
1182         * rtl.h (MEM_POINTER): New macro.
1183         (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
1184         for MEM_POINTER.
1185
1186 2004-03-20  Roger Sayle  <roger@eyesopen.com>
1187
1188         PR target/13889
1189         * cse.c (fold_rtx): Avoid substituting constants into unary
1190         conversion operations.
1191
1192 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1193
1194         * fold-const.c (fold): Replace "expr" with "t".
1195
1196 2004-03-20  Ian Lance Taylor  <ian@wasabisystems.com>
1197
1198         PR c/12373
1199         * c-typeck.c (tagged_types_tu_compatible_p): Don't use
1200         DECL_ORIGINAL_TYPE if there isn't one.
1201
1202 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1203
1204         * fold-const.c (fold): Replace "final_type" with "type".
1205         Remove variable "final_type".
1206
1207 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1208
1209         * fold-const.c (fold): Constify "type".
1210         Replace "TREE_TYPE (t)" with "type".
1211
1212 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1213
1214         * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
1215         dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
1216         via (*targetm.foo) () with targetm.foo ().
1217
1218 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1219
1220         PR other/14630
1221         * doc/install.texi: Add info directory category and entry.
1222
1223 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1224
1225         * fold-const.c (fold): Replace "t" with "tem" where it is used
1226         as a temporary variable.  Remove "orig_t" and all of its uses.
1227
1228 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1229
1230         * fold-const.c (fold): Remove variable "invert".
1231         Move the handling of relational expressions that can be folded
1232         to a constant ...
1233         (fold_relational_const): ... here.
1234         (tree_expr_nonzero_p): New.
1235
1236 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1237
1238         PR c/14635
1239         * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
1240         DEF_GCC_BUILTIN.
1241
1242 2004-03-20  Richard Sandiford  <rsandifo@redhat.com>
1243
1244         * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
1245         (GTFILES): Add $(srcdir)/dojump.h.
1246         (gt-dojump.h): New dependency.
1247         * dojump.c (and_reg, and_test, shift_test): New static variables.
1248         (prefer_and_bit_test): New function.
1249         (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
1250
1251 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1252
1253         * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
1254         expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
1255         reorg.c, tree.h: Fix comment typos.
1256
1257 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1258
1259         * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
1260         c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
1261         cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
1262         haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
1263         sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
1264         vmsdbgout.c: Replace calls via (*targetm.foo) () with
1265         targetm.foo ().
1266
1267 2004-03-19  Ziemowit Laski  <zlaski@apple.com>
1268
1269         * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
1270         vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
1271         always_inline attribute.
1272         * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
1273         Treat expansion as completed even if literal argument is
1274         invalid (so that other expansions are not tried in vain).
1275
1276 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1277
1278         * loop-doloop.c (add_test): Replace GEN_INT (0) with
1279         const0_rtx.
1280
1281 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1282
1283         * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
1284         ...
1285         (fold_abs_const): ... here.
1286
1287 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1288
1289         * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
1290
1291 2004-03-19  Denis Chertykov  <denisc@overta.ru>
1292
1293         PR target/11520
1294         * config/avr/avr.md ("call_insn"): Handle explicit integer
1295         specially.
1296         (call_value_insn): Likewise.
1297
1298 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1299
1300         * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
1301
1302 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1303
1304         * fold-const.c (negate_expr): Move the handling of constants
1305         ...
1306         (fold_negate_const): ... here.
1307
1308 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1309
1310         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
1311         * langhooks.h (struct lang_hooks_for_types): New field hash_types.
1312         * tree.c (debug_no_type_hash): Deleted.
1313         (type_hash_canon): Abort if passed a variant.
1314         Check lang_hooks.types.hash_types.
1315         (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
1316         (build_array_type): Remove unnecessary allocation of pointer type.
1317         (build_complex_type): Properly qualify resulting type.
1318
1319 2004-03-19  Paolo Bonzini  <bonzini@gnu.org>
1320
1321         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
1322
1323 2004-03-19  Richard Sandiford  <rsandifo@redhat.com>
1324
1325         * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
1326         (expand_mult): ...here.
1327         (extract_high_half): New, split out from expand_mult_highpart.
1328         (expand_highpart_optab): Likewise.  Don't clobber target prematurely.
1329         (expand_highpart): Evaluate the cost of a shift/add sequence,
1330         then see if any of the specialized optabs are cheaper.
1331
1332 2004-03-18  Ian Lance Taylor  <ian@wasabisystems.com>
1333
1334         * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
1335
1336 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1337
1338         * convert.c (convert_to_real): Add more math builtins.
1339
1340 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1341
1342         * convert.c (convert_to_real): Reformat using switch stmt.
1343
1344 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
1345
1346         * c-common.c (pointer_int_sum): Do not complain about using
1347         pointers to pointers-to-members.
1348
1349 2004-03-18  Kazu Hirata  <kazu@cs.umass.edu>
1350
1351         * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
1352         have moved to the target hooks structure".
1353
1354 2004-03-18  James E Wilson  <wilson@specifixinc.com>
1355
1356         * config/mips/mips.md (type): Split move into arith and fmove.  Split
1357         hilo into mthilo and mfhilo.  Add trap.  Delete icmp.  Fix all uses.
1358         * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
1359         Likewise.
1360         * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
1361         Likewise.
1362         * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
1363         rm7_fp_quick): Likewise.
1364         * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
1365         rm9k_fquick): Likewise.
1366         * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
1367         Likewise.
1368         (ir_sr70_icmp): Delete.
1369
1370 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1371
1372         * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
1373         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
1374         (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
1375         (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
1376         (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
1377         Protect with proper check.
1378         (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
1379         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
1380         * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
1381         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
1382         * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
1383         * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
1384         not TYPE_FIELDS.
1385         * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
1386
1387 2004-03-18  Mostafa Hagog  <mustafa@il.ibm.com>
1388
1389         * gcse.c (eliminate_partially_redundant_loads): Reject change if
1390         dest is set between beginning and current insn.
1391
1392 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
1393
1394         * c-decl.c (grokdeclarator): Do not complain about redeclaring
1395         visible "static" identifiers "extern" in a local scope.
1396         * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
1397         post-increments/decrements.
1398
1399 2004-03-18  Bob Wilson  <bob.wilson@acm.org>
1400
1401         * config/xtensa/xtensa.c (current_function_arg_words): Delete.
1402         (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
1403         (xtensa_va_start): Remove assignment to current_function_arg_words.
1404
1405 2004-03-18  Richard Sandiford  <rsandifo@redhat.com>
1406
1407         * alias.c (record_set): Detect the case where a register is assigned
1408         a new value that has the same base term as the old one.
1409
1410 2004-03-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1411
1412         * doloop.c: Removed.
1413         * loop-doloop.c: New file.
1414         * Makefile.in (doloop.o): Remove.
1415         (loop-doloop.o): New.
1416         * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
1417         * cfgloopanal.c (get_loop_level): New function.
1418         * loop-iv.c (iv_number_of_iterations): Handle case when loop
1419         is leaved immediatelly.
1420         * loop.c (strength_reduce): Do not call doloop optimization.
1421         * loop.h (LOOP_BCT): Removed.
1422         * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
1423         (rest_of_handle_loop2): Call doloop_optimize_loops.
1424         (rest_of_compilation): Test for optimizations moved to
1425         rest_of_handle_loop2.
1426
1427 2004-03-17  Fariborz Jahanian <fjahanian@apple.com>
1428
1429         * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
1430         for mixed mode.
1431         (rs6000_emit_prologue): Ditto.
1432         (rs6000_emit_epilogue): Ditto.
1433         * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
1434         macro for mixed mode.
1435
1436 2004-03-18  Jan Hubicka  <jh@suse.cz>
1437
1438         * predict.c (propagate_freq): Compute correctly frequency of
1439         EXIT_BLOCK.
1440
1441 2004-03-17  Eric Christopher  <echristo@redhat.com>
1442
1443         * builtins.c (apply_args_size): Use reg_raw_mode.
1444         (apply_result_size): Ditto.
1445
1446 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1447
1448         PR target/14620
1449         * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
1450
1451 2004-03-17  Jakub Jelinek  <jakub@redhat.com>
1452
1453         * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
1454         32-bit builds when defaulting to 32-bit.
1455
1456 2004-03-17  Jan Hubicka  <jh@suse.cz>
1457
1458         * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
1459         array.
1460
1461 2004-03-17  James E Wilson  <wilson@specifixinc.com>
1462
1463         * config/mips/mips.md (zero_extendsidi2): Add length attribute.
1464         (hazard_nop): Change type to nop.
1465         (type): Split arith into arith, shift, slt, clz.  Delete darith.
1466         Fix all uses.  Change arith to multi if more than one insn emitted.
1467         * config/mips/5400.md (ir_vr54_arith): Likewise.
1468         * config/mips/5500.md (ir_vr55_arith): Likewise.
1469         * config/mips/7000.md (rm7_int_other): Likewise.
1470         * config/mips/9000.md (rm9k_int): Likewise.
1471         * config/mips/sr71k.md (ir_sr70_arith): Likewise.
1472
1473 2004-03-17  Joel Brobecker  <brobecker@gnat.com>
1474
1475         * dwarf2out.c (subrange_type_die): Define new variable "subtype"
1476         to hold the subtype tree instead of recomputing it several times.
1477
1478 2004-03-17  Kazu Hirata  <kazu@cs.umass.edu>
1479
1480         * config/mn10300/mn10300.c (notice_update_cc): Don't handle
1481         CC_INVERT.
1482         * config/mn10300/mn10300.md (cc): Remove "invert".
1483
1484 2004-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1485
1486         * builtins.c (integer_valued_real_p): Add builtin rint.
1487         (fold_builtin): Likewise.
1488         * convert.c (convert_to_real): Likewise.
1489
1490         * convert.c (convert_to_real): Fix typos in `long double'
1491         builtins.
1492
1493 2004-03-16  Mark Mitchell  <mark@codesourcery.com>
1494
1495         PR c++/14481
1496         * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
1497         generated COMPOUND_EXPRs.
1498
1499 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1500
1501         * config/h8300/t-rtems (h8300-*-rtems*): New.
1502
1503 2004-03-16  Eric Christopher  <echristo@redhat.com>
1504
1505         * doc/cppopts.texi(fwide-exec-charset): Fix typo.
1506
1507 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
1508
1509         * config/i386/i386-protos.h: Add a prototype for
1510         ix86_reverse_condition.
1511         * config/i386/i386.c (ix86_reverse_condition): New.
1512         * config/i386/i386.h (REVERSE_CONDITION): Use
1513         ix86_reverse_condition.
1514         * config/i386/i386.md: Use ix86_reverse_condition instead of
1515         REVERSE_CONDITION.
1516
1517 2004-03-16  J. Brobecker  <brobecker@gnat.com>
1518
1519         * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
1520
1521 2004-03-16  Nathanael Nerode  <neroden@gcc.gnu.org>
1522
1523         PR bootstrap/12974
1524         * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
1525
1526 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
1527
1528         * c-common.c (c_common_type_for_mode): Build vector types on
1529         demand.
1530         (handle_mode_attribute): Deprecate using the mode attribute
1531         to create vector types.  Fix indentation.
1532         (vector_type_node_list): Remove.
1533         (handle_vector_size_attribute): Create vector types on demand.
1534         Strip a NON_LVALUE_EXPR from the attribute if there is one.
1535         * c-typeck.c (comptypes): Make vector types compatible if they
1536         have the same underlying mode.
1537         (convert_for_assignment): Use comptypes to convert between
1538         vector types.
1539         * tree.c (build_common_tree_nodes_2): Do not create vector types.
1540         * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
1541         vector types.
1542         * tree.h: Remove vector types.
1543         * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
1544         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
1545         (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
1546         V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
1547         * doc/extend.texi (Vector Types): Document how to use the
1548         vector_size attribute to create vectors, rather than mode.
1549
1550         * config/arm/mmintrin.h: Use vector_size attribute, not mode.
1551         * config/i386/emmintrin.h: Likewise.
1552         * config/i386/mmintrin.h: Likewise.
1553         * config/i386/xmmintrin.h: Likewise.
1554         * config/sh/ushmedia.h: Likewise.
1555
1556 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
1557
1558         * config/freebsd-spec.h, config/arc/arc-protos.h,
1559         config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
1560         config/arm/linux-gas.h, config/arm/semi.h,
1561         config/cris/cris-protos.h, config/i386/xm-djgpp.h,
1562         config/ia64/freebsd.h, config/mips/7000.md,
1563         config/mips/9000.md, config/ns32k/ns32k-protos.h,
1564         config/sparc/pbd.h: Update copyright.
1565
1566 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1567
1568         PR target/14577
1569         * config.gcc: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff.
1570
1571 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
1572
1573         * combine.c (combine_simplify_rtx): Remove the "last"
1574         parameter and its documentation.  Adjust recursive calls.
1575         (simplify_logical): Always perform the only simplification
1576         controlled by "last", if the simplified expression is
1577         actually different.
1578         (try_combine): Do not pass the "last" parameter to
1579         combine_simplify_rtx.
1580
1581 2004-03-16  Richard Sandiford  <rsandifo@redhat.com>
1582
1583         PR target/14599
1584         * config/mips/mips.md (UNSPEC_GP): New constant.
1585         * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
1586         an UNSPEC instead of (reg $gp).
1587         (mips16_gp_pseudo_reg): Change accordingly.
1588         (print_operand): Print $gp directly when handling CONST_GP_P.
1589
1590 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
1591
1592         * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
1593         * longlong.h: Make code 68060 clean when compiling for m68060.
1594
1595 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
1596
1597         * config/m68k/m68k.md: Fix constraints for bitfield instructions.
1598         * doc/md.texi: Clarify description of "i" constraint.
1599
1600 2004-03-15  James E Wilson  <wilson@specifixinc.com>
1601
1602         * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
1603         Split store into store, fpstore, fpidxstore.  Fix all uses.
1604         * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
1605         Likewise.
1606         * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
1607         * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
1608         * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
1609         * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
1610         ir_sr70_fstore): Likewise.
1611
1612 2004-03-15  Richard Henderson  <rth@redhat.com>
1613
1614         PR middle-end/14535
1615         * except.c (collect_one_action_chain): Record action for cleanup
1616         outer of exception spec.
1617
1618 2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>
1619
1620         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1621         Fix the check for abort and only do the mmap if we can.
1622
1623 2004-03-15  Eric Botcazou  <ebotcazou@act-europe.fr>
1624
1625         * config/sparc/sparc.h: Rework comments about the code model
1626         in 64-bit environment and the mode 'Pmode'.
1627         * doc/invoke.texi (SPARC options): Rework description of the
1628         different code models supported in 64-bit environment.
1629
1630 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
1631
1632         * defaults.h (REVERSIBLE_CC_MODE): Define.
1633         * jump.c (reversed_comparison_code_parts): Don't check if
1634         REVERSIBLE_CC_MODE is defined.
1635
1636 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
1637
1638         * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
1639         et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
1640         hosthooks.h, params.h, ra-colorize.c, web.c,
1641         config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
1642         config/avr/avr-protos.h, config/avr/avr.md,
1643         config/fr30/fr30-protos.h, config/fr30/fr30.md,
1644         config/h8300/fixunssfsi.c, config/i386/darwin.h,
1645         config/i386/freebsd.h, config/i386/freebsd64.h,
1646         config/ia64/hpux.h, config/ia64/unwind-ia64.c,
1647         config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
1648         config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
1649         config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
1650         config/pa/pa64-regs.h, config/rs6000/aix41.h,
1651         config/rs6000/aix43.h, config/rs6000/host-darwin.c,
1652         config/sparc/aout.h, config/sparc/freebsd.h,
1653         config/sparc/litecoff.h, config/vax/vax-protos.h,
1654         doc/hostconfig.texi, doc/include/gcc-common.texi: Update
1655         copyright.
1656
1657 2004-03-15  Paul Brook  <paul@codesourcery.com>
1658
1659         * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
1660
1661 2004-03-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1662
1663         * c-pretty-print.c (pp_c_semicolon): Fix formatting.
1664         (pp_c_cv_qualifier): Document.
1665         (pp_c_space_for_pointer_operator): Likewise.
1666         (pp_c_integer_constant): Likewise.
1667         (pp_c_identifier): Likewise.
1668         (pp_c_init_declarator): Don't print function body.
1669
1670 2004-03-14  Joseph S. Myers  <jsm@polyomino.org.uk>
1671
1672         * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
1673         doc/install.texi, doc/invoke.texi, doc/makefile.texi,
1674         doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
1675         "gcc", "g++" and "g77" or mark up with appropriate markup.  Adjust
1676         wording and grammar.
1677
1678 2004-03-14  Roger Sayle  <roger@eyesopen.com>
1679
1680         * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
1681         with lang_hooks.foo ().
1682         * builtins.c (expand_builtin_va_arg): Likewise.
1683         * c-common.c (fname_as_string, c_common_truthvalue_conversion,
1684         c_common_type_for_mode, c_common_nodes_and_builtins,
1685         handle_mode_attribute, handle_vector_size_attribute): Likewise.
1686         * c-convert.c (convert): Likewise.
1687         * c-format.c (check_format_types): Likewise.
1688         * c-objc-common.c (c_tree_printer): Likewise.
1689         * c-typeck.c (build_unary_op, build_conditional_expr,
1690         build_binary_op): Likewise.
1691         * calls.c (try_to_integrate, expand_call,
1692         emit_library_call_value_1): Likewise.
1693         * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
1694         Likewise.
1695         * cgraphunit.c (record_call_1, cgraph_analyze_function,
1696         cgraph_expand_function): Likewise.
1697         * convert.c (convert_to_pointer, convert_to_integer): Likewise.
1698         * coverage.c (build_fn_info_type, build_ctr_info_type,
1699         build_gcov_info, create_coverage): Likewise.
1700         * dbxout.c (dbxout_init): Likewise.
1701         * diagnostic.c (diagnostic_report_current_function): Likewise.
1702         * dojump.c (do_jump): Likewise.
1703         * dwarf2out.c (dwarf2_name): Likewise.
1704         * except.c (init_eh): Likewise.
1705         * explow.c (expr_size, int_expr_size): Likewise.
1706         * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
1707         Likewise.
1708         * expr.c (store_expr, store_constructor, safe_from_p,
1709         expand_expr_real, do_store_flag, try_casesi): Likewise.
1710         * function.c (push_function_context_to, pop_function_context_from,
1711         free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
1712         put_var_into_stack, allocate_struct_function, current_function_name):
1713         Likewise.
1714         * integrate.c (copy_decl_for_inlining, expand_inline_function):
1715         Likewise.
1716         * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
1717         lhd_print_error_function): Likewise.
1718         * opts.c (handle_option, decode_options): Likewise.
1719         * passes.c (open_dump_file): Likewise.
1720         * print-tree.c (print_node): Likewise.
1721         * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
1722         expand_decl_cleanup, emit_case_nodes): Likewise.
1723         * stor-layout.c (variable_size): Likewise.
1724         * toplev.c (announce_function, wrapup_global_declarations,
1725         check_global_declarations, compile_file, default_tree_printer,
1726         process_options, lang_dependent_init, finalize): Likewise.
1727         * tree-dump.c (dequeue_and_dump): Likewise.
1728         * tree-inline.c (remap_decl, remap_block, copy_body_r,
1729         initialize_inlined_parameters, declare_return_variable,
1730         inlinable_function_p, expand_call_inline, optimize_inline_calls,
1731         walk_tree, copy_tree_r): Likewise.
1732         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1733         * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
1734         unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
1735         variably_modified_type_p, dump_tree_statistics): Likewise.
1736         * varasm.c (assemble_variable, compare_constant, copy_constant,
1737         force_const_mem, compute_reloc_for_constant, output_constant,
1738         output_addressed_constants, initializer_constant_valid_p): Likewise.
1739
1740 2004-03-14  Kelley Cook  <kcook@gcc.gnu.org>
1741
1742         * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
1743
1744 2004-03-14  Andreas Tobler  <a.tobler@schweiz.ch>
1745
1746         * doc/install.texi: Reflect autoconf and automake version for
1747         libffi. Update autoconf version to 2.59.
1748
1749 2004-03-13  Roger Sayle  <roger@eyesopen.com>
1750
1751         * fold-const.c (negate_expr, operand_equal_for_comparison_p,
1752         optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
1753         make_range, build_range_check, fold_range_test, unextend,
1754         constant_boolean_node, fold_binary_op_with_conditional_arg,
1755         fold_truthop, fold_mathfn_compare, fold_inf_compare,
1756         fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
1757         with lang_hooks.foo ().
1758
1759 2004-03-14  Richard Earnshaw  <rearnsha@arm.com>
1760
1761         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
1762
1763 2004-03-13  Dara Hazeghi  <dhazeghi@yahoo.com>
1764
1765         * doc/install.texi: Note status of -fnew-ra.
1766
1767 2004-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1768
1769         PR middle-end/14470
1770         * expr.c (store_expr): Call emit_queue before generating the move
1771         from the temporary to the original target.  Protect the temporary
1772         from emit_queue.
1773
1774 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
1775
1776         PR target/14533
1777         * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
1778         other than UNSPEC_GOTOFF.
1779
1780 2004-03-13  Richard Earnshaw  <rearnsha@arm.com>
1781
1782         * arm.c (arm_legitimate_address_p): New argument, OUTER.  Pass through
1783         to arm_legitimate_index_p.  Update all callers with SET as default
1784         value.
1785         (arm_legitimate_index_p): New argument, OUTER.  Restrict the index
1786         range if OUTER is a sign-extend operation on QImode.  Correctly
1787         reject shift operations on sign-extended QImode addresses.
1788         (bad_signed_byte_operand): Delete.
1789         (arm_extendqisi_mem_op): New function.
1790         * arm.h (EXTRA_CONSTRAINT_ARM): Delete.  Replace with...
1791         (EXTRA_CONSTRAINT_STR_ARM): ... this.  Handle extended address
1792         constraints.
1793         (CONSTRAINT_LEN): New.
1794         (EXTRA_CONSTRAINT): Delete.  Replace with...
1795         (EXTRA_CONSTRAINT_STR): ... this.
1796         (PREDICATE_CODES): Remove bad_signed_byte_operand.
1797         * arm.md (extendqihi_insn): Use new constraint Uq.  Rework.  Length
1798         is now always default.
1799         (define_splits for bad sign-extend loads): Delete.
1800         (arm_extendqisi, arm_extendqisi_v5): Likewise.
1801         * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
1802         Rework 'U' constraint to 'Uv'.
1803         * arm-protos.h: Remove bad_signed_byte_operand.  Add
1804         arm_extendqisi_mem_op.
1805         * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
1806         Add Uq constraint.
1807
1808 2004-03-13  Alan Modra  <amodra@bigpond.net.au>
1809
1810         * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
1811         with targetm version.
1812
1813         PR target/14567
1814         * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
1815         (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
1816         * config/rs6000/rs6000.c (rs6000_arg_size): New function.
1817         Update all users of RS6000_ARG_SIZE.
1818         (function_arg_advance): Count fregno using mode size.
1819         (function_arg): Handle long double split over regs and memory.
1820         (function_arg_partial_nregs): Likewise.
1821         (rs6000_va_arg): Repackage complex args.
1822
1823 2004-03-13  Dean Ferreyra <dferreyra@igc.org>
1824
1825         PR target/14047
1826         * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
1827         (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
1828         * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
1829
1830 2004-03-12  Jakub Jelinek  <jakub@redhat.com>
1831
1832         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
1833         prototype.
1834         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
1835         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1836
1837 2003-03-12  Andrew Pinski  <apinski@apple.com>
1838
1839         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1840         Use ret instead of result. Use addr instead of base.
1841
1842 2004-03-12  David Edelsohn  <edelsohn@gnu.org>
1843
1844         * doc/install.texi (*-ibm-aix*): Document assembler and achiver
1845         fixes required by libstdc++ and update installation instructions
1846         for libstdc++.a.
1847
1848 2004-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
1849
1850         * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
1851         leading '@' on fastcall symbols before stripping suffix.
1852
1853 2004-03-12  Roger Sayle  <roger@eyesopen.com>
1854
1855         * combine.c (unmentioned_reg_p): New function to check whether an
1856         expression is a "specialization" of another, i.e. that there are
1857         no registers or memory references mentioned in the first that don't
1858         appear in the second.
1859         (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
1860         (combine_instructions): Also try combining instructions using the
1861         REG_EQUAL note from a preceding log-linked instruction.
1862
1863 2004-03-12  Roger Sayle  <roger@eyesopen.com>
1864
1865         * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
1866
1867 2004-03-12  Matt Austern  <austern@apple.com>
1868
1869         * target.h (struct gcc_target): New target hook, unwind_label.
1870         * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
1871         * output.h (default_emit_unwind_label): New function.
1872         * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
1873         (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
1874         (TARGET_SUPPORTS_HIDDEN): New target macro.
1875         * dwarf2out.c (struct dw_fde_struct): Add field for function decl
1876         that corresponds to this FDE.
1877         (FRAME_BEGIN_LABEL): Allow target to override default label.
1878         (output_call_frame_info): If FDEs are linknonce, then use extra
1879         indirection for FDE encoding, output a label for each FDE, and
1880         output an empty label for each function without an FDE.
1881         (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
1882         * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
1883         decls with DECL_ONE_ONLY set, if that macro is defined.
1884         (make_decl_one_only): Don't use DECL_COMMON if we're compiling
1885         for a SUPPORTS_ONE_ONLY target.
1886         * config/darwin-protos.h (darwin_unique_section): Declare.
1887         (darwin_asm_named_section): Likewise.
1888         (darwin_section_type_flags): Likewise.
1889         (darwin_non_lazy_pcrel): Likewise.
1890         (darwin_emit_unwind_label): Likewise.
1891         (darwin_make_decl_one_only): Likewise.
1892         * config/darwin.c (machopic_finish): Get rid of tweak that
1893         eliminate stubs for symbols that are defined.
1894         (darwin_encode_section_info): Don't treat weak functions as defined.
1895         (darwin_make_decl_one_only): Define.
1896         (darwin_asm_named_section): Likewise.
1897         (darwin_section_type_flags): Likewise.
1898         (darwin_unique_section): Likewise.
1899         (darwin_emit_unwind_label): Likewise.
1900         (darwin_non_lazy_pcrel): Likewise.
1901         (darwin_asm_output_dwarf_delta): Difference between two labels is
1902         local only if both labels are local.
1903         * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
1904         (ASM_MAKE_LABEL_LINKONCE): Likewise.
1905         (TARGET_SUPPORTS_HIDDEN): Likewise.
1906         (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
1907         (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
1908         (FRAME_BEGIN_LABEL): Likewise.
1909         (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
1910         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1911         (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
1912         (TARGET_ASM_UNIQUE_SECTION): Define.
1913         (EH_FRAME_SECTION_NAME): Define.
1914         (EH_FRAME_SECTION_ATTR): Likewise.
1915         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1916         (TARGET_ASM_NAMED_SECTION): Likewise.
1917         (TARGET_SECTION_TYPE_FLAGS): Likewise.
1918         * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
1919         TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
1920         TARGET_ASM_EMIT_UNWIND_LABEL.
1921
1922 2004-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1923
1924         * builtins.c (expand_builtin_mathfn): Add pow10* to the
1925         existing exp10* case.
1926         (expand_builtin): Likewise.
1927
1928 2004-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1929
1930         * doc/tm.texi (registers) <Values in Registers>: Add
1931         entry for REGMODE_NATURAL_SIZE.
1932
1933 2004-03-12  Richard Henderson  <rth@redhat.com>
1934
1935         PR target/14547
1936         * target.h (struct gcc_target): Move calls substructure before
1937         booleans.  Add split_complex_arg.
1938         * function.c (assign_parms, split_complex_args): Use it.
1939         * calls.c (expand_call): Likewise.
1940         (split_complex_values): Likewise.  Check for splittable types
1941         before allocating memory.
1942         (split_complex_types): Likewise.
1943         * system.h (SPLIT_COMPLEX_ARGS): Poison.
1944         * expr.h (SPLIT_COMPLEX_ARGS): Remove.
1945         * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
1946         * config/alpha/alpha.c (alpha_split_complex_arg): New.
1947         (TARGET_SPLIT_COMPLEX_ARG): New.
1948         * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
1949         * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
1950         (rs6000_override_options): Zap it for non-AIX.
1951         (rs6000_function_value): Use targetm.calls.split_complex_arg.
1952         * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
1953         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
1954         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
1955         * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
1956         SPLIT_COMPLEX_ARGS entry.
1957
1958 2004-03-11  Richard Henderson  <rth@redhat.com>
1959
1960         * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
1961         (alpha_lookup_xfloating_lib_func): Use them, return rtx.
1962         (alpha_emit_xfloating_arith): Update to match.
1963         (alpha_emit_xfloating_compare): Likewise.
1964         (alpha_emit_xfloating_cvt): Likewise.
1965         (alpha_emit_xfloating_libcall): Take already built symbol,
1966         mark call const.
1967         * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
1968         op1 in a register.
1969
1970 2004-03-11  Richard Henderson  <rth@redhat.com>
1971
1972         PR target/14539
1973         * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
1974
1975         * simplify-rtx.c (simplify_relational_operation): Fix typo.
1976
1977 2004-03-11  Richard Henderson  <rth@redhat.com>
1978
1979         PR middle-end/14477
1980         * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
1981
1982 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
1983
1984         PR target/14262
1985         * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
1986         defined, pass small BLKmode values in registers in the low-order part.
1987
1988 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
1989
1990         * combine.c (if_then_else_cond): Check for NULL return value of
1991         simplify_gen_subreg.
1992
1993 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
1994
1995         PR target/14496
1996         * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
1997         TARGET_SINGLE_FLOAT.
1998
1999 2004-03-11  Steve Ellcey  <sje@cup.hp.com>
2000
2001         * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
2002         * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
2003         * config/ia64/ia64.c (ia64_init_libfuncs): New.
2004         (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
2005
2006 2004-03-11  Roger Sayle  <roger@eyesopen.com>
2007
2008         * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
2009         -((int)X>>C) where C is an integer constant one bit less than the
2010         size of X into (unsigned)X>>C.  Similarly for unsigned->signed.
2011         (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
2012
2013         * simplify-rtx.c (simplify_unary_operation): Also implement the
2014         above transformations at the RTL level.
2015
2016 2004-03-11  Alan Modra  <amodra@bigpond.net.au>
2017
2018         * real.c (encode_ibm_extended): Do round low word.
2019
2020 2004-03-11  Ben Elliston  <bje@wasabisystems.com>
2021
2022         * config/arm/arm.md (is_xscale): Comment this attribute and move
2023         it a bit further up in the file, closer to related attributes.
2024
2025 2004-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
2026
2027         * config/host-solaris.c (sol_gt_pch_use_address): Add
2028         missing terminating marker to comment.
2029
2030 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
2031
2032         * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
2033         (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
2034         (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
2035         (*movsf_mips16, *movdf_mips16):  Name unnamed patterns.  Use
2036         move_operand as source predicate in all cases.
2037         (*movdi_32bit): Renamed from movdi_internal.  Remove 'F' constraint.
2038         Test reg_or_0_operand.  Use move_operand as source predicate.
2039         (*movdi_64bit): Renamed from movdi_internal2.  Test reg_or_0_operand.
2040         (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
2041         (*movsi_internal): Renamed from movsi_internal.  Test reg_or_0_operand.
2042         (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
2043         (*movhi_internal): Renamed from movhi_internal.  Test reg_or_0_operand.
2044         Use move_operand as source predicate.  Remove 'K' constraint.
2045         (*movqi_internal): Likewise movqi_internal.
2046         (*movsf_hardfloat): Renamed from movsf_internal1.  Test
2047         reg_or_0_operand.  Use move_operand as source predicate.
2048         (*movsf_softfloat): Likewise movsf_internal2.
2049         (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
2050         (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
2051         (*movdf_softfloat): Likewise movdf_internal2.
2052         * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
2053         for DImode if !TARGET_64BIT.
2054         (mips_legitimize_move): Simplify accordingly.
2055
2056 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
2057
2058         PR/14362
2059         * var-tracking.c (struct variable_def): Added field refcount.
2060         (variable_htab_free): Decrease the refcount and delete variable
2061         only if there are no more references.
2062         (unshare_variable): New function.
2063         (vars_copy_1): Increase refcount instead of copying the variable.
2064         (variable_union): Share the variables where possible, unshare
2065         the variables if needed.
2066         (variable_different_p): Return false if var1 and var2 are
2067         the same structure.
2068         (variable_was_changed): Init the refcount of new variable.
2069         (set_frame_base_location): Unshare variable if needed.
2070         (set_variable_part): Init the refcount of new variable.
2071         Unshare the variables if needed.
2072         (delete_variable_part): Unshare the variables if needed.
2073         (emit_notes_for_differences_1): Init the refcount of new variable.
2074         (vt_add_function_parameters): Do not add function parameters to
2075         IN set of ENTRY_BLOCK_PTR because it is unused anyway.
2076         (vt_initialize): Do not add frame_base_decl to IN set of
2077         ENTRY_BLOCK_PTR because it is unused anyway.
2078
2079 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
2080
2081         * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
2082         (vars_copy): Likewise.
2083         (variable_union): Likewise.
2084         (set_variable_part): Likewise.
2085         (delete_variable_part): Likewise.
2086
2087 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
2088
2089         * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
2090         ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
2091         config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
2092         config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
2093         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2094         config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
2095         config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
2096         config/pdp11/pdp11.h, config/rs6000/rs6000.c,
2097         config/stormy16/stormy16.c: Fix comment typos and formatting.
2098
2099 2004-03-11  Nathanael Nerode  <neroden@gcc.gnu.org>
2100
2101         * configure: Regenerate, since I forgot to while committing Paolo's
2102         changes.
2103
2104 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
2105
2106         PR ada/14131
2107         Move language detection to the top level.
2108         * configure.ac: Remove code to detect languages,
2109         it now lives exclusively in the top level.
2110         * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
2111         top level, renamed to ACX_PROG_GNAT.
2112
2113 2004-03-10  Richard Henderson  <rth@redhat.com>
2114
2115         * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
2116         extra arguments.
2117         * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
2118         and host_xmake_file fragments.
2119         * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
2120         (gt_pch_restore): Similarly for gt_pch_use_address.
2121         (default_gt_pch_get_address): New.
2122         (mmap_gt_pch_get_address): Split out of gt_pch_save.
2123         (default_gt_pch_use_address): Split out of gt_pch_restore.
2124         (mmap_gt_pch_use_address): Likewise.
2125         * hooks.c (hook_voidp_size_t_null): Remove.
2126         (hook_bool_voidp_size_t_false): Remove.
2127         * hooks.h: Likewise.
2128         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
2129         default_ or mmap_ definitions.
2130         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
2131         * hosthooks.h (struct host_hooks): Update gt_pch_get_address
2132         and gt_pch_use_address.
2133         * config/host-linux.c, config/host-solaris.c: New files.
2134         * config/x-linux, config/x-solaris: New files.
2135         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
2136         Update for changed definition.
2137         (darwin_rs6000_gt_pch_use_address): Likewise.
2138         * doc/hostconfig.texi: Update docs.
2139
2140 2004-03-10  Richard Henderson  <rth@redhat.com>
2141
2142         PR c/14517
2143         * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
2144         except for pedantic c90 mode.
2145
2146 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
2147
2148         * configure.ac: Bump AC_PREREQ to 2.59.
2149         * configure: Regenerate.
2150
2151 2004-03-10  Uros Bizjak  <uros@kss-loka.si>
2152
2153         * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
2154         (exp10_optab, exp2_optab): Define corresponding macros.
2155         * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
2156         * genopinit.c (optabs): Implement exp10_optab and exp2_optab
2157         using exp10?f2 and exp2?f2 patterns.
2158         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
2159         using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
2160         (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
2161         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2162
2163         * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
2164         exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
2165         exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
2166
2167 2004-03-10  Anthony Green  <green@redhat.com>
2168
2169         * doc/invoke.texi (ARM Options): Fix -mpfu typo.
2170
2171 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
2172
2173         * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
2174         (TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
2175         __LONGDOUBLE128.
2176         * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
2177         TARGET_OS_AIX_CPP_BUILTINS.
2178         * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
2179         * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
2180         * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
2181         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
2182         previous change.
2183
2184 2004-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2185
2186         * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
2187
2188 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
2189
2190         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2191         __LONGDOUBLE128 on AIX.
2192
2193 2004-03-10  Andrew Haley  <aph@redhat.com>
2194
2195         PR optimization/14381
2196         * function.c (expand_function_end): Emit a blockage insn before
2197         the epilogue when -fnon-call-exceptions is used.
2198
2199         * except.c (expand_start_all_catch): Make comment more accurate.
2200
2201 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
2202
2203         PR target/14480
2204         * config/rs6000/t-rtems: Add missing file on branch.
2205
2206 2004-03-10  Ulrich Weigand  <uweigand@de.ibm.com>
2207
2208         * dbxout.c (dbxout_symbol_location): Do not output references
2209         to optimized-out constant pool symbols.
2210
2211 2004-03-10  Andreas Schwab  <schwab@suse.de>
2212
2213         * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
2214         twon34_r.
2215
2216 2004-03-09  James E Wilson  <wilson@specifixinc.com>
2217
2218         * alias.c (alias_sets_might_conflict_p): New.
2219         * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
2220         * common.opt (Wstrict-aliasing=): New.
2221         * flags.h (warn_strict_aliasing): Change type to int.
2222         * opts.c (warn_strict_aliasing): Change type to int.
2223         (common_handle_option): Handle OPT_Wstrict_aliasing_.
2224         * tree.h (alias_sets_might_conflict_p): Declare it.
2225         * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
2226
2227 2004-03-10  Roman Zippel  <zippel@linux-m68k.org>
2228
2229         PR bootstrap/12371
2230         * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
2231         (CALL_USED_REGISTERS): Likewise.
2232         (REG_CLASS_CONTENTS): Likewise.
2233         (REG_ALLOC_ORDER): New.
2234         (REGNO_REG_CLASS): Use regno_reg_class.
2235         * config/m68k/m68k.c: Add regno_reg_class array.
2236
2237 2004-03-09  Steve Ellcey  <sje@cup.hp.com>
2238
2239         * config/ia64/ia64.md (divsi3): Fix algorithm.
2240           (udivsi3): Ditto.
2241           (setf_exp_xf): Remove '*' from name.
2242         * testsuite/gcc.dg/20040309-1.c: New test.
2243
2244 2004-03-09  Ian Lance Taylor  <ian@wasabisystems.com>
2245
2246         * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
2247         * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
2248         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
2249         * config/sparc/sparc.c (sparc_aout_select_section): Remove.
2250         (sparc_aout_select_rtx_section): Don't check
2251         SUNOS4_SHARED_LIBRARIES.
2252         * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
2253
2254 2004-03-10  Hans-Peter Nilsson  <hp@axis.com>
2255
2256         PR other/14474
2257         * doc/md.texi (Pattern Ordering, Dependent Patterns)
2258         (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
2259         INTERNALS".
2260
2261 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
2262
2263         * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
2264         (LIBGCC_SPEC): Update to match.
2265
2266 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
2267
2268         * c-decl.c (last_function_parms, last_function_parm_tags)
2269         (last_function_parm_others, current_function_parms)
2270         (current_function_parm_tags, current_function_parm_others):
2271         Delete.
2272         (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
2273         New macros.
2274         (grokdeclarator): For function definitions, save the arg-info
2275         block from the declarator in DECL_ARGUMENTS.
2276         (grokparms): Do not write to last_function_parm*.  Use ARG_INFO_*
2277         macros to operate on arg-info block.  Can assume ARG_INFO_PARMS
2278         contains only PARM_DECLs.  Improve diagnostics.
2279         (get_parm_info): Use ARG_INFO_* macros.  Improve comments and
2280         diagnostics.  Disable some expensive checks if not ENABLE_CHECKING.
2281         (store_parm_decls_newstyle): Take the function to operate on,
2282         and an arg-info block, as arguments; don't get anything from
2283         current_function_* globals.
2284         (store_parm_decls_oldstyle): Likewise.
2285         (store_parm_decls): Pass fndecl and its arg-info block down to
2286         store_parm_decls_newstyle/oldstyle.  Send functions with empty
2287         argument lists through store_parm_decls_newstyle to reduce
2288         overhead.
2289         (pushdecl): Comment on the problems with the call to copy_node.
2290         Clear DECL_ARGUMENTS of the old node after copying it, if it
2291         is an arg-info block instead of a chain of decls.
2292         (start_function): Do not manipulate current_function_parm* or
2293         last_function_parm*.
2294
2295 2004-03-09  Roger Sayle  <roger@eyesopen.com>
2296             Andrew Pinski  <pinskia@physics.uc.edu>
2297
2298         * ifcvt.c (noce_try_sign_mask): New function to transform
2299         "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
2300         (noce_process_if_block): Call noce_try_sign_mask.
2301
2302 2004-03-09  Andrew Pinski  <apinski@apple.com>
2303
2304         * c-typeck.c (tagged_types_tu_compatible_p):
2305         Fix typo.
2306
2307 2004-03-09  Roger Sayle  <roger@eyesopen.com>
2308
2309         * simplify-rtx.c (simplify_const_relational_operation): New function
2310         renamed from simplify_relational_operation.
2311         (simplify_relational_operation): Change prototype to accept an
2312         additional mode argument.  Call simplify_const_relational_operation.
2313         (simplify_gen_relational): Update simplify_relational_operation call.
2314         (simplify_ternary_operation): Update simplify_relational_operation
2315         subroutine call to use simplify_const_relational_operation instead.
2316
2317         * rtl.h (simplify_const_relational_operation): Prototype here.
2318         (simplify_relational_operation): Add addtional mode argument.
2319
2320         * combine.c (combine_simplify_rtx): Update calls to
2321         simplify_relational_operation.
2322         (simplify_set): Likewise.
2323         (gen_binary): Likewise.
2324         * cse.c (fold_rtx): Likewise.
2325         * dojump.c (compare_from_rtx): Likewise.
2326         (do_compare_rtx_and_jump): Likewise.
2327         * integrate.c (subst_constants): Likewise.
2328         * unroll.c (simplify_cmp_and_jump_insns): Likewise.
2329
2330 2004-03-09  Kazu Hirata  <kazu@cs.umass.edu>
2331
2332         * config/m32r/m32r.md: Remove all define_peephole's.
2333
2334 2004-03-09  Alan Modra  <amodra@bigpond.net.au>
2335
2336         * config/rs6000/rs6000.md: Remove trailing whitespace.
2337
2338 2004-03-08  Eric Christopher  <echristo@redhat.com>
2339
2340         * Makefile.in (site.exp): Add libiconv variable definition.
2341
2342 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
2343
2344         * configure: Regenerate for config/accross.m4 correction.
2345
2346 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
2347
2348         PR target/14480
2349         * config/rs6000/t-rtems: Add missing file on branch.
2350
2351 2004-03-08  Roger Sayle  <roger@eyesopen.com>
2352
2353         PR middle-end/14289
2354         * c-typeck.c (c_mark_addressable): A register variable should
2355         be considered global if its not automatic, i.e. TREE_PUBLIC,
2356         TREE_STATIC or DECL_EXTERNAL.
2357         * function.c (put_var_into_stack): Call abort when placing a
2358         hard register into the stack, if x_parm_reg_stack_loc is NULL.
2359
2360 2004-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
2361
2362         * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
2363         ("*extendqisi2_short_displ"): Likewise.
2364
2365 2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
2366
2367         * config/pdp11/pdp11.c (comparison_operator_index): Remove.
2368         (comp_operator): Likewise.
2369         * config/pdp11/pdp11-protos.h: Remove corresponding
2370         prototypes.
2371
2372 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
2373
2374         * expr.c (highest_pow2_factor_for_type): Rename into
2375         highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
2376         TYPE_ALIGN when the target is a COMPONENT_REF.
2377         (expand_assignment): Ajust call to highest_pow2_factor_for_type.
2378
2379 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
2380
2381         * config/rs6000/rs6000.c: Formatting fix.
2382         (legitimate_offset_address_p): Correct offset range check.
2383
2384         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
2385         -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
2386         and MASK_STRING.
2387
2388 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
2389
2390         * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
2391         for little endian.
2392         ("ashrdi3_no_power"): Disable for little endian.
2393         (ashrdi3): Same.
2394
2395 2004-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2396
2397         * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
2398         builtins.
2399
2400 2004-03-08  Hans-Peter Nilsson  <hp@axis.com>
2401
2402         PR target/14471
2403         * configure.ac (Target-specific assembler checks) <cris-*-*>: New
2404         case, checking for -no-mul-bug-abort option.
2405         * configure, config.in: Regenerate.
2406         * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
2407         and -mno-mul-bug-workaround.
2408         * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
2409         ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
2410         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
2411         Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
2412         * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
2413         sure mulu.d is not last on cache-line.
2414         * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
2415         into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
2416         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
2417         (TARGET_SWITCHES): New options -mmul-bug-workaround and
2418         -mno-mul-bug-workaround.
2419         (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
2420         (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
2421         * config/cris/cris.c (cris_operand_extend_operator): Clarify
2422         relation to MULT in head comment.
2423         (cris_op_str): Abort for MULT.
2424         (cris_print_operand) <case '!'>: New case.
2425
2426 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
2427
2428         PR debug/11983
2429         * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
2430         dw_val_class_vec.  Replace use throughout file.
2431         (dw_float_const): Delete.
2432         (dw_vec_const): New.
2433         (dw_val_struct_union): Rename val_float to val_vec.  Replace use
2434         throughout file.
2435         (add_AT_vec): Rename from add_AT_float.  Add elt_size param.
2436         (same_dw_val_p): Adjust vec comparison.  Use memcmp.
2437         (size_of_die): Adjust dw_val_class_vec sizing.
2438         (output_die): Output dw_val_class_vec.
2439         (insert_int, extract_int, insert_float): New functions.
2440         (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
2441         Handle CONST_VECTOR.
2442         (add_location_or_const_value_attribute): Handle CONST_VECTOR.
2443
2444 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
2445
2446         * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
2447         AltiVec abi cannot co-exist.
2448
2449         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
2450
2451 2004-03-07  Jan Hubicka  <jh@suse.cz>
2452
2453         * except.c (emit_to_new_bb_before):  Break fallthru edges.
2454
2455 2004-03-07  Stephane Carrez  <stcarrez@nerim.fr>
2456
2457         * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
2458         ("*lshrsi3"): Also accept an immediate for 68HC12.
2459         ("*ashrsi3_const"): Likewise.
2460         ("*ashrsi3"): Likewise.
2461         ("*ashlsi3_const"): Likewise.
2462         ("*ashlsi3"): Likewise.
2463         ("cmphi_1_hc12"): Compare two hard register by pushing them and
2464         comparing with a pop; don't use a split for that.
2465         ("cmphi split"): Disable compare split for 68HC12.
2466
2467         * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
2468         the status operands if they have side effects.
2469
2470 2004-03-07  Kazu Hirata  <kazu@cs.umass.edu>
2471
2472         * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
2473         definition.
2474         * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
2475         config/h8300/h8300.h, config/ia64/ia64.h,
2476         config/mcore/mcore.h, config/mmix/mmix.h,
2477         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
2478         config/stormy16/stormy16.h, config/v850/v850.h,
2479         config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
2480         * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
2481         definition.
2482
2483 2004-03-07  Roger Sayle  <roger@eyesopen.com>
2484
2485         * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
2486         <XOR_EXPR>: Fold x ^ x as zero.
2487         <AND_EXPR>: Fold x & x as x.
2488
2489 2004-03-07  Roger Sayle  <roger@eyesopen.com>
2490
2491         * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
2492         "foo++ == const" into "++foo == const+incr".
2493
2494 2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
2495
2496         * config/mips/mips.c (mips_in_small_data_p): Return false if
2497         TARGET_ABICALLS.
2498
2499 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
2500
2501         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
2502         the stack register.
2503         (expand_prologue): Don't make an interrupt or a trap handler a far
2504         symbol.
2505         (m68hc11_initial_elimination_offset): Likewise.
2506
2507 2004-03-06  Richard Henderson  <rth@redhat.com>
2508
2509         * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
2510
2511 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
2512
2513         * config/ns32k/ns32k-protos.h: Add a prototype for
2514         ns32k_notice_update_cc.
2515         * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
2516         * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
2517         ns32k_notice_update_cc.
2518
2519 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
2520
2521         * config/s390/s390.md ("load_multiple", "*load_multiple_di",
2522         "*load_multiple_si"): Allow only if reload_completed.
2523         ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
2524         Likewise.
2525
2526 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
2527
2528         * config/vax/vax-protos.h: Add a prototype for
2529         vax_notice_update_cc.
2530         * config/vax/vax.c (vax_notice_update_cc): New.
2531         * config/vax/vax.h (NOTICE_UPDATE_CC): Call
2532         vax_notice_update_cc.
2533
2534 2004-03-06  David Edelsohn  <edelsohn@gnu.org>
2535
2536         * collect2.c (main): Only export initfunc and finifunc if
2537         LD_INIT_SWITCH not defined.
2538         (scan_prog_file): Only export constructors and destructors if
2539         LD_INIT_SWITCH not defined.  Only export symbols not found in
2540         shared objects.
2541
2542 2004-03-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2543
2544         * pa.md (icacheflush): Reorder operands to make match_scratch operand
2545         last.
2546         * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
2547         from calls to gen_icacheflush.
2548
2549 2004-03-06  Richard Henderson  <rth@redhat.com>
2550
2551         * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
2552         (TARGET_LONG_DOUBLE_128): New.
2553         (TARGET_SWITCHES): Add long-double-{128,64}.
2554         (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
2555         (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
2556         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
2557         (WIDEST_HARDWARE_FP_SIZE): New.
2558         (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
2559         * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
2560         if TARGET_VAX_FLOAT.
2561         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
2562         (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
2563
2564 2004-03-06  Richard Henderson  <rth@redhat.com>
2565
2566         * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
2567         botched rtx class conversion.
2568
2569 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2570
2571         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
2572         BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
2573
2574         * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
2575         macros.
2576         * fold-const.c (fold_mathfn_compare, fold): Likewise.
2577
2578 2004-03-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
2579
2580         PR target/14343
2581         * config/i386/i386.md (movv2di_internal): Conditionalize on
2582         TARGET_SSE, not TARGET_SSE2.
2583
2584 2004-03-05  Chris Demetriou  <cgd@broadcom.com>
2585
2586         * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
2587         duplicated line.
2588
2589 2004-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2590
2591         * builtins.c: Consistently use logN not log* in comments.
2592
2593 2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>
2594
2595         * rtl.h (mem_expr_equal_p): Function prototype added.
2596         * cfgcleanup.c (merge_memattrs): New function.
2597         (flow_find_cross_jump): Call merge_memattrs for matching insns.
2598         * emit-rtl.c (mem_expr_equal_p): New function.
2599
2600 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
2601
2602         * objc/objc-act.c (synth_module_prologue): Const-qualify
2603         objc_selector type if using the GNU runtime; fix generated
2604         signatures for objc_msg_lookup and objc_msg_lookup_super
2605         to match what GNU ObjC headers provide; reformat and clean up.
2606         (synth_self_and_ucmd_args): Use previously constructed (and
2607         hence possibly const-qualified) objc_selector type.
2608
2609 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
2610
2611         * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
2612
2613 2004-03-05  Jason Merrill  <jason@redhat.com>
2614
2615         * tree.h (TYPE_HASH): Use TYPE_UID.
2616         (TREE_HASH): New macro with old definition of TYPE_HASH.
2617         * tree.c (build_type_attribute_variant): Use iterative_hash_object.
2618         (build_array_type, build_function_type): Likewise.
2619         (build_method_type_directly): Likewise.
2620         (build_offset_type, build_complex_type): Likewise.
2621         (type_hash_list, attribute_hash_list): Likewise. Now static.
2622         * except.c: s/TYPE_HASH/TREE_HASH/.
2623
2624 2004-03-05  Bob Wilson  <bob.wilson@acm.org>
2625
2626         * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
2627         (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
2628         __va_ndx by 2 words when referencing an argument on the stack.
2629         (xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
2630         words when an arg on the stack is first seen.
2631
2632 2004-03-05  Paul Brook  <paul@codesourcery.com>
2633
2634         * arm.h (ARM_FLAG_VFP): Remove.
2635         (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
2636         * netbsd-elf.h (ARM_FLAG_VFP): Remove.
2637
2638 2004-03-05  Paul Brook  <paul@codesourcery.com>
2639
2640         * function.c (assign_parms): Include pretend alignment offset.
2641
2642 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2643
2644         * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
2645         FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
2646
2647 2004-03-05  Ian Lance Taylor  <ian@wasabisystems.com>
2648
2649         * configure.ac: When passing --enable-languages to subdir
2650         configure when host != build, make sure we don't pass an empty
2651         value.
2652         * configure: Regenerate.
2653
2654 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
2655
2656         PR 13577
2657         * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
2658         options.
2659
2660 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
2661
2662         * simplify-rtx.c (simplify_relational_operation): If
2663         flag_wrapv is set, do not move terms between the two
2664         side of a relational operator.
2665
2666 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
2667
2668         * rtlanal.c: Include target.h and output.h
2669         (rtx_cost, address_cost, default_address_cost): Move from...
2670         * cse.c (rtx_cost, address_cost, default_address_cost):
2671         ... this file.
2672         * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
2673         * Makefile.in: Adjust dependencies.
2674
2675 2004-03-05  Paolo Bonzini <bonzini@gnu.org>
2676
2677         * cse.c (cse_end_of_basic_block): Make static.
2678         * local-alloc.c (function_invariant_p): Move to
2679         reload1.c.
2680         * loop.c (libcall_other_reg, record_excess_regs):
2681         Make static.
2682         * reload1.c (function_invariant_p): Moved here
2683         from local-alloc.c, made static.
2684         * rtl.h (cse_end_of_basic_block, function_invariant_p,
2685         libcall_other_reg, record_excess_regs): Remove
2686         declarations.
2687
2688 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
2689
2690         * config/m32r/m32r.c (signed_comparison_operator): Add a
2691         missing parenthesis.
2692
2693 2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
2694
2695         * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
2696         going to call mmap again.  Read the file into the right place.
2697         Give a fatal error if we have to relocate.
2698
2699 2004-03-04  Bob Wilson  <bob.wilson@acm.org>
2700
2701         * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
2702         (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
2703
2704 2004-03-05  Hans-Peter Nilsson  <hp@axis.com>
2705
2706         PR other/14354
2707         * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
2708         round the same.  When rounding, clear bits that would cause a
2709         second rounding in pack_d.
2710         (_fpmul_parts): Ditto.  Remove #if 0:d code.
2711
2712 2004-03-04  Ziemowit Laski  <zlaski@apple.com>
2713
2714         PR c++/14425, c++/14426
2715         * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
2716         vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
2717         Change C++ definitions to accept a 'const int' argument;
2718         the prototypes already do.
2719         * config/rs6000/rs6000.c (rs6000_common_init_builtins):
2720         Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
2721         v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
2722         v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
2723         v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
2724         v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
2725         end in ..._int; change them to accept an int instead of a char
2726         as the last parameter.
2727
2728 2004-03-04  Phil Edwards  <phil@codesourcery.com>
2729
2730         * genmultilib:  Change '=' to '-' when translating option names
2731         to directory names.
2732
2733 2004-03-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2734
2735         * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
2736         stack slot for temp used for result of BLKmode but in integral mode.
2737
2738 2004-03-04  Jan Hubicka  <jh@suse.cz>
2739
2740         * reload.c (find_reloads): Reorganize if seqeunce to switch.
2741
2742         * cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
2743         (cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.
2744
2745 2004-03-04  Steve Ellcey  <sje@cup.hp.com>
2746
2747         * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
2748         * testsuite/gcc.dg/20040303-1.c: New test.
2749
2750 2004-03-04  Steven Bosscher  <stevenb@suse.de>
2751
2752         * ppro.md: Rewrite as a DFA pipeline description.
2753         * i386.md: Remove all uses of the ppro_uops attribute.
2754         * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
2755         ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
2756         ix86_sched_reorder, ix86_variable_issue,
2757         struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
2758         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
2759         (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
2760         (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
2761         * athlon.md (athlon_ssecmp_load): Fix comment
2762
2763 2004-03-04  Stuart Hastings  <stuart@apple.com>
2764
2765         * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
2766
2767 2004-03-04  Stuart Hastings  <stuart@apple.com>
2768
2769         * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
2770         686, tell Darwin assembler to allow prefetch insns, non-empty def
2771         of SUBTARGET_OPTION_TRANSLATE_TABLE.
2772
2773 2004-03-04  DJ Delorie  <dj@redhat.com>
2774
2775         PR optimization/14282
2776         * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
2777         between a call and the assignment of its return value.
2778
2779 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2780
2781         * config/h8300/h8300.c: Put a comment for every function.
2782
2783 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2784
2785         * config/h8300/h8300.md: Add comments about peephole2's.
2786
2787 2004-03-04  Steven Bosscher  <stevenb@suse.de>
2788
2789         * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
2790
2791 2004-03-04  Jan Hubicka  <jh@suse.cz>
2792
2793         * cfgcleanup.c (thread_jump): Update call of cselib_init.
2794         * cselib.c (cselib_record_memory): New static variable.
2795         (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
2796         Give up on memories when asked for.
2797         (cselib_init): Accept new argument.
2798         * cselib.h (cselib_init): Update prototype.
2799         * gcse.c (local_cprop_pass): Update call of cselib_init.
2800         * loop.c (load_mems): Update call of cselib_init.
2801         * postreload.c (reload_cse_regs_1): Update call of cselib_init.
2802         * sched-deps.c (sched_analyze): Update call of cselib_init.
2803
2804 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
2805             GP <gp@qnx.com>
2806
2807         * config/rs6000/rs6000.c (output_function_profiler): Append @plt
2808         when compiling PIC.
2809
2810 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
2811
2812         PR/14362
2813         * var-tracking.c (track_expr_p): Do not track variables which
2814         should be ignored for debugging purposes.
2815
2816 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2817
2818         * real.c (encode_ibm_extended): Don't bother rounding low double.
2819         * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
2820         when fmt->pnan < fmt->p.
2821
2822 2004-03-04  Eric Christopher  <echristo@redhat.com>
2823
2824         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
2825         only range of valid arg registers and fixed_regs.
2826
2827 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2828
2829         PR target/14406
2830         * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
2831         (abstf2, abstf2_internal): New define_expand.
2832
2833 2004-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2834
2835         PR optimization/14235
2836         * expr.c (convert_move): Copy the source to a new pseudo
2837         when converting from a sub-word source to a larger-than-word
2838         register which conflicts with the source.
2839
2840 2004-03-03  Zack Weinberg  <zack@codesourcery.com>
2841
2842         PR 13728
2843         * c-decl.c (diagnose_mismatched_decls): Issue an error for two
2844         parameters with the same name, unless one is a forward decl.
2845         Do not issue a redundant-redeclaration warning for forward
2846         decls of parameters.
2847
2848 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
2849
2850         * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
2851         configuration.
2852
2853 2004-03-03  Ian Lance Taylor  <ian@wasabisystems.com>
2854
2855         * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
2856
2857 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2858
2859         * target-def.h (TARGET_OPTF): Delete.
2860         * c-opts.c (TARGET_OPTF): Define.
2861
2862 2004-03-04  Jan Hubicka  <jh@suse.cz>
2863
2864         * cselib.c (cselib_finish): Fix another miss-application of my previous
2865         patch.
2866
2867 2004-03-03  Mike Stump  <mrs@apple.com>
2868
2869         Add framework support for darwin.
2870
2871         * c-incpath.c: Include target.h and machmode.h.
2872         (add_path): Use a consistent style for cpp_dir.  Initialize
2873         p->construct to 0.
2874         (add_cpp_dir_path): New.
2875         (register_include_chains): Add use of extra_includes callback.
2876         (hook_void_int): Add.
2877         (target_c_incpath): Add.
2878         * c-incpath.h (add_cpp_dir_path): New.
2879         (target_c_incpath_s): Add.
2880         (target_c_incpath): Add.
2881         (C_INCPATH_INIT): Add.
2882         * c-opts.c (c_common_missing_argument,
2883         c_common_handle_option): Add -F argument processing.
2884         * c.opt: Add -F argument processing.
2885         * gcc.c (trad_capable_cpp): Add -F argument processing.
2886         * cppfiles.c (find_file_in_dir): Update to use construct
2887         callback.
2888         (search_path_exhausted, cpp_get_path, cpp_get_buffer,
2889         cpp_get_prev): New.
2890         (_cpp_find_file): Use search_path_exhausted.
2891         (make_cpp_dir): Initialize construct to 0.
2892         * cpplib.h (missing_header_cb
2893         cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
2894         (cpp_callbacks): Add missing_header
2895         (cpp_dir): Add construct.
2896         * target-def.h: (TARGET_OPTF): New.
2897         * hooks.c (hook_void_int, hook_void_charptr): Add.
2898         * hooks.h (hook_void_int, hook_void_charptr): Add.
2899         * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
2900         $(MACHMODE_H) dependencies.
2901         * doc/invoke.texi (Darwin Options): Document -F.
2902         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
2903         (TARGET_OPTF): Add.
2904         * fix-header.c (target_c_incpath): Add.
2905
2906         * config/darwin-c.c: Add c-incpath.h include.
2907         (using_frameworks, find_subframework_file,
2908         find_subframework_header, add_system_framework_path,
2909         frameworks_in_use, num_frameworks, max_frameworks,
2910         add_framework, find_framework, struct framework_header,
2911         framework_header_dirs, framework_construct_pathname,
2912         find_subframework_file, add_system_framework_path,
2913         add_framework_path, framework_defaults,
2914         darwin_register_frameworks, find_subframework_header): Add.
2915         * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
2916         (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
2917         (CPP_SPEC): Add __APPLE_CC__ support.
2918         * t-darwin (darwin-c.o): Add c-incpath.h dependency.
2919
2920 2004-03-04  Jan Hubicka  <jh@suse.cz>
2921
2922         * cselib.c (cselib_finish): Fix miss-application of my previous
2923         patch.
2924
2925 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2926
2927         * hooks.c (hook_tree_tree_identity): New.
2928         * hooks.h: Add a prototype for hook_tree_tree_identity.
2929         * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
2930         instead of MD_ASM_CLOBBERS.
2931         * system.h (MD_ASM_CLOBBERS): Poison.
2932         * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
2933         (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
2934         * target.h (gcc_target): Add md_asm_clobbers.
2935         * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
2936         (ix86_md_asm_clobbers): New.
2937         * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
2938         * doc/tm.texi (MD_ASM_CLOBBERS): Change to
2939         TARGET_MD_ASM_CLOBBERS.
2940
2941 2004-03-03  Stuart Hastings  <stuart@apple.com>
2942
2943         * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
2944
2945 2004-03-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
2946
2947         * config/sparc/sparc.c (noov_compare64_op): Fix typo.
2948
2949         * config/sparc/sparc.h (ASM_FLOAT): Delete.
2950         (ASM_DOUBLE): Likewise.
2951         (ASM_LONGDOUBLE): Likewise.
2952         * config/sparc/pbd.h (ASM_INT_OP): Delete.
2953
2954 2003-03-03  Richard Henderson  <rth@redhat.com>
2955
2956         PR opt/13862
2957         * cselib.c (cselib_record_sets): Don't record multiple sets in
2958         asm insns.
2959
2960 2004-03-03  Mostafa Hagog  <mustafa@il.ibm.com>
2961
2962         * common.opt: Add description of the new -fgcse-after-reload flag.
2963
2964         * flags.h (flag_gcse_after_reload): Declaration of global variable.
2965
2966         * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
2967         reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
2968         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2969         get_bb_avail_insn, hash_scan_set_after_reload,
2970         compute_hash_table_after_reload, eliminate_partially_redundant_loads,
2971         gcse_after_reload, get_bb_avail_insn): New functions to implement
2972         gcse-after-reload.
2973         (gcse_after_reload_main): New function, the main entry point to
2974         gcse-after-reload.
2975
2976         * rtl.h (gcse_after_reload_main): Declaration of the new function.
2977
2978         * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
2979
2980         * toplev.c (flag_gcse_after_reload): Initialization.
2981
2982         * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
2983
2984         * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2985         PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
2986         the gcse after reload optimization.
2987
2988         * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2989         GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
2990         parameters.
2991
2992         * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
2993
2994 2004-03-03  Nicolas Pitre <nico@cam.org>
2995
2996         * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
2997         small negative values.
2998
2999 2004-03-03  Jan Hubicka  <jh@suse.cz>
3000
3001         * cselib.c (hash_table):  Remove GTY marker.
3002         (reg_values): Turn into array.
3003         (used_regs): Likewise.
3004         (n_used_regs): New static variable.
3005         (reg_values_old): Kill.
3006         (clear_table): Update uses of arrays.
3007         (cselib_lookup): Likewise.
3008         (cselib_record_set): Likewise.
3009         (cselib_init): Likewise.
3010         (cselib_finish): Likewise.
3011         (cselib_udpate_varray_sizes): Kill.
3012         * cselib.h (cselib_update_varray_sizes): Kill.
3013
3014 2004-03-03  Paul Brook  <paul@codesourcery.com>
3015
3016         * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
3017
3018 2004-03-03  Jan Hubicka  <jh@suse.cz>
3019
3020         * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
3021         Rename from ...; make statistics transparent.
3022         (ggc_alloc_cleared, ggc_realloc_stat): ... these.
3023         (loc_descriptor): New structure.
3024         (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
3025         add_statistics):
3026         New static function.
3027         (ggc_record_overhead, dump_statistics): New global function.
3028         * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
3029         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
3030         from ...; accept locations
3031         (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
3032         ggc_realloc, ggc_alloc_typed):  ... this one.
3033         from ...; accept locations
3034         * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
3035         ggc_alloc_stat): Rename from ... ; pass locations
3036         * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
3037         ... this one.
3038         (ggc_alloc_stat): Record overehead.
3039         * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
3040         ggc_realloc, ggc_alloc_typed):  Turn to macros
3041         (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
3042         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
3043         (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
3044         * langhooks.h (lhd_make_node): Declare.
3045         (LANG_HOOKS_MAKE_TYPE): Default to new function,
3046         * langhooks.c (lhd_make_node): New.
3047         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
3048         locations.
3049         (rtx_alloc, swallow_copy_rtx): ... this one.
3050         * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
3051         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
3052         * toplpev.c (finalize): Dump stats.
3053         * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
3054         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
3055         Rename from ... ; pass locators.
3056         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
3057         build?,  build_decl): Declare.
3058         * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
3059         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
3060         Declare.
3061         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
3062         build?,  build_decl): New macros.
3063         * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
3064         * statistics.h: New file.
3065
3066 2004-03-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3067             Richard Sandiford  <rsandifo@redhat.com>
3068
3069         * config/mips/mips.h (MASK_FIX_SB1): Bump.
3070         (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
3071         (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
3072         * config/mips/mips.c (mips_output_division): Fill the branch delay
3073         slot with a nop if TARGET_FIX_R4000.  Extend R4000 workarounds to
3074         TARGET_FIX_R4400.
3075         (mips_output_division): Adjust accordingly.
3076         (override_options): Make -march=r4400 imply -mfix-r4400 by default.
3077         * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
3078
3079 2004-03-03  Paolo Bonzini  <bonzini@gnu.org>
3080
3081         * alias.c (rtx_equal_for_memref_p): Use predicates
3082         to test rtx classes and new rtx class codes, possibly
3083         splitting conditionals that tested against '<' and 'o'.
3084         * caller-save.c (save_call_clobbered_regs): Likewise.
3085         * combine.c (contains_muldiv, find_split_point, subst,
3086         combine_simplify_rtx, simplify_if_then_else,
3087         simplify_set, simplify_logical, expand_compound_operation,
3088         make_compound_operation, if_then_else_cond, known_cond,
3089         apply_distributive_law, cached_nonzero_bits,
3090         cached_num_sign_bit_copies, simplify_shift_const,
3091         gen_binary, simplify_comparison, update_table_tick,
3092         record_value_for_reg, get_lsat_value_validate): Likewise.
3093         * cse.c (mention_regs, find_best_addr, find_comparison_args,
3094         fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
3095         Likewise.
3096         * emit-rtl.c (copy_insn_1): Likewise.
3097         * expr.c (force_operand): Likewise.
3098         * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
3099         * flow.c (notice_stack_pointer_modification_1,
3100         invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
3101         and_reg_cond, elim_reg_cond): Likewise.
3102         * function.c (update_epilogue_consts): Likewise.
3103         * genattrtab.c (attr_rtx_1): Likewise.
3104         * genopinit.c (gen_insn): Likewise.
3105         * integrate.c (subst_constants): Likewise.
3106         * jump.c (reversed_comparison_code_parts,
3107         reversed_comparison_code, delete_related_insns,
3108         rtx_renumbered_equal_p): Likewise.
3109         * local-alloc.c (block_alloc): Likewise.
3110         * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
3111         canonicalize_condition): Likewise.
3112         * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
3113         Likewise.
3114         * optabs.c (add_equal_node, expand_binop): Likewise.
3115         * predict.c (estimate_probability): Likewise.
3116         * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
3117         * recog.c (validate_replace_rtx_1, comparison_operator,
3118         offsettable_address_p, constrain_operands): Likewise.
3119         * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
3120         Likewise.
3121         * regclass.c (scan_one_insn): Likewise.
3122         * regmove.c (stable_and_no_regs_but_for_p): Likewise.
3123         * regrename.c (kill_autoinc_value): Likewise.
3124         * reload.c (find_reusable_reload, find_reloads,
3125         reg_overlap_mentioned_for_reload_p): Likewise.
3126         * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
3127         * rtl.c (copy_rtx): Likewise.
3128         * rtl.h (CONSTANT_P, INSN_P): Likewise.
3129         * rtlanal.c (commutative_operand_precedence): Likewise.
3130         * sched-deps.c (conditions_mutex_p): Likewise.
3131         * sched-rgn.c (is_cfg_nonregular): Likewise.
3132         * simplify-rtx.c (simplify_gen_binary,
3133         simplify_gen_relational, simplify_replace_rtx,
3134         simplify_unary_operation, simplify_binary_operation,
3135         simplify_ternary_operation, simplify_rtx): Likewise.
3136         * unroll.c (reg_dead_after_loop): Likewise.
3137         * config/alpha/alpha.c (alpha_swapped_comparison_operator,
3138         print_operand): Likewise.
3139         * config/arc/arc.c (proper_comparison_operator): Likewise.
3140         * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
3141         Likewise.
3142         * config/avr/avr.c (_reg_unused_after): Likewise.
3143         * config/frv/frv.c (frv_ifcvt_modify_tests,
3144         frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
3145         * config/i386/i386.c (ix86_comparison_operator,
3146         ix86_carry_flag_operator, fcmov_comparison_operator,
3147         arith_or_logical_operator, print_operand,
3148         ix86_expand_binary_operator, ix86_binary_operator_ok):
3149         Likewise.
3150         * config/i386/i386.md: Likewise.
3151         * config/ia64/ia64.c (not_postinc_memory_operand,
3152         ia64_print_operand, update_set_flags, errata_emit_nops):
3153         Likewise.
3154         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
3155         CONSTRAINT_OK_FOR_S): Likewise.
3156         * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
3157         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3158         ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
3159         ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
3160         Likewise.
3161         * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
3162         eqne_comparison_operator, signed_comparison_operator):
3163         Likewise.
3164         * config/mips/mips.c (cmp_op, symbolic_expression_p):
3165         Likewise.
3166         * config/mmix/mmix (mmix_foldable_comparison_operator,
3167         mmix_comparison_operator): Likewise.
3168         * config/pa/pa.c (hppa_legitimize_address): Likewise.
3169         * config/rs6000/rs6000.c (stmw_operation,
3170         branch_comparison_operator, trap_comparison_operator,
3171         ccr_bit): Likewise.
3172         * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
3173         * config/s390/s390.c (s390_alc_comparison,
3174         s390_slb_comparison):L Likewise.
3175         * config/sh/sh.c (gen_block_redirect, reg_unused_after):
3176         Likewise.
3177         * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
3178         noov_compare_op, noov_compare64_op, v9_regcmp_op,
3179         emit_hard_tfmode_operation, reg_unused_after)
3180         * doc/md.texi, doc/rtl.texi: Likewise.
3181
3182         * ra-debug.c: Add 2004 to list of copyright years.
3183         * unroll.c: Likewise.
3184
3185         * combine.c (simplify_logical): Remove dummy test,
3186         (apply_distributive_law): Fix typo in comment.
3187         GET_CODE (x) == AND so x is a commutative binary op.
3188         * jump.c (delete_related_insns): simplify loop
3189         condition, move testing of RTX codes inside the loop.
3190         (rtx_renumbered_equal_p): do not use RTX_CODE.
3191         * rtl.c (rtx_class): Declare as enum rtx_class.
3192         * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
3193         Move to RTX_COMM_COMPARE class.
3194         (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
3195         Move to RTX_CONST_OBJ class.
3196         * rtl.h (enum rtx_class): New declaration,
3197         (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
3198         RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
3199         RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
3200         RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
3201         RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
3202         ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
3203         SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
3204         OBJECT_P): New macros.
3205         * config/sparc/sparc.c (noov_compare_op): Remove register
3206         from parameter.
3207
3208 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
3209
3210         * target.h: Remove texi jargons in comments.
3211
3212 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3213
3214         * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
3215         threshold to 0x4f.
3216
3217         Revert:
3218         2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3219         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3220         as well.
3221         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3222         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3223
3224 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3225
3226         * doc/md.texi (cbranchmode4): New.
3227
3228 2004-03-02  Eric Christopher  <echristo@redhat.com>
3229
3230         * config/mips/mips16.S: Change fixsfsi and fixdfsi to
3231         fix_trunc.
3232         * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
3233         * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
3234         * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
3235         * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
3236
3237 2004-03-02  Richard Henderson  <rth@redhat.com>
3238
3239         PR middle-end/11767
3240         * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
3241         * optabs.c (prepare_cmp_insn): Force trapping memories to registers
3242         before the compare, if flag_non_call_exceptions.
3243
3244 2004-03-02  Richard Henderson  <rth@redhat.com>
3245
3246         PR middle-end/14327
3247         * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
3248         emitting the label, not after.
3249
3250 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3251
3252         * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
3253         (m68hc11_mov_addr_mode): Likewise.
3254         (m68hc11_override_options): Initialize them based on target.
3255         (register_indirect_p): Allow a MEM for indirect addressing modes and
3256         use flags to control what is allowed.
3257         (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
3258         supported addressing modes.
3259         (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
3260         (go_if_legitimate_address_internal): Likewise.
3261         (m68hc11_indirect_p): Likewise and check the mode.
3262         (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
3263
3264 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3265
3266         * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
3267         (expand_builtin_setjmp_setup): Use
3268         targetm.builtin_setjmp_frame_value instead of
3269         BUILTIN_SETJMP_FRAME_VALUE.
3270         * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
3271         * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
3272         (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3273         * target.h (gcc_target): Add builtin_setjmp_frame_value.
3274         * targhooks.c (default_builtin_setjmp_frame_value): New.
3275         * targhooks.h: Add a prototype for
3276         default_builtin_setjmp_frame_value.
3277         * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
3278         TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3279
3280 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3281
3282         * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
3283         sequences of moves.
3284         (add peepholes): New peepholes to optimize sequences adding small
3285         constants.
3286         (bset peepholes): New peepholes to transform an OR in a bset form
3287         (bclr peepholes): Likewise for bclr form.
3288         (cmp peepholes): New peepholes to avoid register copies when comparing.
3289
3290 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3291
3292         * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
3293         to separate push from moves.
3294         ("*pushdf_internal"): Likewise.
3295         ("*pushsf_internal"): Likewise.
3296         ("*pushsi_internal"): Likewise.
3297         ("movdi_internal"): Use define_insn_and_split; non push operand.
3298         ("movdf_internal"): Likewise.
3299         ("movsf_internal"): Likewise.
3300         ("movsi_internal"): Likewise.
3301         ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
3302         ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
3303         ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
3304
3305 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3306
3307         * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
3308         ("cmphi_z_used", "cmpqi_z_used"): Likewise.
3309         ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
3310         ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
3311         ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
3312         ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
3313         ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
3314         ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
3315         ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
3316         ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
3317         ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
3318
3319 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3320
3321         * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
3322         (SOFT_XY_REGNUM): Define.
3323         (cmp split): Use the above instead of hard coded numbers.
3324         (8-bit op split): No need to check the mode; allow Q_REG.
3325         (ashift split): Adjust the first operand if it uses the SP and we
3326         are pushing the shifted value.
3327         (plus shift split): Fix when a source is in register D+X.
3328         ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
3329
3330 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3331
3332         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
3333         comparing with Z register.
3334
3335 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3336
3337         * cfgloop.h (struct loop_desc): Removed.
3338         (struct loop): Fields simple, desc and has_desc removed.
3339         (simple_loop_p, count_loop_iterations): Declaration removed.
3340         * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
3341         (unmark_altered, blocks_invariant_registers, unmark_altered_insn
3342         blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
3343         invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
3344         simple_loop_exit_p, variable_initial_value, variable_initial_values,
3345         simple_condition_p, simple_increment, count_strange_loop_iterations,
3346         inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
3347         Removed.
3348         * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
3349
3350 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3351
3352         * genattrtab.c: Don't handle MATCH_INSN.
3353         * genrecog.c: Likewise.
3354         * gensupport.c: Likewise.
3355         * rtl.def (match_insn): Remove.
3356         * doc/md.texi (match_insn, match_insn2): Remove.
3357
3358 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
3359
3360         * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
3361         macro results in memory allocation.
3362
3363 2004-03-02  David O'Brien  <obrien@FreeBSD.org>
3364
3365         * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
3366         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
3367         %(fbsd_dynamic_linker),
3368         (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
3369         config/i386/freebsd.h
3370         * config/arm/freebsd.h: Ditto.
3371         * config/i386/freebsd.h: Ditto.
3372         * config/i386/freebsd64.h: Ditto.
3373         * config/ia64/freebsd.h: Ditto.
3374         * config/rs6000/sysv4.h: Ditto.
3375         * config/sparc/freebsd.h: Ditto.
3376
3377 2004-03-02  Loren James Rittle  <ljrittle@acm.org>
3378
3379         * gcc/doc/install.texi (*-*-freebsd*): Update target information.
3380
3381 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3382
3383         * rtl.def (define_combine): Remove.
3384
3385 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3386
3387         * config/h8300/h8300.md: Tweak formatting.
3388
3389 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3390
3391         * config/h8300/h8300.md (*cmphi_h8300): Rename to
3392         *cmphi_h8300_znvc.
3393         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
3394
3395 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
3396
3397         PR bootstrap/14356
3398         * gcc.c (process_command): Remove const-qualification from argv.
3399         (main): Likewise.
3400
3401 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
3402
3403         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
3404         pushqi1_h8300hs_advanced.  Adjust its caller.
3405         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
3406         Adjust its caller.
3407
3408 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
3409
3410         * Makefile.in (install-libgcc, install-multilib): Pass
3411         mkinstalldirs var to libgcc.mk.
3412
3413 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
3414
3415         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
3416         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
3417
3418 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
3419
3420         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
3421         * config/h8300/h8300.md: Split several peephole2's, each into
3422         two.
3423
3424 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3425
3426         * dominance.c (recount_dominator): Handle postdominators.
3427
3428 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
3429
3430         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
3431         (NUM_SYMBOL_TYPES): Likewise.
3432         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
3433         (mips_unspec_address): Declare.
3434         (mips_gotoff_page, mips_gotoff_global): Delete.
3435         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
3436         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
3437         (mips_symbolic_constant_p, mips_symbolic_address_p)
3438         (mips_symbol_insns): Handle new symbol types.
3439         (general_symbolic_operand): New predicate.
3440         (mips_unspec_address): Make extern.
3441         (mips_gotoff_page, mips_gotoff_global): Delete.
3442         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
3443         Handle new symbol types.
3444         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
3445         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
3446         mips_unspec_address directly.
3447         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
3448         the documentation of -mexplicit-relocs.
3449
3450 2004-03-01  Jeff Law  <law@redhat.com>
3451
3452         * fold-const.c (fold): An equality comparison of a non-weak object
3453         against zero has a known result.  Similarly an equality comparison
3454         of the address of two non-weak, unaliased symbols has a known result.
3455
3456         * ggc-page.c (struct page_entry): New field PREV.
3457         (ggc_alloc): Update PREV field appropriately.
3458         (sweep_pages): Likewise.
3459         (ggc_free): Likewise.  Use PREV field rather than loop to
3460         improve ggc_free performance.
3461
3462 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
3463
3464         * config/mips/mips.c (mips_output_division): Use the division
3465         instruction to fill the delay slot of a zero check.
3466         (mips_idiv_insns): Adjust accordingly.
3467
3468 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
3469
3470         * config.gcc: Create a default tmake_file for linux, and use
3471         it in all but two linux clauses.  Comment those two.
3472
3473 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
3474
3475         * combine.c (try_combine):  Do not refer to is_replaced.
3476         (gen_lowpart_for_combine):  Perverse subregs now have a
3477         more politically correct name.
3478         * cse.c (cse_insn): Likewise.
3479         * jump.c: Fix bogus reference to delete_insn.
3480
3481 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
3482
3483         PR debug/14328
3484         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
3485         constants as signed values.
3486
3487         PR middle-end/13448
3488         * c-tree.h (readonly_warning): Rename to ...
3489         (readonly_error): ... this.
3490         * c-typeck.c (build_unary_op): Adjust accordingly.
3491         (readonly_warning): Rename to ...
3492         (readonly_error): ... this and issue errors, not warnings.
3493         (build_modify_expr): Call readonly_error, not readonly_warning.
3494         (c_expand_asm_operands): Likewise.
3495         * tree-inline.c (optimize_inline_calls): Do not inline functions
3496         after errors have occurred.
3497
3498 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
3499
3500         * configure.ac: Rearrange some threading code for clarity;
3501         add section comment.
3502         * configure: Regenerate.
3503
3504 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3505
3506         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
3507         typos.
3508         * doc/cppopts.texi: Fix a typo.
3509
3510 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3511
3512         * config/i386/i386.md: Fix formatting.
3513
3514 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
3515
3516         * configure.ac: Add some comments delineating sections of code.
3517
3518         * doc/install.texi: Note that libada uses autoconf 2.57 also.
3519
3520         * doc/install.texi: Fix idiot typo in previous commit.
3521
3522         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
3523
3524 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3525
3526         * config/h8300/h8300.md: Add comments about peephole2's.
3527
3528 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3529
3530         * config/h8300/h8300.md: Tweak operand numbers of some
3531         peephole2's.
3532
3533 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
3534
3535         * config/h8300/h8300.md: Tweak comments about peephole2's.
3536
3537 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
3538
3539         PR middle-end/14203
3540         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
3541         instead of testing whether DECL_RTL is not NULL.
3542
3543 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3544
3545         * config/sh/sh.c: Fix formatting.
3546
3547 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3548
3549         * config/sh/sh.c: Convert to ISO-C.
3550
3551 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
3552
3553         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
3554         my previous patch.
3555
3556         * config/darwin.h (machopic_finish): Output stub even if the
3557         symbol is already defined.
3558
3559 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3560
3561         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
3562
3563 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3564
3565         * genattr.c (main): Don't define
3566         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
3567         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
3568         (DFA_PIPELINE_INTERFACE): Likewise.
3569         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
3570         (DFA_PIPELINE_INTERFACE): Likewise.
3571
3572 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
3573
3574         * config/mips/mips.md (tstsi, tstdi): Delete.
3575
3576 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3577
3578         * config/mips/mips.c (override_options): Remove an obsolete
3579         duplicate definition of the "e" constraint.
3580         * config/mips/mips.h: Update a comment accordingly.
3581
3582 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3583
3584         * config/mips/mips.md: Complete the unfinished R4000
3585         multiply/shift errata workaround.  Improve documentation.
3586         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
3587         has a hilo hazard.
3588         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
3589         (muldi3, muldi3_internal): Likewise.
3590         (muldi3_internal2): Remove, replacing with...
3591         (muldi3_mult3, muldi3_r4000): ...these new patterns.
3592         (mulsidi3): Take the errata into account.
3593         (mulsidi3_32bit): Remove, replacing with...
3594         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
3595         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
3596         (umulsidi3): Take the errata into account.
3597         (umulsidi3_32bit): Remove, replacing with..
3598         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
3599         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
3600         TARGET_FIX_R4000.
3601         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
3602         (smuldi3_highpart, umuldi3_highpart): Likewise.
3603         * doc/invoke.texi: Document the errata workaround.
3604
3605 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3606
3607         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
3608         * config/mips/mips.h (MASK_FIX_SB1): Bump.
3609         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
3610         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
3611         * config/mips/mips.c (mips_idiv_insns): New function.
3612         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
3613         (mips_output_division): Add a workaround for the R4000 divide/shift
3614         errata.
3615         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
3616         the length of an "idiv" instruction.
3617         * doc/invoke.texi: Document the new switches.
3618
3619 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
3620
3621         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
3622         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
3623
3624 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3625
3626         PR optimization/14229
3627         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
3628
3629 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
3630
3631         * fold-const.c (fold): Strip NOPs that change the signedness
3632         for RSHIFT too.  Expand comment.
3633
3634 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
3635
3636         PR optimization/7871
3637         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
3638         from or to call insns.
3639
3640 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
3641
3642         PR optimization/7871
3643         * flow.c (propagate_one_insn): Interpret calls as setting global
3644         registers, not merely clobbering them.
3645
3646 2004-02-27  Dale Johannesen  <dalej@apple.com>
3647
3648         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
3649         config/darwin-protos.h:  Ditto.
3650         config/darwin.h:  Remove call to it.
3651         * combine.c (distribute_notes): Do not place a REG_DEAD note
3652         when value is both set and used.
3653
3654 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3655
3656         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3657         as well.
3658         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3659         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3660
3661 2004-02-27  Andrew Pinski  <apinski@apple.com>
3662
3663         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
3664         Speedup common case of the type values being in the same order.
3665
3666 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
3667
3668         * config/ia64/ia64.h (no-inline-float-divide): New option.
3669         * config/ia64/ia64.h (no-inline-int-divide): New option.
3670         * config/ia64/ia64.h (no-inline-sqrt): New option.
3671         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
3672         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3673         * config/ia64/ia64.c (ia64_override_options): Modify error
3674         checking for inlined division/sqrt.
3675
3676 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3677
3678         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
3679         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
3680         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
3681         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
3682         copyright.
3683
3684 2004-02-27  Paul Brook  <paul@codesourcery.com>
3685
3686         * function.c (assign_parms): Don't count pretend args for alignment.
3687
3688 2004-02-27  Richard Henderson  <rth@redhat.com>
3689
3690         * passes.c: New file.
3691         * Makefile.in (OBJS-common): Add it.
3692         * diagnostic.c (rtl_dump_and_exit): Move decl ...
3693         * flags.h (rtl_dump_and_exit): ... here.
3694         * output.h (size_directive_output, last_assemble_variable_decl):
3695         Move from toplev.c.
3696         * rtl.h (reg_alloc): Move from toplev.c.
3697         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
3698         struct dump_file_info, enum dump_file_index, dump_file_tbl,
3699         open_dump_file, close_dump_file, rest_of_decl_compilation,
3700         rest_of_type_compilation, rest_of_handle_final,
3701         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3702         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3703         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
3704         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
3705         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
3706         rest_of_handle_tracer, rest_of_handle_if_conversion,
3707         rest_of_handle_if_after_combine, rest_of_handle_web,
3708         rest_of_handle_branch_prob,
3709         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3710         rest_of_handle_addressof, rest_of_handle_sibling_calls,
3711         rest_of_handle_jump_bypass, rest_of_handle_inlining,
3712         rest_of_handle_null_pointer, rest_of_handle_combine,
3713         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3714         rest_of_handle_gcse, rest_of_handle_loop_optimize,
3715         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
3716         (decode_d_option): Use enable_rtl_dump_file.
3717         (compile_file, finalize, do_compile): Move profile+combine+graph
3718         cleanup to finish_optimization_passes.
3719         * toplev.h (init_optimization_passes, finish_optimization_passes,
3720         enable_rtl_dump_file): Declare.
3721
3722 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
3723             Roger Sayle  <roger@eyesopen.com>
3724
3725         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
3726         operands to build a tree with swapped operands.
3727         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
3728         'unsignedp' predicate to specify the signedness.
3729
3730 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3731
3732         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
3733         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
3734         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
3735         comment typos and formatting.  Follow spelling conventions.
3736
3737 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
3738
3739         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
3740         fix_truncsfsi2.
3741
3742         * config/rs6000/spe.md: Delete spe_efsctuiz.
3743         Add spe_fixuns_truncsfsi2.
3744         Add spe_fix_truncsfsi2.
3745
3746 2004-02-26  Eric Christopher  <echristo@redhat.com>
3747
3748         * c-lex.c (c_lex_string_translate): New variable.
3749         (lex_string): Use to determine string translation.
3750         * c-pragma.h: Prototype.
3751         * c-parse.in (start_string_translation): New. Set above.
3752         (stop_string_translation): Ditto.
3753         (attribute, attribute_list, asm_def, asm_stmt,
3754         asm_operand): Use above functions.
3755         * cp/parser.c (cp_parser_declaration): Translate strings
3756         unless token is RID_EXTERN. Set c_lex_string_translate
3757         for recursive use.
3758         (cp_parser_asm_definition): Only translate argument strings
3759         to asms.
3760         (cp_parser_asm_operand_list): Ditto.
3761         (cp_parser_attribute_list): Do not translate attribute strings.
3762
3763 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3764
3765         * stmt.c (expand_start_case_dummy): Remove.
3766         * tree.h: Remove the corresponding prototype.
3767
3768 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3769
3770         * builtins.c (apply_args_register_offset): Remove.
3771         * tree.h: Remove the corresponding prototype.
3772
3773 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3774
3775         * stor-layout.c (is_pending_size): Remove.
3776         * tree.h: Remove the corresponding prototype.
3777
3778 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3779
3780         * recog.c (validate_replace_src): Remove.
3781         * recog.h: Remove the corresponding prototype.
3782
3783 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3784
3785         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
3786         MAYBE_REG_PARM_STACK_SPACE.
3787         * function.c: Likewise.
3788         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
3789         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3790         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
3791         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3792
3793 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3794
3795         * c-decl.c (c_expand_deferred_function): Remove.
3796         * c-tree.h: Remove the corresponding prototype.
3797
3798 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3799
3800         * postreload.c (reload_cse_move2add): Generate just a PLUS
3801         instead of an entire SET.
3802
3803 2004-02-26  Jan Hubicka  <jh@suse.cz>
3804
3805         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
3806         /pentium4m.
3807         * i386.c (override_options): Add support for new CPUs.
3808         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
3809         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
3810         constants.
3811         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
3812
3813 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
3814
3815         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
3816
3817 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
3818
3819         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
3820         (sparc_emit_fixunsdi): New prototype.
3821         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
3822         (sparc_emit_fixunsdi): New function.
3823         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
3824         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
3825         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
3826         to sparc_emit_floatunsdi.
3827         (fixuns_truncsfdi2): New expander.
3828         (fixuns_truncdfdi2): Likewise.
3829
3830 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
3831
3832         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
3833         unless HAVE_cc0.
3834
3835 2004-02-25  Richard Henderson  <rth@redhat.com>
3836
3837         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
3838         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
3839         use (op0-op1) == 0 if op0 is a pointer.
3840         * config/alpha/alpha.md (cmpdi): Use some_operand.
3841         (three comparison combine splits): Remove.
3842
3843 2004-02-25  Richard Henderson  <rth@redhat.com>
3844
3845         PR c/12794
3846         * c-common.c (handle_alias_attribute): Reject the attribute if
3847         current_function_decl is set.
3848
3849 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
3850
3851         * config.gcc: Add comment describing extra_gcc_objs.
3852         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
3853         * configure.ac (extra_gcc_objs): New substitution variable.
3854         (host_extra_gcc_objs): Don't substitute.
3855         * configure: Regenerate.
3856         * Makefile.in: Use extra_gcc_objs.
3857
3858 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
3859
3860         * doc/contrib.texi: Add an entry for myself.
3861
3862 2004-02-25  Jan Hubicka  <jh@suse.cz>
3863
3864         * basic-block.h (make_eh_edge, break_superblocks): Declare.
3865         * cfgbuild.c (make_eh_edge):  Make global.
3866         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
3867         * except.c (build_post_landing_pads, connect_post_landing_pads,
3868         dw2_build_landing_pads, sjlj_emit_function_enter,
3869         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3870         sjlj_build_landing_pads): Update CFG.
3871         (emit_to_new_bb_before): New function.
3872         (finish_eh_generation): Do not rebuild the CFG.
3873
3874 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3875
3876         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
3877         target_cpu_default defines.
3878         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
3879         * pa.h (TARGET_DEFAULT): Likewise.
3880
3881 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
3882
3883         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
3884         comparisons with regard to signedness.
3885
3886 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
3887
3888         * arm.c (thumb_legitimize_address): New function.
3889         * arm-protos.h: Prototype it.
3890         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
3891         (LEGITIMIZE_ADDRESS): Use it.
3892
3893 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
3894
3895         * reload1.c (reload): Only spill eliminable register with multiple
3896         adjacent elimination alternatives if all alternatives fail.
3897
3898 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
3899
3900         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
3901         is -4095...+4095 inclusive.
3902
3903 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3904
3905         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
3906         the bootstrap failure with Sun CC 5.4 and 5.5.
3907
3908 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
3909
3910         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
3911         which modifies NEWREG.
3912         (cse_condition_code_reg): Update the mode of CC_REG in
3913         CC_SRC_INSN on our own.
3914
3915 2004-02-24  Michael Matz  <matz@suse.de>
3916
3917         * config/i386/i386.c (ix86_comp_type_attributes): Check for
3918         regparm attributes.
3919
3920 2004-02-24  Richard Henderson  <rth@redhat.com>
3921
3922         * toplev.c (dump_file_tbl): Rename from dump_file.
3923         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
3924         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
3925         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
3926         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
3927         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
3928         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
3929         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
3930         s/rtl_dump_file/dump_file/g.
3931
3932 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
3933
3934         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
3935         (spe_fixuns_truncsfsi2): Delete.
3936
3937         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
3938         (fixuns_truncsfsi2): Delete.
3939
3940 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
3941
3942         PR/14240
3943         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
3944
3945 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
3946
3947         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
3948
3949 2004-02-24  Jason Merrill  <jason@redhat.com>
3950
3951         * tree.c (check_qualified_type): New fn.
3952         (get_qualified_type): Use it.  If type already has the desired
3953         quals, just return it.
3954         * tree.h: Declare it.
3955
3956 2003-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
3957
3958         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
3959         TARGET_SCHED_FINISH_GLOBAL): New macros.
3960
3961         * target.h (md_init_global, md_finish_global): Function
3962         declarations corresponding to new target macros.
3963
3964         * haifa-sched.c (sched_init, sched_finish): Allow target to
3965         call the new schedular hooks.
3966
3967         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
3968         call to update_life_info.
3969
3970         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
3971         flag_schedule_insns for SH4.
3972
3973         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
3974         find_set_regmode_weight, find_insn_regmode_weight,
3975         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
3976         sh_variable_issue, high_pressure, ready_reorder,
3977         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
3978         functions used to throttle the insn movement in first
3979         scheduling pass for SH.
3980
3981         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
3982         TARGET_SCHED_FINISH_GLOBAL.
3983
3984 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
3985
3986         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
3987         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
3988         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
3989         symbols in sections named by the user.
3990         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
3991         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
3992         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
3993         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
3994         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
3995         the above.
3996         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
3997         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
3998         one more pseudo to further improve code generation.
3999         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
4000         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
4001         inside UNSPEC.
4002         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
4003         * config/frv/frv.c (frv_legitimate_address_p): Added
4004         allow_double_reg_p argument.  Adjust all callers.  Use it to
4005         decide whether to enable double-register indirect addressing.
4006         (frv_funcdesc_alias_set): Remove.
4007         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
4008         register.  Emit movdi_ldd.
4009         (ldd_address_operand): New.
4010         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
4011         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4012         (PREDICATE_CODES): Add ldd_address_operand.
4013         * config/frv/frv.md (movdi_ldd): New.
4014         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
4015         intermediate computations if possible.
4016         (symGOTOFF2reg_i): Fix harmless typo.
4017         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
4018         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
4019         relocated p_vaddr to vaddr type.
4020         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
4021         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
4022         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
4023         MEM, or use a funcdesc alias set.  Use regular move instead of
4024         ldd.
4025         (dbl_memory_one_insn_operand): Recognize function descriptors by
4026         type or by alias set, and don't split them.
4027         * config/frv/frv.md (call, call_value): Never use call_internal
4028         for fdpic.
4029         (call_internal, call_value_internal): Never match for FDPIC.
4030         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
4031         call_value_fdpicsi): Require FDPIC.
4032         (ldd): Removed.
4033         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
4034         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
4035         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
4036         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
4037         FDPIC.  Compute data base address.
4038         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
4039         before the other self-specs are processed.
4040         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
4041         Build with -fPIC.
4042         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
4043         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
4044         inhibit_libc is defined.
4045         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
4046         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
4047         __FRV_FDPIC__.
4048         (__RELOC_POINTER): Define.
4049         (_Unwind_IteratePhdrCallback): Use it.
4050         * config/frv/frv.h (Twrite): Define.
4051         (TRANSFER_FROM_TRAMPOLINE): Use it.
4052         * config/frv/linux.h (INVOKE__main): Undefine.
4053         (Twrite): Override.
4054         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
4055         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
4056         (-mlibrary-pic): Emphasize that this option generates EABI code.
4057         (-mcpu): Add fr550.
4058         (-mpack): Remove.
4059         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
4060         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
4061         and CONSTs in FDPIC mode.
4062         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
4063         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
4064         * config/frv/frv.c (move_source_operand): Don't accept symbolic
4065         constants.
4066         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
4067         rather than 'i' constraint for the 2-instruction alternative.
4068         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
4069         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
4070         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
4071         EXTRA_CONSTRAINT_FOR_Y.
4072         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
4073         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
4074         (addsi3): Change 'Y' constraint to 'Q'.
4075         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
4076         * reload.c (CONST_POOL_OK_P): New macro.
4077         (find_reloads): Use it to decide whether a constant can be forced
4078         into memory.
4079         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
4080         constant satisfies got12_operand.
4081         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
4082         (frv_legitimate_address_p): Check for valid unspec offsets using
4083         got12_operand rather than frv_legitimate_fdpic_operand_p.
4084         (frv_legitimate_fdpic_operand_p): Delete.
4085         (frv_emit_movsi): Abort if we try to use the FDPIC register during
4086         or after reload.
4087         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
4088         TARGET_FDPIC.
4089         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
4090         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
4091         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
4092         (frv_fdpic_fptr_operand): Don't declare here.
4093         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
4094         rather than fdpic_got12_operand.
4095         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
4096         got12_operand and const_unspec_operand.
4097         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
4098         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
4099         (symbolic_operand): Remove.
4100         (const_unspec_operand): New predicate.
4101         * config/frv/frv.md (*movsi_got): Use got12_operand.
4102         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
4103         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
4104         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
4105         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
4106         * config/frv/frv.c (frv_unspec): New structure.
4107         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
4108         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
4109         validate CONST indices.  Use frv_output_const_unspec to print them.
4110         (frv_print_operand): Update call to unspec_got_name.  Use
4111         frv_output_const_unspec to print constant unspecs.
4112         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
4113         Reject UNSPECs otherwise.
4114         (unspec_got_name): Take the relocation number as argument, not an
4115         rtx containing it.
4116         (frv_output_addr_const_extra): Remove, replacing with...
4117         (frv_output_const_unspec): ...this new function.
4118         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
4119         (gpr_or_int12_operand): Use fdpic_got12_operand.
4120         (dbl_memory_one_insn_operand): Likewise.
4121         (fdpic_got12_operand): Use frv_const_unspec_p.
4122         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
4123         are already legitimate.  Use frv_small_data_reloc_p when deciding
4124         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
4125         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
4126         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
4127         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
4128         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
4129         label, for real this time.
4130         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
4131         representation of visibility.
4132         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
4133         such.
4134         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
4135         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
4136         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
4137         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
4138         it was explicitly disabled.
4139         (frv_stack_info): There is no need to save the link register in every
4140         frame unless TARGET_LINKED_FP is true.
4141         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
4142         frame pointer if the stack pointer might change value.
4143         (frv_return_addr_rtx): Check and process "count" argument.
4144         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
4145         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
4146         (frv_find_base_term): Declare.
4147         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
4148         (FIND_BASE_TERM): Define.
4149         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
4150         small_data_register_operand, small_data_symbolic_operand.  Add
4151         symbolic_operand.
4152         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
4153         (frv_print_operand_memory_reference, output_move_single): Remove
4154         special handling for unlegitimized sdata addresses.
4155         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
4156         and symbolic addresses.
4157         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
4158         (frv_find_base_term): New function.
4159         (int_2word_operand): Check specifically for symbolic address constants.
4160         (pic_register_operand, pic_symbolic_operand): Delete.
4161         (small_data_register_operand, small_data_symbolic_operand): Delete.
4162         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
4163         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
4164         (move_source_operand): Only accept CONSTs if they're a two-insn
4165         symbolic constant.
4166         (fdpic_got12_operand): Don't require TARGET_FDPIC.
4167         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
4168         using gen_symGOTOFF2reg*.
4169         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
4170         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
4171         themselves a cost of 3 insns.
4172         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
4173         Change predicate to symbolic_operand.
4174         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
4175         (*movsi_lda_sdata): Delete.
4176         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
4177         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
4178         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
4179         frv-*-*linux*.
4180         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
4181         label.
4182         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
4183         -multilib-library-pic.
4184         (LINK_SPEC): Add -z text for -mfdpic.
4185         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
4186         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
4187         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
4188         Override.
4189         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
4190         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
4191         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
4192         crtstuff-generated files.
4193         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
4194         * config.gcc: Add frv-*-*linux*.
4195         * config/frv/linux.h, config/frv/t-linux: New.
4196         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
4197         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
4198         when -mfdpic even if a linker script is explicitly listed.
4199         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
4200         * config/frv/frv.c (frv_override_options): Clear asm_out
4201         unaligned_op for SImode on FDPIC.
4202         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
4203         argument passed to decl_readonly_section.
4204         (frv_assemble_integer): Revert 2003-09-30's change, but make the
4205         whole block run with FDPIC even with -fno-PIC.
4206         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
4207         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
4208         symbol or label plus offset to memory.
4209         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
4210         GOTOFF and GPREL for LABEL_REF.
4211         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
4212         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
4213         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
4214         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
4215         * doc/invoke.texi: Document them.
4216         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
4217         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
4218         (frv_splittable_got_operand): Removed.
4219         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
4220         LO_SUM.  Add comments.
4221         (frv_override_options): Moved enabling of FDPIC to
4222         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
4223         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
4224         (frv_legitimize_fdpic_address): Don't duplicate logic in
4225         frv_emit_movsi.
4226         (frv_gen_GPsym2reg): New.
4227         (unspec_got_name): Added gprel.
4228         (frv_expand_fdpic_call): Add support for inlining PLTs.
4229         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
4230         (gpr_or_int12_operand): Added GPREL12.
4231         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
4232         (small_data_symbolic_operand): Fail if FDPIC.
4233         (fdpic_splittable_got_operand): Removed.
4234         (fdpic_got12_operand): Added GPREL12.
4235         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
4236         when appropriate.  Fix sdata GOTOFF.
4237         (frv_legitimate_constant_p): Require legitimate PIC operand for
4238         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
4239         (frv_assemble_integer): Move FDPIC funcdesc handling out of
4240         flag_pic case.
4241         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
4242         frv_assemble_integer fails.
4243         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
4244         (SUBTARGET_DRIVER_SELF_SPECS): New.
4245         (ASM_SPEC): Don't pass -mno-fdpic.
4246         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
4247         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
4248         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
4249         -multilib-library-pic.
4250         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
4251         condexec_si_media_operator, condexec_sf_add_operator and
4252         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
4253         and condexec_sf_unary_operator.
4254         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
4255         New.
4256         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
4257         movsi_internal.  Give them internal names.  movsi_got has type
4258         int.
4259         (fdpic got splitters): Remove.
4260         (symGPREL2reg, symGPREL2reg_hilo): New.
4261         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
4262         to -mlibrary-pic.  Map -multilib-library-pic to it.
4263         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
4264         Document.
4265         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
4266         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
4267         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
4268         (frv_cannot_force_const_mem): New function.
4269         (const_small_data_p, plus_small_data_p): Update comments on sdata
4270         on FDPIC.
4271         (frv_override_options): Set flag_pie for FDPIC too.
4272         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
4273         call-saved registers on FDPIC.
4274         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
4275         don't force LR to be preserved.
4276         (frv_expand_prologue): Likewise.
4277         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
4278         (frv_frame_pointer_required): Don't force it just because the
4279         FDPIC register is used.
4280         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
4281         operand only if !condexec_p.
4282         (frv_legitimize_address): Return the FDPIC-legitimized address.
4283         Don't match small data here on FDPIC.
4284         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
4285         symbols.  Use TRUE/FALSE instead of 1/0.
4286         (frv_local_funcdesc_p): New.
4287         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
4288         immediates when possible.
4289         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
4290         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
4291         an UNSPEC_GOT.
4292         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
4293         12-bit immediates when possible.
4294         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
4295         are not legitimate pic operands.
4296         (frv_in_small_data_p): Re-enable for FDPIC.
4297         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
4298         (FRV_GLOBAL_P): Removed.
4299         * config/frv/frv.md: Add modes to CONSTs.
4300         (movsi_got): New.
4301         (movsi_lo_sum_got): Use separate matches instead of match_dup.
4302         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
4303         (fdpic splittable operations): Match on flag_pic != 1.
4304         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
4305         * config/frv/frv.c (frv_asm_out_constructor,
4306         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
4307         bytes, not bits.
4308         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
4309         * config/frv/frv.c (frv_assemble_integer): Reject complex
4310         expressions referencing function SYMBOL_REFs.
4311         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
4312         (move_source_operand): Reject CONSTs that reference function
4313         SYMBOL_REFs on FDPIC.
4314         (frv_emit_movsi): If we get such a CONST, break it up.
4315         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
4316         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
4317         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
4318         MEM.
4319         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
4320         (frv_trampoline_size): Increase for FDPIC.
4321         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
4322         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
4323         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
4324         Disable use of GOTOFF for now.
4325         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
4326         Disable use of small data in FDPIC for now.
4327         (frv_asm_output_mi_thunk): Implement for FDPIC.
4328         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
4329         * config/frv/frv.c (frv_asm_out_constructor): Use
4330         frv_assemble_integer for FDPIC pointers.
4331         (frv_asm_out_destructor): Likewise.
4332         * config/frv/frv.md (ldd): Fix order of operands.  Use
4333         address_operand for input.
4334         2003-09-18  DJ Delorie  <dj@redhat.com>
4335         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
4336         (unspec_got_name): Correct typo.
4337         (frv_emit_movsi): Pre-expand splittable GOTs.
4338         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
4339         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
4340         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
4341         * config/frv/t-frv: Add -mfdpic multilibs.
4342         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
4343         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
4344         * config/frv/frv.c (frv_override_options): -mfdpic assumes
4345         flag_pic, default to 32-bit pics, require DWORD ops.
4346         (frv_override_options): Add W and Z constraints.
4347         (frv_expand_prologue): No pic prologue for -mfdpic.
4348         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
4349         (frv_print_operand_memory_reference): Handle GOT constants.
4350         (frv_legitimate_address_p): Allow GOT constants.
4351         (frv_legitimize_address): Handle GOT addresses too.
4352         (frv_legitimate_fdpic_operand_p): New.
4353         (frv_legitimize_fdpic_address): New.
4354         (unspec_got_name): New.
4355         (frv_output_addr_const_extra): New.
4356         (frv_expand_fdpic_call): New.
4357         (frv_fdpic_fptr_operand): New.
4358         (gpr_or_int12_operand): Handle GOT operands.
4359         (int_2word_operand): Handle GOT operands.
4360         (fdpic_operand): New.
4361         (fdpic_splittable_got_operand): New.
4362         (fdpic_got12_operand): New.
4363         (frv_emit_movsi): Handle GOT operands.
4364         (frv_assemble_integer): -mfdpic doesn't use rofixups.
4365         (frv_print_operand): Support 'g' code for GOT operands.
4366         * config/frv/frv-protos.h: Add prototypes as needed.
4367         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
4368         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
4369         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
4370         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
4371         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
4372         R_FRV_GOTOFFLO): New.
4373         (movsi_high_got, movsi_lo_sum_got): New.
4374         (*movsi_pic): Don't use this splitter for -mfdpic.
4375         (addsi3): Allow GOT references also.
4376         (call, call_value): Handle -mfdpic separately.
4377         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
4378         call_value_fdpicsi): New.
4379         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
4380         symGOTOFF2reg_i): New.
4381         * config/frv/frv.h (MASK_FDPIC): New.
4382         (TARGET_FDPIC): New.
4383         (TARGET_SWITCHES): Add -mfdpic.
4384         (FDPIC_FPTR_REGNO): New.
4385         (FDPIC_REGNO): New.
4386         (OUR_FDPIC_REG): New.
4387         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
4388         FDPIC_CALL_REGS.
4389         (REG_CLASS_NAMES): Likewise.
4390         (REG_CLASS_CONTENTS): Likewise.
4391         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
4392         (EXTRA_CONSTRAINT): Add it here.
4393         (FRV_GLOBAL_P): New.
4394         (OUTPUT_ADDR_CONST_EXTRA): New.
4395
4396 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
4397
4398         * config/sparc/sparc.h: Remove commented-out definitions of
4399         TARGET_EDOM and GEN_ERRNO_RTX.
4400
4401 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
4402
4403         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
4404         df_analyse with df_analyze.
4405
4406 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
4407
4408         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
4409         beginning of block.
4410
4411 2004-02-23  James E Wilson  <wilson@specifixinc.com>
4412
4413         * calls.c (precompute_arguments): Update comment.
4414
4415 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4416
4417         * et-forest.c: Replace et_occurences with et_occurrences.
4418
4419 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4420
4421         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
4422         with iv_analyze.
4423
4424 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
4425
4426         * config/i386/i386.c: Rename pni to sse3.
4427         * config/i386/i386.h: Likewise.
4428         * config/i386/i386.md: Likewise.
4429         * config/i386/pmmintrin.h: Likewise.
4430         * doc/extend.texi: Likewise.
4431         * doc/invoke.texi: Likewise.
4432
4433 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
4434             Kazu Hirata  <kazu@cs.umass.edu>
4435
4436         Remove -fwritable-strings.
4437         * c-common.c (fix_string_type): Don't check
4438         flag_writable_strings.
4439         (fix_string_type): Likewise.
4440         * c-opts.c (set_std_c89): Don't initialize
4441         flag_writable_strings.
4442         (set_std_c99): Likewise.
4443         * common.opt (fwritable-strings): Remove.
4444         * flags.h: Remove the external declaration of
4445         flag_writable_strings.
4446         * opts.c (common_handle_option) <OPT_fwritable_strings>:
4447         Remove.
4448         * toplev.c (flag_writable_strings): Remove.
4449         (f_options): Remove an entry for writable-strings.
4450         * varasm.c (const_hash_1) <STRING_CST>: Don't check
4451         flag_writable_strings.
4452         (compare_constant) <STRING_CST>: Likewise.
4453         (build_constant_desc): Likewise.
4454         * config/darwin.c (machopic_select_section): Likewise.
4455         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
4456         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
4457         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
4458         * config/mips/mips.c (mips_select_section): Likewise.
4459         (mips_encode_section_info): Likewise.
4460         * config/pa/pa.c (pa_select_section): Likewise.
4461         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
4462         * config/v850/v850.c (v850_select_section): Likewise.
4463         * doc/invoke.texi (-fwritable-strings): Remove.
4464         (-fno-const-strings): Don't mention -fwritable-strings.
4465         * doc/trouble.texi: Don't mention -fwritable-strings.
4466
4467 2003-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4468
4469         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
4470
4471 2004-02-23  Dale Johannesen  <dalej@apple.com>
4472
4473         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
4474         (movdf_hardfloat64):  Ditto.
4475         (movdf_softfloat64):  Ditto.
4476
4477 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
4478         * config/rs6000/rs6000.c (function_arg): call to
4479         rs6000_mixed_function_arg for DFmode moved to allow
4480         normal DFmode incoming register assignment.
4481
4482 2004-02-23  Dale Johannesen  <dalej@apple.com>
4483
4484         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
4485         (movdf_hardfloat64):  Ditto.
4486
4487 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4488
4489         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
4490         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
4491         copyright.
4492
4493 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
4494
4495         PR c/14156
4496         * c-typeck.c (c_expand_return): Change check for VAR_DECL
4497         to use DECL_P instead.
4498
4499         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
4500         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
4501
4502 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
4503
4504         * Makefile.in (opts.o): Depend on target.h.
4505         * opts.c (decode_options): Use targetm.default_short_enums
4506         instead of DEFAULT_SHORT_ENUMS.
4507         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4508         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
4509         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
4510         * target.h (gcc_target): Add default_short_enums.
4511         * config/cris/cris.h: Remove a comment about
4512         DEFAULT_SHORT_ENUMS.
4513         * config/ip2k/ip2k.h: Likewise.
4514         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
4515         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
4516
4517 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
4518             Falk Hueffner  <falk@debian.org>
4519
4520         PR c/14188
4521         * builtins.c (expand_builtin_va_arg): Emit an informative message
4522         if a trap is generated.
4523         * c-typeck.c (build_function_call): Likewise.
4524
4525 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
4526
4527         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
4528         fopen.
4529         * libgcov.c: Include sys/stat.h.
4530         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
4531         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
4532         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
4533         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
4534
4535 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
4536
4537         * reorg.c: Remove comments about dead ports.
4538
4539 2004-02-22  Christopher Faylor  <cgf@redhat.com>
4540
4541         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
4542         extra host object file when targetting cygwin rather than generic
4543         object files.
4544
4545 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
4546
4547         Merge from tree-ssa:
4548         2003-11-20  Richard Henderson  <rth@redhat.com>
4549
4550                 * tree-inline.c (insert_decl_map): New.
4551                 (remap_decl, remap_type, remap_block, copy_body_r,
4552                 initialize_inlined_parameters, declare_return_variable,
4553                 remap_save_expr): Use it.
4554
4555         * function.c (copy_body_r): Add mapping from id->ret_label to
4556         id->ret_label.  Revert test for ret_label.
4557
4558 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
4559
4560         * genoutput.c (process_template): Strip trailing whitespace in @
4561         templates and issue a warning if there was any.
4562
4563 2004-02-21  Christopher Faylor  <cgf@redhat.com>
4564
4565         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
4566         object file when targetting cygwin.
4567         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
4568         overridden by top-level Makefile.
4569
4570 2004-02-21  Roger Sayle  <roger@eyesopen.com>
4571
4572         * config/i386/i386.c (standard_80387_constant_p): Also prefer
4573         the x87's load constant instructions when optimizing for size.
4574
4575 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
4576
4577         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
4578         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
4579         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
4580         * fold-const.c: Likewise.
4581         * simplify-rtx.c: Likewise.
4582
4583 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
4584
4585         * combine.c (can_combine_p): Don't ignore SETs marked with
4586         REG_EH_REGION notes.
4587         (try_combine): When attemting to fix unrecognized insns, don't
4588         split a PARALLEL that contains the original i2.
4589
4590 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
4591
4592         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
4593         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
4594         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
4595         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
4596         (vector, pixel, bool): #define to __vector, __pixel and __bool.
4597         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
4598         portion of header.
4599         (__altivec_link_error_invalid_argument): Remove prototype; will use
4600         __builtin_altivec_compiletime_error("vec_*") instead.
4601         (vec_*): Fix/complete set of available operation overloads given the
4602         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
4603         cv-correctness of pointer arguments; in C, always check for correct
4604         argument types before macro expansion.
4605         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
4606         defining Darwin/PowerPC-specific '-f[no-]altivec' and
4607         '-W[no-]altivec-long-deprecated' switches.
4608         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
4609         '__vector', '__pixel' and '__bool' macros using
4610         '__attribute__((altivec(...)))' types.
4611         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
4612         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
4613         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
4614         New type nodes.
4615         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
4616         handling '-W[no-]altivec-long-deprecated'.
4617         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
4618         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
4619         altivec_expand_dst_builtin): Remove casts from integer literals.
4620         (altivec_expand_builtin): Likewise; handle expansion of new
4621         '__builtin_altivec_compiletime_error' function.
4622         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
4623         types, and make them distinct from other vector types; register
4624         '__builtin_altivec_compiletime_error' function.
4625         (print_operand): For 'P', print a full target register name instead of
4626         merely its number.
4627         (rs6000_attribute_table): Add "altivec" attribute.
4628         (rs6000_handle_altivec_attribute): New function.
4629         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
4630         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
4631         maps to).
4632         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
4633         declare.
4634         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
4635
4636 2004-02-20  James E Wilson  <wilson@specifixinc.com>
4637
4638         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
4639         check.
4640         (shift_mix4left+2): Delete redundant pattern.
4641
4642 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4643
4644         * alias.c (OUTGOING_REGNO): Don't define the default.
4645         * builtins.c (OUTGOING_REGNO): Likewise.
4646         (INCOMING_REGNO): Likewise.
4647         (apply_args_register_offset): Always use OUTGOING_REGNO.
4648         * combine.c (OUTGOING_REGNO): Likewise.
4649         * sibcall.c (OUTGOING_REGNO): Likewise.
4650         * defaults.h (INCOMING_REGNO): Provide the default.
4651         (OUTGOING_REGNO): Likewise.
4652
4653 2004-02-21  Jan Hubicka  <jh@suse.cz>
4654
4655         * params.def (max-peeled-insns, max-completely-peeled-insns,
4656         max-once-peeled-insns): Set to 400.
4657
4658 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4659
4660         PR c++/12007
4661         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
4662         are set for parameters before outputing debugging information.
4663
4664 2004-02-20  Falk Hueffner  <falk@debian.org>
4665
4666         PR target/14201
4667         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
4668         numbers.
4669
4670 2004-02-20  Per Bothner  <per@bothner.com>
4671
4672         * input.h:  Don't #include line-map.h.  It may cause link problems
4673         with undefined linemap_line_start when line-map.h is included but
4674         line-map.o is not linked, as currently happens with gengtype on
4675         compilers that don't support inline.
4676         * toplev.c:  So we do have to explicitly #include line-map.h here.
4677
4678 2004-02-20  Richard Henderson  <rth@redhat.com>
4679
4680         * doc/invoke.texi: Add -Wvariadic-macros.
4681
4682 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4683
4684         * haifa-sched.c (sched_emit_insn): Remove.
4685         * sched-int.h: Remove the corresponding prototype.
4686
4687 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4688
4689         Revert:
4690         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4691         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4692         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4693         * config/cris/cris.h: Remove a comment about
4694         DEFAULT_SHORT_ENUMS.
4695         * config/ip2k/ip2k.h: Likewise.
4696         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4697
4698 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
4699             Tom Tromey  <tromey@redhat.com>
4700
4701         * doc/install.texi: Moved --disable-libgcj and
4702         --with-system-zlib documentation to new section for
4703         Java-specific options.
4704         Added explicit Cross-Compiler-Specific Options subheading.
4705         Added section for Java-specific options.
4706
4707 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
4708
4709         * doc/install.texi (Building the Ada compiler): Remove
4710         example.
4711
4712 2004-02-20  James E Wilson  <wilson@specifixinc.com>
4713
4714         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
4715
4716 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4717
4718         * gcc.c (process_command): Allow translation of the copyright
4719         symbol but not the rest of the copyright message.
4720         * gcov.c (print_version): Likewise.  Allow translation of the
4721         message about warranty.
4722
4723 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
4724
4725         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
4726         predicate.
4727         ("*andsi_clear"): Tweak constraints to not match postincrement.
4728         Adjust the predicate to exclude a volatile memory reference.
4729         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
4730         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
4731
4732 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
4733
4734         * move-if-change: Remove.
4735         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
4736         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
4737         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
4738         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
4739         (s-gtyp-gen, s-iov): Use the top level move-if-change.
4740         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
4741
4742 2004-02-19  James E Wilson  <wilson@specifixinc.com>
4743
4744         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
4745         for operand2.  Add condition that requires register_operand operand2
4746         before reload.
4747
4748 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
4749             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4750
4751         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
4752         * config/mips/mips.md: Expand comment above unaligned loads and stores.
4753
4754 2004-02-19  Richard Henderson  <rth@redhat.com>
4755
4756         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
4757         * tree.c (build0, build1, build2, build3, build4): Split out from...
4758         (build): ... here.  Call them.
4759         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
4760
4761         * convert.c (convert_to_integer): Remove extra build argument.
4762         * tree-inline.c (expand_call_inline): Likewise.
4763
4764 2004-02-19  Richard Henderson  <rth@redhat.com>
4765
4766         * c-opts.c (warn_variadic_macros): New.
4767         (c_common_handle_option): Set it.
4768         (sanitize_cpp_opts): Copy it to cpp_opts.
4769         * c.opt (Wvariadic-macros): New.
4770         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
4771         * cppinit.c (cpp_create_reader): Initialize it.
4772         * cppmacro.c (parse_params): Check it.
4773
4774 2004-02-19  David Daney <ddaney@avtrex.com>
4775
4776         PR preprocessor/14198
4777         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
4778         builtin_assert ("machine=mips")
4779
4780 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4781
4782         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4783         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4784         * config/cris/cris.h: Remove a comment about
4785         DEFAULT_SHORT_ENUMS.
4786         * config/ip2k/ip2k.h: Likewise.
4787         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4788
4789 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
4790
4791         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
4792         when passing single SFmode quantities in general registers,
4793         put them in the high half.
4794
4795 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
4796
4797         * doc/md.texi (Standard Names): Document additional dependency on
4798         fix pattern.
4799
4800         * optabs.c (ftruncify): Remove.
4801         (expand_fix): Manually inline ftruncify above.
4802         (can_fix_p): Add FIXME note.
4803
4804 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
4805
4806         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
4807         spe_fixuns_truncsfsi2.
4808
4809         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
4810         fixuns_truncsfsi2.
4811
4812 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
4813
4814         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
4815         * testsuite/gcc.dg/20040219-1.c: New test.
4816
4817 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
4818
4819         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
4820         "*subsf3_cconly"): Subtraction is not commutative.
4821
4822 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
4823
4824         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
4825         (sdbout_symbol): If called before sdbout_init, queue DECL for
4826         later and return.
4827         (sdbout_init): Set sdbout_initialized true, process decls
4828         queued earlier by sdbout_symbol.
4829         (sdbout_finish): Use size_t for index variable.
4830
4831 2004-02-19  Jeff Law  <law@redhat.com>
4832
4833         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
4834         for unordered comparison codes.
4835
4836 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
4837
4838         * reload1.c (reload): Correct comment.
4839         (scan_paradoxical_subregs): Remove #if 0 and old comment.
4840         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
4841         register variables are not used by reload.
4842
4843 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
4844
4845         PR target/14209
4846         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
4847         constraints to not match postincrement.  Adjust the predicate to
4848         exclude a volatile memory reference.
4849
4850 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4851
4852         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
4853
4854 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4855
4856         * hooks.c (hook_void_tree_int): Remove.
4857         (hook_void_constcharptr): Likewise.
4858         (hook_int_void_0): Likewise.
4859         * hooks.h: Remove the prototypes for the above three
4860         functions.
4861         * targhooks.c (hook_bool_machine_mode_true): Remove.
4862         * targhooks.h: Remove the prototype for
4863         hook_bool_machine_mode_true.
4864
4865 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4866
4867         * emit-rtl.c (subreg_realpart_p): Remove.
4868         (reorder_insns_with_line_notes): Likewise.
4869         (end_full_sequence): Likewise.
4870         * rtl.h: Remove the prototype for the above functions.
4871
4872 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4873
4874         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
4875         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
4876         config/iq2000/iq2000.h, config/m32r/m32r.h,
4877         config/pdp11/pdp11.h, config/sparc/sparc.h,
4878         config/xtensa/xtensa.h: Remove commented-out or useless
4879         definitions of CASE_VECTOR_PC_RELATIVE.
4880
4881 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4882
4883         * loop.c (all_sets_invariant_p): Remove.
4884
4885 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
4886
4887         PR target/12916
4888         * config/sparc/sparc.h (NPARM_REGS): Delete.
4889         (BASE_RETURN_VALUE_REG): Likewise.
4890         (BASE_OUTGOING_VALUE_REG): Likewise.
4891         (BASE_PASSING_ARG_REG): Likewise.
4892         (BASE_INCOMING_ARG_REG): Likewise.
4893         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
4894         TARGET_ARCH64, not TARGET_V9.
4895         (function_arg_slotno): Dispatch based on the mode class.
4896         Handle vector modes like floating-point modes.
4897         (function_arg_record_value_1): Handle vector types like
4898         floating-point types.
4899         (function_arg_record_value_2): Likewise.
4900         Calculate regno after mode transformation.
4901         (function_arg): Handle vector modes like floating-point modes.
4902         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
4903         If ARCH64, do not recheck alignment.
4904         (function_arg_pass_by_reference): Reorder the conditions.
4905         (sparc_return_in_memory): Move after function_arg_padding.
4906         Implement calling conventions for vector modes.
4907         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
4908         (function_value): Move scope of 'regbase'.
4909         Implement calling conventions for vector modes.
4910         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
4911         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
4912         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
4913         the argument is passed by reference.
4914         (sparc_type_code): Handle vector types.
4915
4916 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
4917
4918         * function.c (assign_parms): When building decl_rtl for
4919         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
4920
4921 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
4922
4923         * expr.c (is_aligning_offset): Check if we are aligning the
4924         expressions's address over BIGGEST_ALIGNMENT in bytes, not
4925         in bits.
4926
4927 2003-02-18  Matt Austern  <austern@apple.com>
4928
4929         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
4930         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
4931         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
4932         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
4933         spec string.
4934         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
4935
4936 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
4937
4938         * dwarf2out.c (loclabel_num): Move outside #ifdef
4939         DWARF2_DEBUGGING_INFO and mark with GTY(()).
4940         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
4941         Mark with GTY(()).
4942         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
4943         Allocate memory with ggc_alloc.  No need to copy anything.
4944         (ia64_hpux_file_end): Update to match.
4945
4946 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
4947
4948         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
4949         by default.
4950
4951 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
4952
4953         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
4954         ("divmodtisi3"): Likewise.
4955         ("udivmoddi4", "udivmodtidi3"): Likewise.
4956         ("divmodsi4", "divmoddisi3"): Likewise.
4957         ("udivmodsi4", "udivmoddisi3"): Likewise.
4958         ("udivsi3", "umodsi3"): Likewise.
4959
4960 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
4961
4962         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
4963         placeholder insn when chunkifying the pool.
4964
4965 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4966
4967         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
4968         generating PIC code.
4969
4970 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4971
4972         * config/h8300/h8300-protos.h: Add a prototype for
4973         h8300_expand_branch.
4974         * config/h8300/h8300.c (h8300_expand_branch): New.
4975         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
4976         bgtu, beq, bne): Call h8300_expand_branch().
4977
4978 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4979
4980         * config/h8300/h8300-protos.h: Add prototypes for
4981         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
4982         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
4983         (h8300_hard_regno_mode_ok): Likewise.
4984         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
4985         h8300_hard_regno_nregs().
4986         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
4987
4988 2004-02-18  Per Bothner  <per@bothner.com>
4989
4990         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
4991         partly reverts my 2003-10-01 change, because we're back to logically
4992         including <command line> inside the main line.
4993         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
4994         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
4995         Fixes PR preprocessor/14103.
4996
4997         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
4998         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
4999         (cpp_push_include):  Don't need to increment pfile's line field.
5000         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
5001
5002         * c-ppoutput.c (print struct):  New first_time field.
5003         (init_pp_output):  Set print.first_time.
5004         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
5005         which is set also for (say) <command line>.  Clear print.first_time.
5006
5007         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
5008         does not match the code, so fix both.
5009         (should_stack_file):  Inline include_pch_p function.
5010         (include_pch_p):  Remove pointless function.
5011
5012         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
5013
5014 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5015
5016         * config/h8300/h8300.md (four define_peephole2's): Use
5017         h8300_regs_ok_for_stm().
5018
5019 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5020
5021         * config/h8300/h8300-protos.h: Update the prototype for
5022         expand_a_rotate().
5023         * config/h8300/h8300.c (expand_a_rotate): Remove the first
5024         argument.
5025         * config/h8300/h8300.md: Update all callers.
5026
5027 2004-02-18  Jan Hubicka  <jh@suse.cz>
5028
5029         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
5030         floats.
5031         (simplify_binary_operation): Deal with logicals on floats.
5032
5033         * i386.md (SSE fabs splitters): Emit new patterns.
5034         (SSE cmov splitters): Likewise.
5035         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
5036         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
5037         subregs.
5038         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
5039         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
5040
5041 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5042
5043         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
5044         by hand.
5045         (output_a_rotate): Tweak a comment.
5046         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
5047         (*rotlhi3_1): Change to rotlhi3_1.
5048         (*rotlsi3_1): Change to rotlsi3_1.
5049
5050 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
5051
5052         PR target/13866
5053         * arm.c (load_multiple_operation): Don't insist that the source reg
5054         of a post-increment component is the same as the destination.
5055         (store_multiple_operation): Likewise.
5056
5057 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5058
5059         * config/h8300/h8300.md: Move movsf patterns into one section
5060         of the file.
5061
5062 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5063
5064         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
5065         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
5066         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
5067         config/mips/linux64.h, config/pa/pa-64.h,
5068         config/rs6000/aix51.h, config/rs6000/aix52.h,
5069         config/rs6000/spe.md, config/sparc/linux.h,
5070         config/sparc/linux64.h: Update copyright.
5071
5072 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
5073
5074         * config/h8300/h8300.md: Move push patterns into one
5075         section of the file.
5076
5077 2004-02-18  Mark Mitchell <mark@codesourcery.com>
5078
5079         PR c++/11326
5080         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
5081         fntype.
5082
5083 2004-02-18  Paul Brook  <paul@codesourcery.com>
5084
5085         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
5086
5087 2004-02-18  Paul Brook  <paul@codesourcery.com>
5088
5089         PR debug/12934
5090         * dwarf2out.c (loc_descriptor_from_tree): Handle
5091         EXPR_WITH_FILE_LOCATION.
5092
5093 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
5094
5095         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
5096         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
5097         trailing whitespace from instructions.
5098
5099 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
5100
5101         * configure.ac: When generating auto-build.h, pass
5102         --enable-languages to the sub-configure.
5103         Put quotes around ${program_transform_name} when generating
5104         name of as, ld, nm, objdump.
5105         * configure: Regenerate.
5106
5107 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
5108
5109         * Makefile.in (s-check, s-config, s-conditions, s-flags)
5110         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
5111         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
5112         (s-preds, s-iov): Do not depend on move-if-change.
5113
5114 2004-02-17  James E Wilson  <wilson@specifixinc.com>
5115
5116         * caller-save.c (insert_restore): Pass mem through copy_rtx.
5117         (insert_save): Likewise.
5118
5119 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5120
5121         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
5122         warning.
5123
5124 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5125
5126         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
5127         *one_cmplsi2_h8300.
5128         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
5129
5130 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5131
5132         * config/h8300/h8300-protos.h: Update the prototype of
5133         fix_bit_operand().
5134         * config/h8300/h8300.c (fix_bit_operand): Remove the second
5135         argument "what".
5136         * config/h8300/h8300.md: Update all callers.
5137
5138 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5139
5140         * config/h8300/h8300.c (fix_bit_operand): Change the name of
5141         the last argument to "code" from "type".
5142
5143 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5144
5145         * config/h8300/h8300.c: Remove an extern declaration of
5146         rtx_equal_function_value_matters.
5147
5148 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5149
5150         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
5151         by hand.
5152         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
5153         (*iorqi3_1): Change to iorqi3_1.
5154         (*xorqi3_1): Change to xorqi3_1.
5155
5156 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5157
5158         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
5159         typos.
5160
5161 2004-02-17  Jan Hubicka  <jh@suse.cz>
5162
5163         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
5164
5165 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
5166
5167         PR optimization/14119
5168         * combine.c (try_combine): When attemting to fix unrecognized insns,
5169         don't delete SETs marked with REG_EH_REGION notes.
5170
5171 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
5172
5173         * combine.c (simplify_if_then_else): Do not replace
5174         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
5175         modes differ.
5176
5177 2004-02017  Steven Bosscher  <stevenb@suse.de>
5178
5179         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
5180         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
5181         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
5182         * ada/utils.c: Likewise.
5183         * cp/decl.c: Likewise.
5184         * f/com.c: Likewise.
5185         * java/class.c: Likewise.
5186
5187 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5188
5189         * config/h8300/h8300.md: Fix comment typos.
5190
5191 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5192
5193         * config/mips/t-iris6gld: Renamed to ...
5194         * config/mips/t-irix-gld: ... this.
5195         * config.gcc (mips-sgi-irix6*): Reflect this
5196         (mips-sgi-irix5*): Use it with GNU ld.
5197
5198         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
5199         to ...
5200         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
5201         * config/mips/t-irix-gld: Reflect this.
5202         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5203
5204         * config/mips/iris5gld.h: New file.
5205         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
5206         Only use collect2 without gas.
5207
5208         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
5209         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
5210         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
5211         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5212
5213         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
5214         * config/mips/iris5.h: ... here.
5215
5216         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
5217         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
5218         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
5219
5220         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
5221         using irix_startfile_spec, irix_endfile_spec.
5222
5223 2004-02-16  Gunther Nikl  <gni@gecko.de>
5224
5225         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
5226
5227 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5228
5229         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
5230         insns by hand.
5231
5232 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5233
5234         * cfghooks.c (split_edge): Speed up updating of dominators.
5235
5236 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
5237
5238         PR c++/11326
5239         * c-common.c (flag_abi_version): Remove.
5240         * c-common.h (flag_abi_version): Likewise.
5241         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
5242         * c.opt (fabi-version): Remove.
5243         * calls.c (expand_call): Always pass a function type to
5244         struct_value_rtx.  Use convert_memory_address.
5245         * common.opt (fabi-version): Add it.
5246         * flags.h (flag_abi_version): Likewise.
5247         (abi_version_at_least): New macro.
5248         * opts.c (common_handle_option): Add OPT_fabi_version.
5249         * toplev.c (flag_abi_version): Define it.
5250         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
5251         New function.
5252         (ia64_output_mi_thunk): Use it.
5253         (ia64_struct_value_rtx): Likewise.
5254
5255 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5256
5257         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
5258         Don't generate insns by hand.
5259
5260 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
5261
5262         PR c++/14178
5263         * doc/invoke.texi (fabi-version): The default is 2 now.
5264
5265 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5266
5267         * loop-iv.c: New file.
5268         * Makefile.in (loop-iv.o): New.
5269         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
5270         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
5271         num_loop_branches): New functions.
5272         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
5273         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
5274         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
5275         get_simple_loop_desc, free_simple_loop_desc): Declare.
5276         (simple_loop_desc): New inline function.
5277         (struct rtx_iv, struct niter_desc): New.
5278         * cfgloopmanip.c (loopify): Specify semantics more precisely.
5279         * expr.c (force_operand): Handle subregs of expressions created by
5280         loop unroller.
5281         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
5282         parts of the initialization to toplev.c
5283         * loop-unroll.c (loop_exit_at_end_p): New.
5284         (unroll_and_peel_loops): Call iv_analysis_done.
5285         (decide_peel_once_rolling, decide_peel_completely,
5286         decide_unroll_stupid, decide_unroll_constant_iterations,
5287         decide_unroll_runtime_iterations, decide_peel_simple,
5288         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
5289         unroll_loop_runtime_iterations): Use new simple loop analysis.
5290         * loop-unswitch.c (compare_and_jump_seq): New.
5291         (may_unswitch_on_p): Renamed to ...
5292         (may_unswitch_on): Use new iv analysis.
5293         (reversed_condition): Export.
5294         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
5295         * predict.c (estimate_probability): Use new simple loop analysis.
5296         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
5297         canon_condition, simplify_using_condition): Declare.
5298         * stor-layout.c (get_mode_bounds): New.
5299         * toplev.c (rest_of_handle_loop2): Some parts of
5300         initialization/finalization moved here from loop-init.c.
5301
5302 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
5303
5304         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
5305         pointer.
5306         (CALL_USED_REGISTERS): Likewise.
5307         (REG_ALLOC_ORDER): Likewise.
5308         (REG_CLASS) <GENERAL_REGS>: Likewise.
5309
5310 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
5311
5312         * doc/md.texi (Insn Canonicalizations): Document left-chaining
5313         in associative operators.
5314         * rtlanal.c (commutative_operand_precedence): Create some new
5315         variables.  Prefer a commutative operand on the left, then
5316         binary expressions, then NEG and NOT.
5317
5318 2004-02-16  Matthias Klose  <doko@debian.org>
5319
5320         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
5321         in terms of SHLIB_SOVERSION.
5322         * config/m68k/t-slibgcc-elf-ver: New file.
5323         * config/pa/t-slibgcc-elf-ver: New file.
5324         * config.gcc (m68k-linux, parisc-linux): Use them when not
5325         sjlj exceptions are not configured.
5326
5327 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
5328
5329         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
5330
5331 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
5332
5333         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
5334
5335 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
5336
5337         * doc/sourcebuild.texi: Mention backends.html.
5338
5339 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
5340
5341         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
5342         line-map.c, line-map.h, var-tracking.c: Fix comment
5343         formatting.
5344
5345 2004-02-16  Richard Henderson  <rth@redhat.com>
5346
5347         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
5348
5349         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
5350
5351 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
5352
5353         * config/h8300/h8300.md: Remove unnecessary parallels from
5354         all define_insn and define_split patterns.
5355
5356 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
5357
5358         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
5359         "clobber").
5360
5361 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
5362
5363         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
5364         '%#'.
5365
5366 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
5367
5368         * config/ia64/ia64.c, config/mips/mips.c,
5369         config/mmix/mmix-modes.def: Fix comment typos.
5370
5371 2004-02-15  Roger Sayle  <roger@eyesopen.com>
5372
5373         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
5374         (get_directive_line): Remove unused function prototype.
5375
5376 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
5377
5378         * tree-inline.c (copy_body_r): Do not replace ret_label.
5379
5380 2004-02-14  Jan Hubicka  <jh@suse.cz>
5381
5382         * i386.c (x86_four_jump_limit): New variable.
5383         (k8_avoid_jump_misspredicts): Rename to ...
5384         (ix86_avoid_jump_misspredicts): .. this one.
5385         (ix86_pad_returns): Break out from ...
5386         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
5387         to.
5388         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
5389
5390 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
5391
5392         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
5393         PARALLEL is NULL.
5394
5395 2004-02-14  Per Bothner  <per@bothner.com>
5396
5397         * fix-header.c (line_table):  Move local variable in main to global.
5398         * scan.h (line_table):  Use it.
5399         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
5400         line (recently renamed to src_loc) before calling recognized_function.
5401
5402 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
5403
5404         * Makefile.in: Fix comment typos.
5405
5406 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
5407
5408         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
5409         for start_value when it is directly moved into reg, and factorize
5410         the retrieval of GET_MODE (reg).
5411
5412 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
5413
5414         * config/mips/mips-protos.h (mips_load_got_page): Delete.
5415         (mips_load_got_global): Delete.
5416         (mips_gotoff_page): Declare.
5417         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
5418         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
5419         UNSPEC_LOAD_GOT pattern rather than a MEM.
5420         (*load_got[sd]i): New patterns.
5421         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
5422         (mips_load_got_page, mips_load_got_global): Delete.
5423         (mips_gotoff_page): New function.
5424         (override_options): Don't initialize mips_got_alias_set.
5425
5426 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
5427
5428         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
5429         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
5430         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
5431         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
5432         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
5433         * config/mips/mips.c: Fix some overly-long lines.
5434         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
5435         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
5436
5437 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5438
5439         * configure.ac: Search for as, ld below libexec/gcc.
5440         * configure: Regenerate.
5441
5442 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
5443
5444         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
5445         __builtin_arm_setwcx ().
5446         * config/arm/arm.c (arm_expand_builtin): Generate operands
5447         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
5448
5449 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
5450
5451         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
5452         and "wmuluh" to "wmulsm" and "wmulum", respectively.
5453         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
5454         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
5455         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
5456         (_mm_mulhi_pu16): Likewise.
5457
5458 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
5459
5460         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
5461         DECL_NAME != 0 before dereferencing.
5462
5463 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
5464
5465         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
5466         (s390_output_addr_const_extra): Declare.
5467         (s390_output_pool_entry): Remove FILE * argument.
5468         * config/s390/s390.c (s390_output_symbolic_const): Remove.
5469         (s390_output_addr_const_extra): New function.
5470         (print_operand_address): Call output_addr_const instead of
5471         s390_output_symbolic_const.
5472         (print_operand): Likewise.
5473         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
5474         Remove FILE * argument.
5475         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
5476         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
5477         call.
5478
5479 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5480
5481         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
5482         (struct edge, struct vertex, struct graph): New.
5483         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
5484         free_graph): New functions.
5485
5486 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
5487
5488         * config/mips/mips.md (casesi_internal, casesi_internal_di):
5489         Use ".set macro" to avoid warnings about multi-instruction
5490         macros, since they're intentional.
5491
5492 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
5493
5494         * config/darwin.h: Add include guards.  Remove old, now incorrect,
5495         comment about STANDARD_EXEC_PREFIX.
5496
5497         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
5498         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
5499         for installing .1 manpages.  Add rules for installing cpp
5500         and gcov manpages under their installed names.
5501
5502 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
5503
5504         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
5505         host, but try LD_FOR_TARGET first.
5506         * configure: Rebuilt.
5507
5508 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5509
5510         * dbxout.c: Move declaration of dbxout_type_decl outside
5511         #ifdef DBX_DEBUGGING_INFO.
5512         * c-parse.in: Don't give the asmdef production a type.
5513
5514 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5515
5516         * debug.h (struct gcc_debug_hooks): Add type_decl field.
5517         (debug_nothing_tree_int): Prototype.
5518         (dwarf_debug_hooks): Delete, unused.
5519         * debug.c (do_nothing_debug_hooks): Update.
5520         (debug_nothing_tree_int): New function.
5521         * langhooks.h (struct lang_hooks_for_decls):
5522         Remove builtin_type_decls field.
5523         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
5524         (LANG_HOOKS_DECLS): Update.
5525         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
5526         Use debug_hooks->type_decl.
5527         * dbxout.c (preinit_symbols): New static.
5528         (dbx_debug_hooks, xcoff_debug_hooks): Update.
5529         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
5530         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
5531         for symbols to output.
5532         (dbxout_type_decl): New function.
5533         (dbxout_symbol): If called before dbxout_init has run, queue
5534         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
5535         to TYPE_DECLs before emitting them.
5536         * xcoffout.c (assign_type_number): Delete.
5537         (xcoff_type_numbers): New static table.
5538         (xcoff_assign_fundamental_type_number): New function.
5539         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
5540         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
5541         * sdbout.c: Include varray.h.
5542         (deferred_global_decls): New static.
5543         (sdb_debug_hooks): Update.
5544         (sdbout_global_decl): If we can't emit something right now,
5545         remember it in deferred_global_decls.
5546         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
5547         (sdbout_init): Initialize deferred_global_decls.
5548         * Makefile.in: Update dependencies of sdbout.o.
5549         * dwarf2out.c (dwarf2out_type_decl): New function.
5550         (dwarf2_debug_hooks): Update.
5551         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
5552         * c-decl.c (getdecls): Just return 0.
5553         (check_for_loop_decls): Don't use getdecls.
5554         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
5555         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
5556
5557 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
5558
5559         * config/s390/s390.c (s390_sched_reorder2): Remove.
5560         (TARGET_SCHED_REORDER2): Do not redefine.
5561
5562 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5563
5564         * c-parse.in (maybe_type_qual): Delete.
5565         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
5566         (asm_argument): New grammar rules.
5567         (extdef_1): Use asmdef.
5568         (maybeasm): Move down with other asm rules; use simple_asm_expr.
5569         (xexpr): Move up with other expression rules.
5570         (stmt): Use asm_stmt.
5571
5572         * c-typeck.c (build_asm_expr): New function - body mostly
5573         pulled from build_asm_stmt.
5574         (build_asm_stmt): Just handle tacking on the volatile qualifier.
5575         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
5576
5577 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
5578
5579         PR bootstrap/13617
5580         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
5581         (mips_declare_object): Make variadic.
5582         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
5583         mips_output_aligned_decl_common.
5584         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
5585         (mips_declare_object): Make variadic.
5586
5587 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5588
5589         * function.c (update_epilogue_consts): Teach about binary operations.
5590
5591         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
5592         previous MEM_VOLATILE in REF.
5593         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
5594         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
5595
5596 2004-02-12  Gunther Nikl  <gni@gecko.de>
5597
5598         * config.gcc: Restore support for m68k-openbsd.
5599
5600 2004-02-12  Jan Hubicka  <jh@suse.cz>
5601
5602         * tree-optimize.c (tree_rest_of_compilation): Do not release
5603         DECL_ARGUMENTS.
5604
5605 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
5606
5607         * doc/install.texi: Fix the spelling of "explicitly".
5608
5609 2004-02-11  Eric Christopher  <echristo@redhat.com>
5610
5611         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
5612         duplicate argument structure of cpp_interpret_string.
5613         * cpphash.h: Move prototype...
5614         * cpplib.h: Here.
5615         * cpplib.c: Fix calls to match new function signature.
5616
5617 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
5618
5619         PR c/456
5620         * cppexp.c (num_binary_op): Don't allow comma operators in #if
5621         constant expressions at all outside C99 mode if pedantic.
5622
5623 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
5624
5625         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
5626         (log10_optab, log2_optab): Define corresponding macros.
5627         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
5628         * genopinit.c (optabs): Implement log10_optab and log2_optab
5629         using log10?f2 and log2?f2 patterns.
5630         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
5631         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
5632         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
5633         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5634
5635         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
5636         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
5637         log2, log2f and log2l built-ins as inline x87 intrinsics.
5638
5639 2004-02-11  Richard Henderson  <rth@redhat.com>
5640
5641         PR target/1532
5642         * flow.c (insn_dead_p): A clobber of a dead hard register is a
5643         dead insn after reload.
5644
5645 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
5646
5647         * tree.h (frame_base_decl): Add GTY marker.
5648         * var-tracking.c (frame_base_decl): Likewise.
5649
5650 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
5651
5652         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
5653         incorrect, hunk.
5654         (add_location_or_const_value_attribute): Use text_section_label,
5655         not TEXT_SECTION_NAME.
5656
5657 2004-02-11  Per Bothner  <per@bothner.com>
5658
5659         Represent column numbers using line-map's source_location.
5660         The "next available source_location" is now managed internally by
5661         line-maps.c rather than by clients.
5662         * line-map.h (struct line_map):  New field column_bits.
5663         <from_line>:  Rename field to start_location.
5664         (struct line_maps):  New fields highest_location and max_column_hint.
5665         (linemap_check_files_exited):  New declaration.
5666         (linemap_line_start):  New declaration.
5667         (linemap_add):  Remove from_line parameter; use highest_location field.
5668         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
5669         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
5670         (CURRENT_LINE_MAP):  Remove macro.
5671         (linemap_position_for_column):  New inline function.
5672         * line-map.c (linemap_init):  Clear new fields.
5673         (linemap_check_files_exited):  New function, extracted from ...
5674         (linemap_free):  Use linemap_check_files_exited.
5675         (linemap_add):  Remove from_line parameter.  Various updates.
5676         (linemap_line_start):  New function.
5677         (linemap_lookeup):  Update for new field names.
5678         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
5679         linemap_position_for_column may unpredictably change the current map,
5680         it is cleaner and simpler for us to not cache it in cpp_reader.
5681         (struct cpp_buffer):  New sysp field.
5682         Changed warned_cplusplus_comments and from_stage3 to bitfields.
5683         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
5684         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
5685         current map using linemap_lookup.
5686         (do_linemarker):  Also set buffer's sysp field.
5687         (destringize_and_run):  No longer need to decrement current line.
5688         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
5689         (search_path_head, open_file_failed):  Use buffer's sysp.
5690         (cpp_make_system_header):  Get current map using linemap_lookup.
5691         Also set buffer's sysp flag.
5692         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
5693         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
5694         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
5695         (struct cpp_reader):  ... and adding saved_line_base field.
5696         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
5697         Update accordingly.  Don't adjust line.
5698         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
5699         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
5700         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
5701         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
5702         * cpplex.c (_cpp_lex_direct):  Likewise.
5703         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
5704         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
5705         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
5706         Remove col field as it is now subsumed by src_loc.
5707         * cpperror.c:  Update various field, parameter, and macro names.
5708         (print_location):  If col==0, try SOURCE_COLUMN of line.
5709         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
5710         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
5711         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
5712         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
5713         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
5714         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
5715         (_cpp_lex_direct):  Use linemap_position_for_column.
5716         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
5717         parameter.  Instead get it from the line_table global.  Adjust callers.
5718         (print):  Remove map field.  Replace line field to src_line.
5719         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
5720         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
5721         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
5722         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
5723         * cpptrad.c (copy_comment):  Rename variable.
5724         * c-lex.c (map):  Remove static variable, for same reason we removed
5725         cpp_reader's map field.
5726         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
5727         to call linemap_lookup.
5728         (cb_line_change):  Token's line field replaced by src_loc.
5729         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
5730         Don't save new_map.
5731
5732         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
5733         source_location.
5734
5735 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
5736
5737         * config/rs6000/altivec.md (*movv4si_internal): At least one
5738         operand must be register_operand.
5739         (*movv8hi_internal1): Likewise.
5740         (*movv16qi_internal1): Likewise.
5741         (*movv4sf_internal1): Likewise.
5742
5743 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
5744
5745         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
5746         operand.
5747         (movv4hi_internal): Same.
5748         (movv2sf_internal): Same.
5749         (movv1di_internal): Same.
5750
5751 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
5752
5753         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
5754         TARGET_OLDABI consistently.
5755         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
5756         mips_va_arg,override_options,compute_frame_size,
5757         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
5758         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
5759         and TARGET_OLDABI consistently.
5760         * config/mips/mips.md (exception_receiver): Likewise.
5761         * config/mips/linux64.h: Likewise.
5762
5763 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
5764
5765         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
5766         Set AltiVec ABI and vrsave as default for ppc64 linux.
5767         (init_cumulative_args): Post error, if try to return
5768         value in AltiVec register without enable AltiVec.
5769         (function_arg_advance): Ditto for passing arguments.
5770
5771 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
5772
5773         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
5774         a label before updating its usage count.
5775
5776 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
5777
5778         * doc/install.texi: Remove extra cd.
5779
5780 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
5781
5782         * c-common.c (vector_size_helper): Remove; call
5783         reconstruct_complex_type() instead.
5784         * tree.c (reconstruct_complex_type): New function
5785         (formerly vector_size_helper() in c-common.c).
5786         (make_vector): Make externally visible.
5787         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
5788
5789 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
5790
5791         * config/h8300/h8300-protos.h: Add a prototype for
5792         h8300_regs_ok_for_stm.
5793         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
5794         * config/h8300/h8300.md (stm_h8300s_2_advanced,
5795         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
5796         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
5797         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
5798         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
5799         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
5800         ldm_h8300s_4_normal, ldm_h8300s_4): Use
5801         h8300_regs_ok_for_stm().
5802
5803 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
5804
5805         PR c/14088
5806         * real.c (real_from_string): Look for 'X' as well as 'x' in
5807         hexfloat strings.
5808
5809 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
5810
5811         * config/h8300/h8300.md: Remove an incorrect comment about
5812         peephole2.  Add comments.
5813
5814 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
5815
5816         PR/14058
5817         * emit-rtl.c (set_decl_incoming_rtl): New.
5818         * tree.h (set_decl_incoming_rtl): New.
5819         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
5820         DECL_INCOMING_RTL.
5821         * ada/misc.c (adjust_decl_rtl): Likewise.
5822
5823 2004-02-10  Per Bothner  <per@bothner.com>
5824
5825         * c-opts.c (c_common_post_options):   Don't emit working directory
5826         in cpp output if -P was specified.
5827
5828 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
5829
5830         PR c/14092
5831         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
5832         negate_expr back to the original type.
5833
5834 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
5835
5836         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
5837         bump retaddr here.
5838
5839 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
5840
5841         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
5842         gen_lowpart_SUBREG): Move under the file in which they
5843         are actually declared.
5844
5845 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
5846
5847         * doc/sourcebuild.texi: Add libada documentation.
5848
5849         * doc/install.texi: Update documentation on Ada build, now
5850         that the GNAT lib and tools are built automatically.
5851
5852 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
5853
5854         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
5855         && TARGET_IRIX.
5856
5857 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
5858
5859         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
5860         boundaries outside build_component_ref() call (a macro in ObjC++).
5861
5862 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
5863
5864         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
5865         (init_cumulative_args): Likewise.
5866         (a7_overlap_mentioned_p): Delete prototype.
5867         * config/xtensa/xtensa.c (struct machine_function): Replace
5868         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
5869         Add set_frame_ptr_insn field.
5870         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
5871         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
5872         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
5873         at the function entry and replace the operand with the pseudo.
5874         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
5875         argument and record this flag in CUMULATIVE_ARGS.
5876         (function_arg): Remove result_mode and special-case code to handle
5877         arguments in a7.  Instead, set need_a7_copy flag when there is an
5878         incoming argument in a7.
5879         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
5880         and use the value recorded in cfun->machine->set_frame_ptr_insn.
5881         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
5882         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
5883         special-case code.
5884         (a7_overlap_mentioned_p): Delete.
5885         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
5886         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
5887         arguments to init_cumulative_args and pass "incoming" flag instead.
5888         (BLOCK_REG_PADDING): Delete.
5889         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
5890         checks for reload_in_progress and reload_completed.  Update calls to
5891         xtensa_copy_incoming_a7.
5892         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
5893         to call xtensa_copy_incoming_a7.
5894
5895 2004-02-09  DJ Delorie  <dj@redhat.com>
5896
5897         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
5898         longer modify standard_exec_prefix, standard_bindir_prefix, or
5899         standard_startfile_prefix.
5900
5901 2004-02-09  James E Wilson  <wilson@specifixinc.com>
5902
5903         PR c++/11295
5904         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
5905         to expand_expr_real call, and pass in alt_rtl as last argument.
5906
5907         PR libstdc++/5625
5908         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
5909         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
5910         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
5911         * except.c (expand_builtin_extend_pointer): New.
5912         * except.h (expand_builtin_extend_pointer): Declare.
5913
5914 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
5915
5916         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
5917         unaligned loads and stores.
5918
5919 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5920
5921         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
5922         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
5923
5924         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
5925         * config/mips/iris5.h: ... here.
5926         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
5927
5928         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
5929         * config/mips/iris5.h: ... here.
5930
5931 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5932
5933         * configure.ac: Remove default executable files before AC_PROG_CC.
5934         * configure: Regenerate.
5935
5936 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
5937
5938         PR target/13721
5939         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
5940         print a operand other than a register.
5941
5942 2004-02-09  Roger Sayle  <roger@eyesopen.com>
5943
5944         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
5945         tree code rather than call fold_convert, which doesn't specify a
5946         default floating point to integer conversion.
5947
5948 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
5949
5950         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
5951         code to support SGS assembler.  Reformat adjacent code where possible.
5952         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
5953         definition.
5954         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
5955         for '%#'.
5956         * config/m68k/linux.h, config/m68k/m68k.c,
5957         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
5958         macros and asm_printf() format strings.
5959         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
5960         * config/m68k/linux.h: Update copyright.
5961         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
5962
5963 2004-02-08  Andreas Schwab  <schwab@suse.de>
5964             Bernardo Innocenti  <bernie@develer.com>
5965
5966         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
5967         REGISTER_PREFIX.
5968         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
5969         frame pointer register, overridable by OS targets.
5970         * (M68K_REGNAME): Macro to obtain register name for asm output,
5971         eventually replacing %a6 with M68K_FP_REG_NAME.
5972         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
5973         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
5974         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
5975         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
5976         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
5977
5978 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
5979
5980         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
5981         hook_rtx_tree_int_null.
5982         * targhooks.c (default_struct_value_rtx): Remove.
5983         * targhooks.h: Remove the prototype for
5984         default_struct_value_rtx.
5985         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
5986         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
5987         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
5988         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
5989         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
5990         config/rs6000/rs6000.c, config/s390/s390.c,
5991         config/stormy16/stormy16.c, config/v850/v850.c,
5992         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
5993         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
5994
5995 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
5996
5997         * README.Portability: Change "ISO C89" to "ISO C90".
5998         * c-parse.in (primary, initelt): Likewise.
5999
6000 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
6001
6002         * real.c (encode_ibm_extended): Normalize the input value before
6003         converting it to a double.  Handle the case where a normal value
6004         rounds to infinity.
6005
6006 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
6007
6008         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
6009         warning.
6010         * cse.c (preferrable): Change to preferable. Update all of its
6011         callers.
6012         * genautomata.c (ainsn): Change
6013         first_ainsn_with_given_equialence_num to
6014         first_ainsn_with_given_equivalence_num.  Update all of its
6015         references.
6016
6017 2004-02-08  Jan Hubicka  <jh@suse.cz>
6018
6019         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
6020
6021 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
6022
6023         * function.c (assign_parms): Fix formatting.
6024
6025 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6026
6027         * default.h (PROMOTE_PROTOTYPES): Remove.
6028         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
6029         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
6030         EXPAND_BUILTIN_SAVEREGS): Poison.
6031         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
6032         hook_bool_tree_false.
6033         (TARGET_PROMOTE_PROTOTYPES): Likewise.
6034         * target.h: Replace SETUP_INCOMING_VARARGS with
6035         targetm.calls.setup_incoming_varargs().
6036         * targhooks.c (default_promote_function_return): Remove.
6037         (default_promote_prototypes): Likewise.
6038         (default_struct_value_rtx): Always abort().
6039         (default_expand_builtin_saveregs): Always print an error
6040         message.
6041         (default_setup_incoming_varargs): Do nothing.
6042         (default_pretend_outgoing_varargs_named): Don't depend on
6043         SETUP_INCOMING_VARARGS.
6044         * targhooks.h: Remove the prototype for
6045         default_promote_function_return and
6046         default_promote_prototypes.
6047
6048 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6049
6050         * system.h (SHARED_SECTION_ASM_OP): Poison.
6051         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
6052         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
6053
6054 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
6055
6056         Bug 13856
6057         * c-decl.c (diagnose_mismatched_decls): Only give special
6058         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
6059         is also true.
6060         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
6061         DECL_FUNCTION_CODE when defining a built-in function.
6062         Don't update DECL_ESTIMATED_INSNS.
6063         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
6064         FUNCTION_DECLs.
6065         * tree.h: Delete DECL_ESTIMATED_INSNS.
6066         * tree-inline.c (struct inline_data): Delete inlined_insns field.
6067         (expand_call_inline, optimize_inline_calls): Don't update
6068         DECL_ESTIMATED_INSNS nor inlined_insns.
6069         * cgraphunit.c (cgraph_analyze_function): Don't update
6070         DECL_ESTIMATED_INSNS.
6071
6072 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
6073
6074         * c-common.c (shadow_warning): Delete.
6075         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
6076         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
6077         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
6078         * c-parse.in (free_parser_stacks): Delete.
6079
6080 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
6081
6082         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
6083         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
6084         Use the top level mkinstalldirs, not the one in the gcc subdir.
6085         * mkinstalldirs: Remove (from the gcc subdir).
6086
6087 2004-02-07  Roger Sayle  <roger@eyesopen.com>
6088
6089         PR middle-end/13696
6090         * fold-const.c (fold_convert): New function to provide type
6091         conversion to the middle-end without using convert.
6092         (negate_expr, associate_trees, size_diffop, omit_one_operand,
6093         operand_equal_for_comparison_p, pedantic_omit_one_operand,
6094         invert_truthvalue, optimize_bit_field_compare, range_binop,
6095         decode_field_reference, make_range, build_range_check, unextend,
6096         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
6097         fold_binary_op_with_conditional_arg, fold_inf_compare,
6098         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
6099         convert with calls to fold_convert.
6100
6101 2004-02-07  Jan Hubicka  <jh@suse.cz>
6102
6103         * genrecog.c (find_operand): add extra argument stop.
6104         (validate_pattern): Verify that mach_dup is duplicating operand
6105         defined lexically earlier.
6106
6107 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6108
6109         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
6110         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
6111         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
6112         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
6113         config/ia64/ia64.h, config/ip2k/ip2k.h,
6114         config/iq2000/iq2000.h, config/mips/iris5.h,
6115         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
6116         config/rs6000/aix51.h, config/rs6000/aix52.h,
6117         config/rs6000/darwin.h, config/rs6000/rs6000.h,
6118         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
6119         config/sparc/linux.h, config/sparc/linux64.h,
6120         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
6121         config/xtensa/xtensa.h: Remove the definitions of
6122         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
6123         MAX_WCHAR_TYPE_SIZE.
6124         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
6125         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
6126
6127 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
6128
6129         PR bootstrap/13990
6130         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
6131         gen_rtx_NE.
6132
6133 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
6134
6135         * var-tracking.c (vt_add_function_parameters): Surround checkings by
6136         #ifdef ENABLE_CHECKING and #endif.
6137
6138 2004-02-07  Roger Sayle  <roger@eyesopen.com>
6139
6140         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
6141         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
6142         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
6143         integer types and floating point with unsafe_math_optimizations.
6144         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
6145         Optimize A - B as A + (-B), if B is easily negated.
6146
6147 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6148
6149         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
6150         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
6151         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
6152         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
6153         Update copyright.
6154
6155 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
6156
6157         * c-ppoutput.c, var-tracking.c: Fix comment typos.
6158
6159 2004-02-06  James E Wilson  <wilson@specifixinc.com>
6160
6161         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
6162         glibc 2.3 or better.
6163
6164 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6165
6166         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
6167         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
6168
6169 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
6170
6171         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
6172         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
6173         (SHLIB_MKMAP_OPTS): Delete.
6174         (TARGET_LIBGCC2_CFLAGS): Add -specs.
6175         (bispecs): Add rule.
6176         * config/rs6000/libgcc-ppc64.ver: New file.
6177         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
6178         (__floatdidf, __floatdisf): Optimize multiply.
6179         (__fixunstfdi): New function.
6180         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
6181         real and imag parts larger than one register.
6182         (function_arg): Correct type of reg used when fp arg split partially
6183         to stack.
6184         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
6185         and __MACH__ or __powerpc64__.
6186
6187 2004-02-06  Roger Sayle  <roger@eyesopen.com>
6188             Ulrich Weigand  <uweigand@de.ibm.com>
6189
6190         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
6191         of gen_highpart or gen_lowpart when the floating point format is
6192         wider than the result mode.
6193
6194 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
6195
6196         * dwarf2out.c (loclabel_num): Move into #ifdef
6197         DWARF2_DEBUGGING_INFO.
6198
6199 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
6200
6201         * objc/objc-act.c (build_super_template) the 'class' field of
6202         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
6203         (get_super_receiver): Likewise.
6204
6205 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6206
6207         * reload1.c (check_eliminable_occurrences): Optimize the reset
6208         of can_eliminate.
6209         (eliminate_regs_in_insn): Likewise.
6210
6211 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
6212             Josef Zlomek  <zlomekj@suse.cz>
6213
6214         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
6215         at the beginning of function, call dwarf2out_var_location for
6216         NOTE_INSN_VAR_LOCATION note.
6217         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
6218         decl_loc_table): New.
6219         (lookup_decl_loc): New function.
6220         (add_var_loc_to_decl): New function.
6221         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
6222         only if can_use_fbreg.
6223         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
6224         functions.
6225         (loc_descriptor): Likewise. Process VAR_LOCATION.
6226         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
6227         (loc_descriptor_from_tree): Call mem_loc_descriptor with
6228         can_use_fbreg == true.
6229         (add_location_or_const_value_attribute): Added parameter enum
6230         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
6231         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
6232         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
6233         with attr == DW_AT_location.
6234         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
6235         if frame_base_decl is defined and has a location list.
6236         (gen_variable_die): Call add_location_or_const_value_attribute with
6237         attr == DW_AT_location.
6238         (dwarf2out_var_location): New function.
6239         (dwarf2out_begin_function): New function.
6240         (dwarf2out_init): Create decl_loc_table.
6241
6242 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6243
6244         * loop.c (force_movables): Transitively increase the priorities of
6245         all insns forces by an insn, not just the first one.
6246
6247 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
6248             Daniel Berlin <dberlin@dberlin.org>
6249
6250         Josef Zlomek  <zlomekj@suse.cz>
6251         * Makefile.in (var-tracking.o): New.
6252         * common.opt (fvar-tracking): New.
6253         * flags.h (flag_var_tracking): New.
6254         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
6255         * opts.c (common_handle_option): Add OPT_fvar_tracking.
6256         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
6257         * rtl.c (note_insn_name): Likewise.
6258         * rtl.def (VAR_LOCATION): New.
6259         * rtl.h (NOTE_VAR_LOCATION): New.
6260         (NOTE_VAR_LOCATION_DECL): New.
6261         (NOTE_VAR_LOCATION_LOC): New.
6262         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
6263         (variable_tracking_main): New exported function.
6264         * timevar.def (TV_VAR_TRACKING): New.
6265         * toplev.c (enum dump_file_index): Added DFI_vartrack.
6266         (dump_file): "vartrack" was added (-dV).
6267         (flag_var_tracking): New.
6268         (f_options): "var-tracking" was added.
6269         (rest_of_handle_variable_tracking): New function.
6270         (rest_of_compilation): Run variable tracking.
6271         (process_options): If user has not specified flag_var_tracking set it
6272         according to optimize, debug_info_level and debug_hooks.
6273         * tree.h (frame_base_decl): New.
6274         * var-tracking.c: New file.
6275         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
6276         (ia64_override_options): Set flags to run variable tracking in machine
6277         dependent reorg instead of toplev.c.
6278         (ia64_reorg): Run variable tracking if wanted.
6279         * doc/invoke.texi: Mention variable tracking in -dV,
6280         add and -fvar-tracking.
6281         * doc/passes.texi: Added variable tracking pass.
6282
6283         Daniel Berlin <dberlin@dberlin.org>
6284         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
6285         * dbxout.c (dbx_debug_hooks): Likewise.
6286         (xcoff_debug): Likewise.
6287         * debug.c (do_nothing_debug_hooks): Likewise.
6288         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
6289         * dwarfout.c (dwarf_debug_hooks): Likewise.
6290         * sdbout.c (sdb_debug_hooks): Likewise.
6291         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6292         * final.c (final_scan_insn): Call var_location debug hook for each
6293         NOTE_INSN_VAR_LOCATION.
6294
6295 2004-02-06  Jan Hubicka  <jh@suse.cz>
6296
6297         * flow.c (update_life_info): Allocate reg_deaths when called from
6298         scheudler.
6299         (attempt_auto_inc):  Update life ranges accordingly.
6300
6301 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6302
6303         PR debug/11816
6304         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
6305
6306 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6307
6308         * cfganal.c (flow_call_edges_add): Never split a libcall block.
6309
6310 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
6311
6312         * dwarf2out.c (output_loc_list): Don't use deltas if we have
6313         a separate line info table in use.
6314         Use the correct size for terminators.
6315         (output_die): Use offset, not delta.
6316
6317 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
6318
6319         * doc/invoke.texi: Remove the pni option from -mfpmath=.
6320
6321 2004-02-06  Jan Hubicka  <jh@suse.cz>
6322
6323         * recog.c (split_all_insns): Do not update reg info.
6324         * regrename.c (regrename_optimize): Likewise.
6325         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
6326         * flow.c (struct propagate_block_info): Add insn_num field.
6327         (reg_deaths): New array.
6328         (life_analysis): Free reg_deaths info.
6329         (allocate_reg_life_data): Allocate reg_deaths array.
6330         (propagate_one_insn): Use new array.
6331         (init_propagate_block): Initialize it.
6332         (free_propagate_block_info): Finish compuation of
6333         REG_LIVE_LENGTH
6334         (attempt_auto_inc): Sanity check that REG_INFO is not
6335         computed at same time.
6336         (mark_used_regs): Update new array.
6337
6338         * reg-stack.c (subst_stack_regs): Unshare clobbers before
6339         substitution.
6340
6341 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6342
6343         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
6344         *extendqisi2_short_displ.
6345
6346 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
6347
6348         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
6349         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
6350         (emit_library_call_value_1): Likewise pass nargs.
6351         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
6352         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
6353         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
6354         parameter instead of scanning TYPE_ARGS_TYPES to count args.
6355         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
6356         prototype.
6357         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
6358         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
6359         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
6360         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
6361         INIT_CUMULATIVE_ARGS.
6362         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
6363         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
6364         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
6365         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
6366         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
6367         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
6368         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
6369         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
6370         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
6371         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
6372         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
6373         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
6374
6375 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6376
6377         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
6378         possible.
6379
6380 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6381
6382         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
6383         note containing (plus (reg) (const_int)), where reg is an
6384         eliminable reg, then perform the register elimination without
6385         depending on eliminate_regs().
6386
6387 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6388
6389         * config/arc/arc.c (arc_return_in_memory): Check the return
6390         value of int_size_in_bytes against -1.  Don't check
6391         TREE_ADDRESSABLE.
6392         * config/avr/avr.c (avr_return_in_memory): Check the return
6393         value of int_size_in_bytes against -1.
6394         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
6395         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
6396         Likewise.
6397         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
6398         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
6399         Likewise.
6400
6401 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6402
6403         * config/frv/frv-protos.h: Remove the prototype for
6404         frv_setup_incoming_varargs.
6405         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
6406         (frv_setup_incoming_varargs): Make it static.
6407         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
6408
6409 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6410
6411         * config/fr30/fr30-protos.h: Remove the prototype for
6412         fr30_setup_incoming_varargs.
6413         Update the prototypes for fr30_num_arg_regs and
6414         fr30_function_arg_partial_nregs.
6415         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
6416         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6417         (fr30_setup_incoming_varargs): Make it static.
6418         Add argument second_time.  Don't do anything when second_time
6419         is nonzero.
6420         (fr30_num_arg_regs): Change the type of the first argument to
6421         enum machine_mode.
6422         (fr30_function_arg_partial_nregs): Change the type of the
6423         second argument to enum machine_mode.
6424         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
6425         (SETUP_INCOMING_VARARGS): Remove.
6426
6427 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
6428
6429         * config/arc/arc-protos.h: Remove the prototype for
6430         arc_setup_incoming_varargs.
6431         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
6432         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6433         (arc_setup_incoming_varargs): Make it static.
6434         (arc_external_libcall): Likewise.
6435         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
6436         Remove the commented-out definition of
6437         ASM_OUTPUT_EXTERNAL_LIBCALL.
6438
6439 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
6440
6441         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
6442         to $$(slibdir) in the installation commands.
6443
6444 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
6445
6446         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
6447         with inner_regno, not regno.
6448         * rtlanal.c (refers_to_regno_p): Same.
6449
6450 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6451
6452         * config.gcc: Remove i370 support.
6453
6454 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
6455
6456         * doc/install.texi:  Update automake and autoconf version
6457         requirements.  Note where to find gcj automake version.
6458
6459 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
6460
6461         * Makefile.in (generate-manpages): Move dependencies to ...
6462         (man): here.
6463         * doc/makefile.texi: Document new targets.
6464         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
6465
6466 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
6467
6468         PR/13485
6469         Makefile.in (srcextra):  Add a level of indirection to ...
6470         (gcc.srcextra): ... here.
6471         (po-generated): Delete.
6472         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
6473         options.c.
6474         (start.encap): Remove superfluous lang.srcextra dependency.
6475         objc/Make-lang.in (po-generated):  Delete.
6476
6477 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6478
6479         * config/ia64/ia64.c (REG_GP): Remove.
6480
6481 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6482
6483         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
6484
6485 2004-02-05  Devang Patel  <dpatel@apple.com>
6486
6487         * dwarf2out.c (force_type_die): Look up input type itself
6488         instead of root_type() of type.
6489
6490 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
6491
6492         * config/s390/s390.md ("*tmqidi_ext"): New insn.
6493         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
6494         pre-reload splitters are transformed to post-reload
6495         define_insn_and_split patterns.
6496         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
6497
6498 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6499
6500         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
6501         TARGET_PROMOTE_PROTOTYPES.
6502
6503 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6504
6505         PR middle-end/13750
6506         Revert:
6507         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
6508         PR pch/13361
6509         * c-typeck.c (constructor_asmspec): Delete.
6510         (struct initializer_stack): Delete field 'asmspec'.
6511         (start_init): Delete saving of asmspec.
6512         (finish_init): Don't update constructor_asmspec.
6513         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
6514         * stmt.c (expand_asm): Duplicate strings from tree.
6515         (expand_asm_operands): Likewise.
6516         * tree.c (tree_size): Update computation of size of STRING_CST.
6517         (make_node): Don't make STRING_CST nodes.
6518         (build_string): Allocate string with tree node.
6519         * tree.def (STRING_CST): Update comment.
6520         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
6521         (tree_string): Place contents of string in tree node.
6522         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
6523         from tree.
6524
6525 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
6526
6527         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
6528         msgid.
6529
6530 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
6531
6532         * config/rs6000/altivec.md (*movv4si_internal): At least one
6533         operand must be altivec_register_operand.
6534         (*movv8hi_internal1): Likewise.
6535         (*movv16qi_internal1): Likewise.
6536         (*movv4sf_internal1): Likewise.
6537
6538 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
6539
6540         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
6541         * configure: Regenerate.
6542
6543 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
6544
6545         * doc/install.texi: Update description of --gxx-include-dir to
6546         give correct default value.
6547
6548 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6549
6550         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
6551         8 with MAC_REG.
6552
6553 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6554
6555         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
6556         gen_rtx_PARALLEL.
6557
6558 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6559
6560         * emit-rtl.c: Update the comment about the file.
6561
6562 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
6563
6564         * sourcebuild.texi (Test Idioms): Update testcase naming
6565         conventions.
6566
6567 2004-02-04  Per Bothner  <per@bothner.com>
6568
6569         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
6570         * c-ppoutput.c (pp_dir_change):  New function.
6571         * c-common.h (pp_dir_change):  New declaration.
6572         * cpplib.h (struct cpp_options):  Remove working_directory field.
6573         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
6574         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
6575         Don't handle -fworking_directory here, but in c_common_post_options.
6576         (read_original_directory): Don't back up when done.
6577         Don't clear no-longer used working_directory flag.
6578         * cpplib.h:  Update declarations to match.
6579         * c-lex.c (cb_dir_change):  Move to c-opts.c.
6580         (init_c_lex):  Don't set dir_change callback here, since we want
6581         to set it even if flag_preprocess_only.
6582         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
6583         (c_common_post_options):  Set dir_change callback.
6584         Call pp_dir_change if approporiate.
6585         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
6586         unneeded parameter and result. Do LC_RENAME for <built-in>.
6587         (c_common_post_options):  Call cpp_read_main_file here instead.
6588         (c_common_init):  Update accordingly.
6589         (push_command_line_include):  Don't cpp_push_main_file.
6590         Do LC_RENAME rather than LC_LEASE to get back to main file.
6591         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
6592         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
6593         files, but call finish_options for all files.
6594         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
6595         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
6596         cpp_find_main_file + cpp_push_main_file.
6597         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
6598         * opts.c (handle_options):  Only set main_input_filename first time.
6599
6600 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
6601
6602         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
6603
6604 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
6605
6606         * reload.c (find_equiv_reg): When checking for register overlap,
6607         don't index hard_regno_nregs with a pseudo-reg.
6608
6609 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6610
6611         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
6612
6613 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
6614
6615         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
6616         against FIRST_PSEUDO_REGISTER.
6617
6618 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6619
6620         * Makefile.in: Move target, host overrides after per-language
6621         fragments.
6622
6623         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
6624         (GNATLIBCFLAGS): Remove -g.
6625
6626 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6627
6628         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
6629         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6630         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6631         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
6632         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
6633         config/sparc/sparc.c, config/vax/vax.c: Revert the
6634         replacements of "FALLTHRU" with "Fall through" done in the
6635         previous patch.
6636
6637 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6638
6639         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
6640         config/arm/arm.c, config/arm/arm.md,
6641         config/cris/cris-protos.h, config/fr30/fr30.c,
6642         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
6643         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
6644         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
6645         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
6646         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
6647         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
6648         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
6649         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
6650         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
6651         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
6652         config/s390/s390.md, config/sparc/netbsd-elf.h,
6653         config/sparc/openbsd.h, config/sparc/sparc.c,
6654         config/xtensa/lib2funcs.S: Fix comment formatting.
6655
6656 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6657
6658         * config/alpha/alpha.c, config/arc/arc.c,
6659         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
6660         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
6661         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
6662         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
6663         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6664         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6665         config/iq2000/iq2000.c, config/m32r/m32r.c,
6666         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6667         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
6668         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
6669         config/rs6000/rs6000.h, config/sparc/sparc.c,
6670         config/vax/vax.c: Fix comment typos.  Follow spelling
6671         conventions.
6672
6673 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6674
6675         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
6676         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
6677         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
6678         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
6679         config/arm/fpa.md, config/arm/iwmmxt.md,
6680         config/arm/netbsd-elf.h, config/arm/netbsd.h,
6681         config/m68hc11/m68hc11.md, config/mips/iris5.h,
6682         config/mn10300/mn10300.md, config/rs6000/altivec.md,
6683         config/sparc/netbsd-elf.h: Update copyright.
6684
6685 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
6686
6687         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
6688         for all modes whose size is greater than 8 bytes if ARCH32.
6689         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
6690         by reference if ARCH32.
6691
6692 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
6693
6694         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
6695
6696 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6697
6698         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
6699         to before adddi3 insn patterns.
6700         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
6701         "reload_insi"): Move to before addsi3 insn patterns.
6702
6703 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
6704
6705         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
6706         parameter.  Use it instead of current_function_is_thunk.
6707         * function.h (struct function): Update documentation for is_thunk.
6708         * tree.h (CALL_FROM_THUNK_P): New macro.
6709         * config/alpha/alpha.c (alpha_sa_mask): Do not check
6710         no_new_pseudos when testing current_function_is_thunk.
6711         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
6712
6713 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6714
6715         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
6716         TARGET_SETUP_INCOMING_VARARGS.
6717
6718 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6719
6720         * emit-rtl.c (gen_rtx): Remove.
6721         * genattrtab.c: Don't mention gen_rtx in a comment.
6722         * rtl.h: Remove the prototype for gen_rtx.
6723         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
6724
6725 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6726
6727         * config/arc/arc.h, config/fr30/fr30.h
6728         (SETUP_INCOMING_VARARGS): Remove the target-independent
6729         comments.
6730         * doc/tm.texi: Don't mention deprecated target macros.
6731
6732 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6733
6734         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
6735         target-independent comment.
6736
6737 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6738
6739         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
6740         mention deprecated target macros.
6741
6742 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6743
6744         * config.gcc: Remove obsolete ports and configurations.
6745         * config/linux-aout.h, config/netware.h,
6746         config/t-linux-gnulibc1, config/d30v/abi,
6747         config/d30v/d30v-protos.h, config/d30v/d30v.c,
6748         config/d30v/d30v.h, config/d30v/d30v.md,
6749         config/d30v/libgcc1.asm, config/d30v/t-d30v,
6750         config/dsp16xx/dsp16xx-modes.def,
6751         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
6752         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
6753         config/i370/README, config/i370/i370-c.c,
6754         config/i370/i370-protos.h, config/i370/i370.c,
6755         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6756         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
6757         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
6758         config/i386/moss.h, config/i386/netware.h,
6759         config/i386/svr3.ifile, config/i386/svr3dbx.h,
6760         config/i386/svr3gas.h, config/i386/svr3z.ifile,
6761         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
6762         config/i960/i960-c.c, config/i960/i960-coff.h,
6763         config/i960/i960-modes.def, config/i960/i960-protos.h,
6764         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6765         config/i960/rtems.h, config/i960/t-960bare,
6766         config/m68k/hp310.h, config/m68k/hp320.h,
6767         config/m68k/hp320base.h, config/m68k/m68kv4.h,
6768         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
6769         Remove.
6770         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
6771         doc/md.texi: Remove mentions of obsolete ports.
6772
6773 2004-02-04  Jan Hubicka  <jh@suse.cz>
6774
6775         * alias.c (find_base_term, get_addr):  Do not dereference NULL
6776         pointer when all VALUE's locations has been invalidated.
6777         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
6778
6779 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
6780
6781         * doc/invoke.texi (x86 options): Fix spelling/wording.
6782
6783 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
6784
6785         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
6786         put the original string in a comment.
6787         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
6788         * config/mips/mips.c (mips_output_ascii): Likewise.
6789         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
6790
6791 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6792
6793         * system.h (GIV_SORT_CRITERION): Poison.
6794         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
6795         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
6796
6797 2004-02-03  Roger Sayle  <roger@eyesopen.com>
6798
6799         PR target/9348
6800         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
6801         multiplies with a multiplication of the wrong signedness, its the
6802         signedness of the multiplication that we've performed that needs to
6803         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
6804         if expand_mult_highpart_adjust places the result in target.
6805
6806 2004-02-03  Richard Henderson  <rth@redhat.com>
6807
6808         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
6809
6810 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
6811
6812         * config.gcc (sh[234]l): Use little endian fragments.
6813
6814 2004-02-03  Paul Koning  <pkoning@equallogic.com>
6815
6816         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
6817         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
6818         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
6819         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
6820         floating point format.
6821         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
6822         the above functions.
6823         (output_move_quad): Output float values in correct target format.
6824         (legitimate_const_double_p): New function.
6825         * config/pdp11/pdp11.h: Fix typos.
6826         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
6827         (TARGET_FLOAT_FORMAT): Ditto.
6828         (pdp11_f_format, pdp11_d_format): Add external declarations.
6829         (MAX_REGS_PER_ADDRESS): Corrected.
6830         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
6831         (PRINT_OPERAND): Output float literals in target format.
6832
6833 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
6834
6835         PR c++/13975
6836         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
6837         TI_PRIVATE.
6838         (access_public_node): Redefine.
6839         (access_protected_node): Likewise.
6840         (access_private_node): Likewise.
6841         * tree.c (build_common_tree_nodes): Create access_public_node,
6842         access_protected_node, and access_private_node.
6843
6844 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
6845
6846         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
6847         (MASK_INLINE_INT_DIV_THR): Ditto.
6848         (MASK_INLINE_SQRT_LAT): Ditto.
6849         (MASK_INLINE_SQRT_THR): Ditto.
6850         (MASK_DWARF2_ASM): Ditto.
6851         (MASK_EARLY_STOP_BITS): Ditto.
6852
6853 2004-02-02  Paul Brook  <paul@codesourcery.com>
6854
6855         Merge from csl-arm-branch.
6856
6857         2004-01-30  Paul Brook  <paul@codesourcery.com>
6858
6859         * aof.h (REGISTER_NAMES): Add vfp reg names
6860         (ADDITIONAL_REGISTER_NAMES): Ditto.
6861         * aout.h (REGISTER_NAMES): Ditto.
6862         (ADDITIONAL_REGISTER_NAMES): Ditto.
6863         * arm-protos.h: Update/Add Prototypes.
6864         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
6865         Only allow 0.0 for VFP.
6866         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
6867         (values_fp): Rename from values_fpa.  Update Users.
6868         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
6869         Update users.  Only check valid constants for this hardware.
6870         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
6871         Only allow consts for FPA.
6872         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
6873         Only allow consts for FPA.
6874         (use_return_insn): Check for saved VFP regs.
6875         (arm_legitimate_address_p): Handle VFP DFmode addressing.
6876         (arm_legitimize_address): Ditto.
6877         (arm_general_register_operand): New function.
6878         (vfp_mem_operand): New function.
6879         (vfp_compare_operand): New function.
6880         (vfp_secondary_reload_class): New function.
6881         (arm_float_compare_operand): New function.
6882         (vfp_print_multi): New function.
6883         (vfp_output_fstmx): New function.
6884         (vfp_emit_fstm): New function.
6885         (arm_output_epilogue): Output VPF reg restore code.
6886         (arm_expand_prologue): Output VFP reg save code.
6887         (arm_print_operand): Add 'P'.
6888         (arm_hard_regno_mode_ok): Return modes for VFP regs.
6889         (arm_regno_class): Return classes for VFP regs.
6890         (arm_compute_initial_elimination_offset): Include space for VFP regs.
6891         (arm_get_frame_size): Ditto.
6892         * arm.h (FIXED_REGISTERS): Add VFP regs.
6893         (CALL_USED_REGISTERS): Ditto.
6894         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
6895         (FIRST_VFP_REGNUM): Define.
6896         (LAST_VFP_REGNUM): Define.
6897         (IS_VFP_REGNUM): Define.
6898         (FIRST_PSEUDO_REGISTER): Include VFP regs.
6899         (HARD_REGNO_NREGS): Handle VFP regs.
6900         (REG_ALLOC_ORDER): Add VFP regs.
6901         (enum reg_class): Add VFP_REGS.
6902         (REG_CLASS_NAMES): Ditto.
6903         (REG_CLASS_CONTENTS): Ditto.
6904         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
6905         (REG_CLASS_FROM_LETTER): Add 'w'.
6906         (EXTRA_CONSTRAINT_ARM): Add 'U'.
6907         (EXTRA_MEMORY_CONSTRAINT): Define.
6908         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
6909         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
6910         (REGISTER_MOVE_COST): Ditto.
6911         (PREDICATE_CODES): Add arm_general_register_operand,
6912         arm_float_compare_operand and vfp_compare_operand.
6913         * arm.md (various): Rename as above.
6914         (divsf3): Enable when TARGET_VFP.
6915         (divdf3): Ditto.
6916         (movdfcc): Ditto.
6917         (sqrtsf2): Ditto.
6918         (sqrtdf2): Ditto.
6919         (arm_movdi): Disable when TARGET_VFP.
6920         (arm_movsi_insn): Ditto.
6921         (movsi): Only split with general regs.
6922         (cmpsf): Use arm_float_compare_operand.
6923         (push_fp_multi): Restrict to TARGET_FPA.
6924         (vfp.md): Include.
6925         * vfp.md: New file.
6926         * fpa.md (various): Rename as above.
6927         * doc/md.texi: Document ARM w and U constraints.
6928
6929         2004-01-15  Paul Brook  <paul@codesourcery.com>
6930
6931         * config.gcc: Add with_fpu.  Allow with-float=softfp.
6932         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
6933         Break out of loop when we find a float-abi.  Fix typo.
6934         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
6935         Set -mfloat-abi=.
6936         * doc/install.texi: Document --with-fpu.
6937
6938         2003-01-14  Paul Brook  <paul@codesourcery.com>
6939
6940         * config.gcc (with_arch): Add armv6.
6941         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
6942         * config/arm/arm.c (arm_overrride_options): Ditto.
6943
6944         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
6945
6946         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
6947         (FL_ARCH6): Renamed from FL_ARCH6J.
6948         (arm_arch3m): Renamed from arm_fast_multiply.
6949         (arm_arch6): Renamed from arm_arch6j.
6950         * arm.h: Update all uses of above.
6951         * arm-cores.def: Likewise.
6952         * arm.md: Likewise.
6953
6954         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
6955         not arm6j.  Add entry for arch armv6.
6956
6957         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
6958
6959         * arm.c (arm_emit_extendsi): Delete.
6960         * arm-protos.h (arm_emit_extendsi): Delete.
6961         * arm.md (zero_extendhisi2): Also handle zero-extension of
6962         non-subregs.
6963         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
6964         (thumb_zero_extendhisi2): Only match if not v6.
6965         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
6966         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
6967         (thumb_extendqisi2): Likewise.
6968         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
6969         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
6970         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
6971         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
6972         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
6973         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
6974         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
6975         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
6976         (arm_extendqisi2addsi): Likewise.
6977
6978         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
6979
6980         Revert this change:
6981         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6982         + REG addressing modes.
6983
6984         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6985         + REG addressing modes.
6986
6987         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
6988
6989         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
6990         CONSTANT_P_RTX.
6991
6992         2003-30-12  Paul Brook  <paul@codesourcery.com>
6993
6994         * longlong.h: protect arm inlines with !defined (__thumb__)
6995
6996         2003-30-12  Paul Brook  <paul@codesourcery.com>
6997
6998         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
6999
7000         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
7001
7002         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
7003         change.
7004
7005         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
7006
7007         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
7008         to the virtual incoming args pointer for downward stacks.
7009
7010         2003-12-29  Paul Brook  <paul@codesourcery.com>
7011
7012         * config/arm/arm-cores.def: Add cost function.
7013         * config/arm/arm.c (arm_*_rtx_costs): New functions.
7014         (arm_rtx_costs): Remove
7015         (struct processors): Add rtx_costs field.
7016         (all_cores, all_architectures): Ditto.
7017         (arm_override_options): Set targetm.rtx_costs.
7018         (thumb_rtx_costs): New function.
7019         (arm_rtx_costs_1): Remove cases handled elsewhere.
7020         * config/arm/arm.h (processor_type): Add COSTS parameter.
7021
7022         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
7023
7024         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
7025         (arm926ejs.md): Include it.
7026         * config/arm/arm926ejs.md: New pipeline description.
7027
7028         2003-12-24  Paul Brook  <paul@codesourcery.com>
7029
7030         * config/arm/arm.c (arm_arch6j): New variable.
7031         (arm_override_options): Set it.
7032         (arm_emit_extendsi): New function.
7033         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
7034         * config/arm/arm.h (arm_arch6j): Declare.
7035         * config/arm/arm.md: Add sign/zero extend insns.
7036
7037         2003-12-23  Paul Brook  <paul@codesourcery.com>
7038
7039         * config/arm/arm.c (all_architectures): Add armv6.
7040         * doc/invoke.texi: Document it.
7041
7042         2003-12-19  Paul Brook  <paul@codesourcery.com>
7043
7044         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
7045         insn patterns to match.
7046         * config/arm/arm-generic.md: Ditto.
7047         * config/arm/cirrus.md: Ditto.
7048         * config/arm/fpa.md: Ditto.
7049         * config/amm/iwmmxt.md: Ditto.
7050         * config/arm/arm1026ejs.md: Ditto.
7051         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
7052         for 11_loadb.
7053
7054         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
7055
7056         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
7057         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
7058         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
7059         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
7060         arm_no_early_mul_dep): Correctly deal with conditional execution,
7061         parallels and single shift operations.
7062         (arm_no_early_alu_shift_value_dep): Define.
7063         * arm.md (attr type): Replace 'normal' with 'alu',
7064         'alu_shift' and 'alu_shift_reg'.
7065         (attr core_cycles): Adjust.
7066         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
7067         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
7068         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
7069         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
7070         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
7071         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
7072         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
7073         attribute appropriately.
7074         * config/arm/arm1026ejs.md (alu_op): Adjust.
7075         (alu_shift_op, alu_shift_reg_op): New.
7076         * config/arm/arm1136.md: Add better bypasses for early
7077         registers. Remove load[234] and store[234] bypasses.
7078         (11_alu_op): Adjust.
7079         (11_alu_shift_op, 11_alu_shift_reg_op): New.
7080
7081         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
7082
7083         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
7084         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
7085         * config/arm/arm.c (arm_no_early_store_addr_dep,
7086         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
7087         * config/arm/arm1026ejs.md: Add load-store bypass.
7088         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
7089         Add bypasses between instructions.
7090
7091         2003-12-10  Paul Brook  <paul@codesourcery.com>
7092
7093         * config/arm/arm.c (arm_fpu_model): New variable.
7094         (arm_fload_abi): New variable.
7095         (target_fpe_name): Rename from target_fp_name.
7096         (target_fpu_name): New variable.
7097         (arm_is_cirrus): Remove.
7098         (fpu_desc): New struct.
7099         (all_fpus): Define.
7100         (pf_model_for_fpu): Define.
7101         (all_loat_abis): Define.
7102         (arm_override_options): Set fp arch flags based on -mfpu=
7103         and -float-abi=.
7104         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
7105         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
7106         (*): Use new TARGET_* flags.
7107         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
7108         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
7109         (TARGET_SOFT_FLOAT): Ditto.
7110         (TARGET_SOFT_FLOAT_ABI): New.
7111         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
7112         TARGET_HARD_FLOAT.
7113         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
7114         (TARGET_OPTIONS): Add -mfpu=.
7115         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
7116         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
7117         (arm_pf_model): Define.
7118         (arm_float_abi_type): Define.
7119         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
7120         * config/arm/arm.md: Use new TARGET_* flags.
7121         * config/arm/cirrus.md: Ditto.
7122         * config/arm/fpa.md: Ditto.
7123         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
7124         * config/arm/semi.h (ASM_SPEC): Ditto.
7125         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
7126         (FPUTYPE_DEFAULT): Set to VFP.
7127         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
7128
7129         2003-11-22  Phil Edwards  <phil@codesourcery.com>
7130
7131         PR target/12476
7132         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
7133         'bx' instead of 'b' to avoid branch range restrictions.  Output
7134         the thunk immediately before the thunked-to function.
7135         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
7136         .thumb_func if a thunk is being generated.  Emit .code 16 along
7137         with .thumb_func if a thunk is not being generated.
7138
7139         2003-11-15  Nicolas Pitre <nico@cam.org>
7140
7141         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
7142         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
7143         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
7144         (lshrdi3_iwmmxt): Renamed from lshrdi3.
7145         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
7146
7147         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
7148             Ian Lance Taylor  <ian@wasabisystems.com>
7149
7150         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
7151         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
7152
7153         2003-11-05  Phil Edwards  <phil@codesourcery.com>
7154
7155         * config/arm/arm.md (insn):  Add new V6 instruction names.
7156         (generic_sched):  New attr.
7157         * config/arm/arm-generic.md:  Use generic_sched here.
7158         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
7159         stages of pipeline.  Adjust latency counts accordingly.
7160         * config/arm/arm1136jfs.md:  New file.
7161
7162         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
7163
7164         * config/arm/arm.h (processor_type): New enumeration type.
7165         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
7166         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
7167         (CPP_CPU_ARCH_SPEC): Likewise.
7168         * config/arm/arm.c (arm_tune): New variable.
7169         (all_cores): Use cores.def.
7170         (all_architectures): Add representative processor.
7171         (arm_override_options): Restructure way in which tuning
7172         information is deduced.
7173         * arm.md: Update "insn" and "type" attributes throughout.
7174         (insn): New attribute.
7175         (type): Compute "mult" from "insn" attribute.  Add load2,
7176         load3, load4 alternatives.
7177         (arm automaton): Move to arm-generic.md.
7178         * config/arm/arm-cores.def: New file.
7179         * config/arm/arm-generic.md: Likewise.
7180         * config/arm/arm1026ejs.md: Likewise.
7181
7182 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
7183
7184         * doc/invoke.texi (SPARC options): Remove -mflat and
7185         all -mxxx (xxx:chip) options.
7186         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
7187         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
7188         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
7189         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
7190         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
7191         * config/sparc/sparc.c: Likewise.
7192         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
7193         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
7194         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
7195         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
7196         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
7197         (sparc_flat_must_save_register_p): Likewise.
7198         (sparc_flat_compute_frame_size): Likewise.
7199         (sparc_flat_save_restore): Likewise.
7200         (sparc_flat_function_prologue): Likewise.
7201         (sparc_flat_function_epilogue): Likewise.
7202         (sparc_flat_epilogue_delay_slots): Likewise.
7203         (sparc_flat_eligible_for_epilogue_delay): Likewise.
7204         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
7205         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
7206         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
7207         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
7208         (CONDITIONAL_REGISTER_USAGE): Likewise.
7209         (FRAME_POINTER_REQUIRED): Likewise.
7210         (INITIAL_ELIMINATION_OFFSET): Likewise.
7211         (BASE_RETURN_VALUE_REG): Likewise.
7212         (BASE_OUTGOING_VALUE_REG): Likewise.
7213         (BASE_PASSING_ARG_REG): Likewise.
7214         (BASE_INCOMING_ARG_REG): Likewise.
7215         (INCOMING_REGNO): Likewise.
7216         (OUTGOING_REGNO): Likewise.
7217         (LOCAL_REGNO): Likewise.
7218         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
7219         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
7220         (EPILOGUE_USES): Likewise.
7221         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
7222         ("flat" attribute): Delete.
7223         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
7224         handling.
7225         (call followed by jump define_peephole's): Delete.
7226         (exception_receiver): Likewise.
7227         (builtin_setjmp_receiver): Likewise.
7228         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
7229
7230 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
7231
7232         PR c/11658
7233         PR c/13994
7234         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
7235         on langhooks.h.
7236         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
7237         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
7238         Include langhooks.h.  Replace c_common_truthvalue_conversion
7239         with the truthvalue_conversion language hook throughout.
7240         (expr_no_commas): Call default_conversion before save_expr
7241         for the first term of the production 'x ? : y'.
7242         * c-common.c (c_common_truthvalue_conversion): Remove
7243         obsolete block.  Invoke recursively the hook instead
7244         of this function.
7245         * c-convert.c (convert): handle ERROR_MARK_NODE.
7246         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
7247         returned by the truthvalue_conversion language hook.
7248         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
7249         c_objc_common_truthvalue_conversion.
7250         * c-objc-common.c (c_objc_common_truthvalue_conversion):
7251         New function.
7252         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
7253         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
7254         c_objc_common_truthvalue_conversion.
7255
7256 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7257
7258         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
7259         of gen_rtx.
7260         (LIBCALL_VALUE): Likewise.
7261         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
7262         gen_rtx_CC0 instead of gen_rtx.
7263         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
7264         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
7265         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
7266         gen_rtx.
7267         (m68hc11_emit_logical): Likewise.
7268
7269 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7270
7271         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
7272         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
7273         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
7274         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
7275         config/mips/mips.md, config/mmix/mmix.c,
7276         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
7277         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
7278         config/rs6000/altivec.md, config/s390/s390.c,
7279         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
7280         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
7281         Use const0_rtx instead of GEN_INT (0).  Do the same for other
7282         constants that are readily available.
7283
7284 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7285
7286         * doloop.c, optabs.c, regmove.c, sched-deps.c,
7287         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
7288         instead of GEN_INT (0).  Do the same for other constants that
7289         are readily available.
7290
7291 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7292
7293         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
7294         gen_rtx.
7295         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
7296         instead of gen_rtx.
7297         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
7298         gen_rtx.
7299         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
7300         gen_rtx_ASHIFT instead of gen_rtx.
7301         (udivmodqi4): Likewise.
7302
7303 2004-02-02  Richard Henderson  <rth@redhat.com>
7304
7305         PR target/13789
7306         * expr.c (store_expr): Use force_operand before emit_move_insn.
7307
7308 2004-02-02  Jeff Law  <law@redhat.com>
7309             Roger Sayle  <roger@eyesopen.com>
7310
7311         * tree.c (commutative_tree_code, associative_tree_code): New
7312         functions.
7313         (iterative_hash_expr): Use commutative_tree_code.
7314         * tree.h (commutative_tree_code, associative_tree_code): Declare.
7315         * fold-const.c (operand_equal_p): Use commutative_tree_code
7316         rather than inlining the commutativity check.
7317         (fold): Likewise.
7318
7319 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7320
7321         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
7322         * config/frv/frv-protos.h: Remove the prototype for
7323         frv_function_arg_keep_as_reference.
7324         * config/frv/frv.c (frv_function_arg_keep_as_reference):
7325         Remove.
7326         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
7327         * config/stormy16/stormy16.h: Remove the commented-out
7328         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
7329
7330 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
7331
7332         PR target/13914
7333         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
7334         for retaddr_column.
7335
7336 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7337
7338         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
7339         gen_rtx.
7340
7341 2004-02-02  Eric Christopher  <echristo@redhat.com>
7342             Zack Weinberg  <zack@codesourcery.com>
7343
7344         * c-opts.c (c_common_handle_option): Add -finput-charset.
7345         * c.opt: Ditto.
7346         * cppcharset.c (one_iso88591_to_utf8): Remove.
7347         (convert_iso88591_utf8): Ditto.
7348         (conversion_tab): Remove 8859-1 converter.
7349         (_cpp_input_to_utf8): Remove.
7350         (_cpp_init_iconv_buffer): Ditto.
7351         (_cpp_close_iconv_buffer): Ditto.
7352         (_cpp_convert_input): New function.
7353         (_cpp_default_encoding): Ditto.
7354         * cpphash.h: Add/remove prototypes for above.
7355         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
7356         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
7357         for narrow execution and input character sets.
7358         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
7359         * doc/cppopts.texi: Document -finput-charset.
7360
7361 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
7362
7363         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
7364         against FIRST_PSEUDO_REGISTER.
7365
7366 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7367
7368         * doc/invoke.texi (SPARC options): Further improve.
7369
7370 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7371
7372         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
7373         config/h8300/h8300.c, config/ip2k/ip2k.md,
7374         config/iq2000/iq2000.c, config/mips/mips.c,
7375         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
7376         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
7377         config/v850/v850.md: Fix indentation.
7378
7379 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7380
7381         * config/sparc/sparc.c (function_arg_slotno): Align TImode
7382         arguments on a 16-byte boundary in the parameter array if ARCH64.
7383         Split handling of TFmode.
7384
7385 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
7386
7387         * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
7388         Don't test CONSTANT_P (x).
7389         (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
7390         ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
7391         Fix misindentation.
7392
7393 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7394
7395         * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
7396
7397 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
7398
7399         * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
7400         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
7401         config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
7402         config/iq2000/iq2000.c, config/m32r/m32r.c,
7403         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
7404         config/mn10300/mn10300.c, config/rs6000/rs6000.c,
7405         config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
7406         config/stormy16/stormy16.c, config/v850/v850.md,
7407         config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
7408
7409 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
7410
7411         * config/mcore/mcore.c (block_move_sequence): Replace
7412         gen_rtx_CONST_INT with GEN_INT.
7413
7414 2004-02-02  Jan Hubicka  <jh@suse.cz>
7415
7416         * alias.c (record_set): Use hard_regno_nregs.
7417         * bt-load.c (find_btr_reference, note_btr_set): Likewise.
7418         * builtins.c (apply_args_size): Likewise.
7419         * caller-save.c (setup_save_areas, save_call_clobbered_regs,
7420         mark_set_regs, add_stored_regs, mark_referenced_regs,
7421         insert_restore, insert_save, insert_one_insn): Likewise.
7422         * cfgcleanup.c: Include regs.h
7423         (mark_effect, mentions_nonequal_regs): Likewise.
7424         * cfgrtl.c (mark_killed_regs): Likewise
7425         * combine.c (update_table_tick, record_value_for_reg,
7426         record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
7427         reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
7428         reg_bitfield_target_p, distribute_notes): Likewise.
7429         * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
7430         exp_equiv_p, cse_insn): Likewise.
7431         * cselib.c (cselib_lookup): Likewise.
7432         (cselib_invalidate_regno, cselib_record_set): Likewise.
7433         * df.c (df_ref_record): Likewise.
7434         * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
7435         Likewise.
7436         * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
7437         count_or_remove_death_notes_bb): Likewise.
7438         * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
7439         * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
7440         mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
7441         * integrate.c (mark_stores): Likewise.
7442         * jump.c (delete_prior_computation): Likewise.
7443         * lcm.c (reg_dies, reg_becomes_live): Likewise.
7444         * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
7445         * loop.c (LOOP_REGNO_NREGS): Likewise.
7446         * postreload.c (reload_combine, reload_combine_note_store,
7447         reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
7448         * ra-colorize.c (combine, color_usable_p, get_free_reg,
7449         calculate_dont_begin, calculate_dont_begin, colorize_one_web,
7450         try_recolor_web, insert_coalesced_conflicts, check_colors,
7451         break_precolored_alias): Likewise.
7452         * ra-debug.c: Include regs.h
7453         (ra_print_rtx_object): Likewise.
7454         * ra-rewrite (choose_spill_colors): Likewise.
7455         (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
7456         * ra.c (init_ra): Likewise.
7457         * recog.c (reg_fits_class_p, peep2_reg_dead_p,
7458         peep2_find_free_register): Likewise.
7459         * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
7460         * regclass.c (hard_regno_nregs): New array.
7461         (init_reg_modes_once): Initialize it.
7462         (choose_hard_reg_mode): Use it.
7463         (record_reg_classes): Likewise.
7464         * regmove.c (mark_flags_life_zones): Likewise.
7465         * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
7466         scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
7467         copy_value, maybe_mode_change, find_oldest_value_reg,
7468         copyprop_hardreg_forward_1):
7469         * regs.h (hard_regno_nregs): Declare.
7470         * realod.c (reload_inner_reg_of_subreg): Use it.
7471         (push_reload, combine_reloads, find_dummy_reload,
7472         hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
7473         refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
7474         reload_adjust_reg_for_mode): Likewise.
7475         * reload1.c (compute_use_by_pseudos, count_pseudo,
7476         count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
7477         spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
7478         clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
7479         allocate_reload_reg, choose_reload_regs, emit_reload_insns,
7480         delete_output_reload): Likewise.
7481         * resource.c (update_live_status, mark_referenced_resources,
7482         mark_set_resources, mark_target_live_regs): Likewise.
7483         * rtlanal.c:  Include regs.h
7484         (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
7485         dead_or_set_regno_p, find_regno_note, find_reg_fusage,
7486         subreg_regno_offset, subreg_offset_representable_p,
7487         hoist_test_store): Likewise.
7488         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
7489         * sched-rgn.c (check_live_1, update_live_1): Likewise.
7490         * stmt.c: Include regs.h
7491         (decl_conflicts_with_clobbers_p): Likewise.
7492         * varasm.c (make_decl_rtl): Likewise.
7493         * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
7494
7495 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
7496
7497         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
7498         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
7499         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
7500         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
7501         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
7502         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
7503         config/iq2000/iq2000.h, config/m32r/m32r.c,
7504         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
7505         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
7506         config/mcore/mcore.c, config/mcore/mcore.h,
7507         config/mcore/mcore.md, config/mips/mips.c,
7508         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
7509         config/rs6000/rs6000.c, config/s390/s390.c,
7510         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
7511         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
7512         "gen_rtx (FOO, " with "gen_rtx_FOO (".
7513
7514 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
7515
7516         * config/h8300/h8300.md (two peephole2's): New.
7517
7518 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
7519
7520         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
7521         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
7522         (ASM_CPU_SPEC): Likewise
7523         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
7524         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
7525
7526 2004-02-01  Roger Sayle  <roger@eyesopen.com>
7527
7528         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
7529         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
7530         (expand_builtin): Always call expand_builtin_pow.
7531
7532 2004-02-01  Roger Sayle  <roger@eyesopen.com>
7533
7534         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
7535         BUILT_IN_SIGNBITL): New GCC builtins.
7536         * builtins.c (expand_builtin_signbit): New function to RTL expand
7537         calls to signbit, signbitf and signbitl as inline intrinsics.
7538         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
7539         (fold_builtin_signbit): New function to perform constant folding
7540         of signbit, signbitf and signbitl.
7541         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
7542
7543         * doc/extend.texi: Document new signbit{,f,l} builtins.
7544
7545 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
7546
7547         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
7548
7549 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
7550
7551         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
7552         "mips_const_double_ok" and "simple_memory_operand", which were
7553         removed from the MIPS port with the mips-3_4-rewrite branch merge.
7554         * config/mips/mips.c (mips16_lay_out_constants): Update comment
7555         for removal of simple_memory_operand.
7556
7557 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7558
7559         * config/c4x/c4x.md: Use GEN_INT instead of
7560         gen_rtx (CONST_INT, ...).
7561
7562 2004-01-31  Richard Henderson  <rth@redhat.com>
7563
7564         * varasm.c (output_constant_pool): Don't zap the pool.
7565
7566 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7567
7568         * genrecog.c (decision_type): Add DT_const_int.
7569         (write_cond) [DT_const_int]: Print a comparison against small
7570         constant.
7571         (write_node): Simplify comparisons against small constants
7572         before printing tests.
7573
7574 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7575
7576         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
7577         instead of gen_rtx_CONST_INT.
7578
7579 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7580
7581         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
7582         instead of gen_rtx_CONST_INT.
7583
7584 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7585
7586         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
7587         hook_bool_CUMULATIVE_ARGS_false.
7588         * targhooks.c (default_strict_argument_naming): Rename to
7589         hook_bool_CUMULATIVE_ARGS_false.
7590         * targhooks.h: Update the prototype for
7591         default_strict_argument_naming.
7592
7593 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7594
7595         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
7596         * config/sh/sh.h: Likewise.
7597         * config/sh/sh.md: Likewise.
7598
7599 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
7600
7601         * doc/invoke.texi (SPARC options): Restructure and update.
7602
7603 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7604
7605         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
7606         STRICT_ARGUMENT_NAMING): Poison.
7607         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
7608         hook_bool_tree_false.
7609         * targhooks.c (default_promote_function_args): Remove.
7610         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
7611         Don't check incoming.
7612         (default_strict_argument_naming): Don't use
7613         STRICT_ARGUMENT_NAMING.
7614         * targhooks.h: Remove the prototype for
7615         default_promote_function_args.
7616
7617 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7618
7619         * config/i386/i386-protos.h: Remove the prototype for
7620         ix86_setup_incoming_varargs.
7621         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
7622         (ix86_setup_incoming_varargs): Make it static.
7623         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
7624
7625 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7626
7627         * alloc-pool.c: Fix comment typos.
7628         * builtin-types.def: Likewise.
7629         * builtins.def: Likewise.
7630         * c-pretty-print.c: Likewise.
7631         * df.h: Likewise.
7632         * reload1.c: Likewise.
7633
7634 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7635
7636         * doc/invoke.texi: Follow spelling conventions.
7637         * doc/tm.texi: Likewise.
7638
7639 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7640
7641         * doc/install.texi: Fix typos.
7642         * doc/invoke.texi: Likewise.
7643
7644 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
7645
7646         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
7647         registers as pointers.
7648         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
7649
7650 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
7651
7652         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
7653         and restore it to gen_lowpart_general on exit.
7654         (gen_lowpart_for_combine): Adjust all callers to go through
7655         gen_lowpart.
7656         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
7657         and restore it to gen_lowpart_general on exit.
7658         (gen_lowpart_if_possible): Adjust all callers to go through
7659         gen_lowpart.
7660         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
7661         (gen_lowpart): Declare as pointer to function, initialized to
7662         gen_lowpart_general.
7663         * rtl.h (gen_lowpart): Declare as pointer to function.
7664
7665 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7666
7667         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
7668         * calls.c: Likewise.
7669         * emit-rtl.c: Likewise.
7670         * function.c: Likewise.
7671         * reload1.c: Likewise.
7672         * config/i386/cygming.h: Likewise.
7673         * config/i386/i386.c: Likewise.
7674         * config/i386/winnt.c: Likewise.
7675
7676 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
7677
7678         PR bootstrap/9249
7679         * doc/install.texi: document --enable-__cxa_atexit option.
7680         * configure.ac: Disable __cxa_atexit if not supported.
7681         * configure: Regenerate.
7682
7683 2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
7684
7685         * ggc-zone.c (ggc_free): New function.
7686
7687 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7688
7689         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
7690         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
7691         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
7692         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
7693         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
7694         config/alpha/alpha.c, config/alpha/alpha.h,
7695         config/alpha/alpha.md, config/alpha/unicosmk.h,
7696         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
7697         config/c4x/c4x-protos.h, config/c4x/c4x.md,
7698         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
7699         config/frv/frvend.c, config/i386/cygming.h,
7700         config/i386/djgpp.h, config/i386/emmintrin.h,
7701         config/i386/gthr-win32.c, config/i386/i386-interix.h,
7702         config/i386/i386-protos.h, config/i386/openbsd.h,
7703         config/i386/winnt.c, config/i386/xm-mingw32.h,
7704         config/i386/xmmintrin.h, config/ia64/ia64.md,
7705         config/iq2000/iq2000.md, config/m32r/m32r.md,
7706         config/m68k/m68k.md, config/mcore/mcore-elf.h,
7707         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
7708         config/mips/iris5gas.h, config/mips/iris6.h,
7709         config/mips/iris6gas.h, config/mips/linux.h,
7710         config/mips/mips.md, config/mips/netbsd.h,
7711         config/mips/openbsd.h, config/mips/windiss.h,
7712         config/pa/fptr.c, config/rs6000/aix.h,
7713         config/rs6000/altivec.h, config/rs6000/darwin.h,
7714         config/rs6000/xcoff.h, config/s390/s390-protos.h,
7715         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
7716         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
7717         config/sparc/sol2.h: Update copyright.
7718
7719 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
7720
7721         * Makefile.in (abs_docdir, abs_srcdir): Define.
7722         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
7723
7724 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7725
7726         * genconfig.c (main): Have CC0_P check its operand even on a
7727         target without cc0.
7728
7729 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7730
7731         * config/alpha/alpha.c: Remove mentions of deprecates macros
7732         in comments, remove some target-independent comments about target
7733         macros, and/or add minimal function comments for target hook
7734         implementations.
7735         * config/avr/avr.c: Likewise.
7736         * config/ia64/ia64.h: Likewise.
7737         * config/ip2k/ip2k.c: Likewise.
7738         * config/iq2000/iq2000.c: Likewise.
7739         * config/m32r/m32r.h: Likewise.
7740         * config/m68hc11/m68hc11.c: Likewise.
7741         * config/mcore/mcore.c: Likewise.
7742         * config/mmix/mmix.c: Likewise.
7743         * config/mn10300/mn10300.c: Likewise.
7744         * config/pa/pa.c: Likewise.
7745         * config/pdp11/pdp11.c: Likewise.
7746         * config/rs6000/rs6000.h: Likewise.
7747         * config/sh/sh.c: Likewise.
7748         * config/sh/sh.h: Likewise.
7749         * config/sparc/sparc.c: Likewise.
7750         * config/sparc/sparc.h: Likewise.
7751         * config/stormy16/stormy16.c: Likewise.
7752         * config/xtensa/xtensa.c: Likewise.
7753
7754 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7755
7756         PR optimization/12147
7757         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
7758         RELOAD_FOR_OPADDR_ADDR.
7759         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
7760         might be reused as RELOAD_FOR_OPADDR_ADDR register.
7761
7762 2004-01-30  Jan Hubicka  <jh@suse.cz>
7763
7764         * reload.c (get_secondary_mem): Fix updating of
7765         secondary_memlocs_elim_used.
7766
7767 2004-01-30  Richard Henderson  <rth@redhat.com>
7768
7769         * varasm.c (struct rtx_const, struct pool_constant): Remove.
7770         (MAX_RTX_HASH_TABLE): Remove.
7771         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
7772         (first_pool, last_pool, pool_offset): Remove.
7773         (struct rtx_constant_pool): Split out from ...
7774         (struct varasm_status): ... here.  Reference one via pointer.
7775         (struct constant_descriptor_rtx): Merge struct pool_constant.
7776         (SYMHASH): Remove.
7777         (decode_rtx_const): Remove.
7778         (const_hash_rtx, compare_constant_rtx): Remove.
7779         (record_constant_rtx): Remove.
7780         (const_desc_rtx_hash, const_desc_rtx_eq): New.
7781         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
7782         (const_rtx_hash_1, const_rtx_hash): New.
7783         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
7784         (simplify_subtraction): Use simplify_rtx.
7785         (force_const_mem): Rewrite to use new data structures.
7786         (find_pool_constant): Likewise.
7787         (get_pool_constant, get_pool_constant_mark,
7788         get_pool_constant_for_function, get_pool_mode,
7789         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
7790         (output_constant_pool_2): Split out from output_constant_pool.
7791         (output_constant_pool_1): Likewise.  Use new pool datastructures.
7792         (output_constant_pool): Zap entire pool datastructure.
7793         (mark_constant): Use new pool datastructures.
7794         (mark_constants): Use for_each_rtx.
7795         (mark_constant_pool): Use new pool datastructures.
7796
7797 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
7798
7799         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
7800         Copy operands[1] to pseudo for simplify_gen_subreg.
7801
7802 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7803
7804         * gcse.c (bypass_block): Fix a typo in the previous check-in
7805         to the file.
7806
7807 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
7808
7809         * toplev.c: Include alloc-pool.h.
7810         * Makefile.in (toplev.c): Update dependencies.
7811
7812 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7813
7814         * combine.c (simplify_shift_const, case XOR): Be careful when
7815         commuting XOR with ASHIFTRT.
7816
7817 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7818             Eric Botcazou  <ebotcazou@libertysurf.fr>
7819
7820         * config/sparc/sparc-protos.h: Remove the prototype for
7821         sparc_builtin_saveregs.
7822         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7823         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7824         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7825         (TARGET_STRUCT_VALUE_RTX): Likewise.
7826         (TARGET_RETURN_IN_MEMORY): Likewise.
7827         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7828         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7829         (sparc_builtin_saveregs): Make it static.
7830         (sparc_promote_prototypes): New.
7831         (sparc_struct_value_rtx): Likewise.
7832         (sparc_return_in_memory): Likewise.
7833         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
7834         (PROMOTE_FUNCTION_RETURN): Likewise.
7835         (RETURN_IN_MEMORY): Likewise.
7836         (STRUCT_VALUE): Likewise.
7837         (STRUCT_VALUE_INCOMING): Likewise.
7838         (EXPAND_BUILTIN_SAVEREGS): Likewise.
7839         (STRICT_ARGUMENT_NAMING): Likewise.
7840         (PROMOTE_PROTOTYPES): Likewise.
7841
7842         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
7843
7844 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7845
7846         PR c/12818
7847         * varasm.c (const_hash_1) <STRING_CST>: Use the
7848         address to compute the hash value if flag_writable_strings.
7849         (compare_constant) <STRING_CST>: Compare the addresses
7850         if flag_writable_strings.
7851         (build_constant_desc): Do not copy the expression for a
7852         STRING_CST if flag_writable_strings.
7853
7854 2004-01-30  Jan Hubicka  <jh@suse.cz>
7855
7856         * alloc-pool.c: Include hashtab.h
7857         (alloc_pool_descriptor): New structure
7858         (alloc_pool_hash): New global variable.
7859         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
7860         (create_alloc_pool): Update statistics.
7861         (free_alloc_pool): Likewise.
7862         (pool_alloc): Likewise.
7863         (output_info): New structure
7864         (print_statistics, dump_alloc_pool_statistics): New function.
7865         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
7866         (dump_alloc_pool_statistics): Declare.
7867         * toplev.c (finalize):  Dump statistics.
7868
7869         * reload.c (secondary_memlocs_elim_used): New static variable.
7870         (get_secondary_mem): Update it.
7871         (find_reloads): Use it.
7872
7873 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
7874
7875         * toplev.c: Fix broken checkin of 2003-12-30, again.
7876
7877 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7878
7879         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
7880         s390*-*-* targets by specifying a 'nop' insn.
7881         * configure: Regenerate.
7882
7883 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7884
7885         PR target/11475
7886         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
7887
7888 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
7889
7890         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
7891         of addr when creating MEM copy.
7892
7893 2004-01-29  Devang Patel  <dpatel@apple.com>
7894
7895         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
7896
7897 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
7898
7899         PR inline-asm/6162
7900         * reload.c (find_reloads): Only support one pair of commutative
7901         operands.
7902
7903 2004-01-29  Roger Sayle  <roger@eyesopen.com>
7904
7905         PR java/13824
7906         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
7907         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
7908         recursion.
7909
7910 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
7911
7912         * config/frv/frv.c: Don't mention deprecated macros in
7913         comments.  Remove some target-independent comments about
7914         target macros.
7915         * config/frv/frv.h: Likewise.
7916
7917 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7918
7919         * cfghooks.c (split_block): Set probability and count of the
7920         new edge.
7921
7922 2005-01-29  Josef Zlomek  <zlomekj@suse.cz>
7923
7924         * dwarf2out.c (struct die_struct): Added field decl_id.
7925         (decl_die_table): Changed to hash table.
7926         (decl_die_table_allocated): Deleted.
7927         (decl_die_table_in_use): Deleted.
7928         (DECL_DIE_TABLE_INCREMENT): Deleted.
7929         (decl_die_table_hash): New function.
7930         (decl_die_table_eq): New function.
7931         (lookup_decl_die): Lookup in a hash table.
7932         (equate_decl_number_to_die): Insert into a hash table.
7933         (dwarf2out_init): Init hash table decl_die_table.
7934
7935 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
7936
7937         PR optimization/13424
7938         * expr.c (store_constructor): Revert 2003-12-03 change.
7939
7940         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
7941         expected before returning early.  Avoid sharing RTL if they
7942         need to be changed.
7943
7944         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
7945         handling so that memory attributes are preserved.  Don't call
7946         ix86_set_move_mem_attrs.
7947         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
7948         (ix86_expand_clrstr): Rename src argument to
7949         dst.  Rework rep_stos and strset handling so that memory attributes
7950         are preserved.
7951         (ix86_expand_strlen): Pass src argument to
7952         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
7953         memory attributes are preserved.
7954         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
7955         change_address instead of gen_rtx_MEM.
7956         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
7957         expanders.
7958         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
7959         strmovqi, strmovqi_rex64): Remove.
7960         (rep_mov*, strmov*): Prefix insn names with *.
7961         (strset, strset_singleop, rep_stos): New expanders.
7962         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
7963         strsetqi, strsetqi_rex64): Remove.
7964         (rep_stos*, strset*): Prefix insn names with *.
7965         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
7966         to SImode.
7967         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
7968         are preserved.
7969         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
7970         Prefix insn names with *.
7971         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
7972         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
7973         (strlenqi_1): New expander.
7974         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
7975
7976 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7977
7978         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
7979         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
7980         verify_flow_info): Declaration removed.
7981         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
7982         (debug_bb, debug_bb_n): Add argument to dump_bb call.
7983         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
7984         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
7985         instead of delete_block.
7986         * cfghooks.c: Include timevar.h and toplev.h.
7987         (cfg_hooks): Define here.
7988         (verify_flow_info, dump_bb): Moved from cfg.c.
7989         (redirect_edge_and_branch, redirect_edge_and_branch_force,
7990         split_block, split_block_after_labels, move_block_after,
7991         delete_basic_block, split_edge, create_basic_block,
7992         create_empty_bb, can_merge_blocks_p, merge_blocks,
7993         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7994         New functions.
7995         * cfghooks.h (struct cfg_hooks): Added fields name,
7996         make_forwarder_block, tidy_fallthru_edge and
7997         move_block_after. Changed type of verify_flow_info, dump_bb,
7998         split_block fields. Renamed cfgh_split_edge and delete_block
7999         fields.
8000         (redirect_edge_and_branch, redirect_edge_and_branch_force,
8001         split_block, delete_block, split_edge, create_basic_block,
8002         can_merge_blocks_p, merge_blocks): Macros removed.
8003         (cfg_hooks): Do not export.
8004         (verify_flow_info, dump_bb, redirect_edge_and_branch,
8005         redirect_edge_and_branch_force, split_block, split_block_after_labels,
8006         move_block_after, delete_basic_block, split_edge, create_basic_block,
8007         create_empty_bb, can_merge_blocks_p, merge_blocks,
8008         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
8009         Declare.
8010         (cfg_layout_rtl_cfg_hooks): Declare.
8011         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
8012         New functions.
8013         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
8014         (redirect_edge_with_latch_update): Removed.
8015         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
8016         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
8017         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
8018         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
8019         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
8020         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
8021         cfghooks.c.
8022         (rtl_create_basic_block): Coding style fix.
8023         (rtl_tidy_fallthru_edge, rtl_move_block_after,
8024         rtl_make_forwarder_block): New functions.
8025         (update_cfg_after_block_merging): Removed.
8026         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
8027         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
8028         to dump_bb.
8029         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
8030         find_if_case_2): Don't update dominators.
8031         * timevar.def (TV_CFG_VERIFY): New.
8032         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
8033         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
8034         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
8035         (remove_bbs): Don't call remove_bbs.
8036         (create_preheader): Use make_forwarder_block.
8037         (mfb_keep_just, mfb_update_loops): New static functions.
8038
8039 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
8040
8041         * config/avr/avr.h: Remove target-independent comments about
8042         target macros.
8043
8044 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
8045
8046         * timevar.c (timevar_print): Mention when checking is enabled.
8047
8048 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
8049
8050         * c-lex.c (c_lex): Rename to...
8051         (c_lex_with_flags): Add new parameter to get CPP flags.
8052         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
8053         * c-pragma.h (c_lex_with_flags): Declare.
8054
8055 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8056
8057         * config/mcore/mcore.c (mcore_external_libcall): Add a
8058         comment.
8059         (mcore_return_in_memory): Likewise.
8060
8061 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8062
8063         * config/mcore/mcore-protos.h: Remove the prototype for
8064         mcore_setup_incoming_varargs.
8065         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
8066         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
8067         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8068         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8069         (TARGET_STRUCT_VALUE_RTX): Likewise.
8070         (TARGET_RETURN_IN_MEMORY): Likewise.
8071         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8072         (mcore_setup_incoming_varargs): Make it static.  Receive the
8073         first argument by reference.  Add argument second_time.
8074         (mcore_external_libcall): New.
8075         (mcore_return_in_memory): Likewise.
8076         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
8077         (PROMOTE_FUNCTION_RETURN): Likewise.
8078         (STRUCT_VALUE): Likewise.
8079         (RETURN_IN_MEMORY): Likewise.
8080         (SETUP_INCOMING_VARARGS): Likewise.
8081         (PROMOTE_PROTOTYPES): Likewise.
8082         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8083
8084 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8085
8086         * config/m32r/m32r-protos.h: Remove the prototype for
8087         m32r_setup_incoming_varargs.
8088         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
8089         (TARGET_STRUCT_VALUE_RTX): Likewise.
8090         (TARGET_RETURN_IN_MEMORY): Likewise.
8091         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8092         (m32r_return_in_memory): New.
8093         (m32r_setup_incoming_varargs): Make it static.
8094         * config/m32r/m32r.h: Remove #undef of
8095         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
8096         definitions of PROMOTE_FUNCTION_ARGS and
8097         PROMOTE_FUNCTION_RETURN.
8098         (PROMOTE_PROTOTYPES): Remove.
8099         (RETURN_IN_MEMORY): Likewise.
8100         (STRUCT_VALUE): Likewise.
8101
8102 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8103
8104         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
8105         (TARGET_STRUCT_VALUE_RTX): Likewise.
8106         (m68k_struct_value_rtx): Likewise.
8107         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
8108         STRUCT_VALUE_REGNUM.
8109         (PROMOTE_PROTOTYPES): Remove.
8110         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
8111         STRUCT_VALUE_REGNUM.
8112         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
8113         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
8114
8115 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8116
8117         * config/stormy16/stormy16.c
8118         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
8119         TARGET_BUILD_BUILTIN_VA_LIST.
8120
8121 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8122
8123         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
8124         (TARGET_STRUCT_VALUE_RTX): Likewise.
8125         (TARGET_RETURN_IN_MEMORY): Likewise.
8126         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8127         (v850_return_in_memory): Likewise.
8128         (v850_setup_incoming_varargs): Likewise.
8129         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
8130         (SETUP_INCOMING_VARARGS): Likewise.
8131         (RETURN_IN_MEMORY): Likewise.
8132         (STRUCT_VALUE): Likewise.
8133
8134 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8135
8136         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
8137         (fr30_setup_incoming_varargs): Don't use
8138         STRICT_ARGUMENT_NAMING.
8139         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
8140         (STRICT_ARGUMENT_NAMING): Likewise.
8141
8142 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8143
8144         * config/frv/frv-protos.h: Remove the prototype for
8145         frv_expand_builtin_saveregs.
8146         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
8147         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8148         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
8149         STRUCT_VALUE_REGNUM.
8150         (frv_expand_builtin_saveregs): Make it static.
8151         (frv_struct_value_rtx): New.
8152         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
8153
8154 2004-01-29  Jan Hubicka  <jh@suse.cz>
8155
8156         PR c++/12850
8157         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
8158         initial pointers.
8159         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
8160         for functions that will be only inlined.
8161         (cgraph_mark_function_to_output): Likewise.
8162         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
8163         do not clear function body.
8164         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
8165         (tree_rest_of_compilation): Reorganize the logic releasing function
8166         body to use callgraph datastructure.
8167
8168 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8169
8170         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
8171         to register_operand.
8172
8173 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
8174
8175         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
8176         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
8177         match_operand expressions so that all match_dups appear
8178         lexically after their corresponding match_operands.
8179
8180 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8181
8182         * config/h8300/h8300.c (WORD_REG_USED): Use
8183         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
8184         (compute_saved_regs): Likewise.
8185         (h8300_expand_prologue): Likewise.  Allocate locals after
8186         saving registers.
8187         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
8188         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
8189         registers.
8190         (h8300_initial_elimination_offset): Adjust for the new frame
8191         layout, which swaps flips the order of locals and saved
8192         registers.
8193         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
8194         (HARD_FRAME_POINTER_REGNUM): New.
8195         (ELIMINABLE_REGS): Add an elimination rule from
8196         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
8197         (REGISTER_NAMES): Add fp.
8198         * config/h8300/h8300.md (FP_REG): Change to 11.
8199         (HFP_REG): New.
8200
8201 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8202
8203         * genrecog.c (write_node): Remove a useless local variable.
8204
8205 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
8206
8207         * Makefile.in (options.c options.h): Use stamp file s-options to
8208         avoid unnecessary rebuilds.
8209         (options.o): New target listing dependencies.
8210         (gtyp-gen.h): Use stamp file s-gtyp-gen.
8211         (STAGESTUFF): Add s-gtyp-gen.
8212
8213 2004-01-28  Richard Henderson  <rth@redhat.com>
8214
8215         * ggc.h (ggc_free): Declare.
8216         * ggc-common.c (ggc_realloc): Use it.
8217         * ggc-page.c: Remove lots of inline markers.
8218         (globals): Add free_object_list.
8219         (ggc_alloc): Tidy.
8220         (ggc_free, validate_free_objects): New.
8221         (poison_pages): Provide default.
8222         (ggc_collect): Call validate_free_objects; emit markers to
8223         the debug file.
8224
8225 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
8226             Jim Wilson  <wilson@specifixinc.com>
8227
8228         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
8229         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
8230         scratch pointer.
8231         (ia64_secondary_reload_class): Delete case GR_REGS.
8232         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
8233         Do not allocate a scratch register.
8234         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
8235
8236 2004-01-28  Jan Hubicka  <jh@suse.cz>
8237
8238         * gcse.c (bypass_block): Prevent edges to be unified when we are
8239         about to emit compenstation code.
8240
8241 2004-01-28  Nick Clifton  <nickc@redhat.com>
8242
8243         * config/arm/arm.c (arm_expand_builtin): Force second argument of
8244         the setcwx insn into a register.
8245
8246 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
8247
8248         * config/fp-bit.c (pack_d): When using paired doubles to implement
8249         a long double, round the high part separately.
8250         (unpack_d): Fix the case in which the high part is a power of two
8251         and the low part is a nonzero value of the opposite sign.
8252
8253 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8254
8255         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
8256         (TARGET_STRUCT_VALUE_RTX): Likewise.
8257         (c4x_external_libcall): Likewise.
8258         (c4x_struct_value_rtx): Likewise.
8259         * config/c4x/c4x.h: Remove.
8260         (STRUCT_VALUE_REGNUM): Likewise.
8261         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8262
8263 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
8264
8265         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
8266         (TARGET_STRUCT_VALUE_RTX): Likewise.
8267         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
8268         (STRUCT_VALUE): Likewise.
8269         (PROMOTE_PROTOTYPES): Likewise.
8270
8271 2004-01-27  Roger Sayle  <roger@eyesopen.com>
8272
8273         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
8274         CONST_INT before using INTVAL.
8275
8276 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
8277
8278         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
8279         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
8280         frame if !TARGET_BACKCHAIN.
8281         * config/s390/s390.md ("allocate_stack"): Use pattern only if
8282         TARGET_BACKCHAIN.
8283         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
8284
8285 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
8286
8287         * ia64.c (ia64_function_arg): When placing HFAs in integer
8288         registers, do not special case the mode used for complex
8289         types.  Do not advance int_regs until the current register
8290         is full.
8291
8292 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
8293
8294         PR target/7297
8295         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
8296
8297 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
8298
8299         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
8300         slow, unaligned loads and stores while debugging.  Fix formatting.
8301
8302 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
8303
8304         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
8305         of computing wmode.
8306         (restore_stack_nonlocal): Same.
8307
8308 2004-01-27  Devang Patel <dpatel@apple.com>
8309
8310         * Makefile.in (dwarf2out.o): Depend on input.h
8311         * dbxout.c (dbx_debug_hooks): Add new empty hook for
8312         imported_module_or_decl.
8313         (xcoff_debug_hooks): Same.
8314         * sdbout.c (sdb_debug_hooks): Same.
8315         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
8316         * debug.c (do_nothing_debug_hooks): Same.
8317         (debug_nothing_tree_tree): New function.
8318         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
8319         * dwarf2out.c: Include input.h.
8320         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
8321         (remove_child_TAG): New function.
8322         (dwarf_tag_name): Handle DW_TAG_imported_module.
8323         (gen_subprogram_die): Equate decl number to declaration die. Do not
8324         remove all children dies while reusing declaration die for definition.
8325         Instead, selectively remove only formal parameters.
8326         (gen_variable_die): Equate variable decl to declaration die.
8327         (gen_field_die): Equate field decl to line number.
8328         (force_namespace_die): Replace it with ...
8329         (force_decl_die): ... this.
8330         (force_type_die): New function.
8331         (setup_namespace_context): Replace use of force_namespace_die() with
8332         force_decl_die().
8333         (gen_namespace_die): Same.
8334         (dwarf2out_imported_module_or_decl): New function.
8335
8336 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
8337
8338         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
8339         on CQImode and CHImode incoming arguments in register a7.
8340         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
8341         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
8342         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
8343         xtensa_copy_incoming_a7 before reload.
8344
8345 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
8346
8347         * coverage.c (get_coverage_counts): Give a different message
8348         if flag_guess_branch_prob is set.
8349         * predict.c (counts_to_freqs): Return an int.
8350         (estimate_bb_frequencies): If counts_to_freqs returns zero,
8351         calculate estimates.
8352
8353 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
8354
8355         * config/iq2000/iq2000-protos.h: Remove the prototype for
8356         iq2000_setup_incoming_varargs.
8357         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8358         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8359         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8360         (TARGET_STRUCT_VALUE_RTX): Likewise.
8361         (TARGET_RETURN_IN_MEMORY): Likewise.
8362         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8363         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8364         (iq2000_return_in_memory): Likewise.
8365         (iq2000_setup_incoming_varargs): Make it static.  Receive the
8366         first argument by reference.
8367         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
8368         (PROMOTE_FUNCTION_RETURN): Likewise.
8369         (PROMOTE_PROTOTYPES): Likewise.
8370         (RETURN_IN_MEMORY): Likewise.
8371         (STRUCT_VALUE): Likewise.
8372         (SETUP_INCOMING_VARARGS): Likewise.
8373         (STRICT_ARGUMENT_NAMING): Likewise.
8374
8375 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
8376
8377         * fixinc/fixinc.c (test_test): Initialize res.
8378         (start_flexer): Initialize pz_cmd_save.
8379
8380 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
8381
8382         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
8383         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
8384
8385 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
8386
8387         PR 7198
8388         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
8389         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
8390         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
8391         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
8392         Possibly rename pattern for consistency.
8393         Remove ??? comments suggesting that this be done.
8394         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
8395         New patterns.
8396         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
8397         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
8398         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
8399         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
8400         Update to match.
8401
8402 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
8403
8404         * config/arm/arm.c (output_return_instruction): Only restore IP
8405         into SP if frame_pointer_needed.
8406
8407 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
8408
8409         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
8410         for SCmode and DCmode if ARCH32.
8411         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
8412         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
8413         if ARCH32.
8414         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
8415         if ARCH32.
8416         (BASE_OUTGOING_VALUE_REG): Likewise.
8417
8418 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
8419
8420         PR target/10904
8421         PR target/13058
8422         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
8423         Forbid mode changes from SImode for lower FP regs if ARCH64.
8424
8425 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
8426
8427         * Makefile.in (bt-load.o): Depend on except.h.
8428         * bt-load.c (except.h): #include.
8429         (compute_defs_uses_and_gen): If insn at end of BB can throw
8430         within this function, consider registers used by it unavailable for
8431         btr migration.
8432         (move_btr_def): If insn at end of BB can throw, insert before rather
8433         than after.
8434
8435         * flags.h (flag_btr_bb_exclusive): Declare.
8436         * toplev.c (flag_btr_bb_exclusive): New variable.
8437         (f_options): Add btr-bb-exclusive.
8438         * bt-load.c (augment_live_range): Restore old behaviour if
8439         flag_btr_bb_exclusive is set.
8440         * common.opt: Add entry for -fbtr-bb-exclusive.
8441         * opts.c (common_handle_options): Same.
8442         * doc/invoke.texi: Document -fbtr-bb-exclusive.
8443
8444         * bt-load.c (btrs_live_at_end): New variable.
8445         (compute_defs_uses_and_gen): Compute its pointed-to array.
8446         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
8447         (augment_live_range): When augmenting with a new dominator,
8448         use only its btrs_live_at_end set, but also add in the full set
8449         of the old dominator.
8450         (btr_def_live_range): Use btrs_live_at_end.
8451         (move_btr_def): Set other_btr_uses_before_def, and move new set
8452         to the end of the basic block, if appropriate.
8453         (migrate_btr_defs): Allocate and free btrs_live_at_end.
8454
8455         * bt-load.c (basic_block_freq): Remove outdated comment.
8456
8457 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
8458
8459         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
8460         (PREDICATE_CODES): Remove duplicate.
8461         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
8462         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
8463         (MASK_PROFILE_KERNEL): Adjust define.
8464
8465 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
8466
8467         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
8468         of long string literals from 32 bytes to sizeof (void *) when !-Os
8469         and to 1 with -Os.
8470
8471 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8472
8473         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
8474         constant addresses in the normal mode.
8475
8476 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8477
8478         * system.h (CHAR_BITFIELD): Delete.
8479         (BOOL_BITFIELD): New.
8480         * c-decl.c (c_scope): Use BOOL_BITFIELD.
8481         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
8482
8483 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8484
8485         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8486         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8487         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8488         (TARGET_STRUCT_VALUE_RTX): Likewise.
8489         (TARGET_RETURN_IN_MEMORY): Likewise.
8490         (arc_return_in_memory): Likewise.
8491         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
8492         (PROMOTE_FUNCTION_RETURN): Likewise.
8493         (RETURN_IN_MEMORY): Likewise.
8494         (STRUCT_VALUE): Likewise.
8495
8496 2004-01-26  Richard Henderson  <rth@redhat.com>
8497
8498         * c-parse.in (extension): Use itype.
8499         (SAVE_EXT_FLAGS): Don't allocate a tree.
8500         (RESTORE_EXT_FLAGS): Don't read a tree.
8501
8502 2004-01-26  Jan Hubicka  <jh@suse.cz>
8503
8504         * cselib.c (discard_useless_values):  Clear out value pointer pointing
8505         to datastructure to be recycled.
8506
8507 2004-01-25  Jan Hubicka  <jh@suse.cz>
8508
8509         * genextract.c (main): Do not output the memset when not checking.
8510
8511 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8512
8513         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
8514         switch statement instead of a chain of if statements.
8515
8516 2004-01-26  Jeff Law  <law@redhat.com>
8517
8518         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
8519         acute accents for Petur Runolfsson's entry.
8520
8521 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8522
8523         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
8524         (TARGET_RETURN_IN_MEMORY): Likewise.
8525         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
8526         (RETURN_IN_MEMORY): Likewise.
8527
8528 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8529
8530          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
8531          unaligned load/store into smaller loads and stores.
8532
8533 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8534
8535         * function.c (assign_parms): Do not assign
8536         long long argument to memory in prologue if
8537         is it loaded into register.
8538
8539 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8540
8541          PR middle-end/13779
8542          * expr.c (emit_group_load): split constant
8543          correctly into register components of PARALLEL insn.
8544
8545 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
8546
8547         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
8548         Use adjust_address_nv directly with appropriate mode.
8549         (restore_stack_nonlocal): Ditto.
8550
8551 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8552
8553         * config/xtensa/xtensa-protos.h: Remove the prototype for
8554         xtensa_builtin_saveregs.
8555         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8556         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8557         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8558         (TARGET_STRUCT_VALUE_RTX): Likewise.
8559         (TARGET_RETURN_IN_MEMORY): Likewise.
8560         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8561         (xtensa_builtin_saveregs): Make it static.
8562         (xtensa_return_in_memory): New.
8563         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
8564         (PROMOTE_FUNCTION_RETURN): Likewise.
8565         (PROMOTE_PROTOTYPES): Likewise.
8566         (STRUCT_VALUE): Likewise.
8567         (RETURN_IN_MEMORY): Likewise.
8568         (EXPAND_BUILTIN_SAVEREGS): Likewise.
8569
8570 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8571
8572         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
8573         (arm_setup_incoming_varargs): Likewise.
8574         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
8575
8576 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8577
8578         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
8579         (cris_setup_incoming_varargs): Likewise.
8580         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
8581
8582 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8583
8584         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
8585         (ns32k_struct_value_rtx): Likewise.
8586         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
8587         NS32K_STRUCT_VALUE_REGNUM.
8588
8589 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8590
8591         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8592         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8593         (TARGET_STRUCT_VALUE_RTX): Likewise.
8594         (arm_struct_value_rtx): Likewise.
8595         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
8596         (STRUCT_VALUE): Likewise.
8597         (STRUCT_VALUE_REGNUM): Likewise.
8598         (PROMOTE_PROTOTYPES): Likewise.
8599
8600 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
8601
8602         * config/ia64/ia64-protos.h: Remove the prototype for
8603         ia64_setup_incoming_varargs and ia64_return_in_memory.
8604         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
8605         (TARGET_RETURN_IN_MEMORY): Likewise.
8606         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8607         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8608         (ia64_setup_incoming_varargs): Adjust the arguments to meet
8609         the requirement of TARGET_SETUP_INCOMING_VARARGS.
8610         (ia64_return_in_memory): Make it static.  Change the return
8611         type to bool from int.  Add an argument.
8612         (ia64_struct_value_rtx): New.
8613         * config/ia64/ia64.h: Remove commented-out definitions of
8614         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
8615         PROMOTE_PROTOTYPES.
8616         (RETURN_IN_MEMORY): Remove.
8617         (STRUCT_VALUE_REGNUM): Likewise.
8618         (STRICT_ARGUMENT_NAMING): Likewise.
8619
8620 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
8621
8622         PR target/13666
8623         * config/sparc/sparc.c (function_arg_union_value): New function.
8624         (function_arg): Use it to deal with unions.
8625         (function_value): Likewise.  Define 'regbase' only for ARCH64.
8626         Replace a conditional statement by a simpler one.
8627
8628 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
8629
8630         * config/mips/mips.c (mips16_optimize_gp): Delete.
8631         (mips_reorg): Don't call it.
8632
8633 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8634
8635         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
8636         (floatunsqihf2): Remove operand 6.
8637         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
8638         fix patterns.
8639         (ldi_conditional, ldf_conditional): Validate operands.
8640
8641 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8642
8643         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
8644         (HAVE_GAS_HIDDEN): Undefine as interim measure.
8645
8646 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8647
8648         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
8649         memory references if TARGET_EXPOSE_LDP nonzero.
8650
8651 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8652
8653         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
8654
8655 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8656
8657         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
8658         invalid operand combinations.
8659
8660 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8661
8662         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
8663         c4x_legitimate_address_p.  Fix post_modify check.
8664
8665         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
8666         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
8667
8668 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8669
8670         * config/pa/pa-protos.h: Remove the prototype for
8671         hppa_builtin_saveregs.  Add a prototype for
8672         pa_return_in_memory.
8673         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
8674         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8675         (TARGET_STRUCT_VALUE_RTX): Likewise.
8676         (TARGET_RETURN_IN_MEMORY): Likewise.
8677         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8678         (pa_struct_value_rtx): Likewise.
8679         (pa_return_in_memory): Likewise.
8680         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
8681         PA_STRUCT_VALUE_REGNUM.
8682         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
8683         (EXPAND_BUILTIN_SAVEREGS): Remove.
8684         (PROMOTE_PROTOTYPES): Likewise.
8685         (PROMOTE_FUNCTION_RETURN): Likewise.
8686
8687 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8688
8689         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
8690         (TARGET_STRUCT_VALUE_RTX): Likewise.
8691         (vax_struct_value_rtx): Likewise.
8692         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
8693         VAX_STRUCT_VALUE_REGNUM.
8694         (PROMOTE_PROTOTYPES): Remove.
8695
8696 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8697
8698         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
8699
8700 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
8701
8702         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
8703         and MIPS64 have HI/LO interlocks.  Update comment.
8704
8705 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8706
8707         * config/stormy16/stormy16-protos.h: Remove the prototype for
8708         xstormy16_setup_incoming_varargs.
8709         * config/stormy16/stormy16.c
8710         (xstormy16_setup_incoming_varargs): Remove.
8711         (xstormy16_return_in_memory): New.
8712         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
8713         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8714         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8715         (TARGET_STRUCT_VALUE_RTX): Likewise.
8716         (TARGET_RETURN_IN_MEMORY): Likewise.
8717         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
8718         (PROMOTE_FUNCTION_RETURN): Likewise
8719         (PROMOTE_PROTOTYPES): Likewise
8720         (RETURN_IN_MEMORY): Likewise
8721         (STRUCT_VALUE): Likewise
8722         (SETUP_INCOMING_VARARGS): Likewise
8723
8724 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
8725
8726         * config/mips/mips.c (mips_offset_within_object_p): New function.
8727         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
8728         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
8729         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
8730
8731 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8732
8733         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
8734         (PROMOTE_FUNCTION_RETURN): Likewise.
8735
8736 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8737
8738         * config/mn10300/mn10300-protos.h: Remove the prototype for
8739         mn10300_builtin_saveregs.
8740         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
8741         (TARGET_STRUCT_VALUE_RTX): Likewise.
8742         (TARGET_RETURN_IN_MEMORY): Likewise.
8743         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8744         (mn10300_return_in_memory): Likewise.
8745         (mn10300_builtin_saveregs): Make it static.
8746         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
8747         (RETURN_IN_MEMORY): Likewise.
8748         (STRUCT_VALUE): Likewise.
8749         (EXPAND_BUILTIN_SAVEREGS): Likewise.
8750
8751 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
8752
8753         PR bootstrap/13853
8754         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
8755
8756 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8757
8758         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
8759         using ccr.
8760
8761 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8762
8763         * config/i860/i860-protos.h: Remove the prototype for
8764         i860_saveregs.
8765         * config/i860/i860.c (i860_saveregs): Make it static.
8766         (i860_struct_value_rtx): New.
8767         (TARGET_STRUCT_VALUE_RTX): Likewise.
8768         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8769         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
8770         I860_STRUCT_VALUE_REGNUM.
8771         (EXPAND_BUILTIN_SAVEREGS): Remove.
8772
8773 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8774
8775         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
8776         (TARGET_RETURN_IN_MEMORY): Likewise.
8777         (m68hc11_struct_value_rtx): Likewise.
8778         (m68hc11_return_in_memory): Likewise.
8779         * config/m68hc11/m68hc11.h: Remove a commented-out definition
8780         of PROMOTE_PROTOTYPES.
8781         (RETURN_IN_MEMORY): Remove.
8782         (STRUCT_VALUE_REGNUM): Likewise.
8783
8784 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8785
8786         * config/mmix/mmix-protos.h: Remove the prototype for
8787         mmix_setup_incoming_varargs.
8788         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8789         (TARGET_STRUCT_VALUE_RTX): Likewise.
8790         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8791         (mmix_setup_incoming_varargs): Make it static.
8792         (mmix_struct_value_rtx): New.
8793         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
8794         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
8795         (STRUCT_VALUE_REGNUM): Remove.
8796         (SETUP_INCOMING_VARARGS): Likewise.
8797
8798 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8799
8800         * config/mips/mips-protos.h: Remove the prototypes for
8801         mips_setup_incoming_varargs and mips_return_in_memory.
8802         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8803         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8804         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8805         (TARGET_STRUCT_VALUE_RTX): Likewise.
8806         (TARGET_RETURN_IN_MEMORY): Likewise.
8807         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8808         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8809         (mips_setup_incoming_varargs): Match the prototype for
8810         TARGET_SETUP_INCOMING_VARARGS.
8811         (mips_return_in_memory): Make it static.  Add argument fntype.
8812         (mips_strict_argument_naming): New.
8813         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
8814         (PROMOTE_FUNCTION_ARGS): Likewise.
8815         (PROMOTE_FUNCTION_RETURN): Likewise.
8816         (STRUCT_VALUE): Likewise.
8817         (RETURN_IN_MEMORY): Likewise.
8818         (SETUP_INCOMING_VARARGS): Likewise.
8819         (STRICT_ARGUMENT_NAMING): Likewise.
8820
8821 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8822
8823         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
8824         (TARGET_RETURN_IN_MEMORY): Likewise.
8825         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8826         (ip2k_return_in_memory): Likewise.
8827         (ip2k_setup_incoming_varargs): Likewise.
8828         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
8829         (STRUCT_VALUE): Likewise.
8830         (STRUCT_VALUE_INCOMING): Likewise.
8831         (SETUP_INCOMING_VARARGS): Likewise.
8832
8833 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8834
8835         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
8836         (TARGET_RETURN_IN_MEMORY): Likewise.
8837         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8838         (avr_return_in_memory): Remove.
8839         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
8840         (STRUCT_VALUE): Likewise.
8841         (STRUCT_VALUE_INCOMING): Likewise.
8842         (STRICT_ARGUMENT_NAMING): Likewise.
8843
8844 2004-01-25  Jan Hubicka  <jh@suse.cz>
8845
8846         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
8847
8848 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
8849
8850         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
8851         (mips_regno_mode_ok_for_base_p): Declare.
8852         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
8853         (FRAME_POINTER_REGNUM): Renumber to 78.
8854         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
8855         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
8856         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
8857         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
8858         (REG_MODE_OK_FOR_BASE_P): Likewise.
8859         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
8860         entry for 77 to "$arg" and entry for 78 to "$frame".
8861         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
8862         (mips_reg_mode_ok_for_base_p): Remove.
8863         (mips_regno_mode_ok_for_base_p): New function, derived from old
8864         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
8865         restrictions unless we're being strict.
8866         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
8867
8868 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8869
8870         * c-common.h: Fix comment typos.
8871         * c-decl.c: Likewise.
8872         * cgraphunit.c: Likewise.
8873         * combine.c: Likewise.
8874         * et-forest.c: Likewise.
8875         * flow.c: Likewise.
8876         * function.c: Likewise.
8877         * ifcvt.c: Likewise.
8878         * integrate.c: Likewise.
8879         * jump.c: Likewise.
8880         * postreload.c: Likewise.
8881         * varray.c: Likewise.
8882
8883 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8884
8885         * doc/frontends.texi: Update copyright.
8886         * doc/gcov.texi: Likewise.
8887         * doc/gty.texi: Likewise.
8888         * doc/sourcebuild.texi: Likewise.
8889         * doc/standards.texi: Likewise.
8890
8891 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
8892
8893         PR target/12978
8894         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
8895         Remove movstrqi_small because it conflicts with movstrqi_large.
8896
8897 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8898
8899         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8900         (TARGET_STRUCT_VALUE_RTX): Likewise.
8901         (cris_struct_value_rtx): Likewise.
8902         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
8903         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
8904         STRUCT_VALUE_REGNUM.
8905         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
8906
8907 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
8908
8909         PR bootstrap/13848
8910         * cse.c (cse_cc_succs): Change the mode of the source expression
8911         as soon as decide we need a new mode.  Don't permit changing modes
8912         if we found a match in a successor block.
8913         (cse_condition_code_reg): Save original mode of source expression
8914         so that we know whether we have to change the mode in other
8915         insns.
8916
8917 2004-01-24  Jan Hubicka  <jh@suse.cz>
8918
8919         * emit-rtl.c (change_address, adjust_address_1, offset_address,
8920         widen_memory_access):  Return early when there is nothing to change.
8921
8922 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
8923
8924         * simplify-rtx.c (simplify_relational_operation): Don't
8925         simplify address == constant into address + -constant == 0.
8926
8927 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8928
8929         * gcc.c (process_command): Don't internationalize the
8930         Copyright message.
8931         * mips-tfile.c (main): Likewise.
8932
8933 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
8934
8935         * cse.c: (cse_cc_succs) Fix comparison warning.
8936
8937 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8938
8939         * config/h8300/h8300.md: Remove extraneous USE in expanders.
8940
8941 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8942
8943         * config/h8300/h8300-protos.h: Provide prototypes for
8944         h8300_legitimate_constant_p and h8300_legitimate_address_p.
8945         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
8946         (h8300_rtx_ok_for_base_p): Likewise.
8947         (h8300_legitimate_address_p): Likewise.
8948         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
8949         h8300_legitimate_constant_p.
8950         (RTX_OK_FOR_BASE_P): Remove.
8951         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
8952
8953 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8954
8955         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
8956         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
8957         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
8958         (REG_OK_FOR_BASE_STRICT_P): Likewise.
8959         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
8960         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
8961         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
8962         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
8963
8964 2004-01-24  Jan Hubicka  <jh@suse.cz>
8965
8966         * cselib.c (remove_useless_values):  Do not access discarded values.
8967
8968 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
8969
8970         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
8971         arrays.
8972
8973 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
8974
8975         * recog.c: Fix a typo in copyright.
8976
8977 2004-01-23  Andrew Pinski  <apinski@apple.com>
8978
8979         * config/rs6000/rs6000.md (call): Fix misappiled patch.
8980         (call_value): Likewise.
8981
8982 2004-01-23  Richard Henderson  <rth@redhat.com>
8983
8984         PR opt/12941
8985         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
8986         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
8987         if SHIFT_COUNT_TRUNCATED is set.
8988
8989 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
8990
8991         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
8992         separate real and imaginary parts.
8993         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
8994
8995 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
8996
8997         PR target/13674
8998         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
8999         loading into GPR.
9000
9001 2004-01-23  Jan Hubicka  <jh@suse.cz>
9002
9003         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
9004         change.
9005
9006         * alloc-pool.c (align_four): Kill.
9007         (create_alloc_pool): Align size to eight.
9008         (free_alloc_pool, free_pool): Invalidate deallocated data.
9009
9010 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
9011
9012         PR gcc/1532
9013         * cse.c (cse_change_cc_mode): New static function.
9014         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
9015         (cse_condition_code_reg): New function.
9016         * rtl.h (cse_condition_code_reg): Declare.
9017         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
9018         * target.h (struct gcc_target): Add fixed_condition_code_regs and
9019         cc_modes_compatible.
9020         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9021         (TARGET_CC_MODES_COMPATIBLE): Define.
9022         (TARGET_INITIALIZER): Add new initializers.
9023         * targhooks.c (default_cc_modes_compatible): New function.
9024         * targhooks.c (default_cc_modes_compatible): Declare.
9025         * hooks.c (hook_bool_intp_intp_false): New function.
9026         * hooks.h (hook_bool_intp_intp_false): Declare.
9027         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9028         (TARGET_CC_MODES_COMPATIBLE): Define.
9029         (ix86_fixed_condition_code_regs): New static function.
9030         (ix86_cc_modes_compatible): Likewise.
9031         * doc/tm.texi (Condition Code): Document new hooks.
9032
9033 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9034
9035         * fixinc/inclhack.def (bad_lval): Renamed to ...
9036         (alpha_bad_lval): ... this.
9037         Removed file list.
9038         Restrict to alpha*-dec-osf*.
9039         * fixinc/fixincl.x: Regenerate.
9040         * fixinc/tests/base/dirent.h: Remove, moving test ...
9041         * fixinc/tests/base/testing.h: ... here, reflecting new name.
9042
9043 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
9044
9045         PR c/13814
9046         * c-decl.c (diagnose_mismatched_decls): Also discard a
9047         built-in if we encounter an old-style definition with the
9048         same name.
9049
9050 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
9051
9052         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
9053         set to default{32,64}.
9054
9055 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
9056
9057         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
9058         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
9059
9060 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
9061             Olivier Hainque  <hainque@act-europe.fr>
9062
9063         * fold-const.c (fold_binary_op_with_conditional_arg): Only
9064         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
9065
9066 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
9067
9068         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
9069         size for minipool references.
9070
9071 2004-01-23  Roger Sayle  <roger@eyesopen.com>
9072
9073         * real.c (real_floor, real_ceil): Tweak to allow input and output
9074         arguments to overlap.
9075         (real_round): New function to implement round(3m) semantics.
9076         * real.h (real_round): Prototype here.
9077         * builtins.c (fold_builtin_round): New function to constant fold
9078         round, roundf and roundl.
9079         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
9080
9081 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
9082
9083         PR optimization/13819
9084         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
9085         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
9086         (sh_handle_sp_switch_attribute): Remove warning.
9087
9088 2003-11-30  Jan Hubicka  <jh@suse.cz>
9089
9090         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
9091
9092 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
9093
9094         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
9095         may or may not return non-NIL.
9096         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
9097         check CANNOT_CHANGE_MODE_CLASS
9098
9099 2004-01-23  Jan Hubicka  <jh@suse.cz>
9100
9101         * basic-block.h (PROP_POSTRELOAD): New macro.
9102         (CLEANUP_LOG_LINKS): New.
9103         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
9104         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
9105
9106         * cselib.c (value_pool): New.
9107         (new_cselib_val): Use pool.
9108         (cselib_init): Initialize value_pool
9109         (cselib_finish): Free pool.
9110
9111 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
9112
9113         * config/sparc/sparc.c (scan_record_type): New function.
9114         (function_arg_slotno): Use it to determine which kinds of
9115         registers the record can be passed in.
9116
9117 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
9118
9119         * config/pa/fptr.c: Fix old-style definition.
9120
9121 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
9122
9123         PR optimization/13724
9124         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
9125         represents the zero bits produced by a ZERO_EXTEND operation.
9126
9127 2004-01-22  Roger Sayle  <roger@eyesopen.com>
9128
9129         PR optimization/13821
9130         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
9131         correctly calculate the lowpart offset of the contracted subreg.
9132
9133 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
9134
9135         * doc/invoke.texi (Optimize Options): Note that --param arguments
9136         are subject to change without notice.
9137
9138 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9139
9140         * config.gcc (mips-sgi-irix6*o32): Removed.
9141         * config/mips/iris6-o32-as.h: Likewise.
9142         * config/mips/iris6-o32-gas.h: Likewise.
9143         * config/mips/iris6-o32.h: Likewise.
9144
9145 2004-01-22  Jan Hubicka  <jh@suse.cz>
9146
9147         * cfgcleanup.c (first_pass): New static variable.
9148         (try_forward_edges):  Add work limiting check for threading.
9149         (try_crossjump_bb):  Add work limiting check for crossjumping.
9150         (try_optimize_cfg):  Maintain first pass variable.
9151
9152 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
9153
9154         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
9155         handles complex and vector modes.
9156
9157 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
9158
9159         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
9160         (REG_OK_FOR_BASE_P_STRICT): Likewise.
9161         (STRICT): Likewise.
9162
9163 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
9164
9165         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
9166         (genrtl_for_stmt): Remove emit_nop calls.
9167
9168 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9169
9170         PR target/13713
9171         PR target/13324
9172         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
9173         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
9174         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
9175
9176 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
9177
9178         * config/arm/arm.c: Include "debug.h".
9179         (thumb_pushpop): Take two new arguments.  Add some commentary.
9180         Output frame information when pushing.
9181         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
9182         thumb_pushpop.
9183         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
9184         offset, and pass it to thumb_pushpop.  Output CFI information.
9185         (thumb_expand_prologue): Add some frame-related markers and notes.
9186
9187 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
9188
9189         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
9190         for TARGET_64BIT.
9191         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
9192         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
9193
9194 2004-01-22  Roger Sayle  <roger@eyesopen.com>
9195             Paolo Bonzini  <bonzini@gnu.org>
9196
9197         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
9198         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
9199         * rtl.h (subreg_lsb_1): Prototype here.
9200         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
9201         sign extensions.
9202
9203 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
9204
9205         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
9206         macro need not be defined if jump-tables should contain
9207         relative addresses only when -fPIC or -fPIC is in effect.
9208
9209 2004-01-22  Jan Hubicka  <jh@suse.cz>
9210
9211         * alias.c (reg_base_value): Turn into varray.
9212         (reg_base_value_size): Kill.
9213         (old_reg_base_value): New deletable varray.
9214         (alias_invariant_size): New variable.
9215         (REG_BASE_VALUE): Update to use varray.
9216         (find_base_value): Likewise.
9217         (record_set): Likewise.
9218         (record_base_value): Likewise.
9219         (memrefs_conflict_p): Likewise.
9220         (record_set): Likewise
9221         (record_base_value): Likewise.
9222         (memrefs_conflict_p): Use alias_invariant_size.
9223         (init_alias_analysis): Use varray; set alias_invariant_size;
9224         rescale other arrays to be sized by maxreg.
9225         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
9226
9227 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9228
9229         * config/sparc/sparc.c (function_arg_slotno): Use
9230         FLOAT_TYPE_P to detect FP fields in structures.
9231         (function_arg_record_value_1): Likewise.
9232         (function_arg_record_value_2): Likewise.
9233
9234 2004-01-22  Jan Hubicka  <jh@suse.cz>
9235
9236         * function.c (allocate_struct_function): Do not initialize expr, emit
9237         and varasm.
9238         (prepare_function_start): Do it here.
9239         * c-parse.in (maybe_type_qual): Do not produce line number notes.
9240
9241 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9242
9243         PR target/13559
9244         * config/sparc/sparc.c (function_arg_record_value_3): Revert
9245         to 'word_mode' once the first slot has been filled.
9246
9247 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
9248
9249         * config/sparc/sparc.c (function_arg_record_value_1): Fix
9250         computation of the number of integer registers required.
9251
9252 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9253
9254         * config/i386/i386.md: Simplify certain comparisons of
9255         const_int.
9256
9257 2004-01-21  Andrew Pinski  <apinski@apple.com>
9258
9259         PR target/13785
9260         * config/rs6000/rs6000.md (call_value): Force operand
9261         1 not operand 0 into a register.
9262
9263 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9264
9265         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
9266         unwind-dw2-fde.h: Update copyright.
9267
9268 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9269
9270         * pa-protos.h: Update copyright.
9271         * pa.h: Likewise.
9272         * pa.md: Likewise.
9273
9274 2004-01-21  Caroline Tice  <ctice@apple.com>
9275
9276         PR target/12308
9277         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
9278         flags register.
9279         (fix_truncdfdi2): Likewise.
9280         (fix_truncsfdi2): Likewise.
9281         (*fix_truncdi_1): Likewise.
9282         (fix_truncxfsi2): Likewise.
9283         (fix_truncdfsi2): Likewise.
9284         (fix_truncsfsi2): Likewise.
9285         (*fix_truncsi_1): Likewise.
9286         (fix_truncxfhi2): Likewise.
9287         (fix_truncdfhi2): Likewise.
9288         (fix_truncsfhi2): Likewise.
9289         (*fix_trunchi_1): Likewise.
9290
9291 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9292
9293         * alias.c, basic-block.h, c-common.c, c-common.h,
9294         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
9295         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
9296         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
9297         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
9298         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
9299         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
9300         genautomata.c, genconditions.c, genemit.c, genflags.c,
9301         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
9302         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
9303         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
9304         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
9305         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
9306         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
9307         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
9308         unwind.h, varray.c, varray.h: Update copyright.
9309
9310 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
9311
9312         * config/h8300/coff.h: Update copyright.
9313         * config/h8300/elf.h: Likewise.
9314         * config/h8300/h8300-protos.h: Likewise.
9315         * config/h8300/h8300.c: Likewise.
9316         * config/h8300/h8300.h: Likewise.
9317         * config/h8300/h8300.md: Likewise.
9318
9319 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9320
9321         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
9322         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
9323         ultrix_unistd): New hacks.
9324         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
9325         ULTRIX_CONST2_CHECK): Add checks.
9326         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
9327         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
9328         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
9329         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
9330         * fixinc/tests/base/locale.h: New file.
9331         * fixinc/fixincl.x: Rebuilt.
9332
9333 2004-01-21  Andreas Jaeger  <aj@suse.de>
9334             Michael Matz  <matz@suse.de>
9335
9336         * doc/extend.texi (Extended Asm): Clarify memory clobber.
9337
9338 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
9339
9340         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
9341         _Jv_RegisterClasses through a function pointer.
9342
9343 2004-01-21  Falk Hueffner  <falk@debian.org>
9344
9345         PR target/12898
9346         * config/alpha/alpha.c (alpha_emit_set_const_1): If
9347         no_new_pseudos, use gen_rtx_SET directly for SImode constants
9348         which need multiple instructions to emit.
9349
9350 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
9351
9352         * config/m32r/m32r.h (CPP_SPEC): Define.
9353
9354 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
9355
9356         * c-decl.c (merge_decls): Kill different_binding_level and
9357         different_tu arguments; simplify throughout.
9358         (duplicate_decls): Likewise.
9359         (pushdecl, merge_translation_unit_decls): Update calls to
9360         duplicate_decls.
9361
9362 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9363
9364         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
9365         $(SYSTEM_H).
9366         (print-rtl1.o): Depend on $(SYSTEM_H).
9367
9368 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
9369
9370         PR bootstrap/12730
9371         * configure.ac: Delete definition and subsitution of docdir.
9372         Add info, man, srcman and srcinfo to target hooks. Create doc/
9373         directory.
9374         * configure: Regenerate.
9375         * Makefile.in: Don't substitute docdir and delete all references
9376         throughout.
9377         (MAKEINFOFLAGS): Define.
9378         (stmp-docobjdir): Delete.
9379         (INFOFILES, MANFILES): Define.
9380         (info): Call lang.info, srcinfo and lang.srcinfo.
9381         (generated-manpages): Call lang.man, srcman and lang.srcman.
9382         (srcinfo, srcman): New rules to copy back files to source directory.
9383         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
9384         (install-man): Revamp rule.
9385         (clean): Update dvi directory.
9386         (distclean): Delete TAGS from front end directorys.
9387         (maintainer-clean): Delete all document files in source directory.
9388
9389         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
9390         (objc.srcman, objc.srcinfo): Likewise.
9391
9392 2004-01-20  Bruce Korb  <bkorb@gnu.org>
9393
9394         * fixinc/inclhack.def(math_exception): bypass only for glibc.
9395         (matherr_decl): rename & relocate as exception_structure.
9396         This fix must precede the math_exception fix.
9397
9398 2004-01-20  Roger Sayle  <roger@eyesopen.com>
9399
9400         * fold-const.c (fold_convert): Rename to fold_convert_const.
9401         (fold_convert_const): Change arguments to take a tree_code,
9402         a type and the operand/expression to be converted.  Return
9403         NULL_TREE if no simplification is possible.  Add support for
9404         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
9405         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
9406         Adjust call to fold_convert to match new fold_convert_const.
9407         Avoid modifying the tree passed to fold in-place.
9408
9409 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
9410
9411         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
9412         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
9413         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
9414
9415 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9416
9417         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
9418         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
9419         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
9420         (emit_move_sequence): Check scratch_reg first in various if statements.
9421         Extend source simplification to handle all 64-bit CONST_INTs.
9422         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
9423         frame size.
9424         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
9425         frame offset calculations.
9426         * pa.h (NEW_HP_ASSEMBLER): Add comment.
9427         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
9428         LEGITIMATE_64BIT_CONST_INT_P): Define.
9429         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
9430         any CONST_INT as legitimate during and after reload.
9431         (VAL_32_BITS_P, INT_32_BITS): Define.
9432         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
9433
9434 2004-01-20  Jan Hubicka  <jh@suse.cz>
9435
9436         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
9437         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
9438         containing hard regs are shared.
9439         (gen_hard_reg_clobber): New function.
9440         (hard_reg_clobbers): New array.
9441         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
9442         (copy_rtx): Do not copy clobbers containing hard regs.
9443         * rtl.h (gen_hard_reg_clobber): Declare.
9444
9445 2004-01-20  Jan Hubicka  <jh@suse.cz>
9446
9447         * varray.c:  Include hashtab.h
9448         (varray_descriptor): New structure.
9449         (hash_descriptor, eq_descriptor, varray_descriptor,
9450         print_statistics): New static functions
9451         (varray_init, varray_grow): Update statistics
9452         (dump_varray_statistics): New function.
9453         * varray.h (dump_varray_statistics): Declare.
9454         * toplev.c (finalize): Call it.
9455         * Makefile.in (varray.o): Add dependency.
9456
9457 2004-01-20  Jan Hubicka  <jh@suse.cz>
9458
9459         * cselib.c: Include alloc-pool.h
9460         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
9461         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
9462         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
9463         unchain_one_elt_loc_list_pool, unchain_one_value,
9464         new_cselib_val): Simplify using allocpool.
9465         (cselib_init): Initialize allocpools.
9466         (cselib_finish): Finish allocpools.
9467         * Makefile.in (cselib.o): Depend on alloc-pool.h
9468
9469 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
9470
9471         * config/mips/mips.c (mips_load_call_address): Make the call insn
9472         use $gp if it could be calling a lazy binding stub.
9473
9474 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
9475
9476         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
9477         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9478         (TARGET_STRUCT_VALUE_RTX): Likewise.
9479         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
9480         (PROMOTE_FUNCTION_RETURN): Remove.
9481         (STRUCT_VALUE): Remove.
9482
9483 2004-01-20  Denis Chertykov  <denisc@overta.ru>
9484
9485         PR bootstrap/13735
9486         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
9487         register as pointer after reload.
9488
9489 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9490
9491         PR optimization/12440
9492         * loop.c: Include ggc.h.
9493         (loop_optimize): Run garbage collector between optimization of loops.
9494         * Makefile.in (loop.o): Add GGC_H dependency.
9495
9496 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
9497
9498         * gcc/config/rs6000/rs6000.c (function_arg) Handle
9499         vector register special in function without prototype.
9500         (function_arg_advance): Vector parameters get always
9501         GPRs allocated for the linux64 target.
9502
9503 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
9504
9505         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
9506         not TARGET_M32RX_MASK.
9507
9508 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
9509
9510         PR target/13557
9511         * config/sparc/sparc.c (function_arg): Reorder the cases.
9512
9513 2004-01-19  Per Bothner  <per@bothner.com>
9514
9515         Move cpp_reader's line_maps field to a shared global.
9516         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
9517         and change the type to a pointer rather than a struct.
9518         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
9519         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
9520         Likewise.
9521         * cppfiles.c (validate_pch):  Likewise.
9522         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
9523         Likewise.
9524         * cpperror.c (print_location):  Likewise.
9525         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
9526         * cppinit.c (cpp_create_reader):  Handle new parameter.
9527         (cpp_destroy):  Don't free line_maps - that's no longer our job.
9528         * input.h (line_table):  New variable.
9529         * toplev.c (line_table):  Declare variable.
9530         (general_init):  Initialize line_table.
9531         * c-opts.c (c_common_init_options):  Pass line_table to
9532         cpp_create_reader.
9533         * fix-header.c (read_scan_file):  New local variable line_table.
9534         Initialize, and pass it to cpp_create_reader.
9535         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
9536         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
9537
9538 2004-01-19  Per Bothner  <per@bothner.com>
9539
9540         Implement a cache for linemap_lookup.
9541         * line-map.h (struct_line_maps):  Add cache field.
9542         * line-map.c (linemap_init):  Zero cache field.
9543         (linemap_add):  Set cache field to offset of newly allocated map.
9544         (linemap_lookup):  Use and set cache field.
9545
9546 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9547
9548         PR optimization/13567
9549         * cse.c (cse_basic_block): Call cse_insn with a non-null
9550         libcall_insn for the last SET insn of a no-confilict block.
9551
9552 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
9553
9554         * Makefile.in (target_noncanonical, program_transform_name): Use
9555         immediate define instead of deferred.
9556         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
9557         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
9558         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
9559         deferred backquote.
9560
9561 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
9562
9563         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
9564         true unconditionally.
9565         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
9566         Remove.
9567         (build_unary_op, build_modify_expr): Don't handle extended
9568         lvalues.
9569         (build_component_ref, build_conditional_expr): Call non_lvalue
9570         instead of pedantic_non_lvalue.
9571         (build_c_cast): Don't condition use of non_lvalue on pedantic.
9572         * fold-const.c (fold): Don't check pedantic directly for
9573         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
9574         passed to pedantic_non_lvalue.
9575         * doc/extend.texi: Remove documentation of extended lvalues.
9576
9577 2004-01-19  Roger Sayle  <roger@eyesopen.com>
9578
9579         PR optimization/5263
9580         * simplify-rtx.c (associative_constant_p): Delete.
9581         (simplify_associative_operation): Rewrite to linearize terms, and
9582         attempt to simplify new term against both left and right subterms.
9583         (simplify_binary_operation): Call swap_commutative_operands_p on
9584         op0 and op1, not trueop0 and trueop1.  Move the initialization of
9585         trueop0 and trueop1 down to where first needed.
9586         (simplify_relational_operation): Likewise.
9587         * rtlanal.c (commutative_operand_precedence): Also order constant
9588         operands using avoid_constant_pool_reference.
9589
9590 2004-01-19  Richard Henderson  <rth@redhat.com>
9591
9592         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
9593         don't check memory mode.
9594         (unaligned_memory_operand): Likewise.
9595         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
9596         abort for op0 not MEM.
9597
9598         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
9599         is not a reg, copy to a scratch first.
9600         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
9601         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
9602         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
9603         (reload_inqi, reload_inhi): Fix mode of op0.
9604         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
9605         reload_outhi_help): Likewise.  Use define_insn_and_split.
9606
9607         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
9608         as well as $29 dead.
9609
9610 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
9611
9612         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
9613         "tls_object" for thread-local objects.
9614         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
9615         "#tls" for thread-local sections.
9616         * configure.ac (thread-local checks): Specify --fatal-warnings in
9617         every binutils-specific checks.  For sparc*-*-*, test whether the
9618         OS is Solaris and the tools are native and act accordingly.
9619         * configure: Rebuild.
9620
9621 2004-01-19  Jeff Law  <law@redhat.com>
9622
9623         * contrib.texi: Update Paolo Carlini's entry.  New entries for
9624         Jerry Quinn and Petur Runolfsson.
9625
9626 2004-01-19  Roger Sayle  <roger@eyesopen.com>
9627
9628         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
9629         size, don't use the larger zero-extending loads.
9630
9631 2004-01-19  Richard Henderson  <rth@redhat.com>
9632
9633         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
9634         * alpha.md (UNSPEC_NT_LDA): Remove.
9635         (UNSPEC_CVTLQ, cvtlq): New.
9636         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
9637         (extendsidi2_fix): Remove.
9638         (extendsidi2 splitter): Use cvtlq.
9639         (extendsidi2 fp peepholes): Remove.
9640         (cvtql): Use SFmode instead of SImode.
9641         (fix_trunc?fsi): Update to match.
9642         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
9643         (movsi): Rename from movsi_nofix, remove f alternatives.
9644         (movsi_nt_vms): Similarly.
9645         (movsi_fix, movsi_nt_vms_fix): Remove.
9646         (nt_lda): Remove.
9647         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
9648
9649 2004-01-19  Jan Hubicka  <jh@suse.cz>
9650
9651         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
9652         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
9653         list.
9654         (cgraph_remove_unreachable_nodes): New function
9655         (cgraph_decide_inlining_of_small_function): Fix pasto.
9656         (cgraph_decide_inlining_incrementally): Fix pasto.
9657         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
9658
9659 2004-01-19  Steven Bosscher  <stevenb@suse.de>
9660
9661         * gengtype.c (header_file): Make it static.
9662         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
9663         * gengtype.h (header_file): No longer extern.
9664
9665 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9666
9667         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
9668         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
9669         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
9670
9671 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9672
9673         * stmt.c (HAVE_casesi): Define it not already defined.
9674         (HAVE_tablejump): Likewise.
9675         (expand_end_case_type): Resort to the binary tree method if
9676         neither casesi or tablejump is available.
9677
9678 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
9679
9680         * final.c (final_scan_insn): Make non-static again.
9681         * output.h (final_scan_insn): Re-add prototype.
9682         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
9683         to final_scan_insn call.
9684         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
9685         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
9686         * config/pa/pa.c (output_lbranch, output_call): Likewise.
9687         * config/sh/sh.c (print_slot): Likewise.
9688         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
9689         (output_sibcall, sparc_flat_function_epilogue): Likewise.
9690
9691 2004-01-18  Jan Hubicka  <jh@suse.cz>
9692
9693         * basic-block.h (try_redirect_by_replacing_jump): Declare.
9694         * cfgcleanup.c (try_optimize_cfg): Use it.
9695         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
9696         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
9697         Kill hack.
9698         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
9699
9700         Revert:
9701         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9702
9703                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9704                 even after reload, just don't remove the actual jump tables.
9705
9706 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9707
9708         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
9709
9710 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9711
9712         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
9713         the size of a pointer in bytes.
9714
9715 2004-01-18  Roger Sayle  <roger@eyesopen.com>
9716
9717         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
9718         live "next" variable, which could lead to an infinite loop.
9719
9720 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
9721
9722         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
9723         block.
9724
9725         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9726         Check for NULL in the chain and remove repeated code.
9727
9728 2004-01-18  Jan Hubicka  <jh@suse.cz>
9729
9730         * coverage.c (checksum_string): Rename to ...
9731         (coverage_checksum_string): ... this one, Use crc32_string; recognize
9732         names containing random number and zero the number out in order to get
9733         match.
9734
9735 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
9736
9737         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
9738
9739 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9740
9741         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
9742         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
9743         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
9744         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
9745         doc/trouble.texi: Remove trailing whitespace.
9746
9747 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
9748
9749         PR target/7618
9750         * config/mips/mips.c: Include cfglayout.h.
9751         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9752         (mips_unspec_offset_high): Add temporary register argument.
9753         (mips_load_call_address): New function, split out from...
9754         (mips_expand_call): ...here.
9755         (mips_output_cplocal): New function.
9756         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
9757         (mips_emit_loadgp): New function, split out from...
9758         (mips_expand_prologue): ...here.
9759         (mips_output_mi_thunk): New function.
9760
9761 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
9762
9763         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
9764         mcpu32): Remove redundant checks for implied target predefines.
9765
9766 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
9767
9768         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9769         Return type is unsigned int not int.
9770         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9771         Likewise.
9772
9773 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9774
9775         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
9776         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
9777         "GNU/Linux" and "Microsoft Windows" terminology.
9778
9779 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9780
9781         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
9782         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
9783         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
9784         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
9785         @smallexample instead of @example.
9786
9787 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
9788
9789         * objc/objc-act.c (build_objc_method_call): Use target
9790         hooks instead of macros to determine if ..._stret
9791         dispatchers should be used (NeXT runtime only).
9792
9793 2004-01-17  Roger Sayle  <roger@eyesopen.com>
9794
9795         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
9796         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
9797
9798 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
9799
9800         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
9801         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
9802         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
9803         macros.
9804         * reload1.c (emit_reload_insns): Use them.
9805         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
9806         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
9807         for NULL PATTERN.
9808
9809 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
9810
9811         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
9812         (final_scan_insn): Update to take an additional SEEN argument.  Emit
9813         a line note after the prologue.  Make static.
9814         (line_note_exists): Remove.
9815         (final): Don't initialize line_note_exists.  Update call to
9816         final_scan_insn.
9817         * output.h (final_scan_insn): Remove prologue.
9818         * function.c (set_insn_locators): Update comment.
9819         (thread_prologue_and_epilogue_insns): Add a comment.
9820
9821 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
9822
9823         PR target/10781
9824         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9825         Prototype.
9826         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9827         New function.
9828         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
9829         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
9830         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
9831
9832 2004-01-17  Jan Hubicka  <jh@suse.cz>
9833
9834         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
9835         commit.
9836
9837         * toplev.c (HAVE_conditional_execution): Provide default.
9838         (rest_of_handle_reorder_blocks): For conditional_execution target
9839         update liveness once after all transformations
9840         (rest_of_compilation): Do crossjumping before ce3.
9841
9842 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
9843
9844         * alias.c (new_alias_set): Mark last_alias_set for PCH.
9845         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
9846         for PCH.
9847         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
9848         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
9849         (get_TOC_alias_set): Mark 'set' for PCH.
9850
9851 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9852
9853         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9854         even after reload, just don't remove the actual jump tables.
9855
9856 2004-01-17  J. Brobecker  <brobecker@gnat.com>
9857
9858         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
9859         Remove checks for is_ada() and TREE_UNSIGNED.
9860         (subrange_type_die): Emit a byte_size attribute if the subrange
9861         type size is different from the base type size.
9862         (modified_type_die): Replace call to is_ada_subrange_type() by
9863         call to is_subrange_type().
9864
9865 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
9866
9867         * config/sh/sh.c: Include ggc.h.
9868
9869 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9870
9871         * Makefile.in (MD5_H): New.
9872         (fold-const.o): Depend on md5.h.
9873         (dwarf2out.o): Likewise.
9874         (cppfiles.o): Likewise.
9875         * cppfiles.c: Include md5.h.
9876         (should_stack_file): Check against list read from PCH file.
9877         (struct pchf_data): New.
9878         (pchf): New variable.
9879         (struct pchf_adder_info): New.
9880         (pchf_adder): New.
9881         (pchf_save_compare): New.
9882         (_cpp_save_file_entries): New.
9883         (_cpp_read_file_entries): New.
9884         (struct pchf_compare_data): New.
9885         (pchf_compare): New.
9886         (check_file_against_entries): New.
9887         * cpphash.h (_cpp_save_file_entries): Prototype.
9888         (_cpp_read_file_entries): Prototype.
9889         * cpppch.c (cpp_write_pch_state): Write the list of headers.
9890         (cpp_read_state): Read the list of headers.
9891
9892 2004-01-17  Jan Hubicka  <jh@suse.cz>
9893
9894         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
9895         builtin_expect specially.
9896         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
9897         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
9898         * invoke.texi (max-inline-insns-single): Set to 100.
9899         (large-function-insns): Set to 3000.
9900
9901 2004-01-16  Eric Christopher  <echristo@redhat.com>
9902             Chandrakala Chavva <cchavva@redhat.com>
9903
9904         * cppcharset.c (one_iso88591_to_utf8): New function.
9905         (convert_iso88591_utf8): Ditto. Use.
9906         (conversion_tab): Use.
9907         (_cpp_input_to_utf8): New function.
9908         (_cpp_init_iconv_buffer): Ditto.
9909         (_cpp_close_iconv_buffer): Ditto.
9910         * cpphash.h: Prototype new functions.
9911         (cpp_buffer): Add input_cset_desc.
9912         * cppinit.c: Add input_charset default.
9913         * cpplib.c (cpp_push_buffer): Support init and
9914         close of iconv.
9915         * cpplib.h (cpp_options): Add input_charset.
9916
9917 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9918
9919         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
9920         * config/alpha/unicosmk.h: Remove a commented-out definition
9921         of ASM_OUTPUT_SECTION_NAME.
9922         * config/stormy16/stormy16.h: Likewise.
9923
9924 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9925
9926         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
9927         (alpha___extern_prefix_sys_stat): ... this.
9928         Apply to <sys/mount.h>, too.
9929         Tweak to match more variations.
9930         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
9931
9932         * fixinc/inclhack.def (alpha___extern_prefix,
9933         alpha___extern_prefix_standards): New hacks to obey
9934         __PRAGMA_EXTERN_PREFIX.
9935         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
9936         test.
9937         * fixinc/tests/base/standards.h: Likewise.
9938
9939         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
9940         variations.
9941         New testcase.
9942         * fixinc/tests/base/pthread.h: Handle it.
9943
9944         * fixincl/inclhack.def (bad_lval): Sort file list.
9945         Add many missing files up to Tru64 UNIX V5.1B.
9946         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
9947         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
9948         order.
9949
9950         * fixinc/fixincl.x: Regenerate.
9951
9952 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
9953
9954         * version.c (version_string): Change to 3.5.0.
9955         * doc/include/gcc-common.texi (version-GCC): Likewise.
9956
9957 2004-01-16  Jan Hubicka  <jh@suse.cz>
9958
9959         * i386.md (load_tp_di): Fix pasto.
9960
9961         PR opt/13608
9962         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
9963
9964         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
9965         pp_c_character_constant, pp_c_floating_constant,
9966         pp_c_additive_expression, pp_c_shift_expression,
9967         pp_c_equality_expression, pp_c_and_expression,
9968         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
9969         pp_c_logical_and_expression): Remove inline modifier.
9970         * dwarf2out.c (get_AT): Likewise.
9971         * et-forest.c (et_splay): Likewise.
9972         * ra.h (ra_alloc, ra_calloc): Likewise
9973
9974 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9975
9976         * config/frv/frv-protos.h: Fix comment formatting.
9977         * config/frv/frv.c: Likewise.
9978         * config/frv/frv.h: Likewise.
9979         * config/frv/frv.md: Likewise.
9980         * config/frv/frvbegin.c: Likewise.
9981         * config/frv/frvend.c: Likewise.
9982
9983 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9984
9985         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
9986         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
9987         LINKER_DOES_NOT_WORK_WITH_DWARF2.
9988         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
9989
9990 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
9991
9992         PR 11864
9993         * postreload.c (reload_cse_simplify_operands): Don't remove
9994         implicit extension from LOAD_EXTEND_OP.
9995
9996 2004-01-16  Jan Hubicka  <jh@suse.cz>
9997
9998         PR opt/11350
9999         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
10000         after reload.
10001         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
10002         rtl_try_redirect_by_replacing_branch): Likewise.
10003
10004 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
10005
10006         PR pch/13689
10007         * alias.c (struct alias_set_entry): Mark for GC.
10008         (alias_sets): Make static, mark for GC.
10009         (record_alias_subset): Use GC to allocate alias structures.
10010         * varray.c (element): Make generic varrays GCed.
10011
10012         PR pch/13361
10013         * c-typeck.c (constructor_asmspec): Delete.
10014         (struct initializer_stack): Delete field 'asmspec'.
10015         (start_init): Delete saving of asmspec.
10016         (finish_init): Don't update constructor_asmspec.
10017         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
10018         * stmt.c (expand_asm): Duplicate strings from tree.
10019         (expand_asm_operands): Likewise.
10020         * tree.c (tree_size): Update computation of size of STRING_CST.
10021         (make_node): Don't make STRING_CST nodes.
10022         (build_string): Allocate string with tree node.
10023         * tree.def (STRING_CST): Update comment.
10024         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
10025         (tree_string): Place contents of string in tree node.
10026         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
10027         from tree.
10028
10029         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
10030         altivec operands.
10031
10032 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10033
10034         * c-common.h: Fix comment formatting.
10035         * c-cppbuiltin.c: Likewise.
10036         * c-pragma.c: Likewise.
10037         * calls.c: Likewise.
10038         * collect2.c: Likewise.
10039         * cppcharset.c: Likewise.
10040         * cpptrad.c: Likewise.
10041         * dbxout.c: Likewise.
10042         * defaults.h: Likewise.
10043         * dwarf2out.c: Likewise.
10044         * fold-const.c: Likewise.
10045         * genautomata.c: Likewise.
10046         * genconditions.c: Likewise.
10047         * genflags.c: Likewise.
10048         * gengtype.c: Likewise.
10049         * integrate.c: Likewise.
10050         * loop.c: Likewise.
10051         * predict.c: Likewise.
10052         * sdbout.c: Likewise.
10053
10054 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
10055
10056         * config/ia64/ia64.md (*movti_internal): C output template
10057         extracted to ia64.c.
10058         (*movti_internal_reg): Delete.
10059         (reload_inti, reload_outti): Use the correct mode on operand 2
10060         in the first place, don't fix it up in the output template.
10061         (movtf, reload_ointf, reload_outtf): New expanders.
10062         (*movtf_internal): New define_insn_and_split.
10063         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
10064         make static; do not hand TFmode CONST_DOUBLEs to split_double.
10065         (ia64_split_tmode_move): New function, body mostly pulled
10066         from ia64.md:*movti_internal.
10067         (ia64_function_arg_words): New function, extracted common
10068         logic from ia64_function_arg et seq.
10069         (ia64_function_arg_offset): Likewise.  Handle correctly the
10070         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
10071         (ia64_function_arg, ia64_function_arg_partial_nregs)
10072         (ia64_function_arg_advance): Use ia64_function_arg_words and
10073         ia64_function_arg_offset.
10074         (ia64_function_value): TCmode does not go in float regs.
10075         (ia64_secondary_reload_class): Also handle TFmode.
10076         * config/ia64/ia64-protos.h: Remove prototype for
10077         ia64_split_timode; add prototype for ia64_split_tmode_move.
10078
10079 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
10080
10081         * Makefile.in (MAINT): Make it an immediate assignment.
10082
10083 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10084
10085         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
10086
10087 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10088
10089         * config/h8300/coff.h: Replace Hitachi with Renesas.
10090         * config/h8300/elf.h: Likewise.
10091         * config/h8300/h8300-protos.h: Likewise.
10092         * config/h8300/h8300.c: Likewise.
10093         * config/h8300/h8300.h: Likewise.
10094         * config/h8300/h8300.md: Likewise.
10095         * config/h8300/lib1funcs.asm: Likewise.
10096
10097 2004-01-15  Andrew Pinski  <apinski@apple.com>
10098
10099         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
10100         around it.
10101
10102 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10103
10104         * config/h8300/h8300.c (h8300_return_in_memory): New.
10105         (TARGET_STRUCT_VALUE_RTX): Likewise.
10106         (TARGET_RETURN_IN_MEMORY): Likewise.
10107         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
10108         (RETURN_IN_MEMORY): Likewise.
10109
10110 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
10111
10112         PR optimization/13375
10113         * gcse.c (handle_avail_expr): Just return if the source is not a
10114         single set.
10115
10116 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
10117             Daniel Jacobowitz  <drow@mvista.com>
10118
10119         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
10120         (EQUIV): Define.
10121         (ARM_FUNC_ALIAS): New macro.
10122         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
10123         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
10124
10125 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10126
10127         PR optimization/12372
10128         * calls.c (expand_call): Add call_fusage data for stack arguments in
10129         constant calls.
10130
10131 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
10132
10133         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
10134         (rs6000_elf_declare_function_name): Formatting.
10135         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
10136
10137 2004-01-15  Jan Hubicka  <jh@suse.cz>
10138
10139         PR bootstrap/13692
10140         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
10141         previous patch.
10142
10143 2004-01-15  Richard Henderson  <rth@redhat.com>
10144
10145         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
10146         integer regs of the same call-savedness.
10147
10148 2004-01-15  Andreas Schwab  <schwab@suse.de>
10149
10150         PR bootstrap/13562
10151         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
10152         status for NOTB/NOTW/NEGW methods.
10153
10154 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10155
10156         * doc/invoke.texi: Update dump file names.  Fix a typo.
10157
10158 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10159
10160         * builtins.c (expand_builtin_va_end): Don't use
10161         EXPAND_BUILTIN_VA_END.
10162         * system.h (EXPAND_BUILTIN_VA_END): Poison.
10163         * config/d30v/d30v.h: Remove a commented-out definition of
10164         EXPAND_BUILTIN_VA_END.
10165         * config/stormy16/stormy16.h: Likewise.
10166
10167 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
10168
10169         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
10170         * targhooks.c (default_struct_value_rtx): Don't use
10171         STRUCT_VALUE_INCOMING_REGNUM.
10172
10173 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
10174
10175         PR bootstrap/12744
10176         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
10177         GENINSRC and not parsedir.  Define srcextra as a langhook.
10178         * configure: Regenerate.
10179         * Makefile.in: Suppress default .l.c rule.  Don't substitute
10180         parsedir and delete all references throughout.  Conditionally define
10181         rule for srcextra dependent on GENINSRC.
10182         (stmp-docobjdir): Delete.
10183         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
10184         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
10185         and gengtype-yacc.h back to source directory.
10186         (maintainer-clean): Delete all parse files in source directory.
10187         (distclean): Delete generated files.
10188
10189         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
10190         (objc-parse.c, objc-parse.y): Don't use parsedir.
10191         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
10192         directory if requested.
10193         (po-generated): Don't use parsedir.
10194         (objc.maintainer-clean): Delete above files from source directory.
10195
10196 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10197
10198         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
10199
10200 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10201
10202         * doc/tm.texi: Replace RETURN_IN_MEMORY with
10203         TARGET_RETURN_IN_MEMORY.
10204
10205 2004-01-15  Jan Hubicka  <jh@suse.cz>
10206
10207         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
10208         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
10209         functions accepting SSE arguments
10210         (function_arg): Warn only when asked to warn.
10211         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
10212
10213 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
10214
10215         * c-parse.in (stmts_and_decls): Make label at end of compound
10216         statement a hard error.
10217
10218 2004-01-14  Jan Hubicka  <jh@suse.cz>
10219
10220         * cgraph.c (create_edge): Use local.redefined_extern_inline.
10221         * cgraph.h (cgraph_local_info): Sort fields by size; add
10222         redefined_extern_inline
10223         (cgraph_global_info): Sort fields by size.
10224         (cgraph_node): Likewise.
10225         * cgraphunit.c (cgraph_finalize_function): Se
10226         local.redefined_extern_inline on redefinition.
10227         (cgraph_analyze_function): Use it; fix formating.
10228
10229 2004-01-14  Jan Hubicka  <jh@suse.cz>
10230
10231         PR c++/10776
10232         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
10233         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
10234         bitmaps
10235         (cache_size): New variable
10236         (add_dependence): Update use; canonize early memory locations
10237         (sched_analyze_1): Likewise.
10238         (sched_analyze_2): Likewise.
10239         (init_dependency_caches): Initialize bitmaps.
10240         (free_dependency_caches): Free bitmaps
10241
10242 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10243
10244         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
10245         targetm.calls.strict_argument_naming().
10246         * target.h: Likewise.
10247
10248 2004-01-14  Richard Henderson  <rth@redhat.com>
10249
10250         PR debug/13231
10251         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
10252         instructions.
10253
10254 2004-01-14  Richard Henderson  <rth@redhat.com>
10255
10256         PR c++/12491
10257         * except.c (struct eh_region): Add u.fixup.resolved.
10258         (resolve_one_fixup_region): Split out from ...
10259         (resolve_fixup_regions): ... here.
10260
10261 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10262
10263         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
10264
10265 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10266
10267         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
10268         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
10269         (STRUCT_VALUE): Remove.
10270
10271 2004-01-14  Steven Bosscher  <stevenb@suse.de>
10272
10273         * system.h: Poison PROMOTED_MODE
10274         * integrate.c (expand_inline_function): Don't mention the
10275         PROMOTED_MODE.
10276         * loop.c (update_giv_derive): Same.
10277         * tree.h (DECL_RTL): Same.
10278
10279 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
10280
10281         PR target/9365
10282         * sh.c (gen_block_redirect): Add special handling of RETURN.
10283         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
10284         far branch target (i.e. it's a return).
10285
10286 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10287
10288         * regrename.c (find_oldest_value_reg): Fix a warning.
10289
10290 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
10291
10292         PR bootstrap/12527
10293         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
10294         Move linux-gas.h and linux-elf.h before aout.h.
10295         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
10296         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
10297
10298 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
10299
10300         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
10301         (CONST_INT, VOIDmode, ...).
10302
10303 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
10304
10305         * regrename.c (find_oldest_value_reg): If the replacement uses
10306         multiple hard registers, check that all of them are in CLASS.
10307
10308 2004-01-14  Jan Hubicka  <jh@suse.cz>
10309
10310         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
10311         impossible.
10312
10313 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
10314
10315         * Makefile.in: Define MAINT from --enable-maintainer-mode.
10316
10317 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10318
10319         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
10320         Calculate always vrsave_mask if TARGET_ALTIVEC.
10321         (rs6000_emit_prologue): Emit code for vrsave
10322         only if TARGET_ALTIVEC_VRSAVE.
10323         (rs6000_emit_epilogue): Likewise.
10324
10325 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
10326
10327         * config/sparc/sparc.md (tie_add32): Fix pasto.
10328         (tie_add64): Likewise.
10329
10330 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10331
10332         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
10333
10334 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10335
10336         * config/iq2000/iq2000-protos.h: Fix comment formatting.
10337         * config/iq2000/iq2000.c: Likewise.
10338         * config/iq2000/iq2000.md: Likewise.
10339
10340 2004-01-14  J. Brobecker  <brobecker@gnat.com>
10341
10342         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
10343         (subrange_type_die): Add handle for nameless subrange types.
10344
10345 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10346
10347         * config/h8300/h8300-protos.h: Replace do_movsi with
10348         h8300_expand_movsi.
10349         * config/h8300/h8300.c (do_movsi): Change to
10350         h8300_expand_movsi.
10351         * config/h8300/h8300.md (movsi): Replace do_movsi with
10352         h8300_expand_movsi.
10353         (movsf): Likewise.
10354
10355 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10356
10357         * config/h8300/h8300.c (dosize): Change to
10358         h8300_emit_stack_adjustment.  Update callers.
10359
10360 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10361
10362         * config/h8300/h8300.md (movstrictqi): Add an alternative with
10363         the source being post_inc.  Tighten the predicate for the
10364         destination to register_operand.
10365         (movstricthi): Likewise.
10366
10367 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10368
10369         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
10370         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
10371         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
10372
10373 2004-01-14  Jan Hubicka  <jh@suse.cz>
10374
10375         Partial fix PR c++/12850
10376         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
10377         at zero nest level.
10378
10379 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
10380
10381         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
10382         pseudo-register.
10383
10384 2004-01-13  Devang Patel <dpatel@apple.com
10385
10386         PR debug/7078
10387         * dbxout.c (dbxout_symbol_name): Emit mangled names for
10388         NAMESPACE_DECL memebers.
10389
10390 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
10391
10392         PR c++/12709
10393         * c-common.c (finish_fname_decls): Use the chain only if the
10394         tree is an expr_stmt.
10395
10396 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
10397
10398         * rtl.def: Add comment about new option in automata_option.
10399
10400         * genautomata.c (PROGRESS_OPTION): New macro.
10401         (progress_flag): New global variable.
10402         (gen_automata_option): Process `progress'.
10403         (transform_insn_regexps, check_unit_distributions_to_automata,
10404         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
10405         expand_automata, write_automata): Print about the progress only if
10406         progress_flag.  Remove fflush.
10407         (initiate_automaton_gen): Process command line flag `-progress'.
10408
10409         * doc/md.texi: Describe the new option.
10410
10411 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10412
10413         * cfg.c (dump_bb): Dump entry edges.
10414
10415 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
10416
10417         * arm.c (thumb_legitimate_address_p): Only allow constant pool
10418         references from SImode.
10419         * arm.md (thumb_movhi_insn): Don't allow minipool references.
10420
10421 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
10422
10423         * system.h (TEXT_SECTION): Poison.
10424         * varasm.c (text_section): Don't use TEXT_SECTION.
10425         * config/sh/sh.c (sh_file_start): Fix a comment typo.
10426         * doc/tm.texi (TEXT_SECTION): Remove.
10427
10428 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
10429
10430         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
10431
10432 2004-01-12  James E Wilson  <wilson@specifixinc.com>
10433
10434         * unwind-libunwind.c: Delete.
10435
10436 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
10437
10438         PR 13656
10439         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
10440         oldtype is set, set *newtypep or *oldtypep too.  Do not set
10441         them at the very end.
10442         (validate_proto_after_old_defn): Restructure for comprehensibility;
10443         make error messages clearer.
10444
10445 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
10446
10447         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
10448         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
10449         * varray.c: No need to prototype error.
10450         (varray_check_failed): Wrap long string onto two lines.
10451         (varray_underflow): New function.
10452
10453 2004-01-13  Steven Bosscher  <stevenb@suse.de>
10454
10455         PR c++/13376
10456         * function.h (struct function): Kill `name' field.
10457         (current_function_name): Make it an extern function.
10458         * function.c (current_function_name): New function.
10459         * graph.c: Update all uses of current_function_name.
10460         * gcse.c: Likewise.
10461         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
10462         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
10463         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
10464         instead of a strcmp with "main".
10465
10466 2004-01-13  Jan Hubicka  <jh@suse.cz>
10467
10468         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
10469
10470         * cgraphunit.c (cgraph_optimize_function):  Always do
10471         optimize_inline_calls when there is always_inline callee.
10472         (cgraph_decide_inlining): Fix formating.
10473         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
10474         functions.
10475         (expand_call_inline): Likewise.
10476         * toplev.h (sorry): Fix prototype.
10477
10478 2004-01-12  Roger Sayle  <roger@eyesopen.com>
10479
10480         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
10481         conditional jumps that drop through to unconditional jumps or the
10482         end of the sequence.
10483
10484 2004-01-13  Jan Hubicka  <jh@suse.cz>
10485
10486         * alias.c (new_alias_set): Construct the alias_set varray.
10487         (init_alias_once): Don't do it here.
10488
10489 2004-01-12  Marc Espie <espie@openbsd.org>
10490
10491         * system.h: handle YYBYACC like YYBISON.
10492
10493 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
10494
10495         PR target/10847
10496         * config.gcc: No longer includes conflicting header sparc/sol2.h when
10497         building on sparc64-*-openbsd*.
10498
10499 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
10500
10501         PR debug/13539
10502         * dbxout.c (dbxout_type): Protected inheritance is not
10503         private but protected.
10504
10505 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
10506
10507         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
10508
10509 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
10510
10511         PR optimization/12508.
10512         * combine.c (try_combine): Remove a dead set in a parallel
10513         even if its destination is a subreg.
10514
10515         Revert:
10516         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
10517         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
10518         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
10519
10520 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
10521
10522         * real.c: Update copyright date.
10523         * emit-rtl.c: Likewise.
10524         * rtl.h: Likewise.
10525         * dwarf2out.c: Likewise.
10526         * config/rs6000/darwin-ldouble.c: Likewise.
10527         * config/rs6000/rs6000.md: Likewise.
10528
10529 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
10530
10531         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
10532         TFmode to SImode libfuncs.
10533
10534 2004-01-12  Roger Sayle  <roger@eyesopen.com>
10535
10536         PR middle-end/11397
10537         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
10538
10539 2004-01-12  Jan Hubicka  <jh@suse.cz>
10540
10541         PR opt/12826
10542         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
10543         stored.
10544
10545         PR opt/12863
10546         * cfgcleanup.c (label_is_jump_target_p): Move to...
10547         * rtlanal.c (label_is_jump_target_p): ... here.
10548         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
10549         edges unified with branch edges.
10550
10551 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
10552
10553         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
10554         high word of an integral CONST_DOUBLE.
10555
10556 2004-01-12  Paul Brook  <paul@codesourcery.com>
10557
10558         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
10559
10560 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
10561
10562         PR target/13585
10563         * sh-protos.h (check_use_sfunc_addr): Declare.
10564         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
10565         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
10566
10567 2004-01-12  Jan Hubicka  <jh@suse.cz>
10568
10569         * alias.c:  Invlude varray.h
10570         (alias_sets): Turn into varray.
10571         (get_alias_set_entry): Use VARRAY; mark inline.
10572         (mems_in_disjoint_alias_sets_p): Mark inline.
10573         (record_alias_subset): Use varray.
10574         (init_alias_once): Initialize varray.
10575         (new_alias_set): Grow array.
10576         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
10577
10578 2004-01-12  Jan Hubicka  <jh@suse.cz>
10579
10580         Partial fix for PR opt/10776 II
10581         * cselib.c: Include params.h
10582         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
10583         locations.
10584         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
10585         * Makefile.in (cselib.o): Depend on params.h
10586
10587 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
10588
10589         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
10590         simplify_unary_operation if the operand has a known mode.
10591
10592 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
10593
10594         PR target/13534
10595         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
10596         predicate to handle 'ld' conform addresses.
10597         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
10598         contraint.
10599         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
10600         are memory contraints.
10601         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
10602         New prototype.
10603         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
10604         Change 'o' to 'Y' constraint.
10605         (*movdf_softfloat64): Ditto.
10606
10607 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
10608
10609         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
10610         brace-enclosed syntax in all C output statements.
10611
10612 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
10613
10614         PR target/13401
10615         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
10616         Objective-C language type value is 14.
10617
10618 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
10619
10620         PR c/12148
10621         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
10622         `int' in a number of places to make sure we always have a SImode
10623         and not a HImode.  Add a 'L' suffix to a number of constants.
10624
10625 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10626
10627         * pa.c: Don't include obstack.h.
10628
10629         * pa.md: Correct constraint in pattern for loading PIC label address.
10630
10631 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10632
10633         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
10634          before defining.
10635
10636 2004-01-11  Steven Bosscher  <stevenb@suse.de>
10637
10638         PR fortran/9972
10639         * toplev.c (rest_of_handle_inline): Also consider functions
10640         for deferral if the language is GNU F77.
10641
10642 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
10643
10644         * c-decl.c (diagnose_arglist_conflict): Add missing space to
10645         diagnostic messages.
10646
10647 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
10648
10649         PR middle-end/13392
10650         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
10651         to drop through label.  Don't fall back to SCC even when conditional
10652         jump has not been found.
10653
10654 2004-01-11  Jan Hubicka  <jh@suse.cz>
10655
10656         * invoke.texi: Fix syntax error in previous patch.
10657
10658         Partial fix for PR opt/10776
10659         * Makefile.in (reload.o): Include param.h
10660         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
10661         * reload.c: Include params.h.
10662         (find_equiv_reg): Work limiting check.
10663         * invoke.texi: Document.
10664
10665 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
10666
10667         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
10668         out-of-bounds accesses to string constants.  Simplify mips16
10669         case accordingly.
10670
10671 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
10672
10673         PR optimization/13469
10674         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
10675         reload_cse_regs (-fnon-call-exceptions only).
10676
10677 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
10678
10679         * config/mcore/lib1.asm: Fix comment formatting.
10680         * config/mcore/mcore-elf.h: Likewise.
10681         * config/mcore/mcore.c: Likewise.
10682         * config/mcore/mcore.h: Likewise.
10683         * config/mcore/mcore.md: Likewise.
10684
10685 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
10686
10687         * c-decl.c (duplicate_decls): Break apart into...
10688         (diagnose_arglist_conflict, validate_proto_after_old_defn)
10689         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
10690         ... these new functions.  Restructure for comprehensibility.
10691         Remove various archaic special cases.  Always report the
10692         location of the previous declaration when a diagnostic is issued.
10693         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
10694         (match_builtin_function_types): Delete unnecessary forward declaration.
10695
10696 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
10697
10698         * genautomata.c (make_automaton, NDFA_to_DFA):
10699         Print progress bars with '.' characters instead of '*'.
10700         (build_automaton): Change notes to match.
10701
10702 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
10703
10704         * config/m32r/m32r.md: Use define_constants for unspec and
10705         unspec_volatile.
10706
10707 2004-01-10  Jan Hubicka  <jh@suse.cz>
10708
10709         PR opt/11635
10710         * expr.c (expand_expr_real):  More curefully expand union casts.
10711
10712 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
10713
10714         * config/m32r/m32r.md (flush_icache): Use 1 for
10715         unspec_volatile.
10716
10717 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
10718             James E Wilson  <wilson@specifixinc.com>
10719
10720         PR debug/12860
10721         * dbxout.c (dbxout_symbol): Remove initialization of
10722         current_sym_code, current_sym_value, and current_sym_addr.
10723         (dbxout_symbol_location): Same.
10724         (dbxout_prepare_symbol): Zero current_sym_code,
10725         current_sym_value, and current_sym_addr.
10726
10727 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
10728
10729         * tree.c (get_unwidened): Reorder conditions so that the null pointer
10730         check is done first.
10731
10732 2004-01-09  Eric Christopher  <echristo@redhat.com>
10733
10734         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
10735         if we're running mark_constant_function.
10736
10737 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
10738
10739         PR target/12561
10740         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
10741
10742 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
10743
10744         PR debug/11231
10745         * dbxout.c (dbxout_type_fields): Return if any item is
10746         error_mark_node or the type is error_mark_node.
10747
10748 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
10749
10750         * config/rs6000/darwin-ldouble.c: Add big comment explaining
10751         exactly what is expected as a 'long double'.
10752         (_xlqadd): When a value to be returned is representable as a
10753         'double', just return it directly, do not construct it using a union.
10754         Also, correct final fixup.
10755         (_xlqmul): Likewise.
10756         (_xlqdiv): Likewise.
10757         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
10758
10759         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
10760
10761 2004-01-09  Richard Henderson  <rth@redhat.com>
10762
10763         * recog.c (constrain_operands): Validate mem operands.
10764
10765 2004-01-09   James E Wilson  <wilson@specifixinc.com>
10766
10767         * gcc.c (init_spec): Remove -lunwind from shared case.
10768         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
10769
10770 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
10771
10772         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
10773         * configure: Regenerate
10774
10775 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
10776
10777         PR c/11234
10778         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
10779         between function and object pointers.
10780         (digest_init): When comparing a pointer to function type to the
10781         target type, only apply TREE_TYPE once to the pointer to function
10782         type.
10783         * except.c (for_each_eh_label_1): Treat data as a pointer to a
10784         function pointer rather than casting it to a function pointer.
10785         (for_each_eh_label): Update caller.
10786         * recog.h (struct insn_data): Use a struct or union for output.
10787         * genoutput.c (output_insn_data): Update.
10788         * final.c (get_insn_template): Update.
10789
10790 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
10791
10792         * expr.h (expand_expr): Make it a macro, not a function.
10793         (expand_expr_real): New function.
10794         * expr.c (store_expr): Adjust logic for deciding whether or not to
10795         copy the value returned by expand_expr.
10796         (expand_expr): Rename to ...
10797         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
10798         calls to language hooks.
10799         * c-common.h (c_expand_expr): Adjust prototype.
10800         * c-common.c (c_expand_expr): Add alt_rtl parameter.
10801         * langhooks-def.h (lhd_expand_expr): Change prototype.
10802         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
10803         * langhooks.h (lang_hooks): Change type of expand_expr.
10804         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
10805         (last_expr_alt_rtl): Likewise.
10806         (expand_expr_stmt_value): Set last_expr_alt_rtl.
10807         (clear_last_expr): Clear it.
10808         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
10809         (expand_end_bindings): Save and restor last_expr_alt_rtl.
10810         * tree.def (RTL_EXPR): Give it an additional operand.
10811         * tree.h (RTL_EXPR_ALT_RTL): New macro.
10812
10813 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10814
10815         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
10816         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
10817
10818 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10819
10820         PR target/13380.
10821         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
10822         or (ne:SI (reg:CC 17) (const_int 0)).
10823         Be specific about modes wherever possible.
10824
10825 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10826
10827         * config/m32r/m32r.c (m32r_expand_block_move): Call
10828         gen_movestrsi_internal with two more arguments.
10829         (m32r_output_block_move): Adjust operand numbers.
10830         Properly update the source and destination pointers.
10831         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
10832         'r+'.  Change the set detinations to match_operand.
10833
10834 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10835
10836         * final.c (FIRST_INSN_ADDRESS): Remove.
10837         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
10838         * system.h (FIRST_INSN_ADDRESS): Poison.
10839         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
10840         * config/m32r/m32r-protos.h: Remove the prototype for
10841         m32r_first_insn_address.
10842         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
10843         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
10844         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
10845
10846 2004-01-09  J. Brobecker  <brobecker@gnat.com>
10847
10848         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
10849         we just created.
10850         (is_ada_subrange_type): DIEs for enumeration subtypes should be
10851         emitted as subrange types too.
10852         (subrange_type_die): Add handling of enumeration subtypes.
10853
10854 2004-01-08  Richard Henderson  <rth@redhat.com>
10855
10856         PR opt/12441
10857         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
10858         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10859         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10860         (ix86_address_cost): Be prepared for SUBREGed registers.
10861         (legitimate_address_p): Accept SUBREGed registers.
10862
10863 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
10864
10865         * Makefile.in: Rename configure.in to configure.ac
10866         * doc/sourcebuild.texi: Likewise.
10867         * configure: Regenerate.
10868         * config.in: Regenerate.
10869
10870 2004-01-08  Stuart Hastings  <stuart@apple.com>
10871
10872         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
10873
10874 2004-01-08  Jan Hubicka  <jh@suse.cz>
10875
10876         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
10877
10878 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
10879
10880         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
10881         (UNSPEC_FIX_TRUNC_TF): New constant.
10882         (movtf_internal): Make splitter active only when insn is active.
10883         (extenddftf2): Rewrite to properly load zero into low part.
10884         (extenddftf2_internal): New.
10885         (extendsftf2): Rewrite.
10886         (truncdftf2): Correct length.
10887         (floatditf2): Delete.
10888         (fix_trunc_helper): New.
10889         (fix_trunctfdi2): Use fix_trunc_helper.
10890         (fix_trunctfsi2): Likewise.fix_trunc
10891         (fix_trunctfsi2_internal): New.
10892
10893         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
10894         addresses are legitimate on Darwin even when flag_pic.
10895         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
10896         non-offsettable addresses for loads of TFmode constants.
10897
10898 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10899
10900         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
10901         variables in the appropriate bss section.
10902
10903 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
10904
10905         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
10906         target_flags has MASK_POWERPC64 when -m64.
10907         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
10908         to 620, 630, power3, power4 and rs64a entries.
10909         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
10910
10911 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
10912
10913         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
10914         floating-point constants.
10915
10916 2004-01-08  J. Brobecker  <brobecker@gnat.com>
10917
10918         * dwarf2out.c (subrange_type_die): Add context_die parameter.
10919         Create the subrange_type DIE using the given context DIE.
10920         (modified_type_die): Update call to subrange_type_die.
10921
10922 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
10923
10924         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
10925         Add multiple-include guard.
10926
10927 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
10928
10929         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
10930         all vector constant loadable by vsplt*.
10931         (output_vec_const_move): Likewise.
10932
10933 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
10934
10935         PR c/6024
10936         * c-typeck.c (comptypes): Only treat enumerated types in the same
10937         translation unit as compatible with each other when they are the
10938         same type.
10939         * doc/extend.texi: Update.
10940
10941 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
10942
10943         PR c/12165
10944         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
10945         array type from the array element type.
10946
10947 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
10948
10949         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
10950         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
10951         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
10952         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
10953         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
10954
10955 2004-01-06  Eric Christopher  <echristo@redhat.com>
10956
10957         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
10958         (DWARF2_DEBUGGING_INFO): Define.
10959         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
10960         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
10961         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
10962         for irix as.
10963         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
10964         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
10965         * config/mips/iris5gas.h: Ditto.
10966         (DBX_DEBUGGING_INFO): Remove.
10967         (DWARF2_DEBUGGING_INFO): Ditto.
10968         (MIPS_DEBUGGING_INFO): Ditto.
10969         (PREFERRED_DEBUGGING_TYPE): Ditto.
10970         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
10971         (PREFERRED_DEBUGGING_TYPE): Ditto.
10972         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
10973         * config/mips/elf64.h: Ditto.
10974
10975 2004-01-06  Jan Hubicka  <jh@suse.cz>
10976
10977         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
10978         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
10979
10980 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
10981
10982         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
10983         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
10984         * config/rs6000/darwin-ldouble.c: New.
10985
10986         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
10987         for constants.
10988         (constant_subword): Delete.
10989         * rtl.h (constant_subword): Delete prototype.
10990         (immed_double_const): Is not in varasm.c.
10991         * simplify-rtx.c (simplify_immed_subreg): New.
10992         (simplify_subreg): Use simplify_immed_subreg.
10993
10994         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
10995         than trying to generate RTL directly.
10996         (fix_trunctfsi2): Use expand_fix rather than trying to generate
10997         RTL directly.
10998
10999         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
11000
11001 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
11002
11003         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
11004         function into a separate macro.
11005         (read_only_data_section): Add void argument.
11006         (private_data_section): Same.
11007         (read_only_private_data_section): Same.
11008         (toc_section): Same.
11009
11010 2004-01-06  Jan Hubicka  <jh@suse.cz>
11011
11012         * invoke.texi:  Remove typo in last change.
11013
11014         PR target/10301
11015         * config.gcc: Accept opteron and athlon-64 as variants
11016         of k8.
11017         * i386.c (override_options): Likewise.
11018         * invoke.texi (i386 -mtune): Expand documentation.
11019
11020 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
11021
11022         * alias.c: Fix comment typos.
11023         * builtins.c: Likewise.
11024         * cfg.c: Likewise.
11025         * df.c: Likewise.
11026         * dominance.c: Likewise.
11027         * dwarf2out.c: Likewise.
11028         * emit-rtl.c: Likewise.
11029         * expr.c: Likewise.
11030         * final.c: Likewise.
11031         * fold-const.c: Likewise.
11032         * gcse.c: Likewise.
11033         * genattrtab.c: Likewise.
11034         * genrecog.c: Likewise.
11035         * gensupport.c: Likewise.
11036         * ggc-zone.c: Likewise.
11037         * integrate.c: Likewise.
11038         * local-alloc.c: Likewise.
11039         * loop.c: Likewise.
11040         * recog.c: Likewise.
11041         * regmove.c: Likewise.
11042         * reg-stack.c: Likewise.
11043         * reorg.c: Likewise.
11044         * rtlanal.c: Likewise.
11045         * rtl.h: Likewise.
11046         * sched-ebb.c: Likewise.
11047         * simplify-rtx.c: Likewise.
11048         * toplev.c: Likewise.
11049         * varasm.c: Likewise.
11050
11051 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
11052
11053         * doc/install.texi: Fix typos.
11054         * doc/invoke.texi: Likewise.
11055         * doc/md.texi: Likewise.
11056
11057 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
11058
11059         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
11060
11061 2004-01-06  Jan Hubicka  <jh@suse.cz>
11062
11063         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
11064         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
11065         of MMX_REGPARM.
11066         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
11067         add MMX_REGPARM.
11068         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
11069         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
11070         (MMX_REGPARM_MAX): Similarly for -mmmx.
11071
11072 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11073
11074         * config/sh/linux.h: Fix comment formatting.
11075         * config/sh/netbsd-elf.h: Likewise.
11076         * config/sh/sh.c: Likewise.
11077         * config/sh/sh.h: Likewise.
11078         * config/sh/vxworks.h: Likewise.
11079
11080 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11081
11082         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
11083         * toplev.c (output_file_directive): Don't use
11084         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
11085
11086 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
11087
11088         * toplev.c: Fix broken checkin of 2003-12-30.
11089
11090 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
11091
11092         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
11093         (USING_MMAP): We don't support non-mmap.
11094         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
11095         large objects.
11096         (struct page_entry): Remove bytes_free.
11097         (struct page_table_chain): Remove.
11098         (struct globals): Remove page_table member.
11099         (loookup_page_table_entry): Function deleted.
11100         (set_page_table_entry): Ditto.
11101         (ggc_allocated_p): No longer need page table lookups.
11102         (ggc_marked_p): Ditto.
11103         (alloc_small_page): Don't care about bytes_free anymore.
11104         (alloc_large_page): Round up size.
11105         (ggc_alloc_zone_1): Mark large objects as such, and calculate
11106         their size the new way.
11107         Remove page table lookups and setting.
11108         (ggc_get_size): Calculate large object size the new way.
11109         (sweep_pages): Redo to account for fact that we no longer have
11110         bytes_free.
11111         (ggc_collect): No longer need to reincrement bytes_free.
11112         (ggc_pch_alloc_object): Handle new large objects properly.
11113         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
11114
11115 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11116
11117         * doc/invoke.texi: Remove a page break.
11118
11119 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11120
11121         * config/avr/avr.c (avr_output_function_prologue): Remove an
11122         extra pair of curly braces.
11123
11124 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11125
11126         * config/mn10300/mn10300.c: Fix comment formatting.
11127         * config/mn10300/mn10300.h: Likewise.
11128
11129 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11130
11131         * tree.h: Update documentation on nothrow_flag.
11132         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
11133         types.
11134
11135 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
11136
11137         * doc/invoke.texi: Remove traces of dead ports.
11138
11139 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
11140
11141         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
11142         option.
11143
11144 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
11145
11146         PR target/12945
11147         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
11148         counter labels.
11149         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
11150         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
11151         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
11152         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
11153         (mips_symbol_insns): Don't trust the local/global classification.
11154         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
11155         (override_options): Make -mabicalls -fno-unit-at-a-time imply
11156         -mno-explicit-relocs.
11157         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
11158         between local and global symbols.
11159
11160 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
11161
11162         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
11163         (mips_preferred_reload_class): Declare.
11164         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
11165         (EXTRA_CONSTRAINT): Update accordingly.
11166         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
11167         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
11168         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
11169         mips_dangerous_for_la25_p.
11170         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
11171         if mips_dangerous_for_la25_p.
11172
11173 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
11174
11175         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
11176         warning.
11177
11178 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
11179
11180         * configure.ac: Use AC_PROG_CPP_WERROR.
11181         * configure: Regenerate.
11182
11183 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
11184
11185         * .cvsignore: Add autom4te.cache.
11186
11187 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
11188
11189         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
11190         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
11191         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
11192         then architecture options, then ABI options.  General rewording.
11193
11194 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
11195
11196         PR c/3414
11197         * doc/extend.texi: Clarify definition of malloc attribute.
11198
11199 2004-01-04  Jan Hubicka  <jh@suse.cz>
11200
11201         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
11202         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
11203         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
11204         (cgraph_inline_p): Add extra argument reason.
11205         * cgraphunit.c: Minor formating fixes.
11206         cgraph_first_inlined_callee): New functions.
11207         (record_call_1): Record builtins too.
11208         (cgraph_analyze_function): Update inline_failed messages.
11209         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
11210         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
11211         (cgraph_check_inline_limits): Likewise; Add argument reason.
11212         (cgraph_set_inline_failed): New static function.
11213         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
11214         reasons.
11215         (cgraph_inline_p): Add new argument reason.
11216         * tree-inline.c (expand_call_inline):  Update warning.
11217
11218 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
11219
11220         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
11221         with modern equivalents.
11222         * configure: Regenerate.
11223
11224         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
11225         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
11226         * configure: Regenerate.
11227
11228         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
11229
11230         * configure.in: Rename to configure.ac.
11231         * configure.ac: Renamed from configure.in; make minimum necessary
11232         changes for autoconf 2.5x.
11233         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
11234         * configure: Regenerate with autoconf 2.57.
11235
11236 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
11237
11238         * config/mips/linux.h: Fix comment formatting.
11239         * config/mips/mips.c: Likewise.
11240         * config/mips/mips.h: Likewise.
11241         * config/mips/mips.md: Likewise.
11242         * config/mips/netbsd.h: Likewise.
11243         * config/mips/windiss.h: Likewise.
11244
11245 2004-01-02  Richard Henderson  <rth@redhat.com>
11246
11247         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
11248         for sse and 387; add suppression for mmx.
11249
11250 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
11251
11252         * loop.c (loop_optimize): Free all loops_info's mems.
11253
11254         * c-typeck.c (finish_init): Free spelling_base before
11255         setting it again.
11256
11257         * cfgloop.c (flow_loops_find): Always free the sbitmap
11258         headers.
11259
11260         * predict.c (estimate_probability): Free bbs after being
11261         done with it.
11262
11263 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
11264
11265         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
11266         const_8bit_operand and call_address_operand.
11267
11268 2004-01-02  Jan Hubicka  <jh@suse.cz>
11269
11270         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
11271         when there is nothing to inline but warnings are requested.
11272         (cgraph_decide_inlining):  Fix memory leak.
11273
11274 2004-01-02  Jan Hubicka  <jh@suse.cz>
11275
11276         * expr.c (store_constructor):  Fix pasto in previous patch.
11277
11278 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
11279
11280         * config/i386/cygming.h: Fix comment formatting.
11281         * config/i386/djgpp.h: Likewise.
11282         * config/i386/gthr-win32.c: Likewise.
11283         * config/i386/i386-interix.h: Likewise.
11284         * config/i386/i386.c: Likewise.
11285         * config/i386/i386.h: Likewise.
11286         * config/i386/openbsd.h: Likewise.
11287         * config/i386/winnt.c: Likewise.
11288         * config/i386/xm-mingw32.h: Likewise.
11289
11290 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
11291
11292         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
11293         copyright and last modification dates.
11294
11295 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
11296
11297         * doc/install.texi (Specific): Mention x86_64.
11298
11299 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11300
11301         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
11302         Call force_operand on plus_constant result.
11303
11304 2004-01-01  Jan Hubicka  <jh@suse.cz>
11305
11306         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
11307         * expr.c (store_constructor): Use vec_init pattern.
11308         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
11309         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
11310         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
11311         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
11312         New patterns.
11313         (sse2_unpc?pd): Fix pattern.
11314         (sse2_movlpd): Kill.
11315         (sse2_movsd): Deal with movlpd too.
11316         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
11317         (ix86_expand_vector_init): New.
11318         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
11319         * md.texi (vec_set, vec_extract): Document
11320
11321 2003-12-31  Jan Hubicka  <jh@suse.cz>
11322
11323         PR opt/13473
11324         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
11325         ASM input operands
11326
11327         PR opt/12617
11328         * toplev.c (dump_file_index): Reorder ce3 and bbro.
11329         (dump_file): Likewise.
11330         (rest_of_compilation): Likewise.
11331
11332         PR debug/13367
11333         * cgraph.c (cgraph_function_possibly_inlined):  Even with
11334         flag_really_no_inline we inline always_inline functions.
11335         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
11336         for non-always_inline functions when there is flag_really_no_inline.
11337         (cgraph_decide_inlining): Limit work done when not inlining.
11338         (cgraph_decide_inlining_incrementally): Likewise.
11339         (cgraph_optimize_function): Check whether something got inlined.
11340         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
11341         extern inline functions when not inlining.
11342
11343         * opts.c (decode_options):  Disable crossjumping at -O1
11344         * invoke.texi (-O1): Document change.
11345
11346 See ChangeLog.10 for earlier changes.