OSDN Git Service

5868904dc0634932c42607fb2ffebaedfa74e285
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2
3         * rtl.def (define_combine): Remove.
4
5 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
6
7         * config/h8300/h8300.md: Tweak formatting.
8
9 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
10
11         * config/h8300/h8300.md (*cmphi_h8300): Rename to
12         *cmphi_h8300_znvc.
13         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
14
15 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
16
17         PR bootstrap/14356
18         * gcc.c (process_command): Remove const-qualification from argv.
19         (main): Likewise.
20
21 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
22
23         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
24         pushqi1_h8300hs_advanced.  Adjust its caller.
25         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
26         Adjust its caller.
27
28 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
29
30         * Makefile.in (install-libgcc, install-multilib): Pass
31         mkinstalldirs var to libgcc.mk.
32
33 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
34
35         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
36         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
37
38 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
39
40         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
41         * config/h8300/h8300.md: Split several peephole2's, each into
42         two.
43
44 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
45
46         * dominance.c (recount_dominator): Handle postdominators.
47
48 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
49
50         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
51         (NUM_SYMBOL_TYPES): Likewise.
52         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
53         (mips_unspec_address): Declare.
54         (mips_gotoff_page, mips_gotoff_global): Delete.
55         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
56         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
57         (mips_symbolic_constant_p, mips_symbolic_address_p)
58         (mips_symbol_insns): Handle new symbol types.
59         (general_symbolic_operand): New predicate.
60         (mips_unspec_address): Make extern.
61         (mips_gotoff_page, mips_gotoff_global): Delete.
62         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
63         Handle new symbol types.
64         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
65         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
66         mips_unspec_address directly.
67         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
68         the documentation of -mexplicit-relocs.
69
70 2004-03-01  Jeff Law  <law@redhat.com>
71
72         * fold-const.c (fold): An equality comparison of a non-weak object
73         against zero has a known result.  Similarly an equality comparison
74         of the address of two non-weak, unaliased symbols has a known result.
75  
76         * ggc-page.c (struct page_entry): New field PREV.
77         (ggc_alloc): Update PREV field appropriately.
78         (sweep_pages): Likewise.
79         (ggc_free): Likewise.  Use PREV field rather than loop to
80         improve ggc_free performance.
81  
82 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
83
84         * config/mips/mips.c (mips_output_division): Use the division
85         instruction to fill the delay slot of a zero check.
86         (mips_idiv_insns): Adjust accordingly.
87
88 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
89
90         * config.gcc: Create a default tmake_file for linux, and use
91         it in all but two linux clauses.  Comment those two.
92
93 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
94
95         * combine.c (try_combine):  Do not refer to is_replaced.
96         (gen_lowpart_for_combine):  Perverse subregs now have a
97         more politically correct name.
98         * cse.c (cse_insn): Likewise.
99         * jump.c: Fix bogus reference to delete_insn.
100
101 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
102
103         PR debug/14328
104         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
105         constants as signed values.
106
107         PR middle-end/13448
108         * c-tree.h (readonly_warning): Rename to ...
109         (readonly_error): ... this.
110         * c-typeck.c (build_unary_op): Adjust accordingly.
111         (readonly_warning): Rename to ...
112         (readonly_error): ... this and issue errors, not warnings.
113         (build_modify_expr): Call readonly_error, not readonly_warning.
114         (c_expand_asm_operands): Likewise.
115         * tree-inline.c (optimize_inline_calls): Do not inline functions
116         after errors have occurred.
117
118 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
119
120         * configure.ac: Rearrange some threading code for clarity;
121         add section comment.
122         * configure: Regenerate.
123
124 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
125
126         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
127         typos.
128         * doc/cppopts.texi: Fix a typo.
129
130 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
131
132         * config/i386/i386.md: Fix formatting.
133
134 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
135
136         * configure.ac: Add some comments delineating sections of code.
137
138         * doc/install.texi: Note that libada uses autoconf 2.57 also.
139
140         * doc/install.texi: Fix idiot typo in previous commit.
141
142         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
143
144 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
145
146         * config/h8300/h8300.md: Add comments about peephole2's.
147
148 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
149
150         * config/h8300/h8300.md: Tweak operand numbers of some
151         peephole2's.
152
153 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
154
155         * config/h8300/h8300.md: Tweak comments about peephole2's.
156
157 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
158
159         PR middle-end/14203
160         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
161         instead of testing whether DECL_RTL is not NULL.
162
163 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
164
165         * config/sh/sh.c: Fix formatting.
166
167 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
168
169         * config/sh/sh.c: Convert to ISO-C.
170
171 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
172         
173         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
174         my previous patch.
175
176         * config/darwin.h (machopic_finish): Output stub even if the
177         symbol is already defined.
178
179 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
180
181         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
182
183 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
184
185         * genattr.c (main): Don't define
186         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
187         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
188         (DFA_PIPELINE_INTERFACE): Likewise.
189         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
190         (DFA_PIPELINE_INTERFACE): Likewise.
191
192 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
193
194         * config/mips/mips.md (tstsi, tstdi): Delete.
195
196 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
197
198         * config/mips/mips.c (override_options): Remove an obsolete 
199         duplicate definition of the "e" constraint.
200         * config/mips/mips.h: Update a comment accordingly.
201
202 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
203
204         * config/mips/mips.md: Complete the unfinished R4000
205         multiply/shift errata workaround.  Improve documentation.
206         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
207         has a hilo hazard.
208         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
209         (muldi3, muldi3_internal): Likewise.
210         (muldi3_internal2): Remove, replacing with...
211         (muldi3_mult3, muldi3_r4000): ...these new patterns.
212         (mulsidi3): Take the errata into account.
213         (mulsidi3_32bit): Remove, replacing with...
214         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
215         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
216         (umulsidi3): Take the errata into account.
217         (umulsidi3_32bit): Remove, replacing with..
218         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
219         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
220         TARGET_FIX_R4000.
221         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
222         (smuldi3_highpart, umuldi3_highpart): Likewise.
223         * doc/invoke.texi: Document the errata workaround.
224
225 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
226
227         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
228         * config/mips/mips.h (MASK_FIX_SB1): Bump.
229         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
230         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
231         * config/mips/mips.c (mips_idiv_insns): New function.
232         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
233         (mips_output_division): Add a workaround for the R4000 divide/shift
234         errata.
235         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
236         the length of an "idiv" instruction.
237         * doc/invoke.texi: Document the new switches.
238
239 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
240
241         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
242         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
243
244 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
245
246         PR optimization/14229
247         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
248
249 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
250
251         * fold-const.c (fold): Strip NOPs that change the signedness
252         for RSHIFT too.  Expand comment.
253
254 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
255
256         PR optimization/7871
257         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
258         from or to call insns.
259
260 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
261
262         PR optimization/7871
263         * flow.c (propagate_one_insn): Interpret calls as setting global
264         registers, not merely clobbering them.
265
266 2004-02-27  Dale Johannesen  <dalej@apple.com>
267
268         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
269         config/darwin-protos.h:  Ditto.
270         config/darwin.h:  Remove call to it.
271         * combine.c (distribute_notes): Do not place a REG_DEAD note
272         when value is both set and used.
273
274 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
275
276         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
277         as well.
278         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
279         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
280
281 2004-02-27  Andrew Pinski  <apinski@apple.com>
282
283         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
284         Speedup common case of the type values being in the same order.
285
286 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
287
288         * config/ia64/ia64.h (no-inline-float-divide): New option.
289         * config/ia64/ia64.h (no-inline-int-divide): New option.
290         * config/ia64/ia64.h (no-inline-sqrt): New option.
291         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
292         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
293         * config/ia64/ia64.c (ia64_override_options): Modify error
294         checking for inlined division/sqrt.
295
296 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
297
298         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
299         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
300         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
301         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
302         copyright.
303
304 2004-02-27  Paul Brook  <paul@codesourcery.com>
305
306         * function.c (assign_parms): Don't count pretend args for alignment.
307
308 2004-02-27  Richard Henderson  <rth@redhat.com>
309
310         * passes.c: New file.
311         * Makefile.in (OBJS-common): Add it.
312         * diagnostic.c (rtl_dump_and_exit): Move decl ...
313         * flags.h (rtl_dump_and_exit): ... here.
314         * output.h (size_directive_output, last_assemble_variable_decl): 
315         Move from toplev.c.
316         * rtl.h (reg_alloc): Move from toplev.c.
317         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
318         struct dump_file_info, enum dump_file_index, dump_file_tbl,
319         open_dump_file, close_dump_file, rest_of_decl_compilation,
320         rest_of_type_compilation, rest_of_handle_final,
321         rest_of_handle_delay_slots, rest_of_handle_stack_regs, 
322         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
323         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
324         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
325         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
326         rest_of_handle_tracer, rest_of_handle_if_conversion, 
327         rest_of_handle_if_after_combine, rest_of_handle_web,
328         rest_of_handle_branch_prob,
329         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
330         rest_of_handle_addressof, rest_of_handle_sibling_calls, 
331         rest_of_handle_jump_bypass, rest_of_handle_inlining,
332         rest_of_handle_null_pointer, rest_of_handle_combine,
333         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
334         rest_of_handle_gcse, rest_of_handle_loop_optimize, 
335         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
336         (decode_d_option): Use enable_rtl_dump_file.
337         (compile_file, finalize, do_compile): Move profile+combine+graph
338         cleanup to finish_optimization_passes.
339         * toplev.h (init_optimization_passes, finish_optimization_passes,
340         enable_rtl_dump_file): Declare.
341
342 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
343             Roger Sayle  <roger@eyesopen.com>
344
345         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
346         operands to build a tree with swapped operands.
347         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
348         'unsignedp' predicate to specify the signedness.
349
350 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
351
352         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
353         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
354         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
355         comment typos and formatting.  Follow spelling conventions.
356
357 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
358
359         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
360         fix_truncsfsi2.
361
362         * config/rs6000/spe.md: Delete spe_efsctuiz.
363         Add spe_fixuns_truncsfsi2.
364         Add spe_fix_truncsfsi2.
365  
366 2004-02-26  Eric Christopher  <echristo@redhat.com>
367
368         * c-lex.c (c_lex_string_translate): New variable.
369         (lex_string): Use to determine string translation.
370         * c-pragma.h: Prototype.
371         * c-parse.in (start_string_translation): New. Set above.
372         (stop_string_translation): Ditto.
373         (attribute, attribute_list, asm_def, asm_stmt,
374         asm_operand): Use above functions.
375         * cp/parser.c (cp_parser_declaration): Translate strings
376         unless token is RID_EXTERN. Set c_lex_string_translate
377         for recursive use.
378         (cp_parser_asm_definition): Only translate argument strings
379         to asms.
380         (cp_parser_asm_operand_list): Ditto.
381         (cp_parser_attribute_list): Do not translate attribute strings.
382
383 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
384
385         * stmt.c (expand_start_case_dummy): Remove.
386         * tree.h: Remove the corresponding prototype.
387
388 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
389
390         * builtins.c (apply_args_register_offset): Remove.
391         * tree.h: Remove the corresponding prototype.
392
393 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
394
395         * stor-layout.c (is_pending_size): Remove.
396         * tree.h: Remove the corresponding prototype.
397
398 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
399
400         * recog.c (validate_replace_src): Remove.
401         * recog.h: Remove the corresponding prototype.
402
403 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
404
405         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
406         MAYBE_REG_PARM_STACK_SPACE.
407         * function.c: Likewise.
408         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
409         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
410         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
411         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
412
413 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
414
415         * c-decl.c (c_expand_deferred_function): Remove.
416         * c-tree.h: Remove the corresponding prototype.
417
418 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
419
420         * postreload.c (reload_cse_move2add): Generate just a PLUS
421         instead of an entire SET.
422
423 2004-02-26  Jan Hubicka  <jh@suse.cz>
424
425         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
426         /pentium4m.
427         * i386.c (override_options): Add support for new CPUs.
428         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
429         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
430         constants.
431         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
432
433 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
434
435         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
436
437 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
438
439         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
440         (sparc_emit_fixunsdi): New prototype.
441         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
442         (sparc_emit_fixunsdi): New function.
443         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
444         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
445         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
446         to sparc_emit_floatunsdi.
447         (fixuns_truncsfdi2): New expander.
448         (fixuns_truncdfdi2): Likewise.
449
450 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
451
452         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
453         unless HAVE_cc0.
454
455 2004-02-25  Richard Henderson  <rth@redhat.com>
456
457         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
458         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
459         use (op0-op1) == 0 if op0 is a pointer.
460         * config/alpha/alpha.md (cmpdi): Use some_operand.
461         (three comparison combine splits): Remove.
462
463 2004-02-25  Richard Henderson  <rth@redhat.com>
464
465         PR c/12794
466         * c-common.c (handle_alias_attribute): Reject the attribute if
467         current_function_decl is set.
468
469 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
470
471         * config.gcc: Add comment describing extra_gcc_objs.
472         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
473         * configure.ac (extra_gcc_objs): New substitution variable.
474         (host_extra_gcc_objs): Don't substitute.
475         * configure: Regenerate.
476         * Makefile.in: Use extra_gcc_objs.
477
478 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
479
480         * doc/contrib.texi: Add an entry for myself.
481
482 2004-02-25  Jan Hubicka  <jh@suse.cz>
483
484         * basic-block.h (make_eh_edge, break_superblocks): Declare.
485         * cfgbuild.c (make_eh_edge):  Make global.
486         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
487         * except.c (build_post_landing_pads, connect_post_landing_pads,
488         dw2_build_landing_pads, sjlj_emit_function_enter,
489         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
490         sjlj_build_landing_pads): Update CFG.
491         (emit_to_new_bb_before): New function.
492         (finish_eh_generation): Do not rebuild the CFG.
493
494 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
495
496         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
497         target_cpu_default defines.
498         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
499         * pa.h (TARGET_DEFAULT): Likewise.
500
501 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
502
503         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
504         comparisons with regard to signedness.
505
506 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
507
508         * arm.c (thumb_legitimize_address): New function.
509         * arm-protos.h: Prototype it.
510         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
511         (LEGITIMIZE_ADDRESS): Use it.
512
513 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
514
515         * reload1.c (reload): Only spill eliminable register with multiple
516         adjacent elimination alternatives if all alternatives fail.
517
518 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
519
520         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
521         is -4095...+4095 inclusive.
522
523 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
524
525         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
526         the bootstrap failure with Sun CC 5.4 and 5.5.
527
528 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
529
530         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
531         which modifies NEWREG.
532         (cse_condition_code_reg): Update the mode of CC_REG in
533         CC_SRC_INSN on our own.
534
535 2004-02-24  Michael Matz  <matz@suse.de>
536
537         * config/i386/i386.c (ix86_comp_type_attributes): Check for
538         regparm attributes.
539
540 2004-02-24  Richard Henderson  <rth@redhat.com>
541
542         * toplev.c (dump_file_tbl): Rename from dump_file.
543         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
544         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
545         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
546         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
547         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
548         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
549         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
550         s/rtl_dump_file/dump_file/g.
551
552 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
553
554         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
555         (spe_fixuns_truncsfsi2): Delete.
556
557         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
558         (fixuns_truncsfsi2): Delete.
559
560 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
561
562         PR/14240
563         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
564
565 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
566
567         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
568
569 2004-02-24  Jason Merrill  <jason@redhat.com>
570
571         * tree.c (check_qualified_type): New fn.
572         (get_qualified_type): Use it.  If type already has the desired
573         quals, just return it.
574         * tree.h: Declare it.
575
576 2003-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
577
578         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
579         TARGET_SCHED_FINISH_GLOBAL): New macros.
580
581         * target.h (md_init_global, md_finish_global): Function
582         declarations corresponding to new target macros.
583
584         * haifa-sched.c (sched_init, sched_finish): Allow target to
585         call the new schedular hooks.
586
587         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
588         call to update_life_info.
589
590         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
591         flag_schedule_insns for SH4.
592
593         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
594         find_set_regmode_weight, find_insn_regmode_weight,
595         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
596         sh_variable_issue, high_pressure, ready_reorder,
597         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
598         functions used to throttle the insn movement in first
599         scheduling pass for SH.
600
601         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
602         TARGET_SCHED_FINISH_GLOBAL.
603
604 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
605
606         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
607         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
608         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
609         symbols in sections named by the user.
610         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
611         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
612         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
613         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
614         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
615         the above.
616         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
617         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
618         one more pseudo to further improve code generation.
619         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
620         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
621         inside UNSPEC.
622         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
623         * config/frv/frv.c (frv_legitimate_address_p): Added
624         allow_double_reg_p argument.  Adjust all callers.  Use it to
625         decide whether to enable double-register indirect addressing.
626         (frv_funcdesc_alias_set): Remove.
627         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
628         register.  Emit movdi_ldd.
629         (ldd_address_operand): New.
630         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
631         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
632         (PREDICATE_CODES): Add ldd_address_operand.
633         * config/frv/frv.md (movdi_ldd): New.
634         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
635         intermediate computations if possible.
636         (symGOTOFF2reg_i): Fix harmless typo.
637         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
638         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
639         relocated p_vaddr to vaddr type.
640         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
641         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
642         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
643         MEM, or use a funcdesc alias set.  Use regular move instead of
644         ldd.
645         (dbl_memory_one_insn_operand): Recognize function descriptors by
646         type or by alias set, and don't split them.
647         * config/frv/frv.md (call, call_value): Never use call_internal
648         for fdpic.
649         (call_internal, call_value_internal): Never match for FDPIC.
650         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
651         call_value_fdpicsi): Require FDPIC.
652         (ldd): Removed.
653         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
654         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
655         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
656         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
657         FDPIC.  Compute data base address.
658         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
659         before the other self-specs are processed.
660         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
661         Build with -fPIC.
662         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
663         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
664         inhibit_libc is defined.
665         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
666         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
667         __FRV_FDPIC__.
668         (__RELOC_POINTER): Define.
669         (_Unwind_IteratePhdrCallback): Use it.
670         * config/frv/frv.h (Twrite): Define.
671         (TRANSFER_FROM_TRAMPOLINE): Use it.
672         * config/frv/linux.h (INVOKE__main): Undefine.
673         (Twrite): Override.
674         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
675         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
676         (-mlibrary-pic): Emphasize that this option generates EABI code.
677         (-mcpu): Add fr550.
678         (-mpack): Remove.
679         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
680         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
681         and CONSTs in FDPIC mode.
682         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
683         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
684         * config/frv/frv.c (move_source_operand): Don't accept symbolic
685         constants.
686         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
687         rather than 'i' constraint for the 2-instruction alternative.
688         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
689         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
690         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
691         EXTRA_CONSTRAINT_FOR_Y.
692         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
693         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
694         (addsi3): Change 'Y' constraint to 'Q'.
695         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
696         * reload.c (CONST_POOL_OK_P): New macro.
697         (find_reloads): Use it to decide whether a constant can be forced
698         into memory.
699         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
700         constant satisfies got12_operand.
701         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
702         (frv_legitimate_address_p): Check for valid unspec offsets using
703         got12_operand rather than frv_legitimate_fdpic_operand_p.
704         (frv_legitimate_fdpic_operand_p): Delete.
705         (frv_emit_movsi): Abort if we try to use the FDPIC register during
706         or after reload.
707         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
708         TARGET_FDPIC.
709         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
710         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
711         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
712         (frv_fdpic_fptr_operand): Don't declare here.
713         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
714         rather than fdpic_got12_operand.
715         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
716         got12_operand and const_unspec_operand.
717         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
718         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
719         (symbolic_operand): Remove.
720         (const_unspec_operand): New predicate.
721         * config/frv/frv.md (*movsi_got): Use got12_operand.
722         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
723         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
724         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
725         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
726         * config/frv/frv.c (frv_unspec): New structure.
727         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
728         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
729         validate CONST indices.  Use frv_output_const_unspec to print them.
730         (frv_print_operand): Update call to unspec_got_name.  Use
731         frv_output_const_unspec to print constant unspecs.
732         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
733         Reject UNSPECs otherwise.
734         (unspec_got_name): Take the relocation number as argument, not an
735         rtx containing it.
736         (frv_output_addr_const_extra): Remove, replacing with...
737         (frv_output_const_unspec): ...this new function.
738         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
739         (gpr_or_int12_operand): Use fdpic_got12_operand.
740         (dbl_memory_one_insn_operand): Likewise.
741         (fdpic_got12_operand): Use frv_const_unspec_p.
742         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
743         are already legitimate.  Use frv_small_data_reloc_p when deciding
744         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
745         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
746         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
747         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
748         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
749         label, for real this time.
750         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
751         representation of visibility.
752         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
753         such.
754         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
755         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
756         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
757         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
758         it was explicitly disabled.
759         (frv_stack_info): There is no need to save the link register in every
760         frame unless TARGET_LINKED_FP is true.
761         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
762         frame pointer if the stack pointer might change value.
763         (frv_return_addr_rtx): Check and process "count" argument.
764         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
765         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
766         (frv_find_base_term): Declare.
767         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
768         (FIND_BASE_TERM): Define.
769         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
770         small_data_register_operand, small_data_symbolic_operand.  Add
771         symbolic_operand.
772         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
773         (frv_print_operand_memory_reference, output_move_single): Remove
774         special handling for unlegitimized sdata addresses.
775         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
776         and symbolic addresses.
777         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
778         (frv_find_base_term): New function.
779         (int_2word_operand): Check specifically for symbolic address constants.
780         (pic_register_operand, pic_symbolic_operand): Delete.
781         (small_data_register_operand, small_data_symbolic_operand): Delete.
782         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
783         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
784         (move_source_operand): Only accept CONSTs if they're a two-insn
785         symbolic constant.
786         (fdpic_got12_operand): Don't require TARGET_FDPIC.
787         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
788         using gen_symGOTOFF2reg*.
789         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
790         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
791         themselves a cost of 3 insns.
792         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
793         Change predicate to symbolic_operand.
794         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
795         (*movsi_lda_sdata): Delete.
796         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
797         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
798         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
799         frv-*-*linux*.
800         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
801         label.
802         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
803         -multilib-library-pic.
804         (LINK_SPEC): Add -z text for -mfdpic.
805         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
806         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
807         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
808         Override.
809         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
810         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
811         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
812         crtstuff-generated files.
813         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
814         * config.gcc: Add frv-*-*linux*.
815         * config/frv/linux.h, config/frv/t-linux: New.
816         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
817         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
818         when -mfdpic even if a linker script is explicitly listed.
819         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
820         * config/frv/frv.c (frv_override_options): Clear asm_out
821         unaligned_op for SImode on FDPIC.
822         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
823         argument passed to decl_readonly_section.
824         (frv_assemble_integer): Revert 2003-09-30's change, but make the
825         whole block run with FDPIC even with -fno-PIC.
826         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
827         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
828         symbol or label plus offset to memory.
829         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
830         GOTOFF and GPREL for LABEL_REF.
831         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
832         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
833         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
834         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
835         * doc/invoke.texi: Document them.
836         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
837         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
838         (frv_splittable_got_operand): Removed.
839         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
840         LO_SUM.  Add comments.
841         (frv_override_options): Moved enabling of FDPIC to
842         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
843         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
844         (frv_legitimize_fdpic_address): Don't duplicate logic in
845         frv_emit_movsi.
846         (frv_gen_GPsym2reg): New.
847         (unspec_got_name): Added gprel.
848         (frv_expand_fdpic_call): Add support for inlining PLTs.
849         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
850         (gpr_or_int12_operand): Added GPREL12.
851         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
852         (small_data_symbolic_operand): Fail if FDPIC.
853         (fdpic_splittable_got_operand): Removed.
854         (fdpic_got12_operand): Added GPREL12.
855         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
856         when appropriate.  Fix sdata GOTOFF.
857         (frv_legitimate_constant_p): Require legitimate PIC operand for
858         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
859         (frv_assemble_integer): Move FDPIC funcdesc handling out of
860         flag_pic case.
861         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
862         frv_assemble_integer fails.
863         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
864         (SUBTARGET_DRIVER_SELF_SPECS): New.
865         (ASM_SPEC): Don't pass -mno-fdpic.
866         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
867         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
868         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
869         -multilib-library-pic.
870         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
871         condexec_si_media_operator, condexec_sf_add_operator and
872         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
873         and condexec_sf_unary_operator.
874         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
875         New.
876         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
877         movsi_internal.  Give them internal names.  movsi_got has type
878         int.
879         (fdpic got splitters): Remove.
880         (symGPREL2reg, symGPREL2reg_hilo): New.
881         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
882         to -mlibrary-pic.  Map -multilib-library-pic to it.
883         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
884         Document.
885         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
886         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
887         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
888         (frv_cannot_force_const_mem): New function.
889         (const_small_data_p, plus_small_data_p): Update comments on sdata
890         on FDPIC.
891         (frv_override_options): Set flag_pie for FDPIC too.
892         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
893         call-saved registers on FDPIC.
894         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
895         don't force LR to be preserved.
896         (frv_expand_prologue): Likewise.
897         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
898         (frv_frame_pointer_required): Don't force it just because the
899         FDPIC register is used.
900         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
901         operand only if !condexec_p.
902         (frv_legitimize_address): Return the FDPIC-legitimized address.
903         Don't match small data here on FDPIC.
904         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
905         symbols.  Use TRUE/FALSE instead of 1/0.
906         (frv_local_funcdesc_p): New.
907         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
908         immediates when possible.
909         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
910         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
911         an UNSPEC_GOT.
912         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
913         12-bit immediates when possible.
914         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
915         are not legitimate pic operands.
916         (frv_in_small_data_p): Re-enable for FDPIC.
917         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
918         (FRV_GLOBAL_P): Removed.
919         * config/frv/frv.md: Add modes to CONSTs.
920         (movsi_got): New.
921         (movsi_lo_sum_got): Use separate matches instead of match_dup.
922         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
923         (fdpic splittable operations): Match on flag_pic != 1.
924         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
925         * config/frv/frv.c (frv_asm_out_constructor,
926         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
927         bytes, not bits.
928         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
929         * config/frv/frv.c (frv_assemble_integer): Reject complex
930         expressions referencing function SYMBOL_REFs.
931         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
932         (move_source_operand): Reject CONSTs that reference function
933         SYMBOL_REFs on FDPIC.
934         (frv_emit_movsi): If we get such a CONST, break it up.
935         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
936         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
937         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
938         MEM.
939         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
940         (frv_trampoline_size): Increase for FDPIC.
941         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
942         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
943         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
944         Disable use of GOTOFF for now.
945         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
946         Disable use of small data in FDPIC for now.
947         (frv_asm_output_mi_thunk): Implement for FDPIC.
948         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
949         * config/frv/frv.c (frv_asm_out_constructor): Use
950         frv_assemble_integer for FDPIC pointers.
951         (frv_asm_out_destructor): Likewise.
952         * config/frv/frv.md (ldd): Fix order of operands.  Use
953         address_operand for input.
954         2003-09-18  DJ Delorie  <dj@redhat.com>
955         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
956         (unspec_got_name): Correct typo.
957         (frv_emit_movsi): Pre-expand splittable GOTs.
958         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
959         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
960         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
961         * config/frv/t-frv: Add -mfdpic multilibs.
962         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
963         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
964         * config/frv/frv.c (frv_override_options): -mfdpic assumes
965         flag_pic, default to 32-bit pics, require DWORD ops.
966         (frv_override_options): Add W and Z constraints.
967         (frv_expand_prologue): No pic prologue for -mfdpic.
968         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
969         (frv_print_operand_memory_reference): Handle GOT constants.
970         (frv_legitimate_address_p): Allow GOT constants.
971         (frv_legitimize_address): Handle GOT addresses too.
972         (frv_legitimate_fdpic_operand_p): New.
973         (frv_legitimize_fdpic_address): New.
974         (unspec_got_name): New.
975         (frv_output_addr_const_extra): New.
976         (frv_expand_fdpic_call): New.
977         (frv_fdpic_fptr_operand): New.
978         (gpr_or_int12_operand): Handle GOT operands.
979         (int_2word_operand): Handle GOT operands.
980         (fdpic_operand): New.
981         (fdpic_splittable_got_operand): New.
982         (fdpic_got12_operand): New.
983         (frv_emit_movsi): Handle GOT operands.
984         (frv_assemble_integer): -mfdpic doesn't use rofixups.
985         (frv_print_operand): Support 'g' code for GOT operands.
986         * config/frv/frv-protos.h: Add prototypes as needed.
987         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
988         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
989         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
990         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
991         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
992         R_FRV_GOTOFFLO): New.
993         (movsi_high_got, movsi_lo_sum_got): New.
994         (*movsi_pic): Don't use this splitter for -mfdpic.
995         (addsi3): Allow GOT references also.
996         (call, call_value): Handle -mfdpic separately.
997         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
998         call_value_fdpicsi): New.
999         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
1000         symGOTOFF2reg_i): New.
1001         * config/frv/frv.h (MASK_FDPIC): New.
1002         (TARGET_FDPIC): New.
1003         (TARGET_SWITCHES): Add -mfdpic.
1004         (FDPIC_FPTR_REGNO): New.
1005         (FDPIC_REGNO): New.
1006         (OUR_FDPIC_REG): New.
1007         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
1008         FDPIC_CALL_REGS.
1009         (REG_CLASS_NAMES): Likewise.
1010         (REG_CLASS_CONTENTS): Likewise.
1011         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
1012         (EXTRA_CONSTRAINT): Add it here.
1013         (FRV_GLOBAL_P): New.
1014         (OUTPUT_ADDR_CONST_EXTRA): New.
1015
1016 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
1017
1018         * config/sparc/sparc.h: Remove commented-out definitions of
1019         TARGET_EDOM and GEN_ERRNO_RTX.
1020
1021 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
1022
1023         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
1024         df_analyse with df_analyze.
1025
1026 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
1027
1028         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
1029         beginning of block.
1030
1031 2004-02-23  James E Wilson  <wilson@specifixinc.com>
1032
1033         * calls.c (precompute_arguments): Update comment.
1034
1035 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
1036
1037         * et-forest.c: Replace et_occurences with et_occurrences.
1038
1039 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
1040
1041         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
1042         with iv_analyze.
1043
1044 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
1045
1046         * config/i386/i386.c: Rename pni to sse3.
1047         * config/i386/i386.h: Likewise.
1048         * config/i386/i386.md: Likewise.
1049         * config/i386/pmmintrin.h: Likewise.
1050         * doc/extend.texi: Likewise.
1051         * doc/invoke.texi: Likewise.
1052
1053 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
1054             Kazu Hirata  <kazu@cs.umass.edu>
1055
1056         Remove -fwritable-strings.
1057         * c-common.c (fix_string_type): Don't check
1058         flag_writable_strings.
1059         (fix_string_type): Likewise.
1060         * c-opts.c (set_std_c89): Don't initialize
1061         flag_writable_strings.
1062         (set_std_c99): Likewise.
1063         * common.opt (fwritable-strings): Remove.
1064         * flags.h: Remove the external declaration of
1065         flag_writable_strings.
1066         * opts.c (common_handle_option) <OPT_fwritable_strings>:
1067         Remove.
1068         * toplev.c (flag_writable_strings): Remove.
1069         (f_options): Remove an entry for writable-strings.
1070         * varasm.c (const_hash_1) <STRING_CST>: Don't check
1071         flag_writable_strings.
1072         (compare_constant) <STRING_CST>: Likewise.
1073         (build_constant_desc): Likewise.
1074         * config/darwin.c (machopic_select_section): Likewise.
1075         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
1076         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
1077         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
1078         * config/mips/mips.c (mips_select_section): Likewise.
1079         (mips_encode_section_info): Likewise.
1080         * config/pa/pa.c (pa_select_section): Likewise.
1081         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
1082         * config/v850/v850.c (v850_select_section): Likewise.
1083         * doc/invoke.texi (-fwritable-strings): Remove.
1084         (-fno-const-strings): Don't mention -fwritable-strings.
1085         * doc/trouble.texi: Don't mention -fwritable-strings.
1086
1087 2003-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
1088
1089         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
1090
1091 2004-02-23  Dale Johannesen  <dalej@apple.com>
1092
1093         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
1094         (movdf_hardfloat64):  Ditto.
1095         (movdf_softfloat64):  Ditto.
1096
1097 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
1098         * config/rs6000/rs6000.c (function_arg): call to
1099         rs6000_mixed_function_arg for DFmode moved to allow
1100         normal DFmode incoming register assignment.
1101
1102 2004-02-23  Dale Johannesen  <dalej@apple.com>
1103
1104         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
1105         (movdf_hardfloat64):  Ditto.
1106
1107 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
1108
1109         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
1110         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
1111         copyright.
1112
1113 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
1114
1115         PR c/14156
1116         * c-typeck.c (c_expand_return): Change check for VAR_DECL
1117         to use DECL_P instead.
1118
1119         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
1120         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
1121
1122 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
1123
1124         * Makefile.in (opts.o): Depend on target.h.
1125         * opts.c (decode_options): Use targetm.default_short_enums
1126         instead of DEFAULT_SHORT_ENUMS.
1127         * system.h (DEFAULT_SHORT_ENUMS): Poison.
1128         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
1129         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
1130         * target.h (gcc_target): Add default_short_enums.
1131         * config/cris/cris.h: Remove a comment about
1132         DEFAULT_SHORT_ENUMS.
1133         * config/ip2k/ip2k.h: Likewise.
1134         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
1135         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
1136
1137 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
1138             Falk Hueffner  <falk@debian.org>
1139
1140         PR c/14188
1141         * builtins.c (expand_builtin_va_arg): Emit an informative message
1142         if a trap is generated.
1143         * c-typeck.c (build_function_call): Likewise.
1144
1145 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
1146
1147         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
1148         fopen.
1149         * libgcov.c: Include sys/stat.h.
1150         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
1151         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
1152         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
1153         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
1154
1155 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
1156
1157         * reorg.c: Remove comments about dead ports.
1158
1159 2004-02-22  Christopher Faylor  <cgf@redhat.com>
1160
1161         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
1162         extra host object file when targetting cygwin rather than generic
1163         object files.
1164
1165 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
1166
1167         Merge from tree-ssa:
1168         2003-11-20  Richard Henderson  <rth@redhat.com>
1169
1170                 * tree-inline.c (insert_decl_map): New.
1171                 (remap_decl, remap_type, remap_block, copy_body_r,
1172                 initialize_inlined_parameters, declare_return_variable,
1173                 remap_save_expr): Use it.
1174
1175         * function.c (copy_body_r): Add mapping from id->ret_label to
1176         id->ret_label.  Revert test for ret_label.
1177
1178 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
1179
1180         * genoutput.c (process_template): Strip trailing whitespace in @
1181         templates and issue a warning if there was any.
1182
1183 2004-02-21  Christopher Faylor  <cgf@redhat.com>
1184
1185         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
1186         object file when targetting cygwin.
1187         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
1188         overridden by top-level Makefile.
1189
1190 2004-02-21  Roger Sayle  <roger@eyesopen.com>
1191
1192         * config/i386/i386.c (standard_80387_constant_p): Also prefer
1193         the x87's load constant instructions when optimizing for size.
1194
1195 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
1196
1197         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
1198         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
1199         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
1200         * fold-const.c: Likewise.
1201         * simplify-rtx.c: Likewise.
1202
1203 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
1204
1205         * combine.c (can_combine_p): Don't ignore SETs marked with
1206         REG_EH_REGION notes.
1207         (try_combine): When attemting to fix unrecognized insns, don't
1208         split a PARALLEL that contains the original i2.
1209
1210 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
1211
1212         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
1213         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
1214         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
1215         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
1216         (vector, pixel, bool): #define to __vector, __pixel and __bool.
1217         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
1218         portion of header.
1219         (__altivec_link_error_invalid_argument): Remove prototype; will use
1220         __builtin_altivec_compiletime_error("vec_*") instead.
1221         (vec_*): Fix/complete set of available operation overloads given the
1222         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
1223         cv-correctness of pointer arguments; in C, always check for correct
1224         argument types before macro expansion.
1225         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
1226         defining Darwin/PowerPC-specific '-f[no-]altivec' and
1227         '-W[no-]altivec-long-deprecated' switches.
1228         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
1229         '__vector', '__pixel' and '__bool' macros using
1230         '__attribute__((altivec(...)))' types.
1231         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
1232         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
1233         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
1234         New type nodes.
1235         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
1236         handling '-W[no-]altivec-long-deprecated'.
1237         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
1238         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
1239         altivec_expand_dst_builtin): Remove casts from integer literals.
1240         (altivec_expand_builtin): Likewise; handle expansion of new
1241         '__builtin_altivec_compiletime_error' function.
1242         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
1243         types, and make them distinct from other vector types; register
1244         '__builtin_altivec_compiletime_error' function.
1245         (print_operand): For 'P', print a full target register name instead of
1246         merely its number.
1247         (rs6000_attribute_table): Add "altivec" attribute.
1248         (rs6000_handle_altivec_attribute): New function.
1249         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
1250         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
1251         maps to).
1252         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
1253         declare.
1254         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
1255
1256 2004-02-20  James E Wilson  <wilson@specifixinc.com>
1257
1258         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
1259         check.
1260         (shift_mix4left+2): Delete redundant pattern.
1261
1262 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
1263
1264         * alias.c (OUTGOING_REGNO): Don't define the default.
1265         * builtins.c (OUTGOING_REGNO): Likewise.
1266         (INCOMING_REGNO): Likewise.
1267         (apply_args_register_offset): Always use OUTGOING_REGNO.
1268         * combine.c (OUTGOING_REGNO): Likewise.
1269         * sibcall.c (OUTGOING_REGNO): Likewise.
1270         * defaults.h (INCOMING_REGNO): Provide the default.
1271         (OUTGOING_REGNO): Likewise.
1272
1273 2004-02-21  Jan Hubicka  <jh@suse.cz>
1274
1275         * params.def (max-peeled-insns, max-completely-peeled-insns,
1276         max-once-peeled-insns): Set to 400.
1277
1278 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1279
1280         PR c++/12007
1281         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
1282         are set for parameters before outputing debugging information.
1283
1284 2004-02-20  Falk Hueffner  <falk@debian.org>
1285
1286         PR target/14201
1287         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
1288         numbers.
1289
1290 2004-02-20  Per Bothner  <per@bothner.com>
1291
1292         * input.h:  Don't #include line-map.h.  It may cause link problems
1293         with undefined linemap_line_start when line-map.h is included but
1294         line-map.o is not linked, as currently happens with gengtype on
1295         compilers that don't support inline.
1296         * toplev.c:  So we do have to explicitly #include line-map.h here.
1297
1298 2004-02-20  Richard Henderson  <rth@redhat.com>
1299
1300         * doc/invoke.texi: Add -Wvariadic-macros.
1301
1302 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
1303
1304         * haifa-sched.c (sched_emit_insn): Remove.
1305         * sched-int.h: Remove the corresponding prototype.
1306
1307 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
1308
1309         Revert:
1310         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1311         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
1312         * system.h (DEFAULT_SHORT_ENUMS): Poison.
1313         * config/cris/cris.h: Remove a comment about
1314         DEFAULT_SHORT_ENUMS.
1315         * config/ip2k/ip2k.h: Likewise.
1316         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
1317
1318 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
1319             Tom Tromey  <tromey@redhat.com>
1320
1321         * doc/install.texi: Moved --disable-libgcj and
1322         --with-system-zlib documentation to new section for
1323         Java-specific options.
1324         Added explicit Cross-Compiler-Specific Options subheading.
1325         Added section for Java-specific options.
1326
1327 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
1328
1329         * doc/install.texi (Building the Ada compiler): Remove
1330         example.
1331
1332 2004-02-20  James E Wilson  <wilson@specifixinc.com>
1333
1334         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
1335
1336 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
1337
1338         * gcc.c (process_command): Allow translation of the copyright
1339         symbol but not the rest of the copyright message.
1340         * gcov.c (print_version): Likewise.  Allow translation of the
1341         message about warranty.
1342
1343 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
1344
1345         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
1346         predicate.
1347         ("*andsi_clear"): Tweak constraints to not match postincrement.
1348         Adjust the predicate to exclude a volatile memory reference.
1349         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
1350         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
1351
1352 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
1353
1354         * move-if-change: Remove.
1355         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
1356         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
1357         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
1358         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
1359         (s-gtyp-gen, s-iov): Use the top level move-if-change.
1360         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
1361
1362 2004-02-19  James E Wilson  <wilson@specifixinc.com>
1363
1364         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
1365         for operand2.  Add condition that requires register_operand operand2
1366         before reload.
1367
1368 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
1369             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1370
1371         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
1372         * config/mips/mips.md: Expand comment above unaligned loads and stores.
1373
1374 2004-02-19  Richard Henderson  <rth@redhat.com>
1375
1376         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
1377         * tree.c (build0, build1, build2, build3, build4): Split out from...
1378         (build): ... here.  Call them.
1379         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
1380
1381         * convert.c (convert_to_integer): Remove extra build argument.
1382         * tree-inline.c (expand_call_inline): Likewise.
1383
1384 2004-02-19  Richard Henderson  <rth@redhat.com>
1385
1386         * c-opts.c (warn_variadic_macros): New.
1387         (c_common_handle_option): Set it.
1388         (sanitize_cpp_opts): Copy it to cpp_opts.
1389         * c.opt (Wvariadic-macros): New.
1390         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
1391         * cppinit.c (cpp_create_reader): Initialize it.
1392         * cppmacro.c (parse_params): Check it.
1393
1394 2004-02-19  David Daney <ddaney@avtrex.com>
1395
1396         PR preprocessor/14198
1397         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
1398         builtin_assert ("machine=mips")
1399
1400 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1401
1402         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
1403         * system.h (DEFAULT_SHORT_ENUMS): Poison.
1404         * config/cris/cris.h: Remove a comment about
1405         DEFAULT_SHORT_ENUMS.
1406         * config/ip2k/ip2k.h: Likewise.
1407         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
1408
1409 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
1410
1411         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
1412         when passing single SFmode quantities in general registers,
1413         put them in the high half.
1414
1415 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
1416
1417         * doc/md.texi (Standard Names): Document additional dependency on
1418         fix pattern.
1419
1420         * optabs.c (ftruncify): Remove.
1421         (expand_fix): Manually inline ftruncify above.
1422         (can_fix_p): Add FIXME note.
1423
1424 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
1425
1426         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
1427         spe_fixuns_truncsfsi2.
1428
1429         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
1430         fixuns_truncsfsi2.
1431
1432 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
1433
1434         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
1435         * testsuite/gcc.dg/20040219-1.c: New test.
1436
1437 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
1438
1439         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
1440         "*subsf3_cconly"): Subtraction is not commutative.
1441
1442 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
1443
1444         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
1445         (sdbout_symbol): If called before sdbout_init, queue DECL for
1446         later and return.
1447         (sdbout_init): Set sdbout_initialized true, process decls
1448         queued earlier by sdbout_symbol.
1449         (sdbout_finish): Use size_t for index variable.
1450
1451 2004-02-19  Jeff Law  <law@redhat.com>
1452
1453         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
1454         for unordered comparison codes.
1455
1456 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
1457
1458         * reload1.c (reload): Correct comment.
1459         (scan_paradoxical_subregs): Remove #if 0 and old comment.
1460         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
1461         register variables are not used by reload.
1462
1463 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
1464
1465         PR target/14209
1466         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
1467         constraints to not match postincrement.  Adjust the predicate to
1468         exclude a volatile memory reference.
1469
1470 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1471
1472         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
1473
1474 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1475
1476         * hooks.c (hook_void_tree_int): Remove.
1477         (hook_void_constcharptr): Likewise.
1478         (hook_int_void_0): Likewise.
1479         * hooks.h: Remove the prototypes for the above three
1480         functions.
1481         * targhooks.c (hook_bool_machine_mode_true): Remove.
1482         * targhooks.h: Remove the prototype for
1483         hook_bool_machine_mode_true.
1484
1485 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1486
1487         * emit-rtl.c (subreg_realpart_p): Remove.
1488         (reorder_insns_with_line_notes): Likewise.
1489         (end_full_sequence): Likewise.
1490         * rtl.h: Remove the prototype for the above functions.
1491
1492 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1493
1494         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
1495         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
1496         config/iq2000/iq2000.h, config/m32r/m32r.h,
1497         config/pdp11/pdp11.h, config/sparc/sparc.h,
1498         config/xtensa/xtensa.h: Remove commented-out or useless
1499         definitions of CASE_VECTOR_PC_RELATIVE.
1500
1501 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
1502
1503         * loop.c (all_sets_invariant_p): Remove.
1504
1505 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
1506
1507         PR target/12916
1508         * config/sparc/sparc.h (NPARM_REGS): Delete.
1509         (BASE_RETURN_VALUE_REG): Likewise.
1510         (BASE_OUTGOING_VALUE_REG): Likewise.
1511         (BASE_PASSING_ARG_REG): Likewise.
1512         (BASE_INCOMING_ARG_REG): Likewise.
1513         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
1514         TARGET_ARCH64, not TARGET_V9.
1515         (function_arg_slotno): Dispatch based on the mode class.
1516         Handle vector modes like floating-point modes.
1517         (function_arg_record_value_1): Handle vector types like
1518         floating-point types.
1519         (function_arg_record_value_2): Likewise.
1520         Calculate regno after mode transformation.
1521         (function_arg): Handle vector modes like floating-point modes.
1522         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
1523         If ARCH64, do not recheck alignment.
1524         (function_arg_pass_by_reference): Reorder the conditions.
1525         (sparc_return_in_memory): Move after function_arg_padding.
1526         Implement calling conventions for vector modes.
1527         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
1528         (function_value): Move scope of 'regbase'.
1529         Implement calling conventions for vector modes.
1530         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
1531         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
1532         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
1533         the argument is passed by reference.
1534         (sparc_type_code): Handle vector types.
1535
1536 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
1537
1538         * function.c (assign_parms): When building decl_rtl for
1539         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
1540
1541 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
1542
1543         * expr.c (is_aligning_offset): Check if we are aligning the
1544         expressions's address over BIGGEST_ALIGNMENT in bytes, not
1545         in bits.
1546
1547 2003-02-18  Matt Austern  <austern@apple.com>
1548
1549         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
1550         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
1551         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
1552         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
1553         spec string.
1554         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
1555
1556 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
1557
1558         * dwarf2out.c (loclabel_num): Move outside #ifdef
1559         DWARF2_DEBUGGING_INFO and mark with GTY(()).
1560         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
1561         Mark with GTY(()).
1562         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
1563         Allocate memory with ggc_alloc.  No need to copy anything.
1564         (ia64_hpux_file_end): Update to match.
1565
1566 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
1567
1568         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
1569         by default.
1570
1571 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
1572
1573         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
1574         ("divmodtisi3"): Likewise.
1575         ("udivmoddi4", "udivmodtidi3"): Likewise.
1576         ("divmodsi4", "divmoddisi3"): Likewise.
1577         ("udivmodsi4", "udivmoddisi3"): Likewise.
1578         ("udivsi3", "umodsi3"): Likewise.
1579
1580 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
1581
1582         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
1583         placeholder insn when chunkifying the pool.
1584
1585 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1586
1587         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
1588         generating PIC code.
1589
1590 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
1591
1592         * config/h8300/h8300-protos.h: Add a prototype for
1593         h8300_expand_branch.
1594         * config/h8300/h8300.c (h8300_expand_branch): New.
1595         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
1596         bgtu, beq, bne): Call h8300_expand_branch().
1597
1598 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
1599
1600         * config/h8300/h8300-protos.h: Add prototypes for
1601         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
1602         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
1603         (h8300_hard_regno_mode_ok): Likewise.
1604         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
1605         h8300_hard_regno_nregs().
1606         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
1607
1608 2004-02-18  Per Bothner  <per@bothner.com>
1609
1610         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
1611         partly reverts my 2003-10-01 change, because we're back to logically
1612         including <command line> inside the main line.
1613         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
1614         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
1615         Fixes PR preprocessor/14103.
1616
1617         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
1618         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
1619         (cpp_push_include):  Don't need to increment pfile's line field.
1620         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
1621
1622         * c-ppoutput.c (print struct):  New first_time field.
1623         (init_pp_output):  Set print.first_time.
1624         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
1625         which is set also for (say) <command line>.  Clear print.first_time.
1626
1627         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
1628         does not match the code, so fix both.
1629         (should_stack_file):  Inline include_pch_p function.
1630         (include_pch_p):  Remove pointless function.
1631
1632         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
1633
1634 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
1635
1636         * config/h8300/h8300.md (four define_peephole2's): Use
1637         h8300_regs_ok_for_stm().
1638
1639 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
1640
1641         * config/h8300/h8300-protos.h: Update the prototype for
1642         expand_a_rotate().
1643         * config/h8300/h8300.c (expand_a_rotate): Remove the first
1644         argument.
1645         * config/h8300/h8300.md: Update all callers.
1646
1647 2004-02-18  Jan Hubicka  <jh@suse.cz>
1648
1649         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
1650         floats.
1651         (simplify_binary_operation): Deal with logicals on floats.
1652
1653         * i386.md (SSE fabs splitters): Emit new patterns.
1654         (SSE cmov splitters): Likewise.
1655         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
1656         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
1657         subregs.
1658         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
1659         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
1660
1661 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
1662
1663         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
1664         by hand.
1665         (output_a_rotate): Tweak a comment.
1666         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
1667         (*rotlhi3_1): Change to rotlhi3_1.
1668         (*rotlsi3_1): Change to rotlsi3_1.
1669
1670 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
1671
1672         PR target/13866
1673         * arm.c (load_multiple_operation): Don't insist that the source reg
1674         of a post-increment component is the same as the destination.
1675         (store_multiple_operation): Likewise.
1676
1677 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
1678
1679         * config/h8300/h8300.md: Move movsf patterns into one section
1680         of the file.
1681
1682 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
1683
1684         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
1685         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
1686         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
1687         config/mips/linux64.h, config/pa/pa-64.h,
1688         config/rs6000/aix51.h, config/rs6000/aix52.h,
1689         config/rs6000/spe.md, config/sparc/linux.h,
1690         config/sparc/linux64.h: Update copyright.
1691
1692 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
1693
1694         * config/h8300/h8300.md: Move push patterns into one
1695         section of the file.
1696
1697 2004-02-18  Mark Mitchell <mark@codesourcery.com>
1698
1699         PR c++/11326
1700         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
1701         fntype.
1702
1703 2004-02-18  Paul Brook  <paul@codesourcery.com>
1704
1705         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
1706
1707 2004-02-18  Paul Brook  <paul@codesourcery.com>
1708
1709         PR debug/12934
1710         * dwarf2out.c (loc_descriptor_from_tree): Handle
1711         EXPR_WITH_FILE_LOCATION.
1712
1713 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
1714
1715         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
1716         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
1717         trailing whitespace from instructions.
1718
1719 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
1720
1721         * configure.ac: When generating auto-build.h, pass
1722         --enable-languages to the sub-configure.
1723         Put quotes around ${program_transform_name} when generating
1724         name of as, ld, nm, objdump.
1725         * configure: Regenerate.
1726
1727 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
1728
1729         * Makefile.in (s-check, s-config, s-conditions, s-flags)
1730         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
1731         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
1732         (s-preds, s-iov): Do not depend on move-if-change.
1733
1734 2004-02-17  James E Wilson  <wilson@specifixinc.com>
1735
1736         * caller-save.c (insert_restore): Pass mem through copy_rtx.
1737         (insert_save): Likewise.
1738
1739 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1740
1741         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
1742         warning.
1743
1744 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1745
1746         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
1747         *one_cmplsi2_h8300.
1748         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
1749
1750 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1751
1752         * config/h8300/h8300-protos.h: Update the prototype of
1753         fix_bit_operand().
1754         * config/h8300/h8300.c (fix_bit_operand): Remove the second
1755         argument "what".
1756         * config/h8300/h8300.md: Update all callers.
1757
1758 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1759
1760         * config/h8300/h8300.c (fix_bit_operand): Change the name of
1761         the last argument to "code" from "type".
1762
1763 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1764
1765         * config/h8300/h8300.c: Remove an extern declaration of
1766         rtx_equal_function_value_matters.
1767
1768 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1769
1770         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
1771         by hand.
1772         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
1773         (*iorqi3_1): Change to iorqi3_1.
1774         (*xorqi3_1): Change to xorqi3_1.
1775
1776 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1777
1778         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
1779         typos.
1780
1781 2004-02-17  Jan Hubicka  <jh@suse.cz>
1782
1783         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
1784
1785 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
1786
1787         PR optimization/14119
1788         * combine.c (try_combine): When attemting to fix unrecognized insns,
1789         don't delete SETs marked with REG_EH_REGION notes.
1790
1791 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
1792
1793         * combine.c (simplify_if_then_else): Do not replace
1794         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
1795         modes differ.
1796
1797 2004-02017  Steven Bosscher  <stevenb@suse.de>
1798
1799         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
1800         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
1801         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
1802         * ada/utils.c: Likewise.
1803         * cp/decl.c: Likewise.
1804         * f/com.c: Likewise.
1805         * java/class.c: Likewise.
1806
1807 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1808
1809         * config/h8300/h8300.md: Fix comment typos.
1810
1811 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1812
1813         * config/mips/t-iris6gld: Renamed to ...
1814         * config/mips/t-irix-gld: ... this.
1815         * config.gcc (mips-sgi-irix6*): Reflect this
1816         (mips-sgi-irix5*): Use it with GNU ld.
1817
1818         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
1819         to ...
1820         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
1821         * config/mips/t-irix-gld: Reflect this.
1822         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1823
1824         * config/mips/iris5gld.h: New file.
1825         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
1826         Only use collect2 without gas.
1827
1828         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
1829         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
1830         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
1831         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1832
1833         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
1834         * config/mips/iris5.h: ... here.
1835
1836         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
1837         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
1838         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
1839
1840         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
1841         using irix_startfile_spec, irix_endfile_spec.
1842
1843 2004-02-16  Gunther Nikl  <gni@gecko.de>
1844
1845         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
1846
1847 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1848
1849         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
1850         insns by hand.
1851
1852 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1853
1854         * cfghooks.c (split_edge): Speed up updating of dominators.
1855
1856 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
1857
1858         PR c++/11326
1859         * c-common.c (flag_abi_version): Remove.
1860         * c-common.h (flag_abi_version): Likewise.
1861         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
1862         * c.opt (fabi-version): Remove.
1863         * calls.c (expand_call): Always pass a function type to
1864         struct_value_rtx.  Use convert_memory_address.
1865         * common.opt (fabi-version): Add it.
1866         * flags.h (flag_abi_version): Likewise.
1867         (abi_version_at_least): New macro.
1868         * opts.c (common_handle_option): Add OPT_fabi_version.
1869         * toplev.c (flag_abi_version): Define it.
1870         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
1871         New function.
1872         (ia64_output_mi_thunk): Use it.
1873         (ia64_struct_value_rtx): Likewise.
1874
1875 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1876
1877         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
1878         Don't generate insns by hand.
1879
1880 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
1881
1882         PR c++/14178
1883         * doc/invoke.texi (fabi-version): The default is 2 now.
1884
1885 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1886
1887         * loop-iv.c: New file.
1888         * Makefile.in (loop-iv.o): New.
1889         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
1890         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
1891         num_loop_branches): New functions.
1892         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
1893         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
1894         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
1895         get_simple_loop_desc, free_simple_loop_desc): Declare.
1896         (simple_loop_desc): New inline function.
1897         (struct rtx_iv, struct niter_desc): New.
1898         * cfgloopmanip.c (loopify): Specify semantics more precisely.
1899         * expr.c (force_operand): Handle subregs of expressions created by
1900         loop unroller.
1901         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
1902         parts of the initialization to toplev.c
1903         * loop-unroll.c (loop_exit_at_end_p): New.
1904         (unroll_and_peel_loops): Call iv_analysis_done.
1905         (decide_peel_once_rolling, decide_peel_completely,
1906         decide_unroll_stupid, decide_unroll_constant_iterations,
1907         decide_unroll_runtime_iterations, decide_peel_simple,
1908         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
1909         unroll_loop_runtime_iterations): Use new simple loop analysis.
1910         * loop-unswitch.c (compare_and_jump_seq): New.
1911         (may_unswitch_on_p): Renamed to ...
1912         (may_unswitch_on): Use new iv analysis.
1913         (reversed_condition): Export.
1914         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
1915         * predict.c (estimate_probability): Use new simple loop analysis.
1916         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
1917         canon_condition, simplify_using_condition): Declare.
1918         * stor-layout.c (get_mode_bounds): New.
1919         * toplev.c (rest_of_handle_loop2): Some parts of
1920         initialization/finalization moved here from loop-init.c.
1921
1922 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
1923
1924         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
1925         pointer.
1926         (CALL_USED_REGISTERS): Likewise.
1927         (REG_ALLOC_ORDER): Likewise.
1928         (REG_CLASS) <GENERAL_REGS>: Likewise.
1929
1930 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
1931
1932         * doc/md.texi (Insn Canonicalizations): Document left-chaining
1933         in associative operators.
1934         * rtlanal.c (commutative_operand_precedence): Create some new
1935         variables.  Prefer a commutative operand on the left, then
1936         binary expressions, then NEG and NOT.
1937
1938 2004-02-16  Matthias Klose  <doko@debian.org>
1939
1940         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
1941         in terms of SHLIB_SOVERSION.
1942         * config/m68k/t-slibgcc-elf-ver: New file.
1943         * config/pa/t-slibgcc-elf-ver: New file.
1944         * config.gcc (m68k-linux, parisc-linux): Use them when not
1945         sjlj exceptions are not configured.
1946
1947 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
1948
1949         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
1950
1951 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
1952
1953         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
1954
1955 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
1956
1957         * doc/sourcebuild.texi: Mention backends.html.
1958
1959 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
1960
1961         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
1962         line-map.c, line-map.h, var-tracking.c: Fix comment
1963         formatting.
1964
1965 2004-02-16  Richard Henderson  <rth@redhat.com>
1966
1967         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
1968
1969         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
1970
1971 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
1972
1973         * config/h8300/h8300.md: Remove unnecessary parallels from
1974         all define_insn and define_split patterns.
1975
1976 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
1977
1978         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
1979         "clobber").
1980
1981 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
1982
1983         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
1984         '%#'.
1985
1986 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
1987
1988         * config/ia64/ia64.c, config/mips/mips.c,
1989         config/mmix/mmix-modes.def: Fix comment typos.
1990
1991 2004-02-15  Roger Sayle  <roger@eyesopen.com>
1992
1993         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
1994         (get_directive_line): Remove unused function prototype.
1995
1996 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
1997
1998         * tree-inline.c (copy_body_r): Do not replace ret_label.
1999
2000 2004-02-14  Jan Hubicka  <jh@suse.cz>
2001
2002         * i386.c (x86_four_jump_limit): New variable.
2003         (k8_avoid_jump_misspredicts): Rename to ...
2004         (ix86_avoid_jump_misspredicts): .. this one.
2005         (ix86_pad_returns): Break out from ...
2006         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
2007         to.
2008         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
2009
2010 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
2011
2012         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
2013         PARALLEL is NULL.
2014
2015 2004-02-14  Per Bothner  <per@bothner.com>
2016
2017         * fix-header.c (line_table):  Move local variable in main to global.
2018         * scan.h (line_table):  Use it.
2019         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
2020         line (recently renamed to src_loc) before calling recognized_function.
2021
2022 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
2023
2024         * Makefile.in: Fix comment typos.
2025
2026 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
2027
2028         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
2029         for start_value when it is directly moved into reg, and factorize
2030         the retrieval of GET_MODE (reg).
2031
2032 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
2033
2034         * config/mips/mips-protos.h (mips_load_got_page): Delete.
2035         (mips_load_got_global): Delete.
2036         (mips_gotoff_page): Declare.
2037         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
2038         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
2039         UNSPEC_LOAD_GOT pattern rather than a MEM.
2040         (*load_got[sd]i): New patterns.
2041         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
2042         (mips_load_got_page, mips_load_got_global): Delete.
2043         (mips_gotoff_page): New function.
2044         (override_options): Don't initialize mips_got_alias_set.
2045
2046 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
2047
2048         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
2049         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
2050         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
2051         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
2052         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
2053         * config/mips/mips.c: Fix some overly-long lines.
2054         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
2055         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
2056
2057 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2058
2059         * configure.ac: Search for as, ld below libexec/gcc.
2060         * configure: Regenerate.
2061
2062 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
2063
2064         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
2065         __builtin_arm_setwcx ().
2066         * config/arm/arm.c (arm_expand_builtin): Generate operands
2067         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
2068
2069 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
2070
2071         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
2072         and "wmuluh" to "wmulsm" and "wmulum", respectively.
2073         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
2074         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
2075         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
2076         (_mm_mulhi_pu16): Likewise.
2077
2078 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
2079
2080         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
2081         DECL_NAME != 0 before dereferencing.
2082
2083 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
2084
2085         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
2086         (s390_output_addr_const_extra): Declare.
2087         (s390_output_pool_entry): Remove FILE * argument.
2088         * config/s390/s390.c (s390_output_symbolic_const): Remove.
2089         (s390_output_addr_const_extra): New function.
2090         (print_operand_address): Call output_addr_const instead of
2091         s390_output_symbolic_const.
2092         (print_operand): Likewise.
2093         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
2094         Remove FILE * argument.
2095         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
2096         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
2097         call.
2098
2099 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2100
2101         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
2102         (struct edge, struct vertex, struct graph): New.
2103         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
2104         free_graph): New functions.
2105
2106 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
2107
2108         * config/mips/mips.md (casesi_internal, casesi_internal_di):
2109         Use ".set macro" to avoid warnings about multi-instruction
2110         macros, since they're intentional.
2111
2112 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
2113
2114         * config/darwin.h: Add include guards.  Remove old, now incorrect,
2115         comment about STANDARD_EXEC_PREFIX.
2116
2117         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
2118         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
2119         for installing .1 manpages.  Add rules for installing cpp
2120         and gcov manpages under their installed names.
2121
2122 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
2123
2124         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
2125         host, but try LD_FOR_TARGET first.
2126         * configure: Rebuilt.
2127
2128 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
2129
2130         * dbxout.c: Move declaration of dbxout_type_decl outside
2131         #ifdef DBX_DEBUGGING_INFO.
2132         * c-parse.in: Don't give the asmdef production a type.
2133
2134 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
2135
2136         * debug.h (struct gcc_debug_hooks): Add type_decl field.
2137         (debug_nothing_tree_int): Prototype.
2138         (dwarf_debug_hooks): Delete, unused.
2139         * debug.c (do_nothing_debug_hooks): Update.
2140         (debug_nothing_tree_int): New function.
2141         * langhooks.h (struct lang_hooks_for_decls):
2142         Remove builtin_type_decls field.
2143         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
2144         (LANG_HOOKS_DECLS): Update.
2145         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
2146         Use debug_hooks->type_decl.
2147         * dbxout.c (preinit_symbols): New static.
2148         (dbx_debug_hooks, xcoff_debug_hooks): Update.
2149         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
2150         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
2151         for symbols to output.
2152         (dbxout_type_decl): New function.
2153         (dbxout_symbol): If called before dbxout_init has run, queue
2154         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
2155         to TYPE_DECLs before emitting them.
2156         * xcoffout.c (assign_type_number): Delete.
2157         (xcoff_type_numbers): New static table.
2158         (xcoff_assign_fundamental_type_number): New function.
2159         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
2160         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
2161         * sdbout.c: Include varray.h.
2162         (deferred_global_decls): New static.
2163         (sdb_debug_hooks): Update.
2164         (sdbout_global_decl): If we can't emit something right now,
2165         remember it in deferred_global_decls.
2166         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
2167         (sdbout_init): Initialize deferred_global_decls.
2168         * Makefile.in: Update dependencies of sdbout.o.
2169         * dwarf2out.c (dwarf2out_type_decl): New function.
2170         (dwarf2_debug_hooks): Update.
2171         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
2172         * c-decl.c (getdecls): Just return 0.
2173         (check_for_loop_decls): Don't use getdecls.
2174         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
2175         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
2176
2177 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
2178
2179         * config/s390/s390.c (s390_sched_reorder2): Remove.
2180         (TARGET_SCHED_REORDER2): Do not redefine.
2181
2182 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
2183
2184         * c-parse.in (maybe_type_qual): Delete.
2185         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
2186         (asm_argument): New grammar rules.
2187         (extdef_1): Use asmdef.
2188         (maybeasm): Move down with other asm rules; use simple_asm_expr.
2189         (xexpr): Move up with other expression rules.
2190         (stmt): Use asm_stmt.
2191
2192         * c-typeck.c (build_asm_expr): New function - body mostly
2193         pulled from build_asm_stmt.
2194         (build_asm_stmt): Just handle tacking on the volatile qualifier.
2195         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
2196
2197 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
2198
2199         PR bootstrap/13617
2200         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
2201         (mips_declare_object): Make variadic.
2202         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
2203         mips_output_aligned_decl_common.
2204         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
2205         (mips_declare_object): Make variadic.
2206
2207 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2208
2209         * function.c (update_epilogue_consts): Teach about binary operations.
2210
2211         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
2212         previous MEM_VOLATILE in REF.
2213         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
2214         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
2215
2216 2004-02-12  Gunther Nikl  <gni@gecko.de>
2217
2218         * config.gcc: Restore support for m68k-openbsd.
2219
2220 2004-02-12  Jan Hubicka  <jh@suse.cz>
2221
2222         * tree-optimize.c (tree_rest_of_compilation): Do not release
2223         DECL_ARGUMENTS.
2224
2225 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
2226
2227         * doc/install.texi: Fix the spelling of "explicitly".
2228
2229 2004-02-11  Eric Christopher  <echristo@redhat.com>
2230
2231         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
2232         duplicate argument structure of cpp_interpret_string.
2233         * cpphash.h: Move prototype...
2234         * cpplib.h: Here.
2235         * cpplib.c: Fix calls to match new function signature.
2236
2237 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
2238
2239         PR c/456
2240         * cppexp.c (num_binary_op): Don't allow comma operators in #if
2241         constant expressions at all outside C99 mode if pedantic.
2242
2243 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
2244
2245         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
2246         (log10_optab, log2_optab): Define corresponding macros.
2247         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
2248         * genopinit.c (optabs): Implement log10_optab and log2_optab
2249         using log10?f2 and log2?f2 patterns.
2250         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
2251         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
2252         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
2253         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2254
2255         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
2256         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
2257         log2, log2f and log2l built-ins as inline x87 intrinsics.
2258
2259 2004-02-11  Richard Henderson  <rth@redhat.com>
2260
2261         PR target/1532
2262         * flow.c (insn_dead_p): A clobber of a dead hard register is a
2263         dead insn after reload.
2264
2265 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
2266
2267         * tree.h (frame_base_decl): Add GTY marker.
2268         * var-tracking.c (frame_base_decl): Likewise.
2269
2270 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
2271
2272         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
2273         incorrect, hunk.
2274         (add_location_or_const_value_attribute): Use text_section_label,
2275         not TEXT_SECTION_NAME.
2276
2277 2004-02-11  Per Bothner  <per@bothner.com>
2278
2279         Represent column numbers using line-map's source_location.
2280         The "next available source_location" is now managed internally by
2281         line-maps.c rather than by clients.
2282         * line-map.h (struct line_map):  New field column_bits.
2283         <from_line>:  Rename field to start_location.
2284         (struct line_maps):  New fields highest_location and max_column_hint.
2285         (linemap_check_files_exited):  New declaration.
2286         (linemap_line_start):  New declaration.
2287         (linemap_add):  Remove from_line parameter; use highest_location field.
2288         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
2289         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
2290         (CURRENT_LINE_MAP):  Remove macro.
2291         (linemap_position_for_column):  New inline function.
2292         * line-map.c (linemap_init):  Clear new fields.
2293         (linemap_check_files_exited):  New function, extracted from ...
2294         (linemap_free):  Use linemap_check_files_exited.
2295         (linemap_add):  Remove from_line parameter.  Various updates.
2296         (linemap_line_start):  New function.
2297         (linemap_lookeup):  Update for new field names.
2298         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
2299         linemap_position_for_column may unpredictably change the current map,
2300         it is cleaner and simpler for us to not cache it in cpp_reader.
2301         (struct cpp_buffer):  New sysp field.
2302         Changed warned_cplusplus_comments and from_stage3 to bitfields.
2303         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
2304         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
2305         current map using linemap_lookup.
2306         (do_linemarker):  Also set buffer's sysp field.
2307         (destringize_and_run):  No longer need to decrement current line.
2308         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
2309         (search_path_head, open_file_failed):  Use buffer's sysp.
2310         (cpp_make_system_header):  Get current map using linemap_lookup.
2311         Also set buffer's sysp flag.
2312         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
2313         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
2314         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
2315         (struct cpp_reader):  ... and adding saved_line_base field.
2316         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
2317         Update accordingly.  Don't adjust line.
2318         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
2319         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
2320         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
2321         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
2322         * cpplex.c (_cpp_lex_direct):  Likewise.
2323         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
2324         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
2325         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
2326         Remove col field as it is now subsumed by src_loc.
2327         * cpperror.c:  Update various field, parameter, and macro names.
2328         (print_location):  If col==0, try SOURCE_COLUMN of line.
2329         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
2330         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
2331         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
2332         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
2333         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
2334         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
2335         (_cpp_lex_direct):  Use linemap_position_for_column.
2336         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
2337         parameter.  Instead get it from the line_table global.  Adjust callers.
2338         (print):  Remove map field.  Replace line field to src_line.
2339         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
2340         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
2341         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
2342         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
2343         * cpptrad.c (copy_comment):  Rename variable.
2344         * c-lex.c (map):  Remove static variable, for same reason we removed
2345         cpp_reader's map field.
2346         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
2347         to call linemap_lookup.
2348         (cb_line_change):  Token's line field replaced by src_loc.
2349         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
2350         Don't save new_map.
2351
2352         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
2353         source_location.
2354
2355 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
2356
2357         * config/rs6000/altivec.md (*movv4si_internal): At least one
2358         operand must be register_operand.
2359         (*movv8hi_internal1): Likewise.
2360         (*movv16qi_internal1): Likewise.
2361         (*movv4sf_internal1): Likewise.
2362
2363 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
2364
2365         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
2366         operand.
2367         (movv4hi_internal): Same.
2368         (movv2sf_internal): Same.
2369         (movv1di_internal): Same.
2370
2371 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2372
2373         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
2374         TARGET_OLDABI consistently.
2375         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
2376         mips_va_arg,override_options,compute_frame_size,
2377         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
2378         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
2379         and TARGET_OLDABI consistently.
2380         * config/mips/mips.md (exception_receiver): Likewise.
2381         * config/mips/linux64.h: Likewise.
2382
2383 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
2384
2385         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
2386         Set AltiVec ABI and vrsave as default for ppc64 linux.
2387         (init_cumulative_args): Post error, if try to return
2388         value in AltiVec register without enable AltiVec.
2389         (function_arg_advance): Ditto for passing arguments.
2390
2391 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
2392
2393         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
2394         a label before updating its usage count.
2395
2396 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
2397
2398         * doc/install.texi: Remove extra cd.
2399
2400 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
2401
2402         * c-common.c (vector_size_helper): Remove; call
2403         reconstruct_complex_type() instead.
2404         * tree.c (reconstruct_complex_type): New function
2405         (formerly vector_size_helper() in c-common.c).
2406         (make_vector): Make externally visible.
2407         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
2408
2409 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
2410
2411         * config/h8300/h8300-protos.h: Add a prototype for
2412         h8300_regs_ok_for_stm.
2413         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
2414         * config/h8300/h8300.md (stm_h8300s_2_advanced,
2415         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
2416         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
2417         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
2418         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
2419         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
2420         ldm_h8300s_4_normal, ldm_h8300s_4): Use
2421         h8300_regs_ok_for_stm().
2422
2423 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
2424
2425         PR c/14088
2426         * real.c (real_from_string): Look for 'X' as well as 'x' in
2427         hexfloat strings.
2428
2429 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
2430
2431         * config/h8300/h8300.md: Remove an incorrect comment about
2432         peephole2.  Add comments.
2433
2434 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
2435
2436         PR/14058
2437         * emit-rtl.c (set_decl_incoming_rtl): New.
2438         * tree.h (set_decl_incoming_rtl): New.
2439         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
2440         DECL_INCOMING_RTL.
2441         * ada/misc.c (adjust_decl_rtl): Likewise.
2442
2443 2004-02-10  Per Bothner  <per@bothner.com>
2444
2445         * c-opts.c (c_common_post_options):   Don't emit working directory
2446         in cpp output if -P was specified.
2447
2448 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
2449
2450         PR c/14092
2451         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
2452         negate_expr back to the original type.
2453
2454 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
2455
2456         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
2457         bump retaddr here.
2458
2459 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
2460
2461         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
2462         gen_lowpart_SUBREG): Move under the file in which they
2463         are actually declared.
2464
2465 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
2466
2467         * doc/sourcebuild.texi: Add libada documentation.
2468
2469         * doc/install.texi: Update documentation on Ada build, now
2470         that the GNAT lib and tools are built automatically.
2471
2472 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
2473
2474         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
2475         && TARGET_IRIX.
2476
2477 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
2478
2479         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
2480         boundaries outside build_component_ref() call (a macro in ObjC++).
2481
2482 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
2483
2484         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
2485         (init_cumulative_args): Likewise.
2486         (a7_overlap_mentioned_p): Delete prototype.
2487         * config/xtensa/xtensa.c (struct machine_function): Replace
2488         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
2489         Add set_frame_ptr_insn field.
2490         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
2491         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
2492         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
2493         at the function entry and replace the operand with the pseudo.
2494         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
2495         argument and record this flag in CUMULATIVE_ARGS.
2496         (function_arg): Remove result_mode and special-case code to handle
2497         arguments in a7.  Instead, set need_a7_copy flag when there is an
2498         incoming argument in a7.
2499         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
2500         and use the value recorded in cfun->machine->set_frame_ptr_insn.
2501         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
2502         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
2503         special-case code.
2504         (a7_overlap_mentioned_p): Delete.
2505         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
2506         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
2507         arguments to init_cumulative_args and pass "incoming" flag instead.
2508         (BLOCK_REG_PADDING): Delete.
2509         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
2510         checks for reload_in_progress and reload_completed.  Update calls to
2511         xtensa_copy_incoming_a7.
2512         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
2513         to call xtensa_copy_incoming_a7.
2514
2515 2004-02-09  DJ Delorie  <dj@redhat.com>
2516
2517         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
2518         longer modify standard_exec_prefix, standard_bindir_prefix, or
2519         standard_startfile_prefix.
2520
2521 2004-02-09  James E Wilson  <wilson@specifixinc.com>
2522
2523         PR c++/11295
2524         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
2525         to expand_expr_real call, and pass in alt_rtl as last argument.
2526
2527         PR libstdc++/5625
2528         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
2529         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
2530         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
2531         * except.c (expand_builtin_extend_pointer): New.
2532         * except.h (expand_builtin_extend_pointer): Declare.
2533
2534 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
2535
2536         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
2537         unaligned loads and stores.
2538
2539 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2540
2541         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
2542         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
2543
2544         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
2545         * config/mips/iris5.h: ... here.
2546         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
2547
2548         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
2549         * config/mips/iris5.h: ... here.
2550
2551 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2552
2553         * configure.ac: Remove default executable files before AC_PROG_CC.
2554         * configure: Regenerate.
2555
2556 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
2557
2558         PR target/13721
2559         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
2560         print a operand other than a register.
2561
2562 2004-02-09  Roger Sayle  <roger@eyesopen.com>
2563
2564         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
2565         tree code rather than call fold_convert, which doesn't specify a
2566         default floating point to integer conversion.
2567
2568 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
2569
2570         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
2571         code to support SGS assembler.  Reformat adjacent code where possible.
2572         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
2573         definition.
2574         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
2575         for '%#'.
2576         * config/m68k/linux.h, config/m68k/m68k.c,
2577         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
2578         macros and asm_printf() format strings.
2579         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
2580         * config/m68k/linux.h: Update copyright.
2581         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
2582
2583 2004-02-08  Andreas Schwab  <schwab@suse.de>
2584             Bernardo Innocenti  <bernie@develer.com>
2585
2586         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
2587         REGISTER_PREFIX.
2588         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
2589         frame pointer register, overridable by OS targets.
2590         * (M68K_REGNAME): Macro to obtain register name for asm output,
2591         eventually replacing %a6 with M68K_FP_REG_NAME.
2592         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
2593         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
2594         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
2595         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
2596         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
2597
2598 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
2599
2600         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
2601         hook_rtx_tree_int_null.
2602         * targhooks.c (default_struct_value_rtx): Remove.
2603         * targhooks.h: Remove the prototype for
2604         default_struct_value_rtx.
2605         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
2606         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
2607         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
2608         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
2609         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
2610         config/rs6000/rs6000.c, config/s390/s390.c,
2611         config/stormy16/stormy16.c, config/v850/v850.c,
2612         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
2613         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
2614
2615 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
2616
2617         * README.Portability: Change "ISO C89" to "ISO C90".
2618         * c-parse.in (primary, initelt): Likewise.
2619
2620 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
2621
2622         * real.c (encode_ibm_extended): Normalize the input value before
2623         converting it to a double.  Handle the case where a normal value
2624         rounds to infinity.
2625
2626 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
2627
2628         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
2629         warning.
2630         * cse.c (preferrable): Change to preferable. Update all of its
2631         callers.
2632         * genautomata.c (ainsn): Change
2633         first_ainsn_with_given_equialence_num to
2634         first_ainsn_with_given_equivalence_num.  Update all of its
2635         references.
2636
2637 2004-02-08  Jan Hubicka  <jh@suse.cz>
2638
2639         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
2640
2641 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
2642
2643         * function.c (assign_parms): Fix formatting.
2644
2645 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
2646
2647         * default.h (PROMOTE_PROTOTYPES): Remove.
2648         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
2649         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
2650         EXPAND_BUILTIN_SAVEREGS): Poison.
2651         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
2652         hook_bool_tree_false.
2653         (TARGET_PROMOTE_PROTOTYPES): Likewise.
2654         * target.h: Replace SETUP_INCOMING_VARARGS with
2655         targetm.calls.setup_incoming_varargs().
2656         * targhooks.c (default_promote_function_return): Remove.
2657         (default_promote_prototypes): Likewise.
2658         (default_struct_value_rtx): Always abort().
2659         (default_expand_builtin_saveregs): Always print an error
2660         message.
2661         (default_setup_incoming_varargs): Do nothing.
2662         (default_pretend_outgoing_varargs_named): Don't depend on
2663         SETUP_INCOMING_VARARGS.
2664         * targhooks.h: Remove the prototype for
2665         default_promote_function_return and
2666         default_promote_prototypes.
2667
2668 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
2669
2670         * system.h (SHARED_SECTION_ASM_OP): Poison.
2671         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
2672         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
2673
2674 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
2675
2676         Bug 13856
2677         * c-decl.c (diagnose_mismatched_decls): Only give special
2678         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
2679         is also true.
2680         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
2681         DECL_FUNCTION_CODE when defining a built-in function.
2682         Don't update DECL_ESTIMATED_INSNS.
2683         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
2684         FUNCTION_DECLs.
2685         * tree.h: Delete DECL_ESTIMATED_INSNS.
2686         * tree-inline.c (struct inline_data): Delete inlined_insns field.
2687         (expand_call_inline, optimize_inline_calls): Don't update
2688         DECL_ESTIMATED_INSNS nor inlined_insns.
2689         * cgraphunit.c (cgraph_analyze_function): Don't update
2690         DECL_ESTIMATED_INSNS.
2691
2692 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
2693
2694         * c-common.c (shadow_warning): Delete.
2695         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
2696         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
2697         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
2698         * c-parse.in (free_parser_stacks): Delete.
2699
2700 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
2701
2702         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
2703         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
2704         Use the top level mkinstalldirs, not the one in the gcc subdir.
2705         * mkinstalldirs: Remove (from the gcc subdir).
2706
2707 2004-02-07  Roger Sayle  <roger@eyesopen.com>
2708
2709         PR middle-end/13696
2710         * fold-const.c (fold_convert): New function to provide type
2711         conversion to the middle-end without using convert.
2712         (negate_expr, associate_trees, size_diffop, omit_one_operand,
2713         operand_equal_for_comparison_p, pedantic_omit_one_operand,
2714         invert_truthvalue, optimize_bit_field_compare, range_binop,
2715         decode_field_reference, make_range, build_range_check, unextend,
2716         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
2717         fold_binary_op_with_conditional_arg, fold_inf_compare,
2718         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
2719         convert with calls to fold_convert.
2720
2721 2004-02-07  Jan Hubicka  <jh@suse.cz>
2722
2723         * genrecog.c (find_operand): add extra argument stop.
2724         (validate_pattern): Verify that mach_dup is duplicating operand
2725         defined lexically earlier.
2726
2727 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
2728
2729         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
2730         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
2731         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
2732         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2733         config/ia64/ia64.h, config/ip2k/ip2k.h,
2734         config/iq2000/iq2000.h, config/mips/iris5.h,
2735         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
2736         config/rs6000/aix51.h, config/rs6000/aix52.h,
2737         config/rs6000/darwin.h, config/rs6000/rs6000.h,
2738         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
2739         config/sparc/linux.h, config/sparc/linux64.h,
2740         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
2741         config/xtensa/xtensa.h: Remove the definitions of
2742         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
2743         MAX_WCHAR_TYPE_SIZE.
2744         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
2745         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
2746
2747 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
2748
2749         PR bootstrap/13990
2750         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
2751         gen_rtx_NE.
2752
2753 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
2754
2755         * var-tracking.c (vt_add_function_parameters): Surround checkings by
2756         #ifdef ENABLE_CHECKING and #endif.
2757
2758 2004-02-07  Roger Sayle  <roger@eyesopen.com>
2759
2760         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
2761         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
2762         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
2763         integer types and floating point with unsafe_math_optimizations.
2764         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
2765         Optimize A - B as A + (-B), if B is easily negated.
2766
2767 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
2768
2769         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
2770         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
2771         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
2772         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
2773         Update copyright.
2774
2775 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
2776
2777         * c-ppoutput.c, var-tracking.c: Fix comment typos.
2778
2779 2004-02-06  James E Wilson  <wilson@specifixinc.com>
2780
2781         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
2782         glibc 2.3 or better.
2783
2784 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
2785
2786         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
2787         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
2788
2789 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
2790
2791         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
2792         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
2793         (SHLIB_MKMAP_OPTS): Delete.
2794         (TARGET_LIBGCC2_CFLAGS): Add -specs.
2795         (bispecs): Add rule.
2796         * config/rs6000/libgcc-ppc64.ver: New file.
2797         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
2798         (__floatdidf, __floatdisf): Optimize multiply.
2799         (__fixunstfdi): New function.
2800         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
2801         real and imag parts larger than one register.
2802         (function_arg): Correct type of reg used when fp arg split partially
2803         to stack.
2804         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
2805         and __MACH__ or __powerpc64__.
2806
2807 2004-02-06  Roger Sayle  <roger@eyesopen.com>
2808             Ulrich Weigand  <uweigand@de.ibm.com>
2809
2810         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
2811         of gen_highpart or gen_lowpart when the floating point format is
2812         wider than the result mode.
2813
2814 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
2815
2816         * dwarf2out.c (loclabel_num): Move into #ifdef
2817         DWARF2_DEBUGGING_INFO.
2818
2819 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
2820
2821         * objc/objc-act.c (build_super_template) the 'class' field of
2822         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
2823         (get_super_receiver): Likewise.
2824
2825 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
2826
2827         * reload1.c (check_eliminable_occurrences): Optimize the reset
2828         of can_eliminate.
2829         (eliminate_regs_in_insn): Likewise.
2830
2831 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
2832             Josef Zlomek  <zlomekj@suse.cz>
2833
2834         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
2835         at the beginning of function, call dwarf2out_var_location for
2836         NOTE_INSN_VAR_LOCATION note.
2837         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
2838         decl_loc_table): New.
2839         (lookup_decl_loc): New function.
2840         (add_var_loc_to_decl): New function.
2841         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
2842         only if can_use_fbreg.
2843         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
2844         functions.
2845         (loc_descriptor): Likewise. Process VAR_LOCATION.
2846         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
2847         (loc_descriptor_from_tree): Call mem_loc_descriptor with
2848         can_use_fbreg == true.
2849         (add_location_or_const_value_attribute): Added parameter enum
2850         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
2851         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
2852         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
2853         with attr == DW_AT_location.
2854         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
2855         if frame_base_decl is defined and has a location list.
2856         (gen_variable_die): Call add_location_or_const_value_attribute with
2857         attr == DW_AT_location.
2858         (dwarf2out_var_location): New function.
2859         (dwarf2out_begin_function): New function.
2860         (dwarf2out_init): Create decl_loc_table.
2861
2862 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
2863
2864         * loop.c (force_movables): Transitively increase the priorities of
2865         all insns forces by an insn, not just the first one.
2866
2867 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
2868             Daniel Berlin <dberlin@dberlin.org>
2869
2870         Josef Zlomek  <zlomekj@suse.cz>
2871         * Makefile.in (var-tracking.o): New.
2872         * common.opt (fvar-tracking): New.
2873         * flags.h (flag_var_tracking): New.
2874         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
2875         * opts.c (common_handle_option): Add OPT_fvar_tracking.
2876         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
2877         * rtl.c (note_insn_name): Likewise.
2878         * rtl.def (VAR_LOCATION): New.
2879         * rtl.h (NOTE_VAR_LOCATION): New.
2880         (NOTE_VAR_LOCATION_DECL): New.
2881         (NOTE_VAR_LOCATION_LOC): New.
2882         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
2883         (variable_tracking_main): New exported function.
2884         * timevar.def (TV_VAR_TRACKING): New.
2885         * toplev.c (enum dump_file_index): Added DFI_vartrack.
2886         (dump_file): "vartrack" was added (-dV).
2887         (flag_var_tracking): New.
2888         (f_options): "var-tracking" was added.
2889         (rest_of_handle_variable_tracking): New function.
2890         (rest_of_compilation): Run variable tracking.
2891         (process_options): If user has not specified flag_var_tracking set it
2892         according to optimize, debug_info_level and debug_hooks.
2893         * tree.h (frame_base_decl): New.
2894         * var-tracking.c: New file.
2895         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
2896         (ia64_override_options): Set flags to run variable tracking in machine
2897         dependent reorg instead of toplev.c.
2898         (ia64_reorg): Run variable tracking if wanted.
2899         * doc/invoke.texi: Mention variable tracking in -dV,
2900         add and -fvar-tracking.
2901         * doc/passes.texi: Added variable tracking pass.
2902
2903         Daniel Berlin <dberlin@dberlin.org>
2904         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
2905         * dbxout.c (dbx_debug_hooks): Likewise.
2906         (xcoff_debug): Likewise.
2907         * debug.c (do_nothing_debug_hooks): Likewise.
2908         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2909         * dwarfout.c (dwarf_debug_hooks): Likewise.
2910         * sdbout.c (sdb_debug_hooks): Likewise.
2911         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2912         * final.c (final_scan_insn): Call var_location debug hook for each
2913         NOTE_INSN_VAR_LOCATION.
2914
2915 2004-02-06  Jan Hubicka  <jh@suse.cz>
2916
2917         * flow.c (update_life_info): Allocate reg_deaths when called from
2918         scheudler.
2919         (attempt_auto_inc):  Update life ranges accordingly.
2920
2921 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
2922
2923         PR debug/11816
2924         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
2925
2926 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
2927
2928         * cfganal.c (flow_call_edges_add): Never split a libcall block.
2929
2930 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
2931
2932         * dwarf2out.c (output_loc_list): Don't use deltas if we have
2933         a separate line info table in use.
2934         Use the correct size for terminators.
2935         (output_die): Use offset, not delta.
2936
2937 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
2938
2939         * doc/invoke.texi: Remove the pni option from -mfpmath=.
2940
2941 2004-02-06  Jan Hubicka  <jh@suse.cz>
2942
2943         * recog.c (split_all_insns): Do not update reg info.
2944         * regrename.c (regrename_optimize): Likewise.
2945         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
2946         * flow.c (struct propagate_block_info): Add insn_num field.
2947         (reg_deaths): New array.
2948         (life_analysis): Free reg_deaths info.
2949         (allocate_reg_life_data): Allocate reg_deaths array.
2950         (propagate_one_insn): Use new array.
2951         (init_propagate_block): Initialize it.
2952         (free_propagate_block_info): Finish compuation of
2953         REG_LIVE_LENGTH
2954         (attempt_auto_inc): Sanity check that REG_INFO is not
2955         computed at same time.
2956         (mark_used_regs): Update new array.
2957
2958         * reg-stack.c (subst_stack_regs): Unshare clobbers before
2959         substitution.
2960
2961 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
2962
2963         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
2964         *extendqisi2_short_displ.
2965
2966 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
2967
2968         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
2969         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
2970         (emit_library_call_value_1): Likewise pass nargs.
2971         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
2972         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
2973         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
2974         parameter instead of scanning TYPE_ARGS_TYPES to count args.
2975         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
2976         prototype.
2977         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
2978         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
2979         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
2980         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
2981         INIT_CUMULATIVE_ARGS.
2982         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
2983         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
2984         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
2985         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
2986         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
2987         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
2988         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
2989         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
2990         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
2991         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
2992         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
2993         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
2994
2995 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
2996
2997         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
2998         possible.
2999
3000 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
3001
3002         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
3003         note containing (plus (reg) (const_int)), where reg is an
3004         eliminable reg, then perform the register elimination without
3005         depending on eliminate_regs().
3006
3007 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
3008
3009         * config/arc/arc.c (arc_return_in_memory): Check the return
3010         value of int_size_in_bytes against -1.  Don't check
3011         TREE_ADDRESSABLE.
3012         * config/avr/avr.c (avr_return_in_memory): Check the return
3013         value of int_size_in_bytes against -1.
3014         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
3015         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
3016         Likewise.
3017         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
3018         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
3019         Likewise.
3020
3021 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
3022
3023         * config/frv/frv-protos.h: Remove the prototype for
3024         frv_setup_incoming_varargs.
3025         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
3026         (frv_setup_incoming_varargs): Make it static.
3027         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
3028
3029 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
3030
3031         * config/fr30/fr30-protos.h: Remove the prototype for
3032         fr30_setup_incoming_varargs.
3033         Update the prototypes for fr30_num_arg_regs and
3034         fr30_function_arg_partial_nregs.
3035         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
3036         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3037         (fr30_setup_incoming_varargs): Make it static.
3038         Add argument second_time.  Don't do anything when second_time
3039         is nonzero.
3040         (fr30_num_arg_regs): Change the type of the first argument to
3041         enum machine_mode.
3042         (fr30_function_arg_partial_nregs): Change the type of the
3043         second argument to enum machine_mode.
3044         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
3045         (SETUP_INCOMING_VARARGS): Remove.
3046
3047 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
3048
3049         * config/arc/arc-protos.h: Remove the prototype for
3050         arc_setup_incoming_varargs.
3051         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
3052         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3053         (arc_setup_incoming_varargs): Make it static.
3054         (arc_external_libcall): Likewise.
3055         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
3056         Remove the commented-out definition of
3057         ASM_OUTPUT_EXTERNAL_LIBCALL.
3058
3059 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3060
3061         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
3062         to $$(slibdir) in the installation commands.
3063
3064 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
3065
3066         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
3067         with inner_regno, not regno.
3068         * rtlanal.c (refers_to_regno_p): Same.
3069
3070 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
3071
3072         * config.gcc: Remove i370 support.
3073
3074 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
3075
3076         * doc/install.texi:  Update automake and autoconf version
3077         requirements.  Note where to find gcj automake version.
3078
3079 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
3080
3081         * Makefile.in (generate-manpages): Move dependencies to ...
3082         (man): here.
3083         * doc/makefile.texi: Document new targets.
3084         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
3085
3086 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
3087
3088         PR/13485
3089         Makefile.in (srcextra):  Add a level of indirection to ...
3090         (gcc.srcextra): ... here.
3091         (po-generated): Delete.
3092         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
3093         options.c.
3094         (start.encap): Remove superfluous lang.srcextra dependency.
3095         objc/Make-lang.in (po-generated):  Delete.
3096
3097 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
3098
3099         * config/ia64/ia64.c (REG_GP): Remove.
3100
3101 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3102
3103         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
3104
3105 2004-02-05  Devang Patel  <dpatel@apple.com>
3106
3107         * dwarf2out.c (force_type_die): Look up input type itself
3108         instead of root_type() of type.
3109
3110 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
3111
3112         * config/s390/s390.md ("*tmqidi_ext"): New insn.
3113         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
3114         pre-reload splitters are transformed to post-reload
3115         define_insn_and_split patterns.
3116         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
3117
3118 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
3119
3120         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
3121         TARGET_PROMOTE_PROTOTYPES.
3122
3123 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3124
3125         PR middle-end/13750
3126         Revert:
3127         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
3128         PR pch/13361
3129         * c-typeck.c (constructor_asmspec): Delete.
3130         (struct initializer_stack): Delete field 'asmspec'.
3131         (start_init): Delete saving of asmspec.
3132         (finish_init): Don't update constructor_asmspec.
3133         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
3134         * stmt.c (expand_asm): Duplicate strings from tree.
3135         (expand_asm_operands): Likewise.
3136         * tree.c (tree_size): Update computation of size of STRING_CST.
3137         (make_node): Don't make STRING_CST nodes.
3138         (build_string): Allocate string with tree node.
3139         * tree.def (STRING_CST): Update comment.
3140         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
3141         (tree_string): Place contents of string in tree node.
3142         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
3143         from tree.
3144
3145 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
3146
3147         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
3148         msgid.
3149
3150 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
3151
3152         * config/rs6000/altivec.md (*movv4si_internal): At least one
3153         operand must be altivec_register_operand.
3154         (*movv8hi_internal1): Likewise.
3155         (*movv16qi_internal1): Likewise.
3156         (*movv4sf_internal1): Likewise.
3157
3158 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
3159
3160         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
3161         * configure: Regenerate.
3162
3163 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
3164
3165         * doc/install.texi: Update description of --gxx-include-dir to
3166         give correct default value.
3167
3168 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
3169
3170         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
3171         8 with MAC_REG.
3172
3173 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
3174
3175         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
3176         gen_rtx_PARALLEL.
3177
3178 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
3179
3180         * emit-rtl.c: Update the comment about the file.
3181
3182 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
3183
3184         * sourcebuild.texi (Test Idioms): Update testcase naming
3185         conventions.
3186
3187 2004-02-04  Per Bothner  <per@bothner.com>
3188
3189         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
3190         * c-ppoutput.c (pp_dir_change):  New function.
3191         * c-common.h (pp_dir_change):  New declaration.
3192         * cpplib.h (struct cpp_options):  Remove working_directory field.
3193         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
3194         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
3195         Don't handle -fworking_directory here, but in c_common_post_options.
3196         (read_original_directory): Don't back up when done.
3197         Don't clear no-longer used working_directory flag.
3198         * cpplib.h:  Update declarations to match.
3199         * c-lex.c (cb_dir_change):  Move to c-opts.c.
3200         (init_c_lex):  Don't set dir_change callback here, since we want
3201         to set it even if flag_preprocess_only.
3202         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
3203         (c_common_post_options):  Set dir_change callback.
3204         Call pp_dir_change if approporiate.
3205         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
3206         unneeded parameter and result. Do LC_RENAME for <built-in>.
3207         (c_common_post_options):  Call cpp_read_main_file here instead.
3208         (c_common_init):  Update accordingly.
3209         (push_command_line_include):  Don't cpp_push_main_file.
3210         Do LC_RENAME rather than LC_LEASE to get back to main file.
3211         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
3212         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
3213         files, but call finish_options for all files.
3214         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
3215         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
3216         cpp_find_main_file + cpp_push_main_file.
3217         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
3218         * opts.c (handle_options):  Only set main_input_filename first time.
3219
3220 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
3221
3222         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
3223
3224 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
3225
3226         * reload.c (find_equiv_reg): When checking for register overlap,
3227         don't index hard_regno_nregs with a pseudo-reg.
3228
3229 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
3230
3231         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
3232
3233 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
3234
3235         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
3236         against FIRST_PSEUDO_REGISTER.
3237
3238 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3239
3240         * Makefile.in: Move target, host overrides after per-language
3241         fragments.
3242
3243         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
3244         (GNATLIBCFLAGS): Remove -g.
3245
3246 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3247
3248         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
3249         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
3250         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
3251         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
3252         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
3253         config/sparc/sparc.c, config/vax/vax.c: Revert the
3254         replacements of "FALLTHRU" with "Fall through" done in the
3255         previous patch.
3256
3257 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3258
3259         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
3260         config/arm/arm.c, config/arm/arm.md,
3261         config/cris/cris-protos.h, config/fr30/fr30.c,
3262         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
3263         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
3264         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
3265         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
3266         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
3267         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
3268         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
3269         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
3270         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
3271         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
3272         config/s390/s390.md, config/sparc/netbsd-elf.h,
3273         config/sparc/openbsd.h, config/sparc/sparc.c,
3274         config/xtensa/lib2funcs.S: Fix comment formatting.
3275
3276 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3277
3278         * config/alpha/alpha.c, config/arc/arc.c,
3279         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
3280         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
3281         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
3282         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
3283         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
3284         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
3285         config/iq2000/iq2000.c, config/m32r/m32r.c,
3286         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
3287         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
3288         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
3289         config/rs6000/rs6000.h, config/sparc/sparc.c,
3290         config/vax/vax.c: Fix comment typos.  Follow spelling
3291         conventions.
3292
3293 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3294
3295         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
3296         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
3297         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
3298         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
3299         config/arm/fpa.md, config/arm/iwmmxt.md,
3300         config/arm/netbsd-elf.h, config/arm/netbsd.h,
3301         config/m68hc11/m68hc11.md, config/mips/iris5.h,
3302         config/mn10300/mn10300.md, config/rs6000/altivec.md,
3303         config/sparc/netbsd-elf.h: Update copyright.
3304
3305 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3306
3307         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
3308         for all modes whose size is greater than 8 bytes if ARCH32.
3309         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
3310         by reference if ARCH32.
3311
3312 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
3313
3314         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
3315
3316 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
3317
3318         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
3319         to before adddi3 insn patterns.
3320         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
3321         "reload_insi"): Move to before addsi3 insn patterns.
3322
3323 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
3324
3325         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
3326         parameter.  Use it instead of current_function_is_thunk.
3327         * function.h (struct function): Update documentation for is_thunk.
3328         * tree.h (CALL_FROM_THUNK_P): New macro.
3329         * config/alpha/alpha.c (alpha_sa_mask): Do not check
3330         no_new_pseudos when testing current_function_is_thunk.
3331         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
3332
3333 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3334
3335         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
3336         TARGET_SETUP_INCOMING_VARARGS.
3337
3338 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3339
3340         * emit-rtl.c (gen_rtx): Remove.
3341         * genattrtab.c: Don't mention gen_rtx in a comment.
3342         * rtl.h: Remove the prototype for gen_rtx.
3343         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
3344
3345 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3346
3347         * config/arc/arc.h, config/fr30/fr30.h
3348         (SETUP_INCOMING_VARARGS): Remove the target-independent
3349         comments.
3350         * doc/tm.texi: Don't mention deprecated target macros.
3351
3352 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3353
3354         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
3355         target-independent comment.
3356
3357 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3358
3359         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
3360         mention deprecated target macros.
3361
3362 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3363
3364         * config.gcc: Remove obsolete ports and configurations.
3365         * config/linux-aout.h, config/netware.h,
3366         config/t-linux-gnulibc1, config/d30v/abi,
3367         config/d30v/d30v-protos.h, config/d30v/d30v.c,
3368         config/d30v/d30v.h, config/d30v/d30v.md,
3369         config/d30v/libgcc1.asm, config/d30v/t-d30v,
3370         config/dsp16xx/dsp16xx-modes.def,
3371         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
3372         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
3373         config/i370/README, config/i370/i370-c.c,
3374         config/i370/i370-protos.h, config/i370/i370.c,
3375         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
3376         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
3377         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
3378         config/i386/moss.h, config/i386/netware.h,
3379         config/i386/svr3.ifile, config/i386/svr3dbx.h,
3380         config/i386/svr3gas.h, config/i386/svr3z.ifile,
3381         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
3382         config/i960/i960-c.c, config/i960/i960-coff.h,
3383         config/i960/i960-modes.def, config/i960/i960-protos.h,
3384         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
3385         config/i960/rtems.h, config/i960/t-960bare,
3386         config/m68k/hp310.h, config/m68k/hp320.h,
3387         config/m68k/hp320base.h, config/m68k/m68kv4.h,
3388         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
3389         Remove.
3390         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
3391         doc/md.texi: Remove mentions of obsolete ports.
3392
3393 2004-02-04  Jan Hubicka  <jh@suse.cz>
3394
3395         * alias.c (find_base_term, get_addr):  Do not dereference NULL
3396         pointer when all VALUE's locations has been invalidated.
3397         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
3398
3399 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
3400
3401         * doc/invoke.texi (x86 options): Fix spelling/wording.
3402
3403 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
3404
3405         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
3406         put the original string in a comment.
3407         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
3408         * config/mips/mips.c (mips_output_ascii): Likewise.
3409         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
3410
3411 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
3412
3413         * system.h (GIV_SORT_CRITERION): Poison.
3414         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
3415         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
3416
3417 2004-02-03  Roger Sayle  <roger@eyesopen.com>
3418
3419         PR target/9348
3420         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
3421         multiplies with a multiplication of the wrong signedness, its the
3422         signedness of the multiplication that we've performed that needs to
3423         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
3424         if expand_mult_highpart_adjust places the result in target.
3425
3426 2004-02-03  Richard Henderson  <rth@redhat.com>
3427
3428         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
3429
3430 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
3431
3432         * config.gcc (sh[234]l): Use little endian fragments.
3433
3434 2004-02-03  Paul Koning  <pkoning@equallogic.com>
3435
3436         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
3437         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
3438         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
3439         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
3440         floating point format.
3441         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
3442         the above functions.
3443         (output_move_quad): Output float values in correct target format.
3444         (legitimate_const_double_p): New function.
3445         * config/pdp11/pdp11.h: Fix typos.
3446         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
3447         (TARGET_FLOAT_FORMAT): Ditto.
3448         (pdp11_f_format, pdp11_d_format): Add external declarations.
3449         (MAX_REGS_PER_ADDRESS): Corrected.
3450         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
3451         (PRINT_OPERAND): Output float literals in target format.
3452
3453 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
3454
3455         PR c++/13975
3456         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
3457         TI_PRIVATE.
3458         (access_public_node): Redefine.
3459         (access_protected_node): Likewise.
3460         (access_private_node): Likewise.
3461         * tree.c (build_common_tree_nodes): Create access_public_node,
3462         access_protected_node, and access_private_node.
3463
3464 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
3465
3466         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
3467         (MASK_INLINE_INT_DIV_THR): Ditto.
3468         (MASK_INLINE_SQRT_LAT): Ditto.
3469         (MASK_INLINE_SQRT_THR): Ditto.
3470         (MASK_DWARF2_ASM): Ditto.
3471         (MASK_EARLY_STOP_BITS): Ditto.
3472
3473 2004-02-02  Paul Brook  <paul@codesourcery.com>
3474
3475         Merge from csl-arm-branch.
3476
3477         2004-01-30  Paul Brook  <paul@codesourcery.com>
3478
3479         * aof.h (REGISTER_NAMES): Add vfp reg names
3480         (ADDITIONAL_REGISTER_NAMES): Ditto.
3481         * aout.h (REGISTER_NAMES): Ditto.
3482         (ADDITIONAL_REGISTER_NAMES): Ditto.
3483         * arm-protos.h: Update/Add Prototypes.
3484         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
3485         Only allow 0.0 for VFP.
3486         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
3487         (values_fp): Rename from values_fpa.  Update Users.
3488         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
3489         Update users.  Only check valid constants for this hardware.
3490         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
3491         Only allow consts for FPA.
3492         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
3493         Only allow consts for FPA.
3494         (use_return_insn): Check for saved VFP regs.
3495         (arm_legitimate_address_p): Handle VFP DFmode addressing.
3496         (arm_legitimize_address): Ditto.
3497         (arm_general_register_operand): New function.
3498         (vfp_mem_operand): New function.
3499         (vfp_compare_operand): New function.
3500         (vfp_secondary_reload_class): New function.
3501         (arm_float_compare_operand): New function.
3502         (vfp_print_multi): New function.
3503         (vfp_output_fstmx): New function.
3504         (vfp_emit_fstm): New function.
3505         (arm_output_epilogue): Output VPF reg restore code.
3506         (arm_expand_prologue): Output VFP reg save code.
3507         (arm_print_operand): Add 'P'.
3508         (arm_hard_regno_mode_ok): Return modes for VFP regs.
3509         (arm_regno_class): Return classes for VFP regs.
3510         (arm_compute_initial_elimination_offset): Include space for VFP regs.
3511         (arm_get_frame_size): Ditto.
3512         * arm.h (FIXED_REGISTERS): Add VFP regs.
3513         (CALL_USED_REGISTERS): Ditto.
3514         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
3515         (FIRST_VFP_REGNUM): Define.
3516         (LAST_VFP_REGNUM): Define.
3517         (IS_VFP_REGNUM): Define.
3518         (FIRST_PSEUDO_REGISTER): Include VFP regs.
3519         (HARD_REGNO_NREGS): Handle VFP regs.
3520         (REG_ALLOC_ORDER): Add VFP regs.
3521         (enum reg_class): Add VFP_REGS.
3522         (REG_CLASS_NAMES): Ditto.
3523         (REG_CLASS_CONTENTS): Ditto.
3524         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
3525         (REG_CLASS_FROM_LETTER): Add 'w'.
3526         (EXTRA_CONSTRAINT_ARM): Add 'U'.
3527         (EXTRA_MEMORY_CONSTRAINT): Define.
3528         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
3529         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
3530         (REGISTER_MOVE_COST): Ditto.
3531         (PREDICATE_CODES): Add arm_general_register_operand,
3532         arm_float_compare_operand and vfp_compare_operand.
3533         * arm.md (various): Rename as above.
3534         (divsf3): Enable when TARGET_VFP.
3535         (divdf3): Ditto.
3536         (movdfcc): Ditto.
3537         (sqrtsf2): Ditto.
3538         (sqrtdf2): Ditto.
3539         (arm_movdi): Disable when TARGET_VFP.
3540         (arm_movsi_insn): Ditto.
3541         (movsi): Only split with general regs.
3542         (cmpsf): Use arm_float_compare_operand.
3543         (push_fp_multi): Restrict to TARGET_FPA.
3544         (vfp.md): Include.
3545         * vfp.md: New file.
3546         * fpa.md (various): Rename as above.
3547         * doc/md.texi: Document ARM w and U constraints.
3548
3549         2004-01-15  Paul Brook  <paul@codesourcery.com>
3550
3551         * config.gcc: Add with_fpu.  Allow with-float=softfp.
3552         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
3553         Break out of loop when we find a float-abi.  Fix typo.
3554         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
3555         Set -mfloat-abi=.
3556         * doc/install.texi: Document --with-fpu.
3557
3558         2003-01-14  Paul Brook  <paul@codesourcery.com>
3559
3560         * config.gcc (with_arch): Add armv6.
3561         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
3562         * config/arm/arm.c (arm_overrride_options): Ditto.
3563
3564         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
3565
3566         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
3567         (FL_ARCH6): Renamed from FL_ARCH6J.
3568         (arm_arch3m): Renamed from arm_fast_multiply.
3569         (arm_arch6): Renamed from arm_arch6j.
3570         * arm.h: Update all uses of above.
3571         * arm-cores.def: Likewise.
3572         * arm.md: Likewise.
3573
3574         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
3575         not arm6j.  Add entry for arch armv6.
3576
3577         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
3578
3579         * arm.c (arm_emit_extendsi): Delete.
3580         * arm-protos.h (arm_emit_extendsi): Delete.
3581         * arm.md (zero_extendhisi2): Also handle zero-extension of
3582         non-subregs.
3583         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
3584         (thumb_zero_extendhisi2): Only match if not v6.
3585         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
3586         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
3587         (thumb_extendqisi2): Likewise.
3588         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
3589         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
3590         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
3591         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
3592         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
3593         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
3594         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
3595         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
3596         (arm_extendqisi2addsi): Likewise.
3597
3598         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
3599
3600         Revert this change:
3601         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
3602         + REG addressing modes.
3603
3604         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
3605         + REG addressing modes.
3606
3607         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
3608
3609         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
3610         CONSTANT_P_RTX.
3611
3612         2003-30-12  Paul Brook  <paul@codesourcery.com>
3613
3614         * longlong.h: protect arm inlines with !defined (__thumb__)
3615
3616         2003-30-12  Paul Brook  <paul@codesourcery.com>
3617
3618         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
3619
3620         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
3621
3622         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
3623         change.
3624
3625         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
3626
3627         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
3628         to the virtual incoming args pointer for downward stacks.
3629
3630         2003-12-29  Paul Brook  <paul@codesourcery.com>
3631
3632         * config/arm/arm-cores.def: Add cost function.
3633         * config/arm/arm.c (arm_*_rtx_costs): New functions.
3634         (arm_rtx_costs): Remove
3635         (struct processors): Add rtx_costs field.
3636         (all_cores, all_architectures): Ditto.
3637         (arm_override_options): Set targetm.rtx_costs.
3638         (thumb_rtx_costs): New function.
3639         (arm_rtx_costs_1): Remove cases handled elsewhere.
3640         * config/arm/arm.h (processor_type): Add COSTS parameter.
3641
3642         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
3643
3644         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
3645         (arm926ejs.md): Include it.
3646         * config/arm/arm926ejs.md: New pipeline description.
3647
3648         2003-12-24  Paul Brook  <paul@codesourcery.com>
3649
3650         * config/arm/arm.c (arm_arch6j): New variable.
3651         (arm_override_options): Set it.
3652         (arm_emit_extendsi): New function.
3653         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
3654         * config/arm/arm.h (arm_arch6j): Declare.
3655         * config/arm/arm.md: Add sign/zero extend insns.
3656
3657         2003-12-23  Paul Brook  <paul@codesourcery.com>
3658
3659         * config/arm/arm.c (all_architectures): Add armv6.
3660         * doc/invoke.texi: Document it.
3661
3662         2003-12-19  Paul Brook  <paul@codesourcery.com>
3663
3664         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
3665         insn patterns to match.
3666         * config/arm/arm-generic.md: Ditto.
3667         * config/arm/cirrus.md: Ditto.
3668         * config/arm/fpa.md: Ditto.
3669         * config/amm/iwmmxt.md: Ditto.
3670         * config/arm/arm1026ejs.md: Ditto.
3671         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
3672         for 11_loadb.
3673
3674         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
3675
3676         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
3677         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
3678         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
3679         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
3680         arm_no_early_mul_dep): Correctly deal with conditional execution,
3681         parallels and single shift operations.
3682         (arm_no_early_alu_shift_value_dep): Define.
3683         * arm.md (attr type): Replace 'normal' with 'alu',
3684         'alu_shift' and 'alu_shift_reg'.
3685         (attr core_cycles): Adjust.
3686         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
3687         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
3688         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
3689         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
3690         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
3691         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
3692         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
3693         attribute appropriately.
3694         * config/arm/arm1026ejs.md (alu_op): Adjust.
3695         (alu_shift_op, alu_shift_reg_op): New.
3696         * config/arm/arm1136.md: Add better bypasses for early
3697         registers. Remove load[234] and store[234] bypasses.
3698         (11_alu_op): Adjust.
3699         (11_alu_shift_op, 11_alu_shift_reg_op): New.
3700
3701         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
3702
3703         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
3704         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
3705         * config/arm/arm.c (arm_no_early_store_addr_dep,
3706         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
3707         * config/arm/arm1026ejs.md: Add load-store bypass.
3708         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
3709         Add bypasses between instructions.
3710
3711         2003-12-10  Paul Brook  <paul@codesourcery.com>
3712
3713         * config/arm/arm.c (arm_fpu_model): New variable.
3714         (arm_fload_abi): New variable.
3715         (target_fpe_name): Rename from target_fp_name.
3716         (target_fpu_name): New variable.
3717         (arm_is_cirrus): Remove.
3718         (fpu_desc): New struct.
3719         (all_fpus): Define.
3720         (pf_model_for_fpu): Define.
3721         (all_loat_abis): Define.
3722         (arm_override_options): Set fp arch flags based on -mfpu=
3723         and -float-abi=.
3724         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
3725         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
3726         (*): Use new TARGET_* flags.
3727         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
3728         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
3729         (TARGET_SOFT_FLOAT): Ditto.
3730         (TARGET_SOFT_FLOAT_ABI): New.
3731         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
3732         TARGET_HARD_FLOAT.
3733         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
3734         (TARGET_OPTIONS): Add -mfpu=.
3735         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
3736         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
3737         (arm_pf_model): Define.
3738         (arm_float_abi_type): Define.
3739         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
3740         * config/arm/arm.md: Use new TARGET_* flags.
3741         * config/arm/cirrus.md: Ditto.
3742         * config/arm/fpa.md: Ditto.
3743         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
3744         * config/arm/semi.h (ASM_SPEC): Ditto.
3745         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
3746         (FPUTYPE_DEFAULT): Set to VFP.
3747         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
3748
3749         2003-11-22  Phil Edwards  <phil@codesourcery.com>
3750
3751         PR target/12476
3752         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
3753         'bx' instead of 'b' to avoid branch range restrictions.  Output
3754         the thunk immediately before the thunked-to function.
3755         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
3756         .thumb_func if a thunk is being generated.  Emit .code 16 along
3757         with .thumb_func if a thunk is not being generated.
3758
3759         2003-11-15  Nicolas Pitre <nico@cam.org>
3760
3761         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
3762         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
3763         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
3764         (lshrdi3_iwmmxt): Renamed from lshrdi3.
3765         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
3766
3767         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
3768             Ian Lance Taylor  <ian@wasabisystems.com>
3769
3770         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
3771         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
3772
3773         2003-11-05  Phil Edwards  <phil@codesourcery.com>
3774
3775         * config/arm/arm.md (insn):  Add new V6 instruction names.
3776         (generic_sched):  New attr.
3777         * config/arm/arm-generic.md:  Use generic_sched here.
3778         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
3779         stages of pipeline.  Adjust latency counts accordingly.
3780         * config/arm/arm1136jfs.md:  New file.
3781
3782         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
3783
3784         * config/arm/arm.h (processor_type): New enumeration type.
3785         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
3786         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
3787         (CPP_CPU_ARCH_SPEC): Likewise.
3788         * config/arm/arm.c (arm_tune): New variable.
3789         (all_cores): Use cores.def.
3790         (all_architectures): Add representative processor.
3791         (arm_override_options): Restructure way in which tuning
3792         information is deduced.
3793         * arm.md: Update "insn" and "type" attributes throughout.
3794         (insn): New attribute.
3795         (type): Compute "mult" from "insn" attribute.  Add load2,
3796         load3, load4 alternatives.
3797         (arm automaton): Move to arm-generic.md.
3798         * config/arm/arm-cores.def: New file.
3799         * config/arm/arm-generic.md: Likewise.
3800         * config/arm/arm1026ejs.md: Likewise.
3801
3802 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3803
3804         * doc/invoke.texi (SPARC options): Remove -mflat and
3805         all -mxxx (xxx:chip) options.
3806         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
3807         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
3808         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
3809         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
3810         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
3811         * config/sparc/sparc.c: Likewise.
3812         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
3813         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
3814         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
3815         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
3816         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
3817         (sparc_flat_must_save_register_p): Likewise.
3818         (sparc_flat_compute_frame_size): Likewise.
3819         (sparc_flat_save_restore): Likewise.
3820         (sparc_flat_function_prologue): Likewise.
3821         (sparc_flat_function_epilogue): Likewise.
3822         (sparc_flat_epilogue_delay_slots): Likewise.
3823         (sparc_flat_eligible_for_epilogue_delay): Likewise.
3824         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
3825         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
3826         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
3827         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
3828         (CONDITIONAL_REGISTER_USAGE): Likewise.
3829         (FRAME_POINTER_REQUIRED): Likewise.
3830         (INITIAL_ELIMINATION_OFFSET): Likewise.
3831         (BASE_RETURN_VALUE_REG): Likewise.
3832         (BASE_OUTGOING_VALUE_REG): Likewise.
3833         (BASE_PASSING_ARG_REG): Likewise.
3834         (BASE_INCOMING_ARG_REG): Likewise.
3835         (INCOMING_REGNO): Likewise.
3836         (OUTGOING_REGNO): Likewise.
3837         (LOCAL_REGNO): Likewise.
3838         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
3839         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
3840         (EPILOGUE_USES): Likewise.
3841         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
3842         ("flat" attribute): Delete.
3843         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
3844         handling.
3845         (call followed by jump define_peephole's): Delete.
3846         (exception_receiver): Likewise.
3847         (builtin_setjmp_receiver): Likewise.
3848         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
3849
3850 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
3851
3852         PR c/11658
3853         PR c/13994
3854         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
3855         on langhooks.h.
3856         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
3857         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
3858         Include langhooks.h.  Replace c_common_truthvalue_conversion
3859         with the truthvalue_conversion language hook throughout.
3860         (expr_no_commas): Call default_conversion before save_expr
3861         for the first term of the production 'x ? : y'.
3862         * c-common.c (c_common_truthvalue_conversion): Remove
3863         obsolete block.  Invoke recursively the hook instead
3864         of this function.
3865         * c-convert.c (convert): handle ERROR_MARK_NODE.
3866         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
3867         returned by the truthvalue_conversion language hook.
3868         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
3869         c_objc_common_truthvalue_conversion.
3870         * c-objc-common.c (c_objc_common_truthvalue_conversion):
3871         New function.
3872         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
3873         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
3874         c_objc_common_truthvalue_conversion.
3875
3876 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
3877
3878         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
3879         of gen_rtx.
3880         (LIBCALL_VALUE): Likewise.
3881         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
3882         gen_rtx_CC0 instead of gen_rtx.
3883         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
3884         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
3885         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
3886         gen_rtx.
3887         (m68hc11_emit_logical): Likewise.
3888
3889 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
3890
3891         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
3892         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
3893         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
3894         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
3895         config/mips/mips.md, config/mmix/mmix.c,
3896         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
3897         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
3898         config/rs6000/altivec.md, config/s390/s390.c,
3899         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
3900         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
3901         Use const0_rtx instead of GEN_INT (0).  Do the same for other
3902         constants that are readily available.
3903
3904 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
3905
3906         * doloop.c, optabs.c, regmove.c, sched-deps.c,
3907         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
3908         instead of GEN_INT (0).  Do the same for other constants that
3909         are readily available.
3910
3911 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
3912
3913         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
3914         gen_rtx.
3915         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
3916         instead of gen_rtx.
3917         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
3918         gen_rtx.
3919         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
3920         gen_rtx_ASHIFT instead of gen_rtx.
3921         (udivmodqi4): Likewise.
3922
3923 2004-02-02  Richard Henderson  <rth@redhat.com>
3924
3925         PR target/13789
3926         * expr.c (store_expr): Use force_operand before emit_move_insn.
3927
3928 2004-02-02  Jeff Law  <law@redhat.com>
3929             Roger Sayle  <roger@eyesopen.com>
3930
3931         * tree.c (commutative_tree_code, associative_tree_code): New
3932         functions.
3933         (iterative_hash_expr): Use commutative_tree_code.
3934         * tree.h (commutative_tree_code, associative_tree_code): Declare.
3935         * fold-const.c (operand_equal_p): Use commutative_tree_code
3936         rather than inlining the commutativity check.
3937         (fold): Likewise.
3938
3939 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
3940
3941         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
3942         * config/frv/frv-protos.h: Remove the prototype for
3943         frv_function_arg_keep_as_reference.
3944         * config/frv/frv.c (frv_function_arg_keep_as_reference):
3945         Remove.
3946         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
3947         * config/stormy16/stormy16.h: Remove the commented-out
3948         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
3949
3950 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
3951
3952         PR target/13914
3953         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
3954         for retaddr_column.
3955
3956 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
3957
3958         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
3959         gen_rtx.
3960
3961 2004-02-02  Eric Christopher  <echristo@redhat.com>
3962             Zack Weinberg  <zack@codesourcery.com>
3963
3964         * c-opts.c (c_common_handle_option): Add -finput-charset.
3965         * c.opt: Ditto.
3966         * cppcharset.c (one_iso88591_to_utf8): Remove.
3967         (convert_iso88591_utf8): Ditto.
3968         (conversion_tab): Remove 8859-1 converter.
3969         (_cpp_input_to_utf8): Remove.
3970         (_cpp_init_iconv_buffer): Ditto.
3971         (_cpp_close_iconv_buffer): Ditto.
3972         (_cpp_convert_input): New function.
3973         (_cpp_default_encoding): Ditto.
3974         * cpphash.h: Add/remove prototypes for above.
3975         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
3976         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
3977         for narrow execution and input character sets.
3978         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
3979         * doc/cppopts.texi: Document -finput-charset.
3980
3981 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
3982
3983         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
3984         against FIRST_PSEUDO_REGISTER.
3985
3986 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
3987
3988         * doc/invoke.texi (SPARC options): Further improve.
3989
3990 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
3991
3992         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
3993         config/h8300/h8300.c, config/ip2k/ip2k.md,
3994         config/iq2000/iq2000.c, config/mips/mips.c,
3995         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
3996         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
3997         config/v850/v850.md: Fix indentation.
3998
3999 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
4000
4001         * config/sparc/sparc.c (function_arg_slotno): A