re PR c/14188 (Suggestion: improve warning message for call through incompatible...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2             Falk Hueffner  <falk@debian.org>
3
4         PR c/14188
5         * builtins.c (expand_builtin_va_arg): Emit an informative message
6         if a trap is generated.
7         * c-typeck.c (build_function_call): Likewise.
8
9 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
10
11         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
12         fopen.
13         * libgcov.c: Include sys/stat.h.
14         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
15         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
16         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
17         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
18
19 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
20
21         * reorg.c: Remove comments about dead ports.
22
23 2004-02-22  Christopher Faylor  <cgf@redhat.com>
24
25         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
26         extra host object file when targetting cygwin rather than generic
27         object files.
28
29 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
30
31         Merge from tree-ssa:
32         2003-11-20  Richard Henderson  <rth@redhat.com>
33
34                 * tree-inline.c (insert_decl_map): New.
35                 (remap_decl, remap_type, remap_block, copy_body_r,
36                 initialize_inlined_parameters, declare_return_variable,
37                 remap_save_expr): Use it.
38
39         * function.c (copy_body_r): Add mapping from id->ret_label to
40         id->ret_label.  Revert test for ret_label.
41
42 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
43
44         * genoutput.c (process_template): Strip trailing whitespace in @
45         templates and issue a warning if there was any.
46
47 2004-02-21  Christopher Faylor  <cgf@redhat.com>
48
49         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
50         object file when targetting cygwin.
51         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
52         overridden by top-level Makefile.
53
54 2004-02-21  Roger Sayle  <roger@eyesopen.com>
55
56         * config/i386/i386.c (standard_80387_constant_p): Also prefer
57         the x87's load constant instructions when optimizing for size.
58
59 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
60
61         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
62         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
63         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
64         * fold-const.c: Likewise.
65         * simplify-rtx.c: Likewise.
66
67 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
68
69         * combine.c (can_combine_p): Don't ignore SETs marked with
70         REG_EH_REGION notes.
71         (try_combine): When attemting to fix unrecognized insns, don't
72         split a PARALLEL that contains the original i2.
73
74 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
75
76         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
77         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
78         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
79         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
80         (vector, pixel, bool): #define to __vector, __pixel and __bool.
81         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
82         portion of header.
83         (__altivec_link_error_invalid_argument): Remove prototype; will use
84         __builtin_altivec_compiletime_error("vec_*") instead.
85         (vec_*): Fix/complete set of available operation overloads given the
86         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
87         cv-correctness of pointer arguments; in C, always check for correct
88         argument types before macro expansion.
89         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
90         defining Darwin/PowerPC-specific '-f[no-]altivec' and
91         '-W[no-]altivec-long-deprecated' switches.
92         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
93         '__vector', '__pixel' and '__bool' macros using
94         '__attribute__((altivec(...)))' types.
95         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
96         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
97         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
98         New type nodes.
99         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
100         handling '-W[no-]altivec-long-deprecated'.
101         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
102         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
103         altivec_expand_dst_builtin): Remove casts from integer literals.
104         (altivec_expand_builtin): Likewise; handle expansion of new
105         '__builtin_altivec_compiletime_error' function.
106         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
107         types, and make them distinct from other vector types; register
108         '__builtin_altivec_compiletime_error' function.
109         (print_operand): For 'P', print a full target register name instead of
110         merely its number.
111         (rs6000_attribute_table): Add "altivec" attribute.
112         (rs6000_handle_altivec_attribute): New function.
113         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe 
114         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
115         maps to).
116         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
117         declare.
118         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
119
120 2004-02-20  James E Wilson  <wilson@specifixinc.com>
121
122         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
123         check.
124         (shift_mix4left+2): Delete redundant pattern.
125
126 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
127
128         * alias.c (OUTGOING_REGNO): Don't define the default.
129         * builtins.c (OUTGOING_REGNO): Likewise.
130         (INCOMING_REGNO): Likewise.
131         (apply_args_register_offset): Always use OUTGOING_REGNO.
132         * combine.c (OUTGOING_REGNO): Likewise.
133         * sibcall.c (OUTGOING_REGNO): Likewise.
134         * defaults.h (INCOMING_REGNO): Provide the default.
135         (OUTGOING_REGNO): Likewise.
136
137 2004-02-21  Jan Hubicka  <jh@suse.cz>
138
139         * params.def (max-peeled-insns, max-completely-peeled-insns,
140         max-once-peeled-insns): Set to 400.
141
142 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
143
144         PR c++/12007
145         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
146         are set for parameters before outputing debugging information.
147
148 2004-02-20  Falk Hueffner  <falk@debian.org>
149
150         PR target/14201
151         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
152         numbers.
153
154 2004-02-20  Per Bothner  <per@bothner.com>
155
156         * input.h:  Don't #include line-map.h.  It may cause link problems
157         with undefined linemap_line_start when line-map.h is included but
158         line-map.o is not linked, as currently happens with gengtype on
159         compilers that don't support inline.
160         * toplev.c:  So we do have to explicitly #include line-map.h here.
161
162 2004-02-20  Richard Henderson  <rth@redhat.com>
163
164         * doc/invoke.texi: Add -Wvariadic-macros.
165
166 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
167
168         * haifa-sched.c (sched_emit_insn): Remove.
169         * sched-int.h: Remove the corresponding prototype.
170
171 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
172
173         Revert:
174         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
175         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
176         * system.h (DEFAULT_SHORT_ENUMS): Poison.
177         * config/cris/cris.h: Remove a comment about
178         DEFAULT_SHORT_ENUMS.
179         * config/ip2k/ip2k.h: Likewise.
180         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
181
182 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
183             Tom Tromey  <tromey@redhat.com>
184
185         * doc/install.texi: Moved --disable-libgcj and
186         --with-system-zlib documentation to new section for
187         Java-specific options.
188         Added explicit Cross-Compiler-Specific Options subheading.
189         Added section for Java-specific options.
190
191 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
192
193         * doc/install.texi (Building the Ada compiler): Remove
194         example.
195
196 2004-02-20  James E Wilson  <wilson@specifixinc.com>
197
198         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
199
200 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
201
202         * gcc.c (process_command): Allow translation of the copyright
203         symbol but not the rest of the copyright message.
204         * gcov.c (print_version): Likewise.  Allow translation of the
205         message about warranty.
206
207 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
208
209         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
210         predicate.
211         ("*andsi_clear"): Tweak constraints to not match postincrement.
212         Adjust the predicate to exclude a volatile memory reference.
213         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
214         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
215
216 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
217
218         * move-if-change: Remove.
219         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
220         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
221         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
222         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
223         (s-gtyp-gen, s-iov): Use the top level move-if-change.
224         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
225
226 2004-02-19  James E Wilson  <wilson@specifixinc.com>
227
228         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
229         for operand2.  Add condition that requires register_operand operand2
230         before reload.
231
232 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
233             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
234
235         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
236         * config/mips/mips.md: Expand comment above unaligned loads and stores.
237
238 2004-02-19  Richard Henderson  <rth@redhat.com>
239
240         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
241         * tree.c (build0, build1, build2, build3, build4): Split out from...
242         (build): ... here.  Call them.
243         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
244
245         * convert.c (convert_to_integer): Remove extra build argument.
246         * tree-inline.c (expand_call_inline): Likewise.
247
248 2004-02-19  Richard Henderson  <rth@redhat.com>
249
250         * c-opts.c (warn_variadic_macros): New.
251         (c_common_handle_option): Set it.
252         (sanitize_cpp_opts): Copy it to cpp_opts.
253         * c.opt (Wvariadic-macros): New.
254         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
255         * cppinit.c (cpp_create_reader): Initialize it.
256         * cppmacro.c (parse_params): Check it.
257
258 2004-02-19  David Daney <ddaney@avtrex.com>
259
260         PR preprocessor/14198
261         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
262         builtin_assert ("machine=mips")
263
264 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
265
266         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
267         * system.h (DEFAULT_SHORT_ENUMS): Poison.
268         * config/cris/cris.h: Remove a comment about
269         DEFAULT_SHORT_ENUMS.
270         * config/ip2k/ip2k.h: Likewise.
271         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
272
273 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
274
275         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
276         when passing single SFmode quantities in general registers,
277         put them in the high half.
278
279 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
280
281         * doc/md.texi (Standard Names): Document additional dependency on
282         fix pattern.
283
284         * optabs.c (ftruncify): Remove.
285         (expand_fix): Manually inline ftruncify above.
286         (can_fix_p): Add FIXME note.
287
288 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
289
290         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
291         spe_fixuns_truncsfsi2.
292
293         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
294         fixuns_truncsfsi2.
295
296 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
297
298         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
299         * testsuite/gcc.dg/20040219-1.c: New test.
300
301 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
302
303         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
304         "*subsf3_cconly"): Subtraction is not commutative.
305
306 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
307
308         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
309         (sdbout_symbol): If called before sdbout_init, queue DECL for
310         later and return.
311         (sdbout_init): Set sdbout_initialized true, process decls
312         queued earlier by sdbout_symbol.
313         (sdbout_finish): Use size_t for index variable.
314
315 2004-02-19  Jeff Law  <law@redhat.com>
316
317         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
318         for unordered comparison codes.
319
320 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
321
322         * reload1.c (reload): Correct comment.
323         (scan_paradoxical_subregs): Remove #if 0 and old comment.
324         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
325         register variables are not used by reload.
326
327 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
328
329         PR target/14209
330         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
331         constraints to not match postincrement.  Adjust the predicate to
332         exclude a volatile memory reference.
333
334 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
335
336         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
337
338 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
339
340         * hooks.c (hook_void_tree_int): Remove.
341         (hook_void_constcharptr): Likewise.
342         (hook_int_void_0): Likewise.
343         * hooks.h: Remove the prototypes for the above three
344         functions.
345         * targhooks.c (hook_bool_machine_mode_true): Remove.
346         * targhooks.h: Remove the prototype for
347         hook_bool_machine_mode_true.
348
349 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
350
351         * emit-rtl.c (subreg_realpart_p): Remove.
352         (reorder_insns_with_line_notes): Likewise.
353         (end_full_sequence): Likewise.
354         * rtl.h: Remove the prototype for the above functions.
355
356 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
357
358         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
359         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
360         config/iq2000/iq2000.h, config/m32r/m32r.h,
361         config/pdp11/pdp11.h, config/sparc/sparc.h,
362         config/xtensa/xtensa.h: Remove commented-out or useless
363         definitions of CASE_VECTOR_PC_RELATIVE.
364
365 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
366
367         * loop.c (all_sets_invariant_p): Remove.
368
369 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
370
371         PR target/12916
372         * config/sparc/sparc.h (NPARM_REGS): Delete.
373         (BASE_RETURN_VALUE_REG): Likewise.
374         (BASE_OUTGOING_VALUE_REG): Likewise.
375         (BASE_PASSING_ARG_REG): Likewise.
376         (BASE_INCOMING_ARG_REG): Likewise.
377         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
378         TARGET_ARCH64, not TARGET_V9.
379         (function_arg_slotno): Dispatch based on the mode class.
380         Handle vector modes like floating-point modes.
381         (function_arg_record_value_1): Handle vector types like
382         floating-point types.
383         (function_arg_record_value_2): Likewise.
384         Calculate regno after mode transformation.
385         (function_arg): Handle vector modes like floating-point modes.
386         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
387         If ARCH64, do not recheck alignment.
388         (function_arg_pass_by_reference): Reorder the conditions.
389         (sparc_return_in_memory): Move after function_arg_padding.
390         Implement calling conventions for vector modes.
391         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
392         (function_value): Move scope of 'regbase'.
393         Implement calling conventions for vector modes.
394         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
395         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
396         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
397         the argument is passed by reference.
398         (sparc_type_code): Handle vector types.
399
400 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
401
402         * function.c (assign_parms): When building decl_rtl for
403         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
404
405 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
406
407         * expr.c (is_aligning_offset): Check if we are aligning the
408         expressions's address over BIGGEST_ALIGNMENT in bytes, not
409         in bits.
410
411 2003-02-18  Matt Austern  <austern@apple.com>
412
413         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
414         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
415         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
416         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
417         spec string.
418         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
419
420 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
421
422         * dwarf2out.c (loclabel_num): Move outside #ifdef
423         DWARF2_DEBUGGING_INFO and mark with GTY(()).
424         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
425         Mark with GTY(()).
426         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
427         Allocate memory with ggc_alloc.  No need to copy anything.
428         (ia64_hpux_file_end): Update to match.
429
430 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
431
432         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
433         by default.
434
435 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
436
437         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
438         ("divmodtisi3"): Likewise.
439         ("udivmoddi4", "udivmodtidi3"): Likewise.
440         ("divmodsi4", "divmoddisi3"): Likewise.
441         ("udivmodsi4", "udivmoddisi3"): Likewise.
442         ("udivsi3", "umodsi3"): Likewise.
443
444 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
445
446         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
447         placeholder insn when chunkifying the pool.
448
449 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
450
451         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
452         generating PIC code.
453
454 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
455
456         * config/h8300/h8300-protos.h: Add a prototype for
457         h8300_expand_branch.
458         * config/h8300/h8300.c (h8300_expand_branch): New.
459         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
460         bgtu, beq, bne): Call h8300_expand_branch().
461
462 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
463
464         * config/h8300/h8300-protos.h: Add prototypes for
465         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
466         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
467         (h8300_hard_regno_mode_ok): Likewise.
468         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
469         h8300_hard_regno_nregs().
470         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
471
472 2004-02-18  Per Bothner  <per@bothner.com>
473
474         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
475         partly reverts my 2003-10-01 change, because we're back to logically
476         including <command line> inside the main line.
477         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
478         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
479         Fixes PR preprocessor/14103.
480
481         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
482         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
483         (cpp_push_include):  Don't need to increment pfile's line field.
484         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
485
486         * c-ppoutput.c (print struct):  New first_time field.
487         (init_pp_output):  Set print.first_time.
488         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
489         which is set also for (say) <command line>.  Clear print.first_time.
490
491         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
492         does not match the code, so fix both.
493         (should_stack_file):  Inline include_pch_p function.
494         (include_pch_p):  Remove pointless function.
495
496         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
497
498 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
499
500         * config/h8300/h8300.md (four define_peephole2's): Use
501         h8300_regs_ok_for_stm().
502
503 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
504
505         * config/h8300/h8300-protos.h: Update the prototype for
506         expand_a_rotate().
507         * config/h8300/h8300.c (expand_a_rotate): Remove the first
508         argument.
509         * config/h8300/h8300.md: Update all callers.
510
511 2004-02-18  Jan Hubicka  <jh@suse.cz>
512
513         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
514         floats.
515         (simplify_binary_operation): Deal with logicals on floats.
516
517         * i386.md (SSE fabs splitters): Emit new patterns.
518         (SSE cmov splitters): Likewise.
519         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
520         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
521         subregs.
522         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
523         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
524
525 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
526
527         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
528         by hand.
529         (output_a_rotate): Tweak a comment.
530         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
531         (*rotlhi3_1): Change to rotlhi3_1.
532         (*rotlsi3_1): Change to rotlsi3_1.
533
534 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
535
536         PR target/13866
537         * arm.c (load_multiple_operation): Don't insist that the source reg
538         of a post-increment component is the same as the destination.
539         (store_multiple_operation): Likewise.
540
541 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
542
543         * config/h8300/h8300.md: Move movsf patterns into one section
544         of the file.
545
546 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
547
548         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
549         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
550         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
551         config/mips/linux64.h, config/pa/pa-64.h,
552         config/rs6000/aix51.h, config/rs6000/aix52.h,
553         config/rs6000/spe.md, config/sparc/linux.h,
554         config/sparc/linux64.h: Update copyright.
555
556 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
557
558         * config/h8300/h8300.md: Move push patterns into one
559         section of the file.
560
561 2004-02-18  Mark Mitchell <mark@codesourcery.com>
562
563         PR c++/11326
564         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
565         fntype.
566
567 2004-02-18  Paul Brook  <paul@codesourcery.com>
568
569         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
570
571 2004-02-18  Paul Brook  <paul@codesourcery.com>
572
573         PR debug/12934
574         * dwarf2out.c (loc_descriptor_from_tree): Handle
575         EXPR_WITH_FILE_LOCATION.
576
577 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
578
579         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
580         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
581         trailing whitespace from instructions.
582
583 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
584
585         * configure.ac: When generating auto-build.h, pass
586         --enable-languages to the sub-configure.
587         Put quotes around ${program_transform_name} when generating
588         name of as, ld, nm, objdump.
589         * configure: Regenerate.
590
591 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
592
593         * Makefile.in (s-check, s-config, s-conditions, s-flags)
594         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
595         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
596         (s-preds, s-iov): Do not depend on move-if-change.
597
598 2004-02-17  James E Wilson  <wilson@specifixinc.com>
599
600         * caller-save.c (insert_restore): Pass mem through copy_rtx.
601         (insert_save): Likewise.
602
603 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
604
605         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
606         warning.
607
608 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
609
610         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
611         *one_cmplsi2_h8300.
612         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
613
614 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
615
616         * config/h8300/h8300-protos.h: Update the prototype of
617         fix_bit_operand().
618         * config/h8300/h8300.c (fix_bit_operand): Remove the second
619         argument "what".
620         * config/h8300/h8300.md: Update all callers.
621
622 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
623
624         * config/h8300/h8300.c (fix_bit_operand): Change the name of
625         the last argument to "code" from "type".
626
627 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
628
629         * config/h8300/h8300.c: Remove an extern declaration of
630         rtx_equal_function_value_matters.
631
632 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
633
634         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
635         by hand.
636         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
637         (*iorqi3_1): Change to iorqi3_1.
638         (*xorqi3_1): Change to xorqi3_1.
639
640 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
641
642         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
643         typos.
644
645 2004-02-17  Jan Hubicka  <jh@suse.cz>
646
647         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
648
649 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
650
651         PR optimization/14119
652         * combine.c (try_combine): When attemting to fix unrecognized insns,
653         don't delete SETs marked with REG_EH_REGION notes.
654
655 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
656
657         * combine.c (simplify_if_then_else): Do not replace
658         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
659         modes differ.
660
661 2004-02017  Steven Bosscher  <stevenb@suse.de>
662
663         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
664         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
665         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
666         * ada/utils.c: Likewise.
667         * cp/decl.c: Likewise.
668         * f/com.c: Likewise.
669         * java/class.c: Likewise.
670
671 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
672
673         * config/h8300/h8300.md: Fix comment typos.
674
675 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
676
677         * config/mips/t-iris6gld: Renamed to ...
678         * config/mips/t-irix-gld: ... this.
679         * config.gcc (mips-sgi-irix6*): Reflect this
680         (mips-sgi-irix5*): Use it with GNU ld.
681
682         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
683         to ...
684         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
685         * config/mips/t-irix-gld: Reflect this.
686         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
687
688         * config/mips/iris5gld.h: New file.
689         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
690         Only use collect2 without gas.
691
692         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
693         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
694         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
695         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
696
697         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
698         * config/mips/iris5.h: ... here.
699
700         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
701         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
702         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
703
704         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
705         using irix_startfile_spec, irix_endfile_spec.
706
707 2004-02-16  Gunther Nikl  <gni@gecko.de>
708
709         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
710
711 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
712
713         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
714         insns by hand.
715
716 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
717
718         * cfghooks.c (split_edge): Speed up updating of dominators.
719
720 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
721
722         PR c++/11326
723         * c-common.c (flag_abi_version): Remove.
724         * c-common.h (flag_abi_version): Likewise.
725         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
726         * c.opt (fabi-version): Remove.
727         * calls.c (expand_call): Always pass a function type to
728         struct_value_rtx.  Use convert_memory_address.
729         * common.opt (fabi-version): Add it.
730         * flags.h (flag_abi_version): Likewise.
731         (abi_version_at_least): New macro.
732         * opts.c (common_handle_option): Add OPT_fabi_version.
733         * toplev.c (flag_abi_version): Define it.
734         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
735         New function.
736         (ia64_output_mi_thunk): Use it.
737         (ia64_struct_value_rtx): Likewise.
738
739 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
740
741         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
742         Don't generate insns by hand.
743
744 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
745
746         PR c++/14178
747         * doc/invoke.texi (fabi-version): The default is 2 now.
748
749 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
750
751         * loop-iv.c: New file.
752         * Makefile.in (loop-iv.o): New.
753         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
754         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
755         num_loop_branches): New functions.
756         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
757         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
758         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
759         get_simple_loop_desc, free_simple_loop_desc): Declare.
760         (simple_loop_desc): New inline function.
761         (struct rtx_iv, struct niter_desc): New.
762         * cfgloopmanip.c (loopify): Specify semantics more precisely.
763         * expr.c (force_operand): Handle subregs of expressions created by
764         loop unroller.
765         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
766         parts of the initialization to toplev.c
767         * loop-unroll.c (loop_exit_at_end_p): New.
768         (unroll_and_peel_loops): Call iv_analysis_done.
769         (decide_peel_once_rolling, decide_peel_completely,
770         decide_unroll_stupid, decide_unroll_constant_iterations,
771         decide_unroll_runtime_iterations, decide_peel_simple,
772         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
773         unroll_loop_runtime_iterations): Use new simple loop analysis.
774         * loop-unswitch.c (compare_and_jump_seq): New.
775         (may_unswitch_on_p): Renamed to ...
776         (may_unswitch_on): Use new iv analysis.
777         (reversed_condition): Export.
778         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
779         * predict.c (estimate_probability): Use new simple loop analysis.
780         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
781         canon_condition, simplify_using_condition): Declare.
782         * stor-layout.c (get_mode_bounds): New.
783         * toplev.c (rest_of_handle_loop2): Some parts of
784         initialization/finalization moved here from loop-init.c.
785
786 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
787
788         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
789         pointer.
790         (CALL_USED_REGISTERS): Likewise.
791         (REG_ALLOC_ORDER): Likewise.
792         (REG_CLASS) <GENERAL_REGS>: Likewise.
793
794 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
795
796         * doc/md.texi (Insn Canonicalizations): Document left-chaining
797         in associative operators.
798         * rtlanal.c (commutative_operand_precedence): Create some new
799         variables.  Prefer a commutative operand on the left, then
800         binary expressions, then NEG and NOT.
801
802 2004-02-16  Matthias Klose  <doko@debian.org>
803
804         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
805         in terms of SHLIB_SOVERSION.
806         * config/m68k/t-slibgcc-elf-ver: New file.
807         * config/pa/t-slibgcc-elf-ver: New file.
808         * config.gcc (m68k-linux, parisc-linux): Use them when not
809         sjlj exceptions are not configured.
810
811 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
812
813         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
814
815 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
816
817         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
818
819 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
820
821         * doc/sourcebuild.texi: Mention backends.html.
822
823 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
824
825         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
826         line-map.c, line-map.h, var-tracking.c: Fix comment
827         formatting.
828
829 2004-02-16  Richard Henderson  <rth@redhat.com>
830
831         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
832
833         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
834
835 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
836
837         * config/h8300/h8300.md: Remove unnecessary parallels from
838         all define_insn and define_split patterns.
839
840 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
841
842         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
843         "clobber").
844
845 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
846
847         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
848         '%#'.
849
850 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
851
852         * config/ia64/ia64.c, config/mips/mips.c,
853         config/mmix/mmix-modes.def: Fix comment typos.
854
855 2004-02-15  Roger Sayle  <roger@eyesopen.com>
856
857         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
858         (get_directive_line): Remove unused function prototype.
859
860 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
861
862         * tree-inline.c (copy_body_r): Do not replace ret_label.
863
864 2004-02-14  Jan Hubicka  <jh@suse.cz>
865
866         * i386.c (x86_four_jump_limit): New variable.
867         (k8_avoid_jump_misspredicts): Rename to ...
868         (ix86_avoid_jump_misspredicts): .. this one.
869         (ix86_pad_returns): Break out from ...
870         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
871         to.
872         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
873
874 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
875
876         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
877         PARALLEL is NULL.
878
879 2004-02-14  Per Bothner  <per@bothner.com>
880
881         * fix-header.c (line_table):  Move local variable in main to global.
882         * scan.h (line_table):  Use it.
883         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
884         line (recently renamed to src_loc) before calling recognized_function.
885
886 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
887
888         * Makefile.in: Fix comment typos.
889
890 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
891
892         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
893         for start_value when it is directly moved into reg, and factorize
894         the retrieval of GET_MODE (reg).
895
896 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
897
898         * config/mips/mips-protos.h (mips_load_got_page): Delete.
899         (mips_load_got_global): Delete.
900         (mips_gotoff_page): Declare.
901         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
902         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
903         UNSPEC_LOAD_GOT pattern rather than a MEM.
904         (*load_got[sd]i): New patterns.
905         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
906         (mips_load_got_page, mips_load_got_global): Delete.
907         (mips_gotoff_page): New function.
908         (override_options): Don't initialize mips_got_alias_set.
909
910 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
911
912         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
913         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
914         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
915         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
916         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
917         * config/mips/mips.c: Fix some overly-long lines.
918         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
919         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
920
921 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
922
923         * configure.ac: Search for as, ld below libexec/gcc.
924         * configure: Regenerate.
925
926 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
927
928         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
929         __builtin_arm_setwcx ().
930         * config/arm/arm.c (arm_expand_builtin): Generate operands
931         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
932
933 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
934
935         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
936         and "wmuluh" to "wmulsm" and "wmulum", respectively.
937         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
938         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
939         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
940         (_mm_mulhi_pu16): Likewise.
941
942 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
943
944         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
945         DECL_NAME != 0 before dereferencing.
946
947 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
948
949         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
950         (s390_output_addr_const_extra): Declare.
951         (s390_output_pool_entry): Remove FILE * argument.
952         * config/s390/s390.c (s390_output_symbolic_const): Remove.
953         (s390_output_addr_const_extra): New function.
954         (print_operand_address): Call output_addr_const instead of
955         s390_output_symbolic_const.
956         (print_operand): Likewise.
957         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
958         Remove FILE * argument.
959         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
960         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
961         call.
962
963 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
964
965         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
966         (struct edge, struct vertex, struct graph): New.
967         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
968         free_graph): New functions.
969
970 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
971
972         * config/mips/mips.md (casesi_internal, casesi_internal_di):
973         Use ".set macro" to avoid warnings about multi-instruction
974         macros, since they're intentional.
975
976 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
977
978         * config/darwin.h: Add include guards.  Remove old, now incorrect,
979         comment about STANDARD_EXEC_PREFIX.
980
981         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
982         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
983         for installing .1 manpages.  Add rules for installing cpp
984         and gcov manpages under their installed names.
985
986 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
987
988         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
989         host, but try LD_FOR_TARGET first.
990         * configure: Rebuilt.
991
992 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
993
994         * dbxout.c: Move declaration of dbxout_type_decl outside
995         #ifdef DBX_DEBUGGING_INFO.
996         * c-parse.in: Don't give the asmdef production a type.
997
998 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
999
1000         * debug.h (struct gcc_debug_hooks): Add type_decl field.
1001         (debug_nothing_tree_int): Prototype.
1002         (dwarf_debug_hooks): Delete, unused.
1003         * debug.c (do_nothing_debug_hooks): Update.
1004         (debug_nothing_tree_int): New function.
1005         * langhooks.h (struct lang_hooks_for_decls):
1006         Remove builtin_type_decls field.
1007         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
1008         (LANG_HOOKS_DECLS): Update.
1009         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
1010         Use debug_hooks->type_decl.
1011         * dbxout.c (preinit_symbols): New static.
1012         (dbx_debug_hooks, xcoff_debug_hooks): Update.
1013         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
1014         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
1015         for symbols to output.
1016         (dbxout_type_decl): New function.
1017         (dbxout_symbol): If called before dbxout_init has run, queue
1018         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
1019         to TYPE_DECLs before emitting them.
1020         * xcoffout.c (assign_type_number): Delete.
1021         (xcoff_type_numbers): New static table.
1022         (xcoff_assign_fundamental_type_number): New function.
1023         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
1024         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
1025         * sdbout.c: Include varray.h.
1026         (deferred_global_decls): New static.
1027         (sdb_debug_hooks): Update.
1028         (sdbout_global_decl): If we can't emit something right now,
1029         remember it in deferred_global_decls.
1030         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
1031         (sdbout_init): Initialize deferred_global_decls.
1032         * Makefile.in: Update dependencies of sdbout.o.
1033         * dwarf2out.c (dwarf2out_type_decl): New function.
1034         (dwarf2_debug_hooks): Update.
1035         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
1036         * c-decl.c (getdecls): Just return 0.
1037         (check_for_loop_decls): Don't use getdecls.
1038         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
1039         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
1040
1041 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
1042
1043         * config/s390/s390.c (s390_sched_reorder2): Remove.
1044         (TARGET_SCHED_REORDER2): Do not redefine.
1045
1046 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
1047
1048         * c-parse.in (maybe_type_qual): Delete.
1049         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
1050         (asm_argument): New grammar rules.
1051         (extdef_1): Use asmdef.
1052         (maybeasm): Move down with other asm rules; use simple_asm_expr.
1053         (xexpr): Move up with other expression rules.
1054         (stmt): Use asm_stmt.
1055
1056         * c-typeck.c (build_asm_expr): New function - body mostly
1057         pulled from build_asm_stmt.
1058         (build_asm_stmt): Just handle tacking on the volatile qualifier.
1059         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
1060
1061 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
1062
1063         PR bootstrap/13617
1064         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
1065         (mips_declare_object): Make variadic.
1066         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
1067         mips_output_aligned_decl_common.
1068         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
1069         (mips_declare_object): Make variadic.
1070
1071 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1072
1073         * function.c (update_epilogue_consts): Teach about binary operations.
1074
1075         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
1076         previous MEM_VOLATILE in REF.
1077         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
1078         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
1079
1080 2004-02-12  Gunther Nikl  <gni@gecko.de>
1081
1082         * config.gcc: Restore support for m68k-openbsd.
1083
1084 2004-02-12  Jan Hubicka  <jh@suse.cz>
1085
1086         * tree-optimize.c (tree_rest_of_compilation): Do not release
1087         DECL_ARGUMENTS.
1088
1089 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
1090
1091         * doc/install.texi: Fix the spelling of "explicitly".
1092
1093 2004-02-11  Eric Christopher  <echristo@redhat.com>
1094
1095         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
1096         duplicate argument structure of cpp_interpret_string.
1097         * cpphash.h: Move prototype...
1098         * cpplib.h: Here.
1099         * cpplib.c: Fix calls to match new function signature.
1100
1101 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1102
1103         PR c/456
1104         * cppexp.c (num_binary_op): Don't allow comma operators in #if
1105         constant expressions at all outside C99 mode if pedantic.
1106
1107 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
1108
1109         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
1110         (log10_optab, log2_optab): Define corresponding macros.
1111         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
1112         * genopinit.c (optabs): Implement log10_optab and log2_optab
1113         using log10?f2 and log2?f2 patterns.
1114         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
1115         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
1116         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
1117         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
1118
1119         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
1120         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
1121         log2, log2f and log2l built-ins as inline x87 intrinsics.
1122
1123 2004-02-11  Richard Henderson  <rth@redhat.com>
1124
1125         PR target/1532
1126         * flow.c (insn_dead_p): A clobber of a dead hard register is a
1127         dead insn after reload.
1128
1129 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
1130
1131         * tree.h (frame_base_decl): Add GTY marker.
1132         * var-tracking.c (frame_base_decl): Likewise.
1133
1134 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
1135
1136         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
1137         incorrect, hunk.
1138         (add_location_or_const_value_attribute): Use text_section_label,
1139         not TEXT_SECTION_NAME.
1140
1141 2004-02-11  Per Bothner  <per@bothner.com>
1142
1143         Represent column numbers using line-map's source_location.
1144         The "next available source_location" is now managed internally by
1145         line-maps.c rather than by clients.
1146         * line-map.h (struct line_map):  New field column_bits.
1147         <from_line>:  Rename field to start_location.
1148         (struct line_maps):  New fields highest_location and max_column_hint.
1149         (linemap_check_files_exited):  New declaration.
1150         (linemap_line_start):  New declaration.
1151         (linemap_add):  Remove from_line parameter; use highest_location field.
1152         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
1153         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
1154         (CURRENT_LINE_MAP):  Remove macro.
1155         (linemap_position_for_column):  New inline function.
1156         * line-map.c (linemap_init):  Clear new fields.
1157         (linemap_check_files_exited):  New function, extracted from ...
1158         (linemap_free):  Use linemap_check_files_exited.
1159         (linemap_add):  Remove from_line parameter.  Various updates.
1160         (linemap_line_start):  New function.
1161         (linemap_lookeup):  Update for new field names.
1162         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
1163         linemap_position_for_column may unpredictably change the current map,
1164         it is cleaner and simpler for us to not cache it in cpp_reader.
1165         (struct cpp_buffer):  New sysp field.
1166         Changed warned_cplusplus_comments and from_stage3 to bitfields.
1167         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
1168         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
1169         current map using linemap_lookup.
1170         (do_linemarker):  Also set buffer's sysp field.
1171         (destringize_and_run):  No longer need to decrement current line.
1172         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
1173         (search_path_head, open_file_failed):  Use buffer's sysp.
1174         (cpp_make_system_header):  Get current map using linemap_lookup.
1175         Also set buffer's sysp flag.
1176         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
1177         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
1178         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
1179         (struct cpp_reader):  ... and adding saved_line_base field.
1180         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
1181         Update accordingly.  Don't adjust line.
1182         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
1183         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
1184         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
1185         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
1186         * cpplex.c (_cpp_lex_direct):  Likewise.
1187         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
1188         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
1189         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
1190         Remove col field as it is now subsumed by src_loc.
1191         * cpperror.c:  Update various field, parameter, and macro names.
1192         (print_location):  If col==0, try SOURCE_COLUMN of line.
1193         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
1194         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
1195         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
1196         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
1197         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
1198         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
1199         (_cpp_lex_direct):  Use linemap_position_for_column.
1200         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
1201         parameter.  Instead get it from the line_table global.  Adjust callers.
1202         (print):  Remove map field.  Replace line field to src_line.
1203         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
1204         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
1205         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
1206         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
1207         * cpptrad.c (copy_comment):  Rename variable.
1208         * c-lex.c (map):  Remove static variable, for same reason we removed
1209         cpp_reader's map field.
1210         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
1211         to call linemap_lookup.
1212         (cb_line_change):  Token's line field replaced by src_loc.
1213         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
1214         Don't save new_map.
1215
1216         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
1217         source_location.
1218
1219 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
1220
1221         * config/rs6000/altivec.md (*movv4si_internal): At least one
1222         operand must be register_operand.
1223         (*movv8hi_internal1): Likewise.
1224         (*movv16qi_internal1): Likewise.
1225         (*movv4sf_internal1): Likewise.
1226
1227 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
1228
1229         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
1230         operand.
1231         (movv4hi_internal): Same.
1232         (movv2sf_internal): Same.
1233         (movv1di_internal): Same.
1234
1235 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1236
1237         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
1238         TARGET_OLDABI consistently.
1239         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
1240         mips_va_arg,override_options,compute_frame_size,
1241         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
1242         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
1243         and TARGET_OLDABI consistently.
1244         * config/mips/mips.md (exception_receiver): Likewise.
1245         * config/mips/linux64.h: Likewise.
1246
1247 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
1248
1249         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
1250         Set AltiVec ABI and vrsave as default for ppc64 linux.
1251         (init_cumulative_args): Post error, if try to return
1252         value in AltiVec register without enable AltiVec.
1253         (function_arg_advance): Ditto for passing arguments.
1254
1255 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
1256
1257         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
1258         a label before updating its usage count.
1259
1260 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
1261
1262         * doc/install.texi: Remove extra cd.
1263
1264 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
1265
1266         * c-common.c (vector_size_helper): Remove; call
1267         reconstruct_complex_type() instead.
1268         * tree.c (reconstruct_complex_type): New function
1269         (formerly vector_size_helper() in c-common.c).
1270         (make_vector): Make externally visible.
1271         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
1272
1273 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
1274
1275         * config/h8300/h8300-protos.h: Add a prototype for
1276         h8300_regs_ok_for_stm.
1277         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
1278         * config/h8300/h8300.md (stm_h8300s_2_advanced,
1279         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
1280         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
1281         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
1282         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
1283         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
1284         ldm_h8300s_4_normal, ldm_h8300s_4): Use
1285         h8300_regs_ok_for_stm().
1286
1287 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
1288
1289         PR c/14088
1290         real.c (real_from_string): Look for 'X' as well as 'x' in
1291         hexfloat strings.
1292
1293 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
1294
1295         * config/h8300/h8300.md: Remove an incorrect comment about
1296         peephole2.  Add comments.
1297
1298 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
1299
1300         PR/14058
1301         * emit-rtl.c (set_decl_incoming_rtl): New.
1302         * tree.h (set_decl_incoming_rtl): New.
1303         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
1304         DECL_INCOMING_RTL.
1305         * ada/misc.c (adjust_decl_rtl): Likewise.
1306
1307 2004-02-10  Per Bothner  <per@bothner.com>
1308
1309         * c-opts.c (c_common_post_options):   Don't emit working directory
1310         in cpp output if -P was specified.
1311
1312 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
1313
1314         PR c/14092
1315         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
1316         negate_expr back to the original type.
1317
1318 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
1319
1320         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
1321         bump retaddr here.
1322
1323 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
1324
1325         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
1326         gen_lowpart_SUBREG): Move under the file in which they
1327         are actually declared.
1328
1329 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
1330
1331         * doc/sourcebuild.texi: Add libada documentation.
1332
1333         * doc/install.texi: Update documentation on Ada build, now
1334         that the GNAT lib and tools are built automatically.
1335
1336 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
1337
1338         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
1339         && TARGET_IRIX.
1340
1341 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
1342
1343         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
1344         boundaries outside build_component_ref() call (a macro in ObjC++).
1345
1346 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
1347
1348         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
1349         (init_cumulative_args): Likewise.
1350         (a7_overlap_mentioned_p): Delete prototype.
1351         * config/xtensa/xtensa.c (struct machine_function): Replace
1352         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
1353         Add set_frame_ptr_insn field.
1354         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
1355         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
1356         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
1357         at the function entry and replace the operand with the pseudo.
1358         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
1359         argument and record this flag in CUMULATIVE_ARGS.
1360         (function_arg): Remove result_mode and special-case code to handle
1361         arguments in a7.  Instead, set need_a7_copy flag when there is an
1362         incoming argument in a7.
1363         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
1364         and use the value recorded in cfun->machine->set_frame_ptr_insn.
1365         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
1366         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
1367         special-case code.
1368         (a7_overlap_mentioned_p): Delete.
1369         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
1370         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
1371         arguments to init_cumulative_args and pass "incoming" flag instead.
1372         (BLOCK_REG_PADDING): Delete.
1373         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
1374         checks for reload_in_progress and reload_completed.  Update calls to
1375         xtensa_copy_incoming_a7.
1376         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
1377         to call xtensa_copy_incoming_a7.
1378
1379 2004-02-09  DJ Delorie  <dj@redhat.com>
1380
1381         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
1382         longer modify standard_exec_prefix, standard_bindir_prefix, or
1383         standard_startfile_prefix.
1384
1385 2004-02-09  James E Wilson  <wilson@specifixinc.com>
1386
1387         PR c++/11295
1388         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
1389         to expand_expr_real call, and pass in alt_rtl as last argument.
1390
1391         PR libstdc++/5625
1392         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
1393         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
1394         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
1395         * except.c (expand_builtin_extend_pointer): New.
1396         * except.h (expand_builtin_extend_pointer): Declare.
1397
1398 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
1399
1400         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
1401         unaligned loads and stores.
1402
1403 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1404
1405         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
1406         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
1407
1408         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
1409         * config/mips/iris5.h: ... here.
1410         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
1411
1412         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
1413         * config/mips/iris5.h: ... here.
1414
1415 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1416
1417         * configure.ac: Remove default executable files before AC_PROG_CC.
1418         * configure: Regenerate.
1419
1420 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
1421
1422         PR target/13721
1423         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
1424         print a operand other than a register.
1425
1426 2004-02-09  Roger Sayle  <roger@eyesopen.com>
1427
1428         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
1429         tree code rather than call fold_convert, which doesn't specify a
1430         default floating point to integer conversion.
1431
1432 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
1433
1434         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
1435         code to support SGS assembler.  Reformat adjacent code where possible.
1436         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
1437         definition.
1438         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
1439         for '%#'.
1440         * config/m68k/linux.h, config/m68k/m68k.c,
1441         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
1442         macros and asm_printf() format strings.
1443         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
1444         * config/m68k/linux.h: Update copyright.
1445         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
1446
1447 2004-02-08  Andreas Schwab  <schwab@suse.de>
1448             Bernardo Innocenti  <bernie@develer.com>
1449
1450         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
1451         REGISTER_PREFIX.
1452         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
1453         frame pointer register, overridable by OS targets.
1454         * (M68K_REGNAME): Macro to obtain register name for asm output,
1455         eventually replacing %a6 with M68K_FP_REG_NAME.
1456         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
1457         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
1458         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
1459         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
1460         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
1461
1462 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
1463
1464         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
1465         hook_rtx_tree_int_null.
1466         * targhooks.c (default_struct_value_rtx): Remove.
1467         * targhooks.h: Remove the prototype for
1468         default_struct_value_rtx.
1469         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
1470         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
1471         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
1472         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
1473         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
1474         config/rs6000/rs6000.c, config/s390/s390.c,
1475         config/stormy16/stormy16.c, config/v850/v850.c,
1476         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
1477         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
1478
1479 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
1480
1481         * README.Portability: Change "ISO C89" to "ISO C90".
1482         * c-parse.in (primary, initelt): Likewise.
1483
1484 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
1485
1486         * real.c (encode_ibm_extended): Normalize the input value before
1487         converting it to a double.  Handle the case where a normal value
1488         rounds to infinity.
1489
1490 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
1491
1492         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
1493         warning.
1494         * cse.c (preferrable): Change to preferable. Update all of its
1495         callers.
1496         * genautomata.c (ainsn): Change
1497         first_ainsn_with_given_equialence_num to
1498         first_ainsn_with_given_equivalence_num.  Update all of its
1499         references.
1500
1501 2004-02-08  Jan Hubicka  <jh@suse.cz>
1502
1503         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
1504
1505 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
1506
1507         * function.c (assign_parms): Fix formatting.
1508
1509 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
1510
1511         * default.h (PROMOTE_PROTOTYPES): Remove.
1512         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
1513         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
1514         EXPAND_BUILTIN_SAVEREGS): Poison.
1515         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
1516         hook_bool_tree_false.
1517         (TARGET_PROMOTE_PROTOTYPES): Likewise.
1518         * target.h: Replace SETUP_INCOMING_VARARGS with
1519         targetm.calls.setup_incoming_varargs().
1520         * targhooks.c (default_promote_function_return): Remove.
1521         (default_promote_prototypes): Likewise.
1522         (default_struct_value_rtx): Always abort().
1523         (default_expand_builtin_saveregs): Always print an error
1524         message.
1525         (default_setup_incoming_varargs): Do nothing.
1526         (default_pretend_outgoing_varargs_named): Don't depend on
1527         SETUP_INCOMING_VARARGS.
1528         * targhooks.h: Remove the prototype for
1529         default_promote_function_return and
1530         default_promote_prototypes.
1531
1532 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
1533
1534         * system.h (SHARED_SECTION_ASM_OP): Poison.
1535         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
1536         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
1537
1538 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
1539
1540         Bug 13856
1541         * c-decl.c (diagnose_mismatched_decls): Only give special
1542         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
1543         is also true.
1544         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
1545         DECL_FUNCTION_CODE when defining a built-in function.
1546         Don't update DECL_ESTIMATED_INSNS.
1547         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
1548         FUNCTION_DECLs.
1549         * tree.h: Delete DECL_ESTIMATED_INSNS.
1550         * tree-inline.c (struct inline_data): Delete inlined_insns field.
1551         (expand_call_inline, optimize_inline_calls): Don't update
1552         DECL_ESTIMATED_INSNS nor inlined_insns.
1553         * cgraphunit.c (cgraph_analyze_function): Don't update
1554         DECL_ESTIMATED_INSNS.
1555
1556 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
1557
1558         * c-common.c (shadow_warning): Delete.
1559         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
1560         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
1561         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
1562         * c-parse.in (free_parser_stacks): Delete.
1563
1564 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
1565
1566         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
1567         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
1568         Use the top level mkinstalldirs, not the one in the gcc subdir.
1569         * mkinstalldirs: Remove (from the gcc subdir).
1570
1571 2004-02-07  Roger Sayle  <roger@eyesopen.com>
1572
1573         PR middle-end/13696
1574         * fold-const.c (fold_convert): New function to provide type
1575         conversion to the middle-end without using convert.
1576         (negate_expr, associate_trees, size_diffop, omit_one_operand,
1577         operand_equal_for_comparison_p, pedantic_omit_one_operand,
1578         invert_truthvalue, optimize_bit_field_compare, range_binop,
1579         decode_field_reference, make_range, build_range_check, unextend,
1580         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
1581         fold_binary_op_with_conditional_arg, fold_inf_compare,
1582         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
1583         convert with calls to fold_convert.
1584
1585 2004-02-07  Jan Hubicka  <jh@suse.cz>
1586
1587         * genrecog.c (find_operand): add extra argument stop.
1588         (validate_pattern): Verify that mach_dup is duplicating operand
1589         defined lexically earlier.
1590
1591 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
1592
1593         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
1594         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
1595         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
1596         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
1597         config/ia64/ia64.h, config/ip2k/ip2k.h,
1598         config/iq2000/iq2000.h, config/mips/iris5.h,
1599         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
1600         config/rs6000/aix51.h, config/rs6000/aix52.h,
1601         config/rs6000/darwin.h, config/rs6000/rs6000.h,
1602         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
1603         config/sparc/linux.h, config/sparc/linux64.h,
1604         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
1605         config/xtensa/xtensa.h: Remove the definitions of
1606         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
1607         MAX_WCHAR_TYPE_SIZE.
1608         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
1609         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
1610
1611 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
1612
1613         PR bootstrap/13990
1614         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
1615         gen_rtx_NE.
1616
1617 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
1618
1619         * var-tracking.c (vt_add_function_parameters): Surround checkings by
1620         #ifdef ENABLE_CHECKING and #endif.
1621
1622 2004-02-07  Roger Sayle  <roger@eyesopen.com>
1623
1624         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
1625         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
1626         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
1627         integer types and floating point with unsafe_math_optimizations.
1628         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
1629         Optimize A - B as A + (-B), if B is easily negated.
1630
1631 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
1632
1633         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
1634         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
1635         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
1636         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
1637         Update copyright.
1638
1639 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
1640
1641         * c-ppoutput.c, var-tracking.c: Fix comment typos.
1642
1643 2004-02-06  James E Wilson  <wilson@specifixinc.com>
1644
1645         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
1646         glibc 2.3 or better.
1647
1648 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
1649
1650         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
1651         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
1652
1653 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
1654
1655         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
1656         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
1657         (SHLIB_MKMAP_OPTS): Delete.
1658         (TARGET_LIBGCC2_CFLAGS): Add -specs.
1659         (bispecs): Add rule.
1660         * config/rs6000/libgcc-ppc64.ver: New file.
1661         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
1662         (__floatdidf, __floatdisf): Optimize multiply.
1663         (__fixunstfdi): New function.
1664         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
1665         real and imag parts larger than one register.
1666         (function_arg): Correct type of reg used when fp arg split partially
1667         to stack.
1668         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
1669         and __MACH__ or __powerpc64__.
1670
1671 2004-02-06  Roger Sayle  <roger@eyesopen.com>
1672             Ulrich Weigand  <uweigand@de.ibm.com>
1673
1674         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
1675         of gen_highpart or gen_lowpart when the floating point format is
1676         wider than the result mode.
1677
1678 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
1679
1680         * dwarf2out.c (loclabel_num): Move into #ifdef
1681         DWARF2_DEBUGGING_INFO.
1682
1683 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
1684
1685         * objc/objc-act.c (build_super_template) the 'class' field of
1686         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
1687         (get_super_receiver): Likewise.
1688
1689 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
1690
1691         * reload1.c (check_eliminable_occurrences): Optimize the reset
1692         of can_eliminate.
1693         (eliminate_regs_in_insn): Likewise.
1694
1695 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
1696             Josef Zlomek  <zlomekj@suse.cz>
1697
1698         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
1699         at the beginning of function, call dwarf2out_var_location for
1700         NOTE_INSN_VAR_LOCATION note.
1701         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
1702         decl_loc_table): New.
1703         (lookup_decl_loc): New function.
1704         (add_var_loc_to_decl): New function.
1705         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
1706         only if can_use_fbreg.
1707         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
1708         functions.
1709         (loc_descriptor): Likewise. Process VAR_LOCATION.
1710         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
1711         (loc_descriptor_from_tree): Call mem_loc_descriptor with
1712         can_use_fbreg == true.
1713         (add_location_or_const_value_attribute): Added parameter enum
1714         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
1715         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
1716         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
1717         with attr == DW_AT_location.
1718         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
1719         if frame_base_decl is defined and has a location list.
1720         (gen_variable_die): Call add_location_or_const_value_attribute with
1721         attr == DW_AT_location.
1722         (dwarf2out_var_location): New function.
1723         (dwarf2out_begin_function): New function.
1724         (dwarf2out_init): Create decl_loc_table.
1725
1726 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
1727
1728         * loop.c (force_movables): Transitively increase the priorities of
1729         all insns forces by an insn, not just the first one.
1730
1731 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
1732             Daniel Berlin <dberlin@dberlin.org>
1733
1734         Josef Zlomek  <zlomekj@suse.cz>
1735         * Makefile.in (var-tracking.o): New.
1736         * common.opt (fvar-tracking): New.
1737         * flags.h (flag_var_tracking): New.
1738         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
1739         * opts.c (common_handle_option): Add OPT_fvar_tracking.
1740         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
1741         * rtl.c (note_insn_name): Likewise.
1742         * rtl.def (VAR_LOCATION): New.
1743         * rtl.h (NOTE_VAR_LOCATION): New.
1744         (NOTE_VAR_LOCATION_DECL): New.
1745         (NOTE_VAR_LOCATION_LOC): New.
1746         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
1747         (variable_tracking_main): New exported function.
1748         * timevar.def (TV_VAR_TRACKING): New.
1749         * toplev.c (enum dump_file_index): Added DFI_vartrack.
1750         (dump_file): "vartrack" was added (-dV).
1751         (flag_var_tracking): New.
1752         (f_options): "var-tracking" was added.
1753         (rest_of_handle_variable_tracking): New function.
1754         (rest_of_compilation): Run variable tracking.
1755         (process_options): If user has not specified flag_var_tracking set it
1756         according to optimize, debug_info_level and debug_hooks.
1757         * tree.h (frame_base_decl): New.
1758         * var-tracking.c: New file.
1759         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
1760         (ia64_override_options): Set flags to run variable tracking in machine
1761         dependent reorg instead of toplev.c.
1762         (ia64_reorg): Run variable tracking if wanted.
1763         * doc/invoke.texi: Mention variable tracking in -dV,
1764         add and -fvar-tracking.
1765         * doc/passes.texi: Added variable tracking pass.
1766
1767         Daniel Berlin <dberlin@dberlin.org>
1768         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
1769         * dbxout.c (dbx_debug_hooks): Likewise.
1770         (xcoff_debug): Likewise.
1771         * debug.c (do_nothing_debug_hooks): Likewise.
1772         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
1773         * dwarfout.c (dwarf_debug_hooks): Likewise.
1774         * sdbout.c (sdb_debug_hooks): Likewise.
1775         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1776         * final.c (final_scan_insn): Call var_location debug hook for each
1777         NOTE_INSN_VAR_LOCATION.
1778
1779 2004-02-06  Jan Hubicka  <jh@suse.cz>
1780
1781         * flow.c (update_life_info): Allocate reg_deaths when called from
1782         scheudler.
1783         (attempt_auto_inc):  Update life ranges accordingly.
1784
1785 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
1786
1787         PR debug/11816
1788         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
1789
1790 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
1791
1792         * cfganal.c (flow_call_edges_add): Never split a libcall block.
1793
1794 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
1795
1796         * dwarf2out.c (output_loc_list): Don't use deltas if we have
1797         a separate line info table in use.
1798         Use the correct size for terminators.
1799         (output_die): Use offset, not delta.
1800
1801 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
1802
1803         * doc/invoke.texi: Remove the pni option from -mfpmath=.
1804
1805 2004-02-06  Jan Hubicka  <jh@suse.cz>
1806
1807         * recog.c (split_all_insns): Do not update reg info.
1808         * regrename.c (regrename_optimize): Likewise.
1809         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
1810         * flow.c (struct propagate_block_info): Add insn_num field.
1811         (reg_deaths): New array.
1812         (life_analysis): Free reg_deaths info.
1813         (allocate_reg_life_data): Allocate reg_deaths array.
1814         (propagate_one_insn): Use new array.
1815         (init_propagate_block): Initialize it.
1816         (free_propagate_block_info): Finish compuation of
1817         REG_LIVE_LENGTH
1818         (attempt_auto_inc): Sanity check that REG_INFO is not
1819         computed at same time.
1820         (mark_used_regs): Update new array.
1821
1822         * reg-stack.c (subst_stack_regs): Unshare clobbers before
1823         substitution.
1824
1825 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
1826
1827         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
1828         *extendqisi2_short_displ.
1829
1830 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
1831
1832         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
1833         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
1834         (emit_library_call_value_1): Likewise pass nargs.
1835         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
1836         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
1837         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
1838         parameter instead of scanning TYPE_ARGS_TYPES to count args.
1839         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
1840         prototype.
1841         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
1842         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
1843         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
1844         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
1845         INIT_CUMULATIVE_ARGS.
1846         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
1847         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
1848         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
1849         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
1850         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
1851         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
1852         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
1853         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
1854         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
1855         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
1856         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
1857         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
1858
1859 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
1860
1861         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
1862         possible.
1863
1864 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
1865
1866         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
1867         note containing (plus (reg) (const_int)), where reg is an
1868         eliminable reg, then perform the register elimination without
1869         depending on eliminate_regs().
1870
1871 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
1872
1873         * config/arc/arc.c (arc_return_in_memory): Check the return
1874         value of int_size_in_bytes against -1.  Don't check
1875         TREE_ADDRESSABLE.
1876         * config/avr/avr.c (avr_return_in_memory): Check the return
1877         value of int_size_in_bytes against -1.
1878         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
1879         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
1880         Likewise.
1881         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
1882         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
1883         Likewise.
1884
1885 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
1886
1887         * config/frv/frv-protos.h: Remove the prototype for
1888         frv_setup_incoming_varargs.
1889         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
1890         (frv_setup_incoming_varargs): Make it static.
1891         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
1892
1893 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
1894
1895         * config/fr30/fr30-protos.h: Remove the prototype for
1896         fr30_setup_incoming_varargs.
1897         Update the prototypes for fr30_num_arg_regs and
1898         fr30_function_arg_partial_nregs.
1899         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
1900         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
1901         (fr30_setup_incoming_varargs): Make it static.
1902         Add argument second_time.  Don't do anything when second_time
1903         is nonzero.
1904         (fr30_num_arg_regs): Change the type of the first argument to
1905         enum machine_mode.
1906         (fr30_function_arg_partial_nregs): Change the type of the
1907         second argument to enum machine_mode.
1908         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
1909         (SETUP_INCOMING_VARARGS): Remove.
1910
1911 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
1912
1913         * config/arc/arc-protos.h: Remove the prototype for
1914         arc_setup_incoming_varargs.
1915         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
1916         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
1917         (arc_setup_incoming_varargs): Make it static.
1918         (arc_external_libcall): Likewise.
1919         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
1920         Remove the commented-out definition of
1921         ASM_OUTPUT_EXTERNAL_LIBCALL.
1922
1923 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1924
1925         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
1926         to $$(slibdir) in the installation commands.
1927
1928 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
1929
1930         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
1931         with inner_regno, not regno.
1932         * rtlanal.c (refers_to_regno_p): Same.
1933
1934 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
1935
1936         * config.gcc: Remove i370 support.
1937
1938 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
1939
1940         * doc/install.texi:  Update automake and autoconf version
1941         requirements.  Note where to find gcj automake version.
1942
1943 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
1944
1945         * Makefile.in (generate-manpages): Move dependencies to ...
1946         (man): here.
1947         * doc/makefile.texi: Document new targets.
1948         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
1949
1950 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
1951
1952         PR/13485
1953         Makefile.in (srcextra):  Add a level of indirection to ...
1954         (gcc.srcextra): ... here.
1955         (po-generated): Delete.
1956         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
1957         options.c.
1958         (start.encap): Remove superfluous lang.srcextra dependency.
1959         objc/Make-lang.in (po-generated):  Delete.
1960
1961 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
1962
1963         * config/ia64/ia64.c (REG_GP): Remove.
1964
1965 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1966
1967         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
1968
1969 2004-02-05  Devang Patel  <dpatel@apple.com>
1970
1971         * dwarf2out.c (force_type_die): Look up input type itself
1972         instead of root_type() of type.
1973
1974 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
1975
1976         * config/s390/s390.md ("*tmqidi_ext"): New insn.
1977         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
1978         pre-reload splitters are transformed to post-reload
1979         define_insn_and_split patterns.
1980         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
1981
1982 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
1983
1984         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
1985         TARGET_PROMOTE_PROTOTYPES.
1986
1987 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1988
1989         PR middle-end/13750
1990         Revert:
1991         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
1992         PR pch/13361
1993         * c-typeck.c (constructor_asmspec): Delete.
1994         (struct initializer_stack): Delete field 'asmspec'.
1995         (start_init): Delete saving of asmspec.
1996         (finish_init): Don't update constructor_asmspec.
1997         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
1998         * stmt.c (expand_asm): Duplicate strings from tree.
1999         (expand_asm_operands): Likewise.
2000         * tree.c (tree_size): Update computation of size of STRING_CST.
2001         (make_node): Don't make STRING_CST nodes.
2002         (build_string): Allocate string with tree node.
2003         * tree.def (STRING_CST): Update comment.
2004         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
2005         (tree_string): Place contents of string in tree node.
2006         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
2007         from tree.
2008
2009 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
2010
2011         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
2012         msgid.
2013
2014 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
2015
2016         * config/rs6000/altivec.md (*movv4si_internal): At least one
2017         operand must be altivec_register_operand.
2018         (*movv8hi_internal1): Likewise.
2019         (*movv16qi_internal1): Likewise.
2020         (*movv4sf_internal1): Likewise.
2021
2022 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
2023
2024         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
2025         * configure: Regenerate.
2026
2027 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
2028
2029         * doc/install.texi: Update description of --gxx-include-dir to
2030         give correct default value.
2031
2032 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
2033
2034         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
2035         8 with MAC_REG.
2036
2037 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
2038
2039         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
2040         gen_rtx_PARALLEL.
2041
2042 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
2043
2044         * emit-rtl.c: Update the comment about the file.
2045
2046 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
2047
2048         * sourcebuild.texi (Test Idioms): Update testcase naming
2049         conventions.
2050
2051 2004-02-04  Per Bothner  <per@bothner.com>
2052
2053         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
2054         * c-ppoutput.c (pp_dir_change):  New function.
2055         * c-common.h (pp_dir_change):  New declaration.
2056         * cpplib.h (struct cpp_options):  Remove working_directory field.
2057         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
2058         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
2059         Don't handle -fworking_directory here, but in c_common_post_options.
2060         (read_original_directory): Don't back up when done.
2061         Don't clear no-longer used working_directory flag.
2062         * cpplib.h:  Update declarations to match.
2063         * c-lex.c (cb_dir_change):  Move to c-opts.c.
2064         (init_c_lex):  Don't set dir_change callback here, since we want
2065         to set it even if flag_preprocess_only.
2066         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
2067         (c_common_post_options):  Set dir_change callback.
2068         Call pp_dir_change if approporiate.
2069         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
2070         unneeded parameter and result. Do LC_RENAME for <built-in>.
2071         (c_common_post_options):  Call cpp_read_main_file here instead.
2072         (c_common_init):  Update accordingly.
2073         (push_command_line_include):  Don't cpp_push_main_file.
2074         Do LC_RENAME rather than LC_LEASE to get back to main file.
2075         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
2076         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
2077         files, but call finish_options for all files.
2078         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
2079         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
2080         cpp_find_main_file + cpp_push_main_file.
2081         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
2082         * opts.c (handle_options):  Only set main_input_filename first time.
2083
2084 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
2085
2086         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
2087
2088 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
2089
2090         * reload.c (find_equiv_reg): When checking for register overlap,
2091         don't index hard_regno_nregs with a pseudo-reg.
2092
2093 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2094
2095         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
2096
2097 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
2098
2099         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
2100         against FIRST_PSEUDO_REGISTER.
2101
2102 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2103
2104         * Makefile.in: Move target, host overrides after per-language
2105         fragments.
2106
2107         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
2108         (GNATLIBCFLAGS): Remove -g.
2109
2110 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2111
2112         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
2113         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
2114         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
2115         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
2116         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
2117         config/sparc/sparc.c, config/vax/vax.c: Revert the
2118         replacements of "FALLTHRU" with "Fall through" done in the
2119         previous patch.
2120
2121 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2122
2123         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
2124         config/arm/arm.c, config/arm/arm.md,
2125         config/cris/cris-protos.h, config/fr30/fr30.c,
2126         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
2127         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
2128         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
2129         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
2130         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
2131         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
2132         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
2133         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
2134         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
2135         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
2136         config/s390/s390.md, config/sparc/netbsd-elf.h,
2137         config/sparc/openbsd.h, config/sparc/sparc.c,
2138         config/xtensa/lib2funcs.S: Fix comment formatting.
2139
2140 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2141
2142         * config/alpha/alpha.c, config/arc/arc.c,
2143         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
2144         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
2145         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
2146         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
2147         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
2148         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
2149         config/iq2000/iq2000.c, config/m32r/m32r.c,
2150         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
2151         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
2152         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
2153         config/rs6000/rs6000.h, config/sparc/sparc.c,
2154         config/vax/vax.c: Fix comment typos.  Follow spelling
2155         conventions.
2156
2157 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2158
2159         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
2160         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
2161         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
2162         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
2163         config/arm/fpa.md, config/arm/iwmmxt.md,
2164         config/arm/netbsd-elf.h, config/arm/netbsd.h,
2165         config/m68hc11/m68hc11.md, config/mips/iris5.h,
2166         config/mn10300/mn10300.md, config/rs6000/altivec.md,
2167         config/sparc/netbsd-elf.h: Update copyright.
2168
2169 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2170
2171         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
2172         for all modes whose size is greater than 8 bytes if ARCH32.
2173         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
2174         by reference if ARCH32.
2175
2176 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
2177
2178         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
2179
2180 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2181
2182         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
2183         to before adddi3 insn patterns.
2184         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
2185         "reload_insi"): Move to before addsi3 insn patterns.
2186
2187 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
2188
2189         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
2190         parameter.  Use it instead of current_function_is_thunk.
2191         * function.h (struct function): Update documentation for is_thunk.
2192         * tree.h (CALL_FROM_THUNK_P): New macro.
2193         * config/alpha/alpha.c (alpha_sa_mask): Do not check
2194         no_new_pseudos when testing current_function_is_thunk.
2195         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
2196
2197 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2198
2199         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
2200         TARGET_SETUP_INCOMING_VARARGS.
2201
2202 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2203
2204         * emit-rtl.c (gen_rtx): Remove.
2205         * genattrtab.c: Don't mention gen_rtx in a comment.
2206         * rtl.h: Remove the prototype for gen_rtx.
2207         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
2208
2209 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2210
2211         * config/arc/arc.h, config/fr30/fr30.h
2212         (SETUP_INCOMING_VARARGS): Remove the target-independent
2213         comments.
2214         * doc/tm.texi: Don't mention deprecated target macros.
2215
2216 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2217
2218         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
2219         target-independent comment.
2220
2221 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2222
2223         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
2224         mention deprecated target macros.
2225
2226 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
2227
2228         * config.gcc: Remove obsolete ports and configurations.
2229         * config/linux-aout.h, config/netware.h,
2230         config/t-linux-gnulibc1, config/d30v/abi,
2231         config/d30v/d30v-protos.h, config/d30v/d30v.c,
2232         config/d30v/d30v.h, config/d30v/d30v.md,
2233         config/d30v/libgcc1.asm, config/d30v/t-d30v,
2234         config/dsp16xx/dsp16xx-modes.def,
2235         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
2236         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
2237         config/i370/README, config/i370/i370-c.c,
2238         config/i370/i370-protos.h, config/i370/i370.c,
2239         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
2240         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
2241         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
2242         config/i386/moss.h, config/i386/netware.h,
2243         config/i386/svr3.ifile, config/i386/svr3dbx.h,
2244         config/i386/svr3gas.h, config/i386/svr3z.ifile,
2245         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
2246         config/i960/i960-c.c, config/i960/i960-coff.h,
2247         config/i960/i960-modes.def, config/i960/i960-protos.h,
2248         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
2249         config/i960/rtems.h, config/i960/t-960bare,
2250         config/m68k/hp310.h, config/m68k/hp320.h,
2251         config/m68k/hp320base.h, config/m68k/m68kv4.h,
2252         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
2253         Remove.
2254         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
2255         doc/md.texi: Remove mentions of obsolete ports.
2256
2257 2004-02-04  Jan Hubicka  <jh@suse.cz>
2258
2259         * alias.c (find_base_term, get_addr):  Do not dereference NULL
2260         pointer when all VALUE's locations has been invalidated.
2261         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
2262
2263 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
2264
2265         * doc/invoke.texi (x86 options): Fix spelling/wording.
2266
2267 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
2268
2269         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
2270         put the original string in a comment.
2271         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
2272         * config/mips/mips.c (mips_output_ascii): Likewise.
2273         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
2274
2275 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
2276
2277         * system.h (GIV_SORT_CRITERION): Poison.
2278         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
2279         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
2280
2281 2004-02-03  Roger Sayle  <roger@eyesopen.com>
2282
2283         PR target/9348
2284         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
2285         multiplies with a multiplication of the wrong signedness, its the
2286         signedness of the multiplication that we've performed that needs to
2287         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
2288         if expand_mult_highpart_adjust places the result in target.
2289
2290 2004-02-03  Richard Henderson  <rth@redhat.com>
2291
2292         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
2293
2294 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
2295
2296         * config.gcc (sh[234]l): Use little endian fragments.
2297
2298 2004-02-03  Paul Koning  <pkoning@equallogic.com>
2299
2300         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
2301         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
2302         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
2303         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
2304         floating point format.
2305         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
2306         the above functions.
2307         (output_move_quad): Output float values in correct target format.
2308         (legitimate_const_double_p): New function.
2309         * config/pdp11/pdp11.h: Fix typos.
2310         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
2311         (TARGET_FLOAT_FORMAT): Ditto.
2312         (pdp11_f_format, pdp11_d_format): Add external declarations.
2313         (MAX_REGS_PER_ADDRESS): Corrected.
2314         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
2315         (PRINT_OPERAND): Output float literals in target format.
2316
2317 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
2318
2319         PR c++/13975
2320         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
2321         TI_PRIVATE.
2322         (access_public_node): Redefine.
2323         (access_protected_node): Likewise.
2324         (access_private_node): Likewise.
2325         * tree.c (build_common_tree_nodes): Create access_public_node,
2326         access_protected_node, and access_private_node.
2327
2328 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
2329
2330         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
2331         (MASK_INLINE_INT_DIV_THR): Ditto.
2332         (MASK_INLINE_SQRT_LAT): Ditto.
2333         (MASK_INLINE_SQRT_THR): Ditto.
2334         (MASK_DWARF2_ASM): Ditto.
2335         (MASK_EARLY_STOP_BITS): Ditto.
2336
2337 2004-02-02  Paul Brook  <paul@codesourcery.com>
2338
2339         Merge from csl-arm-branch.
2340
2341         2004-01-30  Paul Brook  <paul@codesourcery.com>
2342
2343         * aof.h (REGISTER_NAMES): Add vfp reg names
2344         (ADDITIONAL_REGISTER_NAMES): Ditto.
2345         * aout.h (REGISTER_NAMES): Ditto.
2346         (ADDITIONAL_REGISTER_NAMES): Ditto.
2347         * arm-protos.h: Update/Add Prototypes.
2348         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
2349         Only allow 0.0 for VFP.
2350         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
2351         (values_fp): Rename from values_fpa.  Update Users.
2352         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
2353         Update users.  Only check valid constants for this hardware.
2354         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
2355         Only allow consts for FPA.
2356         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
2357         Only allow consts for FPA.
2358         (use_return_insn): Check for saved VFP regs.
2359         (arm_legitimate_address_p): Handle VFP DFmode addressing.
2360         (arm_legitimize_address): Ditto.
2361         (arm_general_register_operand): New function.
2362         (vfp_mem_operand): New function.
2363         (vfp_compare_operand): New function.
2364         (vfp_secondary_reload_class): New function.
2365         (arm_float_compare_operand): New function.
2366         (vfp_print_multi): New function.
2367         (vfp_output_fstmx): New function.
2368         (vfp_emit_fstm): New function.
2369         (arm_output_epilogue): Output VPF reg restore code.
2370         (arm_expand_prologue): Output VFP reg save code.
2371         (arm_print_operand): Add 'P'.
2372         (arm_hard_regno_mode_ok): Return modes for VFP regs.
2373         (arm_regno_class): Return classes for VFP regs.
2374         (arm_compute_initial_elimination_offset): Include space for VFP regs.
2375         (arm_get_frame_size): Ditto.
2376         * arm.h (FIXED_REGISTERS): Add VFP regs.
2377         (CALL_USED_REGISTERS): Ditto.
2378         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
2379         (FIRST_VFP_REGNUM): Define.
2380         (LAST_VFP_REGNUM): Define.
2381         (IS_VFP_REGNUM): Define.
2382         (FIRST_PSEUDO_REGISTER): Include VFP regs.
2383         (HARD_REGNO_NREGS): Handle VFP regs.
2384         (REG_ALLOC_ORDER): Add VFP regs.
2385         (enum reg_class): Add VFP_REGS.
2386         (REG_CLASS_NAMES): Ditto.
2387         (REG_CLASS_CONTENTS): Ditto.
2388         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
2389         (REG_CLASS_FROM_LETTER): Add 'w'.
2390         (EXTRA_CONSTRAINT_ARM): Add 'U'.
2391         (EXTRA_MEMORY_CONSTRAINT): Define.
2392         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
2393         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
2394         (REGISTER_MOVE_COST): Ditto.
2395         (PREDICATE_CODES): Add arm_general_register_operand,
2396         arm_float_compare_operand and vfp_compare_operand.
2397         * arm.md (various): Rename as above.
2398         (divsf3): Enable when TARGET_VFP.
2399         (divdf3): Ditto.
2400         (movdfcc): Ditto.
2401         (sqrtsf2): Ditto.
2402         (sqrtdf2): Ditto.
2403         (arm_movdi): Disable when TARGET_VFP.
2404         (arm_movsi_insn): Ditto.
2405         (movsi): Only split with general regs.
2406         (cmpsf): Use arm_float_compare_operand.
2407         (push_fp_multi): Restrict to TARGET_FPA.
2408         (vfp.md): Include.
2409         * vfp.md: New file.
2410         * fpa.md (various): Rename as above.
2411         * doc/md.texi: Document ARM w and U constraints.
2412
2413         2004-01-15  Paul Brook  <paul@codesourcery.com>
2414
2415         * config.gcc: Add with_fpu.  Allow with-float=softfp.
2416         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
2417         Break out of loop when we find a float-abi.  Fix typo.
2418         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
2419         Set -mfloat-abi=.
2420         * doc/install.texi: Document --with-fpu.
2421
2422         2003-01-14  Paul Brook  <paul@codesourcery.com>
2423
2424         * config.gcc (with_arch): Add armv6.
2425         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
2426         * config/arm/arm.c (arm_overrride_options): Ditto.
2427
2428         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
2429
2430         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
2431         (FL_ARCH6): Renamed from FL_ARCH6J.
2432         (arm_arch3m): Renamed from arm_fast_multiply.
2433         (arm_arch6): Renamed from arm_arch6j.
2434         * arm.h: Update all uses of above.
2435         * arm-cores.def: Likewise.
2436         * arm.md: Likewise.
2437
2438         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
2439         not arm6j.  Add entry for arch armv6.
2440
2441         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
2442
2443         * arm.c (arm_emit_extendsi): Delete.
2444         * arm-protos.h (arm_emit_extendsi): Delete.
2445         * arm.md (zero_extendhisi2): Also handle zero-extension of
2446         non-subregs.
2447         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
2448         (thumb_zero_extendhisi2): Only match if not v6.
2449         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
2450         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
2451         (thumb_extendqisi2): Likewise.
2452         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
2453         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
2454         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
2455         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
2456         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
2457         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
2458         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
2459         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
2460         (arm_extendqisi2addsi): Likewise.
2461
2462         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
2463
2464         Revert this change:
2465         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
2466         + REG addressing modes.
2467
2468         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
2469         + REG addressing modes.
2470
2471         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
2472
2473         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
2474         CONSTANT_P_RTX.
2475
2476         2003-30-12  Paul Brook  <paul@codesourcery.com>
2477
2478         * longlong.h: protect arm inlines with !defined (__thumb__)
2479
2480         2003-30-12  Paul Brook  <paul@codesourcery.com>
2481
2482         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
2483
2484         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
2485
2486         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
2487         change.
2488
2489         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
2490
2491         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
2492         to the virtual incoming args pointer for downward stacks.
2493
2494         2003-12-29  Paul Brook  <paul@codesourcery.com>
2495
2496         * config/arm/arm-cores.def: Add cost function.
2497         * config/arm/arm.c (arm_*_rtx_costs): New functions.
2498         (arm_rtx_costs): Remove
2499         (struct processors): Add rtx_costs field.
2500         (all_cores, all_architectures): Ditto.
2501         (arm_override_options): Set targetm.rtx_costs.
2502         (thumb_rtx_costs): New function.
2503         (arm_rtx_costs_1): Remove cases handled elsewhere.
2504         * config/arm/arm.h (processor_type): Add COSTS parameter.
2505
2506         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
2507
2508         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
2509         (arm926ejs.md): Include it.
2510         * config/arm/arm926ejs.md: New pipeline description.
2511
2512         2003-12-24  Paul Brook  <paul@codesourcery.com>
2513
2514         * config/arm/arm.c (arm_arch6j): New variable.
2515         (arm_override_options): Set it.
2516         (arm_emit_extendsi): New function.
2517         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
2518         * config/arm/arm.h (arm_arch6j): Declare.
2519         * config/arm/arm.md: Add sign/zero extend insns.
2520
2521         2003-12-23  Paul Brook  <paul@codesourcery.com>
2522
2523         * config/arm/arm.c (all_architectures): Add armv6.
2524         * doc/invoke.texi: Document it.
2525
2526         2003-12-19  Paul Brook  <paul@codesourcery.com>
2527
2528         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
2529         insn patterns to match.
2530         * config/arm/arm-generic.md: Ditto.
2531         * config/arm/cirrus.md: Ditto.
2532         * config/arm/fpa.md: Ditto.
2533         * config/amm/iwmmxt.md: Ditto.
2534         * config/arm/arm1026ejs.md: Ditto.
2535         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
2536         for 11_loadb.
2537
2538         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
2539
2540         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
2541         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
2542         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
2543         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
2544         arm_no_early_mul_dep): Correctly deal with conditional execution,
2545         parallels and single shift operations.
2546         (arm_no_early_alu_shift_value_dep): Define.
2547         * arm.md (attr type): Replace 'normal' with 'alu',
2548         'alu_shift' and 'alu_shift_reg'.
2549         (attr core_cycles): Adjust.
2550         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
2551         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
2552         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
2553         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
2554         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
2555         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
2556         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
2557         attribute appropriately.
2558         * config/arm/arm1026ejs.md (alu_op): Adjust.
2559         (alu_shift_op, alu_shift_reg_op): New.
2560         * config/arm/arm1136.md: Add better bypasses for early
2561         registers. Remove load[234] and store[234] bypasses.
2562         (11_alu_op): Adjust.
2563         (11_alu_shift_op, 11_alu_shift_reg_op): New.
2564
2565         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
2566
2567         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
2568         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
2569         * config/arm/arm.c (arm_no_early_store_addr_dep,
2570         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
2571         * config/arm/arm1026ejs.md: Add load-store bypass.
2572         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
2573         Add bypasses between instructions.
2574
2575         2003-12-10  Paul Brook  <paul@codesourcery.com>
2576
2577         * config/arm/arm.c (arm_fpu_model): New variable.
2578         (arm_fload_abi): New variable.
2579         (target_fpe_name): Rename from target_fp_name.
2580         (target_fpu_name): New variable.
2581         (arm_is_cirrus): Remove.
2582         (fpu_desc): New struct.
2583         (all_fpus): Define.
2584         (pf_model_for_fpu): Define.
2585         (all_loat_abis): Define.
2586         (arm_override_options): Set fp arch flags based on -mfpu=
2587         and -float-abi=.
2588         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
2589         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
2590         (*): Use new TARGET_* flags.
2591         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
2592         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
2593         (TARGET_SOFT_FLOAT): Ditto.
2594         (TARGET_SOFT_FLOAT_ABI): New.
2595         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
2596         TARGET_HARD_FLOAT.
2597         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
2598         (TARGET_OPTIONS): Add -mfpu=.
2599         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
2600         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
2601         (arm_pf_model): Define.
2602         (arm_float_abi_type): Define.
2603         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
2604         * config/arm/arm.md: Use new TARGET_* flags.
2605         * config/arm/cirrus.md: Ditto.
2606         * config/arm/fpa.md: Ditto.
2607         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
2608         * config/arm/semi.h (ASM_SPEC): Ditto.
2609         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
2610         (FPUTYPE_DEFAULT): Set to VFP.
2611         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
2612
2613         2003-11-22  Phil Edwards  <phil@codesourcery.com>
2614
2615         PR target/12476
2616         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
2617         'bx' instead of 'b' to avoid branch range restrictions.  Output
2618         the thunk immediately before the thunked-to function.
2619         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
2620         .thumb_func if a thunk is being generated.  Emit .code 16 along
2621         with .thumb_func if a thunk is not being generated.
2622
2623         2003-11-15  Nicolas Pitre <nico@cam.org>
2624
2625         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
2626         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
2627         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
2628         (lshrdi3_iwmmxt): Renamed from lshrdi3.
2629         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
2630
2631         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
2632             Ian Lance Taylor  <ian@wasabisystems.com>
2633
2634         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
2635         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
2636
2637         2003-11-05  Phil Edwards  <phil@codesourcery.com>
2638
2639         * config/arm/arm.md (insn):  Add new V6 instruction names.
2640         (generic_sched):  New attr.
2641         * config/arm/arm-generic.md:  Use generic_sched here.
2642         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
2643         stages of pipeline.  Adjust latency counts accordingly.
2644         * config/arm/arm1136jfs.md:  New file.
2645
2646         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
2647
2648         * config/arm/arm.h (processor_type): New enumeration type.
2649         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
2650         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
2651         (CPP_CPU_ARCH_SPEC): Likewise.
2652         * config/arm/arm.c (arm_tune): New variable.
2653         (all_cores): Use cores.def.
2654         (all_architectures): Add representative processor.
2655         (arm_override_options): Restructure way in which tuning
2656         information is deduced.
2657         * arm.md: Update "insn" and "type" attributes throughout.
2658         (insn): New attribute.
2659         (type): Compute "mult" from "insn" attribute.  Add load2,
2660         load3, load4 alternatives.
2661         (arm automaton): Move to arm-generic.md.
2662         * config/arm/arm-cores.def: New file.
2663         * config/arm/arm-generic.md: Likewise.
2664         * config/arm/arm1026ejs.md: Likewise.
2665
2666 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
2667
2668         * doc/invoke.texi (SPARC options): Remove -mflat and
2669         all -mxxx (xxx:chip) options.
2670         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
2671         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
2672         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
2673         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
2674         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
2675         * config/sparc/sparc.c: Likewise.
2676         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
2677         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
2678         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
2679         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
2680         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
2681         (sparc_flat_must_save_register_p): Likewise.
2682         (sparc_flat_compute_frame_size): Likewise.
2683         (sparc_flat_save_restore): Likewise.
2684         (sparc_flat_function_prologue): Likewise.
2685         (sparc_flat_function_epilogue): Likewise.
2686         (sparc_flat_epilogue_delay_slots): Likewise.
2687         (sparc_flat_eligible_for_epilogue_delay): Likewise.
2688         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
2689         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
2690         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
2691         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
2692         (CONDITIONAL_REGISTER_USAGE): Likewise.
2693         (FRAME_POINTER_REQUIRED): Likewise.
2694         (INITIAL_ELIMINATION_OFFSET): Likewise.
2695         (BASE_RETURN_VALUE_REG): Likewise.
2696         (BASE_OUTGOING_VALUE_REG): Likewise.
2697         (BASE_PASSING_ARG_REG): Likewise.
2698         (BASE_INCOMING_ARG_REG): Likewise.
2699         (INCOMING_REGNO): Likewise.
2700         (OUTGOING_REGNO): Likewise.
2701         (LOCAL_REGNO): Likewise.
2702         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
2703         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
2704         (EPILOGUE_USES): Likewise.
2705         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
2706         ("flat" attribute): Delete.
2707         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
2708         handling.
2709         (call followed by jump define_peephole's): Delete.
2710         (exception_receiver): Likewise.
2711         (builtin_setjmp_receiver): Likewise.
2712         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
2713
2714 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
2715
2716         PR c/11658
2717         PR c/13994
2718         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
2719         on langhooks.h.
2720         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
2721         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
2722         Include langhooks.h.  Replace c_common_truthvalue_conversion
2723         with the truthvalue_conversion language hook throughout.
2724         (expr_no_commas): Call default_conversion before save_expr
2725         for the first term of the production 'x ? : y'.
2726         * c-common.c (c_common_truthvalue_conversion): Remove
2727         obsolete block.  Invoke recursively the hook instead
2728         of this function.
2729         * c-convert.c (convert): handle ERROR_MARK_NODE.
2730         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
2731         returned by the truthvalue_conversion language hook.
2732         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
2733         c_objc_common_truthvalue_conversion.
2734         * c-objc-common.c (c_objc_common_truthvalue_conversion):
2735         New function.
2736         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
2737         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
2738         c_objc_common_truthvalue_conversion.
2739
2740 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
2741
2742         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
2743         of gen_rtx.
2744         (LIBCALL_VALUE): Likewise.
2745         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
2746         gen_rtx_CC0 instead of gen_rtx.
2747         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
2748         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
2749         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
2750         gen_rtx.
2751         (m68hc11_emit_logical): Likewise.
2752
2753 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
2754
2755         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
2756         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
2757         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
2758         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
2759         config/mips/mips.md, config/mmix/mmix.c,
2760         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
2761         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
2762         config/rs6000/altivec.md, config/s390/s390.c,
2763         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
2764         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
2765         Use const0_rtx instead of GEN_INT (0).  Do the same for other
2766         constants that are readily available.
2767
2768 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
2769
2770         * doloop.c, optabs.c, regmove.c, sched-deps.c,
2771         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
2772         instead of GEN_INT (0).  Do the same for other constants that
2773         are readily available.
2774
2775 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
2776
2777         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
2778         gen_rtx.
2779         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
2780         instead of gen_rtx.
2781         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
2782         gen_rtx.
2783         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
2784         gen_rtx_ASHIFT instead of gen_rtx.
2785         (udivmodqi4): Likewise.
2786
2787 2004-02-02  Richard Henderson  <rth@redhat.com>
2788
2789         PR target/13789
2790         * expr.c (store_expr): Use force_operand before emit_move_insn.
2791
2792 2004-02-02  Jeff Law  <law@redhat.com>
2793             Roger Sayle  <roger@eyesopen.com>
2794
2795         * tree.c (commutative_tree_code, associative_tree_code): New
2796         functions.
2797         (iterative_hash_expr): Use commutative_tree_code.
2798         * tree.h (commutative_tree_code, associative_tree_code): Declare.
2799         * fold-const.c (operand_equal_p): Use commutative_tree_code
2800         rather than inlining the commutativity check.
2801         (fold): Likewise.
2802
2803 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
2804
2805         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
2806         * config/frv/frv-protos.h: Remove the prototype for
2807         frv_function_arg_keep_as_reference.
2808         * config/frv/frv.c (frv_function_arg_keep_as_reference):
2809         Remove.
2810         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
2811         * config/stormy16/stormy16.h: Remove the commented-out
2812         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
2813
2814 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
2815
2816         PR target/13914
2817         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
2818         for retaddr_column.
2819
2820 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
2821
2822         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
2823         gen_rtx.
2824
2825 2004-02-02  Eric Christopher  <echristo@redhat.com>
2826             Zack Weinberg  <zack@codesourcery.com>
2827
2828         * c-opts.c (c_common_handle_option): Add -finput-charset.
2829         * c.opt: Ditto.
2830         * cppcharset.c (one_iso88591_to_utf8): Remove.
2831         (convert_iso88591_utf8): Ditto.
2832         (conversion_tab): Remove 8859-1 converter.
2833         (_cpp_input_to_utf8): Remove.
2834         (_cpp_init_iconv_buffer): Ditto.
2835         (_cpp_close_iconv_buffer): Ditto.
2836         (_cpp_convert_input): New function.
2837         (_cpp_default_encoding): Ditto.
2838         * cpphash.h: Add/remove prototypes for above.
2839         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
2840         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
2841         for narrow execution and input character sets.
2842         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
2843         * doc/cppopts.texi: Document -finput-charset.
2844
2845 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
2846
2847         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
2848         against FIRST_PSEUDO_REGISTER.
2849
2850 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2851
2852         * doc/invoke.texi (SPARC options): Further improve.
2853
2854 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
2855
2856         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
2857         config/h8300/h8300.c, config/ip2k/ip2k.md,
2858         config/iq2000/iq2000.c, config/mips/mips.c,
2859         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
2860         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
2861         config/v850/v850.md: Fix indentation.
2862
2863 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2864
2865         * config/sparc/sparc.c (function_arg_slotno): Align TImode
2866         arguments on a 16-byte boundary in the parameter array if ARCH64.
2867         Split handling of TFmode.
2868
2869 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
2870
2871         * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
2872         Don't test CONSTANT_P (x).
2873         (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
2874         ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
2875         Fix misindentation.
2876
2877 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2878
2879         * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
2880
2881 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
2882
2883         * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
2884         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
2885         config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
2886         config/iq2000/iq2000.c, config/m32r/m32r.c,
2887         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
2888         config/mn10300/mn10300.c, config/rs6000/rs6000.c,
2889         config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
2890         config/stormy16/stormy16.c, config/v850/v850.md,
2891         config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
2892
2893 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
2894
2895         * config/mcore/mcore.c (block_move_sequence): Replace
2896         gen_rtx_CONST_INT with GEN_INT.
2897
2898 2004-02-02  Jan Hubicka  <jh@suse.cz>
2899
2900         * alias.c (record_set): Use hard_regno_nregs.
2901         * bt-load.c (find_btr_reference, note_btr_set): Likewise.
2902         * builtins.c (apply_args_size): Likewise.
2903         * caller-save.c (setup_save_areas, save_call_clobbered_regs,
2904         mark_set_regs, add_stored_regs, mark_referenced_regs,
2905         insert_restore, insert_save, insert_one_insn): Likewise.
2906         * cfgcleanup.c: Include regs.h
2907         (mark_effect, mentions_nonequal_regs): Likewise.
2908         * cfgrtl.c (mark_killed_regs): Likewise
2909         * combine.c (update_table_tick, record_value_for_reg,
2910         record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
2911         reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
2912         reg_bitfield_target_p, distribute_notes): Likewise.
2913         * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
2914         exp_equiv_p, cse_insn): Likewise.
2915         * cselib.c (cselib_lookup): Likewise.
2916         (cselib_invalidate_regno, cselib_record_set): Likewise.
2917         * df.c (df_ref_record): Likewise.
2918         * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
2919         Likewise.
2920         * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
2921         count_or_remove_death_notes_bb): Likewise.
2922         * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
2923         * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
2924         mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
2925         * integrate.c (mark_stores): Likewise.
2926         * jump.c (delete_prior_computation): Likewise.
2927         * lcm.c (reg_dies, reg_becomes_live): Likewise.
2928         * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
2929         * loop.c (LOOP_REGNO_NREGS): Likewise.
2930         * postreload.c (reload_combine, reload_combine_note_store,
2931         reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
2932         * ra-colorize.c (combine, color_usable_p, get_free_reg,
2933         calculate_dont_begin, calculate_dont_begin, colorize_one_web,
2934         try_recolor_web, insert_coalesced_conflicts, check_colors,
2935         break_precolored_alias): Likewise.
2936         * ra-debug.c: Include regs.h
2937         (ra_print_rtx_object): Likewise.
2938         * ra-rewrite (choose_spill_colors): Likewise.
2939         (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
2940         * ra.c (init_ra): Likewise.
2941         * recog.c (reg_fits_class_p, peep2_reg_dead_p,
2942         peep2_find_free_register): Likewise.
2943         * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
2944         * regclass.c (hard_regno_nregs): New array.
2945         (init_reg_modes_once): Initialize it.
2946         (choose_hard_reg_mode): Use it.
2947         (record_reg_classes): Likewise.
2948         * regmove.c (mark_flags_life_zones): Likewise.
2949         * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
2950         scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
2951         copy_value, maybe_mode_change, find_oldest_value_reg,
2952         copyprop_hardreg_forward_1):
2953         * regs.h (hard_regno_nregs): Declare.
2954         * realod.c (reload_inner_reg_of_subreg): Use it.
2955         (push_reload, combine_reloads, find_dummy_reload,
2956         hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
2957         refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
2958         reload_adjust_reg_for_mode): Likewise.
2959         * reload1.c (compute_use_by_pseudos, count_pseudo,
2960         count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
2961         spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
2962         clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
2963         allocate_reload_reg, choose_reload_regs, emit_reload_insns,
2964         delete_output_reload): Likewise.
2965         * resource.c (update_live_status, mark_referenced_resources,
2966         mark_set_resources, mark_target_live_regs): Likewise.
2967         * rtlanal.c:  Include regs.h
2968         (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
2969         dead_or_set_regno_p, find_regno_note, find_reg_fusage,
2970         subreg_regno_offset, subreg_offset_representable_p,
2971         hoist_test_store): Likewise.
2972         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
2973         * sched-rgn.c (check_live_1, update_live_1): Likewise.
2974         * stmt.c: Include regs.h
2975         (decl_conflicts_with_clobbers_p): Likewise.
2976         * varasm.c (make_decl_rtl): Likewise.
2977         * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
2978
2979 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
2980
2981         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
2982         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
2983         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
2984         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
2985         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
2986         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
2987         config/iq2000/iq2000.h, config/m32r/m32r.c,
2988         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2989         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
2990         config/mcore/mcore.c, config/mcore/mcore.h,
2991         config/mcore/mcore.md, config/mips/mips.c,
2992         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
2993         config/rs6000/rs6000.c, config/s390/s390.c,
2994         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
2995         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
2996         "gen_rtx (FOO, " with "gen_rtx_FOO (".
2997
2998 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
2999
3000         * config/h8300/h8300.md (two peephole2's): New.
3001
3002 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
3003
3004         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
3005         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
3006         (ASM_CPU_SPEC): Likewise
3007         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
3008         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
3009
3010 2004-02-01  Roger Sayle  <roger@eyesopen.com>
3011
3012         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
3013         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
3014         (expand_builtin): Always call expand_builtin_pow.
3015
3016 2004-02-01  Roger Sayle  <roger@eyesopen.com>
3017
3018         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
3019         BUILT_IN_SIGNBITL): New GCC builtins.
3020         * builtins.c (expand_builtin_signbit): New function to RTL expand
3021         calls to signbit, signbitf and signbitl as inline intrinsics.
3022         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
3023         (fold_builtin_signbit): New function to perform constant folding
3024         of signbit, signbitf and signbitl.
3025         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
3026
3027         * doc/extend.texi: Document new signbit{,f,l} builtins.
3028
3029 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
3030
3031         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
3032
3033 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
3034
3035         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
3036         "mips_const_double_ok" and "simple_memory_operand", which were
3037         removed from the MIPS port with the mips-3_4-rewrite branch merge.
3038         * config/mips/mips.c (mips16_lay_out_constants): Update comment
3039         for removal of simple_memory_operand.
3040
3041 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3042
3043         * config/c4x/c4x.md: Use GEN_INT instead of
3044         gen_rtx (CONST_INT, ...).
3045
3046 2004-01-31  Richard Henderson  <rth@redhat.com>
3047
3048         * varasm.c (output_constant_pool): Don't zap the pool.
3049
3050 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3051
3052         * genrecog.c (decision_type): Add DT_const_int.
3053         (write_cond) [DT_const_int]: Print a comparison against small
3054         constant.
3055         (write_node): Simplify comparisons against small constants
3056         before printing tests.
3057
3058 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3059
3060         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
3061         instead of gen_rtx_CONST_INT.
3062
3063 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3064
3065         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
3066         instead of gen_rtx_CONST_INT.
3067
3068 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3069
3070         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
3071         hook_bool_CUMULATIVE_ARGS_false.
3072         * targhooks.c (default_strict_argument_naming): Rename to
3073         hook_bool_CUMULATIVE_ARGS_false.
3074         * targhooks.h: Update the prototype for
3075         default_strict_argument_naming.
3076
3077 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3078
3079         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
3080         * config/sh/sh.h: Likewise.
3081         * config/sh/sh.md: Likewise.
3082
3083 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
3084
3085         * doc/invoke.texi (SPARC options): Restructure and update.
3086
3087 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3088
3089         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
3090         STRICT_ARGUMENT_NAMING): Poison.
3091         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
3092         hook_bool_tree_false.
3093         * targhooks.c (default_promote_function_args): Remove.
3094         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
3095         Don't check incoming.
3096         (default_strict_argument_naming): Don't use
3097         STRICT_ARGUMENT_NAMING.
3098         * targhooks.h: Remove the prototype for
3099         default_promote_function_args.
3100
3101 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3102
3103         * config/i386/i386-protos.h: Remove the prototype for
3104         ix86_setup_incoming_varargs.
3105         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
3106         (ix86_setup_incoming_varargs): Make it static.
3107         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
3108
3109 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3110
3111         * alloc-pool.c: Fix comment typos.
3112         * builtin-types.def: Likewise.
3113         * builtins.def: Likewise.
3114         * c-pretty-print.c: Likewise.
3115         * df.h: Likewise.
3116         * reload1.c: Likewise.
3117
3118 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3119
3120         * doc/invoke.texi: Follow spelling conventions.
3121         * doc/tm.texi: Likewise.
3122
3123 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3124
3125         * doc/install.texi: Fix typos.
3126         * doc/invoke.texi: Likewise.
3127
3128 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
3129
3130         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
3131         registers as pointers.
3132         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
3133
3134 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
3135
3136         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
3137         and restore it to gen_lowpart_general on exit.
3138         (gen_lowpart_for_combine): Adjust all callers to go through
3139         gen_lowpart.
3140         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
3141         and restore it to gen_lowpart_general on exit.
3142         (gen_lowpart_if_possible): Adjust all callers to go through
3143         gen_lowpart.
3144         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
3145         (gen_lowpart): Declare as pointer to function, initialized to
3146         gen_lowpart_general.
3147         * rtl.h (gen_lowpart): Declare as pointer to function.
3148
3149 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
3150
3151         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
3152         * calls.c: Likewise.
3153         * emit-rtl.c: Likewise.
3154         * function.c: Likewise.
3155         * reload1.c: Likewise.
3156         * config/i386/cygming.h: Likewise.
3157         * config/i386/i386.c: Likewise.
3158         * config/i386/winnt.c: Likewise.
3159
3160 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
3161
3162         PR bootstrap/9249
3163         * doc/install.texi: document --enable-__cxa_atexit option.
3164         * configure.ac: Disable __cxa_atexit if not supported.
3165         * configure: Regenerate.
3166
3167 2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
3168
3169         * ggc-zone.c (ggc_free): New function.
3170
3171 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3172
3173         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
3174         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
3175         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
3176         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
3177         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
3178         config/alpha/alpha.c, config/alpha/alpha.h,
3179         config/alpha/alpha.md, config/alpha/unicosmk.h,
3180         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
3181         config/c4x/c4x-protos.h, config/c4x/c4x.md,
3182         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
3183         config/frv/frvend.c, config/i386/cygming.h,
3184         config/i386/djgpp.h, config/i386/emmintrin.h,
3185         config/i386/gthr-win32.c, config/i386/i386-interix.h,
3186         config/i386/i386-protos.h, config/i386/openbsd.h,
3187         config/i386/winnt.c, config/i386/xm-mingw32.h,
3188         config/i386/xmmintrin.h, config/ia64/ia64.md,
3189         config/iq2000/iq2000.md, config/m32r/m32r.md,
3190         config/m68k/m68k.md, config/mcore/mcore-elf.h,
3191         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
3192         config/mips/iris5gas.h, config/mips/iris6.h,
3193         config/mips/iris6gas.h, config/mips/linux.h,
3194         config/mips/mips.md, config/mips/netbsd.h,
3195         config/mips/openbsd.h, config/mips/windiss.h,
3196         config/pa/fptr.c, config/rs6000/aix.h,
3197         config/rs6000/altivec.h, config/rs6000/darwin.h,
3198         config/rs6000/xcoff.h, config/s390/s390-protos.h,
3199         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
3200         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
3201         config/sparc/sol2.h: Update copyright.
3202
3203 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
3204
3205         * Makefile.in (abs_docdir, abs_srcdir): Define.
3206         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
3207
3208 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3209
3210         * genconfig.c (main): Have CC0_P check its operand even on a
3211         target without cc0.
3212
3213 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3214
3215         * config/alpha/alpha.c: Remove mentions of deprecates macros
3216         in comments, remove some target-independent comments about target
3217         macros, and/or add minimal function comments for target hook
3218         implementations.
3219         * config/avr/avr.c: Likewise.
3220         * config/ia64/ia64.h: Likewise.
3221         * config/ip2k/ip2k.c: Likewise.
3222         * config/iq2000/iq2000.c: Likewise.
3223         * config/m32r/m32r.h: Likewise.
3224         * config/m68hc11/m68hc11.c: Likewise.
3225         * config/mcore/mcore.c: Likewise.
3226         * config/mmix/mmix.c: Likewise.
3227         * config/mn10300/mn10300.c: Likewise.
3228         * config/pa/pa.c: Likewise.
3229         * config/pdp11/pdp11.c: Likewise.
3230         * config/rs6000/rs6000.h: Likewise.
3231         * config/sh/sh.c: Likewise.
3232         * config/sh/sh.h: Likewise.
3233         * config/sparc/sparc.c: Likewise.
3234         * config/sparc/sparc.h: Likewise.
3235         * config/stormy16/stormy16.c: Likewise.
3236         * config/xtensa/xtensa.c: Likewise.
3237
3238 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
3239
3240         PR optimization/12147
3241         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
3242         RELOAD_FOR_OPADDR_ADDR.
3243         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
3244         might be reused as RELOAD_FOR_OPADDR_ADDR register.
3245
3246 2004-01-30  Jan Hubicka  <jh@suse.cz>
3247
3248         * reload.c (get_secondary_mem): Fix updating of
3249         secondary_memlocs_elim_used.
3250
3251 2004-01-30  Richard Henderson  <rth@redhat.com>
3252
3253         * varasm.c (struct rtx_const, struct pool_constant): Remove.
3254         (MAX_RTX_HASH_TABLE): Remove.
3255         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
3256         (first_pool, last_pool, pool_offset): Remove.
3257         (struct rtx_constant_pool): Split out from ...
3258         (struct varasm_status): ... here.  Reference one via pointer.
3259         (struct constant_descriptor_rtx): Merge struct pool_constant.
3260         (SYMHASH): Remove.
3261         (decode_rtx_const): Remove.
3262         (const_hash_rtx, compare_constant_rtx): Remove.
3263         (record_constant_rtx): Remove.
3264         (const_desc_rtx_hash, const_desc_rtx_eq): New.
3265         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
3266         (const_rtx_hash_1, const_rtx_hash): New.
3267         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
3268         (simplify_subtraction): Use simplify_rtx.
3269         (force_const_mem): Rewrite to use new data structures.
3270         (find_pool_constant): Likewise.
3271         (get_pool_constant, get_pool_constant_mark,
3272         get_pool_constant_for_function, get_pool_mode,
3273         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
3274         (output_constant_pool_2): Split out from output_constant_pool.
3275         (output_constant_pool_1): Likewise.  Use new pool datastructures.
3276         (output_constant_pool): Zap entire pool datastructure.
3277         (mark_constant): Use new pool datastructures.
3278         (mark_constants): Use for_each_rtx.
3279         (mark_constant_pool): Use new pool datastructures.
3280
3281 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
3282
3283         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
3284         Copy operands[1] to pseudo for simplify_gen_subreg.
3285
3286 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3287
3288         * gcse.c (bypass_block): Fix a typo in the previous check-in
3289         to the file.
3290
3291 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
3292
3293         * toplev.c: Include alloc-pool.h.
3294         * Makefile.in (toplev.c): Update dependencies.
3295
3296 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3297
3298         * combine.c (simplify_shift_const, case XOR): Be careful when
3299         commuting XOR with ASHIFTRT.
3300
3301 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3302             Eric Botcazou  <ebotcazou@libertysurf.fr>
3303
3304         * config/sparc/sparc-protos.h: Remove the prototype for
3305         sparc_builtin_saveregs.
3306         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3307         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3308         (TARGET_PROMOTE_PROTOTYPES): Likewise.
3309         (TARGET_STRUCT_VALUE_RTX): Likewise.
3310         (TARGET_RETURN_IN_MEMORY): Likewise.
3311         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3312         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
3313         (sparc_builtin_saveregs): Make it static.
3314         (sparc_promote_prototypes): New.
3315         (sparc_struct_value_rtx): Likewise.
3316         (sparc_return_in_memory): Likewise.
3317         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
3318         (PROMOTE_FUNCTION_RETURN): Likewise.
3319         (RETURN_IN_MEMORY): Likewise.
3320         (STRUCT_VALUE): Likewise.
3321         (STRUCT_VALUE_INCOMING): Likewise.
3322         (EXPAND_BUILTIN_SAVEREGS): Likewise.
3323         (STRICT_ARGUMENT_NAMING): Likewise.
3324         (PROMOTE_PROTOTYPES): Likewise.
3325
3326         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
3327
3328 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
3329
3330         PR c/12818
3331         * varasm.c (const_hash_1) <STRING_CST>: Use the
3332         address to compute the hash value if flag_writable_strings.
3333         (compare_constant) <STRING_CST>: Compare the addresses
3334         if flag_writable_strings.
3335         (build_constant_desc): Do not copy the expression for a
3336         STRING_CST if flag_writable_strings.
3337
3338 2004-01-30  Jan Hubicka  <jh@suse.cz>
3339
3340         * alloc-pool.c: Include hashtab.h
3341         (alloc_pool_descriptor): New structure
3342         (alloc_pool_hash): New global variable.
3343         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
3344         (create_alloc_pool): Update statistics.
3345         (free_alloc_pool): Likewise.
3346         (pool_alloc): Likewise.
3347         (output_info): New structure
3348         (print_statistics, dump_alloc_pool_statistics): New function.
3349         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
3350         (dump_alloc_pool_statistics): Declare.
3351         * toplev.c (finalize):  Dump statistics.
3352
3353         * reload.c (secondary_memlocs_elim_used): New static variable.
3354         (get_secondary_mem): Update it.
3355         (find_reloads): Use it.
3356
3357 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
3358
3359         * toplev.c: Fix broken checkin of 2003-12-30, again.
3360
3361 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
3362
3363         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
3364         s390*-*-* targets by specifying a 'nop' insn.
3365         * configure: Regenerate.
3366
3367 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
3368
3369         PR target/11475
3370         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
3371
3372 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
3373
3374         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
3375         of addr when creating MEM copy.
3376
3377 2004-01-29  Devang Patel  <dpatel@apple.com>
3378
3379         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
3380
3381 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
3382
3383         PR inline-asm/6162
3384         * reload.c (find_reloads): Only support one pair of commutative
3385         operands.
3386
3387 2004-01-29  Roger Sayle  <roger@eyesopen.com>
3388
3389         PR java/13824
3390         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
3391         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
3392         recursion.
3393
3394 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
3395
3396         * config/frv/frv.c: Don't mention deprecated macros in
3397         comments.  Remove some target-independent comments about
3398         target macros.
3399         * config/frv/frv.h: Likewise.
3400
3401 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3402
3403         * cfghooks.c (split_block): Set probability and count of the
3404         new edge.
3405
3406 2005-01-29  Josef Zlomek  <zlomekj@suse.cz>
3407
3408         * dwarf2out.c (struct die_struct): Added field decl_id.
3409         (decl_die_table): Changed to hash table.
3410         (decl_die_table_allocated): Deleted.
3411         (decl_die_table_in_use): Deleted.
3412         (DECL_DIE_TABLE_INCREMENT): Deleted.
3413         (decl_die_table_hash): New function.
3414         (decl_die_table_eq): New function.
3415         (lookup_decl_die): Lookup in a hash table.
3416         (equate_decl_number_to_die): Insert into a hash table.
3417         (dwarf2out_init): Init hash table decl_die_table.
3418
3419 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
3420
3421         PR optimization/13424
3422         * expr.c (store_constructor): Revert 2003-12-03 change.
3423
3424         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
3425         expected before returning early.  Avoid sharing RTL if they
3426         need to be changed.
3427
3428         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
3429         handling so that memory attributes are preserved.  Don't call
3430         ix86_set_move_mem_attrs.
3431         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
3432         (ix86_expand_clrstr): Rename src argument to
3433         dst.  Rework rep_stos and strset handling so that memory attributes
3434         are preserved.
3435         (ix86_expand_strlen): Pass src argument to
3436         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
3437         memory attributes are preserved.
3438         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
3439         change_address instead of gen_rtx_MEM.
3440         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
3441         expanders.
3442         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
3443         strmovqi, strmovqi_rex64): Remove.
3444         (rep_mov*, strmov*): Prefix insn names with *.
3445         (strset, strset_singleop, rep_stos): New expanders.
3446         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
3447         strsetqi, strsetqi_rex64): Remove.
3448         (rep_stos*, strset*): Prefix insn names with *.
3449         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
3450         to SImode.
3451         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
3452         are preserved.
3453         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
3454         Prefix insn names with *.
3455         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
3456         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
3457         (strlenqi_1): New expander.
3458         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
3459
3460 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3461
3462         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
3463         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
3464         verify_flow_info): Declaration removed.
3465         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
3466         (debug_bb, debug_bb_n): Add argument to dump_bb call.
3467         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
3468         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
3469         instead of delete_block.
3470         * cfghooks.c: Include timevar.h and toplev.h.
3471         (cfg_hooks): Define here.
3472         (verify_flow_info, dump_bb): Moved from cfg.c.
3473         (redirect_edge_and_branch, redirect_edge_and_branch_force,
3474         split_block, split_block_after_labels, move_block_after,
3475         delete_basic_block, split_edge, create_basic_block,
3476         create_empty_bb, can_merge_blocks_p, merge_blocks,
3477         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
3478         New functions.
3479         * cfghooks.h (struct cfg_hooks): Added fields name,
3480         make_forwarder_block, tidy_fallthru_edge and
3481         move_block_after. Changed type of verify_flow_info, dump_bb,
3482         split_block fields. Renamed cfgh_split_edge and delete_block
3483         fields.
3484         (redirect_edge_and_branch, redirect_edge_and_branch_force,
3485         split_block, delete_block, split_edge, create_basic_block,
3486         can_merge_blocks_p, merge_blocks): Macros removed.
3487         (cfg_hooks): Do not export.
3488         (verify_flow_info, dump_bb, redirect_edge_and_branch,
3489         redirect_edge_and_branch_force, split_block, split_block_after_labels,
3490         move_block_after, delete_basic_block, split_edge, create_basic_block,
3491         create_empty_bb, can_merge_blocks_p, merge_blocks,
3492         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
3493         Declare.
3494         (cfg_layout_rtl_cfg_hooks): Declare.
3495         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
3496         New functions.
3497         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
3498         (redirect_edge_with_latch_update): Removed.
3499         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
3500         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
3501         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
3502         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
3503         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
3504         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
3505         cfghooks.c.
3506         (rtl_create_basic_block): Coding style fix.
3507         (rtl_tidy_fallthru_edge, rtl_move_block_after,
3508         rtl_make_forwarder_block): New functions.
3509         (update_cfg_after_block_merging): Removed.
3510         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
3511         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
3512         to dump_bb.
3513         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
3514         find_if_case_2): Don't update dominators.
3515         * timevar.def (TV_CFG_VERIFY): New.
3516         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
3517         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
3518         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
3519         (remove_bbs): Don't call remove_bbs.
3520         (create_preheader): Use make_forwarder_block.
3521         (mfb_keep_just, mfb_update_loops): New static functions.
3522
3523 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
3524
3525         * config/avr/avr.h: Remove target-independent comments about
3526         target macros.
3527
3528 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
3529
3530         * timevar.c (timevar_print): Mention when checking is enabled.
3531
3532 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3533
3534         * c-lex.c (c_lex): Rename to...
3535         (c_lex_with_flags): Add new parameter to get CPP flags.
3536         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
3537         * c-pragma.h (c_lex_with_flags): Declare.
3538
3539 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3540
3541         * config/mcore/mcore.c (mcore_external_libcall): Add a
3542         comment.
3543         (mcore_return_in_memory): Likewise.
3544
3545 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3546
3547         * config/mcore/mcore-protos.h: Remove the prototype for
3548         mcore_setup_incoming_varargs.
3549         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
3550         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
3551         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3552         (TARGET_PROMOTE_PROTOTYPES): Likewise.
3553         (TARGET_STRUCT_VALUE_RTX): Likewise.
3554         (TARGET_RETURN_IN_MEMORY): Likewise.
3555         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3556         (mcore_setup_incoming_varargs): Make it static.  Receive the
3557         first argument by reference.  Add argument second_time.
3558         (mcore_external_libcall): New.
3559         (mcore_return_in_memory): Likewise.
3560         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
3561         (PROMOTE_FUNCTION_RETURN): Likewise.
3562         (STRUCT_VALUE): Likewise.
3563         (RETURN_IN_MEMORY): Likewise.
3564         (SETUP_INCOMING_VARARGS): Likewise.
3565         (PROMOTE_PROTOTYPES): Likewise.
3566         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
3567
3568 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3569
3570         * config/m32r/m32r-protos.h: Remove the prototype for
3571         m32r_setup_incoming_varargs.
3572         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
3573         (TARGET_STRUCT_VALUE_RTX): Likewise.
3574         (TARGET_RETURN_IN_MEMORY): Likewise.
3575         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3576         (m32r_return_in_memory): New.
3577         (m32r_setup_incoming_varargs): Make it static.
3578         * config/m32r/m32r.h: Remove #undef of
3579         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
3580         definitions of PROMOTE_FUNCTION_ARGS and
3581         PROMOTE_FUNCTION_RETURN.
3582         (PROMOTE_PROTOTYPES): Remove.
3583         (RETURN_IN_MEMORY): Likewise.
3584         (STRUCT_VALUE): Likewise.
3585
3586 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3587
3588         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
3589         (TARGET_STRUCT_VALUE_RTX): Likewise.
3590         (m68k_struct_value_rtx): Likewise.
3591         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
3592         STRUCT_VALUE_REGNUM.
3593         (PROMOTE_PROTOTYPES): Remove.
3594         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
3595         STRUCT_VALUE_REGNUM.
3596         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
3597         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
3598
3599 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3600
3601         * config/stormy16/stormy16.c
3602         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
3603         TARGET_BUILD_BUILTIN_VA_LIST.
3604
3605 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3606
3607         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
3608         (TARGET_STRUCT_VALUE_RTX): Likewise.
3609         (TARGET_RETURN_IN_MEMORY): Likewise.
3610         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3611         (v850_return_in_memory): Likewise.
3612         (v850_setup_incoming_varargs): Likewise.
3613         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
3614         (SETUP_INCOMING_VARARGS): Likewise.
3615         (RETURN_IN_MEMORY): Likewise.
3616         (STRUCT_VALUE): Likewise.
3617
3618 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3619
3620         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
3621         (fr30_setup_incoming_varargs): Don't use
3622         STRICT_ARGUMENT_NAMING.
3623         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
3624         (STRICT_ARGUMENT_NAMING): Likewise.
3625
3626 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3627
3628         * config/frv/frv-protos.h: Remove the prototype for
3629         frv_expand_builtin_saveregs.
3630         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
3631         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3632         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
3633         STRUCT_VALUE_REGNUM.
3634         (frv_expand_builtin_saveregs): Make it static.
3635         (frv_struct_value_rtx): New.
3636         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
3637
3638 2004-01-29  Jan Hubicka  <jh@suse.cz>
3639
3640         PR c++/12850
3641         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
3642         initial pointers.
3643         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
3644         for functions that will be only inlined.
3645         (cgraph_mark_function_to_output): Likewise.
3646         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
3647         do not clear function body.
3648         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
3649         (tree_rest_of_compilation): Reorganize the logic releasing function
3650         body to use callgraph datastructure.
3651
3652 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3653
3654         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
3655         to register_operand.
3656
3657 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
3658
3659         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
3660         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
3661         match_operand expressions so that all match_dups appear
3662         lexically after their corresponding match_operands.
3663
3664 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3665
3666         * config/h8300/h8300.c (WORD_REG_USED): Use
3667         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
3668         (compute_saved_regs): Likewise.
3669         (h8300_expand_prologue): Likewise.  Allocate locals after
3670         saving registers.
3671         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
3672         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
3673         registers.
3674         (h8300_initial_elimination_offset): Adjust for the new frame
3675         layout, which swaps flips the order of locals and saved
3676         registers.
3677         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
3678         (HARD_FRAME_POINTER_REGNUM): New.
3679         (ELIMINABLE_REGS): Add an elimination rule from
3680         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
3681         (REGISTER_NAMES): Add fp.
3682         * config/h8300/h8300.md (FP_REG): Change to 11.
3683         (HFP_REG): New.
3684
3685 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3686
3687         * genrecog.c (write_node): Remove a useless local variable.
3688
3689 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
3690
3691         * Makefile.in (options.c options.h): Use stamp file s-options to
3692         avoid unnecessary rebuilds.
3693         (options.o): New target listing dependencies.
3694         (gtyp-gen.h): Use stamp file s-gtyp-gen.
3695         (STAGESTUFF): Add s-gtyp-gen.
3696
3697 2004-01-28  Richard Henderson  <rth@redhat.com>
3698
3699         * ggc.h (ggc_free): Declare.
3700         * ggc-common.c (ggc_realloc): Use it.
3701         * ggc-page.c: Remove lots of inline markers.
3702         (globals): Add free_object_list.
3703         (ggc_alloc): Tidy.
3704         (ggc_free, validate_free_objects): New.
3705         (poison_pages): Provide default.
3706         (ggc_collect): Call validate_free_objects; emit markers to
3707         the debug file.
3708
3709 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
3710             Jim Wilson  <wilson@specifixinc.com>
3711
3712         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
3713         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
3714         scratch pointer.
3715         (ia64_secondary_reload_class): Delete case GR_REGS.
3716         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
3717         Do not allocate a scratch register.
3718         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
3719
3720 2004-01-28  Jan Hubicka  <jh@suse.cz>
3721
3722         * gcse.c (bypass_block): Prevent edges to be unified when we are
3723         about to emit compenstation code.
3724
3725 2004-01-28  Nick Clifton  <nickc@redhat.com>
3726
3727         * config/arm/arm.c (arm_expand_builtin): Force second argument of
3728         the setcwx insn into a register.
3729
3730 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
3731
3732         * config/fp-bit.c (pack_d): When using paired doubles to implement
3733         a long double, round the high part separately.
3734         (unpack_d): Fix the case in which the high part is a power of two
3735         and the low part is a nonzero value of the opposite sign.
3736
3737 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3738
3739         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
3740         (TARGET_STRUCT_VALUE_RTX): Likewise.
3741         (c4x_external_libcall): Likewise.
3742         (c4x_struct_value_rtx): Likewise.
3743         * config/c4x/c4x.h: Remove.
3744         (STRUCT_VALUE_REGNUM): Likewise.
3745         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
3746
3747 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
3748
3749         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
3750         (TARGET_STRUCT_VALUE_RTX): Likewise.
3751         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
3752         (STRUCT_VALUE): Likewise.
3753         (PROMOTE_PROTOTYPES): Likewise.
3754
3755 2004-01-27  Roger Sayle  <roger@eyesopen.com>
3756
3757         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
3758         CONST_INT before using INTVAL.
3759
3760 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
3761
3762         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
3763         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
3764         frame if !TARGET_BACKCHAIN.
3765         * config/s390/s390.md ("allocate_stack"): Use pattern only if
3766         TARGET_BACKCHAIN.
3767         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
3768
3769 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
3770
3771         * ia64.c (ia64_function_arg): When placing HFAs in integer
3772         registers, do not special case the mode used for complex
3773         types.  Do not advance int_regs until the current register
3774         is full.
3775
3776 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
3777
3778         PR target/7297
3779         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
3780
3781 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
3782
3783         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
3784         slow, unaligned loads and stores while debugging.  Fix formatting.
3785
3786 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
3787
3788         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
3789         of computing wmode.
3790         (restore_stack_nonlocal): Same.
3791
3792 2004-01-27  Devang Patel <dpatel@apple.com>
3793
3794         * Makefile.in (dwarf2out.o): Depend on input.h
3795         * dbxout.c (dbx_debug_hooks): Add new empty hook for
3796         imported_module_or_decl.
3797         (xcoff_debug_hooks): Same.
3798         * sdbout.c (sdb_debug_hooks): Same.
3799         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
3800         * debug.c (do_nothing_debug_hooks): Same.
3801         (debug_nothing_tree_tree): New function.
3802         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
3803         * dwarf2out.c: Include input.h.
3804         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
3805         (remove_child_TAG): New function.
3806         (dwarf_tag_name): Handle DW_TAG_imported_module.
3807         (gen_subprogram_die): Equate decl number to declaration die. Do not
3808         remove all children dies while reusing declaration die for definition.
3809         Instead, selectively remove only formal parameters.
3810         (gen_variable_die): Equate variable decl to declaration die.
3811         (gen_field_die): Equate field decl to line number.
3812         (force_namespace_die): Replace it with ...
3813         (force_decl_die): ... this.
3814         (force_type_die): New function.
3815         (setup_namespace_context): Replace use of force_namespace_die() with
3816         force_decl_die().
3817         (gen_namespace_die): Same.
3818         (dwarf2out_imported_module_or_decl): New function.
3819
3820 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
3821
3822         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
3823         on CQImode and CHImode incoming arguments in register a7.
3824         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
3825         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
3826         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
3827         xtensa_copy_incoming_a7 before reload.
3828
3829 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
3830
3831         * coverage.c (get_coverage_counts): Give a different message
3832         if flag_guess_branch_prob is set.
3833         * predict.c (counts_to_freqs): Return an int.
3834         (estimate_bb_frequencies): If counts_to_freqs returns zero,
3835         calculate estimates.
3836
3837 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
3838
3839         * config/iq2000/iq2000-protos.h: Remove the prototype for
3840         iq2000_setup_incoming_varargs.
3841         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3842         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3843         (TARGET_PROMOTE_PROTOTYPES): Likewise.
3844         (TARGET_STRUCT_VALUE_RTX): Likewise.
3845         (TARGET_RETURN_IN_MEMORY): Likewise.
3846         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3847         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
3848         (iq2000_return_in_memory): Likewise.
3849         (iq2000_setup_incoming_varargs): Make it static.  Receive the
3850         first argument by reference.
3851         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
3852         (PROMOTE_FUNCTION_RETURN): Likewise.
3853         (PROMOTE_PROTOTYPES): Likewise.
3854         (RETURN_IN_MEMORY): Likewise.
3855         (STRUCT_VALUE): Likewise.
3856         (SETUP_INCOMING_VARARGS): Likewise.
3857         (STRICT_ARGUMENT_NAMING): Likewise.
3858
3859 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
3860
3861         * fixinc/fixinc.c (test_test): Initialize res.
3862         (start_flexer): Initialize pz_cmd_save.
3863
3864 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
3865
3866         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
3867         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
3868
3869 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
3870
3871         PR 7198
3872         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
3873         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
3874         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
3875         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
3876         Possibly rename pattern for consistency.
3877         Remove ??? comments suggesting that this be done.
3878         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
3879         New patterns.
3880         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
3881         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
3882         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
3883         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
3884         Update to match.
3885
3886 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
3887
3888         * config/arm/arm.c (output_return_instruction): Only restore IP
3889         into SP if frame_pointer_needed.
3890
3891 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
3892
3893         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
3894         for SCmode and DCmode if ARCH32.
3895         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
3896         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
3897         if ARCH32.
3898         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
3899         if ARCH32.
3900         (BASE_OUTGOING_VALUE_REG): Likewise.
3901
3902 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
3903
3904         PR target/10904
3905         PR target/13058
3906         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
3907         Forbid mode changes from SImode for lower FP regs if ARCH64.
3908
3909 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
3910
3911         * Makefile.in (bt-load.o): Depend on except.h.
3912         * bt-load.c (except.h): #include.
3913         (compute_defs_uses_and_gen): If insn at end of BB can throw
3914         within this function, consider registers used by it unavailable for
3915         btr migration.
3916         (move_btr_def): If insn at end of BB can throw, insert before rather
3917         than after.
3918
3919         * flags.h (flag_btr_bb_exclusive): Declare.
3920         * toplev.c (flag_btr_bb_exclusive): New variable.
3921         (f_options): Add btr-bb-exclusive.
3922         * bt-load.c (augment_live_range): Restore old behaviour if
3923         flag_btr_bb_exclusive is set.
3924         * common.opt: Add entry for -fbtr-bb-exclusive.
3925         * opts.c (common_handle_options): Same.
3926         * doc/invoke.texi: Document -fbtr-bb-exclusive.
3927
3928         * bt-load.c (btrs_live_at_end): New variable.
3929         (compute_defs_uses_and_gen): Compute its pointed-to array.
3930         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
3931         (augment_live_range): When augmenting with a new dominator,
3932         use only its btrs_live_at_end set, but also add in the full set
3933         of the old dominator.
3934         (btr_def_live_range): Use btrs_live_at_end.
3935         (move_btr_def): Set other_btr_uses_before_def, and move new set
3936         to the end of the basic block, if appropriate.
3937         (migrate_btr_defs): Allocate and free btrs_live_at_end.
3938
3939         * bt-load.c (basic_block_freq): Remove outdated comment.
3940
3941 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
3942
3943         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
3944         (PREDICATE_CODES): Remove duplicate.
3945         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
3946         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
3947         (MASK_PROFILE_KERNEL): Adjust define.
3948
3949 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
3950
3951         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
3952         of long string literals from 32 bytes to sizeof (void *) when !-Os
3953         and to 1 with -Os.
3954
3955 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3956
3957         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
3958         constant addresses in the normal mode.
3959
3960 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3961
3962         * system.h (CHAR_BITFIELD): Delete.
3963         (BOOL_BITFIELD): New.
3964         * c-decl.c (c_scope): Use BOOL_BITFIELD.
3965         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
3966
3967 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3968
3969         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3970         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3971         (TARGET_PROMOTE_PROTOTYPES): Likewise.
3972         (TARGET_STRUCT_VALUE_RTX): Likewise.
3973         (TARGET_RETURN_IN_MEMORY): Likewise.
3974         (arc_return_in_memory): Likewise.
3975         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
3976         (PROMOTE_FUNCTION_RETURN): Likewise.
3977         (RETURN_IN_MEMORY): Likewise.
3978         (STRUCT_VALUE): Likewise.
3979
3980 2004-01-26  Richard Henderson  <rth@redhat.com>
3981
3982         * c-parse.in (extension): Use itype.
3983         (SAVE_EXT_FLAGS): Don't allocate a tree.
3984         (RESTORE_EXT_FLAGS): Don't read a tree.
3985
3986 2004-01-26  Jan Hubicka  <jh@suse.cz>
3987
3988         * cselib.c (discard_useless_values):  Clear out value pointer pointing
3989         to datastructure to be recycled.
3990
3991 2004-01-25  Jan Hubicka  <jh@suse.cz>
3992
3993         * genextract.c (main): Do not output the memset when not checking.
3994
3995 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3996
3997         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
3998         switch statement instead of a chain of if statements.
3999
4000 2004-01-26  Jeff Law  <law@redhat.com>
4001
4002         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
4003         acute accents for Petur Runolfsson's entry.
4004
4005 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4006
4007         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
4008         (TARGET_RETURN_IN_MEMORY): Likewise.
4009         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
4010         (RETURN_IN_MEMORY): Likewise.
4011
4012 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
4013
4014          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
4015          unaligned load/store into smaller loads and stores.
4016
4017 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
4018
4019         * function.c (assign_parms): Do not assign
4020         long long argument to memory in prologue if
4021         is it loaded into register.
4022
4023 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
4024
4025          PR middle-end/13779
4026          * expr.c (emit_group_load): split constant
4027          correctly into register components of PARALLEL insn.
4028
4029 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
4030
4031         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
4032         Use adjust_address_nv directly with appropriate mode.
4033         (restore_stack_nonlocal): Ditto.
4034
4035 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4036
4037         * config/xtensa/xtensa-protos.h: Remove the prototype for
4038         xtensa_builtin_saveregs.
4039         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
4040         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
4041         (TARGET_PROMOTE_PROTOTYPES): Likewise.
4042         (TARGET_STRUCT_VALUE_RTX): Likewise.
4043         (TARGET_RETURN_IN_MEMORY): Likewise.
4044         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
4045         (xtensa_builtin_saveregs): Make it static.
4046         (xtensa_return_in_memory): New.
4047         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
4048         (PROMOTE_FUNCTION_RETURN): Likewise.
4049         (PROMOTE_PROTOTYPES): Likewise.
4050         (STRUCT_VALUE): Likewise.
4051         (RETURN_IN_MEMORY): Likewise.
4052         (EXPAND_BUILTIN_SAVEREGS): Likewise.
4053
4054 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4055
4056         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
4057         (arm_setup_incoming_varargs): Likewise.
4058         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
4059
4060 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4061
4062         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
4063         (cris_setup_incoming_varargs): Likewise.
4064         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
4065
4066 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4067
4068         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
4069         (ns32k_struct_value_rtx): Likewise.
4070         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
4071         NS32K_STRUCT_VALUE_REGNUM.
4072
4073 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4074
4075         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
4076         (TARGET_PROMOTE_PROTOTYPES): Likewise.
4077         (TARGET_STRUCT_VALUE_RTX): Likewise.
4078         (arm_struct_value_rtx): Likewise.
4079         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
4080         (STRUCT_VALUE): Likewise.
4081         (STRUCT_VALUE_REGNUM): Likewise.
4082         (PROMOTE_PROTOTYPES): Likewise.
4083
4084 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4085
4086         * config/ia64/ia64-protos.h: Remove the prototype for
4087         ia64_setup_incoming_varargs and ia64_return_in_memory.
4088         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
4089         (TARGET_RETURN_IN_MEMORY): Likewise.
4090         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4091         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
4092         (ia64_setup_incoming_varargs): Adjust the arguments to meet
4093         the requirement of TARGET_SETUP_INCOMING_VARARGS.
4094         (ia64_return_in_memory): Make it static.  Change the return
4095         type to bool from int.  Add an argument.
4096         (ia64_struct_value_rtx): New.
4097         * config/ia64/ia64.h: Remove commented-out definitions of
4098         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
4099         PROMOTE_PROTOTYPES.
4100         (RETURN_IN_MEMORY): Remove.
4101         (STRUCT_VALUE_REGNUM): Likewise.
4102         (STRICT_ARGUMENT_NAMING): Likewise.
4103
4104 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
4105
4106         PR target/13666
4107         * config/sparc/sparc.c (function_arg_union_value): New function.
4108         (function_arg): Use it to deal with unions.
4109         (function_value): Likewise.  Define 'regbase' only for ARCH64.
4110         Replace a conditional statement by a simpler one.
4111
4112 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
4113
4114         * config/mips/mips.c (mips16_optimize_gp): Delete.
4115         (mips_reorg): Don't call it.
4116
4117 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4118
4119         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
4120         (floatunsqihf2): Remove operand 6.
4121         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
4122         fix patterns.
4123         (ldi_conditional, ldf_conditional): Validate operands.
4124
4125 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4126
4127         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
4128         (HAVE_GAS_HIDDEN): Undefine as interim measure.
4129
4130 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4131
4132         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
4133         memory references if TARGET_EXPOSE_LDP nonzero.
4134
4135 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4136
4137         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
4138
4139 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4140
4141         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
4142         invalid operand combinations.
4143
4144 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4145
4146         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
4147         c4x_legitimate_address_p.  Fix post_modify check.
4148
4149         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
4150         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
4151
4152 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4153
4154         * config/pa/pa-protos.h: Remove the prototype for
4155         hppa_builtin_saveregs.  Add a prototype for
4156         pa_return_in_memory.
4157         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
4158         (TARGET_PROMOTE_PROTOTYPES): Likewise.
4159         (TARGET_STRUCT_VALUE_RTX): Likewise.
4160         (TARGET_RETURN_IN_MEMORY): Likewise.
4161         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
4162         (pa_struct_value_rtx): Likewise.
4163         (pa_return_in_memory): Likewise.
4164         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
4165         PA_STRUCT_VALUE_REGNUM.
4166         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
4167         (EXPAND_BUILTIN_SAVEREGS): Remove.
4168         (PROMOTE_PROTOTYPES): Likewise.
4169         (PROMOTE_FUNCTION_RETURN): Likewise.
4170
4171 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4172
4173         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
4174         (TARGET_STRUCT_VALUE_RTX): Likewise.
4175         (vax_struct_value_rtx): Likewise.
4176         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
4177         VAX_STRUCT_VALUE_REGNUM.
4178         (PROMOTE_PROTOTYPES): Remove.
4179
4180 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4181
4182         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
4183
4184 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
4185
4186         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
4187         and MIPS64 have HI/LO interlocks.  Update comment.
4188
4189 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4190
4191         * config/stormy16/stormy16-protos.h: Remove the prototype for
4192         xstormy16_setup_incoming_varargs.
4193         * config/stormy16/stormy16.c
4194         (xstormy16_setup_incoming_varargs): Remove.
4195         (xstormy16_return_in_memory): New.
4196         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
4197         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
4198         (TARGET_PROMOTE_PROTOTYPES): Likewise.
4199         (TARGET_STRUCT_VALUE_RTX): Likewise.
4200         (TARGET_RETURN_IN_MEMORY): Likewise.
4201         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
4202         (PROMOTE_FUNCTION_RETURN): Likewise
4203         (PROMOTE_PROTOTYPES): Likewise
4204         (RETURN_IN_MEMORY): Likewise
4205         (STRUCT_VALUE): Likewise
4206         (SETUP_INCOMING_VARARGS): Likewise
4207
4208 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
4209
4210         * config/mips/mips.c (mips_offset_within_object_p): New function.
4211         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
4212         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
4213         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
4214
4215 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4216
4217         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
4218         (PROMOTE_FUNCTION_RETURN): Likewise.
4219
4220 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4221
4222         * config/mn10300/mn10300-protos.h: Remove the prototype for
4223         mn10300_builtin_saveregs.
4224         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
4225         (TARGET_STRUCT_VALUE_RTX): Likewise.
4226         (TARGET_RETURN_IN_MEMORY): Likewise.
4227         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
4228         (mn10300_return_in_memory): Likewise.
4229         (mn10300_builtin_saveregs): Make it static.
4230         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
4231         (RETURN_IN_MEMORY): Likewise.
4232         (STRUCT_VALUE): Likewise.
4233         (EXPAND_BUILTIN_SAVEREGS): Likewise.
4234
4235 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
4236
4237         PR bootstrap/13853
4238         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
4239
4240 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4241
4242         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
4243         using ccr.
4244
4245 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4246
4247         * config/i860/i860-protos.h: Remove the prototype for
4248         i860_saveregs.
4249         * config/i860/i860.c (i860_saveregs): Make it static.
4250         (i860_struct_value_rtx): New.
4251         (TARGET_STRUCT_VALUE_RTX): Likewise.
4252         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
4253         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
4254         I860_STRUCT_VALUE_REGNUM.
4255         (EXPAND_BUILTIN_SAVEREGS): Remove.
4256
4257 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4258
4259         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
4260         (TARGET_RETURN_IN_MEMORY): Likewise.
4261         (m68hc11_struct_value_rtx): Likewise.
4262         (m68hc11_return_in_memory): Likewise.
4263         * config/m68hc11/m68hc11.h: Remove a commented-out definition
4264         of PROMOTE_PROTOTYPES.
4265         (RETURN_IN_MEMORY): Remove.
4266         (STRUCT_VALUE_REGNUM): Likewise.
4267
4268 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4269
4270         * config/mmix/mmix-protos.h: Remove the prototype for
4271         mmix_setup_incoming_varargs.
4272         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
4273         (TARGET_STRUCT_VALUE_RTX): Likewise.
4274         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4275         (mmix_setup_incoming_varargs): Make it static.
4276         (mmix_struct_value_rtx): New.
4277         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
4278         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
4279         (STRUCT_VALUE_REGNUM): Remove.
4280         (SETUP_INCOMING_VARARGS): Likewise.
4281
4282 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4283
4284         * config/mips/mips-protos.h: Remove the prototypes for
4285         mips_setup_incoming_varargs and mips_return_in_memory.
4286         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
4287         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
4288         (TARGET_PROMOTE_PROTOTYPES): Likewise.
4289         (TARGET_STRUCT_VALUE_RTX): Likewise.
4290         (TARGET_RETURN_IN_MEMORY): Likewise.
4291         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4292         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
4293         (mips_setup_incoming_varargs): Match the prototype for
4294         TARGET_SETUP_INCOMING_VARARGS.
4295         (mips_return_in_memory): Make it static.  Add argument fntype.
4296         (mips_strict_argument_naming): New.
4297         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
4298         (PROMOTE_FUNCTION_ARGS): Likewise.
4299         (PROMOTE_FUNCTION_RETURN): Likewise.
4300         (STRUCT_VALUE): Likewise.
4301         (RETURN_IN_MEMORY): Likewise.
4302         (SETUP_INCOMING_VARARGS): Likewise.
4303         (STRICT_ARGUMENT_NAMING): Likewise.
4304
4305 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4306
4307         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
4308         (TARGET_RETURN_IN_MEMORY): Likewise.
4309         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4310         (ip2k_return_in_memory): Likewise.
4311         (ip2k_setup_incoming_varargs): Likewise.
4312         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
4313         (STRUCT_VALUE): Likewise.
4314         (STRUCT_VALUE_INCOMING): Likewise.
4315         (SETUP_INCOMING_VARARGS): Likewise.
4316
4317 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4318
4319         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
4320         (TARGET_RETURN_IN_MEMORY): Likewise.
4321         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
4322         (avr_return_in_memory): Remove.
4323         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
4324         (STRUCT_VALUE): Likewise.
4325         (STRUCT_VALUE_INCOMING): Likewise.
4326         (STRICT_ARGUMENT_NAMING): Likewise.
4327
4328 2004-01-25  Jan Hubicka  <jh@suse.cz>
4329
4330         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
4331
4332 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
4333
4334         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
4335         (mips_regno_mode_ok_for_base_p): Declare.
4336         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
4337         (FRAME_POINTER_REGNUM): Renumber to 78.
4338         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
4339         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
4340         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
4341         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
4342         (REG_MODE_OK_FOR_BASE_P): Likewise.
4343         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
4344         entry for 77 to "$arg" and entry for 78 to "$frame".
4345         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
4346         (mips_reg_mode_ok_for_base_p): Remove.
4347         (mips_regno_mode_ok_for_base_p): New function, derived from old
4348         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
4349         restrictions unless we're being strict.
4350         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
4351
4352 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4353
4354         * c-common.h: Fix comment typos.
4355         * c-decl.c: Likewise.
4356         * cgraphunit.c: Likewise.
4357         * combine.c: Likewise.
4358         * et-forest.c: Likewise.
4359         * flow.c: Likewise.
4360         * function.c: Likewise.
4361         * ifcvt.c: Likewise.
4362         * integrate.c: Likewise.
4363         * jump.c: Likewise.
4364         * postreload.c: Likewise.
4365         * varray.c: Likewise.
4366
4367 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4368
4369         * doc/frontends.texi: Update copyright.
4370         * doc/gcov.texi: Likewise.
4371         * doc/gty.texi: Likewise.
4372         * doc/sourcebuild.texi: Likewise.
4373         * doc/standards.texi: Likewise.
4374
4375 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
4376
4377         PR target/12978
4378         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
4379         Remove movstrqi_small because it conflicts with movstrqi_large.
4380
4381 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4382
4383         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
4384         (TARGET_STRUCT_VALUE_RTX): Likewise.
4385         (cris_struct_value_rtx): Likewise.
4386         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
4387         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
4388         STRUCT_VALUE_REGNUM.
4389         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
4390
4391 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
4392
4393         PR bootstrap/13848
4394         * cse.c (cse_cc_succs): Change the mode of the source expression
4395         as soon as decide we need a new mode.  Don't permit changing modes
4396         if we found a match in a successor block.
4397         (cse_condition_code_reg): Save original mode of source expression
4398         so that we know whether we have to change the mode in other
4399         insns.
4400
4401 2004-01-24  Jan Hubicka  <jh@suse.cz>
4402
4403         * emit-rtl.c (change_address, adjust_address_1, offset_address,
4404         widen_memory_access):  Return early when there is nothing to change.
4405
4406 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
4407
4408         * simplify-rtx.c (simplify_relational_operation): Don't
4409         simplify address == constant into address + -constant == 0.
4410
4411 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4412
4413         * gcc.c (process_command): Don't internationalize the
4414         Copyright message.
4415         * mips-tfile.c (main): Likewise.
4416
4417 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
4418
4419         * cse.c: (cse_cc_succs) Fix comparison warning.
4420
4421 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4422
4423         * config/h8300/h8300.md: Remove extraneous USE in expanders.
4424
4425 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4426
4427         * config/h8300/h8300-protos.h: Provide prototypes for
4428         h8300_legitimate_constant_p and h8300_legitimate_address_p.
4429         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
4430         (h8300_rtx_ok_for_base_p): Likewise.
4431         (h8300_legitimate_address_p): Likewise.
4432         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
4433         h8300_legitimate_constant_p.
4434         (RTX_OK_FOR_BASE_P): Remove.
4435         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
4436
4437 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4438
4439         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
4440         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
4441         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
4442         (REG_OK_FOR_BASE_STRICT_P): Likewise.
4443         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
4444         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
4445         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
4446         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
4447
4448 2004-01-24  Jan Hubicka  <jh@suse.cz>
4449
4450         * cselib.c (remove_useless_values):  Do not access discarded values.
4451
4452 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
4453
4454         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
4455         arrays.
4456
4457 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
4458
4459         * recog.c: Fix a typo in copyright.
4460
4461 2004-01-23  Andrew Pinski  <apinski@apple.com>
4462
4463         * config/rs6000/rs6000.md (call): Fix misappiled patch.
4464         (call_value): Likewise.
4465
4466 2004-01-23  Richard Henderson  <rth@redhat.com>
4467
4468         PR opt/12941
4469         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
4470         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
4471         if SHIFT_COUNT_TRUNCATED is set.
4472
4473 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
4474
4475         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
4476         separate real and imaginary parts.
4477         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
4478
4479 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
4480
4481         PR target/13674
4482         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
4483         loading into GPR.
4484
4485 2004-01-23  Jan Hubicka  <jh@suse.cz>
4486
4487         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
4488         change.
4489
4490         * alloc-pool.c (align_four): Kill.
4491         (create_alloc_pool): Align size to eight.
4492         (free_alloc_pool, free_pool): Invalidate deallocated data.
4493
4494 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
4495
4496         PR gcc/1532
4497         * cse.c (cse_change_cc_mode): New static function.
4498         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
4499         (cse_condition_code_reg): New function.
4500         * rtl.h (cse_condition_code_reg): Declare.
4501         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
4502         * target.h (struct gcc_target): Add fixed_condition_code_regs and
4503         cc_modes_compatible.
4504         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
4505         (TARGET_CC_MODES_COMPATIBLE): Define.
4506         (TARGET_INITIALIZER): Add new initializers.
4507         * targhooks.c (default_cc_modes_compatible): New function.
4508         * targhooks.c (default_cc_modes_compatible): Declare.
4509         * hooks.c (hook_bool_intp_intp_false): New function.
4510         * hooks.h (hook_bool_intp_intp_false): Declare.
4511         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
4512         (TARGET_CC_MODES_COMPATIBLE): Define.
4513         (ix86_fixed_condition_code_regs): New static function.
4514         (ix86_cc_modes_compatible): Likewise.
4515         * doc/tm.texi (Condition Code): Document new hooks.
4516
4517 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4518
4519         * fixinc/inclhack.def (bad_lval): Renamed to ...
4520         (alpha_bad_lval): ... this.
4521         Removed file list.
4522         Restrict to alpha*-dec-osf*.
4523         * fixinc/fixincl.x: Regenerate.
4524         * fixinc/tests/base/dirent.h: Remove, moving test ...
4525         * fixinc/tests/base/testing.h: ... here, reflecting new name.
4526
4527 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
4528
4529         PR c/13814
4530         * c-decl.c (diagnose_mismatched_decls): Also discard a
4531         built-in if we encounter an old-style definition with the
4532         same name.
4533
4534 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
4535
4536         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
4537         set to default{32,64}.
4538
4539 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
4540
4541         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
4542         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
4543
4544 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
4545             Olivier Hainque  <hainque@act-europe.fr>
4546
4547         * fold-const.c (fold_binary_op_with_conditional_arg): Only
4548         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
4549
4550 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
4551
4552         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
4553         size for minipool references.
4554
4555 2004-01-23  Roger Sayle  <roger@eyesopen.com>
4556
4557         * real.c (real_floor, real_ceil): Tweak to allow input and output
4558         arguments to overlap.
4559         (real_round): New function to implement round(3m) semantics.
4560         * real.h (real_round): Prototype here.
4561         * builtins.c (fold_builtin_round): New function to constant fold
4562         round, roundf and roundl.
4563         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
4564
4565 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
4566
4567         PR optimization/13819
4568         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
4569         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
4570         (sh_handle_sp_switch_attribute): Remove warning.
4571
4572 2003-11-30  Jan Hubicka  <jh@suse.cz>
4573
4574         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
4575
4576 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
4577
4578         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
4579         may or may not return non-NIL.
4580         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
4581         check CANNOT_CHANGE_MODE_CLASS
4582
4583 2004-01-23  Jan Hubicka  <jh@suse.cz>
4584
4585         * basic-block.h (PROP_POSTRELOAD): New macro.
4586         (CLEANUP_LOG_LINKS): New.
4587         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
4588         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
4589
4590         * cselib.c (value_pool): New.
4591         (new_cselib_val): Use pool.
4592         (cselib_init): Initialize value_pool
4593         (cselib_finish): Free pool.
4594
4595 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
4596
4597         * config/sparc/sparc.c (scan_record_type): New function.
4598         (function_arg_slotno): Use it to determine which kinds of
4599         registers the record can be passed in.
4600
4601 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
4602
4603         * config/pa/fptr.c: Fix old-style definition.
4604
4605 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
4606
4607         PR optimization/13724
4608         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
4609         represents the zero bits produced by a ZERO_EXTEND operation.
4610
4611 2004-01-22  Roger Sayle  <roger@eyesopen.com>
4612
4613         PR optimization/13821
4614         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
4615         correctly calculate the lowpart offset of the contracted subreg.
4616
4617 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
4618
4619         * doc/invoke.texi (Optimize Options): Note that --param arguments
4620         are subject to change without notice.
4621
4622 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4623
4624         * config.gcc (mips-sgi-irix6*o32): Removed.
4625         * config/mips/iris6-o32-as.h: Likewise.
4626         * config/mips/iris6-o32-gas.h: Likewise.
4627         * config/mips/iris6-o32.h: Likewise.
4628
4629 2004-01-22  Jan Hubicka  <jh@suse.cz>
4630
4631         * cfgcleanup.c (first_pass): New static variable.
4632         (try_forward_edges):  Add work limiting check for threading.
4633         (try_crossjump_bb):  Add work limiting check for crossjumping.
4634         (try_optimize_cfg):  Maintain first pass variable.
4635
4636 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
4637
4638         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
4639         handles complex and vector modes.
4640
4641 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
4642
4643         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
4644         (REG_OK_FOR_BASE_P_STRICT): Likewise.
4645         (STRICT): Likewise.
4646
4647 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
4648
4649         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
4650         (genrtl_for_stmt): Remove emit_nop calls.
4651
4652 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4653
4654         PR target/13713
4655         PR target/13324
4656         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
4657         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
4658         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
4659
4660 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
4661
4662         * config/arm/arm.c: Include "debug.h".
4663         (thumb_pushpop): Take two new arguments.  Add some commentary.
4664         Output frame information when pushing.
4665         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
4666         thumb_pushpop.
4667         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
4668         offset, and pass it to thumb_pushpop.  Output CFI information.
4669         (thumb_expand_prologue): Add some frame-related markers and notes.
4670
4671 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
4672
4673         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
4674         for TARGET_64BIT.
4675         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
4676         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
4677
4678 2004-01-22  Roger Sayle  <roger@eyesopen.com>
4679             Paolo Bonzini  <bonzini@gnu.org>
4680
4681         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
4682         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
4683         * rtl.h (subreg_lsb_1): Prototype here.
4684         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
4685         sign extensions.
4686
4687 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
4688
4689         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
4690         macro need not be defined if jump-tables should contain
4691         relative addresses only when -fPIC or -fPIC is in effect.
4692
4693 2004-01-22  Jan Hubicka  <jh@suse.cz>
4694
4695         * alias.c (reg_base_value): Turn into varray.
4696         (reg_base_value_size): Kill.
4697         (old_reg_base_value): New deletable varray.
4698         (alias_invariant_size): New variable.
4699         (REG_BASE_VALUE): Update to use varray.
4700         (find_base_value): Likewise.
4701         (record_set): Likewise.
4702         (record_base_value): Likewise.
4703         (memrefs_conflict_p): Likewise.
4704         (record_set): Likewise
4705         (record_base_value): Likewise.
4706         (memrefs_conflict_p): Use alias_invariant_size.
4707         (init_alias_analysis): Use varray; set alias_invariant_size;
4708         rescale other arrays to be sized by maxreg.
4709         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
4710
4711 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
4712
4713         * config/sparc/sparc.c (function_arg_slotno): Use
4714         FLOAT_TYPE_P to detect FP fields in structures.
4715         (function_arg_record_value_1): Likewise.
4716         (function_arg_record_value_2): Likewise.
4717
4718 2004-01-22  Jan Hubicka  <jh@suse.cz>
4719
4720         * function.c (allocate_struct_function): Do not initialize expr, emit
4721         and varasm.
4722         (prepare_function_start): Do it here.
4723         * c-parse.in (maybe_type_qual): Do not produce line number notes.
4724
4725 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
4726
4727         PR target/13559
4728         * config/sparc/sparc.c (function_arg_record_value_3): Revert
4729         to 'word_mode' once the first slot has been filled.
4730
4731 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
4732
4733         * config/sparc/sparc.c (function_arg_record_value_1): Fix
4734         computation of the number of integer registers required.
4735
4736 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
4737
4738         * config/i386/i386.md: Simplify certain comparisons of
4739         const_int.
4740
4741 2004-01-21  Andrew Pinski  <apinski@apple.com>
4742
4743         PR target/13785
4744         * config/rs6000/rs6000.md (call_value): Force operand
4745         1 not operand 0 into a register.
4746
4747 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
4748
4749         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
4750         unwind-dw2-fde.h: Update copyright.
4751
4752 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4753
4754         * pa-protos.h: Update copyright.
4755         * pa.h: Likewise.
4756         * pa.md: Likewise.
4757
4758 2004-01-21  Caroline Tice  <ctice@apple.com>
4759
4760         PR target/12308
4761         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
4762         flags register.
4763         (fix_truncdfdi2): Likewise.
4764         (fix_truncsfdi2): Likewise.
4765         (*fix_truncdi_1): Likewise.
4766         (fix_truncxfsi2): Likewise.
4767         (fix_truncdfsi2): Likewise.
4768         (fix_truncsfsi2): Likewise.
4769         (*fix_truncsi_1): Likewise.
4770         (fix_truncxfhi2): Likewise.
4771         (fix_truncdfhi2): Likewise.
4772         (fix_truncsfhi2): Likewise.
4773         (*fix_trunchi_1): Likewise.
4774
4775 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
4776
4777         * alias.c, basic-block.h, c-common.c, c-common.h,
4778         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
4779         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
4780         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
4781         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
4782         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
4783         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
4784         genautomata.c, genconditions.c, genemit.c, genflags.c,
4785         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
4786         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
4787         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
4788         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
4789         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
4790         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
4791         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
4792         unwind.h, varray.c, varray.h: Update copyright.
4793
4794 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
4795
4796         * config/h8300/coff.h: Update copyright.
4797         * config/h8300/elf.h: Likewise.
4798         * config/h8300/h8300-protos.h: Likewise.
4799         * config/h8300/h8300.c: Likewise.
4800         * config/h8300/h8300.h: Likewise.
4801         * config/h8300/h8300.md: Likewise.
4802
4803 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4804
4805         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
4806         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
4807         ultrix_unistd): New hacks.
4808         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
4809         ULTRIX_CONST2_CHECK): Add checks.
4810         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
4811         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
4812         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
4813         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
4814         * fixinc/tests/base/locale.h: New file.
4815         * fixinc/fixincl.x: Rebuilt.
4816
4817 2004-01-21  Andreas Jaeger  <aj@suse.de>
4818             Michael Matz  <matz@suse.de>
4819
4820         * doc/extend.texi (Extended Asm): Clarify memory clobber.
4821
4822 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
4823
4824         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
4825         _Jv_RegisterClasses through a function pointer.
4826
4827 2004-01-21  Falk Hueffner  <falk@debian.org>
4828
4829         PR target/12898
4830         * config/alpha/alpha.c (alpha_emit_set_const_1): If
4831         no_new_pseudos, use gen_rtx_SET directly for SImode constants
4832         which need multiple instructions to emit.
4833
4834 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
4835
4836         * config/m32r/m32r.h (CPP_SPEC): Define.
4837
4838 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
4839
4840         * c-decl.c (merge_decls): Kill different_binding_level and
4841         different_tu arguments; simplify throughout.
4842         (duplicate_decls): Likewise.
4843         (pushdecl, merge_translation_unit_decls): Update calls to
4844         duplicate_decls.
4845
4846 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4847
4848         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
4849         $(SYSTEM_H).
4850         (print-rtl1.o): Depend on $(SYSTEM_H).
4851
4852 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
4853
4854         PR bootstrap/12730
4855         * configure.ac: Delete definition and subsitution of docdir.
4856         Add info, man, srcman and srcinfo to target hooks. Create doc/
4857         directory.
4858         * configure: Regenerate.
4859         * Makefile.in: Don't substitute docdir and delete all references
4860         throughout.
4861         (MAKEINFOFLAGS): Define.
4862         (stmp-docobjdir): Delete.
4863         (INFOFILES, MANFILES): Define.
4864         (info): Call lang.info, srcinfo and lang.srcinfo.
4865         (generated-manpages): Call lang.man, srcman and lang.srcman.
4866         (srcinfo, srcman): New rules to copy back files to source directory.
4867         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
4868         (install-man): Revamp rule.
4869         (clean): Update dvi directory.
4870         (distclean): Delete TAGS from front end directorys.
4871         (maintainer-clean): Delete all document files in source directory.
4872
4873         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
4874         (objc.srcman, objc.srcinfo): Likewise.
4875
4876 2004-01-20  Bruce Korb  <bkorb@gnu.org>
4877
4878         * fixinc/inclhack.def(math_exception): bypass only for glibc.
4879         (matherr_decl): rename & relocate as exception_structure.
4880         This fix must precede the math_exception fix.
4881
4882 2004-01-20  Roger Sayle  <roger@eyesopen.com>
4883
4884         * fold-const.c (fold_convert): Rename to fold_convert_const.
4885         (fold_convert_const): Change arguments to take a tree_code,
4886         a type and the operand/expression to be converted.  Return
4887         NULL_TREE if no simplification is possible.  Add support for
4888         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
4889         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
4890         Adjust call to fold_convert to match new fold_convert_const.
4891         Avoid modifying the tree passed to fold in-place.
4892
4893 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
4894
4895         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
4896         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
4897         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
4898
4899 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4900
4901         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
4902         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
4903         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
4904         (emit_move_sequence): Check scratch_reg first in various if statements.
4905         Extend source simplification to handle all 64-bit CONST_INTs.
4906         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
4907         frame size.
4908         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
4909         frame offset calculations.
4910         * pa.h (NEW_HP_ASSEMBLER): Add comment.
4911         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
4912         LEGITIMATE_64BIT_CONST_INT_P): Define.
4913         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
4914         any CONST_INT as legitimate during and after reload.
4915         (VAL_32_BITS_P, INT_32_BITS): Define.
4916         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
4917
4918 2004-01-20  Jan Hubicka  <jh@suse.cz>
4919
4920         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
4921         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
4922         containing hard regs are shared.
4923         (gen_hard_reg_clobber): New function.
4924         (hard_reg_clobbers): New array.
4925         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
4926         (copy_rtx): Do not copy clobbers containing hard regs.
4927         * rtl.h (gen_hard_reg_clobber): Declare.
4928
4929 2004-01-20  Jan Hubicka  <jh@suse.cz>
4930
4931         * varray.c:  Include hashtab.h
4932         (varray_descriptor): New structure.
4933         (hash_descriptor, eq_descriptor, varray_descriptor,
4934         print_statistics): New static functions
4935         (varray_init, varray_grow): Update statistics
4936         (dump_varray_statistics): New function.
4937         * varray.h (dump_varray_statistics): Declare.
4938         * toplev.c (finalize): Call it.
4939         * Makefile.in (varray.o): Add dependency.
4940
4941 2004-01-20  Jan Hubicka  <jh@suse.cz>
4942
4943         * cselib.c: Include alloc-pool.h
4944         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
4945         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
4946         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
4947         unchain_one_elt_loc_list_pool, unchain_one_value,
4948         new_cselib_val): Simplify using allocpool.
4949         (cselib_init): Initialize allocpools.
4950         (cselib_finish): Finish allocpools.
4951         * Makefile.in (cselib.o): Depend on alloc-pool.h
4952
4953 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
4954
4955         * config/mips/mips.c (mips_load_call_address): Make the call insn
4956         use $gp if it could be calling a lazy binding stub.
4957
4958 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
4959
4960         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
4961         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
4962         (TARGET_STRUCT_VALUE_RTX): Likewise.
4963         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
4964         (PROMOTE_FUNCTION_RETURN): Remove.
4965         (STRUCT_VALUE): Remove.
4966
4967 2004-01-20  Denis Chertykov  <denisc@overta.ru>
4968
4969         PR bootstrap/13735
4970         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
4971         register as pointer after reload.
4972
4973 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4974
4975         PR optimization/12440
4976         * loop.c: Include ggc.h.
4977         (loop_optimize): Run garbage collector between optimization of loops.
4978         * Makefile.in (loop.o): Add GGC_H dependency.
4979
4980 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
4981
4982         * gcc/config/rs6000/rs6000.c (function_arg) Handle
4983         vector register special in function without prototype.
4984         (function_arg_advance): Vector parameters get always
4985         GPRs allocated for the linux64 target.
4986
4987 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
4988
4989         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
4990         not TARGET_M32RX_MASK.
4991
4992 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
4993
4994         PR target/13557
4995         * config/sparc/sparc.c (function_arg): Reorder the cases.
4996
4997 2004-01-19  Per Bothner  <per@bothner.com>
4998
4999         Move cpp_reader's line_maps field to a shared global.
5000         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
5001         and change the type to a pointer rather than a struct.
5002         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
5003         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
5004         Likewise.
5005         * cppfiles.c (validate_pch):  Likewise.
5006         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
5007         Likewise.
5008         * cpperror.c (print_location):  Likewise.
5009         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
5010         * cppinit.c (cpp_create_reader):  Handle new parameter.
5011         (cpp_destroy):  Don't free line_maps - that's no longer our job.
5012         * input.h (line_table):  New variable.
5013         * toplev.c (line_table):  Declare variable.
5014         (general_init):  Initialize line_table.
5015         * c-opts.c (c_common_init_options):  Pass line_table to
5016         cpp_create_reader.
5017         * fix-header.c (read_scan_file):  New local variable line_table.
5018         Initialize, and pass it to cpp_create_reader.
5019         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
5020         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
5021
5022 2004-01-19  Per Bothner  <per@bothner.com>
5023
5024         Implement a cache for linemap_lookup.
5025         * line-map.h (struct_line_maps):  Add cache field.
5026         * line-map.c (linemap_init):  Zero cache field.
5027         (linemap_add):  Set cache field to offset of newly allocated map.
5028         (linemap_lookup):  Use and set cache field.
5029
5030 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5031
5032         PR optimization/13567
5033         * cse.c (cse_basic_block): Call cse_insn with a non-null
5034         libcall_insn for the last SET insn of a no-confilict block.
5035
5036 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
5037
5038         * Makefile.in (target_noncanonical, program_transform_name): Use
5039         immediate define instead of deferred.
5040         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
5041         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
5042         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
5043         deferred backquote.
5044
5045 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
5046
5047         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
5048         true unconditionally.
5049         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
5050         Remove.
5051         (build_unary_op, build_modify_expr): Don't handle extended
5052         lvalues.
5053         (build_component_ref, build_conditional_expr): Call non_lvalue
5054         instead of pedantic_non_lvalue.
5055         (build_c_cast): Don't condition use of non_lvalue on pedantic.
5056         * fold-const.c (fold): Don't check pedantic directly for
5057         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
5058         passed to pedantic_non_lvalue.
5059         * doc/extend.texi: Remove documentation of extended lvalues.
5060
5061 2004-01-19  Roger Sayle  <roger@eyesopen.com>
5062
5063         PR optimization/5263
5064         * simplify-rtx.c (associative_constant_p): Delete.
5065         (simplify_associative_operation): Rewrite to linearize terms, and
5066         attempt to simplify new term against both left and right subterms.
5067         (simplify_binary_operation): Call swap_commutative_operands_p on
5068         op0 and op1, not trueop0 and trueop1.  Move the initialization of
5069         trueop0 and trueop1 down to where first needed.
5070         (simplify_relational_operation): Likewise.
5071         * rtlanal.c (commutative_operand_precedence): Also order constant
5072         operands using avoid_constant_pool_reference.
5073
5074 2004-01-19  Richard Henderson  <rth@redhat.com>
5075
5076         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
5077         don't check memory mode.
5078         (unaligned_memory_operand): Likewise.
5079         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
5080         abort for op0 not MEM.
5081
5082         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
5083         is not a reg, copy to a scratch first.
5084         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
5085         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
5086         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
5087         (reload_inqi, reload_inhi): Fix mode of op0.
5088         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
5089         reload_outhi_help): Likewise.  Use define_insn_and_split.
5090
5091         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
5092         as well as $29 dead.
5093
5094 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
5095
5096         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
5097         "tls_object" for thread-local objects.
5098         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
5099         "#tls" for thread-local sections.
5100         * configure.ac (thread-local checks): Specify --fatal-warnings in
5101         every binutils-specific checks.  For sparc*-*-*, test whether the
5102         OS is Solaris and the tools are native and act accordingly.
5103         * configure: Rebuild.
5104
5105 2004-01-19  Jeff Law  <law@redhat.com>
5106
5107         * contrib.texi: Update Paolo Carlini's entry.  New entries for
5108         Jerry Quinn and Petur Runolfsson.
5109
5110 2004-01-19  Roger Sayle  <roger@eyesopen.com>
5111
5112         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
5113         size, don't use the larger zero-extending loads.
5114
5115 2004-01-19  Richard Henderson  <rth@redhat.com>
5116
5117         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
5118         * alpha.md (UNSPEC_NT_LDA): Remove.
5119         (UNSPEC_CVTLQ, cvtlq): New.
5120         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
5121         (extendsidi2_fix): Remove.
5122         (extendsidi2 splitter): Use cvtlq.
5123         (extendsidi2 fp peepholes): Remove.
5124         (cvtql): Use SFmode instead of SImode.
5125         (fix_trunc?fsi): Update to match.
5126         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
5127         (movsi): Rename from movsi_nofix, remove f alternatives.
5128         (movsi_nt_vms): Similarly.
5129         (movsi_fix, movsi_nt_vms_fix): Remove.
5130         (nt_lda): Remove.
5131         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
5132
5133 2004-01-19  Jan Hubicka  <jh@suse.cz>
5134
5135         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
5136         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
5137         list.
5138         (cgraph_remove_unreachable_nodes): New function
5139         (cgraph_decide_inlining_of_small_function): Fix pasto.
5140         (cgraph_decide_inlining_incrementally): Fix pasto.
5141         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
5142
5143 2004-01-19  Steven Bosscher  <stevenb@suse.de>
5144
5145         * gengtype.c (header_file): Make it static.
5146         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
5147         * gengtype.h (header_file): No longer extern.
5148
5149 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
5150
5151         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
5152         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
5153         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
5154
5155 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
5156
5157         * stmt.c (HAVE_casesi): Define it not already defined.
5158         (HAVE_tablejump): Likewise.
5159         (expand_end_case_type): Resort to the binary tree method if
5160         neither casesi or tablejump is available.
5161
5162 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
5163
5164         * final.c (final_scan_insn): Make non-static again.
5165         * output.h (final_scan_insn): Re-add prototype.
5166         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
5167         to final_scan_insn call.
5168         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
5169         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
5170         * config/pa/pa.c (output_lbranch, output_call): Likewise.
5171         * config/sh/sh.c (print_slot): Likewise.
5172         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
5173         (output_sibcall, sparc_flat_function_epilogue): Likewise.
5174
5175 2004-01-18  Jan Hubicka  <jh@suse.cz>
5176
5177         * basic-block.h (try_redirect_by_replacing_jump): Declare.
5178         * cfgcleanup.c (try_optimize_cfg): Use it.
5179         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
5180         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
5181         Kill hack.
5182         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
5183
5184         Revert:
5185         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
5186
5187                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
5188                 even after reload, just don't remove the actual jump tables.
5189
5190 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
5191
5192         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
5193
5194 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
5195
5196         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
5197         the size of a pointer in bytes.
5198
5199 2004-01-18  Roger Sayle  <roger@eyesopen.com>
5200
5201         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
5202         live "next" variable, which could lead to an infinite loop.
5203
5204 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
5205
5206         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
5207         block.
5208
5209         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
5210         Check for NULL in the chain and remove repeated code.
5211
5212 2004-01-18  Jan Hubicka  <jh@suse.cz>
5213
5214         * coverage.c (checksum_string): Rename to ...
5215         (coverage_checksum_string): ... this one, Use crc32_string; recognize
5216         names containing random number and zero the number out in order to get
5217         match.
5218
5219 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
5220
5221         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
5222
5223 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
5224
5225         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
5226         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
5227         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
5228         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
5229         doc/trouble.texi: Remove trailing whitespace.
5230
5231 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
5232
5233         PR target/7618
5234         * config/mips/mips.c: Include cfglayout.h.
5235         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
5236         (mips_unspec_offset_high): Add temporary register argument.
5237         (mips_load_call_address): New function, split out from...
5238         (mips_expand_call): ...here.
5239         (mips_output_cplocal): New function.
5240         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
5241         (mips_emit_loadgp): New function, split out from...
5242         (mips_expand_prologue): ...here.
5243         (mips_output_mi_thunk): New function.
5244
5245 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
5246
5247         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
5248         mcpu32): Remove redundant checks for implied target predefines.
5249
5250 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
5251
5252         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
5253         Return type is unsigned int not int.
5254         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
5255         Likewise.
5256
5257 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
5258
5259         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
5260         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
5261         "GNU/Linux" and "Microsoft Windows" terminology.
5262
5263 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
5264
5265         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
5266         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
5267         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
5268         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
5269         @smallexample instead of @example.
5270
5271 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
5272
5273         * objc/objc-act.c (build_objc_method_call): Use target
5274         hooks instead of macros to determine if ..._stret
5275         dispatchers should be used (NeXT runtime only).
5276
5277 2004-01-17  Roger Sayle  <roger@eyesopen.com>
5278
5279         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
5280         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
5281
5282 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
5283
5284         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
5285         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
5286         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
5287         macros.
5288         * reload1.c (emit_reload_insns): Use them.
5289         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
5290         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
5291         for NULL PATTERN.
5292
5293 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
5294
5295         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
5296         (final_scan_insn): Update to take an additional SEEN argument.  Emit
5297         a line note after the prologue.  Make static.
5298         (line_note_exists): Remove.
5299         (final): Don't initialize line_note_exists.  Update call to
5300         final_scan_insn.
5301         * output.h (final_scan_insn): Remove prologue.
5302         * function.c (set_insn_locators): Update comment.
5303         (thread_prologue_and_epilogue_insns): Add a comment.
5304
5305 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
5306
5307         PR target/10781
5308         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
5309         Prototype.
5310         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
5311         New function.
5312         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
5313         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
5314         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
5315
5316 2004-01-17  Jan Hubicka  <jh@suse.cz>
5317
5318         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
5319         commit.
5320
5321         * toplev.c (HAVE_conditional_execution): Provide default.
5322         (rest_of_handle_reorder_blocks): For conditional_execution target
5323         update liveness once after all transformations
5324         (rest_of_compilation): Do crossjumping before ce3.
5325
5326 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
5327
5328         * alias.c (new_alias_set): Mark last_alias_set for PCH.
5329         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
5330         for PCH.
5331         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
5332         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
5333         (get_TOC_alias_set): Mark 'set' for PCH.
5334
5335 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
5336
5337         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
5338         even after reload, just don't remove the actual jump tables.
5339
5340 2004-01-17  J. Brobecker  <brobecker@gnat.com>
5341
5342         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
5343         Remove checks for is_ada() and TREE_UNSIGNED.
5344         (subrange_type_die): Emit a byte_size attribute if the subrange
5345         type size is different from the base type size.
5346         (modified_type_die): Replace call to is_ada_subrange_type() by
5347         call to is_subrange_type().
5348
5349 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
5350
5351         * config/sh/sh.c: Include ggc.h.
5352
5353 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
5354
5355         * Makefile.in (MD5_H): New.
5356         (fold-const.o): Depend on md5.h.
5357         (dwarf2out.o): Likewise.
5358         (cppfiles.o): Likewise.
5359         * cppfiles.c: Include md5.h.
5360         (should_stack_file): Check against list read from PCH file.
5361         (struct pchf_data): New.
5362         (pchf): New variable.
5363         (struct pchf_adder_info): New.
5364         (pchf_adder): New.
5365         (pchf_save_compare): New.
5366         (_cpp_save_file_entries): New.
5367         (_cpp_read_file_entries): New.
5368         (struct pchf_compare_data): New.
5369         (pchf_compare): New.
5370         (check_file_against_entries): New.
5371         * cpphash.h (_cpp_save_file_entries): Prototype.
5372         (_cpp_read_file_entries): Prototype.
5373         * cpppch.c (cpp_write_pch_state): Write the list of headers.
5374         (cpp_read_state): Read the list of headers.
5375
5376 2004-01-17  Jan Hubicka  <jh@suse.cz>
5377
5378         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
5379         builtin_expect specially.
5380         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
5381         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
5382         * invoke.texi (max-inline-insns-single): Set to 100.
5383         (large-function-insns): Set to 3000.
5384
5385 2004-01-16  Eric Christopher  <echristo@redhat.com>
5386             Chandrakala Chavva <cchavva@redhat.com>
5387
5388         * cppcharset.c (one_iso88591_to_utf8): New function.
5389         (convert_iso88591_utf8): Ditto. Use.
5390         (conversion_tab): Use.
5391         (_cpp_input_to_utf8): New function.
5392         (_cpp_init_iconv_buffer): Ditto.
5393         (_cpp_close_iconv_buffer): Ditto.
5394         * cpphash.h: Prototype new functions.
5395         (cpp_buffer): Add input_cset_desc.
5396         * cppinit.c: Add input_charset default.
5397         * cpplib.c (cpp_push_buffer): Support init and
5398         close of iconv.
5399         * cpplib.h (cpp_options): Add input_charset.
5400
5401 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
5402
5403         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
5404         * config/alpha/unicosmk.h: Remove a commented-out definition
5405         of ASM_OUTPUT_SECTION_NAME.
5406         * config/stormy16/stormy16.h: Likewise.
5407
5408 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5409
5410         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
5411         (alpha___extern_prefix_sys_stat): ... this.
5412         Apply to <sys/mount.h>, too.
5413         Tweak to match more variations.
5414         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
5415
5416         * fixinc/inclhack.def (alpha___extern_prefix,
5417         alpha___extern_prefix_standards): New hacks to obey
5418         __PRAGMA_EXTERN_PREFIX.
5419         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
5420         test.
5421         * fixinc/tests/base/standards.h: Likewise.
5422
5423         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
5424         variations.
5425         New testcase.
5426         * fixinc/tests/base/pthread.h: Handle it.
5427
5428         * fixincl/inclhack.def (bad_lval): Sort file list.
5429         Add many missing files up to Tru64 UNIX V5.1B.
5430         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
5431         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
5432         order.
5433
5434         * fixinc/fixincl.x: Regenerate.
5435
5436 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
5437
5438         * version.c (version_string): Change to 3.5.0.
5439         * doc/include/gcc-common.texi (version-GCC): Likewise.
5440
5441 2004-01-16  Jan Hubicka  <jh@suse.cz>
5442
5443         * i386.md (load_tp_di): Fix pasto.
5444
5445         PR opt/13608
5446         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
5447
5448         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
5449         pp_c_character_constant, pp_c_floating_constant,
5450         pp_c_additive_expression, pp_c_shift_expression,
5451         pp_c_equality_expression, pp_c_and_expression,
5452         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
5453         pp_c_logical_and_expression): Remove inline modifier.
5454         * dwarf2out.c (get_AT): Likewise.
5455         * et-forest.c (et_splay): Likewise.
5456         * ra.h (ra_alloc, ra_calloc): Likewise
5457
5458 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
5459
5460         * config/frv/frv-protos.h: Fix comment formatting.
5461         * config/frv/frv.c: Likewise.
5462         * config/frv/frv.h: Likewise.
5463         * config/frv/frv.md: Likewise.
5464         * config/frv/frvbegin.c: Likewise.
5465         * config/frv/frvend.c: Likewise.
5466
5467 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
5468
5469         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
5470         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
5471         LINKER_DOES_NOT_WORK_WITH_DWARF2.
5472         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
5473
5474 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
5475
5476         PR 11864
5477         * postreload.c (reload_cse_simplify_operands): Don't remove
5478         implicit extension from LOAD_EXTEND_OP.
5479
5480 2004-01-16  Jan Hubicka  <jh@suse.cz>
5481
5482         PR opt/11350
5483         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
5484         after reload.
5485         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
5486         rtl_try_redirect_by_replacing_branch): Likewise.
5487
5488 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
5489
5490         PR pch/13689
5491         * alias.c (struct alias_set_entry): Mark for GC.
5492         (alias_sets): Make static, mark for GC.
5493         (record_alias_subset): Use GC to allocate alias structures.
5494         * varray.c (element): Make generic varrays GCed.
5495
5496         PR pch/13361
5497         * c-typeck.c (constructor_asmspec): Delete.
5498         (struct initializer_stack): Delete field 'asmspec'.
5499         (start_init): Delete saving of asmspec.
5500         (finish_init): Don't update constructor_asmspec.
5501         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
5502         * stmt.c (expand_asm): Duplicate strings from tree.
5503         (expand_asm_operands): Likewise.
5504         * tree.c (tree_size): Update computation of size of STRING_CST.
5505         (make_node): Don't make STRING_CST nodes.
5506         (build_string): Allocate string with tree node.
5507         * tree.def (STRING_CST): Update comment.
5508         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
5509         (tree_string): Place contents of string in tree node.
5510         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
5511         from tree.
5512
5513         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
5514         altivec operands.
5515
5516 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
5517
5518         * c-common.h: Fix comment formatting.
5519         * c-cppbuiltin.c: Likewise.
5520         * c-pragma.c: Likewise.
5521         * calls.c: Likewise.
5522         * collect2.c: Likewise.
5523         * cppcharset.c: Likewise.
5524         * cpptrad.c: Likewise.
5525         * dbxout.c: Likewise.
5526         * defaults.h: Likewise.
5527         * dwarf2out.c: Likewise.
5528         * fold-const.c: Likewise.
5529         * genautomata.c: Likewise.
5530         * genconditions.c: Likewise.
5531         * genflags.c: Likewise.
5532         * gengtype.c: Likewise.
5533         * integrate.c: Likewise.
5534         * loop.c: Likewise.
5535         * predict.c: Likewise.
5536         * sdbout.c: Likewise.
5537
5538 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
5539
5540         * config/ia64/ia64.md (*movti_internal): C output template
5541         extracted to ia64.c.
5542         (*movti_internal_reg): Delete.
5543         (reload_inti, reload_outti): Use the correct mode on operand 2
5544         in the first place, don't fix it up in the output template.
5545         (movtf, reload_ointf, reload_outtf): New expanders.
5546         (*movtf_internal): New define_insn_and_split.
5547         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
5548         make static; do not hand TFmode CONST_DOUBLEs to split_double.
5549         (ia64_split_tmode_move): New function, body mostly pulled
5550         from ia64.md:*movti_internal.
5551         (ia64_function_arg_words): New function, extracted common
5552         logic from ia64_function_arg et seq.
5553         (ia64_function_arg_offset): Likewise.  Handle correctly the
5554         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
5555         (ia64_function_arg, ia64_function_arg_partial_nregs)
5556         (ia64_function_arg_advance): Use ia64_function_arg_words and
5557         ia64_function_arg_offset.
5558         (ia64_function_value): TCmode does not go in float regs.
5559         (ia64_secondary_reload_class): Also handle TFmode.
5560         * config/ia64/ia64-protos.h: Remove prototype for
5561         ia64_split_timode; add prototype for ia64_split_tmode_move.
5562
5563 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
5564
5565         * Makefile.in (MAINT): Make it an immediate assignment.
5566
5567 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
5568
5569         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
5570
5571 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
5572
5573         * config/h8300/coff.h: Replace Hitachi with Renesas.
5574         * config/h8300/elf.h: Likewise.
5575         * config/h8300/h8300-protos.h: Likewise.
5576         * config/h8300/h8300.c: Likewise.
5577         * config/h8300/h8300.h: Likewise.
5578         * config/h8300/h8300.md: Likewise.
5579         * config/h8300/lib1funcs.asm: Likewise.
5580
5581 2004-01-15  Andrew Pinski  <apinski@apple.com>
5582
5583         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
5584         around it.
5585
5586 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
5587
5588         * config/h8300/h8300.c (h8300_return_in_memory): New.
5589         (TARGET_STRUCT_VALUE_RTX): Likewise.
5590         (TARGET_RETURN_IN_MEMORY): Likewise.
5591         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
5592         (RETURN_IN_MEMORY): Likewise.
5593
5594 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
5595
5596         PR optimization/13375
5597         * gcse.c (handle_avail_expr): Just return if the source is not a
5598         single set.
5599
5600 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
5601             Daniel Jacobowitz  <drow@mvista.com>
5602
5603         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
5604         (EQUIV): Define.
5605         (ARM_FUNC_ALIAS): New macro.
5606         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
5607         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
5608
5609 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5610
5611         PR optimization/12372
5612         * calls.c (expand_call): Add call_fusage data for stack arguments in
5613         constant calls.
5614
5615 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
5616
5617         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
5618         (rs6000_elf_declare_function_name): Formatting.
5619         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
5620
5621 2004-01-15  Jan Hubicka  <jh@suse.cz>
5622
5623         PR bootstrap/13692
5624         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
5625         previous patch.
5626
5627 2004-01-15  Richard Henderson  <rth@redhat.com>
5628
5629         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
5630         integer regs of the same call-savedness.
5631
5632 2004-01-15  Andreas Schwab  <schwab@suse.de>
5633
5634         PR bootstrap/13562
5635         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
5636         status for NOTB/NOTW/NEGW methods.
5637
5638 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
5639
5640         * doc/invoke.texi: Update dump file names.  Fix a typo.
5641
5642 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
5643
5644         * builtins.c (expand_builtin_va_end): Don't use
5645         EXPAND_BUILTIN_VA_END.
5646         * system.h (EXPAND_BUILTIN_VA_END): Poison.
5647         * config/d30v/d30v.h: Remove a commented-out definition of
5648         EXPAND_BUILTIN_VA_END.
5649         * config/stormy16/stormy16.h: Likewise.
5650
5651 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
5652
5653         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
5654         * targhooks.c (default_struct_value_rtx): Don't use
5655         STRUCT_VALUE_INCOMING_REGNUM.
5656
5657 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
5658
5659         PR bootstrap/12744
5660         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
5661         GENINSRC and not parsedir.  Define srcextra as a langhook.
5662         * configure: Regenerate.
5663         * Makefile.in: Suppress default .l.c rule.  Don't substitute
5664         parsedir and delete all references throughout.  Conditionally define
5665         rule for srcextra dependent on GENINSRC.
5666         (stmp-docobjdir): Delete.
5667         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
5668         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
5669         and gengtype-yacc.h back to source directory.
5670         (maintainer-clean): Delete all parse files in source directory.
5671         (distclean): Delete generated files.
5672
5673         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
5674         (objc-parse.c, objc-parse.y): Don't use parsedir.
5675         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
5676         directory if requested.
5677         (po-generated): Don't use parsedir.
5678         (objc.maintainer-clean): Delete above files from source directory.
5679
5680 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
5681
5682         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
5683
5684 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
5685
5686         * doc/tm.texi: Replace RETURN_IN_MEMORY with
5687         TARGET_RETURN_IN_MEMORY.
5688
5689 2004-01-15  Jan Hubicka  <jh@suse.cz>
5690
5691         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
5692         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
5693         functions accepting SSE arguments
5694         (function_arg): Warn only when asked to warn.
5695         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
5696
5697 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
5698
5699         * c-parse.in (stmts_and_decls): Make label at end of compound
5700         statement a hard error.
5701
5702 2004-01-14  Jan Hubicka  <jh@suse.cz>
5703
5704         * cgraph.c (create_edge): Use local.redefined_extern_inline.
5705         * cgraph.h (cgraph_local_info): Sort fields by size; add
5706         redefined_extern_inline
5707         (cgraph_global_info): Sort fields by size.
5708         (cgraph_node): Likewise.
5709         * cgraphunit.c (cgraph_finalize_function): Se
5710         local.redefined_extern_inline on redefinition.
5711         (cgraph_analyze_function): Use it; fix formating.
5712
5713 2004-01-14  Jan Hubicka  <jh@suse.cz>
5714
5715         PR c++/10776
5716         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
5717         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
5718         bitmaps
5719         (cache_size): New variable
5720         (add_dependence): Update use; canonize early memory locations
5721         (sched_analyze_1): Likewise.
5722         (sched_analyze_2): Likewise.
5723         (init_dependency_caches): Initialize bitmaps.
5724         (free_dependency_caches): Free bitmaps
5725
5726 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
5727
5728         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
5729         targetm.calls.strict_argument_naming().
5730         * target.h: Likewise.
5731
5732 2004-01-14  Richard Henderson  <rth@redhat.com>
5733
5734         PR debug/13231
5735         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
5736         instructions.
5737
5738 2004-01-14  Richard Henderson  <rth@redhat.com>
5739
5740         PR c++/12491
5741         * except.c (struct eh_region): Add u.fixup.resolved.
5742         (resolve_one_fixup_region): Split out from ...
5743         (resolve_fixup_regions): ... here.
5744
5745 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
5746
5747         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
5748
5749 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
5750
5751         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
5752         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
5753         (STRUCT_VALUE): Remove.
5754
5755 2004-01-14  Steven Bosscher  <stevenb@suse.de>
5756
5757         * system.h: Poison PROMOTED_MODE
5758         * integrate.c (expand_inline_function): Don't mention the
5759         PROMOTED_MODE.
5760         * loop.c (update_giv_derive): Same.
5761         * tree.h (DECL_RTL): Same.
5762
5763 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
5764
5765         PR target/9365
5766         * sh.c (gen_block_redirect): Add special handling of RETURN.
5767         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
5768         far branch target (i.e. it's a return).
5769
5770 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
5771
5772         * regrename.c (find_oldest_value_reg): Fix a warning.
5773
5774 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
5775
5776         PR bootstrap/12527
5777         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
5778         Move linux-gas.h and linux-elf.h before aout.h.
5779         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
5780         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
5781
5782 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
5783
5784         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
5785         (CONST_INT, VOIDmode, ...).
5786
5787 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
5788
5789         * regrename.c (find_oldest_value_reg): If the replacement uses
5790         multiple hard registers, check that all of them are in CLASS.
5791
5792 2004-01-14  Jan Hubicka  <jh@suse.cz>
5793
5794         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
5795         impossible.
5796
5797 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
5798
5799         * Makefile.in: Define MAINT from --enable-maintainer-mode.
5800
5801 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
5802
5803         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
5804         Calculate always vrsave_mask if TARGET_ALTIVEC.
5805         (rs6000_emit_prologue): Emit code for vrsave
5806         only if TARGET_ALTIVEC_VRSAVE.
5807         (rs6000_emit_epilogue): Likewise.
5808
5809 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
5810
5811         * config/sparc/sparc.md (tie_add32): Fix pasto.
5812         (tie_add64): Likewise.
5813
5814 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5815
5816         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
5817
5818 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
5819
5820         * config/iq2000/iq2000-protos.h: Fix comment formatting.
5821         * config/iq2000/iq2000.c: Likewise.
5822         * config/iq2000/iq2000.md: Likewise.
5823
5824 2004-01-14  J. Brobecker  <brobecker@gnat.com>
5825
5826         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
5827         (subrange_type_die): Add handle for nameless subrange types.
5828
5829 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
5830
5831         * config/h8300/h8300-protos.h: Replace do_movsi with
5832         h8300_expand_movsi.
5833         * config/h8300/h8300.c (do_movsi): Change to
5834         h8300_expand_movsi.
5835         * config/h8300/h8300.md (movsi): Replace do_movsi with
5836         h8300_expand_movsi.
5837         (movsf): Likewise.
5838
5839 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
5840
5841         * config/h8300/h8300.c (dosize): Change to
5842         h8300_emit_stack_adjustment.  Update callers.
5843
5844 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
5845
5846         * config/h8300/h8300.md (movstrictqi): Add an alternative with
5847         the source being post_inc.  Tighten the predicate for the
5848         destination to register_operand.
5849         (movstricthi): Likewise.
5850
5851 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
5852
5853         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
5854         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
5855         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
5856
5857 2004-01-14  Jan Hubicka  <jh@suse.cz>
5858
5859         Partial fix PR c++/12850
5860         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
5861         at zero nest level.
5862
5863 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
5864
5865         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
5866         pseudo-register.
5867
5868 2004-01-13  Devang Patel <dpatel@apple.com
5869
5870         PR debug/7078
5871         * dbxout.c (dbxout_symbol_name): Emit mangled names for
5872         NAMESPACE_DECL memebers.
5873
5874 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
5875
5876         PR c++/12709
5877         * c-common.c (finish_fname_decls): Use the chain only if the
5878         tree is an expr_stmt.
5879
5880 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
5881
5882         * rtl.def: Add comment about new option in automata_option.
5883
5884         * genautomata.c (PROGRESS_OPTION): New macro.
5885         (progress_flag): New global variable.
5886         (gen_automata_option): Process `progress'.
5887         (transform_insn_regexps, check_unit_distributions_to_automata,
5888         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
5889         expand_automata, write_automata): Print about the progress only if
5890         progress_flag.  Remove fflush.
5891         (initiate_automaton_gen): Process command line flag `-progress'.
5892
5893         * doc/md.texi: Describe the new option.
5894
5895 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5896
5897         * cfg.c (dump_bb): Dump entry edges.
5898
5899 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
5900
5901         * arm.c (thumb_legitimate_address_p): Only allow constant pool
5902         references from SImode.
5903         * arm.md (thumb_movhi_insn): Don't allow minipool references.
5904
5905 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
5906
5907         * system.h (TEXT_SECTION): Poison.
5908         * varasm.c (text_section): Don't use TEXT_SECTION.
5909         * config/sh/sh.c (sh_file_start): Fix a comment typo.
5910         * doc/tm.texi (TEXT_SECTION): Remove.
5911
5912 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
5913
5914         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
5915
5916 2004-01-12  James E Wilson  <wilson@specifixinc.com>
5917
5918         * unwind-libunwind.c: Delete.
5919
5920 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
5921
5922         PR 13656
5923         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
5924         oldtype is set, set *newtypep or *oldtypep too.  Do not set
5925         them at the very end.
5926         (validate_proto_after_old_defn): Restructure for comprehensibility;
5927         make error messages clearer.
5928
5929 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
5930
5931         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
5932         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
5933         * varray.c: No need to prototype error.
5934         (varray_check_failed): Wrap long string onto two lines.
5935         (varray_underflow): New function.
5936
5937 2004-01-13  Steven Bosscher  <stevenb@suse.de>
5938
5939         PR c++/13376
5940         * function.h (struct function): Kill `name' field.
5941         (current_function_name): Make it an extern function.
5942         * function.c (current_function_name): New function.
5943         * graph.c: Update all uses of current_function_name.
5944         * gcse.c: Likewise.
5945         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
5946         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
5947         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
5948         instead of a strcmp with "main".
5949
5950 2004-01-13  Jan Hubicka  <jh@suse.cz>
5951
5952         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
5953
5954         * cgraphunit.c (cgraph_optimize_function):  Always do
5955         optimize_inline_calls when there is always_inline callee.
5956         (cgraph_decide_inlining): Fix formating.
5957         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
5958         functions.
5959         (expand_call_inline): Likewise.
5960         * toplev.h (sorry): Fix prototype.
5961
5962 2004-01-12  Roger Sayle  <roger@eyesopen.com>
5963
5964         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
5965         conditional jumps that drop through to unconditional jumps or the
5966         end of the sequence.
5967
5968 2004-01-13  Jan Hubicka  <jh@suse.cz>
5969
5970         * alias.c (new_alias_set): Construct the alias_set varray.
5971         (init_alias_once): Don't do it here.
5972
5973 2004-01-12  Marc Espie <espie@openbsd.org>
5974
5975         * system.h: handle YYBYACC like YYBISON.
5976
5977 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
5978
5979         PR target/10847
5980         * config.gcc: No longer includes conflicting header sparc/sol2.h when
5981         building on sparc64-*-openbsd*.
5982
5983 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
5984
5985         PR debug/13539
5986         * dbxout.c (dbxout_type): Protected inheritance is not
5987         private but protected.
5988
5989 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
5990
5991         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
5992
5993 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
5994
5995         PR optimization/12508.
5996         * combine.c (try_combine): Remove a dead set in a parallel
5997         even if its destination is a subreg.
5998
5999         Revert:
6000         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
6001         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
6002         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
6003
6004 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
6005
6006         * real.c: Update copyright date.
6007         * emit-rtl.c: Likewise.
6008         * rtl.h: Likewise.
6009         * dwarf2out.c: Likewise.
6010         * config/rs6000/darwin-ldouble.c: Likewise.
6011         * config/rs6000/rs6000.md: Likewise.
6012
6013 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
6014
6015         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
6016         TFmode to SImode libfuncs.
6017
6018 2004-01-12  Roger Sayle  <roger@eyesopen.com>
6019
6020         PR middle-end/11397
6021         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
6022
6023 2004-01-12  Jan Hubicka  <jh@suse.cz>
6024
6025         PR opt/12826
6026         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
6027         stored.
6028
6029         PR opt/12863
6030         * cfgcleanup.c (label_is_jump_target_p): Move to...
6031         * rtlanal.c (label_is_jump_target_p): ... here.
6032         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
6033         edges unified with branch edges.
6034
6035 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
6036
6037         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
6038         high word of an integral CONST_DOUBLE.
6039
6040 2004-01-12  Paul Brook  <paul@codesourcery.com>
6041
6042         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
6043
6044 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
6045
6046         PR target/13585
6047         * sh-protos.h (check_use_sfunc_addr): Declare.
6048         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
6049         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
6050
6051 2004-01-12  Jan Hubicka  <jh@suse.cz>
6052
6053         * alias.c:  Invlude varray.h
6054         (alias_sets): Turn into varray.
6055         (get_alias_set_entry): Use VARRAY; mark inline.
6056         (mems_in_disjoint_alias_sets_p): Mark inline.
6057         (record_alias_subset): Use varray.
6058         (init_alias_once): Initialize varray.
6059         (new_alias_set): Grow array.
6060         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
6061
6062 2004-01-12  Jan Hubicka  <jh@suse.cz>
6063
6064         Partial fix for PR opt/10776 II
6065         * cselib.c: Include params.h
6066         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
6067         locations.
6068         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
6069         * Makefile.in (cselib.o): Depend on params.h
6070
6071 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
6072
6073         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
6074         simplify_unary_operation if the operand has a known mode.
6075
6076 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
6077
6078         PR target/13534
6079         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
6080         predicate to handle 'ld' conform addresses.
6081         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
6082         contraint.
6083         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
6084         are memory contraints.
6085         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
6086         New prototype.
6087         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
6088         Change 'o' to 'Y' constraint.
6089         (*movdf_softfloat64): Ditto.
6090
6091 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
6092
6093         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
6094         brace-enclosed syntax in all C output statements.
6095
6096 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
6097
6098         PR target/13401
6099         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
6100         Objective-C language type value is 14.
6101
6102 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
6103
6104         PR c/12148
6105         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
6106         `int' in a number of places to make sure we always have a SImode
6107         and not a HImode.  Add a 'L' suffix to a number of constants.
6108
6109 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6110
6111         * pa.c: Don't include obstack.h.
6112
6113         * pa.md: Correct constraint in pattern for loading PIC label address.
6114
6115 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
6116
6117         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
6118          before defining.
6119
6120 2004-01-11  Steven Bosscher  <stevenb@suse.de>
6121
6122         PR fortran/9972
6123         * toplev.c (rest_of_handle_inline): Also consider functions
6124         for deferral if the language is GNU F77.
6125
6126 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
6127
6128         * c-decl.c (diagnose_arglist_conflict): Add missing space to
6129         diagnostic messages.
6130
6131 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
6132
6133         PR middle-end/13392
6134         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
6135         to drop through label.  Don't fall back to SCC even when conditional
6136         jump has not been found.
6137
6138 2004-01-11  Jan Hubicka  <jh@suse.cz>
6139
6140         * invoke.texi: Fix syntax error in previous patch.
6141
6142         Partial fix for PR opt/10776
6143         * Makefile.in (reload.o): Include param.h
6144         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
6145         * reload.c: Include params.h.
6146         (find_equiv_reg): Work limiting check.
6147         * invoke.texi: Document.
6148
6149 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
6150
6151         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
6152         out-of-bounds accesses to string constants.  Simplify mips16
6153         case accordingly.
6154
6155 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
6156
6157         PR optimization/13469
6158         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
6159         reload_cse_regs (-fnon-call-exceptions only).
6160
6161 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
6162
6163         * config/mcore/lib1.asm: Fix comment formatting.
6164         * config/mcore/mcore-elf.h: Likewise.
6165         * config/mcore/mcore.c: Likewise.
6166         * config/mcore/mcore.h: Likewise.
6167         * config/mcore/mcore.md: Likewise.
6168
6169 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
6170
6171         * c-decl.c (duplicate_decls): Break apart into...
6172         (diagnose_arglist_conflict, validate_proto_after_old_defn)
6173         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
6174         ... these new functions.  Restructure for comprehensibility.
6175         Remove various archaic special cases.  Always report the
6176         location of the previous declaration when a diagnostic is issued.
6177         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
6178         (match_builtin_function_types): Delete unnecessary forward declaration.
6179
6180 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
6181
6182         * genautomata.c (make_automaton, NDFA_to_DFA):
6183         Print progress bars with '.' characters instead of '*'.
6184         (build_automaton): Change notes to match.
6185
6186 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
6187
6188         * config/m32r/m32r.md: Use define_constants for unspec and
6189         unspec_volatile.
6190
6191 2004-01-10  Jan Hubicka  <jh@suse.cz>
6192
6193         PR opt/11635
6194         * expr.c (expand_expr_real):  More curefully expand union casts.
6195
6196 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
6197
6198         * config/m32r/m32r.md (flush_icache): Use 1 for
6199         unspec_volatile.
6200
6201 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
6202             James E Wilson  <wilson@specifixinc.com>
6203
6204         PR debug/12860
6205         * dbxout.c (dbxout_symbol): Remove initialization of
6206         current_sym_code, current_sym_value, and current_sym_addr.
6207         (dbxout_symbol_location): Same.
6208         (dbxout_prepare_symbol): Zero current_sym_code,
6209         current_sym_value, and current_sym_addr.
6210
6211 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
6212
6213         * tree.c (get_unwidened): Reorder conditions so that the null pointer
6214         check is done first.
6215
6216 2004-01-09  Eric Christopher  <echristo@redhat.com>
6217
6218         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
6219         if we're running mark_constant_function.
6220
6221 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
6222
6223         PR target/12561
6224         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
6225
6226 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
6227
6228         PR debug/11231
6229         * dbxout.c (dbxout_type_fields): Return if any item is
6230         error_mark_node or the type is error_mark_node.
6231
6232 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
6233
6234         * config/rs6000/darwin-ldouble.c: Add big comment explaining
6235         exactly what is expected as a 'long double'.
6236         (_xlqadd): When a value to be returned is representable as a
6237         'double', just return it directly, do not construct it using a union.
6238         Also, correct final fixup.
6239         (_xlqmul): Likewise.
6240         (_xlqdiv): Likewise.
6241         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
6242
6243         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
6244
6245 2004-01-09  Richard Henderson  <rth@redhat.com>
6246
6247         * recog.c (constrain_operands): Validate mem operands.
6248
6249 2004-01-09   James E Wilson  <wilson@specifixinc.com>
6250
6251         * gcc.c (init_spec): Remove -lunwind from shared case.
6252         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
6253
6254 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
6255
6256         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
6257         * configure: Regenerate
6258
6259 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
6260
6261         PR c/11234
6262         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
6263         between function and object pointers.
6264         (digest_init): When comparing a pointer to function type to the
6265         target type, only apply TREE_TYPE once to the pointer to function
6266         type.
6267         * except.c (for_each_eh_label_1): Treat data as a pointer to a
6268         function pointer rather than casting it to a function pointer.
6269         (for_each_eh_label): Update caller.
6270         * recog.h (struct insn_data): Use a struct or union for output.
6271         * genoutput.c (output_insn_data): Update.
6272         * final.c (get_insn_template): Update.
6273
6274 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
6275
6276         * expr.h (expand_expr): Make it a macro, not a function.
6277         (expand_expr_real): New function.
6278         * expr.c (store_expr): Adjust logic for deciding whether or not to
6279         copy the value returned by expand_expr.
6280         (expand_expr): Rename to ...
6281         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
6282         calls to language hooks.
6283         * c-common.h (c_expand_expr): Adjust prototype.
6284         * c-common.c (c_expand_expr): Add alt_rtl parameter.
6285         * langhooks-def.h (lhd_expand_expr): Change prototype.
6286         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
6287         * langhooks.h (lang_hooks): Change type of expand_expr.
6288         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
6289         (last_expr_alt_rtl): Likewise.
6290         (expand_expr_stmt_value): Set last_expr_alt_rtl.
6291         (clear_last_expr): Clear it.
6292         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
6293         (expand_end_bindings): Save and restor last_expr_alt_rtl.
6294         * tree.def (RTL_EXPR): Give it an additional operand.
6295         * tree.h (RTL_EXPR_ALT_RTL): New macro.
6296
6297 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
6298
6299         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
6300         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
6301
6302 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
6303
6304         PR target/13380.
6305         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
6306         or (ne:SI (reg:CC 17) (const_int 0)).
6307         Be specific about modes wherever possible.
6308
6309 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
6310
6311         * config/m32r/m32r.c (m32r_expand_block_move): Call
6312         gen_movestrsi_internal with two more arguments.
6313         (m32r_output_block_move): Adjust operand numbers.
6314         Properly update the source and destination pointers.
6315         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
6316         'r+'.  Change the set detinations to match_operand.
6317
6318 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
6319
6320         * final.c (FIRST_INSN_ADDRESS): Remove.
6321         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
6322         * system.h (FIRST_INSN_ADDRESS): Poison.
6323         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
6324         * config/m32r/m32r-protos.h: Remove the prototype for
6325         m32r_first_insn_address.
6326         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
6327         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
6328         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
6329
6330 2004-01-09  J. Brobecker  <brobecker@gnat.com>
6331
6332         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
6333         we just created.
6334         (is_ada_subrange_type): DIEs for enumeration subtypes should be
6335         emitted as subrange types too.
6336         (subrange_type_die): Add handling of enumeration subtypes.
6337
6338 2004-01-08  Richard Henderson  <rth@redhat.com>
6339
6340         PR opt/12441
6341         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
6342         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
6343         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
6344         (ix86_address_cost): Be prepared for SUBREGed registers.
6345         (legitimate_address_p): Accept SUBREGed registers.
6346
6347 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
6348
6349         * Makefile.in: Rename configure.in to configure.ac
6350         * doc/sourcebuild.texi: Likewise.
6351         * configure: Regenerate.
6352         * config.in: Regenerate.
6353
6354 2004-01-08  Stuart Hastings  <stuart@apple.com>
6355
6356         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
6357
6358 2004-01-08  Jan Hubicka  <jh@suse.cz>
6359
6360         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
6361
6362 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
6363
6364         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
6365         (UNSPEC_FIX_TRUNC_TF): New constant.
6366         (movtf_internal): Make splitter active only when insn is active.
6367         (extenddftf2): Rewrite to properly load zero into low part.
6368         (extenddftf2_internal): New.
6369         (extendsftf2): Rewrite.
6370         (truncdftf2): Correct length.
6371         (floatditf2): Delete.
6372         (fix_trunc_helper): New.
6373         (fix_trunctfdi2): Use fix_trunc_helper.
6374         (fix_trunctfsi2): Likewise.fix_trunc
6375         (fix_trunctfsi2_internal): New.
6376
6377         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
6378         addresses are legitimate on Darwin even when flag_pic.
6379         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
6380         non-offsettable addresses for loads of TFmode constants.
6381
6382 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
6383
6384         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
6385         variables in the appropriate bss section.
6386
6387 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
6388
6389         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
6390         target_flags has MASK_POWERPC64 when -m64.
6391         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
6392         to 620, 630, power3, power4 and rs64a entries.
6393         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
6394
6395 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
6396
6397         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
6398         floating-point constants.
6399
6400 2004-01-08  J. Brobecker  <brobecker@gnat.com>
6401
6402         * dwarf2out.c (subrange_type_die): Add context_die parameter.
6403         Create the subrange_type DIE using the given context DIE.
6404         (modified_type_die): Update call to subrange_type_die.
6405
6406 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
6407
6408         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
6409         Add multiple-include guard.
6410
6411 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
6412
6413         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
6414         all vector constant loadable by vsplt*.
6415         (output_vec_const_move): Likewise.
6416
6417 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
6418
6419         PR c/6024
6420         * c-typeck.c (comptypes): Only treat enumerated types in the same
6421         translation unit as compatible with each other when they are the
6422         same type.
6423         * doc/extend.texi: Update.
6424
6425 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
6426
6427         PR c/12165
6428         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
6429         array type from the array element type.
6430
6431 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
6432
6433         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
6434         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
6435         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
6436         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
6437         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
6438
6439 2004-01-06  Eric Christopher  <echristo@redhat.com>
6440
6441         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
6442         (DWARF2_DEBUGGING_INFO): Define.
6443         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
6444         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
6445         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
6446         for irix as.
6447         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
6448         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
6449         * config/mips/iris5gas.h: Ditto.
6450         (DBX_DEBUGGING_INFO): Remove.
6451         (DWARF2_DEBUGGING_INFO): Ditto.
6452         (MIPS_DEBUGGING_INFO): Ditto.
6453         (PREFERRED_DEBUGGING_TYPE): Ditto.
6454         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
6455         (PREFERRED_DEBUGGING_TYPE): Ditto.
6456         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
6457         * config/mips/elf64.h: Ditto.
6458
6459 2004-01-06  Jan Hubicka  <jh@suse.cz>
6460
6461         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
6462         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
6463
6464 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
6465
6466         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
6467         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
6468         * config/rs6000/darwin-ldouble.c: New.
6469
6470         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
6471         for constants.
6472         (constant_subword): Delete.
6473         * rtl.h (constant_subword): Delete prototype.
6474         (immed_double_const): Is not in varasm.c.
6475         * simplify-rtx.c (simplify_immed_subreg): New.
6476         (simplify_subreg): Use simplify_immed_subreg.
6477
6478         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
6479         than trying to generate RTL directly.
6480         (fix_trunctfsi2): Use expand_fix rather than trying to generate
6481         RTL directly.
6482
6483         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
6484
6485 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
6486
6487         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
6488         function into a separate macro.
6489         (read_only_data_section): Add void argument.
6490         (private_data_section): Same.
6491         (read_only_private_data_section): Same.
6492         (toc_section): Same.
6493
6494 2004-01-06  Jan Hubicka  <jh@suse.cz>
6495
6496         * invoke.texi:  Remove typo in last change.
6497
6498         PR target/10301
6499         * config.gcc: Accept opteron and athlon-64 as variants
6500         of k8.
6501         * i386.c (override_options): Likewise.
6502         * invoke.texi (i386 -mtune): Expand documentation.
6503
6504 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
6505
6506         * alias.c: Fix comment typos.
6507         * builtins.c: Likewise.
6508         * cfg.c: Likewise.
6509         * df.c: Likewise.
6510         * dominance.c: Likewise.
6511         * dwarf2out.c: Likewise.
6512         * emit-rtl.c: Likewise.
6513         * expr.c: Likewise.
6514         * final.c: Likewise.
6515         * fold-const.c: Likewise.
6516         * gcse.c: Likewise.
6517         * genattrtab.c: Likewise.
6518         * genrecog.c: Likewise.
6519         * gensupport.c: Likewise.
6520         * ggc-zone.c: Likewise.
6521         * integrate.c: Likewise.
6522         * local-alloc.c: Likewise.
6523         * loop.c: Likewise.
6524         * recog.c: Likewise.
6525         * regmove.c: Likewise.
6526         * reg-stack.c: Likewise.
6527         * reorg.c: Likewise.
6528         * rtlanal.c: Likewise.
6529         * rtl.h: Likewise.
6530         * sched-ebb.c: Likewise.
6531         * simplify-rtx.c: Likewise.
6532         * toplev.c: Likewise.
6533         * varasm.c: Likewise.
6534
6535 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
6536
6537         * doc/install.texi: Fix typos.
6538         * doc/invoke.texi: Likewise.
6539         * doc/md.texi: Likewise.
6540
6541 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
6542
6543         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
6544
6545 2004-01-06  Jan Hubicka  <jh@suse.cz>
6546
6547         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
6548         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
6549         of MMX_REGPARM.
6550         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
6551         add MMX_REGPARM.
6552         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
6553         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
6554         (MMX_REGPARM_MAX): Similarly for -mmmx.
6555
6556 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
6557
6558         * config/sh/linux.h: Fix comment formatting.
6559         * config/sh/netbsd-elf.h: Likewise.
6560         * config/sh/sh.c: Likewise.
6561         * config/sh/sh.h: Likewise.
6562         * config/sh/vxworks.h: Likewise.
6563
6564 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
6565
6566         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
6567         * toplev.c (output_file_directive): Don't use
6568         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
6569
6570 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
6571
6572         * toplev.c: Fix broken checkin of 2003-12-30.
6573
6574 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
6575
6576         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
6577         (USING_MMAP): We don't support non-mmap.
6578         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
6579         large objects.
6580         (struct page_entry): Remove bytes_free.
6581         (struct page_table_chain): Remove.
6582         (struct globals): Remove page_table member.
6583         (loookup_page_table_entry): Function deleted.
6584         (set_page_table_entry): Ditto.
6585         (ggc_allocated_p): No longer need page table lookups.
6586         (ggc_marked_p): Ditto.
6587         (alloc_small_page): Don't care about bytes_free anymore.
6588         (alloc_large_page): Round up size.
6589         (ggc_alloc_zone_1): Mark large objects as such, and calculate
6590         their size the new way.
6591         Remove page table lookups and setting.
6592         (ggc_get_size): Calculate large object size the new way.
6593         (sweep_pages): Redo to account for fact that we no longer have
6594         bytes_free.
6595         (ggc_collect): No longer need to reincrement bytes_free.
6596         (ggc_pch_alloc_object): Handle new large objects properly.
6597         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
6598
6599 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
6600
6601         * doc/invoke.texi: Remove a page break.
6602
6603 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
6604
6605         * config/avr/avr.c (avr_output_function_prologue): Remove an
6606         extra pair of curly braces.
6607
6608 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
6609
6610         * config/mn10300/mn10300.c: Fix comment formatting.
6611         * config/mn10300/mn10300.h: Likewise.
6612
6613 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6614
6615         * tree.h: Update documentation on nothrow_flag.
6616         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
6617         types.
6618
6619 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
6620
6621         * doc/invoke.texi: Remove traces of dead ports.
6622
6623 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
6624
6625         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
6626         option.
6627
6628 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
6629
6630         PR target/12945
6631         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
6632         counter labels.
6633         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
6634         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
6635         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
6636         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
6637         (mips_symbol_insns): Don't trust the local/global classification.
6638         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
6639         (override_options): Make -mabicalls -fno-unit-at-a-time imply
6640         -mno-explicit-relocs.
6641         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
6642         between local and global symbols.
6643
6644 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
6645
6646         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
6647         (mips_preferred_reload_class): Declare.
6648         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
6649         (EXTRA_CONSTRAINT): Update accordingly.
6650         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
6651         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
6652         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
6653         mips_dangerous_for_la25_p.
6654         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
6655         if mips_dangerous_for_la25_p.
6656
6657 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
6658
6659         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
6660         warning.
6661
6662 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
6663
6664         * configure.ac: Use AC_PROG_CPP_WERROR.
6665         * configure: Regenerate.
6666
6667 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
6668
6669         * .cvsignore: Add autom4te.cache.
6670
6671 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
6672
6673         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
6674         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
6675         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
6676         then architecture options, then ABI options.  General rewording.
6677
6678 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
6679
6680         PR c/3414
6681         * doc/extend.texi: Clarify definition of malloc attribute.
6682
6683 2004-01-04  Jan Hubicka  <jh@suse.cz>
6684
6685         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
6686         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
6687         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
6688         (cgraph_inline_p): Add extra argument reason.
6689         * cgraphunit.c: Minor formating fixes.
6690         cgraph_first_inlined_callee): New functions.
6691         (record_call_1): Record builtins too.
6692         (cgraph_analyze_function): Update inline_failed messages.
6693         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
6694         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
6695         (cgraph_check_inline_limits): Likewise; Add argument reason.
6696         (cgraph_set_inline_failed): New static function.
6697         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
6698         reasons.
6699         (cgraph_inline_p): Add new argument reason.
6700         * tree-inline.c (expand_call_inline):  Update warning.
6701
6702 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
6703
6704         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
6705         with modern equivalents.
6706         * configure: Regenerate.
6707
6708         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
6709         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
6710         * configure: Regenerate.
6711
6712         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
6713
6714         * configure.in: Rename to configure.ac.
6715         * configure.ac: Renamed from configure.in; make minimum necessary
6716         changes for autoconf 2.5x.
6717         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
6718         * configure: Regenerate with autoconf 2.57.
6719
6720 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
6721
6722         * config/mips/linux.h: Fix comment formatting.
6723         * config/mips/mips.c: Likewise.
6724         * config/mips/mips.h: Likewise.
6725         * config/mips/mips.md: Likewise.
6726         * config/mips/netbsd.h: Likewise.
6727         * config/mips/windiss.h: Likewise.
6728
6729 2004-01-02  Richard Henderson  <rth@redhat.com>
6730
6731         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
6732         for sse and 387; add suppression for mmx.
6733
6734 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
6735
6736         * loop.c (loop_optimize): Free all loops_info's mems.
6737
6738         * c-typeck.c (finish_init): Free spelling_base before
6739         setting it again.
6740
6741         * cfgloop.c (flow_loops_find): Always free the sbitmap
6742         headers.
6743
6744         * predict.c (estimate_probability): Free bbs after being
6745         done with it.
6746
6747 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
6748
6749         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
6750         const_8bit_operand and call_address_operand.
6751
6752 2004-01-02  Jan Hubicka  <jh@suse.cz>
6753
6754         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
6755         when there is nothing to inline but warnings are requested.
6756         (cgraph_decide_inlining):  Fix memory leak.
6757
6758 2004-01-02  Jan Hubicka  <jh@suse.cz>
6759
6760         * expr.c (store_constructor):  Fix pasto in previous patch.
6761
6762 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
6763
6764         * config/i386/cygming.h: Fix comment formatting.
6765         * config/i386/djgpp.h: Likewise.
6766         * config/i386/gthr-win32.c: Likewise.
6767         * config/i386/i386-interix.h: Likewise.
6768         * config/i386/i386.c: Likewise.
6769         * config/i386/i386.h: Likewise.
6770         * config/i386/openbsd.h: Likewise.
6771         * config/i386/winnt.c: Likewise.
6772         * config/i386/xm-mingw32.h: Likewise.
6773
6774 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
6775
6776         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
6777         copyright and last modification dates.
6778
6779 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
6780
6781         * doc/install.texi (Specific): Mention x86_64.
6782
6783 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
6784
6785         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
6786         Call force_operand on plus_constant result.
6787
6788 2004-01-01  Jan Hubicka  <jh@suse.cz>
6789
6790         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
6791         * expr.c (store_constructor): Use vec_init pattern.
6792         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
6793         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
6794         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
6795         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
6796         New patterns.
6797         (sse2_unpc?pd): Fix pattern.
6798         (sse2_movlpd): Kill.
6799         (sse2_movsd): Deal with movlpd too.
6800         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
6801         (ix86_expand_vector_init): New.
6802         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
6803         * md.texi (vec_set, vec_extract): Document
6804
6805 2003-12-31  Jan Hubicka  <jh@suse.cz>
6806
6807         PR opt/13473
6808         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
6809         ASM input operands
6810
6811         PR opt/12617
6812         * toplev.c (dump_file_index): Reorder ce3 and bbro.
6813         (dump_file): Likewise.
6814         (rest_of_compilation): Likewise.
6815
6816         PR debug/13367
6817         * cgraph.c (cgraph_function_possibly_inlined):  Even with
6818         flag_really_no_inline we inline always_inline functions.
6819         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
6820         for non-always_inline functions when there is flag_really_no_inline.
6821         (cgraph_decide_inlining): Limit work done when not inlining.
6822         (cgraph_decide_inlining_incrementally): Likewise.
6823         (cgraph_optimize_function): Check whether something got inlined.
6824         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
6825         extern inline functions when not inlining.
6826
6827         * opts.c (decode_options):  Disable crossjumping at -O1
6828         * invoke.texi (-O1): Document change.
6829
6830 See ChangeLog.10 for earlier changes.