OSDN Git Service

PR c/6358
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
2
3         PR c/6358
4         * function.c: Reapply patch for c/6358.
5         (expand_function_end): Copy decl_rtl's mode, not
6         current_function_return_rtx mode.
7
8 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
9
10         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
11         targets.
12
13 2002-04-19  Tom Tromey  <tromey@redhat.com>
14
15         * doc/install.texi (Specific): Update status of Solaris 2.8.
16         For PR libgcj/6158.
17
18 2002-04-19  Andreas Schwab  <schwab@suse.de>
19
20         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
21         (PUT_REAL): Restore old definition.
22
23 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
24             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
25
26         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
27         binutils 2.11.2 and higher generate smaller binaries than Sun's
28         native tools.
29
30 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
31
32         PR c++/6352
33         * toplev.c (rest_of_compilation): Do not defer functions for which
34         TREE_SYMBOL_REFERENCED has already been set.
35
36 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
37
38         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
39         alternative.
40
41 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
42
43         * builtins.c: Include langhooks.h.
44         (lang_type_promotes_to): Remove.
45         (expand_builtin_va_arg): Use new hook.
46         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
47         (simple_type_promotes_to): Move to c-typeck.c.
48         * c-common.h (simple_type_promotes_to): Remove.
49         * c-decl.c (duplicate_decls, grokdeclarator): Update.
50         * c-format.c: Include langhooks.h.
51         (check_format_types): Update.
52         * c-tree.h (c_type_promotes_to): New.
53         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
54         (type_lists_compatible_p): Update.
55         * langhooks-def.h (lhd_type_promotes_to): New.
56         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
57         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
58         * langhooks.c (lhd_type_promotes_to): New.
59         * langhooks.h (struct lang_hooks_for_types): New hook.
60         * tree.h (lang_type_promotes_to): Remove.
61 objc:
62         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
63
64 2002-04-18  Richard Henderson  <rth@redhat.com>
65
66         * function.c: Revert patch for c/6358.
67
68 2002-04-18  Richard Henderson  <rth@redhat.com>
69
70         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
71         blocks.  Handle multiple references to the TRAP block.  Handle
72         non-adjacent THEN and OTHER blocks.
73
74 2002-04-18  Richard Henderson  <rth@redhat.com>
75
76         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
77         crash with no type for by-mode libcalls.
78
79         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
80
81 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
82
83         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
84         __xtensa_nonlocal_goto): Use a syscall instructions to flush
85         the register windows.
86
87 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
88
89         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
90         appropriate.  Document need for extended precision even when
91         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
92         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
93         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
94         instead of relying on later syntax error when REAL_WIDTH > 5.
95         * real.c: Define NE based only on whether or not we have a
96         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
97         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
98         define GET_REAL and PUT_REAL as simple memcpy operations; no
99         need to byteswap or round.
100         Use #error instead of #ifdef-ing out the entire file, for
101         prompt error detection.
102
103         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
104
105 2002-04-18  David S. Miller  <davem@redhat.com>
106
107         * config/sparc/sparc.h (BRANCH_COST): Define.
108
109         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
110         does it.
111
112 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
113
114         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
115         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
116         propagate_block calls after relaxation loop using new variable
117         stabilized_prop_flags.
118
119 2002-04-18  Richard Henderson  <rth@redhat.com>
120
121         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
122         (ia64_va_arg): Expect variable sized types by reference.
123         * config/ia64/ia64-protos.h: Update.
124         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
125         ia64_function_arg_pass_by_reference.
126
127 2002-04-18  Richard Henderson  <rth@redhat.com>
128
129         * ifcvt.c: Include except.h.
130         (block_has_only_trap): Break out from find_cond_trap.
131         (find_cond_trap): Use it.  Always delete the trap block.
132         (merge_if_block): Allow then block null.  Be less simplistic about
133         what insns can end a block.
134         * Makefile.in (ifcvt.o): Depend on except.h.
135
136         * config/ia64/ia64.md (trap, conditional_trap): New.
137
138 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
139
140         PR c/6358
141         * function.c (assign_parms): Assign hard current_function_return_rtx
142         register here...
143         (expand_function_end): ...not here.
144
145 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
146
147         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
148         * c-tree.h (c_incomplete_type_error): New.
149         * c-typeck.c (require_complete_type, build_component_ref): Update.
150         (incomplete_type_error): Rename.
151         * langhooks-def.h (lhd_incomplete_type_error): New.
152         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
153         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
154         * langhooks.c (lhd_incomplete_type_error): New.
155         * langhooks.h (struct lang_hooks_for_types): New hook.
156         * tree.c (size_in_bytes): Use new hook.
157         * tree.h (incomplete_type_error): Remove.
158 objc:
159         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
160
161 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
162
163         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
164         TARGET_FLOAT_FORMAT blocks.
165
166 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
167
168         * doc/install.texi (Downloading the source): Do not mention Chill
169         any longer, but mention Ada.
170         (Configuration): Do not mention Chill any longer.
171
172 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
173
174         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
175
176 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
177
178         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
179         in last patch.
180
181 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
182
183         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
184         instead of unsigned_type.
185
186 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
187
188         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
189         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
190         later.
191
192 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
193
194         * attribs.c (vector_type_node_list): New static variable.
195         (handle_vector_size_attribute): Use it to avoid generating a
196         new type node each time we are called.
197
198         * combine.c (subst): Avoid trying to make a vector mode subreg of
199         an integer constant.
200         (gen_lowpart_for_combine): Likewise.
201
202 2002-04-18  Roger Sayle  <roger@eyesopen.com>
203             Jakub Jelinek  <jakub@redhat.com>
204
205         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
206         for integer constant c (if x has unsigned type or sign bit is not
207         set in c).  This folds the zero/sign extension into the bit-wise and
208         operation.
209
210 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
211
212         PR middle-end/6205
213         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
214         otherwise xorps.
215
216 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
217
218         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
219
220 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
221
222         * gcc.c (read_specs): Detect and fail if an attempt is made to
223         rename a spec string to an already existing string.
224
225 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
226
227         * config/s390/s390.c (legitimize_pic_address): Do not generate
228         illegal address constant without CONST.
229
230 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
231
232         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
233         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
234
235 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
236
237         PR optimization/6305
238         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
239         to make sure previous reloads are taken into account.  Generate
240         better code if one operand is an in-range immediate constant.
241
242 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
243
244         * doc/install.texi (Building): libgcj requires GNU make.
245
246 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
247
248         PR bootstrap/6315
249         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
250         even if hard quad and register is not floating.
251         (movtf reg<-mem split): Disallow splitting if hard quad and
252         register is floating.
253         (movtf mem<-reg split): Likewise.
254         * config/sparc/sparc.c (fp_register_operand): New predicate.
255         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
256
257 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
258
259         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
260         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
261         (unprotoize.o): Ditto.  Build from protoize.c.  Define
262         UNPROTOIZE on command line.
263         * protoize.c: Include cppdefault.h.  Delete include_defaults.
264         (in_system_include_dir): Use cpp_include_defaults (defined in
265         cppdefault.o).
266         * unprotoize.c: Delete file.
267
268 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
269
270         * config/rs6000/altivec.h (vec_ld): Add array variants.
271         (vec_lde): Same.
272         (vec_ldl): Same.
273
274 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
275             Aldy Hernandez <aldyh@redhat.com>
276
277         * config/rs6000/altivec.h: Define __ALTIVEC__.
278         (bool): New.
279         (__pixel): New.
280         (pixel): New.
281         (vec_cfux): New.
282         (vec_vmaddfp): New.
283         (vec_vsldoi): New.
284         Add parentheses to all macro arguments.
285
286 2002-04-16  Richard Henderson  <rth@redhat.com>
287
288         PR c++/6320
289         * except.c (remove_eh_handler): Insert inner regions at beginning
290         of sibling chain.  Refactor expressions.
291
292 2002-04-16  Richard Henderson  <rth@redhat.com>
293
294         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
295         * config/sparc/sol2-gas-bi.h: New file.
296         * config.gcc (sparc*-solaris): Add it as needed.
297         * configure.in (AS_SPARC64_FLAG): Remove check.
298         * config.in, configure: Regenerate.
299
300         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
301
302 2002-04-16  Richard Henderson  <rth@redhat.com>
303
304         * config/mips/mips.c (override_options): Don't override N32 for
305         a 64-bit ISA.
306
307         PR 6202
308         * config/mips/mips.md (can_delay): Split out of existing define_delays.
309         (HILO_delay): Set can_delay false.
310
311 2002-04-16  Dale Johannesen <dalej@apple.com>
312
313         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
314         instruction addresses.
315         (rs6000_output_function_epilogue): Likewise.
316
317 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
318
319         * c-parse.in (poplevel, compstmt_start,
320         compstmt_primary_start): Add ending ';', in accordance
321         with POSIX.
322
323 2002-04-16  Richard Henderson  <rth@redhat.com>
324
325         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
326         Adjust tm_file order to get TARGET_DEFAULT set properly.
327         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
328         * doc/install.texi (sparc-solaris): Update.
329
330 2002-04-16  Dale Johannesen <dalej@apple.com>
331
332         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
333         comparison operands do not match each other or if modes of
334         conditions do not match result.
335
336 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
337
338         PR target/6305
339         * config/s390/s390.md (mulsidi3): Set both subregs of the
340         multiword register.
341
342 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
343
344         * config/rs6000/altivec.h (vec_addc): Type check.
345
346 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
347
348         PR middle-end/6279
349         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
350
351         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
352
353 2002-04-15  Richard Henderson  <rth@redhat.com>
354
355         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
356         call_really_used_regs too.
357
358 2002-04-15  Richard Henderson  <rth@redhat.com>
359
360         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
361
362 2002-04-15  David S. Miller  <davem@redhat.com>
363
364         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
365         as being CLOBBERed.
366
367 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
368
369         PR c/6290
370         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
371         CONST_VECTOR is { 0, ... 0 }.
372
373 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
374
375         * doc/install.texi (Installing GCC: Configuration): Clarify
376         the only supported ways to configure gcc.
377
378 2002-04-15  Roland McGrath  <roland@frob.com>
379
380         * config.gcc (alpha*-*-gnu*): New target configuration.
381         * config/alpha/gnu.h: New file for it.
382         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
383
384 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
385
386         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
387         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
388         * tree.h (expand_start_stmt_expr): Update prototype.
389         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
390         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
391         on the STMT_EXPR created for the inline function.
392
393 2002-04-15  Richard Henderson  <rth@redhat.com>
394
395         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
396         config/i386/linux-aout.h, config/i386/linux-oldld.h,
397         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
398         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
399         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
400         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
401         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
402         Define __gnu_linux__, not gnu_linux.
403         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
404
405 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
406
407         Remove Chill front end.
408         * gcc.c (default_compilers): Remove Chill entries.
409         * ch: Remove directory.
410         * doc/frontends.texi: Remove information about Chill.
411         * doc/sourcebuild.texi: Likewise.
412         * doc/standards.texi: Likewise.
413
414 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
415
416         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
417         (LONGLONG_STANDALONE): Define.
418
419 2002-04-15  David S. Miller  <davem@redhat.com>
420
421         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
422         Call emit_library_call with LCT_NORMAL.
423         (sparc_initialize_trampoline): Use LCT_foo instead of
424         magic constant in emit_library_call invocations.
425         (sparc64_initialize_trampoline): Likewise.
426         (sparc_profile_hook): Likewise.
427         * config/sparc/sparc.md: Likewise.
428
429         * config/sparc/sparc.c (sparc_extra_constraint_check):
430         Fix type of argument 'c'.
431         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
432         Likewise.
433
434 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
435
436         * diagnostic.h (output_buffer_state): Redefine.
437         (output_format_decoder): New macro.
438         (output_prefixing_rule): Likewise.
439         (output_line_cutoff): Likewise.
440         (diagnostic_format_decoder): Adjust.
441         (diagnostic_prefixing_rule): Likewise.
442         (diagnostic_line_cutoff): Likewise.
443         (diagnostic_state): Likewise.
444         (diagnostic_kind_count): Likewise.
445         (diagnostic_buffer): Now a macro.
446
447         * diagnostic.c (diagnostic_buffer): Remove definition.
448         (output_is_line_wrapping): Adjust.
449         (set_real_maximum_length): Likewise.
450         (output_set_maximum_length): Likewise.
451         (init_output_buffer): Likewise.
452         (lhd_print_error_function): Likewise.
453         (output_do_verbatim): Likewise.
454
455 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
456
457         * cpperror.c (print_location): Don't print include chain
458         if line == 0.
459         (cpp_begin_message): Update to use DL_ macros.
460         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
461         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
462         cpp_notice, cpp_notice_from_errno): Remove.
463         (cpp_error, cpp_error_with_line): Update to take a diagnostic
464         level.
465         (cpp_errno): New.
466         * cppexp.c (CPP_ICE): Remove.
467         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
468         lex, integer_overflow, _cpp_parse_expr): Update.
469         * cppfiles.c (read_include_file, find_include_file,
470         handle_missing_header, _cpp_read_file, remap_filename): Update.
471         * cpphash.h (enum error_type): Remove.
472         (_cpp_begin_message): Update.
473         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
474         cpp_handle_option, cpp_post_options): Update.
475         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
476         skip_whitespace, parse_identifier, parse_slow, parse_string,
477         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
478         cpp_interpret_charconst): Update.
479         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
480         lex_macro_node, do_undef, glue_header_name, parse_include,
481         do_include_common, read_flag, do_line, do_linemarker, do_ident,
482         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
483         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
484         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
485         _cpp_pop_buffer, do_diagnostic): Update.
486         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
487         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
488         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
489         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
490         cpp_notice, cpp_notice_from_errno): Remove.
491         (cpp_error, cpp_error_with_line): Update to take a diagnostic
492         level.
493         (cpp_errno): New.
494         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
495         collect_args, enter_macro_context, save_parameter, parse_params,
496         _cpp_create_definition, check_trad_stringification,
497         cpp_macro_definition): Update.
498         * cppmain.c (cpp_preprocess_file): Update.
499         * fix-header.c (read_scan_file): Update.
500
501 2002-04-14  Andreas Schwab  <schwab@suse.de>
502
503         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
504
505 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
506
507         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
508
509 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
510
511         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
512         not gnu_hurd.
513
514 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
515
516         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
517
518 2002-04-13      Joel Sherrill <joel@OARcorp.com>
519
520         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
521         sparc-elf and sparc-rtems targets.
522
523 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
524
525         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
526         defined, and __gnu_hurd__ wherever __GNU__ is defined.
527         * arm/linux-elf.h: Likewise.
528         * cris/aout.h: Likewise.
529         * cris/linux.h: Likewise.
530         * i370/linux.h: Likewise.
531         * i386/gnu.h: Likewise.
532         * i386/linux-aout.h: Likewise.
533         * i386/linux-oldld.h: Likewise.
534         * i386/linux.h: Likewise.
535         * i386/linux64.h: Likewise.
536         * ia64/linux.h: Likewise.
537         * m68k/linux-aout.h: Likewise.
538         * m68k/linux.h: Likewise.
539         * mips/linux.h: Likewise.
540         * pa/pa-linux.h: Likewise.
541         * pj/linux.h: Likewise.
542         * rs6000/sysv4.h: Likewise.
543         * s390/linux.h: Likewise.
544         * sh/linux.h: Likewise.
545         * sparc/linux-aout.h: Likewise.
546         * sparc/linux.h: Likewise.
547         * sparc/linux64.h: Likewise.
548         * xtensa/linux.h: Likewise.
549
550 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
551
552         * stmt.c (check_unique_operand_names): Expect operand names to
553         be strings rather than identifiers.  Use simple_cst_equal to
554         compare them.
555         (resolve_operand_name_1): Make same identifier to string change here.
556         * c-parse.in (asm_operand): Convert a named operand into a string.
557         * cp/parse.y (asm_operand): Likewise.
558
559 2002-04-13  Andreas Schwab  <schwab@suse.de>
560
561         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
562
563 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
564
565         Revert these changes:
566
567         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
568
569         PR c++/5571
570         * stor-layout.c (layout_decl): Reset the RTL for the decl.
571
572 2002-04-12  Richard Henderson  <rth@redhat.com>
573
574         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
575         (sparc*-*-solaris): Clean up header files.
576         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
577         and plan on generating 64-bit code.
578         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
579         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
580         * config/sparc/sol2-sld-64.h: Rename ...
581         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
582         for AS_SPARC64_FLAG not defined.
583         * config/sparc/sol2-gld-bi.h: New.
584         * config/sparc/sol2-sld.h: Remove.
585         * config/sparc/sol26-sld.h: New.
586         * config/sparc/sol2.h: Tidy comments.
587         * doc/install.texi: Document sparc-solaris configury changes.
588
589 2002-04-12  Richard Henderson  <rth@redhat.com>
590
591         * recog.c (offsettable_address_p): Match the logic in adjust_address.
592
593         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
594         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
595
596 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
597
598         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
599
600 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
601
602         * pa.c (pa_can_combine_p): Call extract_insn before calling
603         constrain_operands.
604
605 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
606
607         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
608         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
609         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
610         (CPP_PREDEFINES): Handle __declspec.
611         * config/i386/t-interix (USER_H): Remove.
612
613 2002-04-12  DJ Delorie  <dj@redhat.com>
614
615         * integrate.c (compare_blocks): Make comparisons safe for when
616         sizeof(int) < sizeof(char *).
617         (find_block): Likewise.
618
619 2002-04-12  Jan Hubicka  <jh@suse.cz>
620             David Edelsohn  <edelsohn@gnu.org>
621
622         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
623         registers.
624         (symbol_ref_operand): New.
625         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
626         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
627
628 2002-04-12  Andreas Schwab  <schwab@suse.de>
629
630         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
631         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
632         overrides the definition in config/svr4.h.
633
634 2002-04-12      Eric Norum <eric.norum@usask.ca>
635
636         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
637         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
638         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
639         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
640         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
641         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
642         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
643         definitions to config/rtems.h and make the targets more similar.
644
645 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
646
647         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
648         POINTERS_EXTEND_UNSIGNED.
649         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
650         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
651
652         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
653         not specified.
654
655 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
656
657         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
658         depends on TARGET_SHMEDIA, not TARGET_SH5.
659
660 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
661
662         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
663         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
664
665 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
666
667         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
668         no r0 clobber.
669
670 2002-04-12  Andreas Schwab  <schwab@suse.de>
671
672         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
673
674 2002-04-12  Richard Henderson  <rth@redhat.com>
675
676         PR bootstrap/4191
677         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
678
679         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
680         modes spanning multiple hard regs.
681
682         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
683
684 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
685
686         * pa.c (pa_output_function_prologue): Don't accumulate the total
687         number of code bytes when using TARGET_64BIT, or gas, SOM and not
688         the portable runtime.
689         (output_deferred_plabels): Handle 64bit plabels.
690         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
691         generating pic code using the GAS assembler for object formats that
692         are not SOM (ie., ELF32 and ELF64).
693         (output_millicode_call): Check attribute type if attribute length is 28.
694         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
695         dbr_sequence_length once.
696         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
697         dbr_sequence_length once.
698         * pa.h (TARGET_SOM): Define if not defined.
699         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
700         with GAS and not SOM.
701         (jump, call_internal_reg, call_value_internal_reg): Likewise.
702         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
703
704 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
705
706         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
707         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
708         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
709         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
710         elfos.h and dbxelf.h values are fine now.
711         * config/i386/freebsd.h, config/alpha/freebsd.h
712         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
713
714 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
715
716         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
717         or set Acpu or Amachine.  Reformat.
718         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
719         define.
720         (LINK_SPEC): Do not need to undef.
721         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
722         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
723         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
724         define.
725         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
726         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
727         (LINK_SPEC): Do not need to undef.
728         (DONT_USE_BUILTIN_SETJMP): Do not define.
729         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
730         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
731         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
732         Remove trailing spaces.
733         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
734         __ELF__, or set Acpu or Amachine.  Reformat.
735         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
736         define.
737
738 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
739
740         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
741         all other *-*-freebsd* targets.
742
743 2002-04-11  Richard Henderson  <rth@redhat.com>
744
745         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
746
747 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
748
749         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
750         Include {cpu}/{cpu}.h thru tm_file.
751         (alpha*-*-linux*ecoff): Remove target.
752         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
753         (LINK_SPEC): Remove, is not OS independent.
754         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
755         (LINK_SPEC): Do not need to #undef any longer.
756         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
757         any longer.
758         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
759         __ELF__.
760         (LINK_SPEC): Moved here from alpha/elf.h.
761         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
762         SUB_CPP_PREDEFINES.
763         * config/alpha/linux-ecoff.h: Remove.
764         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
765         (CPP_SPEC): Define _POSIX_SOURCE as needed.
766         (CPP_SUBTARGET_SPEC): Do not define.
767         (LINK_SPEC): Do not need to #undef any longer.
768         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
769         * config/alpha/vms.h: Likewise.
770
771 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
772
773         * doc/extend.texi: Remove old claim that typedefs cannot have
774         an alignment attribute.
775
776 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
777
778         PR optimization/6177
779         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
780         bitpos is 0 and bitsize CONCAT size.
781
782 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
783
784         PR c/6223
785         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
786
787 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
788
789         * config/alpha/freebsd.h: Minor reformatting.
790         (CPP_SPEC): Define ELF and add cpp_subtarget.
791         (ASM_SPEC): No longer needed.
792
793 2002-04-11  Richard Henderson  <rth@redhat.com>
794
795         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
796         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
797         (dimode mem/zero splitter): New.
798
799 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
800
801         * config/cris/cris.c (cris_override_options): Tweak error message
802         for PIC not implemented.
803
804         * config/cris/cris.h: Tweak comments related to parameter-passing.
805
806         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
807
808 2002-04-10  Richard Henderson  <rth@redhat.com>
809
810         * except.c (add_ehl_entry): Allow duplicates after landing pad
811         creation.
812
813 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
814
815         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
816
817 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
818
819         * c-decl.c (c_init_decl_processing): Move generation of
820         decls for g77_integer_type_node and friends from here ...
821         * c-common.c (c_common_nodes_and_builtins): ... to here.
822
823 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
824
825         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
826         is only used as frame pointer when frame_pointer_needed is true.
827
828 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
829
830         PR target/817
831         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
832         for the fact that the pool entry uses two words.
833         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
834         1k bytes.
835         (movdf_soft_insn): Similarly.
836         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
837         for the fact that the pool entry uses three words.
838
839 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
840
841         * config/mips/mips.c (mips_va_arg): When using the struct version
842         of the EABI va_list, allow arguments in the register save area to
843         take up less room than a stack argument.
844
845 2002-04-10  Richard Henderson  <rth@redhat.com>
846
847         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
848         if EXPAND_INITIALIZER.
849
850 2002-04-09  Richard Henderson  <rth@redhat.com>
851
852         * config/alpha/alpha.md (movdi_er_maybe_g): New.
853         * config/alpha/alpha.c (alpha_expand_mov): Use it.
854
855 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
856
857         PR optimization/6233
858         * rtlanal.c (pure_call_p): New function.
859         * rtl.h (pure_call_p): Declare.
860         * loop.c (prescan_loop): Use it to set has_nonconst_call.
861         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
862
863 2002-04-09  Eric Christopher  <echristo@redhat.com>
864
865         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
866         information to .comm directive.
867
868 2002-04-09  Richard Henderson  <rth@redhat.com>
869
870         PR c/5078
871         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
872
873 2002-04-09  Richard Henderson  <rth@redhat.com>
874
875         * basic-block.h (flow_delete_block_noexpunge): Declare.
876         (expunge_block_nocompact): Declare.
877         * cfg.c (expunge_block_nocompact): Split out from ...
878         (expunge_block): ... here.
879         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
880         (flow_delete_block_noexpunge): Split out from ...
881         (flow_delete_block): ... here.
882         * cfgcleanup.c (delete_unreachable_blocks): Compact while
883         removing dead blocks.
884         * except.c (exception_handler_labels): Remove.
885         (exception_handler_label_map): New.
886         (struct eh_region): Add aka member.
887         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
888         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
889         (for_each_eh_label, for_each_eh_label_1): New.
890         (init_eh): Register exception_handler_label_map.
891         (free_eh_status): Use free_region.
892         (find_exception_handler_labels): Use the map, not the list.
893         (remove_exception_handler_label): Likewise.
894         (maybe_remove_eh_handler): Likewise.
895         (remove_eh_handler): Use the region aka bitmap.
896         * except.h (exception_handler_labels): Remove.
897         (for_each_eh_label): Declare.
898         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
899         * loop.c (invalidate_loops_containing_label): New.
900         (find_and_verify_loops): Use it.  Use for_each_eh_label.
901         * sched-rgn.c (is_cfg_nonregular): Use
902         current_function_has_exception_handlers.
903
904 2002-04-09  Richard Henderson  <rth@redhat.com>
905
906         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
907         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
908         Do not return changed status.
909         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
910         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
911         New functions that do return changed status.
912         * sbitmap.h: Update decls.
913         * gcse.c, lcm.c: Use _cg functions as needed.
914
915 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
916
917         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
918         (sh64-*-elf*, sh-*-rtemself*): Likewise.
919         * config/sh/embed_bb.c: New file.
920         * config/sh/embed-elf.h: New file.
921         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
922         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
923         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
924         __PTRDIFF_TYPE__ .
925         (SUBTARGET_CPP_PTR_SPEC): Don't define.
926         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
927         Add subtarget_asm_endian_spec.
928         (ASM_SPEC): Use subtarget_asm_endian_spec.
929         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
930         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
931         (WCHAR_UNSIGNED): Define.
932         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
933         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
934         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
935         Fix value.
936         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
937         (sh_adjust_cost): Likewise.
938         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
939         __PTRDIFF_TYPE__ .
940         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
941         (WCHAR_TYPE_SIZE): Likewise.
942         (ASM_SPEC): Use subtarget_asm_endian_spec.
943         (SH_ELF_WCHAR_TYPE): #undef/ #define.
944         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
945         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
946         (MAX_WCHAR_TYPE_SIZE): Don't #define .
947         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
948         (USER_LABEL_PREFIX): Don't #undef /#define .
949         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
950         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
951         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
952         (ASM_SPEC): Likewise.
953         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
954         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
955         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
956         (LIB2FUNCS_EXTRA): Define.
957         * t-sh64 (LIB2FUNCS_EXTRA): Define.
958         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
959         (LIB1ASMFUNCS_CACHE): Define.
960         (LIB2FUNCS_EXTRA): Redefine empty.
961
962 2002-04-08  Richard Henderson  <rth@redhat.com>
963
964         * reorg.c (get_branch_condition): Use reversed_comparison_code.
965
966 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
967
968         * config/m68hc11/larith.asm (__map_data_section): Fix condition
969         and optimize for size.
970         (__do_global_ctors): Fix pointer comparison.
971         (__do_global_dtors): Likewise.
972
973 2002-04-09  David S. Miller  <davem@redhat.com>
974
975         * config/sparc/sparc.c (sparc_extra_constraint_check): New
976         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
977         allow reloading pseudos.
978         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
979         * config/sparc/sparc-protos.h: Declare it.
980
981         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
982         unsigned comparison warning.
983         (output_restore_regs): Mark leaf_function as unused.
984
985 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
986
987         * expr.c (is_aligning_offset): New function.
988         (expand_expr, case COMPONENT_EXPR): Call it.
989
990 2002-04-08  David S. Miller  <davem@redhat.com>
991
992         PR target/6082
993         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
994
995         Make init_priority work on Sparc when using GNU ld.
996         * config/sparc/linux.h, config/sparc/linux64.h,
997         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
998         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
999         * config/sparc/sol2-gld.h: New file to do the same.
1000         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1001         sparc/sol2-gld.h to tm_file.
1002
1003         PR optimization/4328
1004         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1005         * doc/md.texi: Document it.
1006         * config/sparc/sparc.md (movdi_insn_sp64_novis,
1007         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1008         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1009         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1010         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1011
1012 2002-04-08  Andreas Jaeger  <aj@suse.de>
1013
1014         * stmt.c (expand_asm_operands): Revert last patch from Richard
1015         Henderson.
1016
1017 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1018
1019         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1020         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
1021
1022 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1023
1024         * doc/contrib.texi (Contributors): Add David O'Brien.
1025
1026 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1027
1028         * configure.in (auto-build.h): Use target_alias and build_alias
1029         when running configure.
1030         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1031         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1032         * configure: Regenerate.
1033
1034 2002-04-07  David S. Miller  <davem@redhat.com>
1035
1036         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1037
1038 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1039
1040         PR 5933
1041         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1042         generating 32-bit pic code.
1043
1044 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1045
1046         * cppinit.c (cpp_create_reader): Initialize
1047         discard_comments_in_macro_exp.
1048         (COMMAND_LINE_OPTIONS): Add "-CC" option.
1049         (cpp_handle_option): Handle "-CC" option.
1050         * cpplex.c (save_comment): If saving a C++ comment in
1051         a directive, convert it to a C comment.
1052         (_cpp_lex_direct): Pass second comment start character to
1053         save_comment to indicate comment type.
1054         * cpplib.c (_cpp_handle_directive): If processing
1055         a "#define" directive and discard_comments_in_macro_exp
1056         is false,  re-enable saving of comments.
1057         (lex_macro_node): If discard_comments_in_macro_exp is false,
1058         discard any comments before the macro identifier.
1059         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1060         member.
1061         * cppmacro.c (cpp_get_token): If expanding a macro while
1062         processing a directive, discard any comments we might encounter.
1063         (parse_params): If discard_comments_in_macro_exp is false,
1064         ignore comments in the macro parameter list.
1065         * gcc.c (cpp_unique_options): Add "-CC" option.
1066         (option_map): Map "--comments-in-macros" to "-CC".
1067         * doc/cppopts.texi: Document "-CC" option.
1068         * f/lang-specs.h: Add "-CC" option.
1069         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1070         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1071         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1072         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1073         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1074         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1075
1076 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1077
1078         PR middle-end/6180
1079         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1080
1081 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1082
1083         PR c++/5571
1084         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1085
1086         PR opt/5120
1087         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1088         RTX_UNCHANGING_P for the functions arguments when a tail call
1089         is made.
1090
1091 2002-04-06  Jason Merrill  <jason@redhat.com>
1092
1093         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1094         (parse_options_and_default_flags): Set them appropriately.
1095         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1096
1097 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1098
1099         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1100         here.
1101
1102         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1103         semicolon.
1104
1105         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1106         types come in by-reference.  Fix typo in comment.
1107
1108 2002-04-05  David S. Miller  <davem@redhat.com>
1109
1110         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1111         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1112         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1113         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1114
1115 2002-04-05  David S. Miller  <davem@redhat.com>
1116
1117         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1118         are not going to emit return instructions, emit at least a nop
1119         for the sake of sane backtraces.
1120
1121 2002-04-05  Richard Henderson  <rth@redhat.com>
1122
1123         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1124
1125 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1126
1127         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1128
1129 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1130
1131         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1132         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1133         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1134
1135 2002-04-05  Andreas Schwab  <schwab@suse.de>
1136
1137         * c-convert.c: Include c-common.h.
1138         * Makefile.in (c-convert.o): Updated.
1139
1140 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1141
1142         * mklibgcc.in: Use separate libgcc.map for each multilib.
1143         * Makefile.in (distclean): Don't remove libgcc.map here.
1144
1145 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1146
1147         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1148         genmultilib invocation.
1149
1150 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1151
1152         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1153         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1154         to num_gprs for symmetry.
1155         * config/mips/mips.c: Adjust accordingly.
1156
1157 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1158
1159         * c-common.c (truthvalue_conversion): Rename, update.
1160         * c-common.h (c_common_truthvalue_conversion): New.
1161         * c-convert.c (convert): Update.
1162         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1163         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1164         * c-typeck.c (build_binary_op, build_unary_op,
1165         build_conditional_expr): Update.
1166         * fold-const.c (constant_boolean_node, fold): Use langhook.
1167         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1168         * langhooks.h (struct lang_hooks): New hook.
1169         * stmt.c (expand_decl_cleanup): Use langhook.
1170         * tree.h (truthvalue_conversion): Remove.
1171 objc:
1172         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1173
1174 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1175
1176         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1177         Add rules to make null object file.
1178
1179 2002-04-04  Jim Blandy  <jimb@redhat.com>
1180
1181         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1182         macro formal parameter names.
1183
1184 2002-04-04  David S. Miller  <davem@redhat.com>
1185
1186         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1187
1188 2002-04-04  Richard Henderson  <rth@redhat.com>
1189
1190         PR middle-end/5099
1191         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1192         Support copies into and out of memory.  Don't accept allows_reg
1193         and allows_mem as gospel.
1194
1195 2002-04-04  Richard Henderson  <rth@redhat.com>
1196
1197         PR opt/6165
1198         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1199         (write_dependence_p): Likewise.
1200
1201 2002-04-04  Richard Henderson  <rth@redhat.com>
1202
1203         * predict.c (estimate_bb_frequencies): Do frequency calculation
1204         with a volatile temporary.
1205
1206 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1207
1208         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1209
1210 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1211
1212         PR c++/6119
1213         * final.c (final_start_function): Don't bump profile_label_no here...
1214         (final_end_function): ...but here.
1215
1216 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1217
1218         * config/sparc/sparc.md (pic): New attribute.
1219         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1220         into stack slots.
1221         (split after do_builtin_setjmp_setup): New.
1222
1223 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1224
1225         PR fortran/6106
1226         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1227         change.
1228
1229 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1230
1231         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1232         UNITS_PER_WORD for zero sized aggregates.
1233
1234 2002-04-03  David S. Miller  <davem@redhat.com>
1235
1236         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1237         one-character spec for this, just use %(link_gcc_c_sequence).
1238
1239 2002-04-03  David S. Miller  <davem@redhat.com>
1240
1241         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1242         handling.
1243
1244 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1245
1246         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1247         (DWARF_FRAME_RETURN_COLUMN): Move.
1248         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1249         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1250         * pa.c (except.h, predict.h): Include.
1251         (FRP): Delete.
1252         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1253         (output_ascii): Add cast.
1254         (store_reg_modify): Revise to add frame notes.
1255         (set_reg_plus_d): Likewise.
1256         (compute_frame_size): Include space for eh data registers in frame if
1257         the current function calls eh_return.
1258         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1259         function calls eh_return.  Save eh data registers if the current
1260         function calls eh_return.  Fix code to add frame notes.  Emit
1261         blockage to prevent insns with frame notes being scheduled in the
1262         delay slot of calls.
1263         (hppa_expand_epilogue): Restore eh data registers and do final stack
1264         adjustment if the current function calls eh_return.  Don't add frame
1265         notes.
1266         (output_call): Revise for change in length of call insn.  Don't do
1267         return pointer adjustment for an unconditional jump in the delay slot
1268         of a call when using frame notes.
1269         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1270         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1271         (ARG_POINTER_CFA_OFFSET): Define.
1272         * pa.md (return_external_pic): New pattern.
1273         (prologue): Correct formatting.  Use return_external_pic if current
1274         function calls eh_return.
1275         (call_internal_symref, call_value_internal_symref,
1276         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1277         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1278         respectively.
1279         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1280
1281         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1282         list of targets to check using "nop" insn.
1283         * configure: Rebuilt.
1284
1285 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1286
1287         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1288
1289 2002-04-03  David S. Miller  <davem@redhat.com>
1290
1291         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1292         library sequence passed to the linker.
1293         (LINK_COMMAND_SPEC): Use it.
1294         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1295         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1296         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1297
1298 2002-04-03  Jason Merrill  <jason@redhat.com>
1299
1300         * except.c (struct eh_status): Remove protect_list.
1301         (begin_protect_partials, end_protect_partials): Remove.
1302         (add_partial_entry): Remove.
1303         * except.h: Remove prototypes.
1304
1305         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1306         expand_decl_cleanup_eh.
1307
1308         PR c++/5636
1309         * tree.h (CLEANUP_EH_ONLY): New macro.
1310         * stmt.c (expand_decl_cleanup_eh): New fn.
1311         (expand_cleanups): Check CLEANUP_EH_ONLY.
1312         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1313         Use expand_decl_cleanup_eh.
1314         (expand_stmt): Adjust.
1315         * c-common.h: Adjust prototype.
1316
1317 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1318
1319         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1320         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1321         (cris_target_asm_function_epilogue): Ditto.
1322         (cris_initial_frame_pointer_offset): Ditto.
1323         (cris_simple_epilogue): Ditto.
1324         (cris_expand_builtin_va_arg): Variable-size types come in
1325         by-reference.
1326
1327 2002-04-03  David S. Miller  <davem@redhat.com>
1328
1329         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1330         little-endian.
1331         (set_fast_math): Correct 'fsr' type.
1332
1333 2002-04-03  Richard Henderson  <rth@redhat.com>
1334
1335         PR opt/3569
1336         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1337         * toplev.c (check_global_declarations): Use it.
1338         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1339         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1340         (LANG_HOOKS_DECLS): Add it.
1341         * langhooks.c (lhd_warn_unused_global_decl): New.
1342         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1343         * c-objc-common.c (c_warn_unused_global_decl): New.
1344         * c-tree.h (c_warn_unused_global_decl): Declare.
1345         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1346
1347 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1348
1349         * langhooks-def.h (lhd_set_decl_assembler_name,
1350         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1351         (LANG_HOOKS_INITIALIZER): Update.
1352         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1353         * langhooks.h (struct lang_hooks): New hook.
1354         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1355         (lang_set_decl_assembler_name): Remove.
1356         (init_obstacks): Don't set hook.
1357         (decl_assembler_name): New function.
1358         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1359         (decl_assembler_name): New.
1360         (lang_set_decl_assembler_name): Remove.
1361
1362 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1363
1364         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1365         works properly with .hidden symbols.
1366         * configure: Rebuilt.
1367         * config.in: Rebuilt.
1368         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1369         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1370         properly with .hidden symbols.
1371
1372 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1373
1374         PR middle-end/6102
1375         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1376         USE argument.
1377
1378 2002-04-03  Richard Henderson  <rth@redhat.com>
1379
1380         PR opt/4120
1381         * sched-rgn.c (sets_likely_spilled): New.
1382         (sets_likely_spilled_1): New.
1383         (add_branch_dependences): Use it.
1384
1385 2002-04-02  Richard Henderson  <rth@redhat.com>
1386
1387         PR opt/4311
1388         * loop.h (LOOP_FIRST_PASS): New.
1389         * loop.c (strength_reduce): Mind it when deciding to unroll.
1390         * toplev.c (rest_of_compilation): Set it.
1391
1392 2002-04-02  David S. Miller  <davem@redhat.com>
1393
1394         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1395         mems_ok_for_ldd_peep when the order of the loads being examined
1396         is reversed.
1397         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1398         existing comment to increase comprehension of this situation.
1399
1400 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1401
1402         * config/sh/sh.md: Don't use union real_extract.
1403
1404 2002-04-02  Richard Henderson  <rth@redhat.com>
1405
1406         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1407
1408 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1409
1410         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1411         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1412         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1413         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1414         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1415         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1416         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1417         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1418         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1419         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1420         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1421         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1422         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1423         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1424         Include as many configury headers via tm_file as possible.  This
1425         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1426         * config/openbsd-oldgas.h: New file.
1427         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1428         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1429         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1430         config/i386/i386-coff.h, config/i386/i386-interix.h,
1431         config/i386/iscdbx.h, config/i386/linux-aout.h,
1432         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1433         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1434         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1435         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1436         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1437         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1438         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1439         config/i386/vxi386.h: Do not directly include configury headers.
1440         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1441         Directly include configury headers that are no longer automatically
1442         included by the above headers.
1443         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1444         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1445         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1446         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1447         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1448         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1449         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1450         (TARGET_VERSION): Define.
1451         * config/i386/beos-elf.h, config/i386/freebsd.h,
1452         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1453         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1454         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1455         config/i386/sco5.h, config/i386/sysv4.h
1456         (TARGET_VERSION): Do not need to protect.
1457         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1458         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1459         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1460         config/i386/i386-interix.h, config/i386/linux-aout.h,
1461         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1462         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1463         (YES_UNDERSCORES): Do not define - not needed.
1464         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1465         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1466         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1467         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1468         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1469         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1470         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1471         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1472
1473 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1474             Richard Henderson  <rth@redhat.com>
1475
1476         PR c/5484
1477         * function.c (assign_temp): Accept either type or decl argument.
1478         Detect variables whose size is too large to fit into an integer.
1479         * stmt.c (expand_decl): Pass the decl, not the type.
1480
1481 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1482
1483         * protoize.c: Match include directory usage with cppdefault.c.
1484
1485 2002-04-03  Jeffrey A Law  (law@redhat.com)
1486             Hans-Peter Nilsson  <hp@bitrange.com>
1487
1488         * combine.c (simplify_comparison): Avoid narrowing a comparison
1489         with a paradoxical subreg when doing so would drop signficant bits.
1490
1491 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1492
1493         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1494         if POINTERS_EXTEND_UNSIGNED is defined.
1495
1496 2002-04-02  Richard Henderson  <rth@redhat.com>
1497
1498         PR opt/3967
1499         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1500         replace regs.
1501
1502 2002-04-02  Richard Henderson  <rth@redhat.com>
1503
1504         * doc/standards.texi: Document required freestanding libc entry points.
1505
1506 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1507
1508         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1509         associated splitter.  Remove MQ constraint.
1510         (ctrdi_internal4): Correct CCmode clobber.
1511
1512 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1513
1514         * milli64.S ($$dyncall): New function.
1515         * t-linux (LIB1ASMFUNCS): Revise module list.
1516         (LIB1ASMSRC): Use pa/milli64.S.
1517
1518 2002-04-02  Richard Henderson  <rth@redhat.com>
1519
1520         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1521         rename solaris_sys_varargs_h.
1522
1523 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1524
1525         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1526         the same mode as its component.
1527
1528 2002-04-02  Richard Henderson  <rth@redhat.com>
1529
1530         PR opt/190
1531         * final.c (this_is_asm_operands): Export.
1532         * output.h (this_is_asm_operands): Declare.
1533         * config/i386/i386.c (print_operand): Error odd asm operands.
1534
1535 2002-04-02  Richard Henderson  <rth@redhat.com>
1536
1537         PR opt/420
1538         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1539
1540 2002-04-01  Richard Henderson  <rth@redhat.com>
1541
1542         PR target/1538
1543         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1544         * fixinc/fixincl.x: Rebuild.
1545
1546 2002-04-01  Richard Henderson  <rth@redhat.com>
1547
1548         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1549         (atomic_alloc, atomic_free): New.
1550         (SIZE, MASK_FOR, PTR_IN): New.
1551         (emergency_reg_state, emergency_reg_state_free): New.
1552         (emergency_labeled_state, emergency_labeled_state_free): New.
1553         (reg_state_alloced, labeled_state_alloced): New.
1554         (alloc_reg_state, free_reg_state): New.
1555         (alloc_label_state, free_label_state, free_label_states): New.
1556         (push, pop, dup_state_stack, free_state_stack): Use them.
1557         (desc_label_state): Likewise.
1558         (uw_frame_state_for): Free label states and state stack.
1559         (uw_update_reg_address): Eliminate warnings.
1560
1561 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1562
1563         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1564         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1565
1566 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1567
1568         * c-decl.c (grokdeclarator): Update.
1569         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1570         * c-tree.h (c_mark_addressable): New.
1571         * c-typeck.c (default_function_array_conversion, build_unary_op,
1572         build_array_ref, convert_for_assignment): Update.
1573         (mark_addressable): Rename.
1574         * calls.c (try_to_integrate, expand_call): Use langhook.
1575         * expr.c (expand_expr): Use langhook.
1576         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1577         * langhooks.h (struct lang_hooks): New hook.
1578         * stmt.c (expand_asm_operands): Use langhook.
1579         * tree.h (mark_addressable): Remove.
1580 objc:
1581         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1582
1583 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1584
1585         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1586         in previous change.
1587
1588 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1589
1590         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1591         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1592
1593 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1594
1595         * c-common.c (unsigned_conversion_warning, convert_and_check,
1596         unsigned_type, signed_type, shorten_compare,
1597         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1598         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1599         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1600         New.
1601         * c-decl.c (grokdeclarator): Update.
1602         * c-format.c (check_format_types): Update.
1603         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1604         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1605         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1606         * convert.c (convert_to_integer): Use new hooks.
1607         * expmed.c (make_tree): Use new hooks.
1608         * expr.c (store_expr): Use new hooks.
1609         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1610         all_ones_mask_p, unextend, fold): Use new hooks.
1611         * langhooks.h (struct lang_hooks_for_types): New hooks.
1612         * tree.h (signed_or_unsigned_type, signed_type,
1613         unsigned_type): Remove.
1614 objc:
1615         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1616         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1617
1618 2002-03-31  Richard Henderson  <rth@redhat.com>
1619
1620         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1621         (desc_frgr_mem): Fix reference to f16-f31.
1622
1623 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1624
1625         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1626         RTVEC_ELT): Const-ify.
1627         * varray.h (VARRAY_CHECK): Const-ify.
1628         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1629         ggc_mark_rtvec, ggc_mark): Const-ify.
1630
1631 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1632
1633         * diagnostic.c: Include langhooks-def.h.
1634         * Makefile.in (diagnostic.o): Update.
1635
1636 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1637
1638         * c-common.c (c_unsafe_for_reeval): Rename.
1639         * c-common.h (c_unsafe_for_reeval): Rename.
1640         * c-decl.c (finish_incomplete_decl): Rename.
1641         (c_init_decl_processing): Don't set langhook.
1642         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1643         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1644         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1645         * c-tree.h (finish_incomplete_decl): Rename.
1646         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1647         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1648         (LANG_HOOKS_INITIALIZER): Update.
1649         * langhooks.c (lhd_unsafe_For_reeval): New.
1650         * langhooks.h (struct langhooks): New hooks.
1651         * toplev.c (incomplete_decl_finalize_hook): Remove.
1652         (wrapup_global_declarations): Update.
1653         * tree.c (lang_unsafe_for_reeval): Remove.
1654         (unsafe_for_reeval): Update.
1655         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1656         Remove.
1657 objc:
1658         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1659         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1660
1661 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1662
1663         * diagnostic.c (print_error_function): Remove.
1664         (default_print_error_function): Rename.
1665         (report_error_function): Update.
1666         * diagnostic.h (print_error_function): Remove.
1667         (default_print_error_function): Remove.
1668         * langhooks-def.h (struct diagnostic_context): Predeclare.
1669         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1670         (LANG_HOOKS_INITIALIZER): Update.
1671         * langhooks.h (struct diagnostic context): Predeclare.
1672         (struct lang_hooks): New hook.
1673
1674 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1675
1676         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1677         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1678         !flag_pic.
1679         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1680         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1681         of PIC_OFFSET_TABLE_REGNUM thruout.
1682         * config/rs6000/rs6000.md: Likewise.
1683         * config/rs6000/darwin.h: Likewise.
1684
1685 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1686
1687         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1688         unsigned HOST_WIDE_INT, not unsigned int.
1689
1690 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1691
1692         PR middle-end/6096, middle-end/6098, middle-end/6099
1693         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1694         CODE_LABELs.
1695         (fill_slots_from_thread): Likewise.
1696
1697 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1698
1699         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1700         floating fields in float regs.
1701         (function_arg_record_value_2): Likewise.
1702
1703 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1704
1705         * config/mmix/mmix.md (define_constants): Remove misleading
1706         FIXME.  Add MMIX_fp_rO_OFFSET.
1707         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1708         saved rO as part of the pattern.  Remove FIXME.
1709         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1710         here, at output-time.
1711
1712 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1713
1714         PR middle-end/6100
1715         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1716         REG_BR_PRED.
1717         (output_v9branch): Likewise.
1718
1719 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1720
1721         * gcc.c: Revert previous patch for now.
1722         * config/i386/djgpp.h: Likewise.
1723
1724 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1725
1726         * config/mmix/crti.asm (_init): Register _fini with atexit.
1727         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1728
1729 2002-03-31  Richard Henderson  <rth@redhat.com>
1730
1731         PR target/3997
1732         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1733         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1734
1735 2002-03-31  Richard Henderson  <rth@redhat.com>
1736
1737         * libgcc2.c (__bb_exit_func): Make static.
1738
1739         * config/alpha/alpha.md (trap): New.
1740
1741 2002-03-31  Richard Henderson  <rth@redhat.com>
1742
1743         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1744         promoted argument types; build trap.
1745         (expand_builtin_trap): New.
1746         (expand_builtin): Use it.
1747         * stmt.c (expand_nl_goto_receivers): Likewise.
1748         * expr.h (expand_builtin_trap): Declare.
1749         * libfuncs.h (LTI_abort, abort_libfunc): New.
1750         * optabs.c (init_optabs): Init abort_libfunc.
1751
1752 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1753
1754         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1755         (LINK_COMMAND_SPEC): ... from here.
1756         (init_gcc_specs): Duplicate it here too, omitting
1757         shared_name in the second copy.
1758         (init_spec): Test for duplicate
1759         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1760
1761 2002-03-30  David S. Miller  <davem@redhat.com>
1762
1763         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1764         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1765
1766 2002-03-30  Roger Sayle <roger@eyesopen.com>
1767             Richard Henderson  <rth@redhat.com>
1768
1769         * regmove.c (combine_stack_adjustments_for_block): Avoid
1770         emitting a stack adjustment of zero bytes.  Let delete_insn
1771         update bb->head.
1772
1773 2002-03-30  Richard Henderson  <rth@redhat.com>
1774
1775         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1776         (sparc_emitting_epilogue): New.
1777         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1778         * config/sparc/sparc-protos.h: Update.
1779         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1780         (TARGET_SWITCHES): Update.
1781         * config/sparc/sparc.md (return): Remove.
1782         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1783         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1784         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1785         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1786         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1787         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1788         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1789         Remove MASK_EPILOGUE.
1790         * doc/invoke.texi: Update.
1791
1792 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1793
1794         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1795         CPP will start the file for us.
1796
1797 2002-03-30  Richard Henderson  <rth@redhat.com>
1798
1799         PR target/5446
1800         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1801         prologue_allocate_stack.
1802         (ia64_single_set): Use insn codes for recognition of special
1803         cases, not rtl matching.
1804         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1805
1806 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1807
1808         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1809
1810 2002-03-30  Richard Henderson  <rth@redhat.com>
1811
1812         PR target/6032
1813         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1814         or -fomit-frame-pointer with profiling.
1815         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1816         (FUNCTION_PROFILER): Do nothing.
1817         (PROFILE_HOOK): New.
1818         * config/sparc/sparc.c (sparc_override_options): Don't check
1819         code models for profiling.
1820         (sparc_function_profiler): Remove.
1821         (sparc_profile_hook): New.
1822         * config/sparc/sparc-protos.h: Update.
1823
1824 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1825
1826         PR optimization/6086
1827         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1828         of SUBREG of volatile MEM or because the MEM was mode dependent,
1829         return CLOBBER instead of unmodified SUBREG.
1830
1831 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1832
1833         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1834         when not optimizing.
1835
1836         * toplev.c (rest_of_compilation): Cann mark_constant_function
1837         only when optimizing.
1838
1839         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1840         are NULL.
1841
1842         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1843         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1844         (try_optimize_cfg): clear all AUX fields.
1845
1846         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1847         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1848         (ix86_address_cost): Be prepared for SUBREGed registers.
1849         (legitimate_address_p): Accept SUBREGed registers.
1850
1851 2002-03-29  Richard Henderson  <rth@redhat.com>
1852
1853         PR target/5672
1854         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1855
1856 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1857
1858         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1859         for aggregate and TFmode types.
1860
1861 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1862
1863         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1864
1865 2002-03-29  Richard Henderson  <rth@redhat.com>
1866
1867         PR target/5886
1868         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1869         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1870
1871 2002-03-29  Richard Henderson  <rth@redhat.com>
1872
1873         PR target/6041
1874         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1875         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1876         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1877         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1878         conditional.
1879         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1880
1881 2002-03-29  Dale Johannesen <dalej@apple.com>
1882
1883         * loop.c (combine_movables): Do allow combination of pseudos.
1884
1885 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
1886
1887         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1888         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1889         No functional change except ...
1890         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
1891         * doc/install.texi (*-*-freebsd*): Document port configuration.
1892
1893 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1894
1895         * Makefile.in (convert.o, calls.o, expmed.o): Update.
1896         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1897         Use new hooks.
1898         * builtin-types.def (BT_PTRMODE): Update.
1899         * c-common.c (type_for_size): Rename c_common_type_for_size.
1900         (type_for_mode): Similarly.
1901         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1902         Use new hook.
1903         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1904         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1905         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1906         Redefine.
1907         * c-typeck.c (common_type, comptypes, default_conversion):
1908         Use new hooks.
1909         * calls.c: Include langhooks.h.
1910         (emit_library_call_value_1): Use new hooks.  Avoid redundant
1911         calls.
1912         * convert.c: Include langhooks.h
1913         (convert_to_pointer, convert_to_integer): Use new hooks.
1914         * except.c (init_eh): Similarly.
1915         * expmed.c: Include langhooks.h.
1916         (expand_mult_add): Use new hooks.
1917         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1918         try_casesi): Similarly.
1919         * fold-const.c (optimize_bit_field_compare, make_range,
1920         decode_field_reference, fold_truthop, fold): Similarly.
1921         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1922         put_var_into_stack): Similarly.
1923         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1924         LANG_HOOKS_TYPE_FOR_SIZE): New.
1925         (LANG_HOOKS_TYPES_INITIALIZER): Update.
1926         * langhooks.h (lang_hooks_for_types): New hooks.
1927         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1928         * tree.c (get_unwidened, get_narrower): Similarly.
1929         * tree.h (type_for_mode, type_for_size): Remove.
1930         * varasm.c (force_const_mem): Use new hooks.
1931         * utils2.c (nonbinary_modular_operation): Update.
1932 objc:
1933         * objc-act.c (handle_impent): Update.
1934         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1935         Redefine.
1936
1937 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
1938
1939         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1940         * config/ia64/ia64.c (basereg_operand): New.
1941         * config/ia64/ia64-protos.h (basereg_operand): Declare.
1942         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1943
1944 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1945
1946         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1947         unwind information when frame_pointer_needed.
1948         (mmix_assemble_integer): Tweak wording in comment.
1949
1950 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1951
1952         * Makefile.in (except.o): Update.
1953         * except.c: Include langhooks.h.
1954         (init_eh): Use langhook.
1955         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1956         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1957         (LANG_HOOKS_INITIALIZER): Update.
1958         * langhooks.h (lang_hooks_for_types): New.
1959         (struct lang_hooks): Add it.
1960         * tree.c (make_lang_type_fn, make_lang_type): Remove.
1961         * tree.h (make_lang_type_fn, make_lang_type): Remove.
1962 config:
1963         * alpha/alpha.c: Include langhooks.h.
1964         (alpha_build_va_list): Use langhook.
1965         * d30v/d30v.c: Include langhooks.h.
1966         (d30v_build_va_list): Use langhook.
1967         * i386/i386.c: Include langhooks.h.
1968         (ix86_build_va_list): Use langhook.
1969         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1970         * s390/s390.c: Include langhooks.h.
1971         (s390_build_va_list): Use langhook.
1972         * stormy16/stormy16.c: Include langhooks.h.
1973         (stormy16_build_va_list): Use langhook.
1974
1975 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1976
1977         PR c++/5964
1978         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1979         attributes.
1980         (length): Compute variable length for branches/calls/jumps here.
1981         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1982         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1983         define branch_type attribute.
1984         (divsi3_sp32): Maximum length is 6 not 7.
1985         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1986         call_address_untyped_struct_value_sp32,
1987         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1988         * config/sparc/sparc.c (empty_delay_slot): New function.
1989         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1990         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1991
1992 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1993
1994         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1995         nonzero_bits if not needed.
1996         (nonzero_bits) [XOR]: Likewise.
1997         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1998         reg_last_set_mode and mode are both MODE_INT, but not equal.
1999         (record_value_for_reg): Compute reg_last_set_nonzero_bits
2000         in nonzero_bits_mode for MODE_INT modes.
2001
2002 2002-03-28  Richard Henderson  <rth@redhat.com>
2003
2004         PR target/5715
2005         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2006         to GAS.  Correct drift between alternatives.
2007
2008 2002-03-28  Richard Henderson  <rth@redhat.com>
2009
2010         PR target/6087
2011         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2012
2013 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
2014
2015         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2016         emulation to the linker.
2017
2018 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
2019
2020         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2021         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2022
2023 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
2024
2025         * combine.c (simplify_and_const_int): Make sure to apply mask
2026         when force_to_mode returns a constant integer.  PR3311.
2027
2028 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2029
2030         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2031
2032 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2033
2034         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2035         and Objective-C Dialect Options.
2036
2037 2002-03-28  Richard Henderson  <rth@redhat.com>
2038
2039         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2040         comparison should be done vs !=0 not >0 return code.  Tidy cases.
2041
2042 2002-03-28  Richard Henderson  <rth@redhat.com>
2043
2044         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
2045         on to c_expand_body.
2046         * c-tree.h (finish_function): Update decl.
2047         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2048
2049 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2050
2051         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2052
2053 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
2054
2055         * rtlanal.c: Include flags.h
2056         (may_trap_p): Do not mark FP operations if trapping
2057         if !flag_trapping_math
2058         * Makefile.in (rtlanal.o): Add dependency on flag.h
2059         * ifcvt.c (noce_operand_ok): Avoid the lameness.
2060
2061 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
2062
2063         * mips.md: Use dconst1, not 1.0, as first argument of
2064         REAL_VALUE_LDEXP.  Don't use union real_extract.
2065
2066 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2067
2068         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2069         rather than $target.  Heed program_prefix and
2070         program_transform_name.  Search for gas in cross-compiler case too.
2071         "test -x" rather than "test -f".
2072         (gcc_cv_ld): Likewise.
2073         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2074         (gcc_cv_objdump): Likewise.
2075         * configure: Regenerate.
2076
2077 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2078
2079         * Makefile.in (attribs.o): Update.
2080         * attribs.c: Include langhooks.h.
2081         (decl_attributes): Use langhook.
2082         * c-decl.c (insert_default_attributes): Rename.
2083         * c-tree.h (c_insert_default_attributes): New.
2084         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2085         (LANG_HOOKS_INITIALIZER): Update.
2086         * langhooks.h (struct lang_hooks): New hook.
2087         * tree.h (insert_default_attributes): Remove.
2088 objc:
2089         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2090
2091 2002-03-27  Andreas Schwab  <schwab@suse.de>
2092
2093         * config/i386/i386.c (classify_argument): Also check for
2094         QUAL_UNION_TYPE.
2095
2096 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2097
2098         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2099         any more.
2100
2101 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2102
2103         * i960.md (ret): Set PC.
2104         (nonlocal_goto): Fix expander.
2105         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2106         some jump or call.
2107
2108 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2109
2110         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2111         of libcall regions.
2112
2113 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2114
2115         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2116         assigning to BLOCK_FOR_INSN directly.
2117
2118 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2119
2120         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2121
2122 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2123
2124         * c-common.c (c_expand_expr): Fix prototype.
2125         * c-common.h (c_expand_expr): Always declare, update.
2126         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2127         * c-objc-common.c (c_objc_common_init): No global hook.
2128         * expr.c (expand_expr): Use langhook.
2129         * expr.h (enum expand_modifier): Conditionally declare.
2130         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2131         (LANG_HOOKS_INITIALIZER): Update.
2132         * langhooks.c (lhd_expand_expr): New.
2133         * langhooks.h (struct lang_hooks): New hook.
2134         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2135         (lang_independent_init): Don't default hook.
2136 objc:
2137         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2138
2139 2002-03-27  Richard Henderson  <rth@redhat.com>
2140
2141         PR target/6054
2142         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2143         TARGET_CONST_GP.  Simplify conditions.
2144
2145 2002-03-27  Richard Henderson  <rth@redhat.com>
2146
2147         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2148         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2149         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2150
2151 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2152
2153         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2154         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2155         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2156         Remove unnecessary masks.
2157         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2158         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2159         -mwindows, -mdll switches and their negations.
2160
2161 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2162
2163         * gcc-common.c (lang_mark_false_label_stack): Remove.
2164         * ggc.h (lang_mark_false_label_stack): Similarly.
2165
2166 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2167
2168         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2169
2170         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2171         or __rtems_ is defined.
2172
2173 2002-03-26  Richard Henderson  <rth@redhat.com>
2174
2175         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2176         if a non-trivial load was emitted.
2177         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2178         in high+extra+low case.
2179
2180 2002-03-26  Richard Henderson  <rth@redhat.com>
2181
2182         * config.gcc (sparc*-solaris): Use float_format=sparc.
2183
2184 2002-03-26  Richard Henderson  <rth@redhat.com>
2185
2186         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2187         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2188         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2189         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2190         (WINT_TYPE_SIZE): Fix at 32.
2191
2192 2002-03-26  Richard Henderson  <rth@redhat.com>
2193
2194         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2195         until after eh landing pad generation.
2196         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2197         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2198
2199 2002-03-26  Richard Henderson  <rth@redhat.com>
2200
2201         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2202
2203 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2204
2205         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2206         and warning switches.
2207         (cc1_options):  Likewise.
2208
2209 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2210
2211         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2212         Restore more of the signal context.  Set no_reg_stack_frame.
2213         * config/ia64/unwind-ia64.c (unw_state_record):
2214         Add no_reg_stack_frame, comments.
2215         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2216         (uw_update_context): Adjust bsp when unwinding from leaf,
2217         but not signal frame.
2218
2219 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2220
2221         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2222
2223 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2224
2225         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2226
2227 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2228
2229         PR target/5621
2230         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2231         "Add a pool_range attribute", which was lost during the ARM/Thumb
2232         merge.
2233
2234 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2235
2236         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2237         a register into the MAC16 accumulator.
2238
2239 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2240
2241         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2242         (Warning Options): Document -Wswitch-enum.
2243         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2244         -Wswitch.
2245         (warn_switch_enum): Define variables.
2246         * flags.h (warn_switch_enum): Declare variables.
2247         * stmt.c (expand_end_case_type): When warn_switch_enum /
2248         -Wswitch-enum, perform switch checks.
2249         Fix PR c/5044.
2250
2251 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2252
2253         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2254         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2255         (reload_muladdsi_compare0_scratch): Delete.
2256
2257 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2258
2259         * doc/install.texi (*-*-freebsd*): Update.
2260
2261 2002-03-26  Richard Henderson  <rth@redhat.com>
2262
2263         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2264         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2265
2266         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2267         types from the normal argument frame.
2268
2269         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2270         variable sized objects by reference.
2271         (sparc_va_arg): Receive them by reference too.
2272
2273 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2274
2275         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2276         code to not restoring global registers.
2277
2278 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2279
2280         * Makefile.in (ggc-common.o): Update.
2281         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2282         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2283         * c-tree.h (c_mark_tree): New.
2284         * ggc-common.c: Include langhooks.h.
2285         (gcc_mark_trees): Use new langhook.
2286         * ggc-callbacks.c: Delete file.
2287         * ggc.h (lang_mark_tree): Remove.
2288         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2289         (LANG_HOOKS_INITIALIZER): Update.
2290         * langhooks.h (struct lang_hooks): New hook.
2291 objc:
2292         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2293
2294 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2295
2296         * doc/cpp.texi: Exclude entire Top node from printed manual.
2297         Move option index after directive index.  Insert page breaks
2298         before GFDL and concept index.  Index environment variables
2299         with command line options.
2300         * doc/cppenv.texi: Use @vtable for environment variable list.
2301         Add paragraph explaining semantics of empty elements in path
2302         variables.  Exclude a cross-reference to Fishkill from the
2303         manpage.  Remove an unnecessary cross-reference of the entry
2304         right above the referer.  Don't use @anchor in text that goes
2305         into manpage.
2306         * doc/cppopts.texi: Cross-reference the environment variables
2307         section, not the specific environment variable, for consistency.
2308
2309 2002-03-25  Richard Henderson  <rth@redhat.com>
2310
2311         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2312         anywhere in the block.  Don't refer to insns that have been
2313         removed from the chain.  Iterate backward through the new insns.
2314         Don't refer to edges that have been removed.
2315
2316 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2317
2318         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2319         test for overflow of constant.
2320
2321 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2322
2323         PR target/2623
2324         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2325         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2326         these patterns on arm_archv4.
2327
2328 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2329
2330         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2331         int".
2332
2333 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2334
2335         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2336         float_handled, float_handler, float_signal, set_float_handler,
2337         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2338         * toplev.h: Don't prototype do_float_handler.
2339
2340         * c-lex.c: Fold parse_float into lex_number.  Make warning
2341         about portability of hex float constants more informative, and
2342         don't issue it on top of a syntax error.
2343         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2344         their callers.
2345         * real.h: Define REAL_VALUE_ABS here...
2346         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2347         simplify_unary_real, simplify_binary_real, and
2348         simplify_binary_is2orm1 into their callers.
2349         * tree.c: Fold build_real_from_int_cst_1 into caller.
2350
2351         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2352
2353         * tsystem.h: Include float.h here...
2354         * libgcc2.c: ... not here.
2355
2356 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2357
2358         Fixes for: PR bootstrap/3591, target/5676
2359         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2360         defined.  Do not disable exceptions or rtti.
2361         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2362         mcore.h.  Disable exceptions and rtti, since they are not
2363         supported by EPOC.
2364
2365 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2366
2367         * c-decl.c (maybe_build_cleanup): Remove.
2368         * expr.c (expand_expr): Use langhook.
2369         * langhooks-def.h (lhd_return_null_tree,
2370         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2371         (LANGHOOKS_INITIALIZER): Update.
2372         * langhooks.c (lhd_return_null_tree): New.
2373         * langhooks.h (struct lang_hooks): New hook.
2374         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2375         * tree.h (maybe_build_cleanup): Remove.
2376
2377 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2378
2379         * regrename.c (build_def_use): Move recog_memoized
2380         before extract_insn.
2381
2382 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2383
2384         PR target/6043
2385         * expr.c (emit_group_store): Handle storing into CONCAT.
2386
2387 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2388
2389         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2390         corresponding MATCH_DUP.
2391
2392 2002-03-24  Richard Henderson  <rth@redhat.com>
2393
2394         * unroll.c (unroll_loop): Zero label_map.
2395
2396         * gcse.c: Include except.h.
2397         * Makefile.in (gcse.o): Update.
2398
2399 2002-03-24  Richard Henderson  <rth@redhat.com>
2400
2401         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2402         Do resolve_unique_section before shared data clause.
2403
2404 2002-03-24  Richard Henderson  <rth@redhat.com>
2405
2406         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2407
2408 2002-03-24  Richard Henderson  <rth@redhat.com>
2409
2410         * recog.c (peephole2_optimize): Split blocks when EH insns are
2411         generated in the middle of a block.  Do global life update if
2412         zapped EH edges.
2413
2414 2002-03-24  Richard Henderson  <rth@redhat.com>
2415
2416         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2417
2418 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2419
2420         preprocessor/3951
2421         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2422         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2423         (init_dependency_output): Don't make no_output decision here.
2424
2425 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2426
2427         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2428         warn_switch.  Update description.
2429         (expand_end_case_type): Call check_for_full_enumeration_handling
2430         when warn_switch.
2431
2432 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2433
2434         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2435         (m68hc11_split_move): Call it to see if the source and destination
2436         operands use the same direction auto inc/dec mode, otherwise make the
2437         source an offsetable memory operand and generate an add.
2438
2439 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2440
2441         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2442         register for operand 2.
2443         ("*subsi3_zero_extendqi"): Likewise.
2444         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2445         bits so that it is compatible with a pop.
2446         ("*andhi3_gen"): Likewise.
2447         ("xorhi3"): Likewise.
2448
2449 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2450
2451         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2452         -pedantic here...
2453         (cpp_post_options): ... not here.
2454
2455 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2456             Aldy Hernandez  <aldyh@redhat.com>
2457
2458         Removal of separate preprocessor cpp0.
2459
2460         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2461         cpp0, install-common): Update.
2462         * c-common.c (flag_preprocess_only): New.
2463         (c_common_init): Preprocess for -E.
2464         * c-common.h (flag_preprocess_only): New.
2465         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2466         * c-objc-common.c (c_init_decl_processing): Exit quickly
2467         for NULL return from c_common_init.
2468         * cpplib.h (cpp_preprocess_file): New.
2469         * cppmain.c (main, general_init, pfile, progname): Remove.
2470         (do_preprocessing): Rename cpp_preprocess_file, don't call
2471         cpp_finish.  Don't close stdout here.
2472         (setup_callbacks): Update prototype.
2473         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2474         Update.
2475         * tradcpp.c (main): Ignore -quiet.
2476 objc:
2477         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2478
2479 2002-03-24  Richard Henderson  <rth@redhat.com>
2480
2481         PR optimization/5742
2482         * machmode.def: Add inner mode field to complex modes.
2483         * config/mips/mips.c (mips_function_value): Always define.  Add
2484         new argument to handle libcalls.
2485         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2486         (FUNCTION_VALUE): Likewise.
2487         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2488         * config/mips/mips-protos.h: Update.
2489
2490 2002-03-23  Richard Henderson  <rth@redhat.com>
2491
2492         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2493         * config/sparc/sparc-protos.h: Update.
2494         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2495
2496 2002-03-23  Richard Henderson  <rth@redhat.com>
2497
2498         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2499         _start or _init begins the text segment.
2500
2501 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2502
2503         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2504         not HOST_WIDEST_INT.
2505         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2506
2507 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2508
2509         PR java/5489
2510         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2511         operand argument to output_return_instruction.
2512         * arm.c (arm_print_operand, case 'd'): If the operand is
2513         const_true_rtx then just return.
2514         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2515         then abort.
2516
2517 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2518
2519         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2520         (Warning Options): Document -Wswitch-default.
2521         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2522         -Wswitch.
2523         (warn_switch_default): Define variable.
2524         (warn_switch): Update comment.
2525         * flags.h (warn_switch_default): Declare variable.
2526         (warn_switch): Update comment.
2527         * stmt.c (expand_end_case): Check for and, when
2528         warn_switch_no_default, warn of a missing default case.
2529
2530 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2531
2532         * real.h (N): Special case 128 bit doubles.
2533
2534         * combine.c (simplify_comparison): When widening modes, ignore
2535         sign extension on CONST_INTs.
2536
2537 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2538
2539         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2540         passed to adjust_address.  Fix comment formatting.
2541
2542
2543 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2544
2545         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2546         Always make REAL_VALUE_TYPE a struct containing an array of
2547         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2548         big it is.  Don't declare or use union real_extract.
2549
2550         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2551         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2552         (print_operand), config/arm/arm.c (output_move_double),
2553         config/arm/arm.md (consttable_4, consttable_8),
2554         config/romp/romp.c (output_fpops), config/s390/s390.h
2555         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2556         (xtensa_output_literal): Don't use union real_extract.
2557
2558         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2559         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2560         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2561         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2562         (PRINT_OPERAND): Don't use local version of union
2563         real_extract.
2564
2565         * config/convex/convex.c (check_float_value), config/vax/vax.c
2566         (vax_float_literal), config/m88k/m88k.md (divdf3),
2567         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2568         config/pdp11/pdp11.c (output_move_quad): Don't do host
2569         arithmetic on target floating point quantities.
2570
2571         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2572         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2573
2574         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2575         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2576
2577         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2578         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2579         INFINITY.
2580         * print-rtl.c (print_rtx): Disable code which needs
2581         floating-point emulator.
2582         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2583         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2584         depending on HOST_FLOAT_FORMAT to be defined properly.
2585
2586         * config/1750a/1750a.c (get_double, float_label): Delete.
2587         (print_operand): Delete huge commented-out chunk.  Use
2588         REAL_VALUE_TO_DECIMAL.
2589         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2590         functions.
2591         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2592         IEEE_FLOAT_FORMAT.
2593         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2594         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2595         * config/m88k/m88k.c (real_power_of_2_operand,
2596         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2597         real_extract out of the union; run the input through
2598         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2599         from that into the union.
2600         * config/pdp11/pdp11.c (output_move_double): Rearrange
2601         parentheses to make automatic indenter happy.
2602
2603         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2604         Point" and rewrite to describe current situation.  Also adjust
2605         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2606         match code.
2607         * doc/rtl.texi: Adjust cross reference.
2608
2609 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2610
2611         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2612         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2613         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2614         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2615         prevent use of sp as a reload register.
2616         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2617         non_acc_reg_operand.
2618         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2619         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2620         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2621         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2622
2623 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2624
2625         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2626         * cpplex.c (unterminated): Delete.
2627         (parse_string): No string literal may extend over multiple
2628         lines.  Suppress the error when preprocessing assembly.
2629         * cppmain.c (scan_translation_unit): Strings are single-line.
2630
2631         * doc/cpp.texi: Update to match.
2632
2633 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2634
2635         PR optimization/5854
2636         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2637         Shut up warnings.
2638         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2639         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2640         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2641         const0 if scratch register was not allocated.
2642         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2643         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2644         with GEN_INT (...).
2645         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2646         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2647         with GEN_INT (...) everywhere.  Remove constraints in define_split
2648         patterns.
2649         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2650         require scratch register for setting 0 into regs/non-pushable memory.
2651
2652 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2653
2654         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2655         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2656
2657 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2658
2659         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2660         * cppinit.c (cpp_create_reader):  On by default.
2661         (cpp_handle_option):  Handle -W[no-]endif-labels.
2662         (cpp_post_options):  Also enable if -pedantic.
2663         * cpplib.c (do_else):  Use it.
2664         (do_endif):  Likewise.
2665         * doc/cppopts.texi:  Document new option.
2666         * doc/invoke.texi:  Document new option.
2667
2668 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2669
2670         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2671         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2672
2673 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2674
2675         * flow.c (calculate_global_regs_live): Clear aux fields of
2676         ENTRY and EXIT.
2677
2678 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2679
2680         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2681         REG or MEM subregs, pass rtx * instead of rtx to it.
2682         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2683         rtx * instead of rtx to alter_subreg.
2684         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2685         * config/pj/pj.c (pj_output_rval): Likewise.
2686
2687 2002-03-22  Richard Henderson  <rth@redhat.com>
2688
2689         PR target/3177
2690         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2691         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2692         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2693         (ia64_expand_prologue): Look at int_regs, not words, for number
2694         of incomming int regs.
2695
2696 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2697
2698         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2699
2700 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2701
2702         * toplev.c (flag_loop_optimize, flag_crossjumping):
2703         New static variables.
2704         (rest_of_compilation): Conditionalize crossjumping and
2705         loop optimizer.
2706         (parse_options_and_default_flags): Default loop_optimize and
2707         crossjumping.
2708         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2709         * invoke.texi (crossjumping, loop-optimize): Document.
2710
2711 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2712
2713         * real.c (eiisneg): Move outside #ifdef NANS.
2714
2715 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2716
2717         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2718         frequencies match; avoid match on different loop depths.
2719         (try_crossjump_to_bb): Kill tests that no longer brings time
2720         savings.
2721         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2722         updating code.
2723         (split_edge): Likewise.
2724
2725         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2726         variable.
2727
2728         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2729         * cfgrtl.c: Include insn-config.h
2730         (split_block) Dirtify block in presence of conditional execution
2731
2732 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2733
2734         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2735         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2736         (function_arg): Constify CUMULATIVE_ARGS.
2737         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2738         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2739         (UNITS_PER_DOUBLE): New macro.
2740         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2741         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2742         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2743         fp_regs and stack_words.
2744         (EABI_FLOAT_VARARGS_P): New macro.
2745         * config/mips/mips.c (struct mips_arg_info): New.
2746         (mips_arg_info): New function.
2747         (function_arg_advance): Use it.  Add adjustment instructions here
2748         rather than in function_arg.
2749         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2750         for VOIDmode at the beginning of the function.
2751         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2752         (function_arg_pass_by_reference): Likewise.
2753         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2754         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2755         (mips_va_start): Likewise.  Use the new stack_words field of
2756         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2757         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2758         doubles and other types, aligning the overflow pointer for non-doubles
2759         too.  Remove some code duplication.  Replace hard-coded constants.
2760
2761 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2762
2763         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2764         (CLASS_UNITS): Undefine.
2765         (CLASS_MAX_NREGS): Use FP_INC.
2766         * config/mips/mips.c (compute_frame_size): Likewise.
2767         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2768
2769 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2770
2771         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2772         prototype, and handle lexing numbers and identifiers.
2773         (parse_identifier): Update to new form of parse_slow.
2774         (parse_number): Fast path only, use parse_slow otherwise.
2775         (_cpp_lex_direct): Update calls to parse_number.
2776
2777 2002-03-21  DJ Delorie  <dj@redhat.com>
2778
2779         * bb-reorder.c (make_reorder_chain_1): Protect against
2780         when redundant edges are omitted.
2781         * predict.c (dump_prediction): Likewise.
2782
2783 2002-03-21  Richard Henderson  <rth@redhat.com>
2784
2785         PR target/5996
2786         * fixinc/inclhack.def (solaris_stdio_tag): New.
2787         * fixinc/fixincl.x: Regenerate.
2788
2789 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2790
2791         PR c/5597
2792         * c-typeck.c (process_init_element): Flag non-static
2793         initialization of a flexible array member as illegal.
2794
2795 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2796
2797         * config/rs6000/t-linux64: New.
2798         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2799         t-ppccomm.  Use t-rs6000 and t-linux64.
2800         (powerpc64-*-gnu* <tmake_file>): Likewise.
2801         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2802         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2803         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2804
2805 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2806
2807         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2808         flag_really_no_inline instead of optimize == 0.
2809
2810         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2811
2812         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2813
2814         * flags.h (flag_really_no_inline): New.
2815
2816         * c-common.c (c_common_post_options): Initialize
2817         flag_really_no_inline.
2818
2819         * toplev.c (flag_really_no_inline): New.
2820
2821 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2822
2823         * config/avr/avr.md (length): Fix length computation for
2824         conditional branches.
2825
2826 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2827
2828         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2829         sdbout.o, profile.o): Update.
2830         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2831         langhook.
2832         * c-common.h (gettags): Move here from tree.h.
2833         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2834         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2835         * dbxout.c (dbxout_init): Use getdecls langhook.
2836         * expr.c (expand_expr): Use insert_block langhook.
2837         * fold-const.c: Include langhooks.h.
2838         (fold_range_test, fold_binary_op_with_conditional_arg,
2839         fold): Use global_bindings_p langhook.
2840         * integrate.c (expand_inline_function): Use insert_block langhook.
2841         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2842         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2843         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2844         LANG_HOOKS_GETDECLS): New.
2845         (LANG_HOOKS_INITIALIZER): Update.
2846         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2847         langhook.
2848         * langhooks.h (struct lang_hooks_for_decls): New.
2849         (struct lang_hooks): Update.
2850         * profile.c: Include langhooks.h.
2851         (output_func_start_profiler): Use new langhooks.
2852         * sdbout.c: Include langhooks.h.
2853         (sdbout_init, sdbout_finish): Use getdecls langhook.
2854         * stmt.c: Include langhooks.h.
2855         (expand_fixup, fixup_gotos): Use new langhooks.
2856         * stor-layout.c: Include langhooks.h.
2857         (variable_size): Use global_bindings_p langhook.
2858         * toplev.c (compile_file): Use getdecls langhook.
2859         * tree-inline.c (remap_block): Use insert_block langhook.
2860         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2861         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2862
2863 2002-03-21  Richard Henderson  <rth@redhat.com>
2864
2865         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2866         constants in .data when -fpic.
2867
2868 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2869
2870         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2871         where appropriate.
2872
2873 2002-03-21  Tom Tromey  <tromey@redhat.com>
2874
2875         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
2876
2877 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2878
2879         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2880
2881         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2882
2883 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2884             Richard Henderson  <rth@redhat.com>
2885
2886         PR c/5354
2887         * c-common.c (c_expand_expr): Preserve result of a statement
2888         expression if needed.
2889
2890 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2891
2892         PR bootstrap/4195
2893         * genrecog.c (maybe_both_true_mode): Remove.
2894         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2895         * machmode.def (Pmode): Likewise.
2896
2897 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
2898
2899         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2900         (nonlocal_mentioned_p_1): New function.
2901         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2902         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2903         (mark_constant_function): Recognize pure functions.
2904         * rtl.h (global_reg_mentioned_p): New prototype.
2905         * rtlanal.c (global_reg_mentioned_p,
2906         global_reg_mentioned_p_1): New function.
2907
2908 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2909
2910         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2911         UNIX assert.h.
2912         * fixinc/fixincl.x: Regenerate.
2913
2914 2002-03-20  Jason Merrill  <jason@redhat.com>
2915
2916         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2917
2918 2002-03-20  Michael Meissner  <meissner@redhat.com>
2919
2920         * doc/invoke.texi (Optimize Options): Document that -O2 sets
2921         -fstrict-aliasing.
2922
2923 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2924
2925         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2926         ".literal_position" directive before the constant pool.
2927
2928 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2929
2930         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2931         Add Craig Rodrigues.
2932         Add Brad Lucier to testers.
2933
2934 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2935
2936         PR target/4792
2937         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2938         to if_then_else.
2939         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2940         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2941         instead of insn_extract.
2942
2943 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2944
2945         PR bootstrap/4192
2946         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2947
2948         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2949         stmt if some case has been output.
2950
2951 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2952
2953         PR c/5972
2954         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2955         movsfcc_1, movdfcc_1): Add %O2.
2956         * config/i386/i386.c (print_operand): Handle %ON.
2957         Print . before float condition codes in Sun as cmov syntax.
2958         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2959         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2960         no longer true.
2961
2962 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
2963
2964         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2965         return instruction if PC was popped.
2966
2967 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2968
2969         * config/xtensa/xtensa.md: Remove unused type attributes.
2970         (adddi_carry, subddi_carry): Change type attribute to "multi".
2971
2972 2002-03-19  Dale Johannesen  <dalej@apple.com>
2973
2974         PR optimization/5999, middle-end/5731
2975         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2976         multiplications by reciprocals.
2977
2978 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2979
2980         * Makefile.in: Update.
2981         * c-common.c: Include langhooks.h.
2982         (inline_forbidden_p): Use new hook.
2983         * diagnostic.c: Include langhooks.h.
2984         (format_with_decl, announce_function,
2985         default_print_error_function): Use new hook.
2986         * dwarf2out.c (dwarf2_name): Use new hook.
2987         * function.c: Include langhooks.h.
2988         (init_function_start): Use new hook.
2989         * langhooks-def.h (lhd_decl_printable_name): New.
2990         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2991         (LANGHOOKS_INITIALIZER): Update.
2992         * langhooks.c (lhd_decl_printable_name): New.
2993         * langhooks.h (struct lang_hooks): New hook.
2994         * toplev.c (decl_name, decl_printable_name): Remove.
2995         (open_dump_file): Use new hook.
2996         (process_options): Remove old hook.
2997         * tree.h (decl_printable_name): Remove.
2998 objc:
2999         * objc-act.c (objc_init): Remove old hook.
3000         (objc_printable_name): Export.
3001         * objc-act.h (objc_printable_name): New.
3002         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3003
3004 2002-03-19  Jim Blandy  <jimb@redhat.com>
3005
3006         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3007         the start_source_file debug hook, not the current line number.
3008
3009 2002-03-19  Richard Henderson  <rth@redhat.com>
3010
3011         * flow.c (EH_USES): Provide default.
3012         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3013         * doc/tm.texi (EH_USES): New.
3014
3015         * config/ia64/ia64.c (ia64_eh_uses): New.
3016         * config/ia64/ia64-protos.h: Update.
3017         * config/ia64/ia64.h (EH_USES): New.
3018
3019 2002-03-19  Richard Henderson  <rth@redhat.com>
3020
3021         * varasm.c (output_constant_def): Fix stupid typo.
3022
3023 2002-03-19  Richard Henderson  <rth@redhat.com>
3024
3025         PR 5879
3026         * except.c (current_function_has_exception_handlers): New.
3027         * except.h: Declare it.
3028         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3029         Combine tests that disable all sibcalls for the function.
3030
3031 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
3032
3033         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3034         for INTEGER_CST.
3035
3036 2002-03-19  Richard Henderson  <rth@redhat.com>
3037
3038         PR 5977, 5991
3039         * config/ia64/ia64.c: Revert 2002-03-01 patch.
3040         * config/ia64/ia64.h (INIT_EXPANDERS): New.
3041
3042 2002-03-19  Jim Blandy  <jimb@redhat.com>
3043
3044         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3045         name, even if the replacement list contains no tokens, as required
3046         by Dwarf.
3047
3048 2002-03-19  Jason Merrill  <jason@redhat.com>
3049
3050         * varasm.c (globalize_decl): Get the name from the RTL, not
3051         DECL_ASSEMBLER_NAME.
3052
3053         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3054
3055 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
3056
3057         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3058         subdi_carry): Define.
3059
3060 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3061
3062         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3063         about -fpic/-fPIC if extra_warnings set.
3064
3065 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3066
3067         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3068         TREE_STRING_POINTER.
3069         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3070
3071 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3072
3073         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3074         in favor of SP if FRAME_POINTER_REQUIRED is false.
3075
3076 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3077
3078         * emit-rtl.c (gen_int_mode): New function.
3079         * rtl.h: Prototype for it.
3080         * combine.c (make_extraction, simplify_comparison), expmed.c
3081         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3082         (convert_modes, store_field), optabs.c (expand_fix),
3083         simplify-rtx.c (neg_const_int, simplify_unary_real),
3084
3085         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3086         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3087
3088 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3089
3090         PR c/5656
3091         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3092         convert_parm_for_inlining.
3093         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3094         Define.
3095         * langhooks-def.h: Likewise.
3096         * objc/objc-lang.c: Likewise.
3097         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3098         function.
3099         * tree-inline.c (initialize_inlined_parameters):
3100         Call convert_parm_for_inlining lang hook if needed.
3101         * c-typeck.c (c_convert_parm_for_inlining): New function.
3102         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3103
3104 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3105
3106         * calls.c (precompute_arguments): Do not assume that temporaries
3107         can be destroyed after expanding the argument.
3108         (expand_call): Likewise.
3109
3110 2002-03-15  Eric Christopher  <echristo@redhat.com>
3111
3112         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3113         Fix register preference on last change.
3114         * config/mips/mips.c (mips_return_in_memory): New function.
3115         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3116         * config/mips/mips-protos.h: Declare.
3117         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3118         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3119
3120 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3121
3122         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3123         a register too.
3124         (anddi3, iorsi3): Likewise.
3125
3126         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3127         use %gprel for symbols that are going to be placed in linkonce
3128         sections.
3129
3130         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3131         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3132         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3133         not needed.  Disregard leaf_function_p().
3134         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3135         mips16 frame pointer.
3136         * config/mips/mips.md (store ra): Only to small SP offsets.
3137         2001-08-22  Graham Stott  <grahams@redhat.com>
3138         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3139         return a REG rtx for the return address register.
3140
3141 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3142
3143         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3144         constant-pool addresses as "mode-dependent".
3145         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3146
3147 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3148
3149         PR target/5740
3150         * expr.c (emit_group_load): Use extract_bit_field if
3151         needed for CONCAT arguments.
3152
3153 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3154
3155         PR target/4863
3156         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3157         offset to the base of the table.
3158         (thumb_tablejump): Matcher for Thumb tablejump insn.
3159         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3160         as the difference of two labels.
3161         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3162         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3163         tables in the code.
3164         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3165         * arm.c (get_jump_table_size): If the table is not in the text
3166         section, return zero.
3167
3168 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3169
3170         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3171         of gen_rtx_SUBREG.
3172         (arm_reload_out_hi): Use gen_lowpart instead of
3173         gen_rtx_SUBREG to access QImode components.
3174         * config/arm/arm.md: Disable zero_extend split for QImode
3175         subregs in BIG_ENDIAN mode.
3176         (storehi_bigend): Match use of least significant byte.
3177         (storeinthi): Remove extraneous SUBREG.
3178         Add missing construction of operands[2].
3179         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3180         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3181         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3182
3183 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3184
3185         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3186         any_operand.
3187
3188 2002-03-17  Richard Henderson  <rth@redhat.com>
3189
3190         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3191         explicitly.
3192
3193 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3194
3195         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3196         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3197
3198 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3199
3200         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3201
3202         * predict.c (estimate_bb_frequencies): Delete unused variables.
3203
3204 2002-03-17  Richard Henderson  <rth@redhat.com>
3205
3206         * config/ia64/ia64.c (ia64_attribute_table): Move before
3207         targetm definition.  Make static.
3208
3209 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3210
3211         * c-common.h (yyparse, c_common_parse_file): New.
3212         * c-lang.c: Include c-common.h.
3213         (LANG_HOOKS_PARSE_FILE): Redefine.
3214         * c-lex.c: Include c-common.h.
3215         (yyparse): Rename c_common_parse_file.  Call yyparse.
3216         * c-parse.in (yyparse): Remove macro.
3217         * c-tree.h (yyparse_1): Remove.
3218         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3219         (LANG_HOOKS_INITIALIZER): Update.
3220         * langhooks.h (struct lang_hoooks): New hook parse_file.
3221         * toplev.c (compile_file): Use parse_file hook.
3222         * tree.h (yyparse): Remove.
3223         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3224
3225 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3226
3227         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3228         float_truncate, not fix.
3229         ("*truncdfsf2_real"): Ditto.
3230         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3231
3232         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3233
3234 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3235
3236         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3237         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3238         where appropriate.  Make the second reference to
3239         leaf_function_p a function call, as intended.  Reindented.
3240
3241         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3242         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3243
3244         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3245         add register to non-constant into sp.
3246
3247         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3248         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3249         (mips16_gp_pseudo_rtx): Lose.
3250         (INIT_EXPANDERS): Deleted.
3251         * config/mips/mips.c (mips_init_machine_status): New.
3252         (mips_free_machine_status): New.
3253         (mips_mark_machine_status): New.
3254         (override_options): Set them.
3255         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3256         (struct machine_function): ... new.  Replaced all references.
3257         (mips_add_gc_roots): Don't mark them.
3258         (embedded_pic_fnaddr_reg): New, extracted from...
3259         (embedded_pic_offset): ... here.
3260         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3261         (movsi): Likewise.
3262
3263 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3264
3265         * cppinit.c: Revert -MD removal.
3266
3267 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3268
3269         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3270         soft registers by default for 68HC12.
3271         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3272         when compiling with -fomit-frame-pointer.
3273         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3274         (expand_epilogue): Likewise.
3275         (m68hc11_gen_rotate): Use exg when rotating by 8.
3276
3277 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3278
3279         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3280         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3281         (splits): Remove unused add splits.
3282         ("*addhi3_68hc12"): Tune constraints.
3283         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3284         constant fits in 8-bits and D is dead use abx/aby instructions.
3285         ("*addhi3"): Remove extern declaration of ix_reg.
3286         ("*subsi3"): Optimize and provide new split.
3287         ("subhi3"): Cleanup.
3288         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3289         (arith splits): For 68hc12 save the address register on the stack
3290         and do the arithmetic operation with a pop.
3291
3292 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3293
3294         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3295         allocating QImode in address registers.
3296         ("*movqi_m68hc11"): Likewise.
3297
3298 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3299
3300         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3301
3302 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3303
3304         * cppinit.c (print_help): Display -MD and -MMD.
3305         Don't display usage string.  Update assertion syntax and
3306         typo.
3307         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3308         (cpp_handle_option): Update.
3309
3310 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3311
3312         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3313         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3314         and define it so that regardless of target CPU size,
3315         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3316         of "int" rather than "long."
3317
3318 2002-03-15  Richard Henderson  <rth@redhat.com>
3319
3320         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3321         size as a tree.
3322
3323 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3324
3325         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3326         ("tstqi" split): Avoid using memory for tstqi on address register.
3327         (splits): Remove constraints.
3328         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3329         ("cmpdf", "cmpsf"): Remove since not used.
3330         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3331         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3332
3333 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3334
3335         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3336         ("neghi2"): Tighten constraints.
3337         ("one_cmplsi2"): Optimize and simplify split.
3338         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3339
3340 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3341
3342         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3343         and split of AND operation to clear the upper bits.
3344         ("*logicalsi3_zextqi"): Likewise.
3345         ("*logicallhi3_zexthi_ashift8"): Likewise.
3346         ("*logicalsi3_silshr16"): Likewise.
3347         ("logicalsi3_silshl16"): Likewise.
3348         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3349
3350 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3351
3352         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3353         (m68hc11_indirect_p): New function.
3354         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3355         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3356         TARGET_M6812.
3357         (asm_print_register): Likewise.
3358         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3359         (m68hc11_indirect_p): Declare.
3360         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3361         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3362         (TARGET_SWITCHES): New option -mrelax.
3363         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3364         destination.
3365         ("iorsi3", "xorsi3"): Likewise.
3366         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3367         ("*andhi3_mem"): New to handle destination in memory with bclr
3368         and a scratch register.
3369         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3370         ("*andhi3_const"): New when operand2 is constant.
3371         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3372         ("*andhi3_gen"): Cleanup of the old "andhi3".
3373         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3374         ("xorqi3"): Update constraints.
3375
3376 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3377
3378         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3379         for reg_equiv_memory_loc when the operand is a register that does
3380         not get a hard register (stack location).
3381         (tst_operand): After reload, accept all memory operand.
3382         (symbolic_memory_operand): Fix detection of symbolic references.
3383         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3384         accept symbols and any constant.
3385
3386 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3387
3388         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3389         note on the insn that sets the soft frame register.
3390         (must_parenthesize): ix and iy are also reserved names.
3391         (print_operand_address): One more place where parenthesis are required
3392         to avoid confusion with register names.
3393         (m68hc11_gen_movhi): Allow push of stack pointer.
3394         (m68hc11_check_z_replacement): Fix handling of parallel with a
3395         clobber.
3396         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3397         the replacement register is.
3398         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3399         and D8_REGS classes.
3400         (MODES_TIEABLE_P): All modes are tieable except QImode.
3401
3402 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3403
3404         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3405         (___subdi3): Likewise.
3406         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3407         (__map_data_section): Optimize 68hc11 case.
3408
3409 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3410
3411         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3412         than a shift to avoid adding a register with itself.
3413         (m68hc11_memory_move_cost): Take into account NO_REGS.
3414         (m68hc11_register_move_cost): Update and use memory move cost
3415         for soft registers.
3416         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3417         it gives more opportunities to cse to optimize.
3418         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3419         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3420
3421 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3422
3423         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3424         * c-common.def (CLEANUP_STMT): New tree node.
3425         * c-common.h (CLEANUP_DECL): New macro.
3426         (CLEANUP_EXPR): Likewise.
3427         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3428         * expr.c (expand_expr): Tidy.
3429         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3430         * tree-inline.c (initialize_inlined_parameters): Clean up
3431         new local variables.
3432
3433 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3434
3435         PR bootstrap/4128
3436         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3437         before movrXX only, use reg_overlap_mentioned_p.
3438         Only special case NE if just one insn can be generated.
3439
3440 2002-03-15  Jason Merrill  <jason@redhat.com>
3441
3442         * varasm.c (assemble_variable): Call resolve_unique_section before
3443         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3444         of error_mark_node.
3445
3446 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3447
3448         PR target/5170
3449         * arm.md (split pattern for thumb shiftable immediates): Add comment
3450         explaining non-obvious test.
3451
3452 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3453
3454         PR target/5712
3455         * arm.md (movaddr, movaddr_insn): Delete.
3456
3457 2002-03-15  Jason Merrill  <jason@redhat.com>
3458
3459         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3460         -fkeep-static-consts doesn't apply to comdats.
3461
3462 2002-03-14  Richard Henderson  <rth@redhat.com>
3463
3464         * c-decl.c: Include c-pragma.h.
3465         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3466         (finish_function): Tidy.
3467         * c-pragma.c: Include c-common.h.
3468         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3469         (handle_pragma_weak): Use them.
3470         (init_pragma): Register pending_weaks.
3471         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3472         * print-tree.c (print_node): Print DECL_WEAK.
3473         * varasm.c (mark_weak_decls): Remove.
3474         (remove_from_pending_weak_list): Remove.
3475         (add_weak): Remove.
3476         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3477         (weak_decls): Make a tree_list.
3478         (declare_weak): Cons weak_decls directly.
3479         (globalize_decl): Remove weak_decls elements directly.
3480         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3481         symbols.  Don't pretend to handle aliases.
3482         (init_varasm_once): Update weak_decls registry.
3483         * Makefile.in: Update dependencies.
3484
3485 2002-03-14  Richard Henderson  <rth@redhat.com>
3486
3487         PR target/5312
3488         * config/ia64/ia64.c: Include tm_p.h last.
3489         (gen_nop_type): Remove duplicate definition.
3490         (cycle_end_fill_slots): Set sched_data for second L slot.
3491         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3492         (nop_cycles_until): Fix typos.
3493
3494 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3495
3496         PR optimization/5891
3497         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3498
3499 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3500
3501         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3502           descriptors correctly.
3503
3504 2002-03-14  Michael Meissner  <meissner@redhat.com>
3505
3506         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3507         100, allowing MAX_UNROLLED_INSNS to be overridden.
3508
3509         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3510         --param.
3511
3512         * unroll.c (params.h): Include.
3513         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3514
3515         * doc/invoke.texi (--param max-unroll-insns): Document.
3516
3517         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3518
3519 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3520
3521         * arm.md: Fix warnings about constraints in peepholes and splits.
3522
3523 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3524
3525         * cpphash.h (struct lexer_state): Remove line_extension member.
3526         * cpplib.c (dequote_string, do_linemarker): New functions.
3527         (linemarker_dir): New data object.
3528         (DIRECTIVE_TABLE): No longer need to interpret #line in
3529         preprocessed source.  Delete obsolete comment about return
3530         values of handlers.
3531         (end_directive, directive_diagnostics, _cpp_handle_directive):
3532         Don't muck with line_extension.
3533         (directive_diagnostics): No need to issue warnings for
3534         linemarkers here.
3535         (_cpp_handle_directive): Issue warnings for linemarkers here,
3536         when appropriate.  Dispatch linemarkers to do_linemarker, not
3537         do_line.
3538         (do_line): Code to handle linemarkers split out to do_linemarker.
3539         Convert escape sequences in filename argument, both places.
3540
3541         * cppmacro.c (quote_string): Rename cpp_quote_string and
3542         export.  All callers changed.
3543         * cpplib.h (cpp_quote_string): Prototype.
3544         * cppmain.c (print_line): Call cpp_quote_string on to_file
3545         before printing it.
3546
3547         * doc/cpp.texi: Document that escapes are now interpreted in
3548         #line and in linemarkers, and that non-printing characters are
3549         converted to octal escapes when linemarkers are generated.
3550
3551 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3552
3553         * emit-rtl.c (try_split): Use delete_insns.
3554         * recog.c (split_all_insns): Fix terminating condition.
3555
3556 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3557             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3558
3559         PR target/5828
3560         * arm.c (arm_output_epilogue): Fix floating-point register save
3561         adjustment when using a frame pointer.
3562
3563 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3564
3565         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3566         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3567         (save_restore_insns, mips_expand_epilogue): And here.
3568         (build_mips16_call_stub): And here.
3569         (mips_function_value): Use the new macros to decide whether a single
3570         or complex float can be returned in floating-point registers.  Return
3571         a parallel rtx in the complex case.
3572
3573 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3574
3575         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3576         call after liveness analysis.
3577
3578         * recog.c (split_insn): Use delete_insn_and_edges.
3579
3580         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3581         instructions to have branch prediction notes.
3582         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3583
3584 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3585
3586         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3587         that doesn't support it.
3588         * configure: Regenerate.
3589
3590 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3591
3592         PR target/5626
3593         * config/sparc/sparc.md (normal_branch, inverted_branch,
3594         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3595         inverted_fp_branch): Adjust calls to output_cbranch.
3596         Set length attribute.
3597         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3598         output_v9branch.  Set length attribute.
3599         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3600         predicates.
3601         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3602         (output_cbranch): Likewise.  Handle far branches.
3603         (output_v9branch): Handle far branches.
3604         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3605         Adjust prototypes.
3606         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3607         noov_compare64_op predicates.
3608
3609 2002-03-13  Jason Merrill  <jason@redhat.com>
3610
3611         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3612         into the function and constify it.
3613         * gthr-dce.h, gthr-solaris.h: Likewise.
3614
3615 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3616
3617         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3618         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3619         std_expand_builtin_va_arg if not ABI_V4.
3620
3621 2002-03-13  Jason Merrill  <jason@redhat.com>
3622
3623         * varasm.c (globalize_decl): New fn.
3624         (assemble_start_function): Use it.
3625         (asm_emit_uninitialized): Use it.
3626         (assemble_alias): Use it.
3627         (assemble_variable): Use it.
3628
3629 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3630
3631         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3632         2002-03-12 internal visibility change.
3633         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3634         visibility into SYMBOL_REF_FLAG.
3635
3636 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3637
3638         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3639         VOIDmode operand.  Add compile-time optimization for constant results.
3640
3641 2002-03-12  Jason Merrill  <jason@redhat.com>
3642
3643         * c-typeck.c (convert_for_assignment): Don't allow conversions
3644         between pointers and references.  Only allow lvalues to convert to
3645         reference.
3646
3647 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3648
3649         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3650         before prologue, to avoid scheduling problems.
3651
3652 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3653
3654         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3655         (ELIMINABLE_REGS): Add sfp->sp.
3656         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3657
3658 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3659
3660         PR optimization/5892
3661         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3662
3663 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3664
3665         * loop.c (basic_induction_var): Don't call convert_modes if mode
3666         classes are different.
3667
3668 2002-03-12  Richard Henderson  <rth@redhat.com>
3669
3670         PR optimization/5901
3671         * function.c (reposition_prologue_and_epilogue_notes): Position
3672         the markers after/before the last/first insn not deleted.
3673
3674 2002-03-12  Richard Henderson  <rth@redhat.com>
3675
3676         PR optimization/5878
3677         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3678         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3679         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3680
3681         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3682         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3683         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3684
3685         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3686         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3687         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3688         also.  Don't set it if not flag_pic.
3689         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3690         to be INVALID_REGNUM when not used.
3691
3692 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3693
3694         * expmed.c (store_bit_field): Reset alias set for memory.
3695         (extract_bit_field): Same.
3696
3697 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3698
3699         * c-common.c (c_tree_code_type, c_tree_code_length,
3700         c_tree_code_name, add_c_tree_codes): Delete.
3701         * c-common.h (add_c_tree_codes): Delete.
3702         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3703         Define.
3704         * c-objc-common.c (c_objc_common_init): Don't call
3705         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3706         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3707         objc_tree_code_name, add_objc_tree_codes): Delete.
3708         (objc_init): Don't call add_objc_tree_codes.
3709         * objc/objc-lang.c (tree_code_type, tree_code_length,
3710         tree_code_name): Define.
3711         * toplev.c (lang_independent_init): Don't set
3712         tree_code_length[IDENTIFIER_NODE].
3713         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3714         Delete definitions, moved to language front-ends.
3715         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3716         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3717         Const-ify.
3718         (tree_code_length): Change type to unsigned char.
3719
3720 2002-03-12  Richard Henderson  <rth@redhat.com>
3721
3722         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3723         internal visibility change.
3724
3725 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3726
3727         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3728         validize_mem() instead of change_address to avoid clobbering
3729         memory attributes.
3730
3731 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3732
3733         * c-lex.h (position_after_whitespace): Remove.
3734
3735 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3736
3737         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3738         (lex_string): Use unsigned char pointers.
3739
3740 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3741
3742         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3743         is not a valid memory_operand.
3744
3745 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3746
3747         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3748         * config/xtensa/lib1funcs.asm: Fix copyright to include
3749         special case for libgcc files.
3750         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3751         (__divsi3): Likewise.
3752         (__umodsi3): Likewise.
3753         (__modsi3): Likewise.
3754         * config/xtensa/lib2funcs.S: Fix copyright to include
3755         special case for libgcc files.
3756
3757 2002-03-12  Tom Rix  <trix@redhat.com>
3758
3759         * collect2.c (resolve_lib_name): Move outside of
3760         OBJECT_FORMAT_COFF ifdef.
3761         (ignore_library): Same.
3762
3763 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3764
3765         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3766
3767 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3768
3769         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3770         to function_section before writing out the constant pool.
3771
3772 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3773
3774         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3775         zero_constant.
3776         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3777
3778 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3779
3780         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3781         (adddi3): Likewise.
3782         (movdf): Likewise.
3783         (movdi): Likewise.
3784         (cmpsi splitter): Likewise.
3785         (modsi3): Fail if <= 0.
3786         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3787         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3788         (reg_or_sub_cint64_operand): Likewise.
3789         (num_insns_constant_wide): Optimize sign extension.
3790         (rs6000_legitimize_address): Likewise.
3791
3792 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3793
3794         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3795         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3796
3797 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3798
3799         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3800         address calculation.
3801
3802 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3803
3804         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3805         scratch register to DImode / TImode.
3806         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3807         register used does not overlap the target.
3808
3809 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3810
3811         * Makefile.in (debug.o): Depend on debug.h.
3812         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3813         * debug.c (do_nothing_debug_hooks): Likewise.
3814         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3815         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3816         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3817         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3818         * dwarfout.c (dwarf_debug_hooks): Likewise.
3819         * integrate.c (output_inline_function): Likewise.
3820         * objc/objc-act.c (synth_module_prologue): Likewise.
3821         * sdbout.c (sdb_debug_hooks): Likewise.
3822         * toplev.c (debug_hooks): Likewise.
3823         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3824
3825 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3826
3827         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3828         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3829         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3830         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3831         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3832         * defaults.h (POINTER_SIZE): Define.
3833         * doc/tm.texi (POINTER_SIZE): Document default.
3834
3835 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3836
3837         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3838
3839 2002-03-11  Richard Henderson  <rth@redhat.com>
3840
3841         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3842         if rebuild_label_notes_after_reload.
3843
3844 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3845
3846         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3847         emit pic register load if "internal" visibility.
3848         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3849         (cris_expand_builtin_va_arg): Do all computations on trees.
3850
3851 2002-03-11  Richard Henderson  <rth@redhat.com>
3852
3853         * rtlanal.c: Include recog.h.
3854         (keep_with_call_p): Fix thinko.
3855         * Makefile.in (rtlanal.o): Update dependencies.
3856
3857 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3858
3859         * genflags.c (gen_insn): Use IS_VSPACE.
3860         * genoutput.c (output_insn_data): Likewise.
3861         (process_template): Likewise.
3862
3863 2002-03-11  Richard Henderson  <rth@redhat.com>
3864
3865         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3866
3867 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3868
3869         * Makefile.in: Update.
3870         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3871         Update documentation.
3872         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3873         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3874
3875 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
3876
3877         * Makefile.in: Give texi2pod its input file as a command line
3878         argument, not on stdin.
3879
3880 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
3881             Daniel Berlin  <dan@dberlin.org>
3882
3883         C++ alias analysis improvement.
3884         * alias.c (record_component_aliases): Record aliases for base
3885         classes too.
3886
3887 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
3888
3889         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3890
3891 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3892
3893         * toplev.c (vms_fopen): Remove, not needed.
3894
3895         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3896
3897         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3898
3899         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3900         for FP, already done later.
3901
3902         * toplev.c (debug_args): Add entry for VMS_DEBUG.
3903         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3904
3905 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
3906
3907         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3908         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3909         LARGEST_EXPONENT_IS_NORMAL for the given mode.
3910         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3911         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3912         (ediv, emul, eldexp, esqrt): Likewise.
3913         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3914         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3915         (saturate): New function.
3916         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3917         (make_nan): Use a saturation value instead of a NaN if
3918         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
3919         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3920         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
3921         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
3922         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3923         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3924         !ROUND_TOWARDS_ZERO.
3925         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3926         (ROUND_TOWARDS_ZERO): Document.
3927
3928 2002-03-11  Andreas Jaeger  <aj@suse.de>
3929
3930         * cfg.c (dump_flow_info): Remove unused variable.
3931
3932 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
3933
3934         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3935         computations on trees.
3936
3937 2002-03-10  Richard Henderson  <rth@redhat.com>
3938
3939         PR 5693:
3940         * reload.c (copy_replacements_1): New.
3941         (copy_replacements): Use it to recurse through the rtx.
3942
3943 2002-03-10  Richard Henderson  <rth@redhat.com>
3944
3945         * loop.c (strength_reduce): Compute number of iterations as
3946         unsigned HOST_WIDE_INT.
3947
3948 2002-03-10  Richard Henderson  <rth@redhat.com>
3949
3950         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3951         to move away from the end of the block.
3952
3953 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3954
3955         PR preprocessor/5899
3956         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
3957
3958 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3959
3960         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3961
3962         * attribs.c (decl_attributes): Fix signed/unsigned warning.
3963
3964 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
3965
3966         * config/mmix/mmix.c: Improve comments.
3967         (mmix_target_asm_function_prologue): Drop variable
3968         empty_stack_frame.  Don't allocate unused slot above fp.
3969         (mmix_target_asm_function_epilogue): Mirror prologue changes.
3970         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3971         brace in first column.
3972         (enum reg_class): Ditto.
3973         (FIRST_PARM_OFFSET): Now 0.
3974         (USER_LABEL_PREFIX): Remove #if 0:d definition.
3975
3976 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3977
3978         * combine.c (make_extraction): Fix error in last change.
3979
3980 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3981
3982         * c4x.c (c4x_fp_reglist): Const-ify.
3983         * cris.c (cris_print_operand): Likewise.
3984         * i386.c (ix86_va_arg): Likewise.
3985         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3986         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3987         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3988         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3989         * mcore.h (regno_reg_class): Likewise.
3990         * mips.c (gen_int_relational): Likewise.
3991         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3992         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
3993         * pdp11.c (move_costs): Likewise.
3994         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3995         * s390.c (s390_branch_condition_mnemonic, regclass_map):
3996         Likewise.
3997         * s390.h (regclass_map): Likewise.
3998         * sh.c (shift_amounts): Likewise.
3999         * sh.md (rotlsi3): Likewise.
4000
4001 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4002
4003         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4004         (ne0+5): Use new clobber to generate proper shift pattern.
4005         Patch by Michael Matz <matz@kde.org>.
4006
4007 2002-03-09  Andreas Schwab  <schwab@suse.de>
4008
4009         * gcc.c (validate_all_switches): Also handle `%W{...}'.
4010
4011 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4012
4013         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4014
4015 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
4016
4017         PR middle-end/5877
4018         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4019         even for non-representable constants.
4020
4021 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4022
4023         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4024         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4025         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4026         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4027         (pop_function_context): Compute MAY_SHARE parameter for
4028         fixup_var_refs.
4029         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4030         (gen_mem_addressof): Call fixup_var_refs with new parm.
4031
4032         * combine.c (make_extraction): Don't make extension of CONST_INT.
4033
4034 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4035
4036         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4037         in o32 and o64 ABIs.
4038         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4039         but getting fixed-size structs passed in registers regardless of
4040         padding in o32 and o64 ABIs.
4041
4042         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4043         offset before loading address of argument passed by transparent
4044         reference.
4045
4046 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4047
4048         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4049
4050 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4051
4052         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4053         marker such that registers after it are saved.
4054
4055 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4056
4057         * sparc.c (arith_4096_operand): Fix error in last change.
4058
4059 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4060
4061         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4062         defaults for MEABI.
4063
4064 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4065
4066         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4067         vectors.
4068
4069 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4070
4071         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4072
4073 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4074
4075         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4076         removed; fix return value.
4077         * combine.c (combine_instructions): Dirtify blocks where we failed to
4078         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4079         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4080
4081 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4082
4083         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4084
4085 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4086
4087         * recog.c (peephole2_optimize): Re-distribute EH edges.
4088
4089 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4090
4091         * expr.c (expand_expr): Use unsave lang hook.
4092         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4093         (LANG_HOOKS_INITIALIZER): Update.
4094         * langhooks.h (struct lang_hooks): New hook unsave.
4095         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4096         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4097         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4098         (unsave_expr_now): Remove.
4099         * tree.h (unsave_expr_now, lang_unsave,
4100         lang_unsave_expr_now): Remove.
4101         (lhd_unsave): New.
4102
4103 2002-03-08  Andreas Jaeger  <aj@suse.de>
4104
4105         * flow.c (propagate_block_delete_insn): Remove unused variable.
4106
4107 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4108
4109         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4110         insn length for memory load/store.
4111
4112 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4113
4114         * doc/install.texi (--with-libiconv-prefix): Document.
4115
4116 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4117
4118         * doc/sourcebuild.texi: Fix typo.
4119
4120 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4121
4122         PR c/3711
4123         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4124         trees.
4125
4126 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4127
4128         * rtl.c (copy_most_rtx): Move from here ...
4129         * emit-rtl.c (copy_most_rtx): ... to here.
4130
4131 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4132
4133         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4134         SUBTARGET_CPP_SIZE_SPEC.
4135         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4136
4137         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4138
4139 2002-03-07  Matt Hiller  <hiller@redhat.com>
4140
4141         * gensupport.c (first_dir_md_include): Renamed from include;
4142         change all references.
4143         (last_dir_md_include): Renamed from last_include; change all
4144         references.
4145         (init_md_reader): Unconditionally initialize base_dir whether or
4146         not filename is a relative path.
4147
4148 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4149
4150         * config/fp-bit.c (_unord_f2): Compile it in even if
4151         US_SOFTWARE_GOFAST is enabled.
4152
4153         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4154         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4155         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4156         NULL_RTX, try reversing the comparison and the operands.
4157
4158 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4159
4160         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4161         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4162         and MATCH_OP_DUP.
4163
4164 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4165
4166         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4167
4168 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4169
4170         * basic-block.h (fixup_abnormal_edges): Declare.
4171         * reload1.c (fixup_abnormal_edges): New function.
4172         * reg-stack.c (convert_regs): Use it.
4173
4174         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4175
4176         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4177
4178 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4179
4180         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4181         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4182         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4183         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4184         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4185         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4186         unless x and y could be infinite.
4187         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4188         Check that the common type of both arguments is a real, even for
4189         targets without unordered comparisons.  Allow an integer argument
4190         to be compared against a real.
4191         (expand_tree_builtin): Use expand_unordered_cmp.
4192         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4193         * cse.c (fold_rtx): Likewise.  Fix indentation.
4194         * fold-const.c (fold_real_zero_addition_p): New.
4195         (fold): Use it, and the new HONOR_... macros.
4196         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4197         * jump.c (reversed_comparison_code_parts): After searching for
4198         the true comparison mode, use HONOR_NANS to decide whether it
4199         can be safely reversed.
4200         (reverse_condition_maybe_unordered): Remove IEEE check.
4201         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4202         to decide which simplifications are valid.  Allow the following
4203         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4204         and (a - -b) to (a + b).
4205         (simplify_relational_operation): Use HONOR_NANS.
4206         * doc/tm.texi: Document the MODE_HAS_... macros.
4207
4208 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4209
4210         * combine.c (simplify_comparison): If simplifying a logical shift
4211         right and compare with constant, force the comparison to unsigned.
4212
4213 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4214
4215         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4216
4217         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4218         -mabi=no-altivec
4219         (alt_reg_names): Remove % for vrsave.
4220
4221 2002-03-06  Richard Henderson  <rth@redhat.com>
4222
4223         PR optimization/5844
4224         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4225         if used indicates we've already emitted one copy of an operand.
4226         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4227         (gen_split): Supply a non-null used.
4228
4229 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4230
4231         * reload1.c (reload): Unshare all rtl after reload is done.
4232
4233         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4234         but simply fail if the expression is too complex to simplify.
4235         (simplify_gen_binary): Handle simplify_plus_minus failures.
4236
4237 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4238
4239         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4240         consistently call delete_trivially_dead_insns after CSE and GCSE;
4241         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4242         after liveness2; update comment in last crossjumping.
4243         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4244
4245 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4246
4247         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4248         after completing fast dead code elimination.
4249
4250         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4251         COMPARE operator.
4252
4253 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4254
4255         * version.c:  Fix misplaced leading blanks on first line.
4256
4257 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4258
4259         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4260
4261 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4262
4263         * cfgcleanup.c (mentions_nonequal_regs): New function.
4264         (thread_jump): Use it.
4265         * toplev.c (rest_of_compilation): Run jump threading after
4266         liveness.
4267
4268 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4269
4270         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4271         patch.
4272
4273 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4274
4275         * predict.c (estimate_bb_frequencies): Do not reload the
4276         frequencies from notes.
4277
4278 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4279
4280         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4281         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4282
4283         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4284         delete_noop_moves): Return indeger.
4285         * flow.c (ndead): New variable.
4286         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4287         BB argument; update callers.
4288         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4289         (life_analysis): Do not call purge_all_dead_edges.
4290         (update_life_info): Return number of deleted insns; print statistics.
4291         (update_life_info_in_dirty_blocks): likewise.
4292         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4293         return number of insns deleted.
4294
4295         * cse.c: Include timevar.h
4296         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4297         iterate until stabilizes; print statistics; return number of killed
4298         insns.
4299         * Makefile.in: (cse.o): Add timevar.h dependency
4300         * rtl.h (delete_trivially_dead_insns): New.
4301         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4302         * toplev.c (rest_of_compilation): Update callers.
4303
4304         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4305         (try_optimize_cfg): Do not update liveness.
4306         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4307         removal stabilizes; use delete_trivially_dead_insns.
4308
4309         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4310
4311 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4312
4313         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4314         callbacks when processing assembly language.
4315
4316 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4317
4318         * pa.h (ASM_FILE_END): Define.
4319         * som.h (ASM_FILE_END): Delete.
4320
4321         * pa.c (function_arg): Don't pass floats in general registers in
4322         indirect calls if TARGET_ELF32.
4323
4324 2002-03-05  Richard Henderson  <rth@redhat.com>
4325
4326         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4327
4328 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4329
4330         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4331
4332 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4333
4334         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4335         -r command line.  Don't hide any symbols if not building
4336         shared libgcc.
4337
4338 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4339
4340         * cfg.c (dump_flow_info): Warn about profile mismatches.
4341         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4342         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4343
4344 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4345
4346         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4347         wide volatile memory by parts.
4348
4349 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4350
4351         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4352         is NULL.
4353
4354 2002-03-05  Richard Henderson  <rth@redhat.com>
4355
4356         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4357
4358 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4359
4360         * toplev.c (documented_lang_options): Document more
4361         language-specific options.
4362         * doc/invoke.texi (Warning Options): Correct documentation for
4363         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4364         * c-decl.c (c_decode_option): Use a table to handle warning options.
4365
4366 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4367
4368         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4369         parameter to mmix_encode_section_info.
4370         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4371         relocatably.  Always produce ELF, not mmo if linking relocatably.
4372         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4373         first is non-zero, don't add symbol prefix.
4374         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4375         prototype accordingly.
4376
4377 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4378
4379         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4380
4381 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4382
4383         * configure.in: Increase required makeinfo version to 4.1.
4384         * configure: Regenerate.
4385
4386 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4387
4388         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4389         elsewhere now.
4390
4391 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4392
4393         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4394         * doc/invoke.texi: Fix @math uses.
4395
4396 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4397
4398         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4399         removal
4400
4401 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4402
4403         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4404         (powerpc-*-eabisimaltivec*): Same.
4405
4406         * config/rs6000/t-ppcendian: New.
4407
4408 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4409
4410         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4411         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4412         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4413
4414 2002-03-03  Richard Henderson  <rth@redhat.com>
4415
4416         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4417
4418 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4419
4420         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4421         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4422         tree.c, config/m68k/m68k.c:
4423         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4424         REAL_ARITHMETIC blocks unconditional.  Delete some further
4425         #ifdef blocks predicated on REAL_ARITHMETIC.
4426         * flags.h, toplev.c: Delete remaining references to
4427         flag_pretend_float.
4428
4429         * doc/invoke.texi: Remove documentation of -fpretend-float.
4430         * doc/tm.texi: Describe the various REAL_* macros as provided by
4431         real.h, not by the target configuration files.
4432
4433         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4434         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4435         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4436         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4437         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4438         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4439         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4440         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4441         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4442         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4443         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4444         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4445         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4446         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4447         config/xtensa/xtensa.h:
4448         Do not define, undefine, or mention in comments any of
4449         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4450         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4451         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4452         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4453         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4454         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4455         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4456         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4457         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4458
4459 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4460
4461         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4462         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4463         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4464         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4465         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4466         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4467         Delete.
4468         * defaults.h (BITS_PER_WORD): Define.
4469         * doc/tm.texi (BITS_PER_WORD): Document default value.
4470
4471         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4472         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4473         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4474
4475 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4476
4477         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4478         lieu of explicit sizeof/sizeof.
4479         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4480         ix86_expand_builtin): Likewise.
4481         * mips.c (mips_add_gc_roots): Likewise.
4482         * mmix.c (mmix_output_condition): Likewise.
4483         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4484         altivec_init_builtins): Likewise.
4485         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4486         * cppexp.c (Nsuff, parse_number): Likewise.
4487         * cppinit.c (builtin_array_end): Likewise.
4488         * gcc.c (n_default_compilers, process_command): Likewise.
4489         * genpreds.c (output_predicate_decls): Likewise.
4490         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4491         * lcm.c (N_ENTITIES): Likewise.
4492         * stor-layout.c (set_sizetype): Likewise.
4493
4494 2002-03-03  Richard Henderson  <rth@redhat.com>
4495
4496         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4497         for types or labels.
4498
4499 2002-03-03  Richard Henderson  <rth@redhat.com>
4500
4501         * c-decl.c (start_decl): Initialized variables are not common.
4502
4503 2002-03-02  Per Bothner  <per@bothner.com>
4504
4505         * gcc.c (option_map):  Suport new --bootclasspath option.
4506         --CLASSPATH is now just an alias for --classpath.
4507
4508 2002-03-02  Richard Henderson  <rth@redhat.com>
4509
4510         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4511         load if "internal" visibility.
4512         * doc/extend.texi: Document visibility meanings.
4513
4514 2002-03-02  Richard Henderson  <rth@redhat.com>
4515
4516         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4517         to functions as well.
4518
4519 2002-03-02  Richard Henderson  <rth@redhat.com>
4520
4521         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4522         (handle_visibility_attribute): Don't call assemble_visibility.
4523         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4524         without asmspec.  Invoke assemble_alias when needed.
4525         * varasm.c (maybe_assemble_visibility): New.
4526         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4527
4528 2002-03-02  Richard Henderson  <rth@redhat.com>
4529
4530         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4531         invoke ENCODE_SECTION_INFO with first call flag.
4532
4533         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4534         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4535         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4536         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4537         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4538         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4539         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4540         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4541         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4542         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4543         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4544         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4545         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4546         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4547         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4548         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4549         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4550         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4551         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4552         config/sh/sh.h, config/sparc/sparc.h,
4553         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4554         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4555         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4556         FIRST argument.  As needed, examine it and do nothing.
4557
4558         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4559         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4560         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4561
4562         * config/arm/t-pe (pe.o): Add dependencies.
4563
4564 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4565
4566         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4567         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4568         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4569         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4570         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4571         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4572         * defaults.h (BITS_PER_UNIT): Define.
4573         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4574
4575 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4576
4577         * config/h8300/h8300-protos.h: Add a prototype for
4578         compute_a_shift_length.
4579         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4580         (compute_a_shift_length): Likewise.
4581         (h8300_adjust_insn_length): Do not adjust insn length of shift
4582         insns.
4583         * config/h8300/h8300.md (anonymous shift patterns): Use
4584         compute_a_shift_length.
4585
4586 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4587
4588         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4589         trunc_int_for_mode.
4590
4591         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4592
4593 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4594
4595         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4596         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4597         * flags.h (flag_zero_initialized_in_bss): Declare.
4598         * toplev.c (flag_zero_initialized_in_bss): New flag.
4599         (lang_independent_options): Add flag_zero_initialized_in_bss.
4600         * tree.c (initializer_zerop): New function.
4601         * tree.h (initializer_zerop): Declare.
4602         * varasm.c (assemble_variable): If we can emit bss, put zero
4603         initializers in the bss section.
4604
4605 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4606
4607         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4608         like more than one symbol per .weak directive.
4609
4610 2002-03-01  Richard Henderson  <rth@redhat.com>
4611
4612         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4613         adjust argument_pointer by pretend_args_size.
4614         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4615
4616 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4617
4618         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4619
4620 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4621
4622         * toplev.c (rest_of_compilation): Delete dead jumptables before
4623         loop.
4624         * flow.c (delete_dead_jumptables): Make global.
4625         * rtl.h (delete_dead_jumptables): Declare.
4626
4627 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4628
4629         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4630         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4631         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4632
4633 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4634
4635         * config/h8300/h8300-protos.h: Fix formatting.
4636         * config/h8300/h8300.c: Likewise.
4637         * config/h8300/h8300.h: Likewise.
4638
4639 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4640
4641         * config/h8300/h8300.c (print_operand): Support 16-bit
4642         constant addresses.
4643         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4644
4645 2002-02-28  Richard Henderson  <rth@redhat.com>
4646
4647         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4648         pun complex values as integers; use gen_lowpart instead of
4649         gen_rtx_SUBREG.
4650         (extract_bit_field): Likewise.
4651
4652 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4653             David Edelsohn  <edelsohn@gnu.org>
4654
4655         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4656         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4657         (SUPPORTS_WEAK): Likewise.
4658         * output.h (add_weak): Add tree param.
4659         * varasm.c (add_weak): Likewise.  Save decl.
4660         (struct weak_syms): Add decl field.
4661         (mark_weak_decls): New function.
4662         (init_varasm_once): ggc_add_root mark_weak_decls.
4663         (assemble_start_function): Use ASM_WEAKEN_DECL.
4664         (assemble_variable): Likewise.
4665         (assemble_alias): Likewise.
4666         (declare_weak): Pass decl to add_weak.
4667         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4668         (remove_from_pending_weak_list): Declare and define for
4669         ASM_WEAKEN_DECL.
4670         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4671         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4672         * defaults.h (SUPPORTS_WEAK): Likewise.
4673         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4674         .weak for code sym.  Do emit .size for descriptor sym.
4675         (ASM_DECLARE_FUNCTION_SIZE): Define.
4676         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4677         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4678         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4679         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4680         .weak for code sym.
4681         (HANDLE_PRAGMA_WEAK): Remove.
4682         (ASM_WEAKEN_LABEL): Remove.
4683         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4684
4685 2002-03-01  Jason Merrill  <jason@redhat.com>
4686
4687         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4688         (TARGET_EXPR_CLEANUP): New macro.
4689
4690 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4691
4692         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4693         to take ptr_extend into account as third type of extension.
4694         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4695         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4696         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4697         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4698         * calls.c (precompute_arguments): Use new macro.
4699         (expand_call): Ditto.
4700         * combine.c (nonzero_bits): Ditto.
4701         (record_promoted_value): Ditto.
4702         * expr.c (store_expr): Ditto.
4703         (expand_expr): Ditto.
4704         * function.c (assign_parms): Ditto.
4705
4706 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4707
4708         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4709         override -shared and -shared-libgcc.
4710
4711 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4712
4713         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4714         of "ultrasparc".
4715         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4716         to be broken.
4717
4718 2002-02-28  Richard Henderson  <rth@redhat.com>
4719
4720         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4721         4 cycle latency from MM producers.
4722         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4723
4724 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4725
4726         * mklibgcc.in: Don't use GNU make extension.
4727
4728 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4729
4730         * c-parse.in (STATIC): New terminal.
4731         (scspec): New non-terminal.  Update productions accordingly.
4732         (program): Remove bogus ifc / end ifc.
4733         (array_declarator): Simplify production using STATIC.
4734
4735 2002-02-28  Jim Meyering  <meyering@lucent.com>
4736
4737         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4738         \a still means TARGET_BELL.
4739
4740 2002-02-28  Richard Henderson  <rth@redhat.com>
4741
4742         * haifa-sched.c (sched_emit_insn): New.
4743         (schedule_block): Use last_scheduled_insn to track last insn.
4744         * sched-int.h (sched_emit_insn): Prototype.
4745         * config/ia64/ia64.c (last_issued): Remove.
4746         (ia64_variable_issue): Don't set it.
4747         (nop_cycles_until): Use sched_emit_insn.
4748
4749 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4750
4751         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4752         extended constants.
4753
4754 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4755
4756         * config/h8300/h8300.c: Fix formatting.
4757         * config/h8300/h8300.h: Likewise.
4758
4759 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4760
4761         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4762         which may overwrite the high byte of the frame pointer.
4763
4764 2002-02-28  Bo Thorsen  <bo@suse.de>
4765
4766         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4767         (STARTFILE_SPEC): Add 64 bit files.
4768         (ENDFILE_SPEC): Likewise.
4769
4770 2002-02-28  Jason Merrill  <jason@redhat.com>
4771
4772         * c-decl.c (finish_function): Only warn about missing return
4773         statement with -Wreturn-type.
4774
4775 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4776
4777         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4778
4779         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4780         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4781
4782 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4783
4784         * basic-block.h (BB_REACHABLE): Renumber.
4785         (BB_DIRTY, BB_NEW): New flags.
4786         (clear_bb_flags): Declare.
4787         (update_life_info_in_dirty_blocks): Declare.
4788         * cfg.c (clear_bb_flags): New function.
4789         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4790         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4791         reorder_insns, emit_insn_after): Mark block as dirty.
4792         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4793         (update_life_info_in_dirty_blocks): New function.
4794         * recog.c (apply_change_group): Dirtify block.
4795
4796         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4797         cfg consistent.
4798         * gcse.c (delete_null_pointer_checks): Likewise.
4799
4800         * toplev.c (dump_file_index): Move cse2 after bp,
4801         add DFI_null
4802         (dump_file_info): Similary.
4803         (rest_of_compilation): Avoid most of CFG rebuilds;
4804         do first if converision after null pointer checks, do cse2
4805         after branch prediction; avoid full liveness rebuild after
4806         initializing subregs.
4807         * invoke.texi (-d options): Document -du, renumber.
4808
4809         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4810         (notice_new_block): Do not set BB_UPDATE_LIFE.
4811         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4812          merge_blocks_move_successor_nojumps, merge_blocks,
4813          try_crossjump_to_edge): Likewise.
4814         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4815         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4816         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4817         (merge_of_block): Do not use life_data_ok.
4818         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4819         (if_convert): Use BB_DIRTY mechanizm to update life.
4820         * lcm.c (optimize_mode_switching): Update
4821         update_life_info_in_dirty_blocks
4822
4823 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4824
4825         * Makefile.in (integrate.o): Update.
4826         * c-decl.c (copy_lang_decl): Rename.
4827         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4828         * integrate.c: Include langhooks.h.
4829         (copy_decl_for_inlining): Update to use langhook.
4830         * langhooks-def.h (lhd_do_nothing_t,
4831         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4832         (LANG_HOOKS_INITIALIZER): Update.
4833         * langhooks.c (lhd_do_nothing_t): New.
4834         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4835         * tree.h (copy_lang_decl): Remove.
4836 objc:
4837         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4838
4839 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4840
4841         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4842         POST_DEC, and POST_MODIFY.
4843
4844 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4845
4846         * c-typeck.c (digest_init): Remove unused parameter; all
4847         callers changed.
4848
4849 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4850
4851         * expmed.c (expand_shift): Correctly test for low part of a
4852         subreg.
4853
4854 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4855
4856         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4857         insn UIDs with insn addresses.
4858
4859 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4860
4861         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4862         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4863         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4864         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4865         gcc.c, toplev.c: Delete code implementing -traditional mode.
4866
4867         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4868         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4869         Document removal of -traditional mode for compilation, and
4870         remove documentation only relevant to that mode.
4871
4872         * config/nextstep.h, config/ptx4.h, config/svr4.h,
4873         config/convex/convex.h, config/d30v/d30v.h,
4874         config/i386/dgux.h, config/i386/osf1elf.h,
4875         config/i386/osfelf.h, config/i386/osfrose.h,
4876         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4877         config/m68k/hp310.h, config/m88k/dgux.h,
4878         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4879         config/m88k/m88k.h, config/m88k/openbsd.h,
4880         config/mips/abi64.h, config/mips/osfrose.h,
4881         config/mips/svr4-5.h, config/mips/svr4-t.h,
4882         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4883         config/stormy16/stormy16.h: Remove all references to
4884         -traditional from target specs.  Delete all mention of the
4885         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
4886         delete a couple of commented-out definitions of
4887         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4888         to -traditional.
4889
4890         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4891         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4892
4893 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4894
4895         * mklibgcc.in: Don't use \n in a line subject to
4896         interpretation by echo.
4897
4898 2002-02-27  Graham Stott  <grahams@redhat.com>
4899
4900         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4901         Constify NAME.
4902
4903         * loop.c (prescan_loop): Handle PARALLEL.
4904
4905         * unroll.c (loop_iterations): Return 0 if the add_val for
4906         a BIV is REG.
4907
4908         * final.c (output_operand_lossage): Constify PFX_STR.
4909
4910         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4911
4912 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4913
4914         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4915         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4916
4917 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
4918
4919         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4920
4921 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4922
4923         * cpplex.c (_cpp_lex_token): Handle directives in macro
4924         arguments.
4925         * cpplib.c (_cpp_handle_directive): Save and restore state
4926         if parsing macro args when entering a directive.
4927         * cppmacro.c (collect_args): No need to handle directives
4928         in macro arguments.
4929         (enter_macro_context, replace_args): Use the original macro
4930         definition in case it was redefined whilst collecting arguments.
4931 doc:
4932         * cpp.texi: Update.
4933
4934 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
4935
4936         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4937         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4938         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4939         method on AIX.
4940         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4941         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4942         (load_toc_v4_PIC_2): Same.
4943
4944 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
4945
4946         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4947
4948 2002-02-26  Richard Henderson  <rth@redhat.com>
4949
4950         * config/alpha/alpha.md (ashldi_se): Re-enable.
4951
4952 2002-02-26  Richard Henderson  <rth@redhat.com>
4953
4954         * config/alpha/alpha.c (alpha_encode_section_info): Examine
4955         MODULE_LOCAL_P; improve commentary.
4956
4957 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
4958
4959         * doc/cpp.texi: Clarify documentation of relationship between
4960         #line and #include.
4961
4962 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4963
4964         * config/h8300/h8300-protos.h: Update the prototype for
4965         compute_logical_op_length.  Add the prototype for
4966         compute_logical_op_cc.
4967         * config/h8300/h8300.c (compute_logical_op_length): Figure out
4968         code from operands.
4969         (compute_logical_op_cc): New.
4970         * config/h8300/h8300.md: Combine all the logical op patterns
4971         in HImode and SImode.  Use compute_logical_op_cc.
4972
4973 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
4974
4975         * config/i386/i386.c (print_operand): Don't append ATT-style
4976         length suffixs to x87 opcodes when in Intel mode.
4977
4978 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
4979
4980         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4981         (init_emit_once): Update calls.
4982         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4983         (init_syntax_once): Prototype.
4984
4985 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4986
4987         * pa-linux.h (LIB_SPEC): Update definition.
4988         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4989
4990 2002-02-26  Richard Henderson  <rth@redhat.com>
4991
4992         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4993         if we emitted a stop bit.
4994
4995 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4996
4997         * configure.in (libgcc_visibility): Substitute.
4998         * configure: Rebuilt.
4999         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5000         defined symbols .hidden.
5001
5002 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5003
5004         * attribs.c (c_common_attribute_table): Add visibility.
5005         (handle_visibility_attribute): New function.
5006         * varasm.c (assemble_visibility): New function.
5007         * output.h (assemble_visibility): Add prototype.
5008         * tree.h (MODULE_LOCAL_P): Define.
5009         * crtstuff.c (__dso_handle): Use visibility attribute.
5010         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5011         for MODULE_LOCAL_P symbols too.
5012         * config/ia64/ia64.c (ia64_encode_section_info): Handle
5013         MODULE_LOCAL_P symbols the same way as local symbols.
5014         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5015         into .sdata/.sbss by the user.
5016         * doc/extend.texi (Function Attributes): Document visibility
5017         attribute.
5018
5019 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5020
5021         PR debug/5770
5022         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5023         STRING_CST initializer spanning the whole variable without
5024         embedded zeros.
5025         If expand_expr returned MEM, don't use it.
5026
5027 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5028
5029         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5030         generate a die for the lexical block.
5031
5032 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5033
5034         * config/h8300/h8300-protos.h: Add a prototype for
5035         compute_logical_op_length.
5036         * config/h8300/h8300.c (compute_logical_op_length): New.
5037         * config/h8300/h8300.md (anonymous logical patterns): Use
5038         compute_logical_op_length for length.
5039
5040 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5041
5042         * dwarf2out.c (modified_type_die): Do not call type_main_variant
5043         for vectors.
5044         (gen_type_die): Same.
5045
5046         * attribs.c (handle_vector_size_attribute): Set debug information.
5047
5048 2002-02-26  Daniel Egger  <degger@fhm.edu>
5049
5050         * config/rs6000/rs6000.md: Swap define_insn attributes to
5051         fix incorrect generation of merge high instructions instead
5052         of merge low.
5053
5054 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5055
5056         * c-typeck.c (really_start_incremental_init): Use
5057         bitsize_zero_node for vectors.
5058
5059 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5060
5061         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5062         ("*set_vrsave_internal"): Same.
5063
5064 2002-02-25  Richard Henderson  <rth@redhat.com>
5065
5066         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5067         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5068
5069 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5070
5071         PR target/5755
5072         * config/i386/i386.c (ix86_return_pops_args): Only pop
5073         fake structure return argument if it was passed on the stack.
5074
5075 2002-02-25  Jason Merrill  <jason@redhat.com>
5076
5077         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5078         RESULT_DECL.
5079
5080 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5081
5082         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5083         link with shared_name only.
5084         * doc/invoke.texi (Link Options): Document new behavior.
5085
5086 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5087
5088         * c-typeck.c (push_init_level): Handle vectors.
5089
5090 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5091
5092         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5093         operands of SPARC_SETHI_P.
5094         (input_operand): Likewise.
5095         (sparc_emit_set_const32): Likewise.
5096         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5097         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5098         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5099         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5100         (movdi_insn_sp64_vis): Likewise.
5101         (movdi split, movdf split): Use SETHI32.
5102         * doc/md.texi: Document SPARC constraints L, M and N.
5103
5104 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5105
5106         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5107         ("*set_vrsave_internal"): use mfspr for Darwin.
5108
5109         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5110         gen_get_vrsave_internal.
5111
5112 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5113
5114         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5115
5116 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5117
5118         * cpplex.c (cpp_interpret_charconst): Get signedness or
5119         otherwise of wide character constants correct.
5120         * cppexp.c (lex): Get signedness of wide charconsts correct.
5121
5122 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5123
5124         * optabs.c (widen_operand): Only call convert_modes for
5125         promoted SUBREG if signedness matches.
5126         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5127
5128 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5129
5130         * cpplib.c (glue_header_name): Use local buffer to build up
5131         header name.
5132
5133 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5134
5135         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5136
5137 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5138
5139         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5140         H8/300[HS] separately.
5141         * config/h8300/h8300.md: Remove the early clobber constraint
5142         from bit field patterns.
5143
5144 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5145
5146         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5147         register_operand.
5148         (mulhisi3): Likewise.
5149         (umulqisi3): Likewise.
5150         (umulhisi3): Likewise.
5151
5152 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5153
5154         * cppinit.c (output_deps): Correct test for stdout output.
5155         (init_dependency_output): Cure warning.
5156
5157 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5158
5159         * expr.c (store_expr): When converting expression to promoted
5160         equivalent type, allow using SUBREG_REG of TARGET as the target
5161         of the expansion of EXP.
5162         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5163         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5164         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5165         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5166         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5167
5168 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5169
5170         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5171         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5172         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5173
5174 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5175
5176         PR optimization/5747
5177         * loop.c (scan_loop): Update reg info if move_movables created new
5178         pseudos.
5179
5180 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5181
5182         * gcc.c (init_gcc_spec): Revert last change.
5183
5184 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5185
5186         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5187         gpc_reg_operand constraint.
5188
5189 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5190
5191         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5192         Simplify comparison of `low'.
5193         (add_operand): Fix formatting.
5194         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5195         (mask_operand): Disallow mask to wrap in 64-bit mode.
5196         (rs6000_stack_info): Remove redundant test setting push_p.
5197         (output_toc): Fix formatting.
5198         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5199         cc_reg_not_cr0_operand constraint.
5200         (booldi3, boolcdi3 splitters): Same.
5201
5202 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5203
5204         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5205
5206 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5207
5208         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5209         gcc invoked with -shared-libgcc.
5210
5211 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5212
5213         PR c++/5748
5214         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5215         decl if any of elements was TREE_USED.
5216
5217 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5218
5219         * config/sparc/sol2.h: Don't include sys/mman.h.
5220         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5221         (arith_4096_operand): Don't throw high bits away.
5222         (const64_operand): Take sign extension of CONST_INTs into account.
5223         (const64_high_operand, sparc_emit_set_const32): Likewise.
5224         (GEN_HIGHINT64): Likewise.
5225         (sparc_emit_set_const64_quick1): Likewise.
5226         (const64_is_2insns): Likewise.
5227         (print_operand): Use trunc_int_for_mode for sign extension.
5228         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5229         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5230         chars.  Assume CONST_INT is already properly sign-extended.
5231         (movdi split): Sign-extend each SImode part.
5232         (andsi3 split): Don't mask high bits off, so that result
5233         remains properly sign-extend.
5234         (iorsi3 split): Likewise.
5235         (xorsi3 split): Likewise.
5236
5237 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5238
5239         * fold-const.c (fold): Fix typo in comments.
5240
5241 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5242
5243         * Makefile.in (langhooks.o): Update dependencies.
5244
5245 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5246
5247         * langhooks.c: Include flags.h.
5248
5249 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5250
5251         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5252
5253         * c-common.c (c_common_post_options): Set inline trees by
5254         default.
5255
5256         * doc/extend.texi (Function Attributes): Document always_inline
5257         attribute.
5258         Update documentation about inlining when not optimizing.
5259
5260         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5261
5262         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5263         unless DECL_ALWAYS_INLINE.
5264
5265         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5266         unless DECL_ALWAYS_INLINE.
5267         (c_disregard_inline_limits): Disregard if always_inline set.
5268
5269         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5270         Disregard if always_inline set.
5271         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5272         unless DECL_ALWAYS_INLINE.
5273
5274         * attribs.c (handle_always_inline_attribute): New.
5275         (c_common_attribute_table): Add always_inline.
5276
5277         * config/rs6000/altivec.h: Add prototypes for builtins
5278         requiring the always_inline attribute.
5279
5280 2002-02-21  Eric Christopher  <echristo@redhat.com>
5281
5282         * expmed.c (store_bit_field): Try to simplify the subreg
5283         before generating a new one when when the mode size of
5284         value is less than maxmode.
5285
5286 2002-02-21  Richard Henderson  <rth@redhat.com>
5287
5288         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5289         than gen_rtx_PLUS to form the sum.
5290         * explow.c (force_reg): Rearrange to not allocate new pseudo
5291         when force_operand returns a register.
5292         * expr.c (expand_assignment): Allow offset_rtx expansion to
5293         return a sum.  Do not force addresses into registers.
5294         (expand_expr): Likewise.
5295         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5296         to canonicalize arithmetic that didn't simpify.
5297         (simplify_plus_minus): New argument force; update
5298         all callers.  Don't split CONST unless we can do something with it,
5299         and wouldn't lose the constness of the operands.
5300
5301         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5302         that we generated earlier.
5303
5304 2002-02-21  Tom Tromey  <tromey@redhat.com>
5305
5306         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5307         (output_line_info): Use constant `1', with a long explanatory
5308         comment.
5309         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5310
5311 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5312
5313         * jump.c (redirect_jump): If old label has no UID, don't try to
5314         delete it.
5315
5316 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5317
5318         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5319         If input is constant, do shifts at compile time.
5320
5321 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5322
5323         * doc/extend.texi: Fix some more overfull hboxes.
5324
5325 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5326
5327         PR optimization/4994
5328         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5329         register moves.
5330
5331 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5332
5333         PR c++/4574
5334         * expr.h (expand_and): Add mode argument.
5335         * expmed.c (expand_and): Add mode argument.
5336         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5337         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5338         * except.c (expand_builtin_extract_return_addr): Likewise.
5339         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5340         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5341         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5342         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5343         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5344         gen_rtx (CONST_INT, VOIDmode, x).
5345
5346 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5347
5348         PR c/4697:
5349         * stmt.c (warn_if_unused_value): Move side effects test once more.
5350
5351 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5352
5353         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5354         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5355
5356 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5357
5358         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5359         SUBREG or ZERO_EXTEND.
5360
5361 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5362
5363         * sh.h (current_function_anonymous_args): Remove.
5364         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5365         of current_function_varargs and current_function_stdarg is set.
5366         * sh.c (sh_expand_prologue): Check current_function_varargs /
5367         current_function_stdarg / TARGET_SH5 instead of
5368         current_function_anonymous_args.
5369
5370         * sh64.h (TARGET_VERSION): Define.
5371
5372 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5373
5374         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5375         VRSAVE_REGNO on TARGET_ALTIVEC.
5376
5377 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5378
5379         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5380         bits of SImode const_int.
5381         (includes_rshift_p): Likewise.
5382         (print_operand): Call mask_operand and mask64_operand with correct
5383         mode.
5384         (rs6000_output_function_epilogue): Pad traceback table to word.
5385         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5386         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5387         mask64_operand with correct mode.
5388         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5389
5390 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5391
5392         PR debug/4461
5393         * varasm.c (get_pool_constant_mark): New.
5394         * rtl.h (get_pool_constant_mark): Add prototype.
5395         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5396         be represented if it has not been output.
5397
5398 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5399
5400         * combine.c (do_SUBST): Sanity check substitutions of
5401         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5402         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5403         CONST_INT into its operand.
5404         (known_cond): Likewise, for ZERO_EXTEND.
5405         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5406         allow for simplification of wide modes.  Reject CONST_INTs in
5407         ZERO_EXTEND when their actual mode is not given.
5408
5409 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5410
5411         * c-decl.c (pushdecl): If no global declaration is found for an
5412         extern declaration in block scope, try a limbo one.
5413
5414 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5415
5416         PR c++/4401
5417         * c-common.c (pointer_int_sum): Moved from...
5418         * c-typeck.c (pointer_int_sum): ...here.
5419         * c-common.h (pointer_int_sum): Add prototype.
5420
5421 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5422
5423         PR c++/5713
5424         * c-decl.c (duplicate_decls): Return 0 if issued error about
5425         redeclaration.
5426
5427 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5428             Jakub Jelinek  <jakub@redhat.com>
5429
5430         PR c/4389
5431         * tree.c (host_integerp): Ensure that the constant integer is
5432         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5433         when pos is zero or non-zero respectively.  Clarify comment.
5434         * c-format.c (check_format_info_recurse): Fix host_integerp
5435         usage; the pos argument should be zero when assigning to a
5436         signed HOST_WIDE_INT.
5437
5438 2002-02-20  Richard Henderson  <rth@redhat.com>
5439
5440         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5441         of the operand, rather than assuming TImode.
5442         (ix86_expand_binop_builtin): Cope with commutative patterns
5443         using nonimmediate_operand for both operands.
5444         (ix86_expand_timode_binop_builtin): Likewise.
5445         (ix86_expand_store_builtin): Validate operand 1.
5446         (ix86_expand_unop1_builtin): Likewise.
5447
5448 2002-02-20  Philip Blundell  <philb@gnu.org>
5449
5450         PR 5705
5451         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5452
5453 2002-02-20  Richard Henderson  <rth@redhat.com>
5454
5455         PR c/5615
5456         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5457
5458 2002-02-20  Tom Tromey  <tromey@redhat.com>
5459
5460         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5461         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5462         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5463         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5464         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5465         unconditionally.
5466
5467 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5468
5469         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5470           for (const_int 0) in X not just INTVAL.
5471
5472 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5473
5474         * doc/extend.texi: Avoid or reduce overfull hboxes.
5475
5476 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5477
5478         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5479         operations if the field does not start at a mode boundary.
5480
5481 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5482
5483         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5484         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5485         Also done for -Acpu and -Amachine.
5486
5487 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5488
5489         * cppinit.c (init_dependency_output): Take deps output file
5490         from -o if none given with -MF.  Suppress normal output.
5491         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5492         * doc/cpp.texi, doc/invoke.texi: Update.
5493
5494 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5495
5496         * toplev.c (output_quoted_string): Write unprintable
5497         characters with octal escapes.
5498
5499 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5500
5501         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5502         really_call_used[VRSAVE_REGNO] if not Altivec.
5503
5504 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5505
5506         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5507         MODE_MASK.
5508         (constant_pool_expr_1): Fix formatting.
5509         (rs6000_legitimize_reload_address): Likewise.
5510
5511 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5512
5513         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5514         now that we have one.
5515
5516 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5517
5518         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5519         end of first block of bitfields (which was only seven bits);
5520         rename dummy to unused_1; remove comment which is no longer true.
5521
5522 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5523
5524         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5525
5526 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5527
5528         PR 5399
5529         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5530         if generating PIC.
5531
5532         PR 5054
5533         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5534         arm_is_longcall_p rather than inspecting call-type cookie
5535         directly.
5536         (call_value_insn) [TARGET_THUMB]: Likewise.
5537
5538 2002-02-19  Graham Stott  <grahams@redhat.com>
5539
5540         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5541
5542 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5543
5544         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5545         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5546         (FP_SAVE_INLINE): Delete.
5547
5548         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5549         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5550         * config/rs6000/t-ppccomm: Build crtsavres.o.
5551         * config/rs6000/crtsavres.asm: New file.
5552
5553 2002-02-19  Philip Blundell  <philb@gnu.org>
5554
5555         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5556         functions.
5557         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5558         (output_return_instruction): Allow interrupt functions to return with
5559         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5560         (arm_expand_prologue): Subtract 4 before stacking LR in an
5561         interrupt function.
5562
5563 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5564
5565         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5566         decl, not just FUNCTION_DECL.
5567         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5568         (arm_assemble_integer): Likewise.
5569         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5570         marked local.
5571
5572 2002-02-19  matthew green  <mrg@eterna.com.au>
5573
5574         * config.gcc (sparc-*-netbsdelf*): Enable target.
5575         (sparc64-*-netbsd*): New target.
5576         * config/sparc/netbsd-elf.h: New file.
5577         * config/sparc/t-netbsd64: New file.
5578
5579 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5580
5581         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5582
5583 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5584
5585         * doc/invoke.texi: explicitly list the style guidelines that
5586         -Weffc++ checks for.
5587
5588 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5589
5590         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5591
5592 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5593
5594         PR other/5718
5595         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5596         only if not -E.  If -E, pass -o through to the preprocessor.
5597
5598 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5599
5600         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5601         register number with an appropriate macro.
5602
5603 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5604
5605         * doc/rtl.texi (Constants): Close @code tag.
5606
5607 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5608
5609         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5610         ("mmx_uavgv4hi3"): Same.
5611         ("pmulhrwv4hi3"): Same.
5612
5613         * tree-inline.c (walk_tree): Handle vectors.
5614
5615         * c-common.c (constant_expression_warning): Handle vectors.
5616         (overflow_warning): Same.
5617
5618         * sched-deps.c (sched_analyze_2): Handle vectors.
5619
5620         * rtlanal.c (rtx_unstable_p): Handle vectors.
5621         (rtx_varies_p): Same.
5622         (count_occurrences): Same.
5623         (regs_set_between_p): Same.
5624         (modified_between_p): Same.
5625         (modified_in_p): Same.
5626         (volatile_insn_p): Same.
5627         (volatile_refs_p): Same.
5628         (side_effects_p): Same.
5629         (may_trap_p): Same.
5630         (inequality_comparisons_p): Same.
5631         (replace_regs): Same.
5632         (computed_jump_p_1): Same.
5633
5634         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5635         argument.
5636         (inner_mode_array): New.
5637         (copy_rtx): Handle vectors.
5638         (copy_most_rtx): Same.
5639         (rtx_equal_p): Same.
5640         (get_mode_alignment): Adjust for vectors.
5641
5642         * resource.c (mark_referenced_resources): Handle vectors.
5643         (mark_set_resources): Same.
5644
5645         * reload1.c (eliminate_regs): Handle vectors.
5646         (elimination_effects): Same.
5647         (scan_paradoxical_subregs): Same.
5648
5649         * reload.c (subst_reg_equivs): Handle vectors.
5650
5651         * regrename.c (scan_rtx): Handle vectors.
5652
5653         * regclass.c (reg_scan_mark_refs): Handle vectors.
5654
5655         * recog.c (find_single_use_1): Handle vectors.
5656
5657         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5658         (contains_replace_regs): Same.
5659         (memref_referenced_p): Same.
5660
5661         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5662         (subst_constants): Same.
5663
5664         * genattrtab.c (attr_copy_rtx): Handle vectors.
5665         (encode_units_mask): Same.
5666         (clear_struct_flag): Same.
5667         (count_sub_rtxs): Same.
5668
5669         * gcse.c (want_to_gcse_p): Handle vectors.
5670         (oprs_unchanged_p): Same.
5671         (hash_expr_1): Same.
5672         (oprs_not_set_p): Same.
5673         (expr_killed_p): Same.
5674         (compute_transp): Same.
5675         (store_ops_ok): Same.
5676
5677         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5678         of vectors.
5679         (fixup_var_refs_1): Same.
5680         (instantiate_virtual_regs_1): Same.
5681
5682         * fold-const.c (operand_equal_p): Handle vectors.
5683         (fold): Same.
5684         (rtl_expr_nonnegative_p): Same.
5685
5686         * flow.c (mark_used_regs): Handle vectors.
5687
5688         * df.c (df_uses_record): Handle vectors.
5689
5690         * cselib.c (cselib_subst_to_values): Handle vectors.
5691         (cselib_mem_conflict_p): Same.
5692         (hash_rtx): Same.
5693
5694         * cse.c (canon_reg): Handle vectors.
5695         (fold_rt): Same.
5696         (cse_process_notes): Same.
5697         (count_reg_usage): Same.
5698         (canon_hash): Same.
5699
5700         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5701
5702         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5703
5704         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5705         (gen_rtx): Handle CONST_VECTOR.
5706         (gen_const_vector_0): New.
5707         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5708         (reset_used_flags): Same.
5709         (copy_insn_1): Same.
5710         (initializer_constant_valid_p): Handle VECTOR_CST.
5711
5712         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5713
5714         * doc/rtl.texi (Constants): Document const_vector.
5715         (CONST0_RTX): Update for vectors.
5716         (RTL sharing): Same.
5717
5718         * print-tree.c (print_node): Add case for VECTOR_CST.
5719
5720         * tree.h (TREE_VECTOR_CST_ELTS): New.
5721         (struct tree_vector): New.
5722         (union tree_node): Add vector node.
5723         (build_vector): Add prototype.
5724
5725         * tree.def (VECTOR_CST): New.
5726
5727         * tree.c (build_vector): New.
5728
5729         * expmed.c (make_tree): Handle CONST_VECTOR.
5730
5731         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5732         (CONST_VECTOR_ELT): New.
5733         (CONST_VECTOR_NUNITS): New.
5734
5735         * machmode.h (GET_MODE_INNER): New.
5736         (DEF_MACHMODE): Accept 8th arg.
5737
5738         * machmode.def: Add 8th argument for vector inner mode.
5739         Add inner vector modes for vectors.
5740
5741         * rtl.def (VEC_CONST): Remove.
5742         (CONST_VECTOR): New.
5743
5744         * expr.c (clear_storage): Allow vectors.
5745         (is_zeros_p): Handle VECTOR_CST.
5746
5747         * varasm.c (output_constant_pool): Handle vectors.
5748         (rtx_const): Add veclo and vechi fields.
5749         (kind): Add RTX_VECTOR.
5750         (decode_rtx_const): Add case for vector.
5751
5752         * config/rs6000/rs6000-protos.h: Add zero_constant.
5753
5754         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5755         constants.  Force easy vector constants into memory.
5756         (easy_vector_constant): New.
5757         (emit_easy_vector_constant): New.
5758         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5759         darwin.
5760
5761         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5762         instruction does.
5763         ("altivec_lvxl"): Same.
5764         (altivec_lvebx): Same.
5765         (altivec_lvehx): Same.
5766         (altivec_lvewx): Same.
5767         ("*movv4si_const0"): New.
5768         ("*movv4sf_const0"): New.
5769         ("*movv8hi_const0"): New.
5770         ("*movv16qi_const0"): New.
5771
5772 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5773
5774         * config/h8300/h8300.c (notice_update_cc): Use
5775         cc_status.value2.
5776
5777 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5778
5779         * config/h8300/h8300.md (divmod patterns): Change the
5780         constraints for operands[1] to register_operand.
5781
5782 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5783
5784         * config/h8300/h8300-protos.h: Remove the prototype for
5785         p_operand.
5786         * config/h8300/h8300.c (p_operand): Remove.
5787         * config/h8300/h8300.md: Replace p_operand with
5788         const_int_operand.
5789
5790 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5791
5792         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5793         comment.
5794         (output_return_instruction): Allow use of LDR to unstack
5795         return addresss even for interrupt handlers or when
5796         interworking.  If compiling for ARMv5, use interworking-safe
5797         return instructions by default.  Remove duplicated code and
5798         lengthy "strcat" sequences.
5799
5800 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5801
5802         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5803         (LINK_EH_SPEC): Define.
5804         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5805
5806 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5807
5808         * config/s390/s390.c (s390_emit_prologue): Do not set the
5809         frame_related flag for call-clobbered registers.
5810
5811 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5812
5813         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5814         (construct_container): Fix handling of SSE operands.
5815         (ix86_expand_builtin): Fix handling of 64bit pointers.
5816         (mmx_maskmovq_rex): New pattern.
5817
5818 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5819
5820         * regrename.c (kill_set_value): Handle subregs properly.
5821
5822 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5823
5824         * objc/objc-act.c (handle_impent): Remove leading '*'
5825         from objc_class_name.
5826
5827 2002-02-17  Richard Henderson  <rth@redhat.com>
5828
5829         * config/alpha/alpha.c (some_small_symbolic_operand,
5830         some_small_symbolic_operand_1, split_small_symbolic_operand,
5831         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5832         Handle small SYMBOL_REFs anywhere, not just inside memories.
5833         * config/alpha/alpha-protos.h: Update.
5834         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5835         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5836
5837 2002-02-17  Roland McGrath  <roland@frob.com>
5838
5839         * config.gcc (powerpc-*-gnu-gnualtivec*,
5840         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5841         * config/rs6000/gnu.h: New file.
5842         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5843         Grok "gnu" in rs6000_abi_name.
5844         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5845         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5846         Grok -mcall-gnu analogous to -mcall-linux et al.
5847         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5848         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5849         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5850
5851 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5852
5853         PR c/3444:
5854         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5855         shortening.
5856
5857 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5858
5859         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5860         ENDFILE_SPEC before (re)defining them.
5861
5862 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5863
5864         * config/h8300/h8300.c: Fix formatting.
5865         * config/h8300/h8300.h: Likewise.
5866
5867 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5868
5869         * doc/tm.texi: Explain why empty strings should not be
5870         marked for translation.
5871
5872 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5873
5874         * final.c (output_operand_lossage): Changed to accept
5875         printf style arguments. Change calls where necessary.
5876         * output.h (output_operand_lossage): Change declaration
5877         accordingly. Update copyright.
5878         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5879         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5880         Update copyright date where necessary.
5881
5882         * config/i386/i386.c (print_operand): Likewise. Remove use of
5883         sprintf.
5884
5885         * config/cris/cris.c (cris_operand_lossage): Likewise.
5886         Rename parameter so that exgettext recognizes it as
5887         translatable message.
5888         (LOSE_AND_RETURN): Rename parameter to msgid.
5889
5890 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5891
5892         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5893         hard coded register number with an appropriate macro.
5894         (HARD_REGNO_MODE_OK): Likewise.
5895         (ARG_POINTER_REGNUM): Likewise.
5896         (STATIC_CHAIN_REGNUM): Likewise.
5897         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5898         * config/h8300/h8300.md (define_constants): Define more
5899         register numbers.
5900
5901 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5902
5903         * config/i386/i386.h: Don't mark empty strings for translation.
5904
5905 2002-02-16  H.J. Lu <hjl@gnu.org>
5906
5907         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5908
5909 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
5910
5911         * cppinit.c (merge_include_chains): Check for brack being
5912         NULL before attempting to merge it with qtail.
5913
5914 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5915
5916         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5917         DBX_DEBUG.
5918
5919 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5920
5921         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5922
5923 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5924
5925         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5926         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5927         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5928
5929 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5930
5931         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5932         now only if !TARGET_FIX.
5933         (*movsi_nt_vms_fix): New pattern.
5934
5935 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
5936
5937         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5938         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5939         (alpha_sa_mask, alpha_sa_size): Reflect above change.
5940         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5941         (alpha_start_function, alpha_expand_epilogue): Likewise.
5942         (unicosmk_gen_dsib): Likewise.
5943
5944 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5945
5946         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5947
5948 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
5949
5950         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5951         check_and_change_labels, s390_final_chunkify): Delete.
5952         (s390_split_branches, s390_chunkify_pool): New functions.
5953         (s390_function_prologue): Call them.
5954
5955         * config/s390/s390.h (S390_REL_MAX): Delete.
5956         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5957
5958         * config/s390/s390.md (cjump, icjump, jump): Fix length
5959         attribute calculation.
5960
5961
5962 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
5963
5964         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5965         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5966
5967 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5968
5969         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5970         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5971         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5972
5973 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5974
5975         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5976
5977 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5978
5979         * reload.c (find_dummy_reload): Check that an output register
5980         is valid for its mode.
5981
5982 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
5983
5984         * combine.c (known_cond): After replacing the REG of a SUBREG, try
5985         to simplify it.
5986
5987         * function.c (assign_parms): Demote promoted argument passed by
5988         transparent reference.
5989
5990 2001-02-14      Joel Sherrill <joel@OARcorp.com>
5991
5992         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5993         -Acpu() and -Amachine() to eliminate warnings.
5994
5995 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
5996
5997         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5998
5999 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6000
6001         * config/h8300/h8300-protos.h: Update the prototype for
6002         const_costs.
6003         * config/h8300/h8300.c (const_costs): Treat SET as a little
6004         more expensive operation.
6005         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6006         reference to const_costs.
6007
6008 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6009
6010         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6011
6012 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6013
6014         PR c/5503:
6015         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6016         use arguments from newtype.
6017
6018 2002-02-13  Eric Christopher  <echristo@redhat.com>
6019
6020         * config/mips/mips.c (override_options): Add check for march/mipsX
6021         on the same command line. Fix error message in cpu processing.
6022         Remove architecture and ISA checks.
6023
6024 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6025
6026         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6027
6028         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6029
6030 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6031
6032         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6033         alternatives.
6034         ("*movv8hi_internal1"): Same.
6035         ("*movv16qi_internal1"): Same.
6036         ("*movv4sf_internal1"): Same.
6037
6038         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6039         not push_reload for altivec modes.
6040
6041 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6042
6043         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6044         all RTEMS targets including removal of #includes from config/*/rtems*.h
6045         file and adding them to tm_file setting. Added xm_defines=POSIX to
6046         many targets.
6047         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6048         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6049         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6050         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6051         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6052         config/m68k/rtemself.h: Ditto.
6053         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6054         config/mips/rtems64.h: Ditto.
6055         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6056         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6057         Ditto.
6058         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6059         config/sparc/rtemself.h: Ditto.
6060         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6061         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6062         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6063         more like arm-elf.
6064         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6065         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6066         target made more similar to i386-elf.
6067         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6068         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6069         be similar to config/m68k/t-m68kelf.
6070         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6071
6072 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6073
6074         * regmove.c (kill_value): Handle subregs.
6075
6076 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6077
6078         * i386.md (mul patterns): Allow memory operand to be first;
6079         add expanders where needed; fix constraints.
6080         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6081         Allow memory operand to be the first.
6082
6083         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6084         operands.
6085
6086 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6087
6088         PR c/5681:
6089         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6090         GET_MODE (x).
6091
6092 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6093
6094         PR optimization/5547:
6095         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6096         all valid IA-32 address modes involving non-scaled %ebx and
6097         GOT/GOTOFF as displacement.
6098
6099 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6100
6101         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6102         after emitting ltorg insns.
6103
6104         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6105         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6106         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6107         *abssf2): Fix "op_type" attribute.
6108
6109 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6110
6111         * mkconfig.sh: Avoid using a subshell redirect.
6112         ($output.T): Change to $(output)T.
6113         (ENABLE_NLS): Remove unneeded undef.
6114
6115         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6116         * config/alpha/x-vms (libsubdir): Define.
6117
6118         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6119         register frame procedures. Optimize retrieving context.
6120
6121         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6122         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6123         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6124
6125 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6126
6127         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6128         Make same change as for find_base_value.
6129
6130 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6131
6132         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6133         of QImode and SImode.
6134
6135 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6136
6137         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6138         length computation of movsi.
6139         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6140
6141 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6142
6143         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6144         operands[2] to register_operand.
6145
6146 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6147
6148         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6149
6150 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6151
6152         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6153         for altivec_lvx* and altivec_stvx*.
6154         ("*movv4si_internal"): Add constraint for loading from GPRs.
6155         ("*movv8hi_internal1"): Same.
6156         ("*movv16qi_internal1"): Same.
6157         ("*movv4sf_internal1"): Same.
6158
6159         * config/rs6000/rs6000.c (altivec_register_operand): New.
6160
6161         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6162         altivec_register_operand.
6163
6164 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6165
6166         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6167         handle SYMBOL_REF.
6168
6169 2002-02-13  Stan Shebs  <shebs@apple.com>
6170
6171         * c-typeck.c (digest_init): Handle vectors.
6172         (really_start_incremental_init): Same.
6173         (pop_init_level): Same.
6174         (process_init_element): Same.
6175
6176         * varasm.c (output_constant): Same.
6177
6178         * expr.c (clear_storage): Same.
6179         (store_constructor): Same.
6180
6181 2002-02-12  Eric Christopher  <echristo@redhat.com>
6182
6183         * explow.c (hard_function_value): Add comment explaining
6184         signed/unsigned comparison.
6185
6186 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6187
6188         * jump.c (never_reached_warning): Add finish argument.
6189         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6190         real insn after end.
6191         * rtl.h (never_reached_warning): Adjust prototype.
6192         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6193         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6194         never_reached_warning.
6195
6196 2002-02-12  Graham Stott  <grahams@redhat.com>
6197
6198         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6199
6200 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6201
6202         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6203         logical shifts on H8/300.
6204         (shift_alg_si): Improve several shifts on H8/300.
6205         (get_shift_alg): Likewise.
6206
6207 2002-02-12  Graham Stott  <grahams@redhat.com>
6208
6209         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6210
6211 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6212
6213         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6214         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6215
6216 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6217
6218         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6219         non-CONST_INT through default_assemble_integer.
6220         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6221         <case 8>: Abort for CONST_DOUBLE.
6222
6223 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6224
6225         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6226         is specified.
6227         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6228         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6229
6230 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6231
6232         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6233
6234 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6235
6236         * regrename.c (regrename_optimize): Don't accept a
6237         part-clobbered register if the replaced register is not part
6238         clobbered.
6239
6240         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6241         take padding into account when computing the argument value.
6242
6243         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6244
6245         * combine.c (try_combine): Apply substitutions in
6246         CALL_INSN_FUNCTION_USAGE too.
6247
6248 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6249
6250         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6251         __builtin_altivec_abs*.
6252         (bdesc_abs): New.
6253
6254         * config/rs6000/rs6000.h (rs6000_builtins): Add
6255         ALTIVEC_BUILTIN_ABS*.
6256
6257         * config/rs6000/altivec.h: Use const char for builtins expecting
6258         literals.
6259         (vec_abs): New versions for C and C++.
6260         (vec_abss): Same.
6261
6262 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6263
6264         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6265         using Pmode.
6266
6267 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6268
6269         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6270         constant definition from h8300.md.
6271         (FRAME_POINTER_REGNUM): Likewise.
6272         * config/h8300/h8300.md (define_constants): Add FP_REG.
6273
6274 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6275
6276         * config/h8300/h8300.c (print_operand): Remove redundant code.
6277
6278 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6279
6280         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6281         * config/h8300/h8300.c (byte_reg): Make it static.
6282
6283 2002-02-10  Richard Henderson  <rth@redhat.com>
6284
6285         PR c/5623
6286         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6287
6288 2002-02-10  Richard Henderson  <rth@redhat.com>
6289
6290         PR c++/5624
6291         * tree.c (append_random_chars): Don't abort if main_input_filename
6292         does not exist.
6293
6294 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6295
6296         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6297
6298 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6299
6300         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6301         (pushhi1): Likewise.
6302
6303 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6304
6305         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6306         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6307
6308 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6309
6310         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6311         remove MASK_VIS.
6312         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6313
6314 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6315
6316         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6317         a half of an SImode register on H8/300.
6318
6319 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6320
6321         * i386.md (movdi_2): Add missing '!'.
6322
6323 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6324
6325         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6326         definitions.
6327
6328 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6329
6330         * config/h8300/h8300.md (length): Correct the distance valid
6331         for the short branch.
6332
6333 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6334
6335         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6336
6337 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6338
6339         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6340         registers in SImode.
6341         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6342         part-clobbered.
6343
6344         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6345         patch.
6346
6347         Contribute sh64-elf.
6348         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6349         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6350         (sh_cannot_modify_jumps_p): New function.
6351         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6352         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6353         (sh_ms_bitfield_layout_p): New function.
6354         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6355                     Zack Weinberg  <zack@codesourcery.com>
6356         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6357         expand_simple_binop instead of expand_binop.
6358         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6359         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6360         use of .quad and .uaquad.
6361         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6362         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6363         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6364         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6365         movdi_const_16bit): Make sure all CONSTs have modes.
6366         (sym2PIC): Ditto, but by adjusting all callers.
6367         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6368         if the prologue calls the SHmedia argument decoder or register
6369         saver.
6370         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6371         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6372         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6373         (sh_expand_epilogue): Don't emit USE of return target register.
6374         (prepare_move_operands): Legitimize DImode PIC addresses.
6375         (sh_media_register_for_return): Skip tr0, used to initialize the
6376         PIC register.
6377         (sh_expand_prologue): Remove explicit USE of return register.
6378         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6379         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6380         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6381         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6382         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6383         EXTRA_CONSTRAINT_T.
6384         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6385         (MOVI_SHORI_BASE_OPERAND_P): New.
6386         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6387         (EXTRA_CONSTRAINT_T): Define in terms of them.
6388         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6389         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6390         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6391         alternatives supporting TARGET_REGS.
6392         (UNSPEC_GOTPLT): New constant.
6393         (movdi split): Move incrementing of LABEL_NUSES...
6394         (movdi_const, movdi_const_32bit): Here.  Use
6395         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6396         (movdi_const_16bit): New.
6397         (call, call_value) [flag_pic]: Use GOTPLT.
6398         (call_pop, call_value_pop): New expands.
6399         (call_pop_compact, call_pop_rettramp): New insns.
6400         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6401         (sibcall) [flag_pic]: Use GOT.
6402         (builtint_setjmp_receiver): Remove bogus, unused expand.
6403         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6404         (*pt, *ptb, ptrel): New insns.
6405         (sym2GOT): Handle DImode GOT.
6406         (sym2GOTPLT, symGOTPLT2reg): New expands.
6407         (sym2PIC): New expand.
6408         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6409         (shcompact_return_tramp_i): Use return register explicitly.
6410         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6411         disable flag_reorder_blocks.
6412         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6413         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6414         clobbers, for clarity.
6415         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6416         restoring of r0 in macl as MAYBE_DEAD.
6417         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6418         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6419         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6420         alter_subreg all over.
6421         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6422         reload, instead of emitting instructions that would require
6423         reloading.
6424         (casesi_load_media): Add missing modes.
6425         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6426         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6427         as used if the argument decoder is called.
6428         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6429         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6430         Pmode, then extend it to DImode if necessary.
6431         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6432         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6433         constants in FPU-enabled SHmedia, let them be loaded from memory.
6434         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6435         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6436         Adjust whitespace in assembly output templates.
6437         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6438         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6439         mode of if_then_else.
6440         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6441         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6442         sh.h.
6443         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6444                     Joern Rennecke <amylaar@redhat.com>
6445         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6446         (SUBTARGET_CPP_PTR_SPEC): New.
6447         (SUBTARGET_CPP_SPEC): Remove.
6448         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6449         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6450         Fix typo in previous checkin.
6451         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6452         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6453         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6454                     Alexandre Oliva  <aoliva@redhat.com>
6455         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6456         what single FP register can hold for SHmedia target.
6457         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6458                     Alexandre Oliva  <aoliva@redhat.com>
6459         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6460         Do not split into SUBREG.
6461         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6462         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6463         and added new functions as specified in SH5 ABI r9.
6464         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6465         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6466         8-byte boundary.
6467         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6468         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6469         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6470         and consttable_window_ends.
6471         2001-06-03  Graham Stott  <grahams@redhat,com>
6472         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6473         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6474         * config/sh/sh.c (print_operand): Handle floating-point pair,
6475         vector and matrix registers.
6476         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6477         vector modes into account.
6478         * config/sh/sh.md (movv2sf): Split move between registers into
6479         movdf.
6480         (movv4sf, movv16sf): Introduce insns that get split only after
6481         reload.
6482         * config/sh/shmedia.h: Fix Copyright dates.
6483         * config/sh/ushmedia.h: Likewise.  Move loop counter
6484         declarations into conditionals that uses them.
6485         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6486         loop boundary.
6487         * config/sh/sshmedia.h: Fix Copyright dates.
6488         (sh_media_PUTCFG): Fix constraints.
6489         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6490         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6491         ptrmemfunc_vbit_in_delta for SH5.
6492         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6493         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6494         * invoke.texi: Likewise.
6495         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6496         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6497         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6498         GCC_pop_shmedia_regs_nofpu): New global symbols.
6499         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6500         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6501         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6502         compact function with nonlocal labels.
6503         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6504         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6505         (initial_elimination_offset): Account for their stack space.
6506         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6507         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6508         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6509         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6510         least one of the operands to be a register.
6511         (movv2sf): Likewise.  Renamed to movv2sf_i.
6512         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6513         prepare_move_operands() before emitting SHmedia insns.
6514         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6515         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6516         Don't save nor initialize r12.  Don't mis-align the stack.
6517         Pad the code with a nop.
6518         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6519         stack.
6520         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6521         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6522         [__SHMEDIA__]: Implement.
6523         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6524         * config/sh/sh.md: Set latency of `pt' closer to reality.
6525         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6526         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6527         Set move, load and store type attributes.
6528         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6529         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6530         profiling.
6531         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6532         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6533         * config/sh/sh.c (sh_media_register_for_return): New function.
6534         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6535         branch-target register.
6536         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6537         * config/sh/sh.md (return_media_i): Use any call-clobbered
6538         branch-target register.
6539         (return_media): If r18 wasn't copied in the prologue, copy it
6540         here.
6541         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6542         Clear class FP0_REGS.
6543         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6544         from elf.h.
6545         2001-03-08  DJ Delorie  <dj@redhat.com>
6546         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6547         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6548         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6549         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6550         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6551         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6552         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6553         return value correctly for call_cookie.
6554         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6555         * config/sh/crt1.asm (start): Modified so as to call
6556         ___setup_argv_and_call_main.
6557         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6558         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6559         SHmedia mode.
6560         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6561         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6562         (STRIP_NAME_ENCODING): Use it.
6563         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6564         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6565         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6566         prepare_scc_operands().
6567         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6568         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6569         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6570         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6571         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6572         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6573         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6574         used in shcompact_incoming_args.
6575         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6576         change.
6577         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6578         mode.
6579         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6580         Adjust accordingly.
6581         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6582         Simplify.  Adjust.  Add sanity check.
6583         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6584         FPU_SINGLE_BIT.
6585         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6586         TARGET_SHCOMPACT.
6587         (udivsi3, divsi3): Use them.
6588         (force_mode_for_call): New insn.
6589         (call, call_value, sibcall_value): Emit it before SHcompact
6590         calls.
6591         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6592         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6593         call cookie is non-NULL before taking its value.
6594         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6595         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6596         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6597         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6598         block.
6599         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6600         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6601         temporary for stack adjusts.  Use MACL and MACH to pass
6602         arguments to shcompact_incoming_args.
6603         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6604         clobber r1.
6605         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6606         (nested_trampoline): Load static chain address into r1.
6607         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6608         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6609         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6610         fp_arith_reg_operand().
6611         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6612         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6613         and use signed compares for them.
6614         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6615         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6616         ones properly aligned.
6617         (find_barrier): Account for extra alignment needed for 8-byte wide
6618         constants.
6619         (machine_dependent_reorg): Require a label for the second 4-byte
6620         constant after an 8-byte one.
6621         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6622         change.
6623         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6624         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6625         last_float when switching float modes.
6626         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6627         auto-increment for general-purpose registers.
6628         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6629         result.
6630         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6631         for stack adjust.
6632         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6633         registers for varargs.
6634         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6635         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6636         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6637         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6638         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6639         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6640         call_cookie accordingly.
6641         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6642         (SHCOMPACT_BYREF): Likewise.
6643         (SHCOMPACT_FORCE_ON_STACK): New macro.
6644         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6645         (sh_builtin_saveregs): Likewise.
6646         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6647         shcompact_incoming_args): Use new shift values.  Support
6648         sequences of consecutive and non-consecutive pushes/pops.
6649         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6650         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6651         * config/sh/sh.h (TEXT_SECTION): Define.
6652         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6653         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6654         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6655         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6656         return values on FPU-enabled SHmedia.
6657         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6658         FPU-enabled SHmedia.
6659         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6660         value is returned in a non-FP reg and is not returned by
6661         reference.
6662         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6663         jump_ind.
6664         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6665         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6666         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6667         quad-aligned to be passed by callee-copy reference.
6668         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6669         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6670         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6671         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6672         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6673         copying low-numbered FP regs to r7 and r8.
6674         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6675         FP regs to general-purpose regs only if the copy was passed on the
6676         stack.
6677         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6678         copying FP reg to r9.
6679         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6680         copy FP regs to general-purpose regs only in outgoing calls.
6681         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6682         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6683         HOST_WIDE_INT.
6684         * config/sh/sh.h (struct sh_args): Document all fields.
6685         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6686         passed partially on the stack should not consider making
6687         sibcalls.
6688         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6689         stack_regs only for incoming calls.  When passing FP args,
6690         make sure there are FP regs available before modifying
6691         call_cookie.
6692         (SHCOMPACT_BYREF): Pass double args in general-purpose
6693         registers by reference.
6694         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6695         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6696         attempt to generate sibcalls if the caller got any arguments
6697         by reference.
6698         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6699         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6700         to 8-byte boundaries.
6701         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6702         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6703         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6704         stored in the stack.
6705         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6706         for the offsets to have the ISA bit set.
6707         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6708         invocation.  Use beq instead of bgt to mark end of sequence of
6709         loads.
6710         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6711         bgt to mark end of sequence of stores.
6712         * config/sh/sh.c (arith_operand): Don't check whether
6713         CONST_OK_FOR_J for now.
6714         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6715         instead of long for conversion.
6716         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6717         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6718         before passing it to fprintf.
6719         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6720         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6721         Call set_fpscr before reading/writing SR.
6722         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6723         Call set_fpscr.
6724         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6725         SHmedia code.
6726         (FMOVD_WORKS): Define on SH5 with FPU.
6727         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6728         setting.
6729         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6730         _fpscr_values.
6731         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6732         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6733         address.
6734         (ia_main_table): Ditto.
6735         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6736         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6737         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6738         the definitions from sh.h.
6739         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6740         TARGET_SH5.
6741         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6742         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6743         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6744         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6745         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6746         Increment LABEL_NUSES.
6747
6748         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6749         TARGET_SH5.
6750         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6751         defined.
6752         * config/sh/elf.h (SIZE_TYPE): Likewise.
6753         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6754         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6755         shcompact_incoming_args): Load switch table addresses using
6756         datalabel.
6757         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6758         (NO_BUILTIN_SIZE_TYPE): Define.
6759         (SIZE_TYPE): Don't define.
6760         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6761         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6762         definition of __SH5__=32 for -m5-compact-nofpu.
6763         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6764         ADDR_DIFF_VEC.
6765         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6766         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6767         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6768         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6769         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6770         (INSN_LENGTH_ALIGNMENT): Likewise.
6771         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6772         * config/sh/sh.md (call, call_value, sibcall): Simplify
6773         copying of non-branch-target register.
6774         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6775         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6776         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6777         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6778         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6779         floating-point values as structs.
6780         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6781         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6782         general-purpose register.
6783         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6784         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6785         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6786         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6787         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6788         (ENCODE_SECTION_INFO): Enclose variables and constants in
6789         DATALABEL unspecs.
6790         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6791         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6792         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6793         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6794         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6795         SH_DATALABEL_ENCODING to the symbol name.
6796         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6797         convert_mode().
6798         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6799         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6800         UNSPEC_DATALABEL.
6801         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6802         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6803         (DATALABEL_REF_P): Don't require CONST.
6804         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6805         REL label.
6806         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6807         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6808         right.
6809         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6810         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6811         Use shallow_copy_rtx and PUT_MODE to change the mode of
6812         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6813         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6814         on SHmedia using GENERAL_REGs.
6815         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6816         bltu_media_i): Fix reversion of conditions.
6817         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6818         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6819         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6820         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6821         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6822         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6823         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6824         (GCC_nested_trampoline): Likewise.
6825         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6826         * config/sh/sh.c (gen_datalabel_ref): Define.
6827         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6828         (INITIALIZE_TRAMPOLINE): Likewise.
6829         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6830         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6831         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6832         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6833         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6834         (ic_invalidate): Adjust for SH5.
6835         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6836         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6837         _nested_trampoline.
6838         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6839         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6840         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6841         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6842         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6843         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6844         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6845         * config/sh/sh.c (target_reg_operand): Match only target-branch
6846         registers and pseudos that aren't virtual registers.
6847         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6848         Copy operands that don't match target_reg_operand to pseudos.
6849         (call_media, call_value_media, sibcall_media): Use
6850         target_reg_operand instead of target_operand.
6851         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6852         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6853         * config/sh/sh.c (target_reg_operand): Match hardware registers
6854         other than branch-target registers.
6855         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6856         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6857         (fpscr_values) [SH5 == 32]: Define.
6858         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6859         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6860         Handle function addresses coming in SUBREGs.
6861         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6862         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6863         shcompact_return_trampoline): Use datalabel where appropriate.
6864         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6865         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6866         general-purpose register to copy one branch-target register to
6867         another.
6868         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6869         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6870         SYMBOL_REFs with VOIDmode.
6871         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6872         bltu_media_i): New insns.
6873         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6874         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6875         (INIT_CUMULATIVE_ARGS): Likewise.
6876         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
6877         * machmode.def (V16SFmode): New mode.
6878         * c-common.c (type_for_mode): Support V2SF and V16SF.
6879         * tree.c (build_common_tree_nodes_2): Likewise.
6880         * tree.h (tree_index): Likewise.
6881         * calls.c (emit_call_1): Take args_so_far.  Adjust all
6882         callers.  Introduce CALL_POPS_ARGS.
6883         * tm.texi (CALL_POPS_ARGS): Document.
6884         * config/sh/crt1.asm: Implement in SHmedia mode.
6885         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6886         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6887         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6888         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6889         Implement divsi and udivsi in SHmedia mode.  Introduce
6890         SHcompact trampolines.
6891         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6892         only in SHmedia64.
6893         (regno_reg_class): Rewrite.
6894         (fp_reg_names): Remove.
6895         (sh_register_names, sh_additional_register_names): New.
6896         (print_operand): Added `u'.  Support SUBREGs in addresses.
6897         Add parentheses around shifted CONSTs.
6898         (output_file_start): Output .mode and .abi directives.
6899         (shiftcosts, addsubcosts, multcosts): Adjust.
6900         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
6901         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
6902         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
6903         bytes, not registers.  Take into account the need for the
6904         SHcompact incoming args trampoline.  Adjust all callers.
6905         (sh_expand_prologue): Take stack_regs into account.  Call
6906         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
6907         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
6908         stack aligned as per SH5 ABI.
6909         (sh_builtin_saveregs): Support SH5 ABI.
6910         (sh_build_va_list, sh_va_start): Likewise.
6911         (initial_elimination_offset): Take alignment into account.
6912         Compute location of PR according to the SH5 stack frame.
6913         (arith_reg_operand): Reject branch-target registers.
6914         (shmedia_6bit_operand): New.
6915         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6916         (target_reg_operand): Match DImode only.  Accept SUBREGs.
6917         (target_operand): New.
6918         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6919         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
6920         SIBCALL_REGS for SHmedia.
6921         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6922         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6923         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6924         (TARGET_SWITCHES): New SH5 flags.
6925         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
6926         VALID_REGISTER_P to disable unsupported registers.
6927         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6928         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6929         (FUNCTION_ARG_PADDING): Define.
6930         (FASTEST_ALIGNMENT): Adjust.
6931         (SH_REGISTER_NAMES_INITIALIZER): New.
6932         (sh_register_names): Declare.
6933         (DEBUG_REGISTER_NAMES): Define.
6934         (REGISTER_NAMES): Define based on sh_register_names.
6935         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6936         (sh_additional_register_names): Declare.
6937         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6938         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6939         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6940         (REGISTER_NATURAL_MODE): Define.
6941         (FIRST_PSEUDO_REGISTER): Adjust.
6942         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6943         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6944         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6945         (VECTOR_MODE_SUPPORTED_P): Define.
6946         (REG_CLASS_CONTENTS): Adjust.
6947         (SMALL_REGISTER_CLASSES): Adjust.
6948         (REG_ALLOC_ORDER): Adjust.
6949         (INDEX_REG_CLASS): Adjust.
6950         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6951         (CONST_OK_FOR_LETTER_P): Adjust.
6952         (PREFERRED_RELOAD_CLASS): Adjust.
6953         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6954         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6955         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6956         (FIRST_FP_PARM_REG): Adjust.
6957         (CALL_POPS_ARGS): Define.
6958         (FUNCTION_ARG_REGNO_P): Adjust.
6959         (struct sh_args): New fields.
6960         (GET_SH_ARG_CLASS): Adjust.
6961         (INIT_CUMULATIVE_ARGS): Adjust.
6962         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6963         (FUNCTION_ARG_ADVANCE): Adjust.
6964         (FUNCTION_ARG): Adjust.
6965         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6966         (FUNCTION_ARG_CALLEE_COPIES): Define.
6967         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6968         (STRICT_ARGUMENT_NAMING): Define.
6969         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6970         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6971         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6972         (SETUP_INCOMING_VARARGS): Adjust.
6973         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6974         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6975         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6976         (SUBREG_OK_FOR_INDEX_P): Adjust.
6977         (EXTRA_CONSTRAINT_S): Update.
6978         (EXTRA_CONSTRAINT_T): New.
6979         (EXTRA_CONSTRAINT): Adjust.
6980         (GO_IF_LEGITIMATE_INDEX): Adjust.
6981         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6982         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6983         (MOVE_MAX): Adjust.
6984         (MAX_MOVE_MAX): Define.
6985         (Pmode): Adjust.
6986         (CONST_COSTS): Adjust.
6987         (REGISTER_MOVE_COST): Adjust.
6988         (BRANCH_COST): Adjust.
6989         (TEXT_SECTION_ASM_OP): Adjust.
6990         (DBX_REGISTER_NUMBER): Adjust.
6991         (ASM_OUTPUT_DOUBLE_INT): New.
6992         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6993         (PREDICATE_CODES): Adjust.
6994         (PROMOTE_MODE): Adjust.
6995         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6996         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6997         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6998         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6999         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7000         (TR0_REG, TR1_REG, TR2_REG): New.
7001         (XD0_REG): Renumber.
7002         (UNSPEC_COMPACT_ARGS): New.
7003         (type): Added pt and ptabs.
7004         (length): Default to 4 on SHmedia.  Default pt length to 12
7005         and     20 on SHmedia32 and SHmedia64, respectively.
7006         (pt): New function unit.
7007         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7008         Add whitespace between operands of SHmedia instructions.
7009         (movdicc): Fix.
7010         (adddi3_media, addsi3_media): Adjust constraints.
7011         (subsi3) [SHmedia]: Force operand 1 into a register.
7012         (udivsi3_i1_media, udivsi3_i4_media): New.
7013         (udivsi3): Support SHmedia.
7014         (divsi3_i1_media, divsi3_i4_media): New.
7015         (divsi3): Support SHmedia.
7016         (anddi3, iordi3, xordi3): Adjust constraints.
7017         (zero_extendhidi2, zero_extendqidi2): New.
7018         (extendsidi2, extendhidi2, extendqidi2): New.
7019         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7020         (pop_e, pop_fpul, pop_4): Likewise.
7021         (movsi_media): Support FP and BT registers.
7022         (movsi_media_nofpu): New.  Adjust splits to DImode.
7023         (lduw, ldub): Renamed to zero_extend* above.
7024         (movqi_media): Fix typo.
7025         (movdi_media): Support FP and BT registers.
7026         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7027         (movdi_const_32bit): New.
7028         (shori_media): Require immediate operand.  Use `u' for output.
7029         (movdf_media, movsf_media): Simplified.
7030         (movdf_media_nofpu, movsf_media_nofpu): New.
7031         (movdf, movsf): Adjust
7032         (movv2sf, movv2sf, movv16sf): New.
7033         (beq_media, beq_media_i): Adjust constraints.  Don't use
7034         scratch BT register.
7035         (bne_media, bne_media_i): Likewise.
7036         (bgt_media, bgt_media_i): Likewise.
7037         (bge_media, bge_media_i): Likewise.
7038         (bgtu_media, bgtu_media_i): Likewise.
7039         (bgeu_media, bgeu_media_i): Likewise.
7040         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7041         bunordered): Emit jump insn.  Force operands to registers when
7042         needed.
7043         (jump_media, jump): Simplify.
7044         (call_compact, call_compact_rettramp): New.
7045         (call_value_compact, call_value_compact_rettramp): New.
7046         (call_media, call_value_media): Simplify.
7047         (sibcall_compact, sibcall_media): New.
7048         (call, call_value): Adjust for SHmedia and SHcompact.
7049         (sibcall, sibcall_value, untyped_call): Likewise.
7050         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7051         (indirect_jump): Adjust for SHmedia.
7052         (casesi_jump_media): New.
7053         (nop): Re-enable for SHmedia.
7054         (call_site): Restrict to SH1.
7055         (casesi): Adjust for SHmedia.
7056         (casesi_shift_media, casesi_load_media): New.
7057         (return): Explicitly use PR register.  Call return trampoline
7058         on SHcompact.
7059         (return_i): Explicitly use PR register.
7060         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7061         (return_media): Adjust.
7062         (shcompact_incoming_args): New.
7063         (epilogue): Adjust.
7064         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7065         (movstrsi): Disable on SH5.
7066         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7067         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7068         (subsf3, subsf3_media): Likewise.
7069         (mulsf3, mulsf3_media, mac_media): Likewise.
7070         (divsf3, divsf3_media): Likewise.
7071         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7072         (floatsisf2, fux_truncsfsi2): Likewise.
7073         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7074         constraints.
7075         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7076         (cmpunsf_media, cmpsf): Likewise.
7077         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7078         (abssf2, abssf2_media): Likewise.
7079         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7080         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7081         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7082         (floatsidf2, fix_truncdfsi2): Likewise.
7083         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7084         constraints.
7085         (cmpeqdf_media, cmpgtdf_media): Likewise.
7086         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7087         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7088         (absdf2, absdf2_media): Likewise.
7089         (extendsfdf2, extendsfdf2_media): Likewise.
7090         (truncsfdf2, truncsfdf2_media): Likewise.
7091         * config/sh/sh64.h: New file.
7092         * config/sh/t-sh64: New file.
7093         * config/sh/shmedia.h: New file.
7094         * config/sh/ushmedia.h: New file.
7095         * config/sh/sshmedia.h: New file.
7096         * configure.in: Added sh64-*-elf.
7097         * configure: Rebuilt.
7098         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7099         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7100         (reg_class_from_letter): Use `b' for TARGET_REGS.
7101         (print_operand): Support `%M', `%m', `AND' and
7102         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7103         (andcosts): Adjust for SHmedia.
7104         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7105         Likewise.
7106         (target_reg_operand): New function.
7107         * config/sh/sh-protos.h (target_reg_operand): Declare.
7108         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7109         FP registers on SH5.
7110         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7111         on SH4.
7112         (TARGET_REGISTER_P): New macro.
7113         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7114         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7115         (EXTRA_CONSTRAINT_S): New macro.
7116         (EXTRA_CONSTRAINT): Adjust.
7117         (FLOAT_TYPE_SIZE): Define to 32.
7118         (Pmode): DImode on SHmedia.
7119         (CONST_COSTS): Adjust for SHmedia literals.
7120         (PREDICATE_CODES): Added target_reg_operand.
7121         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7122         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7123         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7124         (cmpdi): Accept SHmedia.
7125         (movdicc_false, movdicc_true): New insns.
7126         (movdicc): New expand.
7127         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7128         no_new_pseudos.
7129         (addsi3_media): Match `S' constraint.
7130         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7131         (negdi2): Expand for SHmedia.
7132         (one_cmpldi2): New expand.
7133         (zero_extendsidi2): Change from expand to insn.
7134         (extendsidi2): Add constraints.
7135         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7136         LD/ST address.  Fix SI immediate loading split.
7137         (movhi_media, movqi_media, lduw, ldub): New insns.
7138         (movhi, movqi): Accept SHmedia.
7139         (shori_media, movdi_media): Relax input constraints.  Split
7140         symbolic constants.
7141         (movdf_media, movsf_media): New insn.  New split to movdi.
7142         (movdf, movsf): Match on SHmedia.
7143         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7144         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7145         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7146         (bunordered): New expand.
7147         (jump_compact): Renamed from `jump'.
7148         (jump_media): New insn.
7149         (jump): New expand.
7150         (call_media, call_value_media): New insns.
7151         (call, call_value): Adjust.
7152         (indirect_jump_compact): Renamed from `indirect_jump'.
7153         (indirect_jump_media): New insn.
7154         (indirect_jump): New expand.
7155         (untyped_call, return): Accept SHmedia.
7156         (return_media): New insn.
7157         (prologue, epilogue, blockage): Accept SHmedia.
7158         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7159         (sunordered): New expand.
7160         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7161         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7162         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7163         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7164         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7165         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7166         abssf2_media): New insns.
7167         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7168         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7169         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7170         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7171         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7172         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7173         absdf2_media): New insns.
7174         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7175         (extendsfdf2_media, truncdfsf2_media): New insns.
7176         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7177         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7178         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7179         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7180         * config/sh/sh.md (adddi3): New expand.
7181         (adddi3_media, adddi3z_media): New insns.
7182         (adddi3_compact): Renamed from adddi3.
7183         (addsi3_media): Use add.l r63 to add constant zero.
7184         (subdi3): New expand.
7185         (subdi3_media): New insn.
7186         (subdi3_compact): Renamed from subdi3.
7187         (mulsidi3): New expand.
7188         (mulsidi3_media): New insn.
7189         (mulsidi3_compact): Renamed from mulsidi3.
7190         (umulsidi3): New expand.
7191         (umulsidi3_media): New insn.
7192         (umulsidi3_compact): Renamed from umulsidi3.
7193         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7194         (ashlsi3, ashrsi3, lshrsi3): Use them.
7195         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7196         (ashldi3, ashrdi3, lshrdi3): Use them.
7197         (zero_extendsidi2): New expand.
7198         (extendsidi2): New insn.
7199         (movsi_media): New insn.  Split to movdi to load constants.
7200         (movsi): Enable for shmedia.
7201         (movdi_media): New insn.  Use shori_media to load wide constants.
7202         (short_media): New insn.
7203         (movdi): Enable for shmedia.
7204         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7205         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7206         (SUBTARGET_CPP_SPEC): Added `!m5'.
7207         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7208         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7209         to all other SH variants.
7210         (TARGET_DEFAULT): Set to SH1_BIT.
7211         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7212         (BITS_PER_WORD): Raise to 64 on shmedia.
7213         (MAX_BITS_PER_WORD): Change to 64.
7214         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7215         (INT_TYPE_SIZE): Keep as 32.
7216         (UNITS_PER_WORD): Raise to 8 on shmedia.
7217         (MIN_UNITS_PER_WORD): Keep as 4.
7218         (POINTER_SIZE): Raise to 64 on shmedia.
7219         (CONST_OK_FOR_J): New macro.
7220         (CONST_OK_FOR_LETTER_P): Use it.
7221         (processor_type): Add PROCESSOR_SH5.
7222         * config/sh/sh.md: Conditionalize all expands, insns and
7223         splits to TARGET_SH1.
7224         (cpu): Added sh5.
7225         (addsi3_compact): Renamed from...
7226         (addsi3): Now an expand.
7227         (addsi3_media, subsi3_media): New insns.
7228         (subsi3): Don't negate constants with SHmedia.
7229
7230         * hooks.c: New file.
7231         * hooks.h: New file.
7232         * Makefile.in (HOOKS_H): New.
7233         (TARGET_DEF_H): Added $(HOOKS_H).
7234         (OBJS): Added hooks.o.
7235         (cfgcleanup.o, bb-reorder.o): Added target.h.
7236         (hooks.o): Added dependencies.
7237         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7238         (TARGET_INITIALIZER): this.
7239         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7240         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7241         * bb-reorder.c: Include target.h.
7242         (reorder_basic_blocks): Skip if cannot modify jumps.
7243         * cfgcleanup.c: Include target.h.
7244         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7245
7246 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7247
7248         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7249         Protect jump delay slot instructions with .set noreorder and
7250         .set nomacro.
7251
7252 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7253
7254         * config/mips/mips.md (casesi_internal_di): Calculate
7255         the index into the target offset table correctly.
7256
7257 2002-02-08  Richard Henderson  <rth@redhat.com>
7258
7259         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7260         * final.c (output_addr_const): Accept and discard SUBREG.
7261         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7262         mark them unknown instead.
7263         (simplify_subtraction): Handle RTX_UNKNOWN.
7264         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7265
7266 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7267
7268         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7269
7270 2002-02-08  Richard Henderson  <rth@redhat.com>
7271
7272         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7273
7274 2002-02-08  Andreas Jaeger  <aj@suse.de>
7275
7276         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7277         * config/i386/t-linux64: New file.
7278
7279 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7280
7281         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7282         * c-parse.in (compstmt): Clear last_expr_type.
7283
7284 2002-02-07  Richard Henderson  <rth@redhat.com>
7285
7286         * loop.c (strength_reduce): Sink final_value when not
7287         eliminating a biv.
7288
7289 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7290
7291         * config/sparc/freebsd.h: Fix mismatched spec {.
7292
7293 2002-02-07  Richard Henderson  <rth@redhat.com>
7294
7295         * cfgrtl.c: Include recog.h and insn-config.h.
7296         (keep_with_call_p): Fix general_operand invocation.
7297         * Makefile.in (cfgrtl.o): Update dependencies.
7298
7299 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7300
7301         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7302         comment.  Accept HImode only if TARGET_H8300.
7303
7304 2002-02-07  Eric Christopher  <echristo@redhat.com>
7305
7306         * config/mips/crtn.asm: Cleanup #ifdefs.
7307
7308 2002-02-07  Eric Christopher  <echristo@redhat.com>
7309
7310         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7311         register 7 as RA instead of $31.
7312         * config/mips/crtn.asm: Ditto.
7313         * config/mips/mips.c (mips_move_2words): Add case for
7314         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7315         (compute_frame_size): Fix typo.
7316         (save_restore_insns): Ditto.  Make documentation about using
7317         register $7 as return register more precise.
7318         (mips_expand_epilogue): Fix comment. Add code to work around not
7319         being able to add to the stack pointer directly.
7320         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7321         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7322         epilogue.
7323
7324 2002-02-07  Tom Rix  <trix@redhat.com>
7325
7326         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7327         immediates in ldu and stdu DS opcode field.
7328         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7329         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7330         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7331
7332 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7333
7334         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7335         offset for stack bias.
7336
7337 2002-02-07  H.J. Lu <hjl@gnu.org>
7338
7339         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7340
7341 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7342
7343         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7344
7345 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7346
7347         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7348         * i386.c (x86_order_regs_for_local_alloc): New global function.
7349         * i386.h (REG_ALLOC_ORDER): CLeanup.
7350         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7351
7352 2002-02-07  Richard Henderson  <rth@redhat.com>
7353
7354         PR optimization/2463
7355         * alias.c (find_base_value): Recall base values for fixed hard regs.
7356         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7357
7358 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7359
7360         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7361         length.
7362
7363 2002-02-06  Richard Henderson  <rth@redhat.com>
7364
7365         PR c/5609
7366         * stmt.c (resolve_operand_name_1): Take more care with mixed
7367         named and unnamed operands.
7368
7369 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7370             Jan Hubicka  <jh@suse.cz>
7371
7372         * loop.c (remove_constant_addition): Avoid clobbering a shared
7373         CONST expression.
7374
7375 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7376
7377         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7378         * config/s390/t-linux64: New file.
7379         * config/s390/libgcc-glibc.ver: New file.
7380
7381 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7382
7383         * config/s390/linux64.h: Delete file.
7384         * config/s390/s390x.h: New file.
7385         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7386         as target header file.
7387         * config/s390/linux.h (TARGET_VERSION): Define depending on
7388         DEFAULT_TARGET_64BIT.
7389         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7390         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7391         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7392         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7393         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7394         (EXTRA_SPEC): New define.
7395         * config/s390/s390.h (TARGET_VERSION): Define depending on
7396         DEFAULT_TARGET_64BIT.
7397         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7398
7399 2002-02-06  Jason Merrill  <jason@redhat.com>
7400
7401         * c-decl.c (finish_function): Warn about a non-void function with
7402         no return statement and no abnormal exit.
7403         (current_function_returns_abnormally): New variable.
7404         (start_function): Clear it.
7405         (struct c_language_function): Add returns_abnormally.
7406         (push_c_function_context): Save it.
7407         (pop_c_function_context): Restore it.
7408         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7409         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7410         an explicit return type.
7411         * c-tree.h: Declare current_function_returns_abnormally.
7412         (C_FUNCTION_IMPLICIT_INT): New macro.
7413         * c-typeck.c (build_function_call): Set it.
7414         (c_expand_return): Set current_function_returns_value even if the
7415         value is erroneous.
7416
7417 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7418
7419         PR c/5420:
7420         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7421         unsafe for reevaluation.
7422
7423 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7424
7425         PR c/5482:
7426         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7427         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7428
7429 2002-02-06  Richard Henderson  <rth@redhat.com>
7430
7431         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7432         be a general_operand.  Dest for function value must be a pseudo.
7433
7434 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7435
7436         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7437         as SYMBOL_REFs from the constant pool.
7438
7439 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7440
7441         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7442         passed by invisible reference.
7443
7444 2002-02-05  Richard Henderson  <rth@redhat.com>
7445
7446         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7447
7448 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7449
7450         Implement using "base addresses" in insn operands as default.
7451         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7452         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7453         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7454         used to read the rtx value.
7455         (mmix_target_asm_function_epilogue): Fix spacing.
7456         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7457         (mmix_legitimate_address): Ditto.
7458         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7459         should be loaded with a GETA insn.  Don't allocate needless extra
7460         char for nul termination and fix misleading comment.
7461         (mmix_print_operand_address): Handle constants if
7462         TARGET_BASE_ADDRESSES.
7463         (mmix_output_register_setting): Use base addressing if
7464         TARGET_BASE_ADDRESSES and the number of insns is 3.
7465         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7466         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7467         to use R as constraint, add LDA to match s.
7468         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7469         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7470         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7471         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7472         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7473         order with other fixed registers.
7474         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7475         other parameter/call-clobbered registers.
7476         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7477         -mbase-addresses, -mno-base-addresses.
7478         (MMIX Options): Ditto.
7479
7480 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7481
7482         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7483
7484 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7485
7486         * config/rs6000/altivec.h: Change elem to _S_elem.
7487
7488 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7489
7490         * config/netbsd.h (WCHAR_TYPE): Define.
7491         (WCHAR_TYPE_SIZE): Ditto.
7492         (WINT_TYPE): Ditto.
7493         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7494         (WCHAR_UNSIGNED): Ditto.
7495         (WCHAR_TYPE_SIZE): Ditto.
7496         (WINT_TYPE): Ditto.
7497         * config/arm/netbsd.h: Likewise.
7498         * config/i386/netbsd-elf.h: Likewise.
7499         * config/i386/netbsd.h: Likewise.
7500         * config/m68k/netbsd-elf.h: Likewise.
7501         * config/m68k/netbsd.h: Likewise.
7502         * config/ns32k/netbsd.h: Likewise.
7503         * config/sparc/netbsd.h: Likewise.
7504         * config/vax/netbsd.: Likewise.
7505
7506 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7507
7508         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7509         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7510         (TARGET_INITIALIZER): this.
7511         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7512         (BITFIELD_NBYTES_LIMITED): Markup fix.
7513         * tree.h (default_ms_bitfield_layout_p): Declare.
7514         (record_layout_info): Added prev_field.
7515         * tree.c (default_ms_bitfield_layout_p): New fn.
7516         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7517         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7518         * stor-layout.c: Include target.h.
7519         (start_record_layout): Initialize prev_field.
7520         (place_field): Handle MS bit-field layout, and disregard
7521         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7522         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7523         * Makefile.in (stor-layout.o): Adjust dependencies.
7524
7525 2002-02-05  Jason Merrill  <jason@redhat.com>
7526
7527         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7528
7529 2002-02-05  Andreas Jaeger  <aj@suse.de>
7530
7531         * crtstuff.c: Fix comments.
7532
7533 2002-02-05  Richard Henderson  <rth@redhat.com>
7534
7535         PR fortran/3393
7536         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7537         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7538
7539         PR fortran/3392
7540         * config/mips/mips.c (function_arg): Handle TImode.
7541         (function_arg_advance): Likewise.
7542
7543 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7544
7545         * config/rs6000/altivec.h (vec_step_help): Rename to
7546         __vec_step_help.
7547
7548 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7549
7550         * config/rs6000/altivec.h: Fix typos.
7551
7552 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7553
7554         * config/arm/netbsd.h: Correct a comment.
7555
7556 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7557
7558         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7559         building void typed builtins.
7560
7561         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7562         (vec_step): Implement for C++.
7563
7564 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7565
7566         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7567
7568 2002-02-04  Richard Henderson  <rth@redhat.com>
7569
7570         * combine.c (nonzero_bits): Re-introduce special case for
7571         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7572
7573 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7574
7575         * doc/extend.texi: Warn about unsupported usage of altivec
7576         builtins.
7577
7578         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7579         (altivec_predicate_*): New.
7580
7581         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7582         Add C++ version of vec_*() functions.
7583
7584         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7585         (bdesc_2arg): Remove altivec predicates.
7586         (altivec_expand_builtin): Handle predicates.
7587         (altivec_init_builtins): Handle predicates.
7588         (altivec_expand_predicate_builtin): New.
7589
7590 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7591
7592         * pa.c (DO_FRAME_NOTES): Move forward.
7593         (store_reg): Revise handling of frame notes.
7594         (load_reg): Likewise.
7595         (set_reg_plus_d): Likewise.
7596         (hppa_expand_prologue): Likewise.
7597         (hppa_expand_epilogue): Likewise.
7598
7599 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7600
7601         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7602
7603 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7604
7605         PR c/4475, c++/3780:
7606         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7607         * c-common.h (SWITCH_TYPE): Define.
7608         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7609         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7610         Rename spareness variable to sparseness.
7611         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7612         if non-NULL instead of TREE_TYPE (orig_index).
7613         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7614         (expand_end_case): Define using expand_end_case_type.
7615         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7616         to expand_end_case_type.
7617         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7618
7619 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7620
7621         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7622         (BIGGEST_ALIGNMENT): Change to 128.
7623
7624 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7625
7626         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7627
7628 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7629
7630         * pa.md (call_internal_reg_64bit): Remove unused variable.
7631
7632 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7633
7634         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7635         field.
7636         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7637         * config/arm/arm.c (current_function_anonymous_args): Delete,
7638         replace uses with cfun->machine->uses_anonymous_args.
7639         (arm_reorg): Do not reset uses_anonymous_args.
7640
7641         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7642         any geenral register.
7643
7644 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7645
7646         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7647         the entry block.
7648
7649 2002-02-04  Richard Henderson  <rth@redhat.com>
7650
7651         * combine.c (force_to_mode): Remove STACK_BIAS code.
7652         (nonzero_bits): Likewise.  Replace sp/fp special case with
7653         REGNO_POINTER_ALIGN.
7654
7655         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7656         (HARD_FRAME_POINTER_REGNUM): New.
7657         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7658         (FIXED_REGS, CALL_USED_REGS): Update.
7659         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7660         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7661         (HARD_REGNO_NREGS): Update for SFP.
7662         (STACK_POINTER_OFFSET): Include bias here ...
7663         (FIRST_PARM_OFFSET): ... not here.
7664         (STACK_BIAS): Remove.
7665         (INIT_EXPANDERS): New.
7666         (STARTING_FRAME_OFFSET): Do not include bias.
7667         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7668         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7669         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7670         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7671         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7672         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7673         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7674         (MUST_SAVE_REGISTER): Likewise.
7675         (sparc_flat_function_prologue): Likewise.
7676         (sparc_flat_function_epilogue): Likewise.
7677         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7678         (sparc_init_modes): SFP is GENERAL_REGS.
7679         (sparc_builtin_saveregs): SFP does not have bias applied.
7680
7681 2002-02-04  Richard Henderson  <rth@redhat.com>
7682
7683         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7684         current_function_is_thunk.
7685         (alpha_sa_mask): Distinguish between current_function_is_thunk
7686         called from ASM_OUTPUT_MI_THUNK and not.
7687         (alpha_does_function_need_gp): Thunks always need gp.
7688         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7689         (alpha_output_mi_thunk_osf): New.
7690         * config/alpha/alpha-protos.h: Update.
7691         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7692
7693 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7694
7695         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7696         function types, not when they're taken away.
7697
7698 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7699
7700         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7701         CODE_LABEL and jump table when replacing a table jump with a
7702         simple jump.
7703
7704 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7705
7706         * config/s390/s390-protos.h (legitimize_la_operand,
7707         s390_secondary_input_reload_class, s390_plus_operand,
7708         s390_expand_plus_operand): Add prototypes.
7709
7710         config/s390/s390.c (s390_secondary_input_reload_class,
7711         s390_plus_operand, s390_expand_plus_operand): New functions.
7712
7713         (struct s390_address): New member 'pointer'.
7714         (s390_decompose_address): Compute it.
7715         (legitimate_la_operand_p): Use it.
7716         (legitimize_la_operand): New function.
7717         (movti, movdi, movdf splitters): Call it.
7718
7719         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7720         (PREDICATE_CODES): Add s390_plus_operand.
7721
7722         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7723         (la_ccclobber): Allow GENERAL_REGS as output operand.
7724
7725         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7726         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7727         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7728
7729 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7730
7731         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7732         register names for regular asm () construct.
7733
7734 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7735
7736         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7737         registers.
7738
7739 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7740
7741         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7742         pat for recog.
7743
7744 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7745
7746         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7747         constant pool to be identical by string address and index.
7748
7749 2002-02-04  Anthony Green  <green@redhat.com>
7750
7751         * output.h (SECTION_OVERRIDE): Define.
7752         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7753
7754 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7755
7756         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7757         by existing arm*-*-netbsd* (a.out) target.
7758         (ns32k-*-netbsdelf*): Likewise.
7759         (sparc-*-netbsdelf*): Likewise.
7760         (vax-*-netbsdelf*): Likewise.
7761
7762 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7763
7764         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7765         headers and libobjc headers.
7766
7767 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7768
7769         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7770         (_mingw.h): Remove duplicate include.
7771
7772 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7773
7774         * config.gcc: Set cpu_type to m68k for 68010, as well.
7775         (m68010-*-netbsdelf*): New...
7776         (m68k*-*-netbsdelf*): ...targets.
7777         * config/m68k/netbsd-elf.h: New file.
7778
7779 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7780
7781         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7782
7783 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7784
7785         * config/h8300/h8300.c (h8_push_ops): Move inside
7786         h8300_init_once.
7787         (h8_pop_ops): Likewise.
7788         (h8_move_ops): Likewise.
7789
7790 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7791
7792         * config/h8300/h8300.c (os_task): Make it static.
7793         (monitor): Likewise.
7794         (pragma_saveall): Likewise.
7795
7796 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7797
7798         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7799         constant is a valid sign-extension for Pmode.
7800
7801 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7802
7803         * config/h8300/h8300.c: Fix formatting.
7804
7805 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7806
7807         * config/h8300/h8300.md: Fix formatting.
7808
7809 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7810
7811         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7812         predicates of operands[1].  Split the patterns for each
7813         processor variant.
7814
7815 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7816
7817         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7818         of operands[1] to register_operand.
7819
7820 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7821
7822         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7823         * cpphash.c (_cpp_init_hashtable): Similarly.
7824         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7825         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7826         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7827         (cpp_handle_option): Handle the new options.
7828         * cpplex.c (cpp_interpret_charconst): Use new flag.
7829         * cpplib.h (struct cpp_options): New member signed_char.
7830         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7831         (cpp_options): Handle -fsigned-char and -funsigned-char.
7832         (static_specs): Remove signed_char_spec.
7833         (do_spec1): Don't handle %c.
7834         * system.h: Poison SIGNED_CHAR_SPEC.
7835         * tradcif.y (yylex): Use flag_signed_char.
7836         * tradcpp.h (flag_signed_char): New.
7837         * tradcpp.c (flag_signed_char): New.
7838         (main): Handle new command-line options.
7839         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7840 config:
7841         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7842         * avr/avr.h: Remove old comments.
7843         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7844         (CC1_SPEC): Pass -fsigned-char if -mic*.
7845         (SIGNED_CHAR_SPEC): Remove.
7846 doc:
7847         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7848
7849 2002-02-01  Eric Christopher  <echristo@redhat.com>
7850
7851         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7852         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7853         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7854         (ASM_OUTPUT_REG_POP): Ditto.
7855
7856 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7857
7858         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7859         patch.
7860
7861 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7862
7863         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7864
7865 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7866
7867         PR c/5304:
7868         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7869         unconditionally.
7870
7871 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7872
7873         * cfganal.c: Include tm_p.h.
7874         (keep_with_call_p): Fix the test that determines if a register holds
7875         the return value of a call.
7876
7877 2002-02-01  DJ Delorie  <dj@redhat.com>
7878
7879         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7880         we are given conflicting registers, switch to the other one we
7881         had allocated for us.
7882         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7883         as TImode so we know when the "other" register is available.
7884
7885 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
7886
7887         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7888         sparc/sparc_bi.h.
7889
7890 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7891
7892         * cfganal.c (keep_with_call_p): New function.
7893         (flow_call_edges_add): Prevent splitting a block between a call and
7894         a single-set instruction that should be kept in the same block.
7895
7896 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7897
7898         * doc/install.texi (avr): Update outdated URL.
7899
7900 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
7901
7902         * config/stormy16/stormy16.md (pushqi): New.
7903         (popqi): New.
7904         (pushhi): New.
7905         (pophi): New.
7906         (movhi): Remove stack operands.
7907         (movqi): Likewise.
7908         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7909         nonimmediate_nonstack_operand.
7910         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7911         New.
7912         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7913         New.
7914
7915 2002-01-31  Jason Merrill  <jason@redhat.com>
7916
7917         * Makefile.in (c-parse.c): Handle .output file.
7918         * objc/Make-lang.in (objc-parse.c): Likewise.
7919
7920 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
7921
7922         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7923         the -me[lb] option is given.  Don't output the default flag
7924         twice.
7925
7926 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
7927
7928         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7929         the primary source file; this has not been done yet.
7930         * c-decl.c (c_expand_body): Reset input_filename from
7931         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7932
7933 2002-01-31  Kazu Hirata  <kazu@hxi.com>
7934
7935         * rtlanal.c (subreg_regno_offset): Do not use
7936         SUBREG_REGNO_OFFSET.
7937         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7938         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7939
7940 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7941
7942         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
7943         version rather than GNATS version in --version output.
7944
7945 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
7946
7947         * ifcvt.c (noce_process_if_block): Make a copy of the destination
7948         when copying back from a temporary.
7949
7950 2002-01-30  Richard Henderson  <rth@redhat.com>
7951
7952         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7953         and new_dest are the same.
7954
7955 2002-01-30  Richard Henderson  <rth@redhat.com>
7956
7957         PR opt/5076
7958         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7959         * rtl.c (note_insn_name): Update.
7960         * emit-rtl.c (remove_unnecessary_notes): Kill it.
7961         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
7962         to perform loop rotation.
7963         (expand_exit_loop_top_cond): New.
7964         * tree.h (expand_exit_loop_top_cond): Declare it.
7965         * c-semantics.c (genrtl_while_stmt): Use it.
7966         (genrtl_for_stmt): Likewise.
7967
7968 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
7969
7970         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7971         arguments to 64-bit boundaries on 64-bit ABIs.
7972
7973 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
7974
7975         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7976
7977 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7978
7979         * c-decl.c (grokdeclarator): Handle type being a typedef for an
7980         invalid type.
7981
7982 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
7983
7984         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7985         * config/sparc/sparc_bi.h: Remove file.
7986         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7987
7988 2002-01-30  Richard Henderson  <rth@redhat.com>
7989
7990         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7991
7992 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
7993
7994         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7995
7996 2002-01-30  Jason Merrill  <jason@redhat.com>
7997
7998         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7999         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8000         (reg_save): Use DW_CFA_offset_extended_sf instead.
8001
8002         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8003
8004 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8005
8006         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8007         in cselib_lookup.
8008
8009 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8010
8011         * rs6000.md ("*call_value_local32"): Remove constraints.
8012         ("*call_value_local64"): Same.
8013         ("*call_value_indirect_nonlocal_aix32"): Same.
8014         ("*call_value_nonlocal_aix32"): Same.
8015         ("*call_value_indirect_nonlocal_aix64"): Same.
8016         ("*call_value_nonlocal_aix64"): Same.
8017         ("*call_value_nonlocal_sysv"): Same.
8018
8019 2002-01-29  Richard Henderson  <rth@redhat.com>
8020
8021         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8022
8023 2002-01-29  Richard Henderson  <rth@redhat.com>
8024
8025         * expr.c (force_operand): Ignore flag_pic for detecting pic
8026         address loads.
8027         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8028         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8029         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8030         instead of open-coded loop.
8031         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8032         be fixed when in use.
8033
8034 2002-01-29  Richard Henderson  <rth@redhat.com>
8035
8036         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8037         * sched-rgn.c (propagate_deps): Update them.
8038         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8039         clobbers list when either gets too long.
8040
8041 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8042
8043         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8044         and INDEX_REGS the same as GENERAL_REGS.
8045         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8046
8047 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8048
8049         * tree.c (build_nonstandard_integer_type): Correct prototype.
8050
8051 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8052
8053         * config/s390/s390.md (movstrsico, movstrdix_64,
8054         movstrsix_31): Remove, replace by ...
8055         (movstrdi_short, movstrsi_short, movstrdi_long,
8056         movstrsi_long): ... these.  New.
8057         (movstrdi, movstrsi): Adapt.
8058
8059         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8060         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8061         Remove unnecessary CC clobber.
8062         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8063         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8064
8065         (divmoddi4): Don't partially initialize TImode register.
8066
8067 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8068
8069         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8070
8071 2002-01-29  Richard Henderson  <rth@redhat.com>
8072
8073         * flow.c (print_rtl_and_abort): Remove.
8074         (print_rtl_and_abort_fcn): Remove.
8075         (verify_local_live_at_start): Use dump_bb instead.
8076         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8077         (verify_wide_reg_1): Return 2 on mode test failure.
8078
8079 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8080
8081         PR c/3325, c/3326, c/2511, c/3347
8082         * c-decl.c (enum_decl_context): Remove BITFIELD.
8083         (grokdeclarator): Take bitfield width as an input.
8084         Ensure bitfields are given the correct type.  Perform
8085         bitfield width validation with build_bitfield_integer_type
8086         rather than waiting for finish_struct.
8087         (grok_typename, grok_typename_in_parm_context, start_decl,
8088         push_parmdecl, grokfield, start_function): Update calls to
8089         grokdeclarator.
8090         (build_bitfield_integer_type): New function.
8091         (finish_struct): Move bitfield validation to grokdeclarator
8092         and build_bitfield_integer_type.
8093         * tree.c (build_nonstandard_integer_type): New function.
8094         * tree.h (build_nonstandard_integer_type): New prototype.
8095 objc:
8096         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8097
8098 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8099
8100         PR other/1502:
8101         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8102         don't ignore unrecognized -W* options.
8103         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8104         * cpplib.h (cpp_handle_option): Adjust prototype.
8105         * c-decl.c (c_decode_options): Pass 0 as last argument to
8106         cpp_handle_option.
8107
8108         PR c/2896:
8109         * gcc.c (cpp_unique_options): Split from cpp_options.
8110         (cpp_options): Source cpp_unique_options.
8111         (default_compilers): Use cpp_unique_options instead of cpp_options
8112         when used together with cc1_options.
8113         (static_specs): Add cpp_unique_options.
8114         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8115         when used together with cc1_options.
8116
8117 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8118
8119         * config/h8300/h8300-protos.h: Update the prototype of
8120         output_a_shift.
8121         * config/h8300/h8300.c (output_a_shift): Remove an unused
8122         argument 'insn'.  Remove redundant code.
8123         * config/h8300/h8300.md: Adust to the new prototype of
8124         output_a_shift.
8125
8126 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8127
8128         * config/h8300/h8300-protos.h: Update the prototypes of
8129         emit_a_rotate and expand_a_rotate.
8130         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8131         first argument to 'enum rtx_code'.
8132         (expand_a_rotate): Likewise.
8133
8134 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8135
8136         * config/h8300/h8300-protos.h: Update the prototype of
8137         output_simode_bld.
8138         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8139         'log2'.
8140         * config/h8300/h8300.md: Adjust to the new prototype.
8141
8142 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8143
8144         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8145         redundant code.
8146
8147 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8148
8149         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8150         is a fixed register before returning pic_offset_table_rtx.
8151         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8152         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8153
8154 2002-01-28  Jason Merrill  <jason@redhat.com>
8155
8156         * dwarf2.h: Sync with src version.
8157
8158 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8159
8160         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8161         BT_FN_VOID_PTR_VAR.
8162         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8163         * doc/extend.texi (__builtin_prefetch): Update documentation:
8164         first argument is now const void ptr.
8165
8166 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8167
8168         * config/h8300/h8300-protos.h: Remove an unused prototype.
8169
8170 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8171
8172         * toplev.c (lang_independent_init): Round up identifier size.
8173
8174 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8175
8176         * config.gcc: Revert previous change.
8177
8178 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8179
8180         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8181
8182 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8183
8184         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8185         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8186         other non-elf netbsd config frags.
8187         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8188         collect2 will does that.
8189         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8190         shared-lib frobbing will work.
8191
8192 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8193
8194         * config/h8300/h8300.h: Fix formatting.
8195         * config/h8300/h8300.md: Likewise.
8196
8197 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8198
8199         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8200         the old, removed AAA_standards fix.
8201         * fixinc/fixincl.x: Rebuilt.
8202
8203 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8204
8205         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8206         atexit call in crtbegin, hooked in after call to frame_dummy;
8207         register EH before registering __fini__start.
8208
8209 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8210
8211         * config/rs6000/altivec.h: Remove spurious semicolons.
8212
8213 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8214
8215         * config/h8300/h8300.md: Replace dead bit extraction patterns
8216         with ones that work.
8217
8218 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8219
8220         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8221         if not STRICT_ALIGNMENT.
8222         * rtl.h (MEM_ALIGN): Likewise.
8223
8224 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8225
8226         * doc/invoke.texi (-fdump-translation-unit): Revert this
8227         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8228
8229 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8230
8231         * config/h8300/h8300.md (define_constants): New.
8232         (anonymous patterns) Use defined constants appropriately.
8233
8234 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8235
8236         * config/h8300/h8300.c (function_arg): Remove redundant code.
8237
8238 2002-01-26  Richard Henderson  <rth@redhat.com>
8239
8240         * sched-deps.c (reg_pending_uses_head): New.
8241         (reg_pending_barrier): Rename from reg_pending_sets_all.
8242         (find_insn_list): Don't mark inline.
8243         (find_insn_mem_list): Remove.
8244         (add_dependence_list, add_dependence_list_and_free): New.
8245         (flush_pending_lists): Replace only_write param with separate
8246         for_read and for_write parameters.  Update all callers.  Use
8247         add_dependence_list_and_free.
8248         (sched_analyze_1): Do not add reg dependencies here; just set
8249         the pending bits.  Use add_dependence_list.
8250         (sched_analyze_2): Likewise.
8251         (sched_analyze_insn): Replace schedule_barrier_found with
8252         reg_pending_barrier.  Add all dependencies for pending reg
8253         uses, sets, and clobbers.
8254         (sched_analyze): Don't add reg dependencies for calls, just
8255         set pending bits.  Use regs_invalidated_by_call.  Treat
8256         sched_before_next_call as a normal list, not a fake insn.
8257         (init_deps): No funny init for sched_before_next_call.
8258         (free_deps): Free pending mems lists.  Don't zero reg_last.
8259         (init_deps_global): Init reg_pending_uses.
8260         (finish_deps_global): Free it.
8261         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8262         (find_insn_mem_list): Remove.
8263         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8264         (propagate_deps): Use them.  Zero temp mem lists.
8265
8266 2002-01-26  Richard Henderson  <rth@redhat.com>
8267
8268         * Makefile.in (CRTSTUFF_CFLAGS): New.
8269         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8270         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8271         crtstuff.c instead of alpha assembly version.
8272         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8273         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8274         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8275         (__do_global_dtors_aux): Mark used.
8276         (frame_dummy, __do_global_ctors_aux): Mark used.
8277         (fini_dummy, init_dummy): Remove.
8278
8279         * config/alpha/crtbegin.asm: Remove file.
8280         * config/alpha/crtend.asm: Remove file.
8281         * config/alpha/t-crtbe: Remove file.
8282         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8283         (LINK_EH_SPEC): New.
8284
8285         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8286         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8287         calling constructors.
8288         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8289
8290         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8291         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8292         CRT_END_INIT_DUMMY hack.
8293         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8294         FORCE_{INIT,FINI}_SECTION_ALIGN.
8295
8296         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8297         FORCE_{INIT,FINI}_SECTION_ALIGN.
8298
8299         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8300         invocation sequence.
8301         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8302
8303         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8304         (FORCE_CODE_SECTION_ALIGN): New.
8305
8306 2002-01-26  Richard Henderson  <rth@redhat.com>
8307
8308         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8309
8310 2002-01-26  Richard Henderson  <rth@redhat.com>
8311
8312         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8313         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8314
8315 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8316
8317         * config/h8300/h8300.md: Remove bit extraction patterns that
8318         cannot be triggered.
8319         Restrict each bit extraction pattern to a variant on which the
8320         pattern is tested.
8321
8322 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8323
8324         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8325
8326 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8327
8328         * config/h8300/h8300.md: Remove bit test patterns that cannot
8329         be triggered.
8330         Restrict each bit test pattern to a variant on which the
8331         pattern is tested.
8332
8333 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8334
8335         * builtins.c (expand_builtin_strncat): Remove redundant check for
8336         INTEGER_CST.
8337
8338 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8339
8340         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8341         default setting.
8342         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8343         existing setting.
8344
8345 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8346
8347         * dbxout.c (dbxout_init): Use assemble_name rather than just
8348         stripping off the first character.
8349         (dbxout_source_file): Likewise.
8350
8351 2002-01-25  DJ Delorie  <dj@redhat.com>
8352
8353         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8354         using rtx_equal_p, not by comparing pointers.
8355
8356 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8357
8358         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8359         for PIC_OFFSET_TABLE_REGNUM.
8360         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8361
8362 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8363
8364         * config.gcc (x86_64-*-freebsd*): New target.
8365         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8366         value.
8367         (i[34567]86-*-freebsd*): Don't include svr4.h.
8368         * config/i386/freebsd64.h: New file.
8369
8370 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8371
8372         * config/alpha/x-vms (version): Make static.
8373
8374         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8375         in previous checkin.
8376
8377         * Makefile.in (install-headers-cp): New target.
8378         * config.gcc (alpha-dec-*vms*): Install headers with
8379         install-headers-cp
8380
8381 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8382
8383         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8384         avoid it's copies.
8385
8386 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8387
8388         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8389         of compare_tree_int.
8390         (expand_builtin_strncat): Likewise.
8391         * c-decl.c (finish_struct): Use tree_low_cst.
8392         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8393         * tree.c (compare_tree_int): Likewise.
8394
8395 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8396
8397         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8398         adjustments even if they are implemented by more than two insns.
8399
8400 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8401
8402         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8403         * df.h (struct ref): Kill B.
8404         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8405
8406         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8407         * flow.c (propagate_one_insn): Use it.
8408         (mark_used_regs): Handle NIL.
8409
8410 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8411
8412         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8413         to help folding.
8414
8415 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8416
8417         * rs6000.md (prefetch): Make address V4SI mode so that the address
8418         is restricted to legitimate form for instruction.
8419
8420 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8421
8422         * doc/install.texi (xtensa-*-elf): New target.
8423         (xtensa-*-linux*): New target.
8424         * doc/contrib.texi: Add myself.
8425
8426 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8427
8428         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8429         purpose register to hold an SImode (or smaller) value.
8430
8431 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8432
8433         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8434         registry only.
8435         * crtstuff.c: Likewise.
8436
8437 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8438
8439         * config/h8300/h8300.md (negation patterns): Tighten
8440         predicates to register_operand.
8441
8442 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8443
8444         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8445         mode, not Pmode.
8446
8447         * builtins.c (expand_builtin_prefetch): Same.
8448
8449 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8450
8451         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8452         modes.
8453
8454 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8455
8456         * config/h8300/h8300.c (print_operand): Remove support for
8457         operand character 'A'.
8458         * config/h8300/h8300.md (three anonymous patterns): Replace
8459         operand character 'A' with either 'T' or 'S'.
8460
8461 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8462
8463         * config/h8300/h8300.c (print_operand): Remove support for
8464         operand character 'U'.
8465
8466 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8467
8468         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8469
8470 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8471
8472         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8473         values to be assigned to the stack pointer.
8474
8475 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8476
8477         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8478         to const_double needs to be done right for big-endian systems.
8479
8480 2002-01-24  Jason Merrill  <jason@redhat.com>
8481
8482         PR c++/2432
8483         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8484         to can_throw_internal.
8485
8486 2002-01-23  Richard Henderson  <rth@redhat.com>
8487
8488         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8489         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8490
8491 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8492
8493         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8494         (symGOT2reg): Use them, then set as GOT value as unchanging.
8495         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8496         as a temporary, if possible.
8497         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8498         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8499
8500 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8501
8502         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8503         accept to accept 0x80 as operands[2].
8504
8505 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8506
8507         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8508
8509 2002-01-23  Richard Henderson  <rth@redhat.com>
8510
8511         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8512
8513 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8514
8515         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8516         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8517         an attribute.
8518
8519 2002-01-23  Richard Henderson  <rth@redhat.com>
8520
8521         * expr.c (move_by_pieces_1): Extend size before negation.
8522
8523         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8524         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8525         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8526         * config/m68k/t-m68kelf: Likewise.
8527
8528 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8529
8530         * config/xtensa/elf.h: New file.
8531         * config/xtensa/lib1funcs.asm: New file.
8532         * config/xtensa/lib2funcs.S: New file.
8533         * config/xtensa/linux.h: New file.
8534         * config/xtensa/t-xtensa: New file.
8535         * config/xtensa/xtensa-config.h: New file.
8536         * config/xtensa/xtensa-protos.h: New file.
8537         * config/xtensa/xtensa.c: New file.
8538         * config/xtensa/xtensa.h: New file.
8539         * config/xtensa/xtensa.md: New file.
8540         * config.gcc (xtensa-*-elf*): New target.
8541         (xtensa-*-linux*): New target.
8542         * cse.c (canon_hash): Compare rtx pointers instead of register
8543         numbers.  This is required for the Xtensa port.
8544         * integrate.c (copy_insn_list): Handle case where the static
8545         chain is in memory and the memory address has to be copied to
8546         a register.
8547         * doc/invoke.texi (Option Summary): Add Xtensa options.
8548         (Xtensa Options): New node.
8549         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8550
8551 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8552
8553         * diagnostic.c (internal_error): Do ICE suppression only
8554         when ENABLE_CHECKING is not defined.
8555
8556         * c-typeck.c (require_complete_type): Return error_mark_node
8557         if type is error_mark_node.
8558
8559 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8560
8561         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8562         -Os and issue a warning.
8563
8564 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8565
8566         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8567         current (lack of) need for host configuration by hand.
8568
8569         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8570         references.  Documentation of some target macros moved from
8571         hostconfig.texi to tm.texi.
8572
8573 2002-01-23  Will Cohen  <wcohen@redhat.com>
8574
8575         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8576         defined.
8577
8578 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8579
8580         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8581         operand[3].
8582
8583 2002-01-23  Jason Merrill  <jason@redhat.com>
8584
8585         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8586
8587         * function.c (assign_parms): Don't put args of inline functions
8588         into registers when not optimizing.
8589
8590 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8591
8592         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8593         (prologue_use): New pattern.
8594         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8595         preference to gen_rtx_USE.
8596         (thumb_expand_prologue): Use gen_prologue_use in preference to
8597         gen_rtx_USE.
8598         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8599         gen_rtx_USE.
8600
8601 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8602
8603         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8604
8605 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8606
8607         PR c/3504
8608         * doc/extend.texi: Correct documentation of __alignof__.
8609
8610 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8611
8612         * params.h: Rename arguments of DEFPARAM so that it will be
8613         recognized as a translation keyword.
8614
8615 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8616
8617         * extend.texi: Document altivec functions.
8618         Fix N-bit adjectives in X86 builtin documentation.
8619
8620 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8621
8622         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8623         auto_inc_dec values.
8624
8625 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8626
8627         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8628         after backslash.
8629         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8630
8631 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8632
8633         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8634
8635 2002-01-22  Richard Henderson  <rth@redhat.com>
8636
8637         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8638         copy_insn not copy_rtx.
8639
8640 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8641
8642         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8643         "nonzero" as that might add "1" bits.  Ensure "constop" is
8644         properly sign extened.
8645         (force_to_mode): Tweak for sign extended constop.
8646
8647 2002-01-22  Richard Henderson  <rth@redhat.com>
8648
8649         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8650         for_each_rtx instead of assuming we're already looking at the MEM.
8651         (split_small_symbolic_mem_operand): Likewise.
8652         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8653         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8654
8655 2002-01-22  Richard Henderson  <rth@redhat.com>
8656
8657         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8658         sequence number for the literal.
8659         (divmoddi_internal_er): Likewise.
8660
8661 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8662
8663         PR java/4972
8664         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8665         in LIBICONV variable.
8666         * configure: Regenerated.
8667
8668 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8669
8670         * dependence.c (build_def_use): Remove array_idx.
8671
8672         * dwarfout.c (last_filename): Remove.
8673         (output_compile_unit_die): Remove last_filename.
8674
8675 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8676             Richard Henderson  <rth@redhat.com>
8677
8678         PR opt/3640
8679         * fold-const.c (fold): Optimize unsigned comparisons against
8680         UINT_MAX (and similar unsigned constants).
8681
8682 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8683
8684         * Makefile.in (loop.o): Depend on OPTABS_H.
8685         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8686         against the predicate.
8687
8688         PR target/5379
8689         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8690         for the address operand.
8691
8692 2002-01-22  Richard Henderson  <rth@redhat.com>
8693
8694         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8695
8696 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8697
8698         PR other/5450
8699         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8700         preprocessor flags.
8701
8702 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8703
8704         * config.gcc (x86_64-*-netbsd*): New target.
8705         * config/i386/netbsd64.h: New file.
8706
8707 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8708
8709         * regrename.c (kill_value): Fix typo.
8710
8711 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8712
8713         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8714
8715         * config/rs6000/rs6000.h: Same.
8716
8717         * function.c (instantiate_virtual_regs): Remove
8718         STARTING_FRAME_PHASE.
8719         (assign_stack_local_1): Same.
8720         Calculate frame phase.
8721
8722 2002-01-22  Nick Clifton  <nickc@redhat.com>
8723
8724         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8725         variable declaration to outer scope in order to simplify
8726         future extensions.
8727         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8728         arm_hard_regno_mode_ok.
8729         * config/arm/arm-protos.h: Add a prototype for
8730         arm_hard_regno_mode_ok.
8731         * config/arm/arm.c (soft_df_operand): Remove now redundant
8732         check for DImode values using IP_REGNUM.
8733         (nonimmediate_soft_df_operand): Remove now redundant check for
8734         DImode values using IP_REGNUM.
8735         (arm_hard_regno_mode_ok): New function. New check: make sure
8736         that DImode values are not stored in IP_REGNUM.
8737
8738         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8739         note with a USE.
8740         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8741
8742 2002-01-22  Jason Merrill  <jason@redhat.com>
8743
8744         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8745         consistency if this COMPOUND_STMT is scoped.
8746
8747 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8748
8749         * predict.c: Fix formatting.
8750         * print-tree.c: Likewise.
8751         * protoize.c: Likewise.
8752         * real.h: Likewise.
8753         * rtl.h: Likewise.
8754         * sbitmap.h: Likewise.
8755         * scan.c: Likewise.
8756         * sched-deps.c: Likewise.
8757         * sched-vis.c: Likewise.
8758         * sdbout.c: Likewise.
8759         * sibcall.c: Likewise.
8760         * ssa.c: Likewise.
8761         * ssa-ccp.c: Likewise.
8762         * ssa-dce.c: Likewise.
8763         * stmt.c: Likewise.
8764         * stor-layout.c: Likewise.
8765         * system.h: Likewise.
8766
8767 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8768
8769         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8770         if fits in bounds of base type.
8771
8772         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8773         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8774         (add_bound_info, default): If can't find a context, make a
8775         SAVE_EXPR.
8776         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8777
8778 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8779
8780         * c-typeck.c (parser_build_binary_op): If result from
8781         build_binary_op is ERROR_MARK just return error_mark_node without
8782         further processing.
8783
8784 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8785
8786         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8787         Split a.out-specific bits into...
8788         * config/netbsd-aout.h: ...this.
8789         * config/netbsd-elf.h: New file.
8790         * config/alpha/netbsd-elf.h: Remove.
8791         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8792         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8793         (STARTFILE_SPEC): Remove redundant definition.
8794         (ENDFILE_SPEC): Likewise.
8795         (LINK_SPEC): Likewise.
8796         (CPP_SPEC): Likewise.
8797         (ASM_SPEC): Likewise.
8798         (LIB_SPEC): Likewise.
8799         (SWITCH_TAKES_ARG): Likewise.
8800         (TARGET_MEM_FUNCTIONS): Likewise.
8801         (CPP_PREDEFINES): Redefine.
8802         (ASM_FINAL_SPEC): Remove redefinition.
8803         (ASM_COMMENT_START): Redefine.
8804         (FUNCTION_PROFILER): Define.
8805         (TARGET_VERSION): Redefine.
8806         Comment and formatting cleanup.
8807         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8808         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8809         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8810         big- or little-endian.
8811         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8812         * config.gcc (*-*-netbsd*): Add definitions common to all
8813         NetBSD configs.
8814         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8815         gnu_ld definitions.  Add netbsd-elf.h to and remove
8816         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8817         tmake_file, and don't lose previous tmake_file contents.
8818         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8819         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8820         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8821         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8822         (mipsel-*-netbsd*): Rename this to...
8823         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8824         mips/little.h to tm_file for mips*el-*.
8825         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8826         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8827         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8828
8829 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8830
8831         * pa-protos.h (reg_before_reload_operand): New function prototype.
8832         * pa.c (reg_before_reload_operand): New function implementation.
8833         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8834         contraints to "*m".
8835
8836 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8837
8838         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8839
8840 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8841
8842         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8843         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8844         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8845         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8846         (ENDFILE_SPEC): Undefine.
8847         (STARTFILE_SPEC): Redefine for PA.
8848
8849 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8850
8851         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8852
8853 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8854
8855         * config.gcc: Add entries to supported PowerPC --with-cpu
8856         types.
8857
8858 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8859
8860         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8861         true for 64-bit mode only SSE registers in 32-bit mode.
8862
8863 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8864
8865         * unwind-dw2.c: Fix formatting.
8866         * unwind-dw2-fde.c: Likewise.
8867         * unwind-dw2-fde.h: Likewise.
8868         * unwind-pe.h: Likewise.
8869         * varasm.c: Likewise.
8870         * varray.h: Likewise.
8871
8872 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
8873
8874         Remove workaround for register stack overwrite bug in mmix.
8875         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8876         support for TARGET_REG_STACK_FILL_BUG.
8877         * config/mmix/mmix.h: Remove member has_call_without_parameters.
8878         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8879         Delete.
8880         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8881         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8882         -mno-reg-stack-fill-bug-workaround.
8883         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8884         machine member has_call_without_parameters.
8885         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8886         -mreg-stack-fill-bug-workaround and
8887         -mno-reg-stack-fill-bug-workaround.
8888         (MMIX Options): Ditto.
8889
8890 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8891
8892         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8893         as appropriate.
8894         Remove redundant code.
8895
8896 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8897
8898         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8899         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8900         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8901         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8902         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8903         out target macro definitions and non-target-specific comments
8904         mostly taken from old versions of the manual.
8905
8906 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8907
8908         * config/h8300/h8300.h: Fix comment formatting.
8909         * config/ia64/aix.h: Likewise.
8910         * config/ia64/ia64-protos.h: Likewise.
8911         * config/ia64/ia64.c: Likewise.
8912         * config/ia64/ia64.h: Likewise.
8913         * config/ia64/ia64intrin.h: Likewise.
8914         * config/ia64/linux.h: Likewise.
8915         * config/ia64/unwind-aix.c: Likewise.
8916         * config/ia64/unwind-ia64.c: Likewise.
8917
8918 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8919
8920         * config/h8300/h8300.c: Revise comments about shift code.
8921
8922 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8923
8924         * config/h8300/h8300.c (function_arg): Update a comment.
8925
8926 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8927
8928         * config/h8300/h8300.md: Update the comments at the beginning
8929         of the file.
8930
8931 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8932
8933         * config/i370/i370.c: Fix comment formatting.
8934         * config/i370/i370.h: Likewise.
8935         * config/i370/i370.md: Likewise.
8936         * config/i370/linux.h: Likewise.
8937
8938 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8939
8940         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8941
8942         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8943         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8944         in incomplete case.
8945
8946 2002-01-20  Graham Stott  <grahams@redhat.com>
8947
8948         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8949
8950 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8951
8952         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8953
8954 2002-01-19  Tom Rix  <trix@redhat.com>
8955
8956         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8957
8958 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
8959
8960         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
8961
8962         * function.c (assign_stack_local_1): Adjust x_frame_offset with
8963         STARTING_FRAME_PHASE.
8964         (STARTING_FRAME_PHASE): New.
8965         (instantiate_virtual_regs): Check saneness of
8966         STARTING_FRAME_PHASE.
8967
8968         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
8969
8970 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8971
8972         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8973
8974 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8975
8976         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8977         be used for bootstrapping GCC 3.0.
8978
8979 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8980
8981         * config/h8300/h8300.md: Fix an insn length.
8982
8983 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8984
8985         * bitmap.h: Fix comment formatting.
8986         * combine.c: Likewise.
8987         * cppfiles.c: Likewise.
8988         * c-pragma.h: Likewise.
8989         * c-typeck.c: Likewise.
8990         * df.c: Likewise.
8991         * dwarf2out.c: Likewise.
8992         * function.c: Likewise.
8993         * gcc.c: Likewise.
8994         * genattrtab.c: Likewise.
8995         * gthr-win32.h: Likewise.
8996         * haifa-sched.c: Likewise.
8997         * predict.c: Likewise.
8998         * rtlanal.c: Likewise.
8999         * rtl.h: Likewise.
9000         * unwind-dw2-fde.h: Likewise.
9001         * unwind-pe.h: Likewise.
9002         * vmsdbgout.c: Likewise.
9003
9004 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9005
9006         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9007         if type_required and passed decl.
9008
9009 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9010
9011         * config.gcc (cpu_type): Include altivec.h in powerpc
9012         extra_headers.
9013         Same for darwin.
9014
9015         * config/rs6000/altivec.h: New.
9016
9017 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9018
9019         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9020         handling information.
9021         * doc/trouble.texi (Interoperation): Add libstdc++ information
9022         for AIX.
9023         (Misunderstandings): Add template instantiation and static template
9024         member information for AIX.
9025
9026 2002-01-17  Jason Merrill  <jason@redhat.com>
9027
9028         * dbxout.c (dbxout_type): Support const and volatile.
9029
9030         * except.c (add_partial_entry): Remove backwards compatibility code.
9031         (end_protect_partials): Likewise.
9032
9033 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9034
9035         * config/ia64/ia64.md (prologue_use): New.
9036         * config/ia64/ia64.c (ia64_expand_prologue): Use
9037         gen_prologue_use instead of gen_rtx_USE.
9038         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9039         as CODE_FOR_pred_rel_mutex.
9040         (ia64_sched_reorder2): Likewise.
9041
9042 2002-01-16  Eric Christopher  <echristo@redhat.com>
9043
9044         * config/mips/r3900.h: Reformat.
9045         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9046         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9047         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9048         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9049         * config/mips/t-elf: Remove mips3 multilib.
9050
9051 2002-01-16  H.J. Lu <hjl@gnu.org>
9052
9053         * config/mips/linux.h: Include "mips/abi64.h".
9054
9055 2002-01-16  H.J. Lu <hjl@gnu.org>
9056
9057         * config/mips/t-linux: New.
9058
9059         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9060
9061         * config/mips/linux.h: Don't include "gofast.h".
9062         (INIT_SUBTARGET_OPTABS): Removed.
9063
9064 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9065
9066         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9067         output_a_shift.
9068         * config/h8300/h8300.c: Likewise.
9069         * config/h8300/h8300.md: Likewise.
9070
9071 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9072
9073         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9074         spaces after an opcode name.
9075         (pushqi1_h8300hs): Likewise.
9076         (pushhi1_h8300hs): Likewise.
9077
9078 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9079
9080         * doc/extend.texi: Replace "option" with "attribute"
9081         appropriately.
9082
9083 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9084
9085         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9086         (and:DI () (const_int -8)).
9087         (split_small_symbolic_mem_operand): Split
9088         (mem (and:DI () (const_int -8)).
9089
9090 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9091
9092         PR target/5309:
9093         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9094         same way as TYPE_IMUL.
9095         (ultrasparc_sched_reorder): Likewise.
9096         * config/sparc/sparc.md (type): Add comment to update
9097         ultrasparc_sched_reorder when making changes.
9098
9099 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9100
9101         * doc/invoke.texi: Change the dump file name of block
9102         reordering pass from 28.bbro to 29.bbro.
9103         Mention -dk option.
9104
9105 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9106
9107         * i386.md (minsf splitter): Fix pasto.
9108
9109 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9110
9111         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9112         to frame pointer initialisation instruction.
9113         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9114         initialisation instruction.
9115         (soft_df_operand): Do not accept the IP register.
9116         (nonimmediate_soft_df_operand): Do not accept the IP register.
9117
9118 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9119
9120         PR target/5357:
9121         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9122         MASK_V8 being both set.
9123
9124 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9125
9126         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9127         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9128         config/s390/s390.md (call, call_value): Add GOT register to
9129         CALL_INSN_FUNCTION_USAGE where needed.
9130         (call_exp, call_value_exp): New.
9131
9132 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9133
9134         * config/arm/arm.c: General formatting tidy up.
9135
9136 2002-01-16  Graham Stott  <grahams@redhat.com>
9137
9138         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9139         cast and when casting an integer literal to "rtx" pointer.
9140         (expand_call): Likewise.
9141         * flow.c (try_pre_increment): Likewise.
9142         (find_use_as_address): Likewise.
9143         * integrate.c (expand_iline_function): Likewise.
9144         * regmove.c (try_auto_increment): Likewise.
9145
9146 2002-01-16  Graham Stott  <grahams@redhat.com>
9147
9148         * sched-rgn.c (passed): Use sbitmap_free.
9149         (header): Likewise.
9150         (inner): Likewise.
9151         (in_queue): Likewise.
9152         (in_stack): Likewise.
9153
9154 2002-01-15  Eric Christopher  <echristo@redhat.com>
9155
9156         * flow.c (propagate_one_insn): Change to use fatal_insn.
9157
9158 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9159
9160         * expmed.c (extract_fixed_bit_field): Remove unused code.
9161         * system.h: Poison SLOW_ZERO_EXTEND.
9162         * doc/tm.texi: Remove.
9163         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9164         * config/arm/arm.h: Likewise.
9165         * config/avr/avr.h: Likewise.
9166         * config/clipper/clipper.h: Likewise.
9167         * config/convex/convex.h: Likewise.
9168         * config/d30v/d30v.h: Likewise.
9169         * config/dsp16xx/dsp16xx.h: Likewise.
9170         * config/elxsi/elxsi.h: Likewise.
9171         * config/fr30/fr30.h: Likewise.
9172         * config/h8300/h8300.h: Likewise.
9173         * config/i370/i370.h: Likewise.
9174         * config/i386/i386.h: Likewise.
9175         * config/m68k/m68k.h: Likewise.
9176         * config/mips/mips.h: Likewise.
9177         * config/ns32k/ns32k.h: Likewise.
9178         * config/pdp11/pdp11.h: Likewise.
9179         * config/pj/pj.h: Likewise.
9180         * config/s390/s390.h: Likewise.
9181         * config/sh/sh.h: Likewise.
9182         * config/stormy16/stormy16.h: Likewise.
9183         * config/v850/v850.h: Likewise.
9184         * config/vax/vax.h: Likewise.
9185         * config/we32k/we32k.h: Likewise.
9186
9187 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9188
9189         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9190         (altivec_lvsl): Change constraint to b.
9191         (altivec_lvsr): Same.
9192         (altivec_lvebx): Same.
9193         (altivec_lvehx): Same.
9194         (altivec_lvewx): Same.
9195         (altivec_lvxl): Same.
9196         (altivec_lvx): Same.
9197         (altivec_stvx): Add parallel.
9198         (altivec_stvxl): Same.
9199         (altivec_stvehx): Same.
9200         (altivec_stvebx): Same.
9201         (altivec_stvebx): Same.
9202
9203 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9204
9205         * config.gcc: Change altivec.h to altivec-defs.h.
9206
9207         * config/rs6000/altivec.h: Delete.
9208
9209         * config/rs6000/altivec-defs.h: Add.
9210
9211 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9212
9213         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9214         and UMOD modes.
9215
9216         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9217         less than or equal to eight bytes.
9218
9219         * vax.md (andsi3): Remove constraints and change SET destination
9220         operand type to nonimmediate_operand.
9221         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9222         when it is a CONST_INT.
9223
9224 2002-01-15  Jason Merrill  <jason@redhat.com>
9225
9226         * c-common.def (FILE_STMT): New code.
9227         * c-common.c (statement_code_p): It's a statement.
9228         * c-common.h (stmt_tree_s): Add x_last_filename.
9229         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9230         (last_expr_filename): New macro.
9231         * c-semantics.c (begin_stmt_tree): Initialize it.
9232         (add_stmt): If the filename changed, also insert a
9233         FILE_STMT.
9234         (expand_stmt): Handle seeing one.
9235
9236 2002-01-15  Eric Christopher  <echristo@redhat.com>
9237
9238         * flow.c (propagate_one_insn): Add error message and print out
9239         insn for debugging.
9240
9241 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9242
9243         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9244         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9245         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9246         TRAMPOLINE_ALIGNMENT.
9247         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9248         to be in bits.
9249         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9250         PCC_BITFIELD_TYPE_MATTERS.
9251         * config/interix.h (STDC_VALUE): Remove.  Use
9252         STDC_0_IN_SYSTEM_HEADERS.
9253         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9254         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9255         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9256
9257 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9258
9259         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9260         not work on this platform currently.
9261
9262 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9263
9264         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9265         readonly_warning in _().
9266
9267 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9268
9269         * gcc.c (delete_if_ordinary): Backout previous change.
9270
9271 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9272
9273         * config/h8300/h8300.c (print_operand): Remove support for
9274         unused operand characters.
9275
9276         * read-rtl.c: Fix formatting.
9277         * real.c: Likewise.
9278         * recog.c: Likewise.
9279         * regclass.c: Likewise.
9280         * regmove.c: Likewise.
9281         * reg-stack.c: Likewise.
9282         * reload1.c: Likewise.
9283         * rtlanal.c: Likewise.
9284
9285 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9286
9287         * config/i386/i386.c: Fix formatting.
9288
9289 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9290
9291         * c-typeck.c (process_init_element): Don't save_expr
9292         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9293
9294 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9295
9296         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9297         emit optional traceback table if optimize_size or TARGET_ELF.
9298         * config/rs6000/rs6000.md (prefetch): New.
9299
9300 2002-01-15  Andreas Jaeger  <aj@suse.de>
9301
9302         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9303
9304 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9305
9306         * mips-tfile.c: Fix formatting.
9307
9308 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9309
9310         * unroll.c (final_reg_note_copy): Fix previous commit.
9311
9312 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9313
9314         * config/h8300/h8300-protos.h: Remove the prototype for
9315         eq_operator.
9316         * config/h8300/h8300.c (eq_operator): Remove.
9317
9318 2002-01-14  Richard Henderson  <rth@redhat.com>
9319
9320         * config/i386/i386.md (prefetch): Tidy.
9321         (prefetch_3dnow): Fix locality operand.
9322
9323 2002-01-14  Richard Henderson  <rth@redhat.com>
9324
9325         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9326         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9327
9328 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9329
9330         * reload1.c (reload_combine): Pass reg_sum replacement through
9331         copy_rtx in loop performing multiple changes.
9332
9333 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9334
9335         * except.c (remove_unreachable_regions): New.
9336         (free_eh_status): Clear exception_handler_labels.
9337         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9338         (find_exception_handler_labels): Don't add the same label more than
9339         once.
9340         (remove_exception_handler_label): Don't die if
9341         find_exception_handler_labels hasn't been called for the current
9342         function yet.
9343
9344 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9345
9346         * toplev.c (rest_of_compilation): Rebuild jump labels after
9347         gcse.
9348
9349 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9350
9351         * doc/extend.texi: Move documentation of X86 built-in functions
9352         here.
9353         * doc/invoke.texi: From here.
9354         * doc/sourcebuild.texi: Document location of documentation for
9355         machine built-in functions.
9356
9357 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9358
9359         * cppfiles.c (TEST_THRESHOLD): New macro.
9360         (SHOULD_MMAP): Ditto.
9361         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9362         be used.
9363
9364 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9365
9366         * unroll.c (final_reg_note_copy): Properly handle
9367         REG_LABEL
9368         (unroll_loops): Fix LOOP_CONDITION heuristics.
9369
9370 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9371
9372         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9373         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9374
9375 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9376
9377         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9378         threaded loop.
9379
9380 2002-01-14  Tom Rix  <trix@redhat.com>
9381
9382         * config/rs6000/rs6000.md: Fix typo with sradi.
9383
9384 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9385
9386         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9387         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9388         (clrstrdi, clrstrsi): Adapt callers.
9389
9390         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9391
9392         (movti splitter): Never use register 0 as base register.
9393
9394 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9395
9396         * combine.c (simplify_shift_const): Always generate new rtx
9397         for shift expression instead of reusing given expression.
9398
9399 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9400
9401         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9402         alpha_legitimize_address unless mode is Pmode.
9403
9404 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9405
9406         * doc/md.texi (Modifiers): Document the '*' constraint for the
9407         user.
9408
9409         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9410         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9411         for xstormy16 too.
9412
9413 2002-01-13  Richard Henderson  <rth@redhat.com>
9414
9415         * reload.c (find_reloads): Use a hard reg destination as reload reg
9416         for an input reload of the source.
9417
9418 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9419
9420         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9421         more generic.
9422
9423 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9424
9425         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9426         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9427
9428         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9429
9430 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9431
9432         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9433
9434 2002-01-12  Tom Rix  <trix@redhat.com>
9435
9436         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9437         TARGET_POWERPC64.
9438
9439 2002-01-12  Richard Henderson  <rth@redhat.com>
9440
9441         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9442
9443         * doc/invoke.texi: Update Alpha options.
9444
9445         * doc/invoke.texi: Update i386 built-in function lists.
9446
9447 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9448
9449         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9450         referencing outside.
9451
9452 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9453
9454         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9455         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9456         offsets, and change line folding.
9457         * optabs.c (expand_binop): Remove warnings.
9458         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9459
9460 2002-01-12  Graham Stott <grahams@redhat.com>
9461
9462         * attribs.c (handle_deprecated_attribute): constify WHAT.
9463         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9464         dangling else warning and constify WHAT.
9465         * except.h (struct function, struct inline_remap): Move
9466         struct tag forward defs before all prototypes.
9467         (duplicate_eh_regions): Whitespace.
9468
9469 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9470
9471         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9472         MODE_BASE_REG_CLASS.
9473         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9474
9475 2002-01-12  Richard Henderson  <rth@redhat.com>
9476
9477         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9478         (ix86_expand_vector_move): New.
9479         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9480         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9481         Remove old prefetch builtins.  Special case the logicals removed above.
9482         (ix86_expand_builtin): Likewise.
9483         (safe_vector_operand): Use V4SFmode, not TImode.
9484         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9485         (ix86_expand_timode_binop_builtin): New.
9486         * config/i386/i386-protos.h: Update.
9487         * config/i386/i386.h (enum ix86_builtins): Update.
9488         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9489         Use ix86_expand_vector_move in vector move expanders.
9490         (movti_internal, movti_rex64): Add xorps alternative.
9491         (sse_clrv4sf): Rename and adjust from sse_clrti.
9492         (prefetch): Don't work so hard.
9493         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9494         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9495         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9496
9497 2002-01-11  Richard Henderson  <rth@redhat.com>
9498
9499         * config/i386/mmintrin.h: New file.
9500         * config/i386/xmmintrin.h: New file.
9501         * config.gcc (i?86-*-*): Add extra_headers.
9502         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9503         truncation codes.
9504         (simplify_binary_operation): Handle saturating arithmetic codes.
9505         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9506         not the lowpart subreg.
9507         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9508         on error.
9509         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9510
9511 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9512
9513         * conflict.c (conflict_graph_compute): Free regsets when finished.
9514         * ssa.c (compute_coalesced_reg_partition): Likewise.
9515
9516 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9517
9518         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9519         every where we allocate a register.
9520
9521 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9522
9523         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9524         * lcm.c (compute_earliest, compute_farthest): Likewise.
9525
9526 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9527
9528         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9529
9530 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9531
9532         * doc/rtl.texi (Insns): Fix 2 typos.
9533
9534 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9535
9536         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9537         options.  Use @table @gcctabopt for MMIX options.  Add index
9538         entries for MMIX options.  Start new paragraph with first
9539         heading of the machine-dependent options.
9540
9541 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9542
9543         PR other/5299
9544         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9545         * combine.c (force_to_mode): Same.
9546         * reload1.c (clear_reload_reg_in_use): Same.
9547
9548 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9549
9550         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9551         and 'subtargets'.
9552
9553 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9554             Brad Lucier <lucier@math.purdue.edu>
9555
9556         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9557         mcpu.
9558
9559 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9560
9561         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9562         Protect with IN_LIBGCC.
9563         (LINK_EH_SPEC): Add required trailing space.
9564
9565 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9566
9567         * c-tree.h: Move function declarations so that they are listed
9568         under the filename which contains them.
9569         (check_identifier, finish_decl_top_level,
9570         lookup_name_current_level_global, shadow_record_fields): Remove.
9571
9572 2002-01-11  Andreas Jaeger  <aj@suse.de>
9573
9574         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9575         march.
9576
9577 2002-01-10  Richard Henderson  <rth@redhat.com>
9578
9579         * config/alpha/alpha.c (print_operand): Add 'J'.
9580         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9581         new operand with the sequence number for the lituse.  When splitting
9582         the insns, use gen_movdi_er_high_g and generate a sequence number.
9583         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9584
9585 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9586
9587         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9588         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9589         stvxl.
9590         (altivec_expand_builtin): Same.
9591         (altivec_expand_stv_builtin): New.
9592
9593         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9594
9595         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9596         ("altivec_lvehx"): New.
9597         ("altivec_lvewx"): New.
9598         ("altivec_lvxl"): New.
9599         ("altivec_lvx"): New.
9600         ("altivec_stvx"): New.
9601         ("altivec_stvebx"): New.
9602         ("altivec_stvehx"): New.
9603         ("altivec_stvewx"): New.
9604         ("altivec_stvxl"): New.
9605
9606 2002-01-10  Richard Henderson  <rth@redhat.com>
9607
9608         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9609         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9610         care not to delete instructions twice.
9611
9612 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9613
9614         * toplev.c: Don't declare environ (it's not used anywhere).
9615         * configure.in: Don't check for declaration of environ.
9616         * config/i386/xm-mingw32.h: Don't #define environ.
9617         * config.in, configure: Regenerate.
9618
9619 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9620
9621         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9622         * configure: Regenerate.
9623
9624         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9625         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9626         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9627         alpha/xm-vms.h.
9628         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9629         LIMITS_H_TEST here, not in m68k/x-next.
9630         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9631         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9632
9633         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9634         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9635         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9636
9637         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9638         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9639         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9640         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9641         replacement of quadlib.asm with quadlib.c.
9642
9643         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9644         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9645         config/rs6000/xm-beos.h: Delete file.
9646
9647         * config.gcc: Update to match above changes.
9648
9649 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9650
9651         * config/h8300/h8300.h: Fix comment typos.
9652         * config/h8300/h8300.md: Likewise.
9653         * config/h8300/lib1funcs.asm: Likewise.
9654
9655 2002-01-10  Dale Johannesen  <dalej@apple.com>
9656
9657         PR optimization/5269
9658         * unroll.c (precondition_loop_p): Make *increment be the correct
9659         sign when n_iterations known, to avoid confusing caller.
9660
9661 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9662
9663         * doc/extend.texi (deprecated): Fix a typo.
9664
9665 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9666
9667         * basic-block.h (update_br_prob_note): Declare.
9668         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9669         (try_forward_edges): Care negative frequencies and update note.
9670         (outgoing_edges_match): Tweek conditional merging heuristics.
9671         (try_crossjump_to_edge): use update_br_prob_note.
9672         * cfglayout.c (fixup_reorder_chain): Likewise.
9673         * cfrtl.c (update_br_prob_note): New.
9674         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9675
9676         * i386.c (ix86_decompose_address): Return -1 if address contains
9677         shift.
9678         (legitimate_address_p): Require ix86_decompose_address to return 1.
9679
9680         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9681         (cprop_insn): Likewise.
9682
9683 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9684
9685         * toplev.c: Fix formatting.
9686         * tree.c: Likewise.
9687         * tree-dump.c: Likewise.
9688         * unroll.c: Likewise.
9689         * unwind-dw2.c: Likewise.
9690         * unwind-dw2-fde.c: Likewise.
9691         * unwind-dw2-fde-glibc.c: Likewise.
9692         * unwind-sjlj.c: Likewise.
9693
9694 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9695
9696         * doc/invoke.texi: Document PDP-11 options.
9697
9698 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9699
9700         * config/h8300/h8300.h: Fix formatting.
9701
9702 2002-01-10  Ira Ruben   <ira@apple.com>
9703
9704         Add __attribute__ ((deprecated)).
9705         * extend.texi: Document __attribute__ ((deprecated)).
9706         * invoke.texi: Document -Wno-deprecated-declarations.
9707         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9708         * testsuite/gcc.dg/deprecated.c: New C test.
9709         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9710         (c_common_attribute_table): Add "deprecated" entry.
9711         (handle_deprecated_attribute): New function.
9712         * c-decl.c (deprecated_states): New enum.
9713         deprecated_state: State of "deprecated" handling.
9714         (start_decl): Set deprecated_state based on attributes.
9715         (grokdeclarator): Test for deprecated uses, propagate attribute.
9716         * c-typeck.c (build_component_ref): Test for deprecated fields.
9717         (build_external_ref): Test for deprecated primaries.
9718         * diagnostic.c (warn_deprecated_use) New function to issue
9719         warnings about __attribute__ ((depricated)) references.
9720         * flags.h (warn_deprecated_decl): Extern declared for
9721         -W[no-]deprecated-declarations option.
9722         * print-tree.c (print_node): Show deprecated flag status.
9723         * toplev.c (warn_deprecated_decl): Defined.
9724         (W_options): Added "deprecated-declaration".
9725         * toplev.h (warn_deprecated_use): Extern declared.
9726         * tree.h (struct tree_common): Define deprecated_flag.
9727         (TREE_DEPRECATED): New macro to access flag.
9728         * cp/call.c (build_call): Test for deprecated calls.
9729         * cp/class.c (add_implicitly_declared_members): Set global
9730         flag to tell grokdeclarator to not issue deprecated warnings.
9731         * cp/cp-tree.h: Add extern for adding_implicit_members.
9732         * cp/decl.c (deprecated_states): New enum.
9733         (start_decl): Set deprecated_state based on attributes.
9734         (grokdeclarator): Test for deprecated uses, propagate attribute.
9735         * cp/lex.c (do_identifier): Test for deprecated primaries.
9736         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9737
9738 2002-01-10  Ira Ruben   <ira@apple.com>
9739
9740         Fix to assign attributes to inline member functions.
9741         * cp/decl.c (start_method): Handle attrlist.
9742
9743 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9744
9745         * combine.c (expand_field_assignment): Use subreg_lsb().
9746
9747 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9748
9749         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9750         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9751         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9752         Recurse for any operand of AND as long as constant is non-zero.
9753
9754 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9755
9756         * config/h8300/h8300.md: Remove constraints from expanders.
9757
9758 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9759
9760         * varasm.c: Fix formatting.
9761         * varray.c: Likewise.
9762         * vmsdbgout.c: Likewise.
9763         * xcoffout.c: Likewise.
9764
9765 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9766
9767         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9768         update edge probabilities to match.
9769
9770 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9771
9772         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9773         dependencies.
9774         * doc/languages.texi, doc/sourcebuild.texi: New files.
9775         * doc/configfiles.texi: Make a subsubsection.  Update.
9776         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9777         instructions for building GCC.
9778         * doc/makefile.texi: Make a subsection.
9779         * doc/gccint.texi: Update.
9780
9781 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9782
9783         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9784
9785 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9786
9787         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9788
9789 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9790
9791         * optabs.c (expand_fix): Look for wider integer modes first.
9792
9793         * i386.md (mov?f): Avoid the fake const double trick for medium
9794         memory model.
9795         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9796         (fop_df_4): Disable for SSE compilation.
9797
9798 2002-01-10  Graham Stott  <grahams@redhat.com>
9799
9800         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9801         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9802
9803 2002-01-10  Richard Henderson  <rth@redhat.com>
9804
9805         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9806
9807 2002-01-10  Richard Henderson  <rth@redhat.com>
9808
9809         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9810         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9811
9812 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9813
9814         * combine.c (can_combine_p): Fix a comment typo.
9815
9816 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9817
9818         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9819         empty list correctly.  Change loop index $t to $f for
9820         consistency with rest of Makefile.
9821
9822 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9823
9824         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9825         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9826
9827         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9828         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9829         (altivec_init_builtins): Same.
9830         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9831         (altivec_expand_binop_builtin): Same.
9832         (altivec_expand_ternop_builtin): Same.
9833         (bdesc_dst): New.
9834
9835         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9836         ("altivec_vctuxs"): Fix typo.
9837         ("altivec_vnmsubfp"): Same.
9838         ("altivec_dssall"): New.
9839         ("altivec_mfvscr"): New.
9840         ("altivec_dss"): New.
9841         ("altivec_lvsl"): New.
9842         ("altivec_lvsr"): New.
9843         ("altivec_dstt"): New.
9844         ("altivec_dstst"): New.
9845         ("altivec_dststt"): New.
9846         ("altivec_dst"): New.
9847
9848         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9849         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9850
9851 2002-01-09  Richard Henderson  <rth@redhat.com>
9852
9853         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9854
9855 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9856
9857         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9858         function.
9859         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9860         prototype.
9861         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9862
9863 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9864
9865         * read-rtl.c: Fix formatting.
9866         * real.c: Likewise.
9867         * regclass.c: Likewise.
9868         * regrename.c: Likewise.
9869         * reg-stack.c: Likewise.
9870         * reload1.c: Likewise.
9871         * reload.c: Likewise.
9872         * rtl.c: Likewise.
9873
9874 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9875
9876         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9877         to extract items in the expr_list chain.
9878
9879 2002-01-09  Richard Henderson  <rth@redhat.com>
9880
9881         * config/vax/vax.c (vax_rtx_cost): Never abort.
9882
9883         * config/vax/vax.h (REAL_ARITHMETIC): Define.
9884
9885 2002-01-09  Jan Hubicka  <jh@suse.cz>
9886
9887         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9888
9889 2002-01-09  Richard Henderson  <rth@redhat.com>
9890
9891         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9892         Unify code from various alternatives.
9893
9894 2002-01-09  Richard Henderson  <rth@redhat.com>
9895
9896         * regrename.c (copy_value): Ignore the copy if the source register
9897         is present in the value chain with a narrower mode.
9898
9899 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9900
9901         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9902         for the c4x target. Also improve layout.
9903
9904 2002-01-09  Richard Henderson  <rth@redhat.com>
9905
9906         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9907         * config/m32r/m32r.md (and ior xor splitters): Swap operands
9908         to match insn patterns.
9909
9910 2002-01-09  Richard Henderson  <rth@redhat.com>
9911
9912         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9913         (copyprop_hardreg_forward_1): Likewise.
9914
9915 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9916
9917         * pa.md (decrement_and_branch_until_zero): Change predicate for
9918         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9919
9920 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9921
9922         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9923         gets undefined. For Darwin.
9924
9925 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9926
9927         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9928
9929 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9930
9931         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9932
9933 2002-01-08  Richard Henderson  <rth@redhat.com>
9934
9935         * regrename.c (copy_value): Ignore overlapping copies.
9936
9937 2002-01-08  Richard Henderson  <rth@redhat.com>
9938
9939         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9940         as needed to avoid shared structure.
9941
9942 2002-01-08  Kazu Hirata  <kazu@hxi.com>
9943
9944         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9945         H8/300H and H8/S.
9946
9947 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9948
9949         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9950         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9951         documentation of obsolete macros.
9952         * system.h: Poison these macros.
9953         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9954         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9955         config/c4x/c4x.h, config/clipper/clipper.h,
9956         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9957         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9958         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9959         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9960         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9961         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9962         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9963         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9964         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9965         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9966         config/sparc/sparc.h, config/stormy16/stormy16.h,
9967         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9968         definitions and commented out definitions of obsolete macros.
9969         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9970         of MAX_INT_TYPE_SIZE.
9971
9972 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9973
9974         * config/s390/s390.c (s390_preferred_reload_class): Never
9975         return ADDR_REGS if it isn't a subset of the given class.
9976         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9977         FP_REGS, but all superclasses as well.
9978
9979         * config/s390/s390.c (s390_function_profiler): Fix thinko.
9980
9981         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9982         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9983         must not be a const_int.
9984
9985 2002-01-08  Richard Henderson  <rth@redhat.com>
9986
9987         * Makefile.in (toplev.o): Depend on options.h.
9988         (gcc.o): Depend on specs.h.
9989
9990 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
9991
9992         * expr.c (store_expr): Convert VOIDmode constants back to target's
9993         mode.
9994
9995 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9996
9997         * doc/invoke.texi: Markup gcc as @command.  Refer to
9998         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9999         of http://gcc.gnu.org/thanks.html.
10000
10001 2002-01-08  Dale Johannesen  <dalej@apple.com>
10002
10003         * config/rs6000/rs6000.md: Add missing int register
10004         target case to movdf_low.
10005
10006 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10007
10008         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10009         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10010         (cppinit.o): Depend on except.h.
10011         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10012         s-specs): New rules.
10013
10014         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10015         Don't create specs.h/options.h/gencheck.h here.  Remove
10016         unnecessary variable settings from last argument of AC_OUTPUT.
10017         * config.in, configure: Regenerate.
10018         * intl.c: Hardcode package name as "gcc".
10019
10020         * cppinit.c: Include except.h.
10021         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10022         appropriate.
10023         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10024         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10025         (!)USING_SJLJ_EXCEPTIONS.
10026         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10027
10028 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10029
10030         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10031         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10032         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10033         documentation of obsolete macros.
10034         * system.h: Poison these macros.
10035         * config/d30v/d30v.h, config/ns32k/encore.h,
10036         config/stormy16/stormy16.h: Remove definitions and commented out
10037         definitions of obsolete macros.
10038
10039 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10040
10041         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10042         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10043         warnings.
10044
10045 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10046
10047         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10048         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10049         to insn adjusting stack/frame pointer.
10050         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10051         accept operands that cause the insn to be non-splittable.
10052
10053 2002-01-08  Graham Stott  <grahams@redhat.com>
10054
10055         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10056         (C_TYPE_FIELDS_VOLATILE): Likewise.
10057         (C_TYPE_BEING_DEFINED): Likewise.
10058         (C_IS_RESERVED_WORD): Likewise.
10059         (C_TYPE_VARIABLE_SIZE): Likewise.
10060         (C_DECL_VARIABLE_SIZE): Likewise.
10061         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10062         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10063         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10064         parenthesis.
10065         (C_DECL_ANTICIPATED): Likewise.
10066         (c_build_type_variant): Add parenthesis.
10067
10068 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10069
10070         * gcc.c (option_map): Remove --version.
10071         (process_command): Handle -fversion following the GNU Coding
10072         Standards.  Partially addresses PR other/704.
10073
10074 2002-01-08  Graham Stott  <grahams@redhat.com>
10075
10076         * combine.c (combine_instructions): Fix typo.
10077
10078 2002-01-08  Graham Stott  <grahams@redhat.com>
10079
10080         * debug.h: Use "tree" and "rtx" throughout.
10081
10082         * debug.c: Likewise.
10083
10084 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10085
10086         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10087         constant pool, use the pool's version of the symbol instead.
10088
10089 2002-01-07  Richard Henderson  <rth@redhat.com>
10090
10091         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10092         the original register was copied in a mode with a fewer number of
10093         hard registers than the desired mode.
10094         (copyprop_hardreg_forward_1): Likewise.
10095         (debug_value_data): Fix loop test.
10096         * toplev.c (parse_options_and_default_flags): Reenable
10097         -fcprop-registers at -O1.
10098
10099 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10100
10101         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10102         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10103
10104         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10105         predicates.
10106
10107         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10108
10109 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10110
10111         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10112         (pa_output_function_prologue): Output local label at the beginning of
10113         the prologue when profiling.
10114         (hppa_profile_hook): Use the local label rather than the function label.
10115         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10116
10117 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10118
10119         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10120         (altivec_expand_unop_builtin): Fix thinko.
10121         (altivec_expand_binop_builtin): Same.
10122         (altivec_expand_ternop_builtin): Same.
10123         (altivec_expand_builtin): Same.
10124
10125 2002-01-07  Richard Henderson  <rth@redhat.com>
10126
10127         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10128
10129 2002-01-07  Jason Merrill  <jason@redhat.com>
10130
10131         * unwind-dw2.c (execute_cfa_program): Use < again.
10132
10133 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10134
10135         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10136
10137 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10138
10139         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10140         Don't allow -1 - x -> ~x simplifications in the first pass.
10141
10142 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10143
10144         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10145         arguments.
10146         (altivec_expand_binop_builtin): Same.
10147         (altivec_expand_unop_builtin): Same.
10148         (print_operand): Fix typo.
10149         (bdesc_1arg): Add vupk* variants.
10150
10151         * rs6000.h (rs6000_builtins): Add vupk* enums.
10152
10153         * rs6000.md: Add altivec_vupk* variants.
10154
10155 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10156
10157         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10158         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10159         and last update dates.
10160
10161 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10162
10163         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10164
10165 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10166
10167         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10168         * config/avr/avr.h (CPP_SPEC): Likewise.
10169         (LINK_SPEC): Likewise.
10170         (CRT_BINUTILS_SPECS): Likewise.
10171         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10172         * doc/invoke.texi (AVR Options): Document them.
10173
10174 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10175
10176         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10177         LABEL_NUSES.
10178
10179 2002-01-07  Graham Stott  <grahams@redhat.com>
10180
10181         * config/i386/i386.h: Update copyright date.
10182         (HALF_PIC_PTR): Add parenthesis.
10183         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10184         (CONSTANT_ALIGNMENT): Add parenthesis.
10185         (DATA_ALIGNMENT): Likewise.
10186         (LOCAL_ALIGNMENT): Likewise.
10187         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10188         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10189         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10190         (HARD_REGNO_NREGS): Add paranethesis.
10191         (VALID_SSE_REG_MODE): Whitespace.
10192         (VALID_MMX_REG_MODE): Whitespace.
10193         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10194         (ix86_hard_regno_mode_ok): Add parenthesis.
10195         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10196         (RETURN_IN_MEMORY): Whitespace.
10197         (N_REG_CLASSES): Add parenthesis.
10198         (INTEGER_CLASS_P): Add parenthesis and wrap.
10199         (FLOAT_CLASS_P): Likewise.
10200         (SSE_CLASS_P): Likewise.
10201         (MMX_CLASS_P): Likewise.
10202         (MAYBE_INTEGER_CLASS_P): Likewise.
10203         (MAYBE_FLOAT_CLASS_P): Likewise.
10204         (MAYBE_SSE_CLASS_P): Likewise.
10205         (MAYBE_MMX_CLASS_P): Likewise.
10206         (Q_CLASS_P): Likewise.
10207         (GENERAL_REGNO_P): Uppercase macro parameter.
10208         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10209         (FP_REGNO_P): Likewise.
10210         (ANY_FP_REGNO_P): Uppercase macro parameter.
10211         (SSE_REGNO_P): Likewise.
10212         (SSE_REGNO): Likewise.
10213         (SSE_REG_P): Likewise.
10214         (SSE_FLOAT_MODE_P): Likewise.
10215         (MMX_REGNO_P): Likewise.
10216         (MMX_REG_P):Likewise.
10217         (STACK_REG_P): Likewise.
10218         (NON_STACK_REG_P): Likewise.
10219         (STACK_TOP_P): Likewise.
10220         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10221         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10222         (SECONDARY_MEMORY_NEEDED): Likewise.
10223         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10224         (MD_ASM_CLOBBERS): Whitespace and wrap.
10225         (MUST_PASS_IN_STACK): Whitespace and wrap.
10226         (RETURN_POPS_ARGS): Add parenthesis.
10227         (INIT_CUMULATIVE_ARGS): Likewise.
10228         (FUNCTION_ARG): Likewise.
10229         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10230         (SETUP_INCOMING_VARARGS): Likewise.
10231         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10232         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10233         parenthsis.
10234         (EXPAND_BUILTIN_VA_ARG): Likewise.
10235         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10236         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10237         (INITIAL_ELIMINATION_OFFSET): Likewise.
10238         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10239         (REGNO_OK_FOR_BASE_P): Likewise.
10240         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10241         (REGNO_OK_FOR_DIREG_P): Likewise.
10242         (REG_OK_FOR_INDEX_P): Whitespace.
10243         (REG_OK_FOR_BASE_P): Whitespace.
10244         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10245         parenthesis.
10246         (FIND_BASE_TERM): Fix typo.
10247         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10248         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10249         (SYMBOLIC_CONST; Whitespace.
10250         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10251         (ENCODE_SECTION_INFO): Whitespace.
10252         (FINALIZE_PIC): Remove do { ... } while (0).
10253         (PROMOTE_MODE): Wrap in do { ... } while (0).
10254         (CONST_COSTS): Whitespace.
10255         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10256         (REGISTER_MOVE_COST): Add parenthesis.
10257         (MEMORY_MOVE_COST): Likewise.
10258         (EXTRA_CC_MODES): Whitespace.
10259         (SELECT_CC_MODE): Add parenthesis and whitespace.
10260         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10261         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10262         (ASM_OUTPUT_LABEL): Add paramethesis.
10263         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10264         (ASM_OUTPUT_REG_POP): Likewise.
10265         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10266         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10267
10268         * config/i386/i386.c: Update copyright.
10269         (CHECK_STACK_LIMIT): Add parenthesis.
10270         (AT_BP): Uppercase macro parameter.
10271         (x86_64_int_parameter_registers): Constify.
10272         (x86_64_int_return_registers): Likewise.
10273         (ix86_compare_op0): Use rtx.
10274         (construct_container): Constify INTREG parameter.
10275         (function_arg): Use rtx.
10276
10277         * diagnostic.h: Update copyright date.
10278         (output_buffer_state): Add parenthesis.
10279         (output_buffer_format_args): Likewise.
10280
10281         * combine.c (combine_instructions): Replace XEXP (links, 0)
10282         with link.
10283
10284 2002-01-06  H.J. Lu <hjl@gnu.org>
10285
10286         * cfgcleanup.c (thread_jump): Fix 2 typos.
10287
10288 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10289
10290         * config.gcc: Add support for --enable-altivec.
10291
10292 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10293
10294         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10295
10296 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10297
10298         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10299         __objc_class_name_*.
10300
10301 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10302
10303         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10304
10305 2002-01-06  Richard Henderson  <rth@redhat.com>
10306
10307         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10308         nop them out.  Increment label reference count for REG_LABEL.
10309         (fill_slots_from_thread): Frob label reference count around
10310         delete_related_insns.
10311
10312 2002-01-05  Richard Henderson  <rth@redhat.com>
10313
10314         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10315         jump threading.
10316
10317 2002-01-05  Richard Henderson  <rth@redhat.com>
10318
10319         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10320         * integrate.c (output_inline_function): Likewise.
10321         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10322         to remove_unnecessary_notes after emitting abstract instance.
10323         Force an emitted nested function to have its parent emited as well.
10324         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10325         for null.
10326         (rtl_for_decl_location): Do not look at reload data structures
10327         before reload has run.
10328
10329 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10330
10331         * cse.c: Fix formatting.
10332         * dwarf2asm.c: Likewise.
10333         * dwarf2out.c: Likewise.
10334         * explow.c: Likewise.
10335         * expmed.c: Likewise.
10336         * function.c: Likewise.
10337         * gcov.c: Likewise.
10338         * gencheck.c: Likewise.
10339         * genrecog.c: Likewise.
10340         * ggc-common.c: Likewise.
10341         * ggc-page.c: Likewise.
10342         * global.c: Likewise.
10343
10344 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10345
10346         * combine.c: Fix formatting.
10347
10348 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10349
10350         PR middle-end/1557
10351         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10352
10353 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10354
10355         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10356         as 1 for __powerpc64__ as well.
10357
10358         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10359
10360         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10361         return it.
10362
10363 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10364
10365         * lcm.c: Revert change, due to performance regression it causes on
10366         SPEC because it's slightly more conservative (sigh, I hate
10367         edge-based LCM).
10368
10369 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10370
10371         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10372
10373 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10374
10375         * doc/cppinternals.texi: Update.
10376
10377 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10378
10379         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10380         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10381         negatives.
10382         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10383         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10384         kludge for pre-october-14th mmix versions to handle new-found bug
10385         with PUSHJ/PUSHGO and the register stack.
10386         * config/mmix/mmix.h (struct machine_function): Rename member
10387         has_call_value_without_parameters to has_call_without_parameters.
10388         All referers changed.
10389         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10390         TARGET_MASK_BRANCH_PREDICT): New macros.
10391         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10392         -mno-reg-stack-fill-bug-workaround.
10393         * config/mmix/mmix.md ("call"): Set struct machine member
10394         has_call_without_parameters.
10395
10396 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10397
10398         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10399
10400 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10401
10402         * cfgcleanup.c: Include tm_p.h
10403         (mark_effect): Fix handling of hard register; fix handling of SET
10404
10405 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10406
10407         * config/h8300/h8300.md (anonymous patterns): Check that
10408         operands are registers before using REGNO on them.
10409
10410 2002-01-03  Roland McGrath  <roland@frob.com>
10411
10412         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10413
10414 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10415
10416         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10417         * c-common.h (genrtl_expr_stmt_value): Likewise.
10418         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10419         (expand_expr_stmt_value): Add maybe_last argument.
10420         Don't warn about statement with no effect if it is the last statement
10421         in expression statement.
10422         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10423         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10424         expand_expr_stmt_value.
10425         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10426         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10427         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10428         as maybe_last to expand_expr_stmt_value.
10429
10430 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10431
10432         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10433         be passed in, do not build it.
10434         (c_begin_if_stmt): New function.
10435         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10436         * c-common.h (c_expand_start_cond): Update prototype.
10437         (c_begin_if_stmt): Prototype new function.
10438         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10439         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10440         c_begin_while_stmt and c_finish_while_stmt_cond.
10441
10442 2002-01-04  William Cohen  <wcohen@redhat.com>
10443
10444         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10445         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10446         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10447         * config/pa/som.h (ASM_FILE_START): Likewise.
10448
10449 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10450
10451         * lcm.c: Include df.h.
10452         Add available_transfer_function prototype.
10453         (compute_available): Rework to use iterative dataflow framework.
10454         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10455         with bb_info in df.h
10456         (available_transfer_function): New function.
10457
10458         * Makefile.in (lcm.o): add df.h to dependencies.
10459
10460 2002-01-04  Richard Henderson  <rth@redhat.com>
10461
10462         * config/alpha/alpha.c (some_operand): Accept HIGH.
10463         (input_operand): Likewise; accept simple references to globals.
10464         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10465         (alpha_const_double_ok_for_letter_p): Likewise.
10466         (alpha_extra_constraint): Likewise.
10467         (alpha_preferred_reload_class): Likewise.  Do not force
10468         symbolic constants to memory.
10469         (alpha_legitimate_address_p): Accept simple references
10470         to small_symbolic_operand.
10471         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10472         called when no_new_pseudos.  Emit simple symbolic references.
10473         Split integers into low, high, and rest.
10474         (alpha_expand_mov): Use alpha_legitimize_address.
10475         (some_small_symbolic_mem_operand): New.
10476         (split_small_symbolic_mem_operand): New.
10477         * config/alpha/alpha-protos.h: Update.
10478         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10479         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10480         (EXTRA_CONSTRAINT): Likewise.
10481         (PREFERRED_RELOAD_CLASS): Likewise.
10482         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10483         (PREDICATE_CODES): Update.
10484         * config/alpha/alpha.md: New post-reload splitters to convert
10485         simplfied symbolic operands to the form that references $29.
10486         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10487         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10488
10489 2002-01-03  Richard Henderson  <rth@redhat.com>
10490
10491         * local-alloc.c (function_invariant_p): Update commentary.
10492
10493 2002-01-04  H.J. Lu <hjl@gnu.org>
10494
10495         * toplev.c (rest_of_compilation): Fix a typo when calling
10496         cleanup_cfg.
10497
10498 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10499
10500         * c-common.c: Fix formatting.
10501         * diagnostic.c: Likewise.
10502         * doloop.c: Likewise.
10503         * dwarf2out.c: Likewise.
10504
10505 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10506
10507         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10508         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10509
10510 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10511
10512         * cpperror.c: Update comments and copyright.
10513         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10514         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10515
10516 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10517
10518         * collect2.c (main): Use strcmp when testing for "-shared".
10519
10520 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10521
10522         * cppmacro.c: Don't include intl.h.  Update comments.
10523         (new_number_token): Allocate enough buffer for 64-bit unsigned
10524         integers; update prototype.
10525         * cppmain.c: Update comments.
10526
10527 2002-01-03  William Cohen  <wcohen@redhat.com>
10528
10529         * function.h (struct function): Add profile.
10530         (current_function_profile): New.
10531         doc/extend.texi: Update documentation.
10532         * final.c (final_start_function): Use current_function_profile
10533         instead of profile_flag.
10534         (profile_after_prologue): Likewise.
10535         * function.c (expand_function_start): Likewise.
10536         (expand_function_start): Likewise.
10537         * config/alpha/alpha.c (direct_call_operand):
10538         (alpha_does_function_need_gp): Likewise.
10539         (alpha_expand_prologue): Likewise.
10540         * config/arm/arm.c (arm_expand_prologue): Likewise.
10541         thumb_expand_prologue: Likewise.
10542         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10543         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10544         (fr30_expand_prologue): Likewise.
10545         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10546         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10547         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10548         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10549         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10550         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10551         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10552         (m32r_expand_prologue): Likewise.
10553         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10554         (m88k_expand_prologue): Likewise.
10555         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10556         * config/mips/mips.c (compute_frame_size): Likewise.
10557         (mips_expand_prologue): Likewise.
10558         (mips_can_use_return_insn): Likewise.
10559         * config/pa/elf.h (ASM_FILE_START): Likewise.
10560         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10561         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10562         * config/pa/som.h (ASM_FILE_START): Likewise.
10563         * config/romp/romp.c (romp_using_r14): Likewise.
10564         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10565         (rs6000_stack_info): Likewise.
10566         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10567         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10568         * config/v850/v850.c (compute_register_save_size): Likewise.
10569
10570 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10571
10572         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10573         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10574
10575 2002-01-03  Turly O'Connor  <turly@apple.com>
10576
10577         * darwin.c (machopic_output_possible_stub_label): Don't generate
10578         stub routines for pseudo-stubs which we've just defined.
10579
10580 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10581
10582         * builtins.c: Fix formatting.
10583         * c-typeck.c: Likewise.
10584         * combine.c: Likewise.
10585         * expr.c: Likewise.
10586         * loop.c: Likewise.
10587
10588 2002-01-03  Andreas Schwab  <schwab@suse.de>
10589
10590         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10591         and return true if _cpp_push_next_buffer pushed a new include
10592         file.
10593         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10594         _cpp_pop_file_buffer did not push a new file.
10595         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10596
10597 2002-01-02  Eric Christopher  <echristo@redhat.com>
10598
10599         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10600         FIND_REG_INC_NOTE call. Update copyright.
10601         * loop.c (canonicalize_condition): Ditto.
10602         * reorg.c (delete_scheduled_jump): Ditto.
10603
10604 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10605
10606         * gcse.c: Fix formatting.
10607
10608 2002-01-03  Graham Stott  <grahams@redhat.com>
10609
10610         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10611         forward defs for struct tags rtx_def, union_tree, rtvec_def
10612         also output corresponding typedefs for rtx, tree, and rtvec.
10613
10614         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10615         rtvec_def along with corresponding typedefs for rtx, tree, and
10616         rtvec to config.h, hconfig.h, tconfig.h.
10617
10618 2002-01-03  Graham Stott  <grahams@redhat.com>
10619
10620         * tree.h: Update copyright date.
10621         (IS_EXPR_CODE_CLASS): Add parenthesis.
10622         (TREE_SET_CODE): Add whitespace.
10623         (TREE_CHECK): Add parenthesis.
10624         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10625         (CST_OR_CONSTRUCTOR_CHECK):
10626         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10627         (TREE_SYMBOL_REFERENCED): Whitespace.
10628         (INT_CST_LT): Likewise.
10629         (INT_CST_LT_UNSIGNED): Likewise.
10630         (tree_real_cst): Unwrap comment.
10631         (tree_string): Likewise.
10632         (tree_complex): Likewise.
10633         (IDENTIFIER_POINTER): correct cast.
10634         (SAVE_EXPR_CONTEXT): Whitespace.
10635         (EXPR_WFL_FILENAME_NODE): Likewise.
10636         (EXPR_WFL_FILENAME): Remove parenthesis.
10637         (DECL_ORIGIN): Add parenthesis.
10638         (DECL_FROM_INLINE): Use NULL_TREE.
10639         (build_int_2): Whitespace.
10640         (build_type_variant): Add parenthesis.
10641
10642         * gcc/jcf-parse.c: Update copyright date.
10643         (yyparse): Constify resource_filename.
10644
10645 2002-01-03  Graham Stott  <grahams@redhat.com>
10646
10647         * rtl.h: Update copyright date.
10648         (RTL_CHECK1): Wrap long line.
10649         (RTL_CHECK2): Likewise.
10650         (RTL_CHECKC1): Wrap long line and whitespace.
10651         (RTL_CHECKC2): Likewise.
10652         (XWINT): Whitespace.
10653         (XINT): Likewise.
10654         (XSTR): Likewise.
10655         (XEXP): Likewise.
10656         (XVEC): Likewise.
10657         (XMODE): Likewise.
10658         (XBITMAP): Likewise.
10659         (XTREE): Likewise.
10660         (XBBDEF): Likewise.
10661         (XTMPL): Likewise.
10662         (X0WINT): Likewise.
10663         (X0INT):Likewise.
10664         (X0UINT): Likewise.
10665         (X0STR): Likewise.
10666         (X0EXP): Likewise.
10667         (X0VEC): Likewise.
10668         (X0MODE): Likewise.
10669         (X0BITMAP): Likewise.
10670         (X0TREE): Likewise.
10671         (X0BBDEF): Likewise.
10672         (X0ADVFLAGS): Likewise.
10673         (X0CSELIB): Likewise.
10674         (X0MEMATTR): Likewise.
10675         (XCWINT): Likewise.
10676         (XCINT): Likewise.
10677         (XCUINT): Likewise.
10678         (XCSTR): Likewise.
10679         (XCEXP): Likewise.
10680         (XCVEC): Likewise.
10681         (XCMODE): Likewise.
10682         (XCBITMAP): Likewise.
10683         (XCTREE): Likewise.
10684         (XCBBDEF): Likewise.
10685         (XCADVFLAGS): Likewise.
10686         (XCCSELIB): Likewise.
10687         (XC2EXP): Likewise.
10688         (INSN_UID): Likewise.
10689         (PREV_INSN): Likewise.
10690         (PATTERN): Likewise.
10691         (INSN_CODE): Likewise.
10692         (PUT_REG_NOTE_KIND): Likewise.
10693         (CODE_LABEL_NUMBER): Likewise.
10694         (NOTE_SOURCE_FILE): Likewise.
10695         (NOTE_BLOCK): Likewise.
10696         (NOTE_EH_HANDLER): Likewise.
10697         (NOTE_RANGE_INFO): Likewise.
10698         (NOTE_LIVE_INFO): Likewise.
10699         (NOTE_BASIC_BLOCK): Likewise.
10700         (NOTE_EXPECTED_VALUE): Likewise.
10701         (NOTE_LINE_NUMBER): Likewise.
10702         (LABEL_NAME): Likewise.
10703         (LABEL_NUSES): Likewise.
10704         (LABEL_ALTERNATE_NAME): Likewise.
10705         (ADDRESSOF_DECL): Likewise.
10706         (JUMP_LABEL): Likewise.
10707         (LABEL_NEXTREF): Likewise.
10708         (REGNO): Likewise.
10709         (ORIGINAL_REGNO: Likewise.
10710         (HARD_REGISTER_NUM_P): Add parenthesis.
10711         (SUBREG_REG): Whitespace.
10712         (SUBREG_BYTE): Likewise.
10713         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10714         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10715         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10716         (ASM_OPERANDS_INPUT_VEC): Likewise.
10717         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10718         (ASM_OPERANDS_INPUT): Likewise.
10719         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10720         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10721         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10722         (ASM_OPERANDS_INPUT_MODE): Likewise.
10723         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10724         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10725         (MEM_SET_IN_STRUCT_P): Minor reformat.
10726         (TRAP_CONDITION): Whitespace.
10727         (TRAP_CODE): Likewise.
10728         (COND_EXEC_TEST): Likewise.
10729         (COND_EXEC_CODE): Likewise.
10730         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10731         (PHI_NODE_P): Add parenthesis.
10732         (plus_constant): Whitespace and add parenthesis.
10733
10734 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10735
10736         * config/avr/avr.c: Fix comment typos.
10737         * config/c4x/c4x.md: Likewise.
10738         * config/dsp16xx/dsp16xx.h: Likewise.
10739         * config/dsp16xx/dsp16xx.md: Likewise.
10740         * config/i386/i386.md: Likewise.
10741         * config/ia64/ia64.c: Likewise.
10742         * config/m32r/m32r.h: Likewise.
10743         * config/m68hc11/m68hc11.md: Likewise.
10744         * config/mmix/mmix.c: Likewise.
10745         * config/mn10200/mn10200.c: Likewise.
10746         * config/romp/romp.c: Likewise.
10747         * config/sh/sh.c: Likewise.
10748         * config/stormy16/stormy16.c: Likewise.
10749         * config/stormy16/stormy16.h: Likewise.
10750         * config/stormy16/stormy16.md: Likewise.
10751
10752 2002-01-03  Graham Stott  <grahams@redhat.com>
10753
10754         * loop.h: Update copyright date.
10755         (LOOP_MOVABLES): Fix typo.
10756         (LOOP_REGS): Likewise.
10757         (LOOP_IVS): Likewise.
10758
10759 2002-01-03  Graham Stott  <grahams@redhat.com>
10760
10761         * cppinit.c: Update copyright date.
10762         Don't include output.h
10763         * Makefile.in: Update copyright date.
10764         Update dependency.
10765
10766 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10767
10768         PR c/5226
10769         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10770         (-pthread) Add to RS/6000 options.
10771
10772 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10773
10774         * except.c: Fix comment typos.
10775         * loop.c: Likewise.
10776         * varasm.c: Likewise.
10777         * doc/tm.texi: Fix a typo.
10778
10779 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10780
10781         * c-typeck.c (output_init_element): Allow initializing static storage
10782         duration objects with compound literals.
10783
10784 2002-01-02  Richard Henderson  <rth@redhat.com>
10785
10786         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10787         after abusing it.
10788
10789 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10790
10791         * gcc.c (default_compilers): Const-ify.
10792         * mips-tdump.c (stab_names): Likewise.
10793         * mips-tfile.c (map_coff_types, map_coff_storage,
10794         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10795         pseudo_ops_t, pseudo_ops): Likewise.
10796         * protoize.c (default_include): Likewise
10797
10798         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10799         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10800         Add array size in declaration.
10801         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10802         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10803         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10804         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10805         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10806         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10807         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10808         emtens, make_nan): Const-ify.
10809         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10810         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10811
10812 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10813
10814         * config.gcc (ia64-*-*): Set extra_headers.
10815         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10816         * config/alpha/t-osf: Remove.
10817         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10818
10819 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10820
10821         * config/rs6000/t-aix43: Revert previous change.
10822
10823 2002-01-02  Jason Merrill  <jason@redhat.com>
10824
10825         * c-decl.c (c_expand_body): Call outlining_inline_function when
10826         emitting an inline function out of line.
10827
10828 2002-01-02  Richard Henderson  <rth@redhat.com>
10829
10830         * dwarf2out.c (limbo_die_node): Add created_for member.
10831         (new_die): New argument created_for.  Update all callers.
10832         (mark_limbo_die_list): New.
10833         (dwarf2out_init): Register limbo_die_list as a root.
10834         (dwarf2out_finish): Force insert limbo dies into their function
10835         context.
10836
10837 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10838
10839         PR c++/5089
10840         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10841
10842 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10843
10844         * config/h8300/fixunssfsi.c: Update copyright.
10845         Fix comment typos.
10846         Fix formatting.
10847         * config/h8300/h8300.c: Update copyright.
10848         Eliminate warnings.
10849
10850 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10851
10852         * config/romp/romp.c: Fix comment formatting.
10853         * config/romp/romp.h: Likewise.
10854         * config/romp/romp.md: Likewise.
10855         * config/s390/s390.c: Likewise.
10856         * config/stormy16/stormy16.c: Likewise.
10857         * config/stormy16/stormy16.h: Likewise.
10858
10859 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10860
10861         * c-common.h (genrtl_expr_stmt_value): Declare.
10862         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10863         (genrtl_goto_stmt_value): ... this new function.  Pass new
10864         argument down to expand_expr_stmt_value, taking
10865         TREE_ADDRESSABLE into account.
10866         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10867         STMT_EXPR as addressable, i.e., one whose result we want.
10868         * expr.c (expand_expr): Don't save expression statement value
10869         of labeled_blocks or loop_exprs.
10870         * stmt.c (expand_expr_stmt): Redirect to...
10871         (expand_expr_stmt_value): ... this new function.  Use new
10872         argument to tell whether to save expression value.
10873         (expand_end_stmt_expr): Reset last_expr_type and
10874         last_expr_value if we don't have either.
10875         * tree-inline.c (declare_return_variable): Mark its use
10876         statement as addressable.
10877         * tree.h: Document new use of TREE_ADDRESSABLE.
10878         (expand_expr_stmt_value): Declare.
10879
10880 2002-01-01  Tom Rix  <trix@redhat.com>
10881
10882         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10883         rs6000_emit_allocate_stack.
10884
10885 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10886
10887         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10888         ${srcdir}/ginclude/ to every entry in extra_headers.
10889         * configure: Regenerate.
10890         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10891         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10892         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10893         * ginclude/proto.h: Rename to config/convex/proto.h.
10894
10895 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10896
10897         * attribs.c (handle_vector_size_attribute): Use host_integerp
10898         and tree_int_cst; remove warnings.
10899         * caller-save.c (insert_restore): Add cast to get rid of warning.
10900         (insert_save): Likewise.
10901         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10902         * regmove.c (find_matches): Add temporary var to kill a warning.
10903
10904 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
10905
10906         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10907         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10908         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10909         (vms-dwarf2eh.o): Add Makefile rule.
10910         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10911         * config/alpha/vms-dwarf2eh.asm: New file.
10912
10913         * gcc.c (delete_if_ordinary): Delete all versions.
10914
10915 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10916
10917         * config/mmix/mmix.md: Update FIXME to not mention
10918         define_constants.
10919         (MMIX_rJ_REGNUM): New define_constants constant.
10920         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10921         "*movdicc_real"): Adjust contraints formatting.
10922         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10923         for branch prediction.
10924         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10925         output template.
10926         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10927         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10928         number.  Delete related FIXMEs.
10929         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10930         from number to MMIX_rJ_REGNUM.
10931         (TARGET_MASK_BRANCH_PREDICT): New.
10932         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10933         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
10934         value.  Add -mbranch-predict and -mno-branch-predict.
10935         (TARGET_VERSION): Drop date.
10936         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10937         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10938         for finding out global symbols.
10939         (mmix_asm_output_labelref): Revert condition for global symbol.
10940         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10941         (mmix_print_operand_punct_valid_p): A '+' is valid.
10942
10943 See ChangeLog.6 for earlier changes.