OSDN Git Service

5435330cac9c690e4b85d8dc5420d91e15ede461
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2
3         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
4         Bum three instructions from each routine.
5
6 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7
8         * Makefile.in: Update.
9         * decl.c (push_c_function_context, pop_c_function_context,
10         mark_c_function_context): Rename for consistency.
11         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
12         * c-tree.h (push_c_function_context, pop_c_function_context,
13         mark_c_function_context): Rename for consistency.
14         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
15         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
16         * function.c (init_lang_status, save_lang_status,
17         restore_lang_status, mark_lang_status, free_lang_status):
18         Move to langhooks.h.
19         (push_function_context_to, pop_function_context_from,
20         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
21         Update.
22         * function.h (init_lang_status, save_lang_status,
23         restore_lang_status, mark_lang_status, free_lang_status):
24         Move to langhooks.h.
25         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
26         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
27         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
28         LANG_HOOKS_FUNCTION_INITIALIZER): New.
29         (LANG_HOOKS_INITIALIZER): Update.
30         (lhd_do_nothing_f): New.
31         * langhooks.h (struct lang_hooks_for_functions): New.
32         (struct lang_hooks): New hooks.
33         * langhooks.c (lhd_do_nothing_f): New.
34 objc:
35         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
36         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
37
38 2002-04-19  David S. Miller  <davem@redhat.com>
39
40         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
41         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
42
43 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
44
45         PR optimization/3756
46         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
47         x = ((int) y < 0) ? cst1 : cst2.
48
49 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
50
51         PR c/6358
52         * function.c: Reapply patch for c/6358.
53         (expand_function_end): Copy decl_rtl's mode, not
54         current_function_return_rtx mode.
55
56 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
57
58         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
59         targets.
60
61 2002-04-19  Tom Tromey  <tromey@redhat.com>
62
63         * doc/install.texi (Specific): Update status of Solaris 2.8.
64         For PR libgcj/6158.
65
66 2002-04-19  Andreas Schwab  <schwab@suse.de>
67
68         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
69         (PUT_REAL): Restore old definition.
70
71 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
72             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
73
74         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
75         binutils 2.11.2 and higher generate smaller binaries than Sun's
76         native tools.
77
78 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
79
80         PR c++/6352
81         * toplev.c (rest_of_compilation): Do not defer functions for which
82         TREE_SYMBOL_REFERENCED has already been set.
83
84 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
85
86         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
87         alternative.
88
89 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
90
91         * builtins.c: Include langhooks.h.
92         (lang_type_promotes_to): Remove.
93         (expand_builtin_va_arg): Use new hook.
94         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
95         (simple_type_promotes_to): Move to c-typeck.c.
96         * c-common.h (simple_type_promotes_to): Remove.
97         * c-decl.c (duplicate_decls, grokdeclarator): Update.
98         * c-format.c: Include langhooks.h.
99         (check_format_types): Update.
100         * c-tree.h (c_type_promotes_to): New.
101         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
102         (type_lists_compatible_p): Update.
103         * langhooks-def.h (lhd_type_promotes_to): New.
104         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
105         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
106         * langhooks.c (lhd_type_promotes_to): New.
107         * langhooks.h (struct lang_hooks_for_types): New hook.
108         * tree.h (lang_type_promotes_to): Remove.
109 objc:
110         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
111
112 2002-04-18  Richard Henderson  <rth@redhat.com>
113
114         * function.c: Revert patch for c/6358.
115
116 2002-04-18  Richard Henderson  <rth@redhat.com>
117
118         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
119         blocks.  Handle multiple references to the TRAP block.  Handle
120         non-adjacent THEN and OTHER blocks.
121
122 2002-04-18  Richard Henderson  <rth@redhat.com>
123
124         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
125         crash with no type for by-mode libcalls.
126
127         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
128
129 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
130
131         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
132         __xtensa_nonlocal_goto): Use a syscall instructions to flush
133         the register windows.
134
135 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
136
137         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
138         appropriate.  Document need for extended precision even when
139         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
140         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
141         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
142         instead of relying on later syntax error when REAL_WIDTH > 5.
143         * real.c: Define NE based only on whether or not we have a
144         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
145         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
146         define GET_REAL and PUT_REAL as simple memcpy operations; no
147         need to byteswap or round.
148         Use #error instead of #ifdef-ing out the entire file, for
149         prompt error detection.
150
151         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
152
153 2002-04-18  David S. Miller  <davem@redhat.com>
154
155         * config/sparc/sparc.h (BRANCH_COST): Define.
156
157         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
158         does it.
159
160 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
161
162         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
163         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
164         propagate_block calls after relaxation loop using new variable
165         stabilized_prop_flags.
166
167 2002-04-18  Richard Henderson  <rth@redhat.com>
168
169         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
170         (ia64_va_arg): Expect variable sized types by reference.
171         * config/ia64/ia64-protos.h: Update.
172         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
173         ia64_function_arg_pass_by_reference.
174
175 2002-04-18  Richard Henderson  <rth@redhat.com>
176
177         * ifcvt.c: Include except.h.
178         (block_has_only_trap): Break out from find_cond_trap.
179         (find_cond_trap): Use it.  Always delete the trap block.
180         (merge_if_block): Allow then block null.  Be less simplistic about
181         what insns can end a block.
182         * Makefile.in (ifcvt.o): Depend on except.h.
183
184         * config/ia64/ia64.md (trap, conditional_trap): New.
185
186 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
187
188         PR c/6358
189         * function.c (assign_parms): Assign hard current_function_return_rtx
190         register here...
191         (expand_function_end): ...not here.
192
193 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
194
195         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
196         * c-tree.h (c_incomplete_type_error): New.
197         * c-typeck.c (require_complete_type, build_component_ref): Update.
198         (incomplete_type_error): Rename.
199         * langhooks-def.h (lhd_incomplete_type_error): New.
200         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
201         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
202         * langhooks.c (lhd_incomplete_type_error): New.
203         * langhooks.h (struct lang_hooks_for_types): New hook.
204         * tree.c (size_in_bytes): Use new hook.
205         * tree.h (incomplete_type_error): Remove.
206 objc:
207         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
208
209 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
210
211         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
212         TARGET_FLOAT_FORMAT blocks.
213
214 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
215
216         * doc/install.texi (Downloading the source): Do not mention Chill
217         any longer, but mention Ada.
218         (Configuration): Do not mention Chill any longer.
219
220 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
221
222         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
223
224 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
225
226         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
227         in last patch.
228
229 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
230
231         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
232         instead of unsigned_type.
233
234 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
235
236         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
237         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
238         later.
239
240 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
241
242         * attribs.c (vector_type_node_list): New static variable.
243         (handle_vector_size_attribute): Use it to avoid generating a
244         new type node each time we are called.
245
246         * combine.c (subst): Avoid trying to make a vector mode subreg of
247         an integer constant.
248         (gen_lowpart_for_combine): Likewise.
249
250 2002-04-18  Roger Sayle  <roger@eyesopen.com>
251             Jakub Jelinek  <jakub@redhat.com>
252
253         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
254         for integer constant c (if x has unsigned type or sign bit is not
255         set in c).  This folds the zero/sign extension into the bit-wise and
256         operation.
257
258 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
259
260         PR middle-end/6205
261         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
262         otherwise xorps.
263
264 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
265
266         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
267
268 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
269
270         * gcc.c (read_specs): Detect and fail if an attempt is made to
271         rename a spec string to an already existing string.
272
273 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
274
275         * config/s390/s390.c (legitimize_pic_address): Do not generate
276         illegal address constant without CONST.
277
278 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
279
280         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
281         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
282
283 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
284
285         PR optimization/6305
286         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
287         to make sure previous reloads are taken into account.  Generate
288         better code if one operand is an in-range immediate constant.
289
290 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
291
292         * doc/install.texi (Building): libgcj requires GNU make.
293
294 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
295
296         PR bootstrap/6315
297         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
298         even if hard quad and register is not floating.
299         (movtf reg<-mem split): Disallow splitting if hard quad and
300         register is floating.
301         (movtf mem<-reg split): Likewise.
302         * config/sparc/sparc.c (fp_register_operand): New predicate.
303         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
304
305 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
306
307         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
308         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
309         (unprotoize.o): Ditto.  Build from protoize.c.  Define
310         UNPROTOIZE on command line.
311         * protoize.c: Include cppdefault.h.  Delete include_defaults.
312         (in_system_include_dir): Use cpp_include_defaults (defined in
313         cppdefault.o).
314         * unprotoize.c: Delete file.
315
316 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
317
318         * config/rs6000/altivec.h (vec_ld): Add array variants.
319         (vec_lde): Same.
320         (vec_ldl): Same.
321
322 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
323             Aldy Hernandez <aldyh@redhat.com>
324
325         * config/rs6000/altivec.h: Define __ALTIVEC__.
326         (bool): New.
327         (__pixel): New.
328         (pixel): New.
329         (vec_cfux): New.
330         (vec_vmaddfp): New.
331         (vec_vsldoi): New.
332         Add parentheses to all macro arguments.
333
334 2002-04-16  Richard Henderson  <rth@redhat.com>
335
336         PR c++/6320
337         * except.c (remove_eh_handler): Insert inner regions at beginning
338         of sibling chain.  Refactor expressions.
339
340 2002-04-16  Richard Henderson  <rth@redhat.com>
341
342         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
343         * config/sparc/sol2-gas-bi.h: New file.
344         * config.gcc (sparc*-solaris): Add it as needed.
345         * configure.in (AS_SPARC64_FLAG): Remove check.
346         * config.in, configure: Regenerate.
347
348         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
349
350 2002-04-16  Richard Henderson  <rth@redhat.com>
351
352         * config/mips/mips.c (override_options): Don't override N32 for
353         a 64-bit ISA.
354
355         PR 6202
356         * config/mips/mips.md (can_delay): Split out of existing define_delays.
357         (HILO_delay): Set can_delay false.
358
359 2002-04-16  Dale Johannesen <dalej@apple.com>
360
361         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
362         instruction addresses.
363         (rs6000_output_function_epilogue): Likewise.
364
365 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
366
367         * c-parse.in (poplevel, compstmt_start,
368         compstmt_primary_start): Add ending ';', in accordance
369         with POSIX.
370
371 2002-04-16  Richard Henderson  <rth@redhat.com>
372
373         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
374         Adjust tm_file order to get TARGET_DEFAULT set properly.
375         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
376         * doc/install.texi (sparc-solaris): Update.
377
378 2002-04-16  Dale Johannesen <dalej@apple.com>
379
380         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
381         comparison operands do not match each other or if modes of
382         conditions do not match result.
383
384 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
385
386         PR target/6305
387         * config/s390/s390.md (mulsidi3): Set both subregs of the
388         multiword register.
389
390 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
391
392         * config/rs6000/altivec.h (vec_addc): Type check.
393
394 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
395
396         PR middle-end/6279
397         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
398
399         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
400
401 2002-04-15  Richard Henderson  <rth@redhat.com>
402
403         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
404         call_really_used_regs too.
405
406 2002-04-15  Richard Henderson  <rth@redhat.com>
407
408         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
409
410 2002-04-15  David S. Miller  <davem@redhat.com>
411
412         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
413         as being CLOBBERed.
414
415 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
416
417         PR c/6290
418         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
419         CONST_VECTOR is { 0, ... 0 }.
420
421 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
422
423         * doc/install.texi (Installing GCC: Configuration): Clarify
424         the only supported ways to configure gcc.
425
426 2002-04-15  Roland McGrath  <roland@frob.com>
427
428         * config.gcc (alpha*-*-gnu*): New target configuration.
429         * config/alpha/gnu.h: New file for it.
430         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
431
432 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
433
434         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
435         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
436         * tree.h (expand_start_stmt_expr): Update prototype.
437         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
438         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
439         on the STMT_EXPR created for the inline function.
440
441 2002-04-15  Richard Henderson  <rth@redhat.com>
442
443         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
444         config/i386/linux-aout.h, config/i386/linux-oldld.h,
445         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
446         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
447         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
448         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
449         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
450         Define __gnu_linux__, not gnu_linux.
451         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
452
453 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
454
455         Remove Chill front end.
456         * gcc.c (default_compilers): Remove Chill entries.
457         * ch: Remove directory.
458         * doc/frontends.texi: Remove information about Chill.
459         * doc/sourcebuild.texi: Likewise.
460         * doc/standards.texi: Likewise.
461
462 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
463
464         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
465         (LONGLONG_STANDALONE): Define.
466
467 2002-04-15  David S. Miller  <davem@redhat.com>
468
469         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
470         Call emit_library_call with LCT_NORMAL.
471         (sparc_initialize_trampoline): Use LCT_foo instead of
472         magic constant in emit_library_call invocations.
473         (sparc64_initialize_trampoline): Likewise.
474         (sparc_profile_hook): Likewise.
475         * config/sparc/sparc.md: Likewise.
476
477         * config/sparc/sparc.c (sparc_extra_constraint_check):
478         Fix type of argument 'c'.
479         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
480         Likewise.
481
482 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
483
484         * diagnostic.h (output_buffer_state): Redefine.
485         (output_format_decoder): New macro.
486         (output_prefixing_rule): Likewise.
487         (output_line_cutoff): Likewise.
488         (diagnostic_format_decoder): Adjust.
489         (diagnostic_prefixing_rule): Likewise.
490         (diagnostic_line_cutoff): Likewise.
491         (diagnostic_state): Likewise.
492         (diagnostic_kind_count): Likewise.
493         (diagnostic_buffer): Now a macro.
494
495         * diagnostic.c (diagnostic_buffer): Remove definition.
496         (output_is_line_wrapping): Adjust.
497         (set_real_maximum_length): Likewise.
498         (output_set_maximum_length): Likewise.
499         (init_output_buffer): Likewise.
500         (lhd_print_error_function): Likewise.
501         (output_do_verbatim): Likewise.
502
503 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
504
505         * cpperror.c (print_location): Don't print include chain
506         if line == 0.
507         (cpp_begin_message): Update to use DL_ macros.
508         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
509         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
510         cpp_notice, cpp_notice_from_errno): Remove.
511         (cpp_error, cpp_error_with_line): Update to take a diagnostic
512         level.
513         (cpp_errno): New.
514         * cppexp.c (CPP_ICE): Remove.
515         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
516         lex, integer_overflow, _cpp_parse_expr): Update.
517         * cppfiles.c (read_include_file, find_include_file,
518         handle_missing_header, _cpp_read_file, remap_filename): Update.
519         * cpphash.h (enum error_type): Remove.
520         (_cpp_begin_message): Update.
521         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
522         cpp_handle_option, cpp_post_options): Update.
523         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
524         skip_whitespace, parse_identifier, parse_slow, parse_string,
525         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
526         cpp_interpret_charconst): Update.
527         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
528         lex_macro_node, do_undef, glue_header_name, parse_include,
529         do_include_common, read_flag, do_line, do_linemarker, do_ident,
530         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
531         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
532         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
533         _cpp_pop_buffer, do_diagnostic): Update.
534         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
535         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
536         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
537         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
538         cpp_notice, cpp_notice_from_errno): Remove.
539         (cpp_error, cpp_error_with_line): Update to take a diagnostic
540         level.
541         (cpp_errno): New.
542         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
543         collect_args, enter_macro_context, save_parameter, parse_params,
544         _cpp_create_definition, check_trad_stringification,
545         cpp_macro_definition): Update.
546         * cppmain.c (cpp_preprocess_file): Update.
547         * fix-header.c (read_scan_file): Update.
548
549 2002-04-14  Andreas Schwab  <schwab@suse.de>
550
551         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
552
553 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
554
555         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
556
557 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
558
559         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
560         not gnu_hurd.
561
562 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
563
564         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
565
566 2002-04-13      Joel Sherrill <joel@OARcorp.com>
567
568         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
569         sparc-elf and sparc-rtems targets.
570
571 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
572
573         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
574         defined, and __gnu_hurd__ wherever __GNU__ is defined.
575         * arm/linux-elf.h: Likewise.
576         * cris/aout.h: Likewise.
577         * cris/linux.h: Likewise.
578         * i370/linux.h: Likewise.
579         * i386/gnu.h: Likewise.
580         * i386/linux-aout.h: Likewise.
581         * i386/linux-oldld.h: Likewise.
582         * i386/linux.h: Likewise.
583         * i386/linux64.h: Likewise.
584         * ia64/linux.h: Likewise.
585         * m68k/linux-aout.h: Likewise.
586         * m68k/linux.h: Likewise.
587         * mips/linux.h: Likewise.
588         * pa/pa-linux.h: Likewise.
589         * pj/linux.h: Likewise.
590         * rs6000/sysv4.h: Likewise.
591         * s390/linux.h: Likewise.
592         * sh/linux.h: Likewise.
593         * sparc/linux-aout.h: Likewise.
594         * sparc/linux.h: Likewise.
595         * sparc/linux64.h: Likewise.
596         * xtensa/linux.h: Likewise.
597
598 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
599
600         * stmt.c (check_unique_operand_names): Expect operand names to
601         be strings rather than identifiers.  Use simple_cst_equal to
602         compare them.
603         (resolve_operand_name_1): Make same identifier to string change here.
604         * c-parse.in (asm_operand): Convert a named operand into a string.
605         * cp/parse.y (asm_operand): Likewise.
606
607 2002-04-13  Andreas Schwab  <schwab@suse.de>
608
609         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
610
611 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
612
613         Revert these changes:
614
615         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
616
617         PR c++/5571
618         * stor-layout.c (layout_decl): Reset the RTL for the decl.
619
620 2002-04-12  Richard Henderson  <rth@redhat.com>
621
622         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
623         (sparc*-*-solaris): Clean up header files.
624         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
625         and plan on generating 64-bit code.
626         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
627         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
628         * config/sparc/sol2-sld-64.h: Rename ...
629         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
630         for AS_SPARC64_FLAG not defined.
631         * config/sparc/sol2-gld-bi.h: New.
632         * config/sparc/sol2-sld.h: Remove.
633         * config/sparc/sol26-sld.h: New.
634         * config/sparc/sol2.h: Tidy comments.
635         * doc/install.texi: Document sparc-solaris configury changes.
636
637 2002-04-12  Richard Henderson  <rth@redhat.com>
638
639         * recog.c (offsettable_address_p): Match the logic in adjust_address.
640
641         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
642         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
643
644 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
645
646         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
647
648 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
649
650         * pa.c (pa_can_combine_p): Call extract_insn before calling
651         constrain_operands.
652
653 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
654
655         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
656         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
657         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
658         (CPP_PREDEFINES): Handle __declspec.
659         * config/i386/t-interix (USER_H): Remove.
660
661 2002-04-12  DJ Delorie  <dj@redhat.com>
662
663         * integrate.c (compare_blocks): Make comparisons safe for when
664         sizeof(int) < sizeof(char *).
665         (find_block): Likewise.
666
667 2002-04-12  Jan Hubicka  <jh@suse.cz>
668             David Edelsohn  <edelsohn@gnu.org>
669
670         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
671         registers.
672         (symbol_ref_operand): New.
673         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
674         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
675
676 2002-04-12  Andreas Schwab  <schwab@suse.de>
677
678         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
679         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
680         overrides the definition in config/svr4.h.
681
682 2002-04-12      Eric Norum <eric.norum@usask.ca>
683
684         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
685         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
686         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
687         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
688         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
689         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
690         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
691         definitions to config/rtems.h and make the targets more similar.
692
693 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
694
695         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
696         POINTERS_EXTEND_UNSIGNED.
697         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
698         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
699
700         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
701         not specified.
702
703 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
704
705         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
706         depends on TARGET_SHMEDIA, not TARGET_SH5.
707
708 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
709
710         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
711         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
712
713 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
714
715         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
716         no r0 clobber.
717
718 2002-04-12  Andreas Schwab  <schwab@suse.de>
719
720         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
721
722 2002-04-12  Richard Henderson  <rth@redhat.com>
723
724         PR bootstrap/4191
725         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
726
727         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
728         modes spanning multiple hard regs.
729
730         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
731
732 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
733
734         * pa.c (pa_output_function_prologue): Don't accumulate the total
735         number of code bytes when using TARGET_64BIT, or gas, SOM and not
736         the portable runtime.
737         (output_deferred_plabels): Handle 64bit plabels.
738         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
739         generating pic code using the GAS assembler for object formats that
740         are not SOM (ie., ELF32 and ELF64).
741         (output_millicode_call): Check attribute type if attribute length is 28.
742         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
743         dbr_sequence_length once.
744         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
745         dbr_sequence_length once.
746         * pa.h (TARGET_SOM): Define if not defined.
747         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
748         with GAS and not SOM.
749         (jump, call_internal_reg, call_value_internal_reg): Likewise.
750         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
751
752 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
753
754         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
755         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
756         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
757         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
758         elfos.h and dbxelf.h values are fine now.
759         * config/i386/freebsd.h, config/alpha/freebsd.h
760         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
761
762 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
763
764         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
765         or set Acpu or Amachine.  Reformat.
766         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
767         define.
768         (LINK_SPEC): Do not need to undef.
769         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
770         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
771         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
772         define.
773         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
774         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
775         (LINK_SPEC): Do not need to undef.
776         (DONT_USE_BUILTIN_SETJMP): Do not define.
777         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
778         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
779         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
780         Remove trailing spaces.
781         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
782         __ELF__, or set Acpu or Amachine.  Reformat.
783         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
784         define.
785
786 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
787
788         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
789         all other *-*-freebsd* targets.
790
791 2002-04-11  Richard Henderson  <rth@redhat.com>
792
793         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
794
795 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
796
797         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
798         Include {cpu}/{cpu}.h thru tm_file.
799         (alpha*-*-linux*ecoff): Remove target.
800         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
801         (LINK_SPEC): Remove, is not OS independent.
802         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
803         (LINK_SPEC): Do not need to #undef any longer.
804         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
805         any longer.
806         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
807         __ELF__.
808         (LINK_SPEC): Moved here from alpha/elf.h.
809         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
810         SUB_CPP_PREDEFINES.
811         * config/alpha/linux-ecoff.h: Remove.
812         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
813         (CPP_SPEC): Define _POSIX_SOURCE as needed.
814         (CPP_SUBTARGET_SPEC): Do not define.
815         (LINK_SPEC): Do not need to #undef any longer.
816         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
817         * config/alpha/vms.h: Likewise.
818
819 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
820
821         * doc/extend.texi: Remove old claim that typedefs cannot have
822         an alignment attribute.
823
824 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
825
826         PR optimization/6177
827         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
828         bitpos is 0 and bitsize CONCAT size.
829
830 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
831
832         PR c/6223
833         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
834
835 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
836
837         * config/alpha/freebsd.h: Minor reformatting.
838         (CPP_SPEC): Define ELF and add cpp_subtarget.
839         (ASM_SPEC): No longer needed.
840
841 2002-04-11  Richard Henderson  <rth@redhat.com>
842
843         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
844         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
845         (dimode mem/zero splitter): New.
846
847 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
848
849         * config/cris/cris.c (cris_override_options): Tweak error message
850         for PIC not implemented.
851
852         * config/cris/cris.h: Tweak comments related to parameter-passing.
853
854         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
855
856 2002-04-10  Richard Henderson  <rth@redhat.com>
857
858         * except.c (add_ehl_entry): Allow duplicates after landing pad
859         creation.
860
861 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
862
863         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
864
865 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
866
867         * c-decl.c (c_init_decl_processing): Move generation of
868         decls for g77_integer_type_node and friends from here ...
869         * c-common.c (c_common_nodes_and_builtins): ... to here.
870
871 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
872
873         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
874         is only used as frame pointer when frame_pointer_needed is true.
875
876 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
877
878         PR target/817
879         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
880         for the fact that the pool entry uses two words.
881         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
882         1k bytes.
883         (movdf_soft_insn): Similarly.
884         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
885         for the fact that the pool entry uses three words.
886
887 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
888
889         * config/mips/mips.c (mips_va_arg): When using the struct version
890         of the EABI va_list, allow arguments in the register save area to
891         take up less room than a stack argument.
892
893 2002-04-10  Richard Henderson  <rth@redhat.com>
894
895         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
896         if EXPAND_INITIALIZER.
897
898 2002-04-09  Richard Henderson  <rth@redhat.com>
899
900         * config/alpha/alpha.md (movdi_er_maybe_g): New.
901         * config/alpha/alpha.c (alpha_expand_mov): Use it.
902
903 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
904
905         PR optimization/6233
906         * rtlanal.c (pure_call_p): New function.
907         * rtl.h (pure_call_p): Declare.
908         * loop.c (prescan_loop): Use it to set has_nonconst_call.
909         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
910
911 2002-04-09  Eric Christopher  <echristo@redhat.com>
912
913         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
914         information to .comm directive.
915
916 2002-04-09  Richard Henderson  <rth@redhat.com>
917
918         PR c/5078
919         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
920
921 2002-04-09  Richard Henderson  <rth@redhat.com>
922
923         * basic-block.h (flow_delete_block_noexpunge): Declare.
924         (expunge_block_nocompact): Declare.
925         * cfg.c (expunge_block_nocompact): Split out from ...
926         (expunge_block): ... here.
927         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
928         (flow_delete_block_noexpunge): Split out from ...
929         (flow_delete_block): ... here.
930         * cfgcleanup.c (delete_unreachable_blocks): Compact while
931         removing dead blocks.
932         * except.c (exception_handler_labels): Remove.
933         (exception_handler_label_map): New.
934         (struct eh_region): Add aka member.
935         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
936         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
937         (for_each_eh_label, for_each_eh_label_1): New.
938         (init_eh): Register exception_handler_label_map.
939         (free_eh_status): Use free_region.
940         (find_exception_handler_labels): Use the map, not the list.
941         (remove_exception_handler_label): Likewise.
942         (maybe_remove_eh_handler): Likewise.
943         (remove_eh_handler): Use the region aka bitmap.
944         * except.h (exception_handler_labels): Remove.
945         (for_each_eh_label): Declare.
946         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
947         * loop.c (invalidate_loops_containing_label): New.
948         (find_and_verify_loops): Use it.  Use for_each_eh_label.
949         * sched-rgn.c (is_cfg_nonregular): Use
950         current_function_has_exception_handlers.
951
952 2002-04-09  Richard Henderson  <rth@redhat.com>
953
954         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
955         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
956         Do not return changed status.
957         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
958         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
959         New functions that do return changed status.
960         * sbitmap.h: Update decls.
961         * gcse.c, lcm.c: Use _cg functions as needed.
962
963 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
964
965         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
966         (sh64-*-elf*, sh-*-rtemself*): Likewise.
967         * config/sh/embed_bb.c: New file.
968         * config/sh/embed-elf.h: New file.
969         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
970         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
971         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
972         __PTRDIFF_TYPE__ .
973         (SUBTARGET_CPP_PTR_SPEC): Don't define.
974         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
975         Add subtarget_asm_endian_spec.
976         (ASM_SPEC): Use subtarget_asm_endian_spec.
977         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
978         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
979         (WCHAR_UNSIGNED): Define.
980         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
981         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
982         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
983         Fix value.
984         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
985         (sh_adjust_cost): Likewise.
986         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
987         __PTRDIFF_TYPE__ .
988         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
989         (WCHAR_TYPE_SIZE): Likewise.
990         (ASM_SPEC): Use subtarget_asm_endian_spec.
991         (SH_ELF_WCHAR_TYPE): #undef/ #define.
992         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
993         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
994         (MAX_WCHAR_TYPE_SIZE): Don't #define .
995         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
996         (USER_LABEL_PREFIX): Don't #undef /#define .
997         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
998         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
999         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1000         (ASM_SPEC): Likewise.
1001         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1002         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1003         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1004         (LIB2FUNCS_EXTRA): Define.
1005         * t-sh64 (LIB2FUNCS_EXTRA): Define.
1006         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1007         (LIB1ASMFUNCS_CACHE): Define.
1008         (LIB2FUNCS_EXTRA): Redefine empty.
1009
1010 2002-04-08  Richard Henderson  <rth@redhat.com>
1011
1012         * reorg.c (get_branch_condition): Use reversed_comparison_code.
1013
1014 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1015
1016         * config/m68hc11/larith.asm (__map_data_section): Fix condition
1017         and optimize for size.
1018         (__do_global_ctors): Fix pointer comparison.
1019         (__do_global_dtors): Likewise.
1020
1021 2002-04-09  David S. Miller  <davem@redhat.com>
1022
1023         * config/sparc/sparc.c (sparc_extra_constraint_check): New
1024         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
1025         allow reloading pseudos.
1026         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1027         * config/sparc/sparc-protos.h: Declare it.
1028
1029         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1030         unsigned comparison warning.
1031         (output_restore_regs): Mark leaf_function as unused.
1032
1033 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1034
1035         * expr.c (is_aligning_offset): New function.
1036         (expand_expr, case COMPONENT_EXPR): Call it.
1037
1038 2002-04-08  David S. Miller  <davem@redhat.com>
1039
1040         PR target/6082
1041         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1042
1043         Make init_priority work on Sparc when using GNU ld.
1044         * config/sparc/linux.h, config/sparc/linux64.h,
1045         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1046         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1047         * config/sparc/sol2-gld.h: New file to do the same.
1048         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1049         sparc/sol2-gld.h to tm_file.
1050
1051         PR optimization/4328
1052         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1053         * doc/md.texi: Document it.
1054         * config/sparc/sparc.md (movdi_insn_sp64_novis,
1055         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1056         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1057         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1058         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1059
1060 2002-04-08  Andreas Jaeger  <aj@suse.de>
1061
1062         * stmt.c (expand_asm_operands): Revert last patch from Richard
1063         Henderson.
1064
1065 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1066
1067         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1068         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
1069
1070 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1071
1072         * doc/contrib.texi (Contributors): Add David O'Brien.
1073
1074 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1075
1076         * configure.in (auto-build.h): Use target_alias and build_alias
1077         when running configure.
1078         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1079         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1080         * configure: Regenerate.
1081
1082 2002-04-07  David S. Miller  <davem@redhat.com>
1083
1084         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1085
1086 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1087
1088         PR 5933
1089         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1090         generating 32-bit pic code.
1091
1092 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1093
1094         * cppinit.c (cpp_create_reader): Initialize
1095         discard_comments_in_macro_exp.
1096         (COMMAND_LINE_OPTIONS): Add "-CC" option.
1097         (cpp_handle_option): Handle "-CC" option.
1098         * cpplex.c (save_comment): If saving a C++ comment in
1099         a directive, convert it to a C comment.
1100         (_cpp_lex_direct): Pass second comment start character to
1101         save_comment to indicate comment type.
1102         * cpplib.c (_cpp_handle_directive): If processing
1103         a "#define" directive and discard_comments_in_macro_exp
1104         is false,  re-enable saving of comments.
1105         (lex_macro_node): If discard_comments_in_macro_exp is false,
1106         discard any comments before the macro identifier.
1107         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1108         member.
1109         * cppmacro.c (cpp_get_token): If expanding a macro while
1110         processing a directive, discard any comments we might encounter.
1111         (parse_params): If discard_comments_in_macro_exp is false,
1112         ignore comments in the macro parameter list.
1113         * gcc.c (cpp_unique_options): Add "-CC" option.
1114         (option_map): Map "--comments-in-macros" to "-CC".
1115         * doc/cppopts.texi: Document "-CC" option.
1116         * f/lang-specs.h: Add "-CC" option.
1117         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1118         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1119         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1120         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1121         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1122         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1123
1124 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1125
1126         PR middle-end/6180
1127         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1128
1129 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1130
1131         PR c++/5571
1132         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1133
1134         PR opt/5120
1135         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1136         RTX_UNCHANGING_P for the functions arguments when a tail call
1137         is made.
1138
1139 2002-04-06  Jason Merrill  <jason@redhat.com>
1140
1141         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1142         (parse_options_and_default_flags): Set them appropriately.
1143         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1144
1145 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1146
1147         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1148         here.
1149
1150         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1151         semicolon.
1152
1153         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1154         types come in by-reference.  Fix typo in comment.
1155
1156 2002-04-05  David S. Miller  <davem@redhat.com>
1157
1158         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1159         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1160         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1161         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1162
1163 2002-04-05  David S. Miller  <davem@redhat.com>
1164
1165         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1166         are not going to emit return instructions, emit at least a nop
1167         for the sake of sane backtraces.
1168
1169 2002-04-05  Richard Henderson  <rth@redhat.com>
1170
1171         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1172
1173 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1174
1175         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1176
1177 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1178
1179         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1180         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1181         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1182
1183 2002-04-05  Andreas Schwab  <schwab@suse.de>
1184
1185         * c-convert.c: Include c-common.h.
1186         * Makefile.in (c-convert.o): Updated.
1187
1188 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1189
1190         * mklibgcc.in: Use separate libgcc.map for each multilib.
1191         * Makefile.in (distclean): Don't remove libgcc.map here.
1192
1193 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1194
1195         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1196         genmultilib invocation.
1197
1198 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1199
1200         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1201         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1202         to num_gprs for symmetry.
1203         * config/mips/mips.c: Adjust accordingly.
1204
1205 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1206
1207         * c-common.c (truthvalue_conversion): Rename, update.
1208         * c-common.h (c_common_truthvalue_conversion): New.
1209         * c-convert.c (convert): Update.
1210         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1211         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1212         * c-typeck.c (build_binary_op, build_unary_op,
1213         build_conditional_expr): Update.
1214         * fold-const.c (constant_boolean_node, fold): Use langhook.
1215         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1216         * langhooks.h (struct lang_hooks): New hook.
1217         * stmt.c (expand_decl_cleanup): Use langhook.
1218         * tree.h (truthvalue_conversion): Remove.
1219 objc:
1220         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1221
1222 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1223
1224         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1225         Add rules to make null object file.
1226
1227 2002-04-04  Jim Blandy  <jimb@redhat.com>
1228
1229         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1230         macro formal parameter names.
1231
1232 2002-04-04  David S. Miller  <davem@redhat.com>
1233
1234         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1235
1236 2002-04-04  Richard Henderson  <rth@redhat.com>
1237
1238         PR middle-end/5099
1239         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1240         Support copies into and out of memory.  Don't accept allows_reg
1241         and allows_mem as gospel.
1242
1243 2002-04-04  Richard Henderson  <rth@redhat.com>
1244
1245         PR opt/6165
1246         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1247         (write_dependence_p): Likewise.
1248
1249 2002-04-04  Richard Henderson  <rth@redhat.com>
1250
1251         * predict.c (estimate_bb_frequencies): Do frequency calculation
1252         with a volatile temporary.
1253
1254 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1255
1256         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1257
1258 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1259
1260         PR c++/6119
1261         * final.c (final_start_function): Don't bump profile_label_no here...
1262         (final_end_function): ...but here.
1263
1264 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1265
1266         * config/sparc/sparc.md (pic): New attribute.
1267         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1268         into stack slots.
1269         (split after do_builtin_setjmp_setup): New.
1270
1271 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1272
1273         PR fortran/6106
1274         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1275         change.
1276
1277 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1278
1279         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1280         UNITS_PER_WORD for zero sized aggregates.
1281
1282 2002-04-03  David S. Miller  <davem@redhat.com>
1283
1284         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1285         one-character spec for this, just use %(link_gcc_c_sequence).
1286
1287 2002-04-03  David S. Miller  <davem@redhat.com>
1288
1289         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1290         handling.
1291
1292 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1293
1294         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1295         (DWARF_FRAME_RETURN_COLUMN): Move.
1296         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1297         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1298         * pa.c (except.h, predict.h): Include.
1299         (FRP): Delete.
1300         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1301         (output_ascii): Add cast.
1302         (store_reg_modify): Revise to add frame notes.
1303         (set_reg_plus_d): Likewise.
1304         (compute_frame_size): Include space for eh data registers in frame if
1305         the current function calls eh_return.
1306         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1307         function calls eh_return.  Save eh data registers if the current
1308         function calls eh_return.  Fix code to add frame notes.  Emit
1309         blockage to prevent insns with frame notes being scheduled in the
1310         delay slot of calls.
1311         (hppa_expand_epilogue): Restore eh data registers and do final stack
1312         adjustment if the current function calls eh_return.  Don't add frame
1313         notes.
1314         (output_call): Revise for change in length of call insn.  Don't do
1315         return pointer adjustment for an unconditional jump in the delay slot
1316         of a call when using frame notes.
1317         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1318         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1319         (ARG_POINTER_CFA_OFFSET): Define.
1320         * pa.md (return_external_pic): New pattern.
1321         (prologue): Correct formatting.  Use return_external_pic if current
1322         function calls eh_return.
1323         (call_internal_symref, call_value_internal_symref,
1324         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1325         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1326         respectively.
1327         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1328
1329         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1330         list of targets to check using "nop" insn.
1331         * configure: Rebuilt.
1332
1333 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1334
1335         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1336
1337 2002-04-03  David S. Miller  <davem@redhat.com>
1338
1339         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1340         library sequence passed to the linker.
1341         (LINK_COMMAND_SPEC): Use it.
1342         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1343         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1344         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1345
1346 2002-04-03  Jason Merrill  <jason@redhat.com>
1347
1348         * except.c (struct eh_status): Remove protect_list.
1349         (begin_protect_partials, end_protect_partials): Remove.
1350         (add_partial_entry): Remove.
1351         * except.h: Remove prototypes.
1352
1353         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1354         expand_decl_cleanup_eh.
1355
1356         PR c++/5636
1357         * tree.h (CLEANUP_EH_ONLY): New macro.
1358         * stmt.c (expand_decl_cleanup_eh): New fn.
1359         (expand_cleanups): Check CLEANUP_EH_ONLY.
1360         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1361         Use expand_decl_cleanup_eh.
1362         (expand_stmt): Adjust.
1363         * c-common.h: Adjust prototype.
1364
1365 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1366
1367         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1368         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1369         (cris_target_asm_function_epilogue): Ditto.
1370         (cris_initial_frame_pointer_offset): Ditto.
1371         (cris_simple_epilogue): Ditto.
1372         (cris_expand_builtin_va_arg): Variable-size types come in
1373         by-reference.
1374
1375 2002-04-03  David S. Miller  <davem@redhat.com>
1376
1377         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1378         little-endian.
1379         (set_fast_math): Correct 'fsr' type.
1380
1381 2002-04-03  Richard Henderson  <rth@redhat.com>
1382
1383         PR opt/3569
1384         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1385         * toplev.c (check_global_declarations): Use it.
1386         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1387         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1388         (LANG_HOOKS_DECLS): Add it.
1389         * langhooks.c (lhd_warn_unused_global_decl): New.
1390         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1391         * c-objc-common.c (c_warn_unused_global_decl): New.
1392         * c-tree.h (c_warn_unused_global_decl): Declare.
1393         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1394
1395 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1396
1397         * langhooks-def.h (lhd_set_decl_assembler_name,
1398         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1399         (LANG_HOOKS_INITIALIZER): Update.
1400         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1401         * langhooks.h (struct lang_hooks): New hook.
1402         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1403         (lang_set_decl_assembler_name): Remove.
1404         (init_obstacks): Don't set hook.
1405         (decl_assembler_name): New function.
1406         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1407         (decl_assembler_name): New.
1408         (lang_set_decl_assembler_name): Remove.
1409
1410 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1411
1412         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1413         works properly with .hidden symbols.
1414         * configure: Rebuilt.
1415         * config.in: Rebuilt.
1416         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1417         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1418         properly with .hidden symbols.
1419
1420 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1421
1422         PR middle-end/6102
1423         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1424         USE argument.
1425
1426 2002-04-03  Richard Henderson  <rth@redhat.com>
1427
1428         PR opt/4120
1429         * sched-rgn.c (sets_likely_spilled): New.
1430         (sets_likely_spilled_1): New.
1431         (add_branch_dependences): Use it.
1432
1433 2002-04-02  Richard Henderson  <rth@redhat.com>
1434
1435         PR opt/4311
1436         * loop.h (LOOP_FIRST_PASS): New.
1437         * loop.c (strength_reduce): Mind it when deciding to unroll.
1438         * toplev.c (rest_of_compilation): Set it.
1439
1440 2002-04-02  David S. Miller  <davem@redhat.com>
1441
1442         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1443         mems_ok_for_ldd_peep when the order of the loads being examined
1444         is reversed.
1445         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1446         existing comment to increase comprehension of this situation.
1447
1448 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1449
1450         * config/sh/sh.md: Don't use union real_extract.
1451
1452 2002-04-02  Richard Henderson  <rth@redhat.com>
1453
1454         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1455
1456 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1457
1458         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1459         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1460         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1461         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1462         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1463         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1464         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1465         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1466         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1467         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1468         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1469         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1470         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1471         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1472         Include as many configury headers via tm_file as possible.  This
1473         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1474         * config/openbsd-oldgas.h: New file.
1475         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1476         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1477         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1478         config/i386/i386-coff.h, config/i386/i386-interix.h,
1479         config/i386/iscdbx.h, config/i386/linux-aout.h,
1480         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1481         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1482         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1483         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1484         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1485         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1486         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1487         config/i386/vxi386.h: Do not directly include configury headers.
1488         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1489         Directly include configury headers that are no longer automatically
1490         included by the above headers.
1491         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1492         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1493         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1494         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1495         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1496         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1497         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1498         (TARGET_VERSION): Define.
1499         * config/i386/beos-elf.h, config/i386/freebsd.h,
1500         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1501         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1502         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1503         config/i386/sco5.h, config/i386/sysv4.h
1504         (TARGET_VERSION): Do not need to protect.
1505         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1506         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1507         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1508         config/i386/i386-interix.h, config/i386/linux-aout.h,
1509         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1510         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1511         (YES_UNDERSCORES): Do not define - not needed.
1512         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1513         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1514         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1515         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1516         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1517         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1518         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1519         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1520
1521 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1522             Richard Henderson  <rth@redhat.com>
1523
1524         PR c/5484
1525         * function.c (assign_temp): Accept either type or decl argument.
1526         Detect variables whose size is too large to fit into an integer.
1527         * stmt.c (expand_decl): Pass the decl, not the type.
1528
1529 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1530
1531         * protoize.c: Match include directory usage with cppdefault.c.
1532
1533 2002-04-03  Jeffrey A Law  (law@redhat.com)
1534             Hans-Peter Nilsson  <hp@bitrange.com>
1535
1536         * combine.c (simplify_comparison): Avoid narrowing a comparison
1537         with a paradoxical subreg when doing so would drop signficant bits.
1538
1539 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1540
1541         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1542         if POINTERS_EXTEND_UNSIGNED is defined.
1543
1544 2002-04-02  Richard Henderson  <rth@redhat.com>
1545
1546         PR opt/3967
1547         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1548         replace regs.
1549
1550 2002-04-02  Richard Henderson  <rth@redhat.com>
1551
1552         * doc/standards.texi: Document required freestanding libc entry points.
1553
1554 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1555
1556         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1557         associated splitter.  Remove MQ constraint.
1558         (ctrdi_internal4): Correct CCmode clobber.
1559
1560 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1561
1562         * milli64.S ($$dyncall): New function.
1563         * t-linux (LIB1ASMFUNCS): Revise module list.
1564         (LIB1ASMSRC): Use pa/milli64.S.
1565
1566 2002-04-02  Richard Henderson  <rth@redhat.com>
1567
1568         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1569         rename solaris_sys_varargs_h.
1570
1571 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1572
1573         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1574         the same mode as its component.
1575
1576 2002-04-02  Richard Henderson  <rth@redhat.com>
1577
1578         PR opt/190
1579         * final.c (this_is_asm_operands): Export.
1580         * output.h (this_is_asm_operands): Declare.
1581         * config/i386/i386.c (print_operand): Error odd asm operands.
1582
1583 2002-04-02  Richard Henderson  <rth@redhat.com>
1584
1585         PR opt/420
1586         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1587
1588 2002-04-01  Richard Henderson  <rth@redhat.com>
1589
1590         PR target/1538
1591         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1592         * fixinc/fixincl.x: Rebuild.
1593
1594 2002-04-01  Richard Henderson  <rth@redhat.com>
1595
1596         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1597         (atomic_alloc, atomic_free): New.
1598         (SIZE, MASK_FOR, PTR_IN): New.
1599         (emergency_reg_state, emergency_reg_state_free): New.
1600         (emergency_labeled_state, emergency_labeled_state_free): New.
1601         (reg_state_alloced, labeled_state_alloced): New.
1602         (alloc_reg_state, free_reg_state): New.
1603         (alloc_label_state, free_label_state, free_label_states): New.
1604         (push, pop, dup_state_stack, free_state_stack): Use them.
1605         (desc_label_state): Likewise.
1606         (uw_frame_state_for): Free label states and state stack.
1607         (uw_update_reg_address): Eliminate warnings.
1608
1609 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1610
1611         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1612         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1613
1614 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1615
1616         * c-decl.c (grokdeclarator): Update.
1617         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1618         * c-tree.h (c_mark_addressable): New.
1619         * c-typeck.c (default_function_array_conversion, build_unary_op,
1620         build_array_ref, convert_for_assignment): Update.
1621         (mark_addressable): Rename.
1622         * calls.c (try_to_integrate, expand_call): Use langhook.
1623         * expr.c (expand_expr): Use langhook.
1624         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1625         * langhooks.h (struct lang_hooks): New hook.
1626         * stmt.c (expand_asm_operands): Use langhook.
1627         * tree.h (mark_addressable): Remove.
1628 objc:
1629         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1630
1631 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1632
1633         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1634         in previous change.
1635
1636 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1637
1638         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1639         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1640
1641 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1642
1643         * c-common.c (unsigned_conversion_warning, convert_and_check,
1644         unsigned_type, signed_type, shorten_compare,
1645         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1646         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1647         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1648         New.
1649         * c-decl.c (grokdeclarator): Update.
1650         * c-format.c (check_format_types): Update.
1651         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1652         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1653         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1654         * convert.c (convert_to_integer): Use new hooks.
1655         * expmed.c (make_tree): Use new hooks.
1656         * expr.c (store_expr): Use new hooks.
1657         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1658         all_ones_mask_p, unextend, fold): Use new hooks.
1659         * langhooks.h (struct lang_hooks_for_types): New hooks.
1660         * tree.h (signed_or_unsigned_type, signed_type,
1661         unsigned_type): Remove.
1662 objc:
1663         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1664         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1665
1666 2002-03-31  Richard Henderson  <rth@redhat.com>
1667
1668         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1669         (desc_frgr_mem): Fix reference to f16-f31.
1670
1671 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1672
1673         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1674         RTVEC_ELT): Const-ify.
1675         * varray.h (VARRAY_CHECK): Const-ify.
1676         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1677         ggc_mark_rtvec, ggc_mark): Const-ify.
1678
1679 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1680
1681         * diagnostic.c: Include langhooks-def.h.
1682         * Makefile.in (diagnostic.o): Update.
1683
1684 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1685
1686         * c-common.c (c_unsafe_for_reeval): Rename.
1687         * c-common.h (c_unsafe_for_reeval): Rename.
1688         * c-decl.c (finish_incomplete_decl): Rename.
1689         (c_init_decl_processing): Don't set langhook.
1690         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1691         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1692         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1693         * c-tree.h (finish_incomplete_decl): Rename.
1694         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1695         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1696         (LANG_HOOKS_INITIALIZER): Update.
1697         * langhooks.c (lhd_unsafe_For_reeval): New.
1698         * langhooks.h (struct langhooks): New hooks.
1699         * toplev.c (incomplete_decl_finalize_hook): Remove.
1700         (wrapup_global_declarations): Update.
1701         * tree.c (lang_unsafe_for_reeval): Remove.
1702         (unsafe_for_reeval): Update.
1703         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1704         Remove.
1705 objc:
1706         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1707         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1708
1709 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1710
1711         * diagnostic.c (print_error_function): Remove.
1712         (default_print_error_function): Rename.
1713         (report_error_function): Update.
1714         * diagnostic.h (print_error_function): Remove.
1715         (default_print_error_function): Remove.
1716         * langhooks-def.h (struct diagnostic_context): Predeclare.
1717         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1718         (LANG_HOOKS_INITIALIZER): Update.
1719         * langhooks.h (struct diagnostic context): Predeclare.
1720         (struct lang_hooks): New hook.
1721
1722 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1723
1724         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1725         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1726         !flag_pic.
1727         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1728         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1729         of PIC_OFFSET_TABLE_REGNUM thruout.
1730         * config/rs6000/rs6000.md: Likewise.
1731         * config/rs6000/darwin.h: Likewise.
1732
1733 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1734
1735         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1736         unsigned HOST_WIDE_INT, not unsigned int.
1737
1738 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1739
1740         PR middle-end/6096, middle-end/6098, middle-end/6099
1741         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1742         CODE_LABELs.
1743         (fill_slots_from_thread): Likewise.
1744
1745 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1746
1747         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1748         floating fields in float regs.
1749         (function_arg_record_value_2): Likewise.
1750
1751 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1752
1753         * config/mmix/mmix.md (define_constants): Remove misleading
1754         FIXME.  Add MMIX_fp_rO_OFFSET.
1755         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1756         saved rO as part of the pattern.  Remove FIXME.
1757         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1758         here, at output-time.
1759
1760 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1761
1762         PR middle-end/6100
1763         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1764         REG_BR_PRED.
1765         (output_v9branch): Likewise.
1766
1767 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1768
1769         * gcc.c: Revert previous patch for now.
1770         * config/i386/djgpp.h: Likewise.
1771
1772 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1773
1774         * config/mmix/crti.asm (_init): Register _fini with atexit.
1775         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1776
1777 2002-03-31  Richard Henderson  <rth@redhat.com>
1778
1779         PR target/3997
1780         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1781         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1782
1783 2002-03-31  Richard Henderson  <rth@redhat.com>
1784
1785         * libgcc2.c (__bb_exit_func): Make static.
1786
1787         * config/alpha/alpha.md (trap): New.
1788
1789 2002-03-31  Richard Henderson  <rth@redhat.com>
1790
1791         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1792         promoted argument types; build trap.
1793         (expand_builtin_trap): New.
1794         (expand_builtin): Use it.
1795         * stmt.c (expand_nl_goto_receivers): Likewise.
1796         * expr.h (expand_builtin_trap): Declare.
1797         * libfuncs.h (LTI_abort, abort_libfunc): New.
1798         * optabs.c (init_optabs): Init abort_libfunc.
1799
1800 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1801
1802         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1803         (LINK_COMMAND_SPEC): ... from here.
1804         (init_gcc_specs): Duplicate it here too, omitting
1805         shared_name in the second copy.
1806         (init_spec): Test for duplicate
1807         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1808
1809 2002-03-30  David S. Miller  <davem@redhat.com>
1810
1811         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1812         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1813
1814 2002-03-30  Roger Sayle <roger@eyesopen.com>
1815             Richard Henderson  <rth@redhat.com>
1816
1817         * regmove.c (combine_stack_adjustments_for_block): Avoid
1818         emitting a stack adjustment of zero bytes.  Let delete_insn
1819         update bb->head.
1820
1821 2002-03-30  Richard Henderson  <rth@redhat.com>
1822
1823         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1824         (sparc_emitting_epilogue): New.
1825         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1826         * config/sparc/sparc-protos.h: Update.
1827         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1828         (TARGET_SWITCHES): Update.
1829         * config/sparc/sparc.md (return): Remove.
1830         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1831         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1832         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1833         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1834         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1835         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1836         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1837         Remove MASK_EPILOGUE.
1838         * doc/invoke.texi: Update.
1839
1840 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1841
1842         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1843         CPP will start the file for us.
1844
1845 2002-03-30  Richard Henderson  <rth@redhat.com>
1846
1847         PR target/5446
1848         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1849         prologue_allocate_stack.
1850         (ia64_single_set): Use insn codes for recognition of special
1851         cases, not rtl matching.
1852         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1853
1854 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1855
1856         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1857
1858 2002-03-30  Richard Henderson  <rth@redhat.com>
1859
1860         PR target/6032
1861         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1862         or -fomit-frame-pointer with profiling.
1863         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1864         (FUNCTION_PROFILER): Do nothing.
1865         (PROFILE_HOOK): New.
1866         * config/sparc/sparc.c (sparc_override_options): Don't check
1867         code models for profiling.
1868         (sparc_function_profiler): Remove.
1869         (sparc_profile_hook): New.
1870         * config/sparc/sparc-protos.h: Update.
1871
1872 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1873
1874         PR optimization/6086
1875         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1876         of SUBREG of volatile MEM or because the MEM was mode dependent,
1877         return CLOBBER instead of unmodified SUBREG.
1878
1879 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1880
1881         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1882         when not optimizing.
1883
1884         * toplev.c (rest_of_compilation): Cann mark_constant_function
1885         only when optimizing.
1886
1887         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1888         are NULL.
1889
1890         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1891         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1892         (try_optimize_cfg): clear all AUX fields.
1893
1894         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1895         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1896         (ix86_address_cost): Be prepared for SUBREGed registers.
1897         (legitimate_address_p): Accept SUBREGed registers.
1898
1899 2002-03-29  Richard Henderson  <rth@redhat.com>
1900
1901         PR target/5672
1902         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1903
1904 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1905
1906         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1907         for aggregate and TFmode types.
1908
1909 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1910
1911         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1912
1913 2002-03-29  Richard Henderson  <rth@redhat.com>
1914
1915         PR target/5886
1916         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1917         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1918
1919 2002-03-29  Richard Henderson  <rth@redhat.com>
1920
1921         PR target/6041
1922         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1923         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1924         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1925         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1926         conditional.
1927         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1928
1929 2002-03-29  Dale Johannesen <dalej@apple.com>
1930
1931         * loop.c (combine_movables): Do allow combination of pseudos.
1932
1933 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
1934
1935         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1936         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1937         No functional change except ...
1938         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
1939         * doc/install.texi (*-*-freebsd*): Document port configuration.
1940
1941 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1942
1943         * Makefile.in (convert.o, calls.o, expmed.o): Update.
1944         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1945         Use new hooks.
1946         * builtin-types.def (BT_PTRMODE): Update.
1947         * c-common.c (type_for_size): Rename c_common_type_for_size.
1948         (type_for_mode): Similarly.
1949         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1950         Use new hook.
1951         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1952         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1953         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1954         Redefine.
1955         * c-typeck.c (common_type, comptypes, default_conversion):
1956         Use new hooks.
1957         * calls.c: Include langhooks.h.
1958         (emit_library_call_value_1): Use new hooks.  Avoid redundant
1959         calls.
1960         * convert.c: Include langhooks.h
1961         (convert_to_pointer, convert_to_integer): Use new hooks.
1962         * except.c (init_eh): Similarly.
1963         * expmed.c: Include langhooks.h.
1964         (expand_mult_add): Use new hooks.
1965         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1966         try_casesi): Similarly.
1967         * fold-const.c (optimize_bit_field_compare, make_range,
1968         decode_field_reference, fold_truthop, fold): Similarly.
1969         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1970         put_var_into_stack): Similarly.
1971         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1972         LANG_HOOKS_TYPE_FOR_SIZE): New.
1973         (LANG_HOOKS_TYPES_INITIALIZER): Update.
1974         * langhooks.h (lang_hooks_for_types): New hooks.
1975         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1976         * tree.c (get_unwidened, get_narrower): Similarly.
1977         * tree.h (type_for_mode, type_for_size): Remove.
1978         * varasm.c (force_const_mem): Use new hooks.
1979         * utils2.c (nonbinary_modular_operation): Update.
1980 objc:
1981         * objc-act.c (handle_impent): Update.
1982         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1983         Redefine.
1984
1985 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
1986
1987         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1988         * config/ia64/ia64.c (basereg_operand): New.
1989         * config/ia64/ia64-protos.h (basereg_operand): Declare.
1990         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1991
1992 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1993
1994         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1995         unwind information when frame_pointer_needed.
1996         (mmix_assemble_integer): Tweak wording in comment.
1997
1998 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1999
2000         * Makefile.in (except.o): Update.
2001         * except.c: Include langhooks.h.
2002         (init_eh): Use langhook.
2003         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2004         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2005         (LANG_HOOKS_INITIALIZER): Update.
2006         * langhooks.h (lang_hooks_for_types): New.
2007         (struct lang_hooks): Add it.
2008         * tree.c (make_lang_type_fn, make_lang_type): Remove.
2009         * tree.h (make_lang_type_fn, make_lang_type): Remove.
2010 config:
2011         * alpha/alpha.c: Include langhooks.h.
2012         (alpha_build_va_list): Use langhook.
2013         * d30v/d30v.c: Include langhooks.h.
2014         (d30v_build_va_list): Use langhook.
2015         * i386/i386.c: Include langhooks.h.
2016         (ix86_build_va_list): Use langhook.
2017         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2018         * s390/s390.c: Include langhooks.h.
2019         (s390_build_va_list): Use langhook.
2020         * stormy16/stormy16.c: Include langhooks.h.
2021         (stormy16_build_va_list): Use langhook.
2022
2023 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2024
2025         PR c++/5964
2026         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2027         attributes.
2028         (length): Compute variable length for branches/calls/jumps here.
2029         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2030         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2031         define branch_type attribute.
2032         (divsi3_sp32): Maximum length is 6 not 7.
2033         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2034         call_address_untyped_struct_value_sp32,
2035         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2036         * config/sparc/sparc.c (empty_delay_slot): New function.
2037         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2038         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2039
2040 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2041
2042         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2043         nonzero_bits if not needed.
2044         (nonzero_bits) [XOR]: Likewise.
2045         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2046         reg_last_set_mode and mode are both MODE_INT, but not equal.
2047         (record_value_for_reg): Compute reg_last_set_nonzero_bits
2048         in nonzero_bits_mode for MODE_INT modes.
2049
2050 2002-03-28  Richard Henderson  <rth@redhat.com>
2051
2052         PR target/5715
2053         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2054         to GAS.  Correct drift between alternatives.
2055
2056 2002-03-28  Richard Henderson  <rth@redhat.com>
2057
2058         PR target/6087
2059         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2060
2061 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
2062
2063         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2064         emulation to the linker.
2065
2066 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
2067
2068         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2069         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2070
2071 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
2072
2073         * combine.c (simplify_and_const_int): Make sure to apply mask
2074         when force_to_mode returns a constant integer.  PR3311.
2075
2076 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2077
2078         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2079
2080 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2081
2082         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2083         and Objective-C Dialect Options.
2084
2085 2002-03-28  Richard Henderson  <rth@redhat.com>
2086
2087         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2088         comparison should be done vs !=0 not >0 return code.  Tidy cases.
2089
2090 2002-03-28  Richard Henderson  <rth@redhat.com>
2091
2092         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
2093         on to c_expand_body.
2094         * c-tree.h (finish_function): Update decl.
2095         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2096
2097 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2098
2099         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2100
2101 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
2102
2103         * rtlanal.c: Include flags.h
2104         (may_trap_p): Do not mark FP operations if trapping
2105         if !flag_trapping_math
2106         * Makefile.in (rtlanal.o): Add dependency on flag.h
2107         * ifcvt.c (noce_operand_ok): Avoid the lameness.
2108
2109 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
2110
2111         * mips.md: Use dconst1, not 1.0, as first argument of
2112         REAL_VALUE_LDEXP.  Don't use union real_extract.
2113
2114 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2115
2116         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2117         rather than $target.  Heed program_prefix and
2118         program_transform_name.  Search for gas in cross-compiler case too.
2119         "test -x" rather than "test -f".
2120         (gcc_cv_ld): Likewise.
2121         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2122         (gcc_cv_objdump): Likewise.
2123         * configure: Regenerate.
2124
2125 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2126
2127         * Makefile.in (attribs.o): Update.
2128         * attribs.c: Include langhooks.h.
2129         (decl_attributes): Use langhook.
2130         * c-decl.c (insert_default_attributes): Rename.
2131         * c-tree.h (c_insert_default_attributes): New.
2132         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2133         (LANG_HOOKS_INITIALIZER): Update.
2134         * langhooks.h (struct lang_hooks): New hook.
2135         * tree.h (insert_default_attributes): Remove.
2136 objc:
2137         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2138
2139 2002-03-27  Andreas Schwab  <schwab@suse.de>
2140
2141         * config/i386/i386.c (classify_argument): Also check for
2142         QUAL_UNION_TYPE.
2143
2144 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2145
2146         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2147         any more.
2148
2149 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2150
2151         * i960.md (ret): Set PC.
2152         (nonlocal_goto): Fix expander.
2153         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2154         some jump or call.
2155
2156 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2157
2158         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2159         of libcall regions.
2160
2161 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2162
2163         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2164         assigning to BLOCK_FOR_INSN directly.
2165
2166 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2167
2168         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2169
2170 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2171
2172         * c-common.c (c_expand_expr): Fix prototype.
2173         * c-common.h (c_expand_expr): Always declare, update.
2174         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2175         * c-objc-common.c (c_objc_common_init): No global hook.
2176         * expr.c (expand_expr): Use langhook.
2177         * expr.h (enum expand_modifier): Conditionally declare.
2178         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2179         (LANG_HOOKS_INITIALIZER): Update.
2180         * langhooks.c (lhd_expand_expr): New.
2181         * langhooks.h (struct lang_hooks): New hook.
2182         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2183         (lang_independent_init): Don't default hook.
2184 objc:
2185         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2186
2187 2002-03-27  Richard Henderson  <rth@redhat.com>
2188
2189         PR target/6054
2190         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2191         TARGET_CONST_GP.  Simplify conditions.
2192
2193 2002-03-27  Richard Henderson  <rth@redhat.com>
2194
2195         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2196         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2197         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2198
2199 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2200
2201         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2202         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2203         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2204         Remove unnecessary masks.
2205         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2206         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2207         -mwindows, -mdll switches and their negations.
2208
2209 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2210
2211         * gcc-common.c (lang_mark_false_label_stack): Remove.
2212         * ggc.h (lang_mark_false_label_stack): Similarly.
2213
2214 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2215
2216         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2217
2218         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2219         or __rtems_ is defined.
2220
2221 2002-03-26  Richard Henderson  <rth@redhat.com>
2222
2223         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2224         if a non-trivial load was emitted.
2225         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2226         in high+extra+low case.
2227
2228 2002-03-26  Richard Henderson  <rth@redhat.com>
2229
2230         * config.gcc (sparc*-solaris): Use float_format=sparc.
2231
2232 2002-03-26  Richard Henderson  <rth@redhat.com>
2233
2234         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2235         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2236         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2237         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2238         (WINT_TYPE_SIZE): Fix at 32.
2239
2240 2002-03-26  Richard Henderson  <rth@redhat.com>
2241
2242         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2243         until after eh landing pad generation.
2244         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2245         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2246
2247 2002-03-26  Richard Henderson  <rth@redhat.com>
2248
2249         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2250
2251 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2252
2253         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2254         and warning switches.
2255         (cc1_options):  Likewise.
2256
2257 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2258
2259         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2260         Restore more of the signal context.  Set no_reg_stack_frame.
2261         * config/ia64/unwind-ia64.c (unw_state_record):
2262         Add no_reg_stack_frame, comments.
2263         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2264         (uw_update_context): Adjust bsp when unwinding from leaf,
2265         but not signal frame.
2266
2267 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2268
2269         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2270
2271 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2272
2273         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2274
2275 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2276
2277         PR target/5621
2278         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2279         "Add a pool_range attribute", which was lost during the ARM/Thumb
2280         merge.
2281
2282 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2283
2284         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2285         a register into the MAC16 accumulator.
2286
2287 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2288
2289         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2290         (Warning Options): Document -Wswitch-enum.
2291         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2292         -Wswitch.
2293         (warn_switch_enum): Define variables.
2294         * flags.h (warn_switch_enum): Declare variables.
2295         * stmt.c (expand_end_case_type): When warn_switch_enum /
2296         -Wswitch-enum, perform switch checks.
2297         Fix PR c/5044.
2298
2299 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2300
2301         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2302         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2303         (reload_muladdsi_compare0_scratch): Delete.
2304
2305 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2306
2307         * doc/install.texi (*-*-freebsd*): Update.
2308
2309 2002-03-26  Richard Henderson  <rth@redhat.com>
2310
2311         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2312         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2313
2314         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2315         types from the normal argument frame.
2316
2317         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2318         variable sized objects by reference.
2319         (sparc_va_arg): Receive them by reference too.
2320
2321 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2322
2323         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2324         code to not restoring global registers.
2325
2326 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2327
2328         * Makefile.in (ggc-common.o): Update.
2329         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2330         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2331         * c-tree.h (c_mark_tree): New.
2332         * ggc-common.c: Include langhooks.h.
2333         (gcc_mark_trees): Use new langhook.
2334         * ggc-callbacks.c: Delete file.
2335         * ggc.h (lang_mark_tree): Remove.
2336         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2337         (LANG_HOOKS_INITIALIZER): Update.
2338         * langhooks.h (struct lang_hooks): New hook.
2339 objc:
2340         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2341
2342 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2343
2344         * doc/cpp.texi: Exclude entire Top node from printed manual.
2345         Move option index after directive index.  Insert page breaks
2346         before GFDL and concept index.  Index environment variables
2347         with command line options.
2348         * doc/cppenv.texi: Use @vtable for environment variable list.
2349         Add paragraph explaining semantics of empty elements in path
2350         variables.  Exclude a cross-reference to Fishkill from the
2351         manpage.  Remove an unnecessary cross-reference of the entry
2352         right above the referer.  Don't use @anchor in text that goes
2353         into manpage.
2354         * doc/cppopts.texi: Cross-reference the environment variables
2355         section, not the specific environment variable, for consistency.
2356
2357 2002-03-25  Richard Henderson  <rth@redhat.com>
2358
2359         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2360         anywhere in the block.  Don't refer to insns that have been
2361         removed from the chain.  Iterate backward through the new insns.
2362         Don't refer to edges that have been removed.
2363
2364 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2365
2366         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2367         test for overflow of constant.
2368
2369 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2370
2371         PR target/2623
2372         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2373         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2374         these patterns on arm_archv4.
2375
2376 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2377
2378         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2379         int".
2380
2381 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2382
2383         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2384         float_handled, float_handler, float_signal, set_float_handler,
2385         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2386         * toplev.h: Don't prototype do_float_handler.
2387
2388         * c-lex.c: Fold parse_float into lex_number.  Make warning
2389         about portability of hex float constants more informative, and
2390         don't issue it on top of a syntax error.
2391         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2392         their callers.
2393         * real.h: Define REAL_VALUE_ABS here...
2394         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2395         simplify_unary_real, simplify_binary_real, and
2396         simplify_binary_is2orm1 into their callers.
2397         * tree.c: Fold build_real_from_int_cst_1 into caller.
2398
2399         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2400
2401         * tsystem.h: Include float.h here...
2402         * libgcc2.c: ... not here.
2403
2404 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2405
2406         Fixes for: PR bootstrap/3591, target/5676
2407         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2408         defined.  Do not disable exceptions or rtti.
2409         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2410         mcore.h.  Disable exceptions and rtti, since they are not
2411         supported by EPOC.
2412
2413 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2414
2415         * c-decl.c (maybe_build_cleanup): Remove.
2416         * expr.c (expand_expr): Use langhook.
2417         * langhooks-def.h (lhd_return_null_tree,
2418         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2419         (LANGHOOKS_INITIALIZER): Update.
2420         * langhooks.c (lhd_return_null_tree): New.
2421         * langhooks.h (struct lang_hooks): New hook.
2422         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2423         * tree.h (maybe_build_cleanup): Remove.
2424
2425 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2426
2427         * regrename.c (build_def_use): Move recog_memoized
2428         before extract_insn.
2429
2430 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2431
2432         PR target/6043
2433         * expr.c (emit_group_store): Handle storing into CONCAT.
2434
2435 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2436
2437         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2438         corresponding MATCH_DUP.
2439
2440 2002-03-24  Richard Henderson  <rth@redhat.com>
2441
2442         * unroll.c (unroll_loop): Zero label_map.
2443
2444         * gcse.c: Include except.h.
2445         * Makefile.in (gcse.o): Update.
2446
2447 2002-03-24  Richard Henderson  <rth@redhat.com>
2448
2449         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2450         Do resolve_unique_section before shared data clause.
2451
2452 2002-03-24  Richard Henderson  <rth@redhat.com>
2453
2454         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2455
2456 2002-03-24  Richard Henderson  <rth@redhat.com>
2457
2458         * recog.c (peephole2_optimize): Split blocks when EH insns are
2459         generated in the middle of a block.  Do global life update if
2460         zapped EH edges.
2461
2462 2002-03-24  Richard Henderson  <rth@redhat.com>
2463
2464         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2465
2466 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2467
2468         preprocessor/3951
2469         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2470         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2471         (init_dependency_output): Don't make no_output decision here.
2472
2473 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2474
2475         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2476         warn_switch.  Update description.
2477         (expand_end_case_type): Call check_for_full_enumeration_handling
2478         when warn_switch.
2479
2480 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2481
2482         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2483         (m68hc11_split_move): Call it to see if the source and destination
2484         operands use the same direction auto inc/dec mode, otherwise make the
2485         source an offsetable memory operand and generate an add.
2486
2487 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2488
2489         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2490         register for operand 2.
2491         ("*subsi3_zero_extendqi"): Likewise.
2492         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2493         bits so that it is compatible with a pop.
2494         ("*andhi3_gen"): Likewise.
2495         ("xorhi3"): Likewise.
2496
2497 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2498
2499         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2500         -pedantic here...
2501         (cpp_post_options): ... not here.
2502
2503 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2504             Aldy Hernandez  <aldyh@redhat.com>
2505
2506         Removal of separate preprocessor cpp0.
2507
2508         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2509         cpp0, install-common): Update.
2510         * c-common.c (flag_preprocess_only): New.
2511         (c_common_init): Preprocess for -E.
2512         * c-common.h (flag_preprocess_only): New.
2513         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2514         * c-objc-common.c (c_init_decl_processing): Exit quickly
2515         for NULL return from c_common_init.
2516         * cpplib.h (cpp_preprocess_file): New.
2517         * cppmain.c (main, general_init, pfile, progname): Remove.
2518         (do_preprocessing): Rename cpp_preprocess_file, don't call
2519         cpp_finish.  Don't close stdout here.
2520         (setup_callbacks): Update prototype.
2521         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2522         Update.
2523         * tradcpp.c (main): Ignore -quiet.
2524 objc:
2525         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2526
2527 2002-03-24  Richard Henderson  <rth@redhat.com>
2528
2529         PR optimization/5742
2530         * machmode.def: Add inner mode field to complex modes.
2531         * config/mips/mips.c (mips_function_value): Always define.  Add
2532         new argument to handle libcalls.
2533         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2534         (FUNCTION_VALUE): Likewise.
2535         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2536         * config/mips/mips-protos.h: Update.
2537
2538 2002-03-23  Richard Henderson  <rth@redhat.com>
2539
2540         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2541         * config/sparc/sparc-protos.h: Update.
2542         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2543
2544 2002-03-23  Richard Henderson  <rth@redhat.com>
2545
2546         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2547         _start or _init begins the text segment.
2548
2549 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2550
2551         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2552         not HOST_WIDEST_INT.
2553         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2554
2555 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2556
2557         PR java/5489
2558         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2559         operand argument to output_return_instruction.
2560         * arm.c (arm_print_operand, case 'd'): If the operand is
2561         const_true_rtx then just return.
2562         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2563         then abort.
2564
2565 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2566
2567         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2568         (Warning Options): Document -Wswitch-default.
2569         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2570         -Wswitch.
2571         (warn_switch_default): Define variable.
2572         (warn_switch): Update comment.
2573         * flags.h (warn_switch_default): Declare variable.
2574         (warn_switch): Update comment.
2575         * stmt.c (expand_end_case): Check for and, when
2576         warn_switch_no_default, warn of a missing default case.
2577
2578 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2579
2580         * real.h (N): Special case 128 bit doubles.
2581
2582         * combine.c (simplify_comparison): When widening modes, ignore
2583         sign extension on CONST_INTs.
2584
2585 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2586
2587         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2588         passed to adjust_address.  Fix comment formatting.
2589
2590
2591 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2592
2593         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2594         Always make REAL_VALUE_TYPE a struct containing an array of
2595         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2596         big it is.  Don't declare or use union real_extract.
2597
2598         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2599         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2600         (print_operand), config/arm/arm.c (output_move_double),
2601         config/arm/arm.md (consttable_4, consttable_8),
2602         config/romp/romp.c (output_fpops), config/s390/s390.h
2603         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2604         (xtensa_output_literal): Don't use union real_extract.
2605
2606         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2607         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2608         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2609         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2610         (PRINT_OPERAND): Don't use local version of union
2611         real_extract.
2612
2613         * config/convex/convex.c (check_float_value), config/vax/vax.c
2614         (vax_float_literal), config/m88k/m88k.md (divdf3),
2615         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2616         config/pdp11/pdp11.c (output_move_quad): Don't do host
2617         arithmetic on target floating point quantities.
2618
2619         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2620         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2621
2622         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2623         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2624
2625         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2626         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2627         INFINITY.
2628         * print-rtl.c (print_rtx): Disable code which needs
2629         floating-point emulator.
2630         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2631         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2632         depending on HOST_FLOAT_FORMAT to be defined properly.
2633
2634         * config/1750a/1750a.c (get_double, float_label): Delete.
2635         (print_operand): Delete huge commented-out chunk.  Use
2636         REAL_VALUE_TO_DECIMAL.
2637         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2638         functions.
2639         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2640         IEEE_FLOAT_FORMAT.
2641         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2642         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2643         * config/m88k/m88k.c (real_power_of_2_operand,
2644         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2645         real_extract out of the union; run the input through
2646         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2647         from that into the union.
2648         * config/pdp11/pdp11.c (output_move_double): Rearrange
2649         parentheses to make automatic indenter happy.
2650
2651         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2652         Point" and rewrite to describe current situation.  Also adjust
2653         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2654         match code.
2655         * doc/rtl.texi: Adjust cross reference.
2656
2657 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2658
2659         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2660         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2661         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2662         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2663         prevent use of sp as a reload register.
2664         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2665         non_acc_reg_operand.
2666         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2667         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2668         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2669         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2670
2671 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2672
2673         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2674         * cpplex.c (unterminated): Delete.
2675         (parse_string): No string literal may extend over multiple
2676         lines.  Suppress the error when preprocessing assembly.
2677         * cppmain.c (scan_translation_unit): Strings are single-line.
2678
2679         * doc/cpp.texi: Update to match.
2680
2681 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2682
2683         PR optimization/5854
2684         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2685         Shut up warnings.
2686         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2687         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2688         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2689         const0 if scratch register was not allocated.
2690         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2691         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2692         with GEN_INT (...).
2693         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2694         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2695         with GEN_INT (...) everywhere.  Remove constraints in define_split
2696         patterns.
2697         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2698         require scratch register for setting 0 into regs/non-pushable memory.
2699
2700 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2701
2702         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2703         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2704
2705 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2706
2707         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2708         * cppinit.c (cpp_create_reader):  On by default.
2709         (cpp_handle_option):  Handle -W[no-]endif-labels.
2710         (cpp_post_options):  Also enable if -pedantic.
2711         * cpplib.c (do_else):  Use it.
2712         (do_endif):  Likewise.
2713         * doc/cppopts.texi:  Document new option.
2714         * doc/invoke.texi:  Document new option.
2715
2716 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2717
2718         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2719         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2720
2721 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2722
2723         * flow.c (calculate_global_regs_live): Clear aux fields of
2724         ENTRY and EXIT.
2725
2726 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2727
2728         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2729         REG or MEM subregs, pass rtx * instead of rtx to it.
2730         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2731         rtx * instead of rtx to alter_subreg.
2732         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2733         * config/pj/pj.c (pj_output_rval): Likewise.
2734
2735 2002-03-22  Richard Henderson  <rth@redhat.com>
2736
2737         PR target/3177
2738         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2739         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2740         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2741         (ia64_expand_prologue): Look at int_regs, not words, for number
2742         of incomming int regs.
2743
2744 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2745
2746         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2747
2748 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2749
2750         * toplev.c (flag_loop_optimize, flag_crossjumping):
2751         New static variables.
2752         (rest_of_compilation): Conditionalize crossjumping and
2753         loop optimizer.
2754         (parse_options_and_default_flags): Default loop_optimize and
2755         crossjumping.
2756         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2757         * invoke.texi (crossjumping, loop-optimize): Document.
2758
2759 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2760
2761         * real.c (eiisneg): Move outside #ifdef NANS.
2762
2763 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2764
2765         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2766         frequencies match; avoid match on different loop depths.
2767         (try_crossjump_to_bb): Kill tests that no longer brings time
2768         savings.
2769         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2770         updating code.
2771         (split_edge): Likewise.
2772
2773         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2774         variable.
2775
2776         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2777         * cfgrtl.c: Include insn-config.h
2778         (split_block) Dirtify block in presence of conditional execution
2779
2780 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2781
2782         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2783         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2784         (function_arg): Constify CUMULATIVE_ARGS.
2785         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2786         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2787         (UNITS_PER_DOUBLE): New macro.
2788         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2789         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2790         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2791         fp_regs and stack_words.
2792         (EABI_FLOAT_VARARGS_P): New macro.
2793         * config/mips/mips.c (struct mips_arg_info): New.
2794         (mips_arg_info): New function.
2795         (function_arg_advance): Use it.  Add adjustment instructions here
2796         rather than in function_arg.
2797         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2798         for VOIDmode at the beginning of the function.
2799         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2800         (function_arg_pass_by_reference): Likewise.
2801         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2802         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2803         (mips_va_start): Likewise.  Use the new stack_words field of
2804         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2805         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2806         doubles and other types, aligning the overflow pointer for non-doubles
2807         too.  Remove some code duplication.  Replace hard-coded constants.
2808
2809 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2810
2811         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2812         (CLASS_UNITS): Undefine.
2813         (CLASS_MAX_NREGS): Use FP_INC.
2814         * config/mips/mips.c (compute_frame_size): Likewise.
2815         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2816
2817 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2818
2819         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2820         prototype, and handle lexing numbers and identifiers.
2821         (parse_identifier): Update to new form of parse_slow.
2822         (parse_number): Fast path only, use parse_slow otherwise.
2823         (_cpp_lex_direct): Update calls to parse_number.
2824
2825 2002-03-21  DJ Delorie  <dj@redhat.com>
2826
2827         * bb-reorder.c (make_reorder_chain_1): Protect against
2828         when redundant edges are omitted.
2829         * predict.c (dump_prediction): Likewise.
2830
2831 2002-03-21  Richard Henderson  <rth@redhat.com>
2832
2833         PR target/5996
2834         * fixinc/inclhack.def (solaris_stdio_tag): New.
2835         * fixinc/fixincl.x: Regenerate.
2836
2837 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2838
2839         PR c/5597
2840         * c-typeck.c (process_init_element): Flag non-static
2841         initialization of a flexible array member as illegal.
2842
2843 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2844
2845         * config/rs6000/t-linux64: New.
2846         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2847         t-ppccomm.  Use t-rs6000 and t-linux64.
2848         (powerpc64-*-gnu* <tmake_file>): Likewise.
2849         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2850         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2851         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2852
2853 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2854
2855         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2856         flag_really_no_inline instead of optimize == 0.
2857
2858         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2859
2860         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2861
2862         * flags.h (flag_really_no_inline): New.
2863
2864         * c-common.c (c_common_post_options): Initialize
2865         flag_really_no_inline.
2866
2867         * toplev.c (flag_really_no_inline): New.
2868
2869 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2870
2871         * config/avr/avr.md (length): Fix length computation for
2872         conditional branches.
2873
2874 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2875
2876         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2877         sdbout.o, profile.o): Update.
2878         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2879         langhook.
2880         * c-common.h (gettags): Move here from tree.h.
2881         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2882         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2883         * dbxout.c (dbxout_init): Use getdecls langhook.
2884         * expr.c (expand_expr): Use insert_block langhook.
2885         * fold-const.c: Include langhooks.h.
2886         (fold_range_test, fold_binary_op_with_conditional_arg,
2887         fold): Use global_bindings_p langhook.
2888         * integrate.c (expand_inline_function): Use insert_block langhook.
2889         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2890         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2891         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2892         LANG_HOOKS_GETDECLS): New.
2893         (LANG_HOOKS_INITIALIZER): Update.
2894         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2895         langhook.
2896         * langhooks.h (struct lang_hooks_for_decls): New.
2897         (struct lang_hooks): Update.
2898         * profile.c: Include langhooks.h.
2899         (output_func_start_profiler): Use new langhooks.
2900         * sdbout.c: Include langhooks.h.
2901         (sdbout_init, sdbout_finish): Use getdecls langhook.
2902         * stmt.c: Include langhooks.h.
2903         (expand_fixup, fixup_gotos): Use new langhooks.
2904         * stor-layout.c: Include langhooks.h.
2905         (variable_size): Use global_bindings_p langhook.
2906         * toplev.c (compile_file): Use getdecls langhook.
2907         * tree-inline.c (remap_block): Use insert_block langhook.
2908         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2909         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2910
2911 2002-03-21  Richard Henderson  <rth@redhat.com>
2912
2913         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2914         constants in .data when -fpic.
2915
2916 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2917
2918         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2919         where appropriate.
2920
2921 2002-03-21  Tom Tromey  <tromey@redhat.com>
2922
2923         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
2924
2925 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2926
2927         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2928
2929         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2930
2931 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2932             Richard Henderson  <rth@redhat.com>
2933
2934         PR c/5354
2935         * c-common.c (c_expand_expr): Preserve result of a statement
2936         expression if needed.
2937
2938 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2939
2940         PR bootstrap/4195
2941         * genrecog.c (maybe_both_true_mode): Remove.
2942         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2943         * machmode.def (Pmode): Likewise.
2944
2945 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
2946
2947         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2948         (nonlocal_mentioned_p_1): New function.
2949         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2950         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2951         (mark_constant_function): Recognize pure functions.
2952         * rtl.h (global_reg_mentioned_p): New prototype.
2953         * rtlanal.c (global_reg_mentioned_p,
2954         global_reg_mentioned_p_1): New function.
2955
2956 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2957
2958         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2959         UNIX assert.h.
2960         * fixinc/fixincl.x: Regenerate.
2961
2962 2002-03-20  Jason Merrill  <jason@redhat.com>
2963
2964         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2965
2966 2002-03-20  Michael Meissner  <meissner@redhat.com>
2967
2968         * doc/invoke.texi (Optimize Options): Document that -O2 sets
2969         -fstrict-aliasing.
2970
2971 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2972
2973         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2974         ".literal_position" directive before the constant pool.
2975
2976 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2977
2978         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2979         Add Craig Rodrigues.
2980         Add Brad Lucier to testers.
2981
2982 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2983
2984         PR target/4792
2985         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2986         to if_then_else.
2987         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2988         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2989         instead of insn_extract.
2990
2991 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2992
2993         PR bootstrap/4192
2994         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2995
2996         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2997         stmt if some case has been output.
2998
2999 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3000
3001         PR c/5972
3002         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3003         movsfcc_1, movdfcc_1): Add %O2.
3004         * config/i386/i386.c (print_operand): Handle %ON.
3005         Print . before float condition codes in Sun as cmov syntax.
3006         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3007         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3008         no longer true.
3009
3010 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
3011
3012         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3013         return instruction if PC was popped.
3014
3015 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3016
3017         * config/xtensa/xtensa.md: Remove unused type attributes.
3018         (adddi_carry, subddi_carry): Change type attribute to "multi".
3019
3020 2002-03-19  Dale Johannesen  <dalej@apple.com>
3021
3022         PR optimization/5999, middle-end/5731
3023         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3024         multiplications by reciprocals.
3025
3026 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3027
3028         * Makefile.in: Update.
3029         * c-common.c: Include langhooks.h.
3030         (inline_forbidden_p): Use new hook.
3031         * diagnostic.c: Include langhooks.h.
3032         (format_with_decl, announce_function,
3033         default_print_error_function): Use new hook.
3034         * dwarf2out.c (dwarf2_name): Use new hook.
3035         * function.c: Include langhooks.h.
3036         (init_function_start): Use new hook.
3037         * langhooks-def.h (lhd_decl_printable_name): New.
3038         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3039         (LANGHOOKS_INITIALIZER): Update.
3040         * langhooks.c (lhd_decl_printable_name): New.
3041         * langhooks.h (struct lang_hooks): New hook.
3042         * toplev.c (decl_name, decl_printable_name): Remove.
3043         (open_dump_file): Use new hook.
3044         (process_options): Remove old hook.
3045         * tree.h (decl_printable_name): Remove.
3046 objc:
3047         * objc-act.c (objc_init): Remove old hook.
3048         (objc_printable_name): Export.
3049         * objc-act.h (objc_printable_name): New.
3050         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3051
3052 2002-03-19  Jim Blandy  <jimb@redhat.com>
3053
3054         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3055         the start_source_file debug hook, not the current line number.
3056
3057 2002-03-19  Richard Henderson  <rth@redhat.com>
3058
3059         * flow.c (EH_USES): Provide default.
3060         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3061         * doc/tm.texi (EH_USES): New.
3062
3063         * config/ia64/ia64.c (ia64_eh_uses): New.
3064         * config/ia64/ia64-protos.h: Update.
3065         * config/ia64/ia64.h (EH_USES): New.
3066
3067 2002-03-19  Richard Henderson  <rth@redhat.com>
3068
3069         * varasm.c (output_constant_def): Fix stupid typo.
3070
3071 2002-03-19  Richard Henderson  <rth@redhat.com>
3072
3073         PR 5879
3074         * except.c (current_function_has_exception_handlers): New.
3075         * except.h: Declare it.
3076         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3077         Combine tests that disable all sibcalls for the function.
3078
3079 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
3080
3081         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3082         for INTEGER_CST.
3083
3084 2002-03-19  Richard Henderson  <rth@redhat.com>
3085
3086         PR 5977, 5991
3087         * config/ia64/ia64.c: Revert 2002-03-01 patch.
3088         * config/ia64/ia64.h (INIT_EXPANDERS): New.
3089
3090 2002-03-19  Jim Blandy  <jimb@redhat.com>
3091
3092         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3093         name, even if the replacement list contains no tokens, as required
3094         by Dwarf.
3095
3096 2002-03-19  Jason Merrill  <jason@redhat.com>
3097
3098         * varasm.c (globalize_decl): Get the name from the RTL, not
3099         DECL_ASSEMBLER_NAME.
3100
3101         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3102
3103 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
3104
3105         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3106         subdi_carry): Define.
3107
3108 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3109
3110         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3111         about -fpic/-fPIC if extra_warnings set.
3112
3113 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3114
3115         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3116         TREE_STRING_POINTER.
3117         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3118
3119 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3120
3121         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3122         in favor of SP if FRAME_POINTER_REQUIRED is false.
3123
3124 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3125
3126         * emit-rtl.c (gen_int_mode): New function.
3127         * rtl.h: Prototype for it.
3128         * combine.c (make_extraction, simplify_comparison), expmed.c
3129         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3130         (convert_modes, store_field), optabs.c (expand_fix),
3131         simplify-rtx.c (neg_const_int, simplify_unary_real),
3132
3133         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3134         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3135
3136 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3137
3138         PR c/5656
3139         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3140         convert_parm_for_inlining.
3141         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3142         Define.
3143         * langhooks-def.h: Likewise.
3144         * objc/objc-lang.c: Likewise.
3145         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3146         function.
3147         * tree-inline.c (initialize_inlined_parameters):
3148         Call convert_parm_for_inlining lang hook if needed.
3149         * c-typeck.c (c_convert_parm_for_inlining): New function.
3150         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3151
3152 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3153
3154         * calls.c (precompute_arguments): Do not assume that temporaries
3155         can be destroyed after expanding the argument.
3156         (expand_call): Likewise.
3157
3158 2002-03-15  Eric Christopher  <echristo@redhat.com>
3159
3160         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3161         Fix register preference on last change.
3162         * config/mips/mips.c (mips_return_in_memory): New function.
3163         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3164         * config/mips/mips-protos.h: Declare.
3165         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3166         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3167
3168 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3169
3170         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3171         a register too.
3172         (anddi3, iorsi3): Likewise.
3173
3174         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3175         use %gprel for symbols that are going to be placed in linkonce
3176         sections.
3177
3178         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3179         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3180         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3181         not needed.  Disregard leaf_function_p().
3182         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3183         mips16 frame pointer.
3184         * config/mips/mips.md (store ra): Only to small SP offsets.
3185         2001-08-22  Graham Stott  <grahams@redhat.com>
3186         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3187         return a REG rtx for the return address register.
3188
3189 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3190
3191         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3192         constant-pool addresses as "mode-dependent".
3193         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3194
3195 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3196
3197         PR target/5740
3198         * expr.c (emit_group_load): Use extract_bit_field if
3199         needed for CONCAT arguments.
3200
3201 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3202
3203         PR target/4863
3204         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3205         offset to the base of the table.
3206         (thumb_tablejump): Matcher for Thumb tablejump insn.
3207         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3208         as the difference of two labels.
3209         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3210         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3211         tables in the code.
3212         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3213         * arm.c (get_jump_table_size): If the table is not in the text
3214         section, return zero.
3215
3216 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3217
3218         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3219         of gen_rtx_SUBREG.
3220         (arm_reload_out_hi): Use gen_lowpart instead of
3221         gen_rtx_SUBREG to access QImode components.
3222         * config/arm/arm.md: Disable zero_extend split for QImode
3223         subregs in BIG_ENDIAN mode.
3224         (storehi_bigend): Match use of least significant byte.
3225         (storeinthi): Remove extraneous SUBREG.
3226         Add missing construction of operands[2].
3227         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3228         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3229         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3230
3231 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3232
3233         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3234         any_operand.
3235
3236 2002-03-17  Richard Henderson  <rth@redhat.com>
3237
3238         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3239         explicitly.
3240
3241 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3242
3243         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3244         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3245
3246 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3247
3248         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3249
3250         * predict.c (estimate_bb_frequencies): Delete unused variables.
3251
3252 2002-03-17  Richard Henderson  <rth@redhat.com>
3253
3254         * config/ia64/ia64.c (ia64_attribute_table): Move before
3255         targetm definition.  Make static.
3256
3257 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3258
3259         * c-common.h (yyparse, c_common_parse_file): New.
3260         * c-lang.c: Include c-common.h.
3261         (LANG_HOOKS_PARSE_FILE): Redefine.
3262         * c-lex.c: Include c-common.h.
3263         (yyparse): Rename c_common_parse_file.  Call yyparse.
3264         * c-parse.in (yyparse): Remove macro.
3265         * c-tree.h (yyparse_1): Remove.
3266         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3267         (LANG_HOOKS_INITIALIZER): Update.
3268         * langhooks.h (struct lang_hoooks): New hook parse_file.
3269         * toplev.c (compile_file): Use parse_file hook.
3270         * tree.h (yyparse): Remove.
3271         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3272
3273 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3274
3275         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3276         float_truncate, not fix.
3277         ("*truncdfsf2_real"): Ditto.
3278         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3279
3280         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3281
3282 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3283
3284         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3285         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3286         where appropriate.  Make the second reference to
3287         leaf_function_p a function call, as intended.  Reindented.
3288
3289         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3290         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3291
3292         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3293         add register to non-constant into sp.
3294
3295         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3296         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3297         (mips16_gp_pseudo_rtx): Lose.
3298         (INIT_EXPANDERS): Deleted.
3299         * config/mips/mips.c (mips_init_machine_status): New.
3300         (mips_free_machine_status): New.
3301         (mips_mark_machine_status): New.
3302         (override_options): Set them.
3303         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3304         (struct machine_function): ... new.  Replaced all references.
3305         (mips_add_gc_roots): Don't mark them.
3306         (embedded_pic_fnaddr_reg): New, extracted from...
3307         (embedded_pic_offset): ... here.
3308         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3309         (movsi): Likewise.
3310
3311 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3312
3313         * cppinit.c: Revert -MD removal.
3314
3315 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3316
3317         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3318         soft registers by default for 68HC12.
3319         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3320         when compiling with -fomit-frame-pointer.
3321         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3322         (expand_epilogue): Likewise.
3323         (m68hc11_gen_rotate): Use exg when rotating by 8.
3324
3325 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3326
3327         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3328         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3329         (splits): Remove unused add splits.
3330         ("*addhi3_68hc12"): Tune constraints.
3331         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3332         constant fits in 8-bits and D is dead use abx/aby instructions.
3333         ("*addhi3"): Remove extern declaration of ix_reg.
3334         ("*subsi3"): Optimize and provide new split.
3335         ("subhi3"): Cleanup.
3336         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3337         (arith splits): For 68hc12 save the address register on the stack
3338         and do the arithmetic operation with a pop.
3339
3340 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3341
3342         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3343         allocating QImode in address registers.
3344         ("*movqi_m68hc11"): Likewise.
3345
3346 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3347
3348         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3349
3350 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3351
3352         * cppinit.c (print_help): Display -MD and -MMD.
3353         Don't display usage string.  Update assertion syntax and
3354         typo.
3355         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3356         (cpp_handle_option): Update.
3357
3358 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3359
3360         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3361         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3362         and define it so that regardless of target CPU size,
3363         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3364         of "int" rather than "long."
3365
3366 2002-03-15  Richard Henderson  <rth@redhat.com>
3367
3368         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3369         size as a tree.
3370
3371 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3372
3373         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3374         ("tstqi" split): Avoid using memory for tstqi on address register.
3375         (splits): Remove constraints.
3376         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3377         ("cmpdf", "cmpsf"): Remove since not used.
3378         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3379         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3380
3381 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3382
3383         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3384         ("neghi2"): Tighten constraints.
3385         ("one_cmplsi2"): Optimize and simplify split.
3386         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3387
3388 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3389
3390         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3391         and split of AND operation to clear the upper bits.
3392         ("*logicalsi3_zextqi"): Likewise.
3393         ("*logicallhi3_zexthi_ashift8"): Likewise.
3394         ("*logicalsi3_silshr16"): Likewise.
3395         ("logicalsi3_silshl16"): Likewise.
3396         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3397
3398 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3399
3400         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3401         (m68hc11_indirect_p): New function.
3402         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3403         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3404         TARGET_M6812.
3405         (asm_print_register): Likewise.
3406         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3407         (m68hc11_indirect_p): Declare.
3408         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3409         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3410         (TARGET_SWITCHES): New option -mrelax.
3411         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3412         destination.
3413         ("iorsi3", "xorsi3"): Likewise.
3414         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3415         ("*andhi3_mem"): New to handle destination in memory with bclr
3416         and a scratch register.
3417         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3418         ("*andhi3_const"): New when operand2 is constant.
3419         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3420         ("*andhi3_gen"): Cleanup of the old "andhi3".
3421         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3422         ("xorqi3"): Update constraints.
3423
3424 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3425
3426         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3427         for reg_equiv_memory_loc when the operand is a register that does
3428         not get a hard register (stack location).
3429         (tst_operand): After reload, accept all memory operand.
3430         (symbolic_memory_operand): Fix detection of symbolic references.
3431         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3432         accept symbols and any constant.
3433
3434 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3435
3436         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3437         note on the insn that sets the soft frame register.
3438         (must_parenthesize): ix and iy are also reserved names.
3439         (print_operand_address): One more place where parenthesis are required
3440         to avoid confusion with register names.
3441         (m68hc11_gen_movhi): Allow push of stack pointer.
3442         (m68hc11_check_z_replacement): Fix handling of parallel with a
3443         clobber.
3444         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3445         the replacement register is.
3446         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3447         and D8_REGS classes.
3448         (MODES_TIEABLE_P): All modes are tieable except QImode.
3449
3450 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3451
3452         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3453         (___subdi3): Likewise.
3454         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3455         (__map_data_section): Optimize 68hc11 case.
3456
3457 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3458
3459         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3460         than a shift to avoid adding a register with itself.
3461         (m68hc11_memory_move_cost): Take into account NO_REGS.
3462         (m68hc11_register_move_cost): Update and use memory move cost
3463         for soft registers.
3464         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3465         it gives more opportunities to cse to optimize.
3466         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3467         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3468
3469 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3470
3471         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3472         * c-common.def (CLEANUP_STMT): New tree node.
3473         * c-common.h (CLEANUP_DECL): New macro.
3474         (CLEANUP_EXPR): Likewise.
3475         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3476         * expr.c (expand_expr): Tidy.
3477         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3478         * tree-inline.c (initialize_inlined_parameters): Clean up
3479         new local variables.
3480
3481 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3482
3483         PR bootstrap/4128
3484         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3485         before movrXX only, use reg_overlap_mentioned_p.
3486         Only special case NE if just one insn can be generated.
3487
3488 2002-03-15  Jason Merrill  <jason@redhat.com>
3489
3490         * varasm.c (assemble_variable): Call resolve_unique_section before
3491         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3492         of error_mark_node.
3493
3494 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3495
3496         PR target/5170
3497         * arm.md (split pattern for thumb shiftable immediates): Add comment
3498         explaining non-obvious test.
3499
3500 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3501
3502         PR target/5712
3503         * arm.md (movaddr, movaddr_insn): Delete.
3504
3505 2002-03-15  Jason Merrill  <jason@redhat.com>
3506
3507         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3508         -fkeep-static-consts doesn't apply to comdats.
3509
3510 2002-03-14  Richard Henderson  <rth@redhat.com>
3511
3512         * c-decl.c: Include c-pragma.h.
3513         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3514         (finish_function): Tidy.
3515         * c-pragma.c: Include c-common.h.
3516         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3517         (handle_pragma_weak): Use them.
3518         (init_pragma): Register pending_weaks.
3519         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3520         * print-tree.c (print_node): Print DECL_WEAK.
3521         * varasm.c (mark_weak_decls): Remove.
3522         (remove_from_pending_weak_list): Remove.
3523         (add_weak): Remove.
3524         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3525         (weak_decls): Make a tree_list.
3526         (declare_weak): Cons weak_decls directly.
3527         (globalize_decl): Remove weak_decls elements directly.
3528         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3529         symbols.  Don't pretend to handle aliases.
3530         (init_varasm_once): Update weak_decls registry.
3531         * Makefile.in: Update dependencies.
3532
3533 2002-03-14  Richard Henderson  <rth@redhat.com>
3534
3535         PR target/5312
3536         * config/ia64/ia64.c: Include tm_p.h last.
3537         (gen_nop_type): Remove duplicate definition.
3538         (cycle_end_fill_slots): Set sched_data for second L slot.
3539         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3540         (nop_cycles_until): Fix typos.
3541
3542 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3543
3544         PR optimization/5891
3545         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3546
3547 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3548
3549         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3550           descriptors correctly.
3551
3552 2002-03-14  Michael Meissner  <meissner@redhat.com>
3553
3554         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3555         100, allowing MAX_UNROLLED_INSNS to be overridden.
3556
3557         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3558         --param.
3559
3560         * unroll.c (params.h): Include.
3561         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3562
3563         * doc/invoke.texi (--param max-unroll-insns): Document.
3564
3565         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3566
3567 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3568
3569         * arm.md: Fix warnings about constraints in peepholes and splits.
3570
3571 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3572
3573         * cpphash.h (struct lexer_state): Remove line_extension member.
3574         * cpplib.c (dequote_string, do_linemarker): New functions.
3575         (linemarker_dir): New data object.
3576         (DIRECTIVE_TABLE): No longer need to interpret #line in
3577         preprocessed source.  Delete obsolete comment about return
3578         values of handlers.
3579         (end_directive, directive_diagnostics, _cpp_handle_directive):
3580         Don't muck with line_extension.
3581         (directive_diagnostics): No need to issue warnings for
3582         linemarkers here.
3583         (_cpp_handle_directive): Issue warnings for linemarkers here,
3584         when appropriate.  Dispatch linemarkers to do_linemarker, not
3585         do_line.
3586         (do_line): Code to handle linemarkers split out to do_linemarker.
3587         Convert escape sequences in filename argument, both places.
3588
3589         * cppmacro.c (quote_string): Rename cpp_quote_string and
3590         export.  All callers changed.
3591         * cpplib.h (cpp_quote_string): Prototype.
3592         * cppmain.c (print_line): Call cpp_quote_string on to_file
3593         before printing it.
3594
3595         * doc/cpp.texi: Document that escapes are now interpreted in
3596         #line and in linemarkers, and that non-printing characters are
3597         converted to octal escapes when linemarkers are generated.
3598
3599 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3600
3601         * emit-rtl.c (try_split): Use delete_insns.
3602         * recog.c (split_all_insns): Fix terminating condition.
3603
3604 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3605             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3606
3607         PR target/5828
3608         * arm.c (arm_output_epilogue): Fix floating-point register save
3609         adjustment when using a frame pointer.
3610
3611 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3612
3613         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3614         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3615         (save_restore_insns, mips_expand_epilogue): And here.
3616         (build_mips16_call_stub): And here.
3617         (mips_function_value): Use the new macros to decide whether a single
3618         or complex float can be returned in floating-point registers.  Return
3619         a parallel rtx in the complex case.
3620
3621 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3622
3623         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3624         call after liveness analysis.
3625
3626         * recog.c (split_insn): Use delete_insn_and_edges.
3627
3628         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3629         instructions to have branch prediction notes.
3630         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3631
3632 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3633
3634         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3635         that doesn't support it.
3636         * configure: Regenerate.
3637
3638 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3639
3640         PR target/5626
3641         * config/sparc/sparc.md (normal_branch, inverted_branch,
3642         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3643         inverted_fp_branch): Adjust calls to output_cbranch.
3644         Set length attribute.
3645         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3646         output_v9branch.  Set length attribute.
3647         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3648         predicates.
3649         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3650         (output_cbranch): Likewise.  Handle far branches.
3651         (output_v9branch): Handle far branches.
3652         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3653         Adjust prototypes.
3654         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3655         noov_compare64_op predicates.
3656
3657 2002-03-13  Jason Merrill  <jason@redhat.com>
3658
3659         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3660         into the function and constify it.
3661         * gthr-dce.h, gthr-solaris.h: Likewise.
3662
3663 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3664
3665         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3666         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3667         std_expand_builtin_va_arg if not ABI_V4.
3668
3669 2002-03-13  Jason Merrill  <jason@redhat.com>
3670
3671         * varasm.c (globalize_decl): New fn.
3672         (assemble_start_function): Use it.
3673         (asm_emit_uninitialized): Use it.
3674         (assemble_alias): Use it.
3675         (assemble_variable): Use it.
3676
3677 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3678
3679         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3680         2002-03-12 internal visibility change.
3681         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3682         visibility into SYMBOL_REF_FLAG.
3683
3684 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3685
3686         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3687         VOIDmode operand.  Add compile-time optimization for constant results.
3688
3689 2002-03-12  Jason Merrill  <jason@redhat.com>
3690
3691         * c-typeck.c (convert_for_assignment): Don't allow conversions
3692         between pointers and references.  Only allow lvalues to convert to
3693         reference.
3694
3695 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3696
3697         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3698         before prologue, to avoid scheduling problems.
3699
3700 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3701
3702         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3703         (ELIMINABLE_REGS): Add sfp->sp.
3704         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3705
3706 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3707
3708         PR optimization/5892
3709         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3710
3711 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3712
3713         * loop.c (basic_induction_var): Don't call convert_modes if mode
3714         classes are different.
3715
3716 2002-03-12  Richard Henderson  <rth@redhat.com>
3717
3718         PR optimization/5901
3719         * function.c (reposition_prologue_and_epilogue_notes): Position
3720         the markers after/before the last/first insn not deleted.
3721
3722 2002-03-12  Richard Henderson  <rth@redhat.com>
3723
3724         PR optimization/5878
3725         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3726         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3727         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3728
3729         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3730         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3731         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3732
3733         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3734         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3735         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3736         also.  Don't set it if not flag_pic.
3737         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3738         to be INVALID_REGNUM when not used.
3739
3740 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3741
3742         * expmed.c (store_bit_field): Reset alias set for memory.
3743         (extract_bit_field): Same.
3744
3745 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3746
3747         * c-common.c (c_tree_code_type, c_tree_code_length,
3748         c_tree_code_name, add_c_tree_codes): Delete.
3749         * c-common.h (add_c_tree_codes): Delete.
3750         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3751         Define.
3752         * c-objc-common.c (c_objc_common_init): Don't call
3753         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3754         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3755         objc_tree_code_name, add_objc_tree_codes): Delete.
3756         (objc_init): Don't call add_objc_tree_codes.
3757         * objc/objc-lang.c (tree_code_type, tree_code_length,
3758         tree_code_name): Define.
3759         * toplev.c (lang_independent_init): Don't set
3760         tree_code_length[IDENTIFIER_NODE].
3761         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3762         Delete definitions, moved to language front-ends.
3763         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3764         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3765         Const-ify.
3766         (tree_code_length): Change type to unsigned char.
3767
3768 2002-03-12  Richard Henderson  <rth@redhat.com>
3769
3770         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3771         internal visibility change.
3772
3773 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3774
3775         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3776         validize_mem() instead of change_address to avoid clobbering
3777         memory attributes.
3778
3779 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3780
3781         * c-lex.h (position_after_whitespace): Remove.
3782
3783 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3784
3785         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3786         (lex_string): Use unsigned char pointers.
3787
3788 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3789
3790         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3791         is not a valid memory_operand.
3792
3793 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3794
3795         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3796         * config/xtensa/lib1funcs.asm: Fix copyright to include
3797         special case for libgcc files.
3798         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3799         (__divsi3): Likewise.
3800         (__umodsi3): Likewise.
3801         (__modsi3): Likewise.
3802         * config/xtensa/lib2funcs.S: Fix copyright to include
3803         special case for libgcc files.
3804
3805 2002-03-12  Tom Rix  <trix@redhat.com>
3806
3807         * collect2.c (resolve_lib_name): Move outside of
3808         OBJECT_FORMAT_COFF ifdef.
3809         (ignore_library): Same.
3810
3811 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3812
3813         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3814
3815 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3816
3817         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3818         to function_section before writing out the constant pool.
3819
3820 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3821
3822         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3823         zero_constant.
3824         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3825
3826 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3827
3828         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3829         (adddi3): Likewise.
3830         (movdf): Likewise.
3831         (movdi): Likewise.
3832         (cmpsi splitter): Likewise.
3833         (modsi3): Fail if <= 0.
3834         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3835         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3836         (reg_or_sub_cint64_operand): Likewise.
3837         (num_insns_constant_wide): Optimize sign extension.
3838         (rs6000_legitimize_address): Likewise.
3839
3840 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3841
3842         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3843         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3844
3845 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3846
3847         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3848         address calculation.
3849
3850 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3851
3852         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3853         scratch register to DImode / TImode.
3854         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3855         register used does not overlap the target.
3856
3857 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3858
3859         * Makefile.in (debug.o): Depend on debug.h.
3860         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3861         * debug.c (do_nothing_debug_hooks): Likewise.
3862         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3863         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3864         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3865         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3866         * dwarfout.c (dwarf_debug_hooks): Likewise.
3867         * integrate.c (output_inline_function): Likewise.
3868         * objc/objc-act.c (synth_module_prologue): Likewise.
3869         * sdbout.c (sdb_debug_hooks): Likewise.
3870         * toplev.c (debug_hooks): Likewise.
3871         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3872
3873 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3874
3875         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3876         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3877         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3878         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3879         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3880         * defaults.h (POINTER_SIZE): Define.
3881         * doc/tm.texi (POINTER_SIZE): Document default.
3882
3883 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3884
3885         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3886
3887 2002-03-11  Richard Henderson  <rth@redhat.com>
3888
3889         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3890         if rebuild_label_notes_after_reload.
3891
3892 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3893
3894         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3895         emit pic register load if "internal" visibility.
3896         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3897         (cris_expand_builtin_va_arg): Do all computations on trees.
3898
3899 2002-03-11  Richard Henderson  <rth@redhat.com>
3900
3901         * rtlanal.c: Include recog.h.
3902         (keep_with_call_p): Fix thinko.
3903         * Makefile.in (rtlanal.o): Update dependencies.
3904
3905 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3906
3907         * genflags.c (gen_insn): Use IS_VSPACE.
3908         * genoutput.c (output_insn_data): Likewise.
3909         (process_template): Likewise.
3910
3911 2002-03-11  Richard Henderson  <rth@redhat.com>
3912
3913         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3914
3915 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3916
3917         * Makefile.in: Update.
3918         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3919         Update documentation.
3920         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3921         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3922
3923 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
3924
3925         * Makefile.in: Give texi2pod its input file as a command line
3926         argument, not on stdin.
3927
3928 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
3929             Daniel Berlin  <dan@dberlin.org>
3930
3931         C++ alias analysis improvement.
3932         * alias.c (record_component_aliases): Record aliases for base
3933         classes too.
3934
3935 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
3936
3937         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3938
3939 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3940
3941         * toplev.c (vms_fopen): Remove, not needed.
3942
3943         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3944
3945         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3946
3947         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3948         for FP, already done later.
3949
3950         * toplev.c (debug_args): Add entry for VMS_DEBUG.
3951         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3952
3953 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
3954
3955         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3956         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3957         LARGEST_EXPONENT_IS_NORMAL for the given mode.
3958         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3959         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3960         (ediv, emul, eldexp, esqrt): Likewise.
3961         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3962         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3963         (saturate): New function.
3964         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3965         (make_nan): Use a saturation value instead of a NaN if
3966         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
3967         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3968         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
3969         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
3970         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3971         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3972         !ROUND_TOWARDS_ZERO.
3973         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3974         (ROUND_TOWARDS_ZERO): Document.
3975
3976 2002-03-11  Andreas Jaeger  <aj@suse.de>
3977
3978         * cfg.c (dump_flow_info): Remove unused variable.
3979
3980 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
3981
3982         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3983         computations on trees.
3984
3985 2002-03-10  Richard Henderson  <rth@redhat.com>
3986
3987         PR 5693:
3988         * reload.c (copy_replacements_1): New.
3989         (copy_replacements): Use it to recurse through the rtx.
3990
3991 2002-03-10  Richard Henderson  <rth@redhat.com>
3992
3993         * loop.c (strength_reduce): Compute number of iterations as
3994         unsigned HOST_WIDE_INT.
3995
3996 2002-03-10  Richard Henderson  <rth@redhat.com>
3997
3998         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3999         to move away from the end of the block.
4000
4001 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4002
4003         PR preprocessor/5899
4004         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4005
4006 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4007
4008         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4009
4010         * attribs.c (decl_attributes): Fix signed/unsigned warning.
4011
4012 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
4013
4014         * config/mmix/mmix.c: Improve comments.
4015         (mmix_target_asm_function_prologue): Drop variable
4016         empty_stack_frame.  Don't allocate unused slot above fp.
4017         (mmix_target_asm_function_epilogue): Mirror prologue changes.
4018         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4019         brace in first column.
4020         (enum reg_class): Ditto.
4021         (FIRST_PARM_OFFSET): Now 0.
4022         (USER_LABEL_PREFIX): Remove #if 0:d definition.
4023
4024 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4025
4026         * combine.c (make_extraction): Fix error in last change.
4027
4028 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4029
4030         * c4x.c (c4x_fp_reglist): Const-ify.
4031         * cris.c (cris_print_operand): Likewise.
4032         * i386.c (ix86_va_arg): Likewise.
4033         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4034         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4035         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4036         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4037         * mcore.h (regno_reg_class): Likewise.
4038         * mips.c (gen_int_relational): Likewise.
4039         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4040         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4041         * pdp11.c (move_costs): Likewise.
4042         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4043         * s390.c (s390_branch_condition_mnemonic, regclass_map):
4044         Likewise.
4045         * s390.h (regclass_map): Likewise.
4046         * sh.c (shift_amounts): Likewise.
4047         * sh.md (rotlsi3): Likewise.
4048
4049 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4050
4051         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4052         (ne0+5): Use new clobber to generate proper shift pattern.
4053         Patch by Michael Matz <matz@kde.org>.
4054
4055 2002-03-09  Andreas Schwab  <schwab@suse.de>
4056
4057         * gcc.c (validate_all_switches): Also handle `%W{...}'.
4058
4059 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4060
4061         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4062
4063 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
4064
4065         PR middle-end/5877
4066         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4067         even for non-representable constants.
4068
4069 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4070
4071         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4072         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4073         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4074         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4075         (pop_function_context): Compute MAY_SHARE parameter for
4076         fixup_var_refs.
4077         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4078         (gen_mem_addressof): Call fixup_var_refs with new parm.
4079
4080         * combine.c (make_extraction): Don't make extension of CONST_INT.
4081
4082 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4083
4084         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4085         in o32 and o64 ABIs.
4086         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4087         but getting fixed-size structs passed in registers regardless of
4088         padding in o32 and o64 ABIs.
4089
4090         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4091         offset before loading address of argument passed by transparent
4092         reference.
4093
4094 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4095
4096         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4097
4098 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4099
4100         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4101         marker such that registers after it are saved.
4102
4103 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4104
4105         * sparc.c (arith_4096_operand): Fix error in last change.
4106
4107 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4108
4109         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4110         defaults for MEABI.
4111
4112 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4113
4114         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4115         vectors.
4116
4117 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4118
4119         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4120
4121 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4122
4123         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4124         removed; fix return value.
4125         * combine.c (combine_instructions): Dirtify blocks where we failed to
4126         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4127         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4128
4129 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4130
4131         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4132
4133 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4134
4135         * recog.c (peephole2_optimize): Re-distribute EH edges.
4136
4137 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4138
4139         * expr.c (expand_expr): Use unsave lang hook.
4140         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4141         (LANG_HOOKS_INITIALIZER): Update.
4142         * langhooks.h (struct lang_hooks): New hook unsave.
4143         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4144         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4145         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4146         (unsave_expr_now): Remove.
4147         * tree.h (unsave_expr_now, lang_unsave,
4148         lang_unsave_expr_now): Remove.
4149         (lhd_unsave): New.
4150
4151 2002-03-08  Andreas Jaeger  <aj@suse.de>
4152
4153         * flow.c (propagate_block_delete_insn): Remove unused variable.
4154
4155 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4156
4157         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4158         insn length for memory load/store.
4159
4160 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4161
4162         * doc/install.texi (--with-libiconv-prefix): Document.
4163
4164 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4165
4166         * doc/sourcebuild.texi: Fix typo.
4167
4168 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4169
4170         PR c/3711
4171         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4172         trees.
4173
4174 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4175
4176         * rtl.c (copy_most_rtx): Move from here ...
4177         * emit-rtl.c (copy_most_rtx): ... to here.
4178
4179 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4180
4181         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4182         SUBTARGET_CPP_SIZE_SPEC.
4183         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4184
4185         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4186
4187 2002-03-07  Matt Hiller  <hiller@redhat.com>
4188
4189         * gensupport.c (first_dir_md_include): Renamed from include;
4190         change all references.
4191         (last_dir_md_include): Renamed from last_include; change all
4192         references.
4193         (init_md_reader): Unconditionally initialize base_dir whether or
4194         not filename is a relative path.
4195
4196 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4197
4198         * config/fp-bit.c (_unord_f2): Compile it in even if
4199         US_SOFTWARE_GOFAST is enabled.
4200
4201         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4202         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4203         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4204         NULL_RTX, try reversing the comparison and the operands.
4205
4206 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4207
4208         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4209         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4210         and MATCH_OP_DUP.
4211
4212 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4213
4214         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4215
4216 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4217
4218         * basic-block.h (fixup_abnormal_edges): Declare.
4219         * reload1.c (fixup_abnormal_edges): New function.
4220         * reg-stack.c (convert_regs): Use it.
4221
4222         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4223
4224         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4225
4226 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4227
4228         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4229         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4230         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4231         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4232         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4233         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4234         unless x and y could be infinite.
4235         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4236         Check that the common type of both arguments is a real, even for
4237         targets without unordered comparisons.  Allow an integer argument
4238         to be compared against a real.
4239         (expand_tree_builtin): Use expand_unordered_cmp.
4240         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4241         * cse.c (fold_rtx): Likewise.  Fix indentation.
4242         * fold-const.c (fold_real_zero_addition_p): New.
4243         (fold): Use it, and the new HONOR_... macros.
4244         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4245         * jump.c (reversed_comparison_code_parts): After searching for
4246         the true comparison mode, use HONOR_NANS to decide whether it
4247         can be safely reversed.
4248         (reverse_condition_maybe_unordered): Remove IEEE check.
4249         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4250         to decide which simplifications are valid.  Allow the following
4251         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4252         and (a - -b) to (a + b).
4253         (simplify_relational_operation): Use HONOR_NANS.
4254         * doc/tm.texi: Document the MODE_HAS_... macros.
4255
4256 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4257
4258         * combine.c (simplify_comparison): If simplifying a logical shift
4259         right and compare with constant, force the comparison to unsigned.
4260
4261 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4262
4263         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4264
4265         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4266         -mabi=no-altivec
4267         (alt_reg_names): Remove % for vrsave.
4268
4269 2002-03-06  Richard Henderson  <rth@redhat.com>
4270
4271         PR optimization/5844
4272         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4273         if used indicates we've already emitted one copy of an operand.
4274         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4275         (gen_split): Supply a non-null used.
4276
4277 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4278
4279         * reload1.c (reload): Unshare all rtl after reload is done.
4280
4281         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4282         but simply fail if the expression is too complex to simplify.
4283         (simplify_gen_binary): Handle simplify_plus_minus failures.
4284
4285 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4286
4287         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4288         consistently call delete_trivially_dead_insns after CSE and GCSE;
4289         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4290         after liveness2; update comment in last crossjumping.
4291         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4292
4293 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4294
4295         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4296         after completing fast dead code elimination.
4297
4298         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4299         COMPARE operator.
4300
4301 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4302
4303         * version.c:  Fix misplaced leading blanks on first line.
4304
4305 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4306
4307         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4308
4309 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4310
4311         * cfgcleanup.c (mentions_nonequal_regs): New function.
4312         (thread_jump): Use it.
4313         * toplev.c (rest_of_compilation): Run jump threading after
4314         liveness.
4315
4316 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4317
4318         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4319         patch.
4320
4321 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4322
4323         * predict.c (estimate_bb_frequencies): Do not reload the
4324         frequencies from notes.
4325
4326 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4327
4328         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4329         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4330
4331         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4332         delete_noop_moves): Return indeger.
4333         * flow.c (ndead): New variable.
4334         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4335         BB argument; update callers.
4336         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4337         (life_analysis): Do not call purge_all_dead_edges.
4338         (update_life_info): Return number of deleted insns; print statistics.
4339         (update_life_info_in_dirty_blocks): likewise.
4340         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4341         return number of insns deleted.
4342
4343         * cse.c: Include timevar.h
4344         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4345         iterate until stabilizes; print statistics; return number of killed
4346         insns.
4347         * Makefile.in: (cse.o): Add timevar.h dependency
4348         * rtl.h (delete_trivially_dead_insns): New.
4349         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4350         * toplev.c (rest_of_compilation): Update callers.
4351
4352         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4353         (try_optimize_cfg): Do not update liveness.
4354         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4355         removal stabilizes; use delete_trivially_dead_insns.
4356
4357         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4358
4359 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4360
4361         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4362         callbacks when processing assembly language.
4363
4364 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4365
4366         * pa.h (ASM_FILE_END): Define.
4367         * som.h (ASM_FILE_END): Delete.
4368
4369         * pa.c (function_arg): Don't pass floats in general registers in
4370         indirect calls if TARGET_ELF32.
4371
4372 2002-03-05  Richard Henderson  <rth@redhat.com>
4373
4374         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4375
4376 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4377
4378         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4379
4380 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4381
4382         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4383         -r command line.  Don't hide any symbols if not building
4384         shared libgcc.
4385
4386 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4387
4388         * cfg.c (dump_flow_info): Warn about profile mismatches.
4389         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4390         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4391
4392 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4393
4394         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4395         wide volatile memory by parts.
4396
4397 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4398
4399         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4400         is NULL.
4401
4402 2002-03-05  Richard Henderson  <rth@redhat.com>
4403
4404         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4405
4406 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4407
4408         * toplev.c (documented_lang_options): Document more
4409         language-specific options.
4410         * doc/invoke.texi (Warning Options): Correct documentation for
4411         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4412         * c-decl.c (c_decode_option): Use a table to handle warning options.
4413
4414 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4415
4416         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4417         parameter to mmix_encode_section_info.
4418         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4419         relocatably.  Always produce ELF, not mmo if linking relocatably.
4420         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4421         first is non-zero, don't add symbol prefix.
4422         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4423         prototype accordingly.
4424
4425 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4426
4427         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4428
4429 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4430
4431         * configure.in: Increase required makeinfo version to 4.1.
4432         * configure: Regenerate.
4433
4434 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4435
4436         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4437         elsewhere now.
4438
4439 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4440
4441         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4442         * doc/invoke.texi: Fix @math uses.
4443
4444 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4445
4446         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4447         removal
4448
4449 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4450
4451         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4452         (powerpc-*-eabisimaltivec*): Same.
4453
4454         * config/rs6000/t-ppcendian: New.
4455
4456 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4457
4458         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4459         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4460         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4461
4462 2002-03-03  Richard Henderson  <rth@redhat.com>
4463
4464         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4465
4466 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4467
4468         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4469         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4470         tree.c, config/m68k/m68k.c:
4471         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4472         REAL_ARITHMETIC blocks unconditional.  Delete some further
4473         #ifdef blocks predicated on REAL_ARITHMETIC.
4474         * flags.h, toplev.c: Delete remaining references to
4475         flag_pretend_float.
4476
4477         * doc/invoke.texi: Remove documentation of -fpretend-float.
4478         * doc/tm.texi: Describe the various REAL_* macros as provided by
4479         real.h, not by the target configuration files.
4480
4481         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4482         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4483         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4484         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4485         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4486         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4487         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4488         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4489         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4490         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4491         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4492         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4493         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4494         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4495         config/xtensa/xtensa.h:
4496         Do not define, undefine, or mention in comments any of
4497         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4498         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4499         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4500         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4501         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4502         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4503         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4504         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4505         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4506
4507 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4508
4509         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4510         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4511         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4512         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4513         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4514         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4515         Delete.
4516         * defaults.h (BITS_PER_WORD): Define.
4517         * doc/tm.texi (BITS_PER_WORD): Document default value.
4518
4519         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4520         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4521         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4522
4523 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4524
4525         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4526         lieu of explicit sizeof/sizeof.
4527         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4528         ix86_expand_builtin): Likewise.
4529         * mips.c (mips_add_gc_roots): Likewise.
4530         * mmix.c (mmix_output_condition): Likewise.
4531         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4532         altivec_init_builtins): Likewise.
4533         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4534         * cppexp.c (Nsuff, parse_number): Likewise.
4535         * cppinit.c (builtin_array_end): Likewise.
4536         * gcc.c (n_default_compilers, process_command): Likewise.
4537         * genpreds.c (output_predicate_decls): Likewise.
4538         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4539         * lcm.c (N_ENTITIES): Likewise.
4540         * stor-layout.c (set_sizetype): Likewise.
4541
4542 2002-03-03  Richard Henderson  <rth@redhat.com>
4543
4544         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4545         for types or labels.
4546
4547 2002-03-03  Richard Henderson  <rth@redhat.com>
4548
4549         * c-decl.c (start_decl): Initialized variables are not common.
4550
4551 2002-03-02  Per Bothner  <per@bothner.com>
4552
4553         * gcc.c (option_map):  Suport new --bootclasspath option.
4554         --CLASSPATH is now just an alias for --classpath.
4555
4556 2002-03-02  Richard Henderson  <rth@redhat.com>
4557
4558         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4559         load if "internal" visibility.
4560         * doc/extend.texi: Document visibility meanings.
4561
4562 2002-03-02  Richard Henderson  <rth@redhat.com>
4563
4564         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4565         to functions as well.
4566
4567 2002-03-02  Richard Henderson  <rth@redhat.com>
4568
4569         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4570         (handle_visibility_attribute): Don't call assemble_visibility.
4571         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4572         without asmspec.  Invoke assemble_alias when needed.
4573         * varasm.c (maybe_assemble_visibility): New.
4574         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4575
4576 2002-03-02  Richard Henderson  <rth@redhat.com>
4577
4578         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4579         invoke ENCODE_SECTION_INFO with first call flag.
4580
4581         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4582         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4583         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4584         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4585         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4586         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4587         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4588         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4589         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4590         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4591         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4592         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4593         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4594         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4595         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4596         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4597         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4598         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4599         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4600         config/sh/sh.h, config/sparc/sparc.h,
4601         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4602         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4603         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4604         FIRST argument.  As needed, examine it and do nothing.
4605
4606         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4607         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4608         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4609
4610         * config/arm/t-pe (pe.o): Add dependencies.
4611
4612 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4613
4614         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4615         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4616         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4617         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4618         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4619         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4620         * defaults.h (BITS_PER_UNIT): Define.
4621         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4622
4623 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4624
4625         * config/h8300/h8300-protos.h: Add a prototype for
4626         compute_a_shift_length.
4627         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4628         (compute_a_shift_length): Likewise.
4629         (h8300_adjust_insn_length): Do not adjust insn length of shift
4630         insns.
4631         * config/h8300/h8300.md (anonymous shift patterns): Use
4632         compute_a_shift_length.
4633
4634 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4635
4636         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4637         trunc_int_for_mode.
4638
4639         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4640
4641 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4642
4643         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4644         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4645         * flags.h (flag_zero_initialized_in_bss): Declare.
4646         * toplev.c (flag_zero_initialized_in_bss): New flag.
4647         (lang_independent_options): Add flag_zero_initialized_in_bss.
4648         * tree.c (initializer_zerop): New function.
4649         * tree.h (initializer_zerop): Declare.
4650         * varasm.c (assemble_variable): If we can emit bss, put zero
4651         initializers in the bss section.
4652
4653 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4654
4655         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4656         like more than one symbol per .weak directive.
4657
4658 2002-03-01  Richard Henderson  <rth@redhat.com>
4659
4660         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4661         adjust argument_pointer by pretend_args_size.
4662         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4663
4664 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4665
4666         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4667
4668 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4669
4670         * toplev.c (rest_of_compilation): Delete dead jumptables before
4671         loop.
4672         * flow.c (delete_dead_jumptables): Make global.
4673         * rtl.h (delete_dead_jumptables): Declare.
4674
4675 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4676
4677         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4678         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4679         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4680
4681 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4682
4683         * config/h8300/h8300-protos.h: Fix formatting.
4684         * config/h8300/h8300.c: Likewise.
4685         * config/h8300/h8300.h: Likewise.
4686
4687 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4688
4689         * config/h8300/h8300.c (print_operand): Support 16-bit
4690         constant addresses.
4691         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4692
4693 2002-02-28  Richard Henderson  <rth@redhat.com>
4694
4695         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4696         pun complex values as integers; use gen_lowpart instead of
4697         gen_rtx_SUBREG.
4698         (extract_bit_field): Likewise.
4699
4700 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4701             David Edelsohn  <edelsohn@gnu.org>
4702
4703         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4704         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4705         (SUPPORTS_WEAK): Likewise.
4706         * output.h (add_weak): Add tree param.
4707         * varasm.c (add_weak): Likewise.  Save decl.
4708         (struct weak_syms): Add decl field.
4709         (mark_weak_decls): New function.
4710         (init_varasm_once): ggc_add_root mark_weak_decls.
4711         (assemble_start_function): Use ASM_WEAKEN_DECL.
4712         (assemble_variable): Likewise.
4713         (assemble_alias): Likewise.
4714         (declare_weak): Pass decl to add_weak.
4715         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4716         (remove_from_pending_weak_list): Declare and define for
4717         ASM_WEAKEN_DECL.
4718         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4719         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4720         * defaults.h (SUPPORTS_WEAK): Likewise.
4721         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4722         .weak for code sym.  Do emit .size for descriptor sym.
4723         (ASM_DECLARE_FUNCTION_SIZE): Define.
4724         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4725         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4726         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4727         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4728         .weak for code sym.
4729         (HANDLE_PRAGMA_WEAK): Remove.
4730         (ASM_WEAKEN_LABEL): Remove.
4731         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4732
4733 2002-03-01  Jason Merrill  <jason@redhat.com>
4734
4735         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4736         (TARGET_EXPR_CLEANUP): New macro.
4737
4738 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4739
4740         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4741         to take ptr_extend into account as third type of extension.
4742         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4743         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4744         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4745         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4746         * calls.c (precompute_arguments): Use new macro.
4747         (expand_call): Ditto.
4748         * combine.c (nonzero_bits): Ditto.
4749         (record_promoted_value): Ditto.
4750         * expr.c (store_expr): Ditto.
4751         (expand_expr): Ditto.
4752         * function.c (assign_parms): Ditto.
4753
4754 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4755
4756         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4757         override -shared and -shared-libgcc.
4758
4759 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4760
4761         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4762         of "ultrasparc".
4763         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4764         to be broken.
4765
4766 2002-02-28  Richard Henderson  <rth@redhat.com>
4767
4768         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4769         4 cycle latency from MM producers.
4770         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4771
4772 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4773
4774         * mklibgcc.in: Don't use GNU make extension.
4775
4776 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4777
4778         * c-parse.in (STATIC): New terminal.
4779         (scspec): New non-terminal.  Update productions accordingly.
4780         (program): Remove bogus ifc / end ifc.
4781         (array_declarator): Simplify production using STATIC.
4782
4783 2002-02-28  Jim Meyering  <meyering@lucent.com>
4784
4785         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4786         \a still means TARGET_BELL.
4787
4788 2002-02-28  Richard Henderson  <rth@redhat.com>
4789
4790         * haifa-sched.c (sched_emit_insn): New.
4791         (schedule_block): Use last_scheduled_insn to track last insn.
4792         * sched-int.h (sched_emit_insn): Prototype.
4793         * config/ia64/ia64.c (last_issued): Remove.
4794         (ia64_variable_issue): Don't set it.
4795         (nop_cycles_until): Use sched_emit_insn.
4796
4797 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4798
4799         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4800         extended constants.
4801
4802 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4803
4804         * config/h8300/h8300.c: Fix formatting.
4805         * config/h8300/h8300.h: Likewise.
4806
4807 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4808
4809         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4810         which may overwrite the high byte of the frame pointer.
4811
4812 2002-02-28  Bo Thorsen  <bo@suse.de>
4813
4814         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4815         (STARTFILE_SPEC): Add 64 bit files.
4816         (ENDFILE_SPEC): Likewise.
4817
4818 2002-02-28  Jason Merrill  <jason@redhat.com>
4819
4820         * c-decl.c (finish_function): Only warn about missing return
4821         statement with -Wreturn-type.
4822
4823 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4824
4825         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4826
4827         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4828         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4829
4830 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4831
4832         * basic-block.h (BB_REACHABLE): Renumber.
4833         (BB_DIRTY, BB_NEW): New flags.
4834         (clear_bb_flags): Declare.
4835         (update_life_info_in_dirty_blocks): Declare.
4836         * cfg.c (clear_bb_flags): New function.
4837         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4838         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4839         reorder_insns, emit_insn_after): Mark block as dirty.
4840         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4841         (update_life_info_in_dirty_blocks): New function.
4842         * recog.c (apply_change_group): Dirtify block.
4843
4844         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4845         cfg consistent.
4846         * gcse.c (delete_null_pointer_checks): Likewise.
4847
4848         * toplev.c (dump_file_index): Move cse2 after bp,
4849         add DFI_null
4850         (dump_file_info): Similary.
4851         (rest_of_compilation): Avoid most of CFG rebuilds;
4852         do first if converision after null pointer checks, do cse2
4853         after branch prediction; avoid full liveness rebuild after
4854         initializing subregs.
4855         * invoke.texi (-d options): Document -du, renumber.
4856
4857         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4858         (notice_new_block): Do not set BB_UPDATE_LIFE.
4859         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4860          merge_blocks_move_successor_nojumps, merge_blocks,
4861          try_crossjump_to_edge): Likewise.
4862         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4863         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4864         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4865         (merge_of_block): Do not use life_data_ok.
4866         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4867         (if_convert): Use BB_DIRTY mechanizm to update life.
4868         * lcm.c (optimize_mode_switching): Update
4869         update_life_info_in_dirty_blocks
4870
4871 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4872
4873         * Makefile.in (integrate.o): Update.
4874         * c-decl.c (copy_lang_decl): Rename.
4875         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4876         * integrate.c: Include langhooks.h.
4877         (copy_decl_for_inlining): Update to use langhook.
4878         * langhooks-def.h (lhd_do_nothing_t,
4879         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4880         (LANG_HOOKS_INITIALIZER): Update.
4881         * langhooks.c (lhd_do_nothing_t): New.
4882         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4883         * tree.h (copy_lang_decl): Remove.
4884 objc:
4885         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4886
4887 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4888
4889         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4890         POST_DEC, and POST_MODIFY.
4891
4892 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4893
4894         * c-typeck.c (digest_init): Remove unused parameter; all
4895         callers changed.
4896
4897 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4898
4899         * expmed.c (expand_shift): Correctly test for low part of a
4900         subreg.
4901
4902 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4903
4904         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4905         insn UIDs with insn addresses.
4906
4907 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4908
4909         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4910         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4911         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4912         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4913         gcc.c, toplev.c: Delete code implementing -traditional mode.
4914
4915         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4916         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4917         Document removal of -traditional mode for compilation, and
4918         remove documentation only relevant to that mode.
4919
4920         * config/nextstep.h, config/ptx4.h, config/svr4.h,
4921         config/convex/convex.h, config/d30v/d30v.h,
4922         config/i386/dgux.h, config/i386/osf1elf.h,
4923         config/i386/osfelf.h, config/i386/osfrose.h,
4924         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4925         config/m68k/hp310.h, config/m88k/dgux.h,
4926         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4927         config/m88k/m88k.h, config/m88k/openbsd.h,
4928         config/mips/abi64.h, config/mips/osfrose.h,
4929         config/mips/svr4-5.h, config/mips/svr4-t.h,
4930         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4931         config/stormy16/stormy16.h: Remove all references to
4932         -traditional from target specs.  Delete all mention of the
4933         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
4934         delete a couple of commented-out definitions of
4935         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4936         to -traditional.
4937
4938         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4939         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4940
4941 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4942
4943         * mklibgcc.in: Don't use \n in a line subject to
4944         interpretation by echo.
4945
4946 2002-02-27  Graham Stott  <grahams@redhat.com>
4947
4948         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4949         Constify NAME.
4950
4951         * loop.c (prescan_loop): Handle PARALLEL.
4952
4953         * unroll.c (loop_iterations): Return 0 if the add_val for
4954         a BIV is REG.
4955
4956         * final.c (output_operand_lossage): Constify PFX_STR.
4957
4958         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4959
4960 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4961
4962         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4963         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4964
4965 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
4966
4967         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4968
4969 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4970
4971         * cpplex.c (_cpp_lex_token): Handle directives in macro
4972         arguments.
4973         * cpplib.c (_cpp_handle_directive): Save and restore state
4974         if parsing macro args when entering a directive.
4975         * cppmacro.c (collect_args): No need to handle directives
4976         in macro arguments.
4977         (enter_macro_context, replace_args): Use the original macro
4978         definition in case it was redefined whilst collecting arguments.
4979 doc:
4980         * cpp.texi: Update.
4981
4982 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
4983
4984         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4985         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4986         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4987         method on AIX.
4988         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4989         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4990         (load_toc_v4_PIC_2): Same.
4991
4992 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
4993
4994         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4995
4996 2002-02-26  Richard Henderson  <rth@redhat.com>
4997
4998         * config/alpha/alpha.md (ashldi_se): Re-enable.
4999
5000 2002-02-26  Richard Henderson  <rth@redhat.com>
5001
5002         * config/alpha/alpha.c (alpha_encode_section_info): Examine
5003         MODULE_LOCAL_P; improve commentary.
5004
5005 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
5006
5007         * doc/cpp.texi: Clarify documentation of relationship between
5008         #line and #include.
5009
5010 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5011
5012         * config/h8300/h8300-protos.h: Update the prototype for
5013         compute_logical_op_length.  Add the prototype for
5014         compute_logical_op_cc.
5015         * config/h8300/h8300.c (compute_logical_op_length): Figure out
5016         code from operands.
5017         (compute_logical_op_cc): New.
5018         * config/h8300/h8300.md: Combine all the logical op patterns
5019         in HImode and SImode.  Use compute_logical_op_cc.
5020
5021 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
5022
5023         * config/i386/i386.c (print_operand): Don't append ATT-style
5024         length suffixs to x87 opcodes when in Intel mode.
5025
5026 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
5027
5028         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5029         (init_emit_once): Update calls.
5030         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5031         (init_syntax_once): Prototype.
5032
5033 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5034
5035         * pa-linux.h (LIB_SPEC): Update definition.
5036         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5037
5038 2002-02-26  Richard Henderson  <rth@redhat.com>
5039
5040         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5041         if we emitted a stop bit.
5042
5043 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5044
5045         * configure.in (libgcc_visibility): Substitute.
5046         * configure: Rebuilt.
5047         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5048         defined symbols .hidden.
5049
5050 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5051
5052         * attribs.c (c_common_attribute_table): Add visibility.
5053         (handle_visibility_attribute): New function.
5054         * varasm.c (assemble_visibility): New function.
5055         * output.h (assemble_visibility): Add prototype.
5056         * tree.h (MODULE_LOCAL_P): Define.
5057         * crtstuff.c (__dso_handle): Use visibility attribute.
5058         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5059         for MODULE_LOCAL_P symbols too.
5060         * config/ia64/ia64.c (ia64_encode_section_info): Handle
5061         MODULE_LOCAL_P symbols the same way as local symbols.
5062         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5063         into .sdata/.sbss by the user.
5064         * doc/extend.texi (Function Attributes): Document visibility
5065         attribute.
5066
5067 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5068
5069         PR debug/5770
5070         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5071         STRING_CST initializer spanning the whole variable without
5072         embedded zeros.
5073         If expand_expr returned MEM, don't use it.
5074
5075 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5076
5077         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5078         generate a die for the lexical block.
5079
5080 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5081
5082         * config/h8300/h8300-protos.h: Add a prototype for
5083         compute_logical_op_length.
5084         * config/h8300/h8300.c (compute_logical_op_length): New.
5085         * config/h8300/h8300.md (anonymous logical patterns): Use
5086         compute_logical_op_length for length.
5087
5088 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5089
5090         * dwarf2out.c (modified_type_die): Do not call type_main_variant
5091         for vectors.
5092         (gen_type_die): Same.
5093
5094         * attribs.c (handle_vector_size_attribute): Set debug information.
5095
5096 2002-02-26  Daniel Egger  <degger@fhm.edu>
5097
5098         * config/rs6000/rs6000.md: Swap define_insn attributes to
5099         fix incorrect generation of merge high instructions instead
5100         of merge low.
5101
5102 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5103
5104         * c-typeck.c (really_start_incremental_init): Use
5105         bitsize_zero_node for vectors.
5106
5107 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5108
5109         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5110         ("*set_vrsave_internal"): Same.
5111
5112 2002-02-25  Richard Henderson  <rth@redhat.com>
5113
5114         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5115         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5116
5117 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5118
5119         PR target/5755
5120         * config/i386/i386.c (ix86_return_pops_args): Only pop
5121         fake structure return argument if it was passed on the stack.
5122
5123 2002-02-25  Jason Merrill  <jason@redhat.com>
5124
5125         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5126         RESULT_DECL.
5127
5128 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5129
5130         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5131         link with shared_name only.
5132         * doc/invoke.texi (Link Options): Document new behavior.
5133
5134 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5135
5136         * c-typeck.c (push_init_level): Handle vectors.
5137
5138 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5139
5140         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5141         operands of SPARC_SETHI_P.
5142         (input_operand): Likewise.
5143         (sparc_emit_set_const32): Likewise.
5144         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5145         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5146         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5147         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5148         (movdi_insn_sp64_vis): Likewise.
5149         (movdi split, movdf split): Use SETHI32.
5150         * doc/md.texi: Document SPARC constraints L, M and N.
5151
5152 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5153
5154         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5155         ("*set_vrsave_internal"): use mfspr for Darwin.
5156
5157         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5158         gen_get_vrsave_internal.
5159
5160 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5161
5162         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5163
5164 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5165
5166         * cpplex.c (cpp_interpret_charconst): Get signedness or
5167         otherwise of wide character constants correct.
5168         * cppexp.c (lex): Get signedness of wide charconsts correct.
5169
5170 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5171
5172         * optabs.c (widen_operand): Only call convert_modes for
5173         promoted SUBREG if signedness matches.
5174         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5175
5176 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5177
5178         * cpplib.c (glue_header_name): Use local buffer to build up
5179         header name.
5180
5181 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5182
5183         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5184
5185 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5186
5187         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5188         H8/300[HS] separately.
5189         * config/h8300/h8300.md: Remove the early clobber constraint
5190         from bit field patterns.
5191
5192 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5193
5194         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5195         register_operand.
5196         (mulhisi3): Likewise.
5197         (umulqisi3): Likewise.
5198         (umulhisi3): Likewise.
5199
5200 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5201
5202         * cppinit.c (output_deps): Correct test for stdout output.
5203         (init_dependency_output): Cure warning.
5204
5205 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5206
5207         * expr.c (store_expr): When converting expression to promoted
5208         equivalent type, allow using SUBREG_REG of TARGET as the target
5209         of the expansion of EXP.
5210         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5211         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5212         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5213         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5214         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5215
5216 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5217
5218         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5219         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5220         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5221
5222 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5223
5224         PR optimization/5747
5225         * loop.c (scan_loop): Update reg info if move_movables created new
5226         pseudos.
5227
5228 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5229
5230         * gcc.c (init_gcc_spec): Revert last change.
5231
5232 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5233
5234         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5235         gpc_reg_operand constraint.
5236
5237 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5238
5239         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5240         Simplify comparison of `low'.
5241         (add_operand): Fix formatting.
5242         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5243         (mask_operand): Disallow mask to wrap in 64-bit mode.
5244         (rs6000_stack_info): Remove redundant test setting push_p.
5245         (output_toc): Fix formatting.
5246         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5247         cc_reg_not_cr0_operand constraint.
5248         (booldi3, boolcdi3 splitters): Same.
5249
5250 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5251
5252         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5253
5254 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5255
5256         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5257         gcc invoked with -shared-libgcc.
5258
5259 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5260
5261         PR c++/5748
5262         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5263         decl if any of elements was TREE_USED.
5264
5265 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5266
5267         * config/sparc/sol2.h: Don't include sys/mman.h.
5268         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5269         (arith_4096_operand): Don't throw high bits away.
5270         (const64_operand): Take sign extension of CONST_INTs into account.
5271         (const64_high_operand, sparc_emit_set_const32): Likewise.
5272         (GEN_HIGHINT64): Likewise.
5273         (sparc_emit_set_const64_quick1): Likewise.
5274         (const64_is_2insns): Likewise.
5275         (print_operand): Use trunc_int_for_mode for sign extension.
5276         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5277         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5278         chars.  Assume CONST_INT is already properly sign-extended.
5279         (movdi split): Sign-extend each SImode part.
5280         (andsi3 split): Don't mask high bits off, so that result
5281         remains properly sign-extend.
5282         (iorsi3 split): Likewise.
5283         (xorsi3 split): Likewise.
5284
5285 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5286
5287         * fold-const.c (fold): Fix typo in comments.
5288
5289 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5290
5291         * Makefile.in (langhooks.o): Update dependencies.
5292
5293 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5294
5295         * langhooks.c: Include flags.h.
5296
5297 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5298
5299         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5300
5301         * c-common.c (c_common_post_options): Set inline trees by
5302         default.
5303
5304         * doc/extend.texi (Function Attributes): Document always_inline
5305         attribute.
5306         Update documentation about inlining when not optimizing.
5307
5308         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5309
5310         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5311         unless DECL_ALWAYS_INLINE.
5312
5313         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5314         unless DECL_ALWAYS_INLINE.
5315         (c_disregard_inline_limits): Disregard if always_inline set.
5316
5317         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5318         Disregard if always_inline set.
5319         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5320         unless DECL_ALWAYS_INLINE.
5321
5322         * attribs.c (handle_always_inline_attribute): New.
5323         (c_common_attribute_table): Add always_inline.
5324
5325         * config/rs6000/altivec.h: Add prototypes for builtins
5326         requiring the always_inline attribute.
5327
5328 2002-02-21  Eric Christopher  <echristo@redhat.com>
5329
5330         * expmed.c (store_bit_field): Try to simplify the subreg
5331         before generating a new one when when the mode size of
5332         value is less than maxmode.
5333
5334 2002-02-21  Richard Henderson  <rth@redhat.com>
5335
5336         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5337         than gen_rtx_PLUS to form the sum.
5338         * explow.c (force_reg): Rearrange to not allocate new pseudo
5339         when force_operand returns a register.
5340         * expr.c (expand_assignment): Allow offset_rtx expansion to
5341         return a sum.  Do not force addresses into registers.
5342         (expand_expr): Likewise.
5343         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5344         to canonicalize arithmetic that didn't simpify.
5345         (simplify_plus_minus): New argument force; update
5346         all callers.  Don't split CONST unless we can do something with it,
5347         and wouldn't lose the constness of the operands.
5348
5349         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5350         that we generated earlier.
5351
5352 2002-02-21  Tom Tromey  <tromey@redhat.com>
5353
5354         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5355         (output_line_info): Use constant `1', with a long explanatory
5356         comment.
5357         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5358
5359 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5360
5361         * jump.c (redirect_jump): If old label has no UID, don't try to
5362         delete it.
5363
5364 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5365
5366         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5367         If input is constant, do shifts at compile time.
5368
5369 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5370
5371         * doc/extend.texi: Fix some more overfull hboxes.
5372
5373 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5374
5375         PR optimization/4994
5376         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5377         register moves.
5378
5379 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5380
5381         PR c++/4574
5382         * expr.h (expand_and): Add mode argument.
5383         * expmed.c (expand_and): Add mode argument.
5384         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5385         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5386         * except.c (expand_builtin_extract_return_addr): Likewise.
5387         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5388         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5389         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5390         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5391         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5392         gen_rtx (CONST_INT, VOIDmode, x).
5393
5394 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5395
5396         PR c/4697:
5397         * stmt.c (warn_if_unused_value): Move side effects test once more.
5398
5399 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5400
5401         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5402         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5403
5404 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5405
5406         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5407         SUBREG or ZERO_EXTEND.
5408
5409 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5410
5411         * sh.h (current_function_anonymous_args): Remove.
5412         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5413         of current_function_varargs and current_function_stdarg is set.
5414         * sh.c (sh_expand_prologue): Check current_function_varargs /
5415         current_function_stdarg / TARGET_SH5 instead of
5416         current_function_anonymous_args.
5417
5418         * sh64.h (TARGET_VERSION): Define.
5419
5420 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5421
5422         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5423         VRSAVE_REGNO on TARGET_ALTIVEC.
5424
5425 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5426
5427         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5428         bits of SImode const_int.
5429         (includes_rshift_p): Likewise.
5430         (print_operand): Call mask_operand and mask64_operand with correct
5431         mode.
5432         (rs6000_output_function_epilogue): Pad traceback table to word.
5433         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5434         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5435         mask64_operand with correct mode.
5436         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5437
5438 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5439
5440         PR debug/4461
5441         * varasm.c (get_pool_constant_mark): New.
5442         * rtl.h (get_pool_constant_mark): Add prototype.
5443         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5444         be represented if it has not been output.
5445
5446 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5447
5448         * combine.c (do_SUBST): Sanity check substitutions of
5449         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5450         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5451         CONST_INT into its operand.
5452         (known_cond): Likewise, for ZERO_EXTEND.
5453         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5454         allow for simplification of wide modes.  Reject CONST_INTs in
5455         ZERO_EXTEND when their actual mode is not given.
5456
5457 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5458
5459         * c-decl.c (pushdecl): If no global declaration is found for an
5460         extern declaration in block scope, try a limbo one.
5461
5462 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5463
5464         PR c++/4401
5465         * c-common.c (pointer_int_sum): Moved from...
5466         * c-typeck.c (pointer_int_sum): ...here.
5467         * c-common.h (pointer_int_sum): Add prototype.
5468
5469 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5470
5471         PR c++/5713
5472         * c-decl.c (duplicate_decls): Return 0 if issued error about
5473         redeclaration.
5474
5475 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5476             Jakub Jelinek  <jakub@redhat.com>
5477
5478         PR c/4389
5479         * tree.c (host_integerp): Ensure that the constant integer is
5480         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5481         when pos is zero or non-zero respectively.  Clarify comment.
5482         * c-format.c (check_format_info_recurse): Fix host_integerp
5483         usage; the pos argument should be zero when assigning to a
5484         signed HOST_WIDE_INT.
5485
5486 2002-02-20  Richard Henderson  <rth@redhat.com>
5487
5488         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5489         of the operand, rather than assuming TImode.
5490         (ix86_expand_binop_builtin): Cope with commutative patterns
5491         using nonimmediate_operand for both operands.
5492         (ix86_expand_timode_binop_builtin): Likewise.
5493         (ix86_expand_store_builtin): Validate operand 1.
5494         (ix86_expand_unop1_builtin): Likewise.
5495
5496 2002-02-20  Philip Blundell  <philb@gnu.org>
5497
5498         PR 5705
5499         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5500
5501 2002-02-20  Richard Henderson  <rth@redhat.com>
5502
5503         PR c/5615
5504         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5505
5506 2002-02-20  Tom Tromey  <tromey@redhat.com>
5507
5508         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5509         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5510         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5511         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5512         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5513         unconditionally.
5514
5515 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5516
5517         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5518           for (const_int 0) in X not just INTVAL.
5519
5520 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5521
5522         * doc/extend.texi: Avoid or reduce overfull hboxes.
5523
5524 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5525
5526         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5527         operations if the field does not start at a mode boundary.
5528
5529 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5530
5531         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5532         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5533         Also done for -Acpu and -Amachine.
5534
5535 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5536
5537         * cppinit.c (init_dependency_output): Take deps output file
5538         from -o if none given with -MF.  Suppress normal output.
5539         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5540         * doc/cpp.texi, doc/invoke.texi: Update.
5541
5542 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5543
5544         * toplev.c (output_quoted_string): Write unprintable
5545         characters with octal escapes.
5546
5547 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5548
5549         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5550         really_call_used[VRSAVE_REGNO] if not Altivec.
5551
5552 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5553
5554         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5555         MODE_MASK.
5556         (constant_pool_expr_1): Fix formatting.
5557         (rs6000_legitimize_reload_address): Likewise.
5558
5559 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5560
5561         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5562         now that we have one.
5563
5564 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5565
5566         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5567         end of first block of bitfields (which was only seven bits);
5568         rename dummy to unused_1; remove comment which is no longer true.
5569
5570 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5571
5572         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5573
5574 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5575
5576         PR 5399
5577         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5578         if generating PIC.
5579
5580         PR 5054
5581         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5582         arm_is_longcall_p rather than inspecting call-type cookie
5583         directly.
5584         (call_value_insn) [TARGET_THUMB]: Likewise.
5585
5586 2002-02-19  Graham Stott  <grahams@redhat.com>
5587
5588         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5589
5590 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5591
5592         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5593         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5594         (FP_SAVE_INLINE): Delete.
5595
5596         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5597         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5598         * config/rs6000/t-ppccomm: Build crtsavres.o.
5599         * config/rs6000/crtsavres.asm: New file.
5600
5601 2002-02-19  Philip Blundell  <philb@gnu.org>
5602
5603         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5604         functions.
5605         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5606         (output_return_instruction): Allow interrupt functions to return with
5607         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5608         (arm_expand_prologue): Subtract 4 before stacking LR in an
5609         interrupt function.
5610
5611 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5612
5613         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5614         decl, not just FUNCTION_DECL.
5615         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5616         (arm_assemble_integer): Likewise.
5617         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5618         marked local.
5619
5620 2002-02-19  matthew green  <mrg@eterna.com.au>
5621
5622         * config.gcc (sparc-*-netbsdelf*): Enable target.
5623         (sparc64-*-netbsd*): New target.
5624         * config/sparc/netbsd-elf.h: New file.
5625         * config/sparc/t-netbsd64: New file.
5626
5627 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5628
5629         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5630
5631 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5632
5633         * doc/invoke.texi: explicitly list the style guidelines that
5634         -Weffc++ checks for.
5635
5636 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5637
5638         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5639
5640 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5641
5642         PR other/5718
5643         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5644         only if not -E.  If -E, pass -o through to the preprocessor.
5645
5646 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5647
5648         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5649         register number with an appropriate macro.
5650
5651 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5652
5653         * doc/rtl.texi (Constants): Close @code tag.
5654
5655 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5656
5657         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5658         ("mmx_uavgv4hi3"): Same.
5659         ("pmulhrwv4hi3"): Same.
5660
5661         * tree-inline.c (walk_tree): Handle vectors.
5662
5663         * c-common.c (constant_expression_warning): Handle vectors.
5664         (overflow_warning): Same.
5665
5666         * sched-deps.c (sched_analyze_2): Handle vectors.
5667
5668         * rtlanal.c (rtx_unstable_p): Handle vectors.
5669         (rtx_varies_p): Same.
5670         (count_occurrences): Same.
5671         (regs_set_between_p): Same.
5672         (modified_between_p): Same.
5673         (modified_in_p): Same.
5674         (volatile_insn_p): Same.
5675         (volatile_refs_p): Same.
5676         (side_effects_p): Same.
5677         (may_trap_p): Same.
5678         (inequality_comparisons_p): Same.
5679         (replace_regs): Same.
5680         (computed_jump_p_1): Same.
5681
5682         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5683         argument.
5684         (inner_mode_array): New.
5685         (copy_rtx): Handle vectors.
5686         (copy_most_rtx): Same.
5687         (rtx_equal_p): Same.
5688         (get_mode_alignment): Adjust for vectors.
5689
5690         * resource.c (mark_referenced_resources): Handle vectors.
5691         (mark_set_resources): Same.
5692
5693         * reload1.c (eliminate_regs): Handle vectors.
5694         (elimination_effects): Same.
5695         (scan_paradoxical_subregs): Same.
5696
5697         * reload.c (subst_reg_equivs): Handle vectors.
5698
5699         * regrename.c (scan_rtx): Handle vectors.
5700
5701         * regclass.c (reg_scan_mark_refs): Handle vectors.
5702
5703         * recog.c (find_single_use_1): Handle vectors.
5704
5705         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5706         (contains_replace_regs): Same.
5707         (memref_referenced_p): Same.
5708
5709         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5710         (subst_constants): Same.
5711
5712         * genattrtab.c (attr_copy_rtx): Handle vectors.
5713         (encode_units_mask): Same.
5714         (clear_struct_flag): Same.
5715         (count_sub_rtxs): Same.
5716
5717         * gcse.c (want_to_gcse_p): Handle vectors.
5718         (oprs_unchanged_p): Same.
5719         (hash_expr_1): Same.
5720         (oprs_not_set_p): Same.
5721         (expr_killed_p): Same.
5722         (compute_transp): Same.
5723         (store_ops_ok): Same.
5724
5725         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5726         of vectors.
5727         (fixup_var_refs_1): Same.
5728         (instantiate_virtual_regs_1): Same.
5729
5730         * fold-const.c (operand_equal_p): Handle vectors.
5731         (fold): Same.
5732         (rtl_expr_nonnegative_p): Same.
5733
5734         * flow.c (mark_used_regs): Handle vectors.
5735
5736         * df.c (df_uses_record): Handle vectors.
5737
5738         * cselib.c (cselib_subst_to_values): Handle vectors.
5739         (cselib_mem_conflict_p): Same.
5740         (hash_rtx): Same.
5741
5742         * cse.c (canon_reg): Handle vectors.
5743         (fold_rt): Same.
5744         (cse_process_notes): Same.
5745         (count_reg_usage): Same.
5746         (canon_hash): Same.
5747
5748         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5749
5750         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5751
5752         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5753         (gen_rtx): Handle CONST_VECTOR.
5754         (gen_const_vector_0): New.
5755         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5756         (reset_used_flags): Same.
5757         (copy_insn_1): Same.
5758         (initializer_constant_valid_p): Handle VECTOR_CST.
5759
5760         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5761
5762         * doc/rtl.texi (Constants): Document const_vector.
5763         (CONST0_RTX): Update for vectors.
5764         (RTL sharing): Same.
5765
5766         * print-tree.c (print_node): Add case for VECTOR_CST.
5767
5768         * tree.h (TREE_VECTOR_CST_ELTS): New.
5769         (struct tree_vector): New.
5770         (union tree_node): Add vector node.
5771         (build_vector): Add prototype.
5772
5773         * tree.def (VECTOR_CST): New.
5774
5775         * tree.c (build_vector): New.
5776
5777         * expmed.c (make_tree): Handle CONST_VECTOR.
5778
5779         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5780         (CONST_VECTOR_ELT): New.
5781         (CONST_VECTOR_NUNITS): New.
5782
5783         * machmode.h (GET_MODE_INNER): New.
5784         (DEF_MACHMODE): Accept 8th arg.
5785
5786         * machmode.def: Add 8th argument for vector inner mode.
5787         Add inner vector modes for vectors.
5788
5789         * rtl.def (VEC_CONST): Remove.
5790         (CONST_VECTOR): New.
5791
5792         * expr.c (clear_storage): Allow vectors.
5793         (is_zeros_p): Handle VECTOR_CST.
5794
5795         * varasm.c (output_constant_pool): Handle vectors.
5796         (rtx_const): Add veclo and vechi fields.
5797         (kind): Add RTX_VECTOR.
5798         (decode_rtx_const): Add case for vector.
5799
5800         * config/rs6000/rs6000-protos.h: Add zero_constant.
5801
5802         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5803         constants.  Force easy vector constants into memory.
5804         (easy_vector_constant): New.
5805         (emit_easy_vector_constant): New.
5806         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5807         darwin.
5808
5809         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5810         instruction does.
5811         ("altivec_lvxl"): Same.
5812         (altivec_lvebx): Same.
5813         (altivec_lvehx): Same.
5814         (altivec_lvewx): Same.
5815         ("*movv4si_const0"): New.
5816         ("*movv4sf_const0"): New.
5817         ("*movv8hi_const0"): New.
5818         ("*movv16qi_const0"): New.
5819
5820 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5821
5822         * config/h8300/h8300.c (notice_update_cc): Use
5823         cc_status.value2.
5824
5825 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5826
5827         * config/h8300/h8300.md (divmod patterns): Change the
5828         constraints for operands[1] to register_operand.
5829
5830 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5831
5832         * config/h8300/h8300-protos.h: Remove the prototype for
5833         p_operand.
5834         * config/h8300/h8300.c (p_operand): Remove.
5835         * config/h8300/h8300.md: Replace p_operand with
5836         const_int_operand.
5837
5838 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5839
5840         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5841         comment.
5842         (output_return_instruction): Allow use of LDR to unstack
5843         return addresss even for interrupt handlers or when
5844         interworking.  If compiling for ARMv5, use interworking-safe
5845         return instructions by default.  Remove duplicated code and
5846         lengthy "strcat" sequences.
5847
5848 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5849
5850         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5851         (LINK_EH_SPEC): Define.
5852         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5853
5854 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5855
5856         * config/s390/s390.c (s390_emit_prologue): Do not set the
5857         frame_related flag for call-clobbered registers.
5858
5859 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5860
5861         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5862         (construct_container): Fix handling of SSE operands.
5863         (ix86_expand_builtin): Fix handling of 64bit pointers.
5864         (mmx_maskmovq_rex): New pattern.
5865
5866 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5867
5868         * regrename.c (kill_set_value): Handle subregs properly.
5869
5870 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5871
5872         * objc/objc-act.c (handle_impent): Remove leading '*'
5873         from objc_class_name.
5874
5875 2002-02-17  Richard Henderson  <rth@redhat.com>
5876
5877         * config/alpha/alpha.c (some_small_symbolic_operand,
5878         some_small_symbolic_operand_1, split_small_symbolic_operand,
5879         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5880         Handle small SYMBOL_REFs anywhere, not just inside memories.
5881         * config/alpha/alpha-protos.h: Update.
5882         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5883         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5884
5885 2002-02-17  Roland McGrath  <roland@frob.com>
5886
5887         * config.gcc (powerpc-*-gnu-gnualtivec*,
5888         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5889         * config/rs6000/gnu.h: New file.
5890         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5891         Grok "gnu" in rs6000_abi_name.
5892         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5893         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5894         Grok -mcall-gnu analogous to -mcall-linux et al.
5895         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5896         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5897         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5898
5899 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5900
5901         PR c/3444:
5902         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5903         shortening.
5904
5905 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5906
5907         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5908         ENDFILE_SPEC before (re)defining them.
5909
5910 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5911
5912         * config/h8300/h8300.c: Fix formatting.
5913         * config/h8300/h8300.h: Likewise.
5914
5915 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5916
5917         * doc/tm.texi: Explain why empty strings should not be
5918         marked for translation.
5919
5920 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5921
5922         * final.c (output_operand_lossage): Changed to accept
5923         printf style arguments. Change calls where necessary.
5924         * output.h (output_operand_lossage): Change declaration
5925         accordingly. Update copyright.
5926         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5927         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5928         Update copyright date where necessary.
5929
5930         * config/i386/i386.c (print_operand): Likewise. Remove use of
5931         sprintf.
5932
5933         * config/cris/cris.c (cris_operand_lossage): Likewise.
5934         Rename parameter so that exgettext recognizes it as
5935         translatable message.
5936         (LOSE_AND_RETURN): Rename parameter to msgid.
5937
5938 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5939
5940         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5941         hard coded register number with an appropriate macro.
5942         (HARD_REGNO_MODE_OK): Likewise.
5943         (ARG_POINTER_REGNUM): Likewise.
5944         (STATIC_CHAIN_REGNUM): Likewise.
5945         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5946         * config/h8300/h8300.md (define_constants): Define more
5947         register numbers.
5948
5949 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5950
5951         * config/i386/i386.h: Don't mark empty strings for translation.
5952
5953 2002-02-16  H.J. Lu <hjl@gnu.org>
5954
5955         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5956
5957 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
5958
5959         * cppinit.c (merge_include_chains): Check for brack being
5960         NULL before attempting to merge it with qtail.
5961
5962 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5963
5964         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5965         DBX_DEBUG.
5966
5967 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5968
5969         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5970
5971 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5972
5973         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5974         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5975         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5976
5977 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5978
5979         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5980         now only if !TARGET_FIX.
5981         (*movsi_nt_vms_fix): New pattern.
5982
5983 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
5984
5985         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5986         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5987         (alpha_sa_mask, alpha_sa_size): Reflect above change.
5988         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5989         (alpha_start_function, alpha_expand_epilogue): Likewise.
5990         (unicosmk_gen_dsib): Likewise.
5991
5992 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5993
5994         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5995
5996 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
5997
5998         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5999         check_and_change_labels, s390_final_chunkify): Delete.
6000         (s390_split_branches, s390_chunkify_pool): New functions.
6001         (s390_function_prologue): Call them.
6002
6003         * config/s390/s390.h (S390_REL_MAX): Delete.
6004         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6005
6006         * config/s390/s390.md (cjump, icjump, jump): Fix length
6007         attribute calculation.
6008
6009
6010 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
6011
6012         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6013         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6014
6015 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6016
6017         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6018         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6019         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6020
6021 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6022
6023         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6024
6025 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6026
6027         * reload.c (find_dummy_reload): Check that an output register
6028         is valid for its mode.
6029
6030 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
6031
6032         * combine.c (known_cond): After replacing the REG of a SUBREG, try
6033         to simplify it.
6034
6035         * function.c (assign_parms): Demote promoted argument passed by
6036         transparent reference.
6037
6038 2001-02-14      Joel Sherrill <joel@OARcorp.com>
6039
6040         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6041         -Acpu() and -Amachine() to eliminate warnings.
6042
6043 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
6044
6045         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6046
6047 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6048
6049         * config/h8300/h8300-protos.h: Update the prototype for
6050         const_costs.
6051         * config/h8300/h8300.c (const_costs): Treat SET as a little
6052         more expensive operation.
6053         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6054         reference to const_costs.
6055
6056 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6057
6058         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6059
6060 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6061
6062         PR c/5503:
6063         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6064         use arguments from newtype.
6065
6066 2002-02-13  Eric Christopher  <echristo@redhat.com>
6067
6068         * config/mips/mips.c (override_options): Add check for march/mipsX
6069         on the same command line. Fix error message in cpu processing.
6070         Remove architecture and ISA checks.
6071
6072 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6073
6074         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6075
6076         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6077
6078 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6079
6080         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6081         alternatives.
6082         ("*movv8hi_internal1"): Same.
6083         ("*movv16qi_internal1"): Same.
6084         ("*movv4sf_internal1"): Same.
6085
6086         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6087         not push_reload for altivec modes.
6088
6089 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6090
6091         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6092         all RTEMS targets including removal of #includes from config/*/rtems*.h
6093         file and adding them to tm_file setting. Added xm_defines=POSIX to
6094         many targets.
6095         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6096         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6097         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6098         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6099         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6100         config/m68k/rtemself.h: Ditto.
6101         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6102         config/mips/rtems64.h: Ditto.
6103         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6104         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6105         Ditto.
6106         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6107         config/sparc/rtemself.h: Ditto.
6108         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6109         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6110         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6111         more like arm-elf.
6112         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6113         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6114         target made more similar to i386-elf.
6115         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6116         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6117         be similar to config/m68k/t-m68kelf.
6118         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6119
6120 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6121
6122         * regmove.c (kill_value): Handle subregs.
6123
6124 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6125
6126         * i386.md (mul patterns): Allow memory operand to be first;
6127         add expanders where needed; fix constraints.
6128         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6129         Allow memory operand to be the first.
6130
6131         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6132         operands.
6133
6134 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6135
6136         PR c/5681:
6137         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6138         GET_MODE (x).
6139
6140 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6141
6142         PR optimization/5547:
6143         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6144         all valid IA-32 address modes involving non-scaled %ebx and
6145         GOT/GOTOFF as displacement.
6146
6147 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6148
6149         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6150         after emitting ltorg insns.
6151
6152         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6153         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6154         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6155         *abssf2): Fix "op_type" attribute.
6156
6157 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6158
6159         * mkconfig.sh: Avoid using a subshell redirect.
6160         ($output.T): Change to $(output)T.
6161         (ENABLE_NLS): Remove unneeded undef.
6162
6163         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6164         * config/alpha/x-vms (libsubdir): Define.
6165
6166         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6167         register frame procedures. Optimize retrieving context.
6168
6169         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6170         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6171         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6172
6173 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6174
6175         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6176         Make same change as for find_base_value.
6177
6178 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6179
6180         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6181         of QImode and SImode.
6182
6183 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6184
6185         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6186         length computation of movsi.
6187         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6188
6189 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6190
6191         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6192         operands[2] to register_operand.
6193
6194 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6195
6196         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6197
6198 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6199
6200         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6201         for altivec_lvx* and altivec_stvx*.
6202         ("*movv4si_internal"): Add constraint for loading from GPRs.
6203         ("*movv8hi_internal1"): Same.
6204         ("*movv16qi_internal1"): Same.
6205         ("*movv4sf_internal1"): Same.
6206
6207         * config/rs6000/rs6000.c (altivec_register_operand): New.
6208
6209         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6210         altivec_register_operand.
6211
6212 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6213
6214         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6215         handle SYMBOL_REF.
6216
6217 2002-02-13  Stan Shebs  <shebs@apple.com>
6218
6219         * c-typeck.c (digest_init): Handle vectors.
6220         (really_start_incremental_init): Same.
6221         (pop_init_level): Same.
6222         (process_init_element): Same.
6223
6224         * varasm.c (output_constant): Same.
6225
6226         * expr.c (clear_storage): Same.
6227         (store_constructor): Same.
6228
6229 2002-02-12  Eric Christopher  <echristo@redhat.com>
6230
6231         * explow.c (hard_function_value): Add comment explaining
6232         signed/unsigned comparison.
6233
6234 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6235
6236         * jump.c (never_reached_warning): Add finish argument.
6237         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6238         real insn after end.
6239         * rtl.h (never_reached_warning): Adjust prototype.
6240         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6241         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6242         never_reached_warning.
6243
6244 2002-02-12  Graham Stott  <grahams@redhat.com>
6245
6246         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6247
6248 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6249
6250         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6251         logical shifts on H8/300.
6252         (shift_alg_si): Improve several shifts on H8/300.
6253         (get_shift_alg): Likewise.
6254
6255 2002-02-12  Graham Stott  <grahams@redhat.com>
6256
6257         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6258
6259 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6260
6261         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6262         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6263
6264 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6265
6266         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6267         non-CONST_INT through default_assemble_integer.
6268         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6269         <case 8>: Abort for CONST_DOUBLE.
6270
6271 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6272
6273         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6274         is specified.
6275         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6276         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6277
6278 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6279
6280         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6281
6282 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6283
6284         * regrename.c (regrename_optimize): Don't accept a
6285         part-clobbered register if the replaced register is not part
6286         clobbered.
6287
6288         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6289         take padding into account when computing the argument value.
6290
6291         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6292
6293         * combine.c (try_combine): Apply substitutions in
6294         CALL_INSN_FUNCTION_USAGE too.
6295
6296 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6297
6298         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6299         __builtin_altivec_abs*.
6300         (bdesc_abs): New.
6301
6302         * config/rs6000/rs6000.h (rs6000_builtins): Add
6303         ALTIVEC_BUILTIN_ABS*.
6304
6305         * config/rs6000/altivec.h: Use const char for builtins expecting
6306         literals.
6307         (vec_abs): New versions for C and C++.
6308         (vec_abss): Same.
6309
6310 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6311
6312         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6313         using Pmode.
6314
6315 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6316
6317         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6318         constant definition from h8300.md.
6319         (FRAME_POINTER_REGNUM): Likewise.
6320         * config/h8300/h8300.md (define_constants): Add FP_REG.
6321
6322 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6323
6324         * config/h8300/h8300.c (print_operand): Remove redundant code.
6325
6326 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6327
6328         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6329         * config/h8300/h8300.c (byte_reg): Make it static.
6330
6331 2002-02-10  Richard Henderson  <rth@redhat.com>
6332
6333         PR c/5623
6334         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6335
6336 2002-02-10  Richard Henderson  <rth@redhat.com>
6337
6338         PR c++/5624
6339         * tree.c (append_random_chars): Don't abort if main_input_filename
6340         does not exist.
6341
6342 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6343
6344         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6345
6346 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6347
6348         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6349         (pushhi1): Likewise.
6350
6351 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6352
6353         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6354         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6355
6356 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6357
6358         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6359         remove MASK_VIS.
6360         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6361
6362 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6363
6364         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6365         a half of an SImode register on H8/300.
6366
6367 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6368
6369         * i386.md (movdi_2): Add missing '!'.
6370
6371 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6372
6373         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6374         definitions.
6375
6376 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6377
6378         * config/h8300/h8300.md (length): Correct the distance valid
6379         for the short branch.
6380
6381 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6382
6383         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6384
6385 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6386
6387         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6388         registers in SImode.
6389         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6390         part-clobbered.
6391
6392         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6393         patch.
6394
6395         Contribute sh64-elf.
6396         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6397         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6398         (sh_cannot_modify_jumps_p): New function.
6399         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6400         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6401         (sh_ms_bitfield_layout_p): New function.
6402         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6403                     Zack Weinberg  <zack@codesourcery.com>
6404         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6405         expand_simple_binop instead of expand_binop.
6406         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6407         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6408         use of .quad and .uaquad.
6409         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6410         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6411         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6412         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6413         movdi_const_16bit): Make sure all CONSTs have modes.
6414         (sym2PIC): Ditto, but by adjusting all callers.
6415         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6416         if the prologue calls the SHmedia argument decoder or register
6417         saver.
6418         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6419         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6420         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6421         (sh_expand_epilogue): Don't emit USE of return target register.
6422         (prepare_move_operands): Legitimize DImode PIC addresses.
6423         (sh_media_register_for_return): Skip tr0, used to initialize the
6424         PIC register.
6425         (sh_expand_prologue): Remove explicit USE of return register.
6426         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6427         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6428         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6429         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6430         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6431         EXTRA_CONSTRAINT_T.
6432         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6433         (MOVI_SHORI_BASE_OPERAND_P): New.
6434         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6435         (EXTRA_CONSTRAINT_T): Define in terms of them.
6436         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6437         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6438         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6439         alternatives supporting TARGET_REGS.
6440         (UNSPEC_GOTPLT): New constant.
6441         (movdi split): Move incrementing of LABEL_NUSES...
6442         (movdi_const, movdi_const_32bit): Here.  Use
6443         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6444         (movdi_const_16bit): New.
6445         (call, call_value) [flag_pic]: Use GOTPLT.
6446         (call_pop, call_value_pop): New expands.
6447         (call_pop_compact, call_pop_rettramp): New insns.
6448         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6449         (sibcall) [flag_pic]: Use GOT.
6450         (builtint_setjmp_receiver): Remove bogus, unused expand.
6451         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6452         (*pt, *ptb, ptrel): New insns.
6453         (sym2GOT): Handle DImode GOT.
6454         (sym2GOTPLT, symGOTPLT2reg): New expands.
6455         (sym2PIC): New expand.
6456         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6457         (shcompact_return_tramp_i): Use return register explicitly.
6458         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6459         disable flag_reorder_blocks.
6460         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6461         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6462         clobbers, for clarity.
6463         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6464         restoring of r0 in macl as MAYBE_DEAD.
6465         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6466         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6467         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6468         alter_subreg all over.
6469         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6470         reload, instead of emitting instructions that would require
6471         reloading.
6472         (casesi_load_media): Add missing modes.
6473         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6474         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6475         as used if the argument decoder is called.
6476         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6477         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6478         Pmode, then extend it to DImode if necessary.
6479         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6480         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6481         constants in FPU-enabled SHmedia, let them be loaded from memory.
6482         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6483         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6484         Adjust whitespace in assembly output templates.
6485         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6486         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6487         mode of if_then_else.
6488         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6489         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6490         sh.h.
6491         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6492                     Joern Rennecke <amylaar@redhat.com>
6493         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6494         (SUBTARGET_CPP_PTR_SPEC): New.
6495         (SUBTARGET_CPP_SPEC): Remove.
6496         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6497         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6498         Fix typo in previous checkin.
6499         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6500         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6501         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6502                     Alexandre Oliva  <aoliva@redhat.com>
6503         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6504         what single FP register can hold for SHmedia target.
6505         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6506                     Alexandre Oliva  <aoliva@redhat.com>
6507         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6508         Do not split into SUBREG.
6509         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6510         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6511         and added new functions as specified in SH5 ABI r9.
6512         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6513         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6514         8-byte boundary.
6515         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6516         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6517         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6518         and consttable_window_ends.
6519         2001-06-03  Graham Stott  <grahams@redhat,com>
6520         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6521         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6522         * config/sh/sh.c (print_operand): Handle floating-point pair,
6523         vector and matrix registers.
6524         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6525         vector modes into account.
6526         * config/sh/sh.md (movv2sf): Split move between registers into
6527         movdf.
6528         (movv4sf, movv16sf): Introduce insns that get split only after
6529         reload.
6530         * config/sh/shmedia.h: Fix Copyright dates.
6531         * config/sh/ushmedia.h: Likewise.  Move loop counter
6532         declarations into conditionals that uses them.
6533         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6534         loop boundary.
6535         * config/sh/sshmedia.h: Fix Copyright dates.
6536         (sh_media_PUTCFG): Fix constraints.
6537         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6538         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6539         ptrmemfunc_vbit_in_delta for SH5.
6540         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6541         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6542         * invoke.texi: Likewise.
6543         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6544         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6545         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6546         GCC_pop_shmedia_regs_nofpu): New global symbols.
6547         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6548         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6549         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6550         compact function with nonlocal labels.
6551         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6552         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6553         (initial_elimination_offset): Account for their stack space.
6554         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6555         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6556         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6557         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6558         least one of the operands to be a register.
6559         (movv2sf): Likewise.  Renamed to movv2sf_i.
6560         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6561         prepare_move_operands() before emitting SHmedia insns.
6562         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6563         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6564         Don't save nor initialize r12.  Don't mis-align the stack.
6565         Pad the code with a nop.
6566         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6567         stack.
6568         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6569         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6570         [__SHMEDIA__]: Implement.
6571         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6572         * config/sh/sh.md: Set latency of `pt' closer to reality.
6573         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6574         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6575         Set move, load and store type attributes.
6576         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6577         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6578         profiling.
6579         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6580         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6581         * config/sh/sh.c (sh_media_register_for_return): New function.
6582         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6583         branch-target register.
6584         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6585         * config/sh/sh.md (return_media_i): Use any call-clobbered
6586         branch-target register.
6587         (return_media): If r18 wasn't copied in the prologue, copy it
6588         here.
6589         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6590         Clear class FP0_REGS.
6591         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6592         from elf.h.
6593         2001-03-08  DJ Delorie  <dj@redhat.com>
6594         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6595         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6596         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6597         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6598         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6599         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6600         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6601         return value correctly for call_cookie.
6602         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6603         * config/sh/crt1.asm (start): Modified so as to call
6604         ___setup_argv_and_call_main.
6605         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6606         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6607         SHmedia mode.
6608         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6609         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6610         (STRIP_NAME_ENCODING): Use it.
6611         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6612         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6613         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6614         prepare_scc_operands().
6615         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6616         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6617         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6618         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6619         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6620         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6621         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6622         used in shcompact_incoming_args.
6623         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6624         change.
6625         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6626         mode.
6627         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6628         Adjust accordingly.
6629         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6630         Simplify.  Adjust.  Add sanity check.
6631         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6632         FPU_SINGLE_BIT.
6633         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6634         TARGET_SHCOMPACT.
6635         (udivsi3, divsi3): Use them.
6636         (force_mode_for_call): New insn.
6637         (call, call_value, sibcall_value): Emit it before SHcompact
6638         calls.
6639         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6640         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6641         call cookie is non-NULL before taking its value.
6642         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6643         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6644         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6645         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6646         block.
6647         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6648         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6649         temporary for stack adjusts.  Use MACL and MACH to pass
6650         arguments to shcompact_incoming_args.
6651         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6652         clobber r1.
6653         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6654         (nested_trampoline): Load static chain address into r1.
6655         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6656         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6657         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6658         fp_arith_reg_operand().
6659         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6660         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6661         and use signed compares for them.
6662         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6663         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6664         ones properly aligned.
6665         (find_barrier): Account for extra alignment needed for 8-byte wide
6666         constants.
6667         (machine_dependent_reorg): Require a label for the second 4-byte
6668         constant after an 8-byte one.
6669         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6670         change.
6671         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6672         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6673         last_float when switching float modes.
6674         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6675         auto-increment for general-purpose registers.
6676         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6677         result.
6678         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6679         for stack adjust.
6680         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6681         registers for varargs.
6682         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6683         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6684         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6685         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6686         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6687         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6688         call_cookie accordingly.
6689         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6690         (SHCOMPACT_BYREF): Likewise.
6691         (SHCOMPACT_FORCE_ON_STACK): New macro.
6692         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6693         (sh_builtin_saveregs): Likewise.
6694         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6695         shcompact_incoming_args): Use new shift values.  Support
6696         sequences of consecutive and non-consecutive pushes/pops.
6697         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6698         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6699         * config/sh/sh.h (TEXT_SECTION): Define.
6700         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6701         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6702         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6703         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6704         return values on FPU-enabled SHmedia.
6705         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6706         FPU-enabled SHmedia.
6707         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6708         value is returned in a non-FP reg and is not returned by
6709         reference.
6710         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6711         jump_ind.
6712         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6713         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6714         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6715         quad-aligned to be passed by callee-copy reference.
6716         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6717         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6718         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6719         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6720         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6721         copying low-numbered FP regs to r7 and r8.
6722         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6723         FP regs to general-purpose regs only if the copy was passed on the
6724         stack.
6725         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6726         copying FP reg to r9.
6727         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6728         copy FP regs to general-purpose regs only in outgoing calls.
6729         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6730         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6731         HOST_WIDE_INT.
6732         * config/sh/sh.h (struct sh_args): Document all fields.
6733         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6734         passed partially on the stack should not consider making
6735         sibcalls.
6736         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6737         stack_regs only for incoming calls.  When passing FP args,
6738         make sure there are FP regs available before modifying
6739         call_cookie.
6740         (SHCOMPACT_BYREF): Pass double args in general-purpose
6741         registers by reference.
6742         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6743         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6744         attempt to generate sibcalls if the caller got any arguments
6745         by reference.
6746         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6747         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6748         to 8-byte boundaries.
6749         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6750         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6751         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6752         stored in the stack.
6753         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6754         for the offsets to have the ISA bit set.
6755         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6756         invocation.  Use beq instead of bgt to mark end of sequence of
6757         loads.
6758         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6759         bgt to mark end of sequence of stores.
6760         * config/sh/sh.c (arith_operand): Don't check whether
6761         CONST_OK_FOR_J for now.
6762         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6763         instead of long for conversion.
6764         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6765         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6766         before passing it to fprintf.
6767         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6768         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6769         Call set_fpscr before reading/writing SR.
6770         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6771         Call set_fpscr.
6772         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6773         SHmedia code.
6774         (FMOVD_WORKS): Define on SH5 with FPU.
6775         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6776         setting.
6777         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6778         _fpscr_values.
6779         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6780         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6781         address.
6782         (ia_main_table): Ditto.
6783         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6784         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6785         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6786         the definitions from sh.h.
6787         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6788         TARGET_SH5.
6789         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6790         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6791         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6792         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6793         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6794         Increment LABEL_NUSES.
6795
6796         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6797         TARGET_SH5.
6798         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6799         defined.
6800         * config/sh/elf.h (SIZE_TYPE): Likewise.
6801         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6802         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6803         shcompact_incoming_args): Load switch table addresses using
6804         datalabel.
6805         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6806         (NO_BUILTIN_SIZE_TYPE): Define.
6807         (SIZE_TYPE): Don't define.
6808         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6809         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6810         definition of __SH5__=32 for -m5-compact-nofpu.
6811         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6812         ADDR_DIFF_VEC.
6813         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6814         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6815         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6816         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6817         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6818         (INSN_LENGTH_ALIGNMENT): Likewise.
6819         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6820         * config/sh/sh.md (call, call_value, sibcall): Simplify
6821         copying of non-branch-target register.
6822         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6823         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6824         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6825         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6826         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6827         floating-point values as structs.
6828         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6829         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6830         general-purpose register.
6831         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6832         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6833         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6834         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6835         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6836         (ENCODE_SECTION_INFO): Enclose variables and constants in
6837         DATALABEL unspecs.
6838         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6839         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6840         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6841         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6842         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6843         SH_DATALABEL_ENCODING to the symbol name.
6844         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6845         convert_mode().
6846         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6847         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6848         UNSPEC_DATALABEL.
6849         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6850         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6851         (DATALABEL_REF_P): Don't require CONST.
6852         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6853         REL label.
6854         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6855         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6856         right.
6857         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6858         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6859         Use shallow_copy_rtx and PUT_MODE to change the mode of
6860         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6861         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6862         on SHmedia using GENERAL_REGs.
6863         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6864         bltu_media_i): Fix reversion of conditions.
6865         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6866         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6867         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6868         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6869         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6870         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6871         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6872         (GCC_nested_trampoline): Likewise.
6873         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6874         * config/sh/sh.c (gen_datalabel_ref): Define.
6875         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6876         (INITIALIZE_TRAMPOLINE): Likewise.
6877         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6878         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6879         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6880         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6881         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6882         (ic_invalidate): Adjust for SH5.
6883         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6884         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6885         _nested_trampoline.
6886         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6887         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6888         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6889         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6890         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6891         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6892         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6893         * config/sh/sh.c (target_reg_operand): Match only target-branch
6894         registers and pseudos that aren't virtual registers.
6895         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6896         Copy operands that don't match target_reg_operand to pseudos.
6897         (call_media, call_value_media, sibcall_media): Use
6898         target_reg_operand instead of target_operand.
6899         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6900         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6901         * config/sh/sh.c (target_reg_operand): Match hardware registers
6902         other than branch-target registers.
6903         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6904         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6905         (fpscr_values) [SH5 == 32]: Define.
6906         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6907         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6908         Handle function addresses coming in SUBREGs.
6909         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6910         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6911         shcompact_return_trampoline): Use datalabel where appropriate.
6912         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6913         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6914         general-purpose register to copy one branch-target register to
6915         another.
6916         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6917         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6918         SYMBOL_REFs with VOIDmode.
6919         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6920         bltu_media_i): New insns.
6921         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6922         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6923         (INIT_CUMULATIVE_ARGS): Likewise.
6924         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
6925         * machmode.def (V16SFmode): New mode.
6926         * c-common.c (type_for_mode): Support V2SF and V16SF.
6927         * tree.c (build_common_tree_nodes_2): Likewise.
6928         * tree.h (tree_index): Likewise.
6929         * calls.c (emit_call_1): Take args_so_far.  Adjust all
6930         callers.  Introduce CALL_POPS_ARGS.
6931         * tm.texi (CALL_POPS_ARGS): Document.
6932         * config/sh/crt1.asm: Implement in SHmedia mode.
6933         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6934         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6935         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6936         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6937         Implement divsi and udivsi in SHmedia mode.  Introduce
6938         SHcompact trampolines.
6939         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6940         only in SHmedia64.
6941         (regno_reg_class): Rewrite.
6942         (fp_reg_names): Remove.
6943         (sh_register_names, sh_additional_register_names): New.
6944         (print_operand): Added `u'.  Support SUBREGs in addresses.
6945         Add parentheses around shifted CONSTs.
6946         (output_file_start): Output .mode and .abi directives.
6947         (shiftcosts, addsubcosts, multcosts): Adjust.
6948         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
6949         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
6950         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
6951         bytes, not registers.  Take into account the need for the
6952         SHcompact incoming args trampoline.  Adjust all callers.
6953         (sh_expand_prologue): Take stack_regs into account.  Call
6954         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
6955         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
6956         stack aligned as per SH5 ABI.
6957         (sh_builtin_saveregs): Support SH5 ABI.
6958         (sh_build_va_list, sh_va_start): Likewise.
6959         (initial_elimination_offset): Take alignment into account.
6960         Compute location of PR according to the SH5 stack frame.
6961         (arith_reg_operand): Reject branch-target registers.
6962         (shmedia_6bit_operand): New.
6963         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6964         (target_reg_operand): Match DImode only.  Accept SUBREGs.
6965         (target_operand): New.
6966         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6967         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
6968         SIBCALL_REGS for SHmedia.
6969         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6970         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6971         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6972         (TARGET_SWITCHES): New SH5 flags.
6973         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
6974         VALID_REGISTER_P to disable unsupported registers.
6975         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6976         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6977         (FUNCTION_ARG_PADDING): Define.
6978         (FASTEST_ALIGNMENT): Adjust.
6979         (SH_REGISTER_NAMES_INITIALIZER): New.
6980         (sh_register_names): Declare.
6981         (DEBUG_REGISTER_NAMES): Define.
6982         (REGISTER_NAMES): Define based on sh_register_names.
6983         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6984         (sh_additional_register_names): Declare.
6985         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6986         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6987         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6988         (REGISTER_NATURAL_MODE): Define.
6989         (FIRST_PSEUDO_REGISTER): Adjust.
6990         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6991         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6992         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6993         (VECTOR_MODE_SUPPORTED_P): Define.
6994         (REG_CLASS_CONTENTS): Adjust.
6995         (SMALL_REGISTER_CLASSES): Adjust.
6996         (REG_ALLOC_ORDER): Adjust.
6997         (INDEX_REG_CLASS): Adjust.
6998         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6999         (CONST_OK_FOR_LETTER_P): Adjust.
7000         (PREFERRED_RELOAD_CLASS): Adjust.
7001         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7002         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7003         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7004         (FIRST_FP_PARM_REG): Adjust.
7005         (CALL_POPS_ARGS): Define.
7006         (FUNCTION_ARG_REGNO_P): Adjust.
7007         (struct sh_args): New fields.
7008         (GET_SH_ARG_CLASS): Adjust.
7009         (INIT_CUMULATIVE_ARGS): Adjust.
7010         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7011         (FUNCTION_ARG_ADVANCE): Adjust.
7012         (FUNCTION_ARG): Adjust.
7013         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7014         (FUNCTION_ARG_CALLEE_COPIES): Define.
7015         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7016         (STRICT_ARGUMENT_NAMING): Define.
7017         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7018         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7019         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7020         (SETUP_INCOMING_VARARGS): Adjust.
7021         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7022         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7023         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7024         (SUBREG_OK_FOR_INDEX_P): Adjust.
7025         (EXTRA_CONSTRAINT_S): Update.
7026         (EXTRA_CONSTRAINT_T): New.
7027         (EXTRA_CONSTRAINT): Adjust.
7028         (GO_IF_LEGITIMATE_INDEX): Adjust.
7029         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7030         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7031         (MOVE_MAX): Adjust.
7032         (MAX_MOVE_MAX): Define.
7033         (Pmode): Adjust.
7034         (CONST_COSTS): Adjust.
7035         (REGISTER_MOVE_COST): Adjust.
7036         (BRANCH_COST): Adjust.
7037         (TEXT_SECTION_ASM_OP): Adjust.
7038         (DBX_REGISTER_NUMBER): Adjust.
7039         (ASM_OUTPUT_DOUBLE_INT): New.
7040         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7041         (PREDICATE_CODES): Adjust.
7042         (PROMOTE_MODE): Adjust.
7043         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7044         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7045         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7046         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7047         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7048         (TR0_REG, TR1_REG, TR2_REG): New.
7049         (XD0_REG): Renumber.
7050         (UNSPEC_COMPACT_ARGS): New.
7051         (type): Added pt and ptabs.
7052         (length): Default to 4 on SHmedia.  Default pt length to 12
7053         and     20 on SHmedia32 and SHmedia64, respectively.
7054         (pt): New function unit.
7055         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7056         Add whitespace between operands of SHmedia instructions.
7057         (movdicc): Fix.
7058         (adddi3_media, addsi3_media): Adjust constraints.
7059         (subsi3) [SHmedia]: Force operand 1 into a register.
7060         (udivsi3_i1_media, udivsi3_i4_media): New.
7061         (udivsi3): Support SHmedia.
7062         (divsi3_i1_media, divsi3_i4_media): New.
7063         (divsi3): Support SHmedia.
7064         (anddi3, iordi3, xordi3): Adjust constraints.
7065         (zero_extendhidi2, zero_extendqidi2): New.
7066         (extendsidi2, extendhidi2, extendqidi2): New.
7067         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7068         (pop_e, pop_fpul, pop_4): Likewise.
7069         (movsi_media): Support FP and BT registers.
7070         (movsi_media_nofpu): New.  Adjust splits to DImode.
7071         (lduw, ldub): Renamed to zero_extend* above.
7072         (movqi_media): Fix typo.
7073         (movdi_media): Support FP and BT registers.
7074         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7075         (movdi_const_32bit): New.
7076         (shori_media): Require immediate operand.  Use `u' for output.
7077         (movdf_media, movsf_media): Simplified.
7078         (movdf_media_nofpu, movsf_media_nofpu): New.
7079         (movdf, movsf): Adjust
7080         (movv2sf, movv2sf, movv16sf): New.
7081         (beq_media, beq_media_i): Adjust constraints.  Don't use
7082         scratch BT register.
7083         (bne_media, bne_media_i): Likewise.
7084         (bgt_media, bgt_media_i): Likewise.
7085         (bge_media, bge_media_i): Likewise.
7086         (bgtu_media, bgtu_media_i): Likewise.
7087         (bgeu_media, bgeu_media_i): Likewise.
7088         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7089         bunordered): Emit jump insn.  Force operands to registers when
7090         needed.
7091         (jump_media, jump): Simplify.
7092         (call_compact, call_compact_rettramp): New.
7093         (call_value_compact, call_value_compact_rettramp): New.
7094         (call_media, call_value_media): Simplify.
7095         (sibcall_compact, sibcall_media): New.
7096         (call, call_value): Adjust for SHmedia and SHcompact.
7097         (sibcall, sibcall_value, untyped_call): Likewise.
7098         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7099         (indirect_jump): Adjust for SHmedia.
7100         (casesi_jump_media): New.
7101         (nop): Re-enable for SHmedia.
7102         (call_site): Restrict to SH1.
7103         (casesi): Adjust for SHmedia.
7104         (casesi_shift_media, casesi_load_media): New.
7105         (return): Explicitly use PR register.  Call return trampoline
7106         on SHcompact.
7107         (return_i): Explicitly use PR register.
7108         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7109         (return_media): Adjust.
7110         (shcompact_incoming_args): New.
7111         (epilogue): Adjust.
7112         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7113         (movstrsi): Disable on SH5.
7114         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7115         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7116         (subsf3, subsf3_media): Likewise.
7117         (mulsf3, mulsf3_media, mac_media): Likewise.
7118         (divsf3, divsf3_media): Likewise.
7119         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7120         (floatsisf2, fux_truncsfsi2): Likewise.
7121         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7122         constraints.
7123         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7124         (cmpunsf_media, cmpsf): Likewise.
7125         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7126         (abssf2, abssf2_media): Likewise.
7127         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7128         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7129         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7130         (floatsidf2, fix_truncdfsi2): Likewise.
7131         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7132         constraints.
7133         (cmpeqdf_media, cmpgtdf_media): Likewise.
7134         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7135         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7136         (absdf2, absdf2_media): Likewise.
7137         (extendsfdf2, extendsfdf2_media): Likewise.
7138         (truncsfdf2, truncsfdf2_media): Likewise.
7139         * config/sh/sh64.h: New file.
7140         * config/sh/t-sh64: New file.
7141         * config/sh/shmedia.h: New file.
7142         * config/sh/ushmedia.h: New file.
7143         * config/sh/sshmedia.h: New file.
7144         * configure.in: Added sh64-*-elf.
7145         * configure: Rebuilt.
7146         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7147         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7148         (reg_class_from_letter): Use `b' for TARGET_REGS.
7149         (print_operand): Support `%M', `%m', `AND' and
7150         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7151         (andcosts): Adjust for SHmedia.
7152         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7153         Likewise.
7154         (target_reg_operand): New function.
7155         * config/sh/sh-protos.h (target_reg_operand): Declare.
7156         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7157         FP registers on SH5.
7158         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7159         on SH4.
7160         (TARGET_REGISTER_P): New macro.
7161         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7162         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7163         (EXTRA_CONSTRAINT_S): New macro.
7164         (EXTRA_CONSTRAINT): Adjust.
7165         (FLOAT_TYPE_SIZE): Define to 32.
7166         (Pmode): DImode on SHmedia.
7167         (CONST_COSTS): Adjust for SHmedia literals.
7168         (PREDICATE_CODES): Added target_reg_operand.
7169         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7170         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7171         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7172         (cmpdi): Accept SHmedia.
7173         (movdicc_false, movdicc_true): New insns.
7174         (movdicc): New expand.
7175         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7176         no_new_pseudos.
7177         (addsi3_media): Match `S' constraint.
7178         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7179         (negdi2): Expand for SHmedia.
7180         (one_cmpldi2): New expand.
7181         (zero_extendsidi2): Change from expand to insn.
7182         (extendsidi2): Add constraints.
7183         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7184         LD/ST address.  Fix SI immediate loading split.
7185         (movhi_media, movqi_media, lduw, ldub): New insns.
7186         (movhi, movqi): Accept SHmedia.
7187         (shori_media, movdi_media): Relax input constraints.  Split
7188         symbolic constants.
7189         (movdf_media, movsf_media): New insn.  New split to movdi.
7190         (movdf, movsf): Match on SHmedia.
7191         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7192         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7193         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7194         (bunordered): New expand.
7195         (jump_compact): Renamed from `jump'.
7196         (jump_media): New insn.
7197         (jump): New expand.
7198         (call_media, call_value_media): New insns.
7199         (call, call_value): Adjust.
7200         (indirect_jump_compact): Renamed from `indirect_jump'.
7201         (indirect_jump_media): New insn.
7202         (indirect_jump): New expand.
7203         (untyped_call, return): Accept SHmedia.
7204         (return_media): New insn.
7205         (prologue, epilogue, blockage): Accept SHmedia.
7206         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7207         (sunordered): New expand.
7208         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7209         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7210         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7211         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7212         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7213         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7214         abssf2_media): New insns.
7215         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7216         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7217         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7218         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7219         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7220         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7221         absdf2_media): New insns.
7222         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7223         (extendsfdf2_media, truncdfsf2_media): New insns.
7224         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7225         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7226         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7227         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7228         * config/sh/sh.md (adddi3): New expand.
7229         (adddi3_media, adddi3z_media): New insns.
7230         (adddi3_compact): Renamed from adddi3.
7231         (addsi3_media): Use add.l r63 to add constant zero.
7232         (subdi3): New expand.
7233         (subdi3_media): New insn.
7234         (subdi3_compact): Renamed from subdi3.
7235         (mulsidi3): New expand.
7236         (mulsidi3_media): New insn.
7237         (mulsidi3_compact): Renamed from mulsidi3.
7238         (umulsidi3): New expand.
7239         (umulsidi3_media): New insn.
7240         (umulsidi3_compact): Renamed from umulsidi3.
7241         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7242         (ashlsi3, ashrsi3, lshrsi3): Use them.
7243         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7244         (ashldi3, ashrdi3, lshrdi3): Use them.
7245         (zero_extendsidi2): New expand.
7246         (extendsidi2): New insn.
7247         (movsi_media): New insn.  Split to movdi to load constants.
7248         (movsi): Enable for shmedia.
7249         (movdi_media): New insn.  Use shori_media to load wide constants.
7250         (short_media): New insn.
7251         (movdi): Enable for shmedia.
7252         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7253         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7254         (SUBTARGET_CPP_SPEC): Added `!m5'.
7255         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7256         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7257         to all other SH variants.
7258         (TARGET_DEFAULT): Set to SH1_BIT.
7259         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7260         (BITS_PER_WORD): Raise to 64 on shmedia.
7261         (MAX_BITS_PER_WORD): Change to 64.
7262         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7263         (INT_TYPE_SIZE): Keep as 32.
7264         (UNITS_PER_WORD): Raise to 8 on shmedia.
7265         (MIN_UNITS_PER_WORD): Keep as 4.
7266         (POINTER_SIZE): Raise to 64 on shmedia.
7267         (CONST_OK_FOR_J): New macro.
7268         (CONST_OK_FOR_LETTER_P): Use it.
7269         (processor_type): Add PROCESSOR_SH5.
7270         * config/sh/sh.md: Conditionalize all expands, insns and
7271         splits to TARGET_SH1.
7272         (cpu): Added sh5.
7273         (addsi3_compact): Renamed from...
7274         (addsi3): Now an expand.
7275         (addsi3_media, subsi3_media): New insns.
7276         (subsi3): Don't negate constants with SHmedia.
7277
7278         * hooks.c: New file.
7279         * hooks.h: New file.
7280         * Makefile.in (HOOKS_H): New.
7281         (TARGET_DEF_H): Added $(HOOKS_H).
7282         (OBJS): Added hooks.o.
7283         (cfgcleanup.o, bb-reorder.o): Added target.h.
7284         (hooks.o): Added dependencies.
7285         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7286         (TARGET_INITIALIZER): this.
7287         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7288         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7289         * bb-reorder.c: Include target.h.
7290         (reorder_basic_blocks): Skip if cannot modify jumps.
7291         * cfgcleanup.c: Include target.h.
7292         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7293
7294 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7295
7296         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7297         Protect jump delay slot instructions with .set noreorder and
7298         .set nomacro.
7299
7300 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7301
7302         * config/mips/mips.md (casesi_internal_di): Calculate
7303         the index into the target offset table correctly.
7304
7305 2002-02-08  Richard Henderson  <rth@redhat.com>
7306
7307         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7308         * final.c (output_addr_const): Accept and discard SUBREG.
7309         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7310         mark them unknown instead.
7311         (simplify_subtraction): Handle RTX_UNKNOWN.
7312         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7313
7314 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7315
7316         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7317
7318 2002-02-08  Richard Henderson  <rth@redhat.com>
7319
7320         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7321
7322 2002-02-08  Andreas Jaeger  <aj@suse.de>
7323
7324         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7325         * config/i386/t-linux64: New file.
7326
7327 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7328
7329         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7330         * c-parse.in (compstmt): Clear last_expr_type.
7331
7332 2002-02-07  Richard Henderson  <rth@redhat.com>
7333
7334         * loop.c (strength_reduce): Sink final_value when not
7335         eliminating a biv.
7336
7337 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7338
7339         * config/sparc/freebsd.h: Fix mismatched spec {.
7340
7341 2002-02-07  Richard Henderson  <rth@redhat.com>
7342
7343         * cfgrtl.c: Include recog.h and insn-config.h.
7344         (keep_with_call_p): Fix general_operand invocation.
7345         * Makefile.in (cfgrtl.o): Update dependencies.
7346
7347 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7348
7349         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7350         comment.  Accept HImode only if TARGET_H8300.
7351
7352 2002-02-07  Eric Christopher  <echristo@redhat.com>
7353
7354         * config/mips/crtn.asm: Cleanup #ifdefs.
7355
7356 2002-02-07  Eric Christopher  <echristo@redhat.com>
7357
7358         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7359         register 7 as RA instead of $31.
7360         * config/mips/crtn.asm: Ditto.
7361         * config/mips/mips.c (mips_move_2words): Add case for
7362         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7363         (compute_frame_size): Fix typo.
7364         (save_restore_insns): Ditto.  Make documentation about using
7365         register $7 as return register more precise.
7366         (mips_expand_epilogue): Fix comment. Add code to work around not
7367         being able to add to the stack pointer directly.
7368         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7369         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7370         epilogue.
7371
7372 2002-02-07  Tom Rix  <trix@redhat.com>
7373
7374         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7375         immediates in ldu and stdu DS opcode field.
7376         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7377         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7378         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7379
7380 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7381
7382         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7383         offset for stack bias.
7384
7385 2002-02-07  H.J. Lu <hjl@gnu.org>
7386
7387         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7388
7389 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7390
7391         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7392
7393 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7394
7395         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7396         * i386.c (x86_order_regs_for_local_alloc): New global function.
7397         * i386.h (REG_ALLOC_ORDER): CLeanup.
7398         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7399
7400 2002-02-07  Richard Henderson  <rth@redhat.com>
7401
7402         PR optimization/2463
7403         * alias.c (find_base_value): Recall base values for fixed hard regs.
7404         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7405
7406 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7407
7408         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7409         length.
7410
7411 2002-02-06  Richard Henderson  <rth@redhat.com>
7412
7413         PR c/5609
7414         * stmt.c (resolve_operand_name_1): Take more care with mixed
7415         named and unnamed operands.
7416
7417 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7418             Jan Hubicka  <jh@suse.cz>
7419
7420         * loop.c (remove_constant_addition): Avoid clobbering a shared
7421         CONST expression.
7422
7423 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7424
7425         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7426         * config/s390/t-linux64: New file.
7427         * config/s390/libgcc-glibc.ver: New file.
7428
7429 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7430
7431         * config/s390/linux64.h: Delete file.
7432         * config/s390/s390x.h: New file.
7433         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7434         as target header file.
7435         * config/s390/linux.h (TARGET_VERSION): Define depending on
7436         DEFAULT_TARGET_64BIT.
7437         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7438         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7439         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7440         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7441         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7442         (EXTRA_SPEC): New define.
7443         * config/s390/s390.h (TARGET_VERSION): Define depending on
7444         DEFAULT_TARGET_64BIT.
7445         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7446
7447 2002-02-06  Jason Merrill  <jason@redhat.com>
7448
7449         * c-decl.c (finish_function): Warn about a non-void function with
7450         no return statement and no abnormal exit.
7451         (current_function_returns_abnormally): New variable.
7452         (start_function): Clear it.
7453         (struct c_language_function): Add returns_abnormally.
7454         (push_c_function_context): Save it.
7455         (pop_c_function_context): Restore it.
7456         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7457         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7458         an explicit return type.
7459         * c-tree.h: Declare current_function_returns_abnormally.
7460         (C_FUNCTION_IMPLICIT_INT): New macro.
7461         * c-typeck.c (build_function_call): Set it.
7462         (c_expand_return): Set current_function_returns_value even if the
7463         value is erroneous.
7464
7465 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7466
7467         PR c/5420:
7468         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7469         unsafe for reevaluation.
7470
7471 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7472
7473         PR c/5482:
7474         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7475         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7476
7477 2002-02-06  Richard Henderson  <rth@redhat.com>
7478
7479         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7480         be a general_operand.  Dest for function value must be a pseudo.
7481
7482 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7483
7484         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7485         as SYMBOL_REFs from the constant pool.
7486
7487 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7488
7489         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7490         passed by invisible reference.
7491
7492 2002-02-05  Richard Henderson  <rth@redhat.com>
7493
7494         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7495
7496 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7497
7498         Implement using "base addresses" in insn operands as default.
7499         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7500         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7501         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7502         used to read the rtx value.
7503         (mmix_target_asm_function_epilogue): Fix spacing.
7504         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7505         (mmix_legitimate_address): Ditto.
7506         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7507         should be loaded with a GETA insn.  Don't allocate needless extra
7508         char for nul termination and fix misleading comment.
7509         (mmix_print_operand_address): Handle constants if
7510         TARGET_BASE_ADDRESSES.
7511         (mmix_output_register_setting): Use base addressing if
7512         TARGET_BASE_ADDRESSES and the number of insns is 3.
7513         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7514         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7515         to use R as constraint, add LDA to match s.
7516         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7517         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7518         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7519         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7520         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7521         order with other fixed registers.
7522         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7523         other parameter/call-clobbered registers.
7524         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7525         -mbase-addresses, -mno-base-addresses.
7526         (MMIX Options): Ditto.
7527
7528 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7529
7530         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7531
7532 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7533
7534         * config/rs6000/altivec.h: Change elem to _S_elem.
7535
7536 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7537
7538         * config/netbsd.h (WCHAR_TYPE): Define.
7539         (WCHAR_TYPE_SIZE): Ditto.
7540         (WINT_TYPE): Ditto.
7541         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7542         (WCHAR_UNSIGNED): Ditto.
7543         (WCHAR_TYPE_SIZE): Ditto.
7544         (WINT_TYPE): Ditto.
7545         * config/arm/netbsd.h: Likewise.
7546         * config/i386/netbsd-elf.h: Likewise.
7547         * config/i386/netbsd.h: Likewise.
7548         * config/m68k/netbsd-elf.h: Likewise.
7549         * config/m68k/netbsd.h: Likewise.
7550         * config/ns32k/netbsd.h: Likewise.
7551         * config/sparc/netbsd.h: Likewise.
7552         * config/vax/netbsd.: Likewise.
7553
7554 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7555
7556         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7557         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7558         (TARGET_INITIALIZER): this.
7559         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7560         (BITFIELD_NBYTES_LIMITED): Markup fix.
7561         * tree.h (default_ms_bitfield_layout_p): Declare.
7562         (record_layout_info): Added prev_field.
7563         * tree.c (default_ms_bitfield_layout_p): New fn.
7564         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7565         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7566         * stor-layout.c: Include target.h.
7567         (start_record_layout): Initialize prev_field.
7568         (place_field): Handle MS bit-field layout, and disregard
7569         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7570         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7571         * Makefile.in (stor-layout.o): Adjust dependencies.
7572
7573 2002-02-05  Jason Merrill  <jason@redhat.com>
7574
7575         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7576
7577 2002-02-05  Andreas Jaeger  <aj@suse.de>
7578
7579         * crtstuff.c: Fix comments.
7580
7581 2002-02-05  Richard Henderson  <rth@redhat.com>
7582
7583         PR fortran/3393
7584         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7585         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7586
7587         PR fortran/3392
7588         * config/mips/mips.c (function_arg): Handle TImode.
7589         (function_arg_advance): Likewise.
7590
7591 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7592
7593         * config/rs6000/altivec.h (vec_step_help): Rename to
7594         __vec_step_help.
7595
7596 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7597
7598         * config/rs6000/altivec.h: Fix typos.
7599
7600 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7601
7602         * config/arm/netbsd.h: Correct a comment.
7603
7604 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7605
7606         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7607         building void typed builtins.
7608
7609         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7610         (vec_step): Implement for C++.
7611
7612 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7613
7614         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7615
7616 2002-02-04  Richard Henderson  <rth@redhat.com>
7617
7618         * combine.c (nonzero_bits): Re-introduce special case for
7619         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7620
7621 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7622
7623         * doc/extend.texi: Warn about unsupported usage of altivec
7624         builtins.
7625
7626         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7627         (altivec_predicate_*): New.
7628
7629         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7630         Add C++ version of vec_*() functions.
7631
7632         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7633         (bdesc_2arg): Remove altivec predicates.
7634         (altivec_expand_builtin): Handle predicates.
7635         (altivec_init_builtins): Handle predicates.
7636         (altivec_expand_predicate_builtin): New.
7637
7638 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7639
7640         * pa.c (DO_FRAME_NOTES): Move forward.
7641         (store_reg): Revise handling of frame notes.
7642         (load_reg): Likewise.
7643         (set_reg_plus_d): Likewise.
7644         (hppa_expand_prologue): Likewise.
7645         (hppa_expand_epilogue): Likewise.
7646
7647 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7648
7649         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7650
7651 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7652
7653         PR c/4475, c++/3780:
7654         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7655         * c-common.h (SWITCH_TYPE): Define.
7656         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7657         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7658         Rename spareness variable to sparseness.
7659         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7660         if non-NULL instead of TREE_TYPE (orig_index).
7661         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7662         (expand_end_case): Define using expand_end_case_type.
7663         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7664         to expand_end_case_type.
7665         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7666
7667 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7668
7669         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7670         (BIGGEST_ALIGNMENT): Change to 128.
7671
7672 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7673
7674         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7675
7676 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7677
7678         * pa.md (call_internal_reg_64bit): Remove unused variable.
7679
7680 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7681
7682         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7683         field.
7684         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7685         * config/arm/arm.c (current_function_anonymous_args): Delete,
7686         replace uses with cfun->machine->uses_anonymous_args.
7687         (arm_reorg): Do not reset uses_anonymous_args.
7688
7689         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7690         any geenral register.
7691
7692 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7693
7694         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7695         the entry block.
7696
7697 2002-02-04  Richard Henderson  <rth@redhat.com>
7698
7699         * combine.c (force_to_mode): Remove STACK_BIAS code.
7700         (nonzero_bits): Likewise.  Replace sp/fp special case with
7701         REGNO_POINTER_ALIGN.
7702
7703         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7704         (HARD_FRAME_POINTER_REGNUM): New.
7705         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7706         (FIXED_REGS, CALL_USED_REGS): Update.
7707         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7708         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7709         (HARD_REGNO_NREGS): Update for SFP.
7710         (STACK_POINTER_OFFSET): Include bias here ...
7711         (FIRST_PARM_OFFSET): ... not here.
7712         (STACK_BIAS): Remove.
7713         (INIT_EXPANDERS): New.
7714         (STARTING_FRAME_OFFSET): Do not include bias.
7715         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7716         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7717         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7718         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7719         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7720         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7721         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7722         (MUST_SAVE_REGISTER): Likewise.
7723         (sparc_flat_function_prologue): Likewise.
7724         (sparc_flat_function_epilogue): Likewise.
7725         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7726         (sparc_init_modes): SFP is GENERAL_REGS.
7727         (sparc_builtin_saveregs): SFP does not have bias applied.
7728
7729 2002-02-04  Richard Henderson  <rth@redhat.com>
7730
7731         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7732         current_function_is_thunk.
7733         (alpha_sa_mask): Distinguish between current_function_is_thunk
7734         called from ASM_OUTPUT_MI_THUNK and not.
7735         (alpha_does_function_need_gp): Thunks always need gp.
7736         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7737         (alpha_output_mi_thunk_osf): New.
7738         * config/alpha/alpha-protos.h: Update.
7739         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7740
7741 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7742
7743         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7744         function types, not when they're taken away.
7745
7746 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7747
7748         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7749         CODE_LABEL and jump table when replacing a table jump with a
7750         simple jump.
7751
7752 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7753
7754         * config/s390/s390-protos.h (legitimize_la_operand,
7755         s390_secondary_input_reload_class, s390_plus_operand,
7756         s390_expand_plus_operand): Add prototypes.
7757
7758         config/s390/s390.c (s390_secondary_input_reload_class,
7759         s390_plus_operand, s390_expand_plus_operand): New functions.
7760
7761         (struct s390_address): New member 'pointer'.
7762         (s390_decompose_address): Compute it.
7763         (legitimate_la_operand_p): Use it.
7764         (legitimize_la_operand): New function.
7765         (movti, movdi, movdf splitters): Call it.
7766
7767         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7768         (PREDICATE_CODES): Add s390_plus_operand.
7769
7770         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7771         (la_ccclobber): Allow GENERAL_REGS as output operand.
7772
7773         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7774         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7775         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7776
7777 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7778
7779         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7780         register names for regular asm () construct.
7781
7782 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7783
7784         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7785         registers.
7786
7787 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7788
7789         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7790         pat for recog.
7791
7792 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7793
7794         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7795         constant pool to be identical by string address and index.
7796
7797 2002-02-04  Anthony Green  <green@redhat.com>
7798
7799         * output.h (SECTION_OVERRIDE): Define.
7800         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7801
7802 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7803
7804         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7805         by existing arm*-*-netbsd* (a.out) target.
7806         (ns32k-*-netbsdelf*): Likewise.
7807         (sparc-*-netbsdelf*): Likewise.
7808         (vax-*-netbsdelf*): Likewise.
7809
7810 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7811
7812         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7813         headers and libobjc headers.
7814
7815 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7816
7817         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7818         (_mingw.h): Remove duplicate include.
7819
7820 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7821
7822         * config.gcc: Set cpu_type to m68k for 68010, as well.
7823         (m68010-*-netbsdelf*): New...
7824         (m68k*-*-netbsdelf*): ...targets.
7825         * config/m68k/netbsd-elf.h: New file.
7826
7827 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7828
7829         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7830
7831 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7832
7833         * config/h8300/h8300.c (h8_push_ops): Move inside
7834         h8300_init_once.
7835         (h8_pop_ops): Likewise.
7836         (h8_move_ops): Likewise.
7837
7838 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7839
7840         * config/h8300/h8300.c (os_task): Make it static.
7841         (monitor): Likewise.
7842         (pragma_saveall): Likewise.
7843
7844 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7845
7846         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7847         constant is a valid sign-extension for Pmode.
7848
7849 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7850
7851         * config/h8300/h8300.c: Fix formatting.
7852
7853 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7854
7855         * config/h8300/h8300.md: Fix formatting.
7856
7857 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7858
7859         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7860         predicates of operands[1].  Split the patterns for each
7861         processor variant.
7862
7863 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7864
7865         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7866         of operands[1] to register_operand.
7867
7868 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7869
7870         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7871         * cpphash.c (_cpp_init_hashtable): Similarly.
7872         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7873         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7874         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7875         (cpp_handle_option): Handle the new options.
7876         * cpplex.c (cpp_interpret_charconst): Use new flag.
7877         * cpplib.h (struct cpp_options): New member signed_char.
7878         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7879         (cpp_options): Handle -fsigned-char and -funsigned-char.
7880         (static_specs): Remove signed_char_spec.
7881         (do_spec1): Don't handle %c.
7882         * system.h: Poison SIGNED_CHAR_SPEC.
7883         * tradcif.y (yylex): Use flag_signed_char.
7884         * tradcpp.h (flag_signed_char): New.
7885         * tradcpp.c (flag_signed_char): New.
7886         (main): Handle new command-line options.
7887         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7888 config:
7889         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7890         * avr/avr.h: Remove old comments.
7891         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7892         (CC1_SPEC): Pass -fsigned-char if -mic*.
7893         (SIGNED_CHAR_SPEC): Remove.
7894 doc:
7895         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7896
7897 2002-02-01  Eric Christopher  <echristo@redhat.com>
7898
7899         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7900         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7901         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7902         (ASM_OUTPUT_REG_POP): Ditto.
7903
7904 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7905
7906         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7907         patch.
7908
7909 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7910
7911         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7912
7913 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7914
7915         PR c/5304:
7916         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7917         unconditionally.
7918
7919 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7920
7921         * cfganal.c: Include tm_p.h.
7922         (keep_with_call_p): Fix the test that determines if a register holds
7923         the return value of a call.
7924
7925 2002-02-01  DJ Delorie  <dj@redhat.com>
7926
7927         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7928         we are given conflicting registers, switch to the other one we
7929         had allocated for us.
7930         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7931         as TImode so we know when the "other" register is available.
7932
7933 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
7934
7935         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7936         sparc/sparc_bi.h.
7937
7938 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7939
7940         * cfganal.c (keep_with_call_p): New function.
7941         (flow_call_edges_add): Prevent splitting a block between a call and
7942         a single-set instruction that should be kept in the same block.
7943
7944 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7945
7946         * doc/install.texi (avr): Update outdated URL.
7947
7948 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
7949
7950         * config/stormy16/stormy16.md (pushqi): New.
7951         (popqi): New.
7952         (pushhi): New.
7953         (pophi): New.
7954         (movhi): Remove stack operands.
7955         (movqi): Likewise.
7956         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7957         nonimmediate_nonstack_operand.
7958         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7959         New.
7960         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7961         New.
7962
7963 2002-01-31  Jason Merrill  <jason@redhat.com>
7964
7965         * Makefile.in (c-parse.c): Handle .output file.
7966         * objc/Make-lang.in (objc-parse.c): Likewise.
7967
7968 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
7969
7970         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7971         the -me[lb] option is given.  Don't output the default flag
7972         twice.
7973
7974 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
7975
7976         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7977         the primary source file; this has not been done yet.
7978         * c-decl.c (c_expand_body): Reset input_filename from
7979         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7980
7981 2002-01-31  Kazu Hirata  <kazu@hxi.com>
7982
7983         * rtlanal.c (subreg_regno_offset): Do not use
7984         SUBREG_REGNO_OFFSET.
7985         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7986         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7987
7988 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7989
7990         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
7991         version rather than GNATS version in --version output.
7992
7993 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
7994
7995         * ifcvt.c (noce_process_if_block): Make a copy of the destination
7996         when copying back from a temporary.
7997
7998 2002-01-30  Richard Henderson  <rth@redhat.com>
7999
8000         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8001         and new_dest are the same.
8002
8003 2002-01-30  Richard Henderson  <rth@redhat.com>
8004
8005         PR opt/5076
8006         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8007         * rtl.c (note_insn_name): Update.
8008         * emit-rtl.c (remove_unnecessary_notes): Kill it.
8009         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
8010         to perform loop rotation.
8011         (expand_exit_loop_top_cond): New.
8012         * tree.h (expand_exit_loop_top_cond): Declare it.
8013         * c-semantics.c (genrtl_while_stmt): Use it.
8014         (genrtl_for_stmt): Likewise.
8015
8016 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
8017
8018         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8019         arguments to 64-bit boundaries on 64-bit ABIs.
8020
8021 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
8022
8023         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8024
8025 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8026
8027         * c-decl.c (grokdeclarator): Handle type being a typedef for an
8028         invalid type.
8029
8030 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
8031
8032         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8033         * config/sparc/sparc_bi.h: Remove file.
8034         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8035
8036 2002-01-30  Richard Henderson  <rth@redhat.com>
8037
8038         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8039
8040 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
8041
8042         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8043
8044 2002-01-30  Jason Merrill  <jason@redhat.com>
8045
8046         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8047         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8048         (reg_save): Use DW_CFA_offset_extended_sf instead.
8049
8050         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8051
8052 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8053
8054         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8055         in cselib_lookup.
8056
8057 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8058
8059         * rs6000.md ("*call_value_local32"): Remove constraints.
8060         ("*call_value_local64"): Same.
8061         ("*call_value_indirect_nonlocal_aix32"): Same.
8062         ("*call_value_nonlocal_aix32"): Same.
8063         ("*call_value_indirect_nonlocal_aix64"): Same.
8064         ("*call_value_nonlocal_aix64"): Same.
8065         ("*call_value_nonlocal_sysv"): Same.
8066
8067 2002-01-29  Richard Henderson  <rth@redhat.com>
8068
8069         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8070
8071 2002-01-29  Richard Henderson  <rth@redhat.com>
8072
8073         * expr.c (force_operand): Ignore flag_pic for detecting pic
8074         address loads.
8075         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8076         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8077         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8078         instead of open-coded loop.
8079         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8080         be fixed when in use.
8081
8082 2002-01-29  Richard Henderson  <rth@redhat.com>
8083
8084         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8085         * sched-rgn.c (propagate_deps): Update them.
8086         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8087         clobbers list when either gets too long.
8088
8089 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8090
8091         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8092         and INDEX_REGS the same as GENERAL_REGS.
8093         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8094
8095 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8096
8097         * tree.c (build_nonstandard_integer_type): Correct prototype.
8098
8099 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8100
8101         * config/s390/s390.md (movstrsico, movstrdix_64,
8102         movstrsix_31): Remove, replace by ...
8103         (movstrdi_short, movstrsi_short, movstrdi_long,
8104         movstrsi_long): ... these.  New.
8105         (movstrdi, movstrsi): Adapt.
8106
8107         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8108         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8109         Remove unnecessary CC clobber.
8110         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8111         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8112
8113         (divmoddi4): Don't partially initialize TImode register.
8114
8115 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8116
8117         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8118
8119 2002-01-29  Richard Henderson  <rth@redhat.com>
8120
8121         * flow.c (print_rtl_and_abort): Remove.
8122         (print_rtl_and_abort_fcn): Remove.
8123         (verify_local_live_at_start): Use dump_bb instead.
8124         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8125         (verify_wide_reg_1): Return 2 on mode test failure.
8126
8127 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8128
8129         PR c/3325, c/3326, c/2511, c/3347
8130         * c-decl.c (enum_decl_context): Remove BITFIELD.
8131         (grokdeclarator): Take bitfield width as an input.
8132         Ensure bitfields are given the correct type.  Perform
8133         bitfield width validation with build_bitfield_integer_type
8134         rather than waiting for finish_struct.
8135         (grok_typename, grok_typename_in_parm_context, start_decl,
8136         push_parmdecl, grokfield, start_function): Update calls to
8137         grokdeclarator.
8138         (build_bitfield_integer_type): New function.
8139         (finish_struct): Move bitfield validation to grokdeclarator
8140         and build_bitfield_integer_type.
8141         * tree.c (build_nonstandard_integer_type): New function.
8142         * tree.h (build_nonstandard_integer_type): New prototype.
8143 objc:
8144         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8145
8146 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8147
8148         PR other/1502:
8149         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8150         don't ignore unrecognized -W* options.
8151         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8152         * cpplib.h (cpp_handle_option): Adjust prototype.
8153         * c-decl.c (c_decode_options): Pass 0 as last argument to
8154         cpp_handle_option.
8155
8156         PR c/2896:
8157         * gcc.c (cpp_unique_options): Split from cpp_options.
8158         (cpp_options): Source cpp_unique_options.
8159         (default_compilers): Use cpp_unique_options instead of cpp_options
8160         when used together with cc1_options.
8161         (static_specs): Add cpp_unique_options.
8162         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8163         when used together with cc1_options.
8164
8165 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8166
8167         * config/h8300/h8300-protos.h: Update the prototype of
8168         output_a_shift.
8169         * config/h8300/h8300.c (output_a_shift): Remove an unused
8170         argument 'insn'.  Remove redundant code.
8171         * config/h8300/h8300.md: Adust to the new prototype of
8172         output_a_shift.
8173
8174 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8175
8176         * config/h8300/h8300-protos.h: Update the prototypes of
8177         emit_a_rotate and expand_a_rotate.
8178         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8179         first argument to 'enum rtx_code'.
8180         (expand_a_rotate): Likewise.
8181
8182 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8183
8184         * config/h8300/h8300-protos.h: Update the prototype of
8185         output_simode_bld.
8186         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8187         'log2'.
8188         * config/h8300/h8300.md: Adjust to the new prototype.
8189
8190 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8191
8192         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8193         redundant code.
8194
8195 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8196
8197         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8198         is a fixed register before returning pic_offset_table_rtx.
8199         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8200         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8201
8202 2002-01-28  Jason Merrill  <jason@redhat.com>
8203
8204         * dwarf2.h: Sync with src version.
8205
8206 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8207
8208         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8209         BT_FN_VOID_PTR_VAR.
8210         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8211         * doc/extend.texi (__builtin_prefetch): Update documentation:
8212         first argument is now const void ptr.
8213
8214 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8215
8216         * config/h8300/h8300-protos.h: Remove an unused prototype.
8217
8218 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8219
8220         * toplev.c (lang_independent_init): Round up identifier size.
8221
8222 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8223
8224         * config.gcc: Revert previous change.
8225
8226 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8227
8228         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8229
8230 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8231
8232         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8233         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8234         other non-elf netbsd config frags.
8235         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8236         collect2 will does that.
8237         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8238         shared-lib frobbing will work.
8239
8240 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8241
8242         * config/h8300/h8300.h: Fix formatting.
8243         * config/h8300/h8300.md: Likewise.
8244
8245 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8246
8247         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8248         the old, removed AAA_standards fix.
8249         * fixinc/fixincl.x: Rebuilt.
8250
8251 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8252
8253         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8254         atexit call in crtbegin, hooked in after call to frame_dummy;
8255         register EH before registering __fini__start.
8256
8257 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8258
8259         * config/rs6000/altivec.h: Remove spurious semicolons.
8260
8261 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8262
8263         * config/h8300/h8300.md: Replace dead bit extraction patterns
8264         with ones that work.
8265
8266 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8267
8268         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8269         if not STRICT_ALIGNMENT.
8270         * rtl.h (MEM_ALIGN): Likewise.
8271
8272 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8273
8274         * doc/invoke.texi (-fdump-translation-unit): Revert this
8275         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8276
8277 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8278
8279         * config/h8300/h8300.md (define_constants): New.
8280         (anonymous patterns) Use defined constants appropriately.
8281
8282 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8283
8284         * config/h8300/h8300.c (function_arg): Remove redundant code.
8285
8286 2002-01-26  Richard Henderson  <rth@redhat.com>
8287
8288         * sched-deps.c (reg_pending_uses_head): New.
8289         (reg_pending_barrier): Rename from reg_pending_sets_all.
8290         (find_insn_list): Don't mark inline.
8291         (find_insn_mem_list): Remove.
8292         (add_dependence_list, add_dependence_list_and_free): New.
8293         (flush_pending_lists): Replace only_write param with separate
8294         for_read and for_write parameters.  Update all callers.  Use
8295         add_dependence_list_and_free.
8296         (sched_analyze_1): Do not add reg dependencies here; just set
8297         the pending bits.  Use add_dependence_list.
8298         (sched_analyze_2): Likewise.
8299         (sched_analyze_insn): Replace schedule_barrier_found with
8300         reg_pending_barrier.  Add all dependencies for pending reg
8301         uses, sets, and clobbers.
8302         (sched_analyze): Don't add reg dependencies for calls, just
8303         set pending bits.  Use regs_invalidated_by_call.  Treat
8304         sched_before_next_call as a normal list, not a fake insn.
8305         (init_deps): No funny init for sched_before_next_call.
8306         (free_deps): Free pending mems lists.  Don't zero reg_last.
8307         (init_deps_global): Init reg_pending_uses.
8308         (finish_deps_global): Free it.
8309         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8310         (find_insn_mem_list): Remove.
8311         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8312         (propagate_deps): Use them.  Zero temp mem lists.
8313
8314 2002-01-26  Richard Henderson  <rth@redhat.com>
8315
8316         * Makefile.in (CRTSTUFF_CFLAGS): New.
8317         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8318         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8319         crtstuff.c instead of alpha assembly version.
8320         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8321         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8322         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8323         (__do_global_dtors_aux): Mark used.
8324         (frame_dummy, __do_global_ctors_aux): Mark used.
8325         (fini_dummy, init_dummy): Remove.
8326
8327         * config/alpha/crtbegin.asm: Remove file.
8328         * config/alpha/crtend.asm: Remove file.
8329         * config/alpha/t-crtbe: Remove file.
8330         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8331         (LINK_EH_SPEC): New.
8332
8333         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8334         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8335         calling constructors.
8336         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8337
8338         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8339         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8340         CRT_END_INIT_DUMMY hack.
8341         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8342         FORCE_{INIT,FINI}_SECTION_ALIGN.
8343
8344         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8345         FORCE_{INIT,FINI}_SECTION_ALIGN.
8346
8347         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8348         invocation sequence.
8349         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8350
8351         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8352         (FORCE_CODE_SECTION_ALIGN): New.
8353
8354 2002-01-26  Richard Henderson  <rth@redhat.com>
8355
8356         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8357
8358 2002-01-26  Richard Henderson  <rth@redhat.com>
8359
8360         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8361         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8362
8363 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8364
8365         * config/h8300/h8300.md: Remove bit extraction patterns that
8366         cannot be triggered.
8367         Restrict each bit extraction pattern to a variant on which the
8368         pattern is tested.
8369
8370 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8371
8372         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8373
8374 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8375
8376         * config/h8300/h8300.md: Remove bit test patterns that cannot
8377         be triggered.
8378         Restrict each bit test pattern to a variant on which the
8379         pattern is tested.
8380
8381 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8382
8383         * builtins.c (expand_builtin_strncat): Remove redundant check for
8384         INTEGER_CST.
8385
8386 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8387
8388         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8389         default setting.
8390         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8391         existing setting.
8392
8393 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8394
8395         * dbxout.c (dbxout_init): Use assemble_name rather than just
8396         stripping off the first character.
8397         (dbxout_source_file): Likewise.
8398
8399 2002-01-25  DJ Delorie  <dj@redhat.com>
8400
8401         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8402         using rtx_equal_p, not by comparing pointers.
8403
8404 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8405
8406         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8407         for PIC_OFFSET_TABLE_REGNUM.
8408         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8409
8410 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8411
8412         * config.gcc (x86_64-*-freebsd*): New target.
8413         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8414         value.
8415         (i[34567]86-*-freebsd*): Don't include svr4.h.
8416         * config/i386/freebsd64.h: New file.
8417
8418 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8419
8420         * config/alpha/x-vms (version): Make static.
8421
8422         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8423         in previous checkin.
8424
8425         * Makefile.in (install-headers-cp): New target.
8426         * config.gcc (alpha-dec-*vms*): Install headers with
8427         install-headers-cp
8428
8429 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8430
8431         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8432         avoid it's copies.
8433
8434 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8435
8436         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8437         of compare_tree_int.
8438         (expand_builtin_strncat): Likewise.
8439         * c-decl.c (finish_struct): Use tree_low_cst.
8440         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8441         * tree.c (compare_tree_int): Likewise.
8442
8443 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8444
8445         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8446         adjustments even if they are implemented by more than two insns.
8447
8448 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8449
8450         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8451         * df.h (struct ref): Kill B.
8452         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8453
8454         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8455         * flow.c (propagate_one_insn): Use it.
8456         (mark_used_regs): Handle NIL.
8457
8458 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8459
8460         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8461         to help folding.
8462
8463 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8464
8465         * rs6000.md (prefetch): Make address V4SI mode so that the address
8466         is restricted to legitimate form for instruction.
8467
8468 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8469
8470         * doc/install.texi (xtensa-*-elf): New target.
8471         (xtensa-*-linux*): New target.
8472         * doc/contrib.texi: Add myself.
8473
8474 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8475
8476         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8477         purpose register to hold an SImode (or smaller) value.
8478
8479 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8480
8481         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8482         registry only.
8483         * crtstuff.c: Likewise.
8484
8485 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8486
8487         * config/h8300/h8300.md (negation patterns): Tighten
8488         predicates to register_operand.
8489
8490 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8491
8492         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8493         mode, not Pmode.
8494
8495         * builtins.c (expand_builtin_prefetch): Same.
8496
8497 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8498
8499         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8500         modes.
8501
8502 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8503
8504         * config/h8300/h8300.c (print_operand): Remove support for
8505         operand character 'A'.
8506         * config/h8300/h8300.md (three anonymous patterns): Replace
8507         operand character 'A' with either 'T' or 'S'.
8508
8509 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8510
8511         * config/h8300/h8300.c (print_operand): Remove support for
8512         operand character 'U'.
8513
8514 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8515
8516         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8517
8518 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8519
8520         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8521         values to be assigned to the stack pointer.
8522
8523 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8524
8525         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8526         to const_double needs to be done right for big-endian systems.
8527
8528 2002-01-24  Jason Merrill  <jason@redhat.com>
8529
8530         PR c++/2432
8531         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8532         to can_throw_internal.
8533
8534 2002-01-23  Richard Henderson  <rth@redhat.com>
8535
8536         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8537         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8538
8539 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8540
8541         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8542         (symGOT2reg): Use them, then set as GOT value as unchanging.
8543         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8544         as a temporary, if possible.
8545         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8546         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8547
8548 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8549
8550         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8551         accept to accept 0x80 as operands[2].
8552
8553 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8554
8555         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8556
8557 2002-01-23  Richard Henderson  <rth@redhat.com>
8558
8559         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8560
8561 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8562
8563         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8564         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8565         an attribute.
8566
8567 2002-01-23  Richard Henderson  <rth@redhat.com>
8568
8569         * expr.c (move_by_pieces_1): Extend size before negation.
8570
8571         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8572         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8573         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8574         * config/m68k/t-m68kelf: Likewise.
8575
8576 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8577
8578         * config/xtensa/elf.h: New file.
8579         * config/xtensa/lib1funcs.asm: New file.
8580         * config/xtensa/lib2funcs.S: New file.
8581         * config/xtensa/linux.h: New file.
8582         * config/xtensa/t-xtensa: New file.
8583         * config/xtensa/xtensa-config.h: New file.
8584         * config/xtensa/xtensa-protos.h: New file.
8585         * config/xtensa/xtensa.c: New file.
8586         * config/xtensa/xtensa.h: New file.
8587         * config/xtensa/xtensa.md: New file.
8588         * config.gcc (xtensa-*-elf*): New target.
8589         (xtensa-*-linux*): New target.
8590         * cse.c (canon_hash): Compare rtx pointers instead of register
8591         numbers.  This is required for the Xtensa port.
8592         * integrate.c (copy_insn_list): Handle case where the static
8593         chain is in memory and the memory address has to be copied to
8594         a register.
8595         * doc/invoke.texi (Option Summary): Add Xtensa options.
8596         (Xtensa Options): New node.
8597         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8598
8599 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8600
8601         * diagnostic.c (internal_error): Do ICE suppression only
8602         when ENABLE_CHECKING is not defined.
8603
8604         * c-typeck.c (require_complete_type): Return error_mark_node
8605         if type is error_mark_node.
8606
8607 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8608
8609         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8610         -Os and issue a warning.
8611
8612 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8613
8614         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8615         current (lack of) need for host configuration by hand.
8616
8617         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8618         references.  Documentation of some target macros moved from
8619         hostconfig.texi to tm.texi.
8620
8621 2002-01-23  Will Cohen  <wcohen@redhat.com>
8622
8623         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8624         defined.
8625
8626 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8627
8628         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8629         operand[3].
8630
8631 2002-01-23  Jason Merrill  <jason@redhat.com>
8632
8633         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8634
8635         * function.c (assign_parms): Don't put args of inline functions
8636         into registers when not optimizing.
8637
8638 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8639
8640         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8641         (prologue_use): New pattern.
8642         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8643         preference to gen_rtx_USE.
8644         (thumb_expand_prologue): Use gen_prologue_use in preference to
8645         gen_rtx_USE.
8646         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8647         gen_rtx_USE.
8648
8649 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8650
8651         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8652
8653 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8654
8655         PR c/3504
8656         * doc/extend.texi: Correct documentation of __alignof__.
8657
8658 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8659
8660         * params.h: Rename arguments of DEFPARAM so that it will be
8661         recognized as a translation keyword.
8662
8663 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8664
8665         * extend.texi: Document altivec functions.
8666         Fix N-bit adjectives in X86 builtin documentation.
8667
8668 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8669
8670         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8671         auto_inc_dec values.
8672
8673 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8674
8675         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8676         after backslash.
8677         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8678
8679 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8680
8681         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8682
8683 2002-01-22  Richard Henderson  <rth@redhat.com>
8684
8685         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8686         copy_insn not copy_rtx.
8687
8688 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8689
8690         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8691         "nonzero" as that might add "1" bits.  Ensure "constop" is
8692         properly sign extened.
8693         (force_to_mode): Tweak for sign extended constop.
8694
8695 2002-01-22  Richard Henderson  <rth@redhat.com>
8696
8697         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8698         for_each_rtx instead of assuming we're already looking at the MEM.
8699         (split_small_symbolic_mem_operand): Likewise.
8700         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8701         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8702
8703 2002-01-22  Richard Henderson  <rth@redhat.com>
8704
8705         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8706         sequence number for the literal.
8707         (divmoddi_internal_er): Likewise.
8708
8709 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8710
8711         PR java/4972
8712         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8713         in LIBICONV variable.
8714         * configure: Regenerated.
8715
8716 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8717
8718         * dependence.c (build_def_use): Remove array_idx.
8719
8720         * dwarfout.c (last_filename): Remove.
8721         (output_compile_unit_die): Remove last_filename.
8722
8723 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8724             Richard Henderson  <rth@redhat.com>
8725
8726         PR opt/3640
8727         * fold-const.c (fold): Optimize unsigned comparisons against
8728         UINT_MAX (and similar unsigned constants).
8729
8730 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8731
8732         * Makefile.in (loop.o): Depend on OPTABS_H.
8733         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8734         against the predicate.
8735
8736         PR target/5379
8737         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8738         for the address operand.
8739
8740 2002-01-22  Richard Henderson  <rth@redhat.com>
8741
8742         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8743
8744 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8745
8746         PR other/5450
8747         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8748         preprocessor flags.
8749
8750 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8751
8752         * config.gcc (x86_64-*-netbsd*): New target.
8753         * config/i386/netbsd64.h: New file.
8754
8755 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8756
8757         * regrename.c (kill_value): Fix typo.
8758
8759 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8760
8761         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8762
8763         * config/rs6000/rs6000.h: Same.
8764
8765         * function.c (instantiate_virtual_regs): Remove
8766         STARTING_FRAME_PHASE.
8767         (assign_stack_local_1): Same.
8768         Calculate frame phase.
8769
8770 2002-01-22  Nick Clifton  <nickc@redhat.com>
8771
8772         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8773         variable declaration to outer scope in order to simplify
8774         future extensions.
8775         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8776         arm_hard_regno_mode_ok.
8777         * config/arm/arm-protos.h: Add a prototype for
8778         arm_hard_regno_mode_ok.
8779         * config/arm/arm.c (soft_df_operand): Remove now redundant
8780         check for DImode values using IP_REGNUM.
8781         (nonimmediate_soft_df_operand): Remove now redundant check for
8782         DImode values using IP_REGNUM.
8783         (arm_hard_regno_mode_ok): New function. New check: make sure
8784         that DImode values are not stored in IP_REGNUM.
8785
8786         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8787         note with a USE.
8788         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8789
8790 2002-01-22  Jason Merrill  <jason@redhat.com>
8791
8792         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8793         consistency if this COMPOUND_STMT is scoped.
8794
8795 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8796
8797         * predict.c: Fix formatting.
8798         * print-tree.c: Likewise.
8799         * protoize.c: Likewise.
8800         * real.h: Likewise.
8801         * rtl.h: Likewise.
8802         * sbitmap.h: Likewise.
8803         * scan.c: Likewise.
8804         * sched-deps.c: Likewise.
8805         * sched-vis.c: Likewise.
8806         * sdbout.c: Likewise.
8807         * sibcall.c: Likewise.
8808         * ssa.c: Likewise.
8809         * ssa-ccp.c: Likewise.
8810         * ssa-dce.c: Likewise.
8811         * stmt.c: Likewise.
8812         * stor-layout.c: Likewise.
8813         * system.h: Likewise.
8814
8815 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8816
8817         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8818         if fits in bounds of base type.
8819
8820         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8821         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8822         (add_bound_info, default): If can't find a context, make a
8823         SAVE_EXPR.
8824         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8825
8826 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8827
8828         * c-typeck.c (parser_build_binary_op): If result from
8829         build_binary_op is ERROR_MARK just return error_mark_node without
8830         further processing.
8831
8832 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8833
8834         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8835         Split a.out-specific bits into...
8836         * config/netbsd-aout.h: ...this.
8837         * config/netbsd-elf.h: New file.
8838         * config/alpha/netbsd-elf.h: Remove.
8839         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8840         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8841         (STARTFILE_SPEC): Remove redundant definition.
8842         (ENDFILE_SPEC): Likewise.
8843         (LINK_SPEC): Likewise.
8844         (CPP_SPEC): Likewise.
8845         (ASM_SPEC): Likewise.
8846         (LIB_SPEC): Likewise.
8847         (SWITCH_TAKES_ARG): Likewise.
8848         (TARGET_MEM_FUNCTIONS): Likewise.
8849         (CPP_PREDEFINES): Redefine.
8850         (ASM_FINAL_SPEC): Remove redefinition.
8851         (ASM_COMMENT_START): Redefine.
8852         (FUNCTION_PROFILER): Define.
8853         (TARGET_VERSION): Redefine.
8854         Comment and formatting cleanup.
8855         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8856         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8857         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8858         big- or little-endian.
8859         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8860         * config.gcc (*-*-netbsd*): Add definitions common to all
8861         NetBSD configs.
8862         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8863         gnu_ld definitions.  Add netbsd-elf.h to and remove
8864         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8865         tmake_file, and don't lose previous tmake_file contents.
8866         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8867         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8868         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8869         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8870         (mipsel-*-netbsd*): Rename this to...
8871         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8872         mips/little.h to tm_file for mips*el-*.
8873         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8874         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8875         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8876
8877 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8878
8879         * pa-protos.h (reg_before_reload_operand): New function prototype.
8880         * pa.c (reg_before_reload_operand): New function implementation.
8881         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8882         contraints to "*m".
8883
8884 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8885
8886         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8887
8888 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8889
8890         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8891         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8892         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8893         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8894         (ENDFILE_SPEC): Undefine.
8895         (STARTFILE_SPEC): Redefine for PA.
8896
8897 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8898
8899         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8900
8901 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8902
8903         * config.gcc: Add entries to supported PowerPC --with-cpu
8904         types.
8905
8906 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8907
8908         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8909         true for 64-bit mode only SSE registers in 32-bit mode.
8910
8911 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8912
8913         * unwind-dw2.c: Fix formatting.
8914         * unwind-dw2-fde.c: Likewise.
8915         * unwind-dw2-fde.h: Likewise.
8916         * unwind-pe.h: Likewise.
8917         * varasm.c: Likewise.
8918         * varray.h: Likewise.
8919
8920 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
8921
8922         Remove workaround for register stack overwrite bug in mmix.
8923         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8924         support for TARGET_REG_STACK_FILL_BUG.
8925         * config/mmix/mmix.h: Remove member has_call_without_parameters.
8926         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8927         Delete.
8928         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8929         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8930         -mno-reg-stack-fill-bug-workaround.
8931         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8932         machine member has_call_without_parameters.
8933         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8934         -mreg-stack-fill-bug-workaround and
8935         -mno-reg-stack-fill-bug-workaround.
8936         (MMIX Options): Ditto.
8937
8938 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8939
8940         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8941         as appropriate.
8942         Remove redundant code.
8943
8944 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8945
8946         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8947         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8948         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8949         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8950         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8951         out target macro definitions and non-target-specific comments
8952         mostly taken from old versions of the manual.
8953
8954 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8955
8956         * config/h8300/h8300.h: Fix comment formatting.
8957         * config/ia64/aix.h: Likewise.
8958         * config/ia64/ia64-protos.h: Likewise.
8959         * config/ia64/ia64.c: Likewise.
8960         * config/ia64/ia64.h: Likewise.
8961         * config/ia64/ia64intrin.h: Likewise.
8962         * config/ia64/linux.h: Likewise.
8963         * config/ia64/unwind-aix.c: Likewise.
8964         * config/ia64/unwind-ia64.c: Likewise.
8965
8966 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8967
8968         * config/h8300/h8300.c: Revise comments about shift code.
8969
8970 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8971
8972         * config/h8300/h8300.c (function_arg): Update a comment.
8973
8974 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8975
8976         * config/h8300/h8300.md: Update the comments at the beginning
8977         of the file.
8978
8979 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8980
8981         * config/i370/i370.c: Fix comment formatting.
8982         * config/i370/i370.h: Likewise.
8983         * config/i370/i370.md: Likewise.
8984         * config/i370/linux.h: Likewise.
8985
8986 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8987
8988         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8989
8990         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8991         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8992         in incomplete case.
8993
8994 2002-01-20  Graham Stott  <grahams@redhat.com>
8995
8996         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8997
8998 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8999
9000         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9001
9002 2002-01-19  Tom Rix  <trix@redhat.com>
9003
9004         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9005
9006 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
9007
9008         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9009
9010         * function.c (assign_stack_local_1): Adjust x_frame_offset with
9011         STARTING_FRAME_PHASE.
9012         (STARTING_FRAME_PHASE): New.
9013         (instantiate_virtual_regs): Check saneness of
9014         STARTING_FRAME_PHASE.
9015
9016         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9017
9018 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9019
9020         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9021
9022 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9023
9024         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9025         be used for bootstrapping GCC 3.0.
9026
9027 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9028
9029         * config/h8300/h8300.md: Fix an insn length.
9030
9031 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9032
9033         * bitmap.h: Fix comment formatting.
9034         * combine.c: Likewise.
9035         * cppfiles.c: Likewise.
9036         * c-pragma.h: Likewise.
9037         * c-typeck.c: Likewise.
9038         * df.c: Likewise.
9039         * dwarf2out.c: Likewise.
9040         * function.c: Likewise.
9041         * gcc.c: Likewise.
9042         * genattrtab.c: Likewise.
9043         * gthr-win32.h: Likewise.
9044         * haifa-sched.c: Likewise.
9045         * predict.c: Likewise.
9046         * rtlanal.c: Likewise.
9047         * rtl.h: Likewise.
9048         * unwind-dw2-fde.h: Likewise.
9049         * unwind-pe.h: Likewise.
9050         * vmsdbgout.c: Likewise.
9051
9052 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9053
9054         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9055         if type_required and passed decl.
9056
9057 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9058
9059         * config.gcc (cpu_type): Include altivec.h in powerpc
9060         extra_headers.
9061         Same for darwin.
9062
9063         * config/rs6000/altivec.h: New.
9064
9065 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9066
9067         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9068         handling information.
9069         * doc/trouble.texi (Interoperation): Add libstdc++ information
9070         for AIX.
9071         (Misunderstandings): Add template instantiation and static template
9072         member information for AIX.
9073
9074 2002-01-17  Jason Merrill  <jason@redhat.com>
9075
9076         * dbxout.c (dbxout_type): Support const and volatile.
9077
9078         * except.c (add_partial_entry): Remove backwards compatibility code.
9079         (end_protect_partials): Likewise.
9080
9081 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9082
9083         * config/ia64/ia64.md (prologue_use): New.
9084         * config/ia64/ia64.c (ia64_expand_prologue): Use
9085         gen_prologue_use instead of gen_rtx_USE.
9086         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9087         as CODE_FOR_pred_rel_mutex.
9088         (ia64_sched_reorder2): Likewise.
9089
9090 2002-01-16  Eric Christopher  <echristo@redhat.com>
9091
9092         * config/mips/r3900.h: Reformat.
9093         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9094         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9095         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9096         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9097         * config/mips/t-elf: Remove mips3 multilib.
9098
9099 2002-01-16  H.J. Lu <hjl@gnu.org>
9100
9101         * config/mips/linux.h: Include "mips/abi64.h".
9102
9103 2002-01-16  H.J. Lu <hjl@gnu.org>
9104
9105         * config/mips/t-linux: New.
9106
9107         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9108
9109         * config/mips/linux.h: Don't include "gofast.h".
9110         (INIT_SUBTARGET_OPTABS): Removed.
9111
9112 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9113
9114         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9115         output_a_shift.
9116         * config/h8300/h8300.c: Likewise.
9117         * config/h8300/h8300.md: Likewise.
9118
9119 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9120
9121         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9122         spaces after an opcode name.
9123         (pushqi1_h8300hs): Likewise.
9124         (pushhi1_h8300hs): Likewise.
9125
9126 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9127
9128         * doc/extend.texi: Replace "option" with "attribute"
9129         appropriately.
9130
9131 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9132
9133         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9134         (and:DI () (const_int -8)).
9135         (split_small_symbolic_mem_operand): Split
9136         (mem (and:DI () (const_int -8)).
9137
9138 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9139
9140         PR target/5309:
9141         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9142         same way as TYPE_IMUL.
9143         (ultrasparc_sched_reorder): Likewise.
9144         * config/sparc/sparc.md (type): Add comment to update
9145         ultrasparc_sched_reorder when making changes.
9146
9147 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9148
9149         * doc/invoke.texi: Change the dump file name of block
9150         reordering pass from 28.bbro to 29.bbro.
9151         Mention -dk option.
9152
9153 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9154
9155         * i386.md (minsf splitter): Fix pasto.
9156
9157 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9158
9159         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9160         to frame pointer initialisation instruction.
9161         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9162         initialisation instruction.
9163         (soft_df_operand): Do not accept the IP register.
9164         (nonimmediate_soft_df_operand): Do not accept the IP register.
9165
9166 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9167
9168         PR target/5357:
9169         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9170         MASK_V8 being both set.
9171
9172 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9173
9174         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9175         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9176         config/s390/s390.md (call, call_value): Add GOT register to
9177         CALL_INSN_FUNCTION_USAGE where needed.
9178         (call_exp, call_value_exp): New.
9179
9180 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9181
9182         * config/arm/arm.c: General formatting tidy up.
9183
9184 2002-01-16  Graham Stott  <grahams@redhat.com>
9185
9186         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9187         cast and when casting an integer literal to "rtx" pointer.
9188         (expand_call): Likewise.
9189         * flow.c (try_pre_increment): Likewise.
9190         (find_use_as_address): Likewise.
9191         * integrate.c (expand_iline_function): Likewise.
9192         * regmove.c (try_auto_increment): Likewise.
9193
9194 2002-01-16  Graham Stott  <grahams@redhat.com>
9195
9196         * sched-rgn.c (passed): Use sbitmap_free.
9197         (header): Likewise.
9198         (inner): Likewise.
9199         (in_queue): Likewise.
9200         (in_stack): Likewise.
9201
9202 2002-01-15  Eric Christopher  <echristo@redhat.com>
9203
9204         * flow.c (propagate_one_insn): Change to use fatal_insn.
9205
9206 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9207
9208         * expmed.c (extract_fixed_bit_field): Remove unused code.
9209         * system.h: Poison SLOW_ZERO_EXTEND.
9210         * doc/tm.texi: Remove.
9211         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9212         * config/arm/arm.h: Likewise.
9213         * config/avr/avr.h: Likewise.
9214         * config/clipper/clipper.h: Likewise.
9215         * config/convex/convex.h: Likewise.
9216         * config/d30v/d30v.h: Likewise.
9217         * config/dsp16xx/dsp16xx.h: Likewise.
9218         * config/elxsi/elxsi.h: Likewise.
9219         * config/fr30/fr30.h: Likewise.
9220         * config/h8300/h8300.h: Likewise.
9221         * config/i370/i370.h: Likewise.
9222         * config/i386/i386.h: Likewise.
9223         * config/m68k/m68k.h: Likewise.
9224         * config/mips/mips.h: Likewise.
9225         * config/ns32k/ns32k.h: Likewise.
9226         * config/pdp11/pdp11.h: Likewise.
9227         * config/pj/pj.h: Likewise.
9228         * config/s390/s390.h: Likewise.
9229         * config/sh/sh.h: Likewise.
9230         * config/stormy16/stormy16.h: Likewise.
9231         * config/v850/v850.h: Likewise.
9232         * config/vax/vax.h: Likewise.
9233         * config/we32k/we32k.h: Likewise.
9234
9235 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9236
9237         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9238         (altivec_lvsl): Change constraint to b.
9239         (altivec_lvsr): Same.
9240         (altivec_lvebx): Same.
9241         (altivec_lvehx): Same.
9242         (altivec_lvewx): Same.
9243         (altivec_lvxl): Same.
9244         (altivec_lvx): Same.
9245         (altivec_stvx): Add parallel.
9246         (altivec_stvxl): Same.
9247         (altivec_stvehx): Same.
9248         (altivec_stvebx): Same.
9249         (altivec_stvebx): Same.
9250
9251 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9252
9253         * config.gcc: Change altivec.h to altivec-defs.h.
9254
9255         * config/rs6000/altivec.h: Delete.
9256
9257         * config/rs6000/altivec-defs.h: Add.
9258
9259 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9260
9261         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9262         and UMOD modes.
9263
9264         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9265         less than or equal to eight bytes.
9266
9267         * vax.md (andsi3): Remove constraints and change SET destination
9268         operand type to nonimmediate_operand.
9269         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9270         when it is a CONST_INT.
9271
9272 2002-01-15  Jason Merrill  <jason@redhat.com>
9273
9274         * c-common.def (FILE_STMT): New code.
9275         * c-common.c (statement_code_p): It's a statement.
9276         * c-common.h (stmt_tree_s): Add x_last_filename.
9277         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9278         (last_expr_filename): New macro.
9279         * c-semantics.c (begin_stmt_tree): Initialize it.
9280         (add_stmt): If the filename changed, also insert a
9281         FILE_STMT.
9282         (expand_stmt): Handle seeing one.
9283
9284 2002-01-15  Eric Christopher  <echristo@redhat.com>
9285
9286         * flow.c (propagate_one_insn): Add error message and print out
9287         insn for debugging.
9288
9289 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9290
9291         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9292         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9293         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9294         TRAMPOLINE_ALIGNMENT.
9295         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9296         to be in bits.
9297         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9298         PCC_BITFIELD_TYPE_MATTERS.
9299         * config/interix.h (STDC_VALUE): Remove.  Use
9300         STDC_0_IN_SYSTEM_HEADERS.
9301         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9302         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9303         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9304
9305 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9306
9307         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9308         not work on this platform currently.
9309
9310 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9311
9312         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9313         readonly_warning in _().
9314
9315 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9316
9317         * gcc.c (delete_if_ordinary): Backout previous change.
9318
9319 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9320
9321         * config/h8300/h8300.c (print_operand): Remove support for
9322         unused operand characters.
9323
9324         * read-rtl.c: Fix formatting.
9325         * real.c: Likewise.
9326         * recog.c: Likewise.
9327         * regclass.c: Likewise.
9328         * regmove.c: Likewise.
9329         * reg-stack.c: Likewise.
9330         * reload1.c: Likewise.
9331         * rtlanal.c: Likewise.
9332
9333 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9334
9335         * config/i386/i386.c: Fix formatting.
9336
9337 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9338
9339         * c-typeck.c (process_init_element): Don't save_expr
9340         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9341
9342 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9343
9344         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9345         emit optional traceback table if optimize_size or TARGET_ELF.
9346         * config/rs6000/rs6000.md (prefetch): New.
9347
9348 2002-01-15  Andreas Jaeger  <aj@suse.de>
9349
9350         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9351
9352 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9353
9354         * mips-tfile.c: Fix formatting.
9355
9356 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9357
9358         * unroll.c (final_reg_note_copy): Fix previous commit.
9359
9360 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9361
9362         * config/h8300/h8300-protos.h: Remove the prototype for
9363         eq_operator.
9364         * config/h8300/h8300.c (eq_operator): Remove.
9365
9366 2002-01-14  Richard Henderson  <rth@redhat.com>
9367
9368         * config/i386/i386.md (prefetch): Tidy.
9369         (prefetch_3dnow): Fix locality operand.
9370
9371 2002-01-14  Richard Henderson  <rth@redhat.com>
9372
9373         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9374         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9375
9376 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9377
9378         * reload1.c (reload_combine): Pass reg_sum replacement through
9379         copy_rtx in loop performing multiple changes.
9380
9381 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9382
9383         * except.c (remove_unreachable_regions): New.
9384         (free_eh_status): Clear exception_handler_labels.
9385         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9386         (find_exception_handler_labels): Don't add the same label more than
9387         once.
9388         (remove_exception_handler_label): Don't die if
9389         find_exception_handler_labels hasn't been called for the current
9390         function yet.
9391
9392 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9393
9394         * toplev.c (rest_of_compilation): Rebuild jump labels after
9395         gcse.
9396
9397 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9398
9399         * doc/extend.texi: Move documentation of X86 built-in functions
9400         here.
9401         * doc/invoke.texi: From here.
9402         * doc/sourcebuild.texi: Document location of documentation for
9403         machine built-in functions.
9404
9405 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9406
9407         * cppfiles.c (TEST_THRESHOLD): New macro.
9408         (SHOULD_MMAP): Ditto.
9409         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9410         be used.
9411
9412 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9413
9414         * unroll.c (final_reg_note_copy): Properly handle
9415         REG_LABEL
9416         (unroll_loops): Fix LOOP_CONDITION heuristics.
9417
9418 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9419
9420         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9421         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9422
9423 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9424
9425         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9426         threaded loop.
9427
9428 2002-01-14  Tom Rix  <trix@redhat.com>
9429
9430         * config/rs6000/rs6000.md: Fix typo with sradi.
9431
9432 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9433
9434         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9435         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9436         (clrstrdi, clrstrsi): Adapt callers.
9437
9438         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9439
9440         (movti splitter): Never use register 0 as base register.
9441
9442 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9443
9444         * combine.c (simplify_shift_const): Always generate new rtx
9445         for shift expression instead of reusing given expression.
9446
9447 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9448
9449         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9450         alpha_legitimize_address unless mode is Pmode.
9451
9452 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9453
9454         * doc/md.texi (Modifiers): Document the '*' constraint for the
9455         user.
9456
9457         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9458         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9459         for xstormy16 too.
9460
9461 2002-01-13  Richard Henderson  <rth@redhat.com>
9462
9463         * reload.c (find_reloads): Use a hard reg destination as reload reg
9464         for an input reload of the source.
9465
9466 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9467
9468         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9469         more generic.
9470
9471 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9472
9473         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9474         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9475
9476         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9477
9478 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9479
9480         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9481
9482 2002-01-12  Tom Rix  <trix@redhat.com>
9483
9484         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9485         TARGET_POWERPC64.
9486
9487 2002-01-12  Richard Henderson  <rth@redhat.com>
9488
9489         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9490
9491         * doc/invoke.texi: Update Alpha options.
9492
9493         * doc/invoke.texi: Update i386 built-in function lists.
9494
9495 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9496
9497         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9498         referencing outside.
9499
9500 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9501
9502         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9503         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9504         offsets, and change line folding.
9505         * optabs.c (expand_binop): Remove warnings.
9506         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9507
9508 2002-01-12  Graham Stott <grahams@redhat.com>
9509
9510         * attribs.c (handle_deprecated_attribute): constify WHAT.
9511         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9512         dangling else warning and constify WHAT.
9513         * except.h (struct function, struct inline_remap): Move
9514         struct tag forward defs before all prototypes.
9515         (duplicate_eh_regions): Whitespace.
9516
9517 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9518
9519         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9520         MODE_BASE_REG_CLASS.
9521         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9522
9523 2002-01-12  Richard Henderson  <rth@redhat.com>
9524
9525         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9526         (ix86_expand_vector_move): New.
9527         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9528         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9529         Remove old prefetch builtins.  Special case the logicals removed above.
9530         (ix86_expand_builtin): Likewise.
9531         (safe_vector_operand): Use V4SFmode, not TImode.
9532         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9533         (ix86_expand_timode_binop_builtin): New.
9534         * config/i386/i386-protos.h: Update.
9535         * config/i386/i386.h (enum ix86_builtins): Update.
9536         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9537         Use ix86_expand_vector_move in vector move expanders.
9538         (movti_internal, movti_rex64): Add xorps alternative.
9539         (sse_clrv4sf): Rename and adjust from sse_clrti.
9540         (prefetch): Don't work so hard.
9541         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9542         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9543         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9544
9545 2002-01-11  Richard Henderson  <rth@redhat.com>
9546
9547         * config/i386/mmintrin.h: New file.
9548         * config/i386/xmmintrin.h: New file.
9549         * config.gcc (i?86-*-*): Add extra_headers.
9550         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9551         truncation codes.
9552         (simplify_binary_operation): Handle saturating arithmetic codes.
9553         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9554         not the lowpart subreg.
9555         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9556         on error.
9557         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9558
9559 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9560
9561         * conflict.c (conflict_graph_compute): Free regsets when finished.
9562         * ssa.c (compute_coalesced_reg_partition): Likewise.
9563
9564 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9565
9566         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9567         every where we allocate a register.
9568
9569 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9570
9571         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9572         * lcm.c (compute_earliest, compute_farthest): Likewise.
9573
9574 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9575
9576         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9577
9578 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9579
9580         * doc/rtl.texi (Insns): Fix 2 typos.
9581
9582 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9583
9584         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9585         options.  Use @table @gcctabopt for MMIX options.  Add index
9586         entries for MMIX options.  Start new paragraph with first
9587         heading of the machine-dependent options.
9588
9589 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9590
9591         PR other/5299
9592         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9593         * combine.c (force_to_mode): Same.
9594         * reload1.c (clear_reload_reg_in_use): Same.
9595
9596 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9597
9598         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9599         and 'subtargets'.
9600
9601 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9602             Brad Lucier <lucier@math.purdue.edu>
9603
9604         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9605         mcpu.
9606
9607 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9608
9609         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9610         Protect with IN_LIBGCC.
9611         (LINK_EH_SPEC): Add required trailing space.
9612
9613 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9614
9615         * c-tree.h: Move function declarations so that they are listed
9616         under the filename which contains them.
9617         (check_identifier, finish_decl_top_level,
9618         lookup_name_current_level_global, shadow_record_fields): Remove.
9619
9620 2002-01-11  Andreas Jaeger  <aj@suse.de>
9621
9622         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9623         march.
9624
9625 2002-01-10  Richard Henderson  <rth@redhat.com>
9626
9627         * config/alpha/alpha.c (print_operand): Add 'J'.
9628         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9629         new operand with the sequence number for the lituse.  When splitting
9630         the insns, use gen_movdi_er_high_g and generate a sequence number.
9631         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9632
9633 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9634
9635         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9636         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9637         stvxl.
9638         (altivec_expand_builtin): Same.
9639         (altivec_expand_stv_builtin): New.
9640
9641         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9642
9643         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9644         ("altivec_lvehx"): New.
9645         ("altivec_lvewx"): New.
9646         ("altivec_lvxl"): New.
9647         ("altivec_lvx"): New.
9648         ("altivec_stvx"): New.
9649         ("altivec_stvebx"): New.
9650         ("altivec_stvehx"): New.
9651         ("altivec_stvewx"): New.
9652         ("altivec_stvxl"): New.
9653
9654 2002-01-10  Richard Henderson  <rth@redhat.com>
9655
9656         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9657         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9658         care not to delete instructions twice.
9659
9660 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9661
9662         * toplev.c: Don't declare environ (it's not used anywhere).
9663         * configure.in: Don't check for declaration of environ.
9664         * config/i386/xm-mingw32.h: Don't #define environ.
9665         * config.in, configure: Regenerate.
9666
9667 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9668
9669         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9670         * configure: Regenerate.
9671
9672         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9673         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9674         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9675         alpha/xm-vms.h.
9676         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9677         LIMITS_H_TEST here, not in m68k/x-next.
9678         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9679         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9680
9681         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9682         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9683         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9684
9685         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9686         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9687         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9688         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9689         replacement of quadlib.asm with quadlib.c.
9690
9691         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9692         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9693         config/rs6000/xm-beos.h: Delete file.
9694
9695         * config.gcc: Update to match above changes.
9696
9697 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9698
9699         * config/h8300/h8300.h: Fix comment typos.
9700         * config/h8300/h8300.md: Likewise.
9701         * config/h8300/lib1funcs.asm: Likewise.
9702
9703 2002-01-10  Dale Johannesen  <dalej@apple.com>
9704
9705         PR optimization/5269
9706         * unroll.c (precondition_loop_p): Make *increment be the correct
9707         sign when n_iterations known, to avoid confusing caller.
9708
9709 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9710
9711         * doc/extend.texi (deprecated): Fix a typo.
9712
9713 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9714
9715         * basic-block.h (update_br_prob_note): Declare.
9716         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9717         (try_forward_edges): Care negative frequencies and update note.
9718         (outgoing_edges_match): Tweek conditional merging heuristics.
9719         (try_crossjump_to_edge): use update_br_prob_note.
9720         * cfglayout.c (fixup_reorder_chain): Likewise.
9721         * cfrtl.c (update_br_prob_note): New.
9722         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9723
9724         * i386.c (ix86_decompose_address): Return -1 if address contains
9725         shift.
9726         (legitimate_address_p): Require ix86_decompose_address to return 1.
9727
9728         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9729         (cprop_insn): Likewise.
9730
9731 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9732
9733         * toplev.c: Fix formatting.
9734         * tree.c: Likewise.
9735         * tree-dump.c: Likewise.
9736         * unroll.c: Likewise.
9737         * unwind-dw2.c: Likewise.
9738         * unwind-dw2-fde.c: Likewise.
9739         * unwind-dw2-fde-glibc.c: Likewise.
9740         * unwind-sjlj.c: Likewise.
9741
9742 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9743
9744         * doc/invoke.texi: Document PDP-11 options.
9745
9746 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9747
9748         * config/h8300/h8300.h: Fix formatting.
9749
9750 2002-01-10  Ira Ruben   <ira@apple.com>
9751
9752         Add __attribute__ ((deprecated)).
9753         * extend.texi: Document __attribute__ ((deprecated)).
9754         * invoke.texi: Document -Wno-deprecated-declarations.
9755         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9756         * testsuite/gcc.dg/deprecated.c: New C test.
9757         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9758         (c_common_attribute_table): Add "deprecated" entry.
9759         (handle_deprecated_attribute): New function.
9760         * c-decl.c (deprecated_states): New enum.
9761         deprecated_state: State of "deprecated" handling.
9762         (start_decl): Set deprecated_state based on attributes.
9763         (grokdeclarator): Test for deprecated uses, propagate attribute.
9764         * c-typeck.c (build_component_ref): Test for deprecated fields.
9765         (build_external_ref): Test for deprecated primaries.
9766         * diagnostic.c (warn_deprecated_use) New function to issue
9767         warnings about __attribute__ ((depricated)) references.
9768         * flags.h (warn_deprecated_decl): Extern declared for
9769         -W[no-]deprecated-declarations option.
9770         * print-tree.c (print_node): Show deprecated flag status.
9771         * toplev.c (warn_deprecated_decl): Defined.
9772         (W_options): Added "deprecated-declaration".
9773         * toplev.h (warn_deprecated_use): Extern declared.
9774         * tree.h (struct tree_common): Define deprecated_flag.
9775         (TREE_DEPRECATED): New macro to access flag.
9776         * cp/call.c (build_call): Test for deprecated calls.
9777         * cp/class.c (add_implicitly_declared_members): Set global
9778         flag to tell grokdeclarator to not issue deprecated warnings.
9779         * cp/cp-tree.h: Add extern for adding_implicit_members.
9780         * cp/decl.c (deprecated_states): New enum.
9781         (start_decl): Set deprecated_state based on attributes.
9782         (grokdeclarator): Test for deprecated uses, propagate attribute.
9783         * cp/lex.c (do_identifier): Test for deprecated primaries.
9784         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9785
9786 2002-01-10  Ira Ruben   <ira@apple.com>
9787
9788         Fix to assign attributes to inline member functions.
9789         * cp/decl.c (start_method): Handle attrlist.
9790
9791 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9792
9793         * combine.c (expand_field_assignment): Use subreg_lsb().
9794
9795 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9796
9797         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9798         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9799         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9800         Recurse for any operand of AND as long as constant is non-zero.
9801
9802 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9803
9804         * config/h8300/h8300.md: Remove constraints from expanders.
9805
9806 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9807
9808         * varasm.c: Fix formatting.
9809         * varray.c: Likewise.
9810         * vmsdbgout.c: Likewise.
9811         * xcoffout.c: Likewise.
9812
9813 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9814
9815         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9816         update edge probabilities to match.
9817
9818 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9819
9820         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9821         dependencies.
9822         * doc/languages.texi, doc/sourcebuild.texi: New files.
9823         * doc/configfiles.texi: Make a subsubsection.  Update.
9824         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9825         instructions for building GCC.
9826         * doc/makefile.texi: Make a subsection.
9827         * doc/gccint.texi: Update.
9828
9829 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9830
9831         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9832
9833 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9834
9835         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9836
9837 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9838
9839         * optabs.c (expand_fix): Look for wider integer modes first.
9840
9841         * i386.md (mov?f): Avoid the fake const double trick for medium
9842         memory model.
9843         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9844         (fop_df_4): Disable for SSE compilation.
9845
9846 2002-01-10  Graham Stott  <grahams@redhat.com>
9847
9848         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9849         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9850
9851 2002-01-10  Richard Henderson  <rth@redhat.com>
9852
9853         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9854
9855 2002-01-10  Richard Henderson  <rth@redhat.com>
9856
9857         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9858         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9859
9860 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9861
9862         * combine.c (can_combine_p): Fix a comment typo.
9863
9864 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9865
9866         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9867         empty list correctly.  Change loop index $t to $f for
9868         consistency with rest of Makefile.
9869
9870 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9871
9872         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9873         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9874
9875         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9876         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9877         (altivec_init_builtins): Same.
9878         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9879         (altivec_expand_binop_builtin): Same.
9880         (altivec_expand_ternop_builtin): Same.
9881         (bdesc_dst): New.
9882
9883         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9884         ("altivec_vctuxs"): Fix typo.
9885         ("altivec_vnmsubfp"): Same.
9886         ("altivec_dssall"): New.
9887         ("altivec_mfvscr"): New.
9888         ("altivec_dss"): New.
9889         ("altivec_lvsl"): New.
9890         ("altivec_lvsr"): New.
9891         ("altivec_dstt"): New.
9892         ("altivec_dstst"): New.
9893         ("altivec_dststt"): New.
9894         ("altivec_dst"): New.
9895
9896         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9897         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9898
9899 2002-01-09  Richard Henderson  <rth@redhat.com>
9900
9901         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9902
9903 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9904
9905         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9906         function.
9907         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9908         prototype.
9909         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9910
9911 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9912
9913         * read-rtl.c: Fix formatting.
9914         * real.c: Likewise.
9915         * regclass.c: Likewise.
9916         * regrename.c: Likewise.
9917         * reg-stack.c: Likewise.
9918         * reload1.c: Likewise.
9919         * reload.c: Likewise.
9920         * rtl.c: Likewise.
9921
9922 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9923
9924         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9925         to extract items in the expr_list chain.
9926
9927 2002-01-09  Richard Henderson  <rth@redhat.com>
9928
9929         * config/vax/vax.c (vax_rtx_cost): Never abort.
9930
9931         * config/vax/vax.h (REAL_ARITHMETIC): Define.
9932
9933 2002-01-09  Jan Hubicka  <jh@suse.cz>
9934
9935         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9936
9937 2002-01-09  Richard Henderson  <rth@redhat.com>
9938
9939         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9940         Unify code from various alternatives.
9941
9942 2002-01-09  Richard Henderson  <rth@redhat.com>
9943
9944         * regrename.c (copy_value): Ignore the copy if the source register
9945         is present in the value chain with a narrower mode.
9946
9947 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9948
9949         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9950         for the c4x target. Also improve layout.
9951
9952 2002-01-09  Richard Henderson  <rth@redhat.com>
9953
9954         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9955         * config/m32r/m32r.md (and ior xor splitters): Swap operands
9956         to match insn patterns.
9957
9958 2002-01-09  Richard Henderson  <rth@redhat.com>
9959
9960         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9961         (copyprop_hardreg_forward_1): Likewise.
9962
9963 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9964
9965         * pa.md (decrement_and_branch_until_zero): Change predicate for
9966         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9967
9968 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9969
9970         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9971         gets undefined. For Darwin.
9972
9973 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9974
9975         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9976
9977 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9978
9979         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9980
9981 2002-01-08  Richard Henderson  <rth@redhat.com>
9982
9983         * regrename.c (copy_value): Ignore overlapping copies.
9984
9985 2002-01-08  Richard Henderson  <rth@redhat.com>
9986
9987         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9988         as needed to avoid shared structure.
9989
9990 2002-01-08  Kazu Hirata  <kazu@hxi.com>
9991
9992         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9993         H8/300H and H8/S.
9994
9995 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9996
9997         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9998         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9999         documentation of obsolete macros.
10000         * system.h: Poison these macros.
10001         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10002         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10003         config/c4x/c4x.h, config/clipper/clipper.h,
10004         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10005         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10006         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10007         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10008         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10009         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10010         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10011         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10012         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10013         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10014         config/sparc/sparc.h, config/stormy16/stormy16.h,
10015         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10016         definitions and commented out definitions of obsolete macros.
10017         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10018         of MAX_INT_TYPE_SIZE.
10019
10020 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10021
10022         * config/s390/s390.c (s390_preferred_reload_class): Never
10023         return ADDR_REGS if it isn't a subset of the given class.
10024         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10025         FP_REGS, but all superclasses as well.
10026
10027         * config/s390/s390.c (s390_function_profiler): Fix thinko.
10028
10029         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10030         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10031         must not be a const_int.
10032
10033 2002-01-08  Richard Henderson  <rth@redhat.com>
10034
10035         * Makefile.in (toplev.o): Depend on options.h.
10036         (gcc.o): Depend on specs.h.
10037
10038 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
10039
10040         * expr.c (store_expr): Convert VOIDmode constants back to target's
10041         mode.
10042
10043 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10044
10045         * doc/invoke.texi: Markup gcc as @command.  Refer to
10046         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10047         of http://gcc.gnu.org/thanks.html.
10048
10049 2002-01-08  Dale Johannesen  <dalej@apple.com>
10050
10051         * config/rs6000/rs6000.md: Add missing int register
10052         target case to movdf_low.
10053
10054 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10055
10056         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10057         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10058         (cppinit.o): Depend on except.h.
10059         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10060         s-specs): New rules.
10061
10062         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10063         Don't create specs.h/options.h/gencheck.h here.  Remove
10064         unnecessary variable settings from last argument of AC_OUTPUT.
10065         * config.in, configure: Regenerate.
10066         * intl.c: Hardcode package name as "gcc".
10067
10068         * cppinit.c: Include except.h.
10069         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10070         appropriate.
10071         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10072         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10073         (!)USING_SJLJ_EXCEPTIONS.
10074         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10075
10076 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10077
10078         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10079         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10080         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10081         documentation of obsolete macros.
10082         * system.h: Poison these macros.
10083         * config/d30v/d30v.h, config/ns32k/encore.h,
10084         config/stormy16/stormy16.h: Remove definitions and commented out
10085         definitions of obsolete macros.
10086
10087 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10088
10089         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10090         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10091         warnings.
10092
10093 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10094
10095         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10096         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10097         to insn adjusting stack/frame pointer.
10098         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10099         accept operands that cause the insn to be non-splittable.
10100
10101 2002-01-08  Graham Stott  <grahams@redhat.com>
10102
10103         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10104         (C_TYPE_FIELDS_VOLATILE): Likewise.
10105         (C_TYPE_BEING_DEFINED): Likewise.
10106         (C_IS_RESERVED_WORD): Likewise.
10107         (C_TYPE_VARIABLE_SIZE): Likewise.
10108         (C_DECL_VARIABLE_SIZE): Likewise.
10109         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10110         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10111         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10112         parenthesis.
10113         (C_DECL_ANTICIPATED): Likewise.
10114         (c_build_type_variant): Add parenthesis.
10115
10116 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10117
10118         * gcc.c (option_map): Remove --version.
10119         (process_command): Handle -fversion following the GNU Coding
10120         Standards.  Partially addresses PR other/704.
10121
10122 2002-01-08  Graham Stott  <grahams@redhat.com>
10123
10124         * combine.c (combine_instructions): Fix typo.
10125
10126 2002-01-08  Graham Stott  <grahams@redhat.com>
10127
10128         * debug.h: Use "tree" and "rtx" throughout.
10129
10130         * debug.c: Likewise.
10131
10132 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10133
10134         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10135         constant pool, use the pool's version of the symbol instead.
10136
10137 2002-01-07  Richard Henderson  <rth@redhat.com>
10138
10139         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10140         the original register was copied in a mode with a fewer number of
10141         hard registers than the desired mode.
10142         (copyprop_hardreg_forward_1): Likewise.
10143         (debug_value_data): Fix loop test.
10144         * toplev.c (parse_options_and_default_flags): Reenable
10145         -fcprop-registers at -O1.
10146
10147 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10148
10149         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10150         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10151
10152         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10153         predicates.
10154
10155         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10156
10157 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10158
10159         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10160         (pa_output_function_prologue): Output local label at the beginning of
10161         the prologue when profiling.
10162         (hppa_profile_hook): Use the local label rather than the function label.
10163         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10164
10165 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10166
10167         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10168         (altivec_expand_unop_builtin): Fix thinko.
10169         (altivec_expand_binop_builtin): Same.
10170         (altivec_expand_ternop_builtin): Same.
10171         (altivec_expand_builtin): Same.
10172
10173 2002-01-07  Richard Henderson  <rth@redhat.com>
10174
10175         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10176
10177 2002-01-07  Jason Merrill  <jason@redhat.com>
10178
10179         * unwind-dw2.c (execute_cfa_program): Use < again.
10180
10181 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10182
10183         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10184
10185 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10186
10187         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10188         Don't allow -1 - x -> ~x simplifications in the first pass.
10189
10190 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10191
10192         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10193         arguments.
10194         (altivec_expand_binop_builtin): Same.
10195         (altivec_expand_unop_builtin): Same.
10196         (print_operand): Fix typo.
10197         (bdesc_1arg): Add vupk* variants.
10198
10199         * rs6000.h (rs6000_builtins): Add vupk* enums.
10200
10201         * rs6000.md: Add altivec_vupk* variants.
10202
10203 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10204
10205         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10206         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10207         and last update dates.
10208
10209 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10210
10211         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10212
10213 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10214
10215         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10216         * config/avr/avr.h (CPP_SPEC): Likewise.
10217         (LINK_SPEC): Likewise.
10218         (CRT_BINUTILS_SPECS): Likewise.
10219         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10220         * doc/invoke.texi (AVR Options): Document them.
10221
10222 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10223
10224         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10225         LABEL_NUSES.
10226
10227 2002-01-07  Graham Stott  <grahams@redhat.com>
10228
10229         * config/i386/i386.h: Update copyright date.
10230         (HALF_PIC_PTR): Add parenthesis.
10231         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10232         (CONSTANT_ALIGNMENT): Add parenthesis.
10233         (DATA_ALIGNMENT): Likewise.
10234         (LOCAL_ALIGNMENT): Likewise.
10235         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10236         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10237         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10238         (HARD_REGNO_NREGS): Add paranethesis.
10239         (VALID_SSE_REG_MODE): Whitespace.
10240         (VALID_MMX_REG_MODE): Whitespace.
10241         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10242         (ix86_hard_regno_mode_ok): Add parenthesis.
10243         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10244         (RETURN_IN_MEMORY): Whitespace.
10245         (N_REG_CLASSES): Add parenthesis.
10246         (INTEGER_CLASS_P): Add parenthesis and wrap.
10247         (FLOAT_CLASS_P): Likewise.
10248         (SSE_CLASS_P): Likewise.
10249         (MMX_CLASS_P): Likewise.
10250         (MAYBE_INTEGER_CLASS_P): Likewise.
10251         (MAYBE_FLOAT_CLASS_P): Likewise.
10252         (MAYBE_SSE_CLASS_P): Likewise.
10253         (MAYBE_MMX_CLASS_P): Likewise.
10254         (Q_CLASS_P): Likewise.
10255         (GENERAL_REGNO_P): Uppercase macro parameter.
10256         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10257         (FP_REGNO_P): Likewise.
10258         (ANY_FP_REGNO_P): Uppercase macro parameter.
10259         (SSE_REGNO_P): Likewise.
10260         (SSE_REGNO): Likewise.
10261         (SSE_REG_P): Likewise.
10262         (SSE_FLOAT_MODE_P): Likewise.
10263         (MMX_REGNO_P): Likewise.
10264         (MMX_REG_P):Likewise.
10265         (STACK_REG_P): Likewise.
10266         (NON_STACK_REG_P): Likewise.
10267         (STACK_TOP_P): Likewise.
10268         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10269         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10270         (SECONDARY_MEMORY_NEEDED): Likewise.
10271         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10272         (MD_ASM_CLOBBERS): Whitespace and wrap.
10273         (MUST_PASS_IN_STACK): Whitespace and wrap.
10274         (RETURN_POPS_ARGS): Add parenthesis.
10275         (INIT_CUMULATIVE_ARGS): Likewise.
10276         (FUNCTION_ARG): Likewise.
10277         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10278         (SETUP_INCOMING_VARARGS): Likewise.
10279         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10280         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10281         parenthsis.
10282         (EXPAND_BUILTIN_VA_ARG): Likewise.
10283         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10284         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10285         (INITIAL_ELIMINATION_OFFSET): Likewise.
10286         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10287         (REGNO_OK_FOR_BASE_P): Likewise.
10288         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10289         (REGNO_OK_FOR_DIREG_P): Likewise.
10290         (REG_OK_FOR_INDEX_P): Whitespace.
10291         (REG_OK_FOR_BASE_P): Whitespace.
10292         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10293         parenthesis.
10294         (FIND_BASE_TERM): Fix typo.
10295         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10296         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10297         (SYMBOLIC_CONST; Whitespace.
10298         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10299         (ENCODE_SECTION_INFO): Whitespace.
10300         (FINALIZE_PIC): Remove do { ... } while (0).
10301         (PROMOTE_MODE): Wrap in do { ... } while (0).
10302         (CONST_COSTS): Whitespace.
10303         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10304         (REGISTER_MOVE_COST): Add parenthesis.
10305         (MEMORY_MOVE_COST): Likewise.
10306         (EXTRA_CC_MODES): Whitespace.
10307         (SELECT_CC_MODE): Add parenthesis and whitespace.
10308         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10309         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10310         (ASM_OUTPUT_LABEL): Add paramethesis.
10311         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10312         (ASM_OUTPUT_REG_POP): Likewise.
10313         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10314         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10315
10316         * config/i386/i386.c: Update copyright.
10317         (CHECK_STACK_LIMIT): Add parenthesis.
10318         (AT_BP): Uppercase macro parameter.
10319         (x86_64_int_parameter_registers): Constify.
10320         (x86_64_int_return_registers): Likewise.
10321         (ix86_compare_op0): Use rtx.
10322         (construct_container): Constify INTREG parameter.
10323         (function_arg): Use rtx.
10324
10325         * diagnostic.h: Update copyright date.
10326         (output_buffer_state): Add parenthesis.
10327         (output_buffer_format_args): Likewise.
10328
10329         * combine.c (combine_instructions): Replace XEXP (links, 0)
10330         with link.
10331
10332 2002-01-06  H.J. Lu <hjl@gnu.org>
10333
10334         * cfgcleanup.c (thread_jump): Fix 2 typos.
10335
10336 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10337
10338         * config.gcc: Add support for --enable-altivec.
10339
10340 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10341
10342         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10343
10344 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10345
10346         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10347         __objc_class_name_*.
10348
10349 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10350
10351         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10352
10353 2002-01-06  Richard Henderson  <rth@redhat.com>
10354
10355         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10356         nop them out.  Increment label reference count for REG_LABEL.
10357         (fill_slots_from_thread): Frob label reference count around
10358         delete_related_insns.
10359
10360 2002-01-05  Richard Henderson  <rth@redhat.com>
10361
10362         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10363         jump threading.
10364
10365 2002-01-05  Richard Henderson  <rth@redhat.com>
10366
10367         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10368         * integrate.c (output_inline_function): Likewise.
10369         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10370         to remove_unnecessary_notes after emitting abstract instance.
10371         Force an emitted nested function to have its parent emited as well.
10372         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10373         for null.
10374         (rtl_for_decl_location): Do not look at reload data structures
10375         before reload has run.
10376
10377 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10378
10379         * cse.c: Fix formatting.
10380         * dwarf2asm.c: Likewise.
10381         * dwarf2out.c: Likewise.
10382         * explow.c: Likewise.
10383         * expmed.c: Likewise.
10384         * function.c: Likewise.
10385         * gcov.c: Likewise.
10386         * gencheck.c: Likewise.
10387         * genrecog.c: Likewise.
10388         * ggc-common.c: Likewise.
10389         * ggc-page.c: Likewise.
10390         * global.c: Likewise.
10391
10392 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10393
10394         * combine.c: Fix formatting.
10395
10396 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10397
10398         PR middle-end/1557
10399         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10400
10401 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10402
10403         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10404         as 1 for __powerpc64__ as well.
10405
10406         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10407
10408         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10409         return it.
10410
10411 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10412
10413         * lcm.c: Revert change, due to performance regression it causes on
10414         SPEC because it's slightly more conservative (sigh, I hate
10415         edge-based LCM).
10416
10417 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10418
10419         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10420
10421 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10422
10423         * doc/cppinternals.texi: Update.
10424
10425 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10426
10427         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10428         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10429         negatives.
10430         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10431         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10432         kludge for pre-october-14th mmix versions to handle new-found bug
10433         with PUSHJ/PUSHGO and the register stack.
10434         * config/mmix/mmix.h (struct machine_function): Rename member
10435         has_call_value_without_parameters to has_call_without_parameters.
10436         All referers changed.
10437         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10438         TARGET_MASK_BRANCH_PREDICT): New macros.
10439         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10440         -mno-reg-stack-fill-bug-workaround.
10441         * config/mmix/mmix.md ("call"): Set struct machine member
10442         has_call_without_parameters.
10443
10444 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10445
10446         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10447
10448 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10449
10450         * cfgcleanup.c: Include tm_p.h
10451         (mark_effect): Fix handling of hard register; fix handling of SET
10452
10453 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10454
10455         * config/h8300/h8300.md (anonymous patterns): Check that
10456         operands are registers before using REGNO on them.
10457
10458 2002-01-03  Roland McGrath  <roland@frob.com>
10459
10460         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10461
10462 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10463
10464         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10465         * c-common.h (genrtl_expr_stmt_value): Likewise.
10466         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10467         (expand_expr_stmt_value): Add maybe_last argument.
10468         Don't warn about statement with no effect if it is the last statement
10469         in expression statement.
10470         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10471         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10472         expand_expr_stmt_value.
10473         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10474         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10475         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10476         as maybe_last to expand_expr_stmt_value.
10477
10478 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10479
10480         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10481         be passed in, do not build it.
10482         (c_begin_if_stmt): New function.
10483         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10484         * c-common.h (c_expand_start_cond): Update prototype.
10485         (c_begin_if_stmt): Prototype new function.
10486         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10487         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10488         c_begin_while_stmt and c_finish_while_stmt_cond.
10489
10490 2002-01-04  William Cohen  <wcohen@redhat.com>
10491
10492         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10493         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10494         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10495         * config/pa/som.h (ASM_FILE_START): Likewise.
10496
10497 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10498
10499         * lcm.c: Include df.h.
10500         Add available_transfer_function prototype.
10501         (compute_available): Rework to use iterative dataflow framework.
10502         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10503         with bb_info in df.h
10504         (available_transfer_function): New function.
10505
10506         * Makefile.in (lcm.o): add df.h to dependencies.
10507
10508 2002-01-04  Richard Henderson  <rth@redhat.com>
10509
10510         * config/alpha/alpha.c (some_operand): Accept HIGH.
10511         (input_operand): Likewise; accept simple references to globals.
10512         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10513         (alpha_const_double_ok_for_letter_p): Likewise.
10514         (alpha_extra_constraint): Likewise.
10515         (alpha_preferred_reload_class): Likewise.  Do not force
10516         symbolic constants to memory.
10517         (alpha_legitimate_address_p): Accept simple references
10518         to small_symbolic_operand.
10519         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10520         called when no_new_pseudos.  Emit simple symbolic references.
10521         Split integers into low, high, and rest.
10522         (alpha_expand_mov): Use alpha_legitimize_address.
10523         (some_small_symbolic_mem_operand): New.
10524         (split_small_symbolic_mem_operand): New.
10525         * config/alpha/alpha-protos.h: Update.
10526         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10527         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10528         (EXTRA_CONSTRAINT): Likewise.
10529         (PREFERRED_RELOAD_CLASS): Likewise.
10530         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10531         (PREDICATE_CODES): Update.
10532         * config/alpha/alpha.md: New post-reload splitters to convert
10533         simplfied symbolic operands to the form that references $29.
10534         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10535         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10536
10537 2002-01-03  Richard Henderson  <rth@redhat.com>
10538
10539         * local-alloc.c (function_invariant_p): Update commentary.
10540
10541 2002-01-04  H.J. Lu <hjl@gnu.org>
10542
10543         * toplev.c (rest_of_compilation): Fix a typo when calling
10544         cleanup_cfg.
10545
10546 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10547
10548         * c-common.c: Fix formatting.
10549         * diagnostic.c: Likewise.
10550         * doloop.c: Likewise.
10551         * dwarf2out.c: Likewise.
10552
10553 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10554
10555         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10556         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10557
10558 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10559
10560         * cpperror.c: Update comments and copyright.
10561         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10562         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10563
10564 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10565
10566         * collect2.c (main): Use strcmp when testing for "-shared".
10567
10568 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10569
10570         * cppmacro.c: Don't include intl.h.  Update comments.
10571         (new_number_token): Allocate enough buffer for 64-bit unsigned
10572         integers; update prototype.
10573         * cppmain.c: Update comments.
10574
10575 2002-01-03  William Cohen  <wcohen@redhat.com>
10576
10577         * function.h (struct function): Add profile.
10578         (current_function_profile): New.
10579         doc/extend.texi: Update documentation.
10580         * final.c (final_start_function): Use current_function_profile
10581         instead of profile_flag.
10582         (profile_after_prologue): Likewise.
10583         * function.c (expand_function_start): Likewise.
10584         (expand_function_start): Likewise.
10585         * config/alpha/alpha.c (direct_call_operand):
10586         (alpha_does_function_need_gp): Likewise.
10587         (alpha_expand_prologue): Likewise.
10588         * config/arm/arm.c (arm_expand_prologue): Likewise.
10589         thumb_expand_prologue: Likewise.
10590         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10591         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10592         (fr30_expand_prologue): Likewise.
10593         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10594         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10595         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10596         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10597         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10598         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10599         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10600         (m32r_expand_prologue): Likewise.
10601         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10602         (m88k_expand_prologue): Likewise.
10603         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10604         * config/mips/mips.c (compute_frame_size): Likewise.
10605         (mips_expand_prologue): Likewise.
10606         (mips_can_use_return_insn): Likewise.
10607         * config/pa/elf.h (ASM_FILE_START): Likewise.
10608         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10609         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10610         * config/pa/som.h (ASM_FILE_START): Likewise.
10611         * config/romp/romp.c (romp_using_r14): Likewise.
10612         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10613         (rs6000_stack_info): Likewise.
10614         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10615         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10616         * config/v850/v850.c (compute_register_save_size): Likewise.
10617
10618 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10619
10620         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10621         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10622
10623 2002-01-03  Turly O'Connor  <turly@apple.com>
10624
10625         * darwin.c (machopic_output_possible_stub_label): Don't generate
10626         stub routines for pseudo-stubs which we've just defined.
10627
10628 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10629
10630         * builtins.c: Fix formatting.
10631         * c-typeck.c: Likewise.
10632         * combine.c: Likewise.
10633         * expr.c: Likewise.
10634         * loop.c: Likewise.
10635
10636 2002-01-03  Andreas Schwab  <schwab@suse.de>
10637
10638         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10639         and return true if _cpp_push_next_buffer pushed a new include
10640         file.
10641         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10642         _cpp_pop_file_buffer did not push a new file.
10643         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10644
10645 2002-01-02  Eric Christopher  <echristo@redhat.com>
10646
10647         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10648         FIND_REG_INC_NOTE call. Update copyright.
10649         * loop.c (canonicalize_condition): Ditto.
10650         * reorg.c (delete_scheduled_jump): Ditto.
10651
10652 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10653
10654         * gcse.c: Fix formatting.
10655
10656 2002-01-03  Graham Stott  <grahams@redhat.com>
10657
10658         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10659         forward defs for struct tags rtx_def, union_tree, rtvec_def
10660         also output corresponding typedefs for rtx, tree, and rtvec.
10661
10662         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10663         rtvec_def along with corresponding typedefs for rtx, tree, and
10664         rtvec to config.h, hconfig.h, tconfig.h.
10665
10666 2002-01-03  Graham Stott  <grahams@redhat.com>
10667
10668         * tree.h: Update copyright date.
10669         (IS_EXPR_CODE_CLASS): Add parenthesis.
10670         (TREE_SET_CODE): Add whitespace.
10671         (TREE_CHECK): Add parenthesis.
10672         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10673         (CST_OR_CONSTRUCTOR_CHECK):
10674         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10675         (TREE_SYMBOL_REFERENCED): Whitespace.
10676         (INT_CST_LT): Likewise.
10677         (INT_CST_LT_UNSIGNED): Likewise.
10678         (tree_real_cst): Unwrap comment.
10679         (tree_string): Likewise.
10680         (tree_complex): Likewise.
10681         (IDENTIFIER_POINTER): correct cast.
10682         (SAVE_EXPR_CONTEXT): Whitespace.
10683         (EXPR_WFL_FILENAME_NODE): Likewise.
10684         (EXPR_WFL_FILENAME): Remove parenthesis.
10685         (DECL_ORIGIN): Add parenthesis.
10686         (DECL_FROM_INLINE): Use NULL_TREE.
10687         (build_int_2): Whitespace.
10688         (build_type_variant): Add parenthesis.
10689
10690         * gcc/jcf-parse.c: Update copyright date.
10691         (yyparse): Constify resource_filename.
10692
10693 2002-01-03  Graham Stott  <grahams@redhat.com>
10694
10695         * rtl.h: Update copyright date.
10696         (RTL_CHECK1): Wrap long line.
10697         (RTL_CHECK2): Likewise.
10698         (RTL_CHECKC1): Wrap long line and whitespace.
10699         (RTL_CHECKC2): Likewise.
10700         (XWINT): Whitespace.
10701         (XINT): Likewise.
10702         (XSTR): Likewise.
10703         (XEXP): Likewise.
10704         (XVEC): Likewise.
10705         (XMODE): Likewise.
10706         (XBITMAP): Likewise.
10707         (XTREE): Likewise.
10708         (XBBDEF): Likewise.
10709         (XTMPL): Likewise.
10710         (X0WINT): Likewise.
10711         (X0INT):Likewise.
10712         (X0UINT): Likewise.
10713         (X0STR): Likewise.
10714         (X0EXP): Likewise.
10715         (X0VEC): Likewise.
10716         (X0MODE): Likewise.
10717         (X0BITMAP): Likewise.
10718         (X0TREE): Likewise.
10719         (X0BBDEF): Likewise.
10720         (X0ADVFLAGS): Likewise.
10721         (X0CSELIB): Likewise.
10722         (X0MEMATTR): Likewise.
10723         (XCWINT): Likewise.
10724         (XCINT): Likewise.
10725         (XCUINT): Likewise.
10726         (XCSTR): Likewise.
10727         (XCEXP): Likewise.
10728         (XCVEC): Likewise.
10729         (XCMODE): Likewise.
10730         (XCBITMAP): Likewise.
10731         (XCTREE): Likewise.
10732         (XCBBDEF): Likewise.
10733         (XCADVFLAGS): Likewise.
10734         (XCCSELIB): Likewise.
10735         (XC2EXP): Likewise.
10736         (INSN_UID): Likewise.
10737         (PREV_INSN): Likewise.
10738         (PATTERN): Likewise.
10739         (INSN_CODE): Likewise.
10740         (PUT_REG_NOTE_KIND): Likewise.
10741         (CODE_LABEL_NUMBER): Likewise.
10742         (NOTE_SOURCE_FILE): Likewise.
10743         (NOTE_BLOCK): Likewise.
10744         (NOTE_EH_HANDLER): Likewise.
10745         (NOTE_RANGE_INFO): Likewise.
10746         (NOTE_LIVE_INFO): Likewise.
10747         (NOTE_BASIC_BLOCK): Likewise.
10748         (NOTE_EXPECTED_VALUE): Likewise.
10749         (NOTE_LINE_NUMBER): Likewise.
10750         (LABEL_NAME): Likewise.
10751         (LABEL_NUSES): Likewise.
10752         (LABEL_ALTERNATE_NAME): Likewise.
10753         (ADDRESSOF_DECL): Likewise.
10754         (JUMP_LABEL): Likewise.
10755         (LABEL_NEXTREF): Likewise.
10756         (REGNO): Likewise.
10757         (ORIGINAL_REGNO: Likewise.
10758         (HARD_REGISTER_NUM_P): Add parenthesis.
10759         (SUBREG_REG): Whitespace.
10760         (SUBREG_BYTE): Likewise.
10761         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10762         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10763         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10764         (ASM_OPERANDS_INPUT_VEC): Likewise.
10765         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10766         (ASM_OPERANDS_INPUT): Likewise.
10767         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10768         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10769         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10770         (ASM_OPERANDS_INPUT_MODE): Likewise.
10771         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10772         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10773         (MEM_SET_IN_STRUCT_P): Minor reformat.
10774         (TRAP_CONDITION): Whitespace.
10775         (TRAP_CODE): Likewise.
10776         (COND_EXEC_TEST): Likewise.
10777         (COND_EXEC_CODE): Likewise.
10778         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10779         (PHI_NODE_P): Add parenthesis.
10780         (plus_constant): Whitespace and add parenthesis.
10781
10782 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10783
10784         * config/avr/avr.c: Fix comment typos.
10785         * config/c4x/c4x.md: Likewise.
10786         * config/dsp16xx/dsp16xx.h: Likewise.
10787         * config/dsp16xx/dsp16xx.md: Likewise.
10788         * config/i386/i386.md: Likewise.
10789         * config/ia64/ia64.c: Likewise.
10790         * config/m32r/m32r.h: Likewise.
10791         * config/m68hc11/m68hc11.md: Likewise.
10792         * config/mmix/mmix.c: Likewise.
10793         * config/mn10200/mn10200.c: Likewise.
10794         * config/romp/romp.c: Likewise.
10795         * config/sh/sh.c: Likewise.
10796         * config/stormy16/stormy16.c: Likewise.
10797         * config/stormy16/stormy16.h: Likewise.
10798         * config/stormy16/stormy16.md: Likewise.
10799
10800 2002-01-03  Graham Stott  <grahams@redhat.com>
10801
10802         * loop.h: Update copyright date.
10803         (LOOP_MOVABLES): Fix typo.
10804         (LOOP_REGS): Likewise.
10805         (LOOP_IVS): Likewise.
10806
10807 2002-01-03  Graham Stott  <grahams@redhat.com>
10808
10809         * cppinit.c: Update copyright date.
10810         Don't include output.h
10811         * Makefile.in: Update copyright date.
10812         Update dependency.
10813
10814 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10815
10816         PR c/5226
10817         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10818         (-pthread) Add to RS/6000 options.
10819
10820 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10821
10822         * except.c: Fix comment typos.
10823         * loop.c: Likewise.
10824         * varasm.c: Likewise.
10825         * doc/tm.texi: Fix a typo.
10826
10827 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10828
10829         * c-typeck.c (output_init_element): Allow initializing static storage
10830         duration objects with compound literals.
10831
10832 2002-01-02  Richard Henderson  <rth@redhat.com>
10833
10834         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10835         after abusing it.
10836
10837 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10838
10839         * gcc.c (default_compilers): Const-ify.
10840         * mips-tdump.c (stab_names): Likewise.
10841         * mips-tfile.c (map_coff_types, map_coff_storage,
10842         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10843         pseudo_ops_t, pseudo_ops): Likewise.
10844         * protoize.c (default_include): Likewise
10845
10846         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10847         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10848         Add array size in declaration.
10849         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10850         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10851         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10852         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10853         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10854         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10855         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10856         emtens, make_nan): Const-ify.
10857         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10858         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10859
10860 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10861
10862         * config.gcc (ia64-*-*): Set extra_headers.
10863         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10864         * config/alpha/t-osf: Remove.
10865         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10866
10867 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10868
10869         * config/rs6000/t-aix43: Revert previous change.
10870
10871 2002-01-02  Jason Merrill  <jason@redhat.com>
10872
10873         * c-decl.c (c_expand_body): Call outlining_inline_function when
10874         emitting an inline function out of line.
10875
10876 2002-01-02  Richard Henderson  <rth@redhat.com>
10877
10878         * dwarf2out.c (limbo_die_node): Add created_for member.
10879         (new_die): New argument created_for.  Update all callers.
10880         (mark_limbo_die_list): New.
10881         (dwarf2out_init): Register limbo_die_list as a root.
10882         (dwarf2out_finish): Force insert limbo dies into their function
10883         context.
10884
10885 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10886
10887         PR c++/5089
10888         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10889
10890 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10891
10892         * config/h8300/fixunssfsi.c: Update copyright.
10893         Fix comment typos.
10894         Fix formatting.
10895         * config/h8300/h8300.c: Update copyright.
10896         Eliminate warnings.
10897
10898 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10899
10900         * config/romp/romp.c: Fix comment formatting.
10901         * config/romp/romp.h: Likewise.
10902         * config/romp/romp.md: Likewise.
10903         * config/s390/s390.c: Likewise.
10904         * config/stormy16/stormy16.c: Likewise.
10905         * config/stormy16/stormy16.h: Likewise.
10906
10907 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10908
10909         * c-common.h (genrtl_expr_stmt_value): Declare.
10910         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10911         (genrtl_goto_stmt_value): ... this new function.  Pass new
10912         argument down to expand_expr_stmt_value, taking
10913         TREE_ADDRESSABLE into account.
10914         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10915         STMT_EXPR as addressable, i.e., one whose result we want.
10916         * expr.c (expand_expr): Don't save expression statement value
10917         of labeled_blocks or loop_exprs.
10918         * stmt.c (expand_expr_stmt): Redirect to...
10919         (expand_expr_stmt_value): ... this new function.  Use new
10920         argument to tell whether to save expression value.
10921         (expand_end_stmt_expr): Reset last_expr_type and
10922         last_expr_value if we don't have either.
10923         * tree-inline.c (declare_return_variable): Mark its use
10924         statement as addressable.
10925         * tree.h: Document new use of TREE_ADDRESSABLE.
10926         (expand_expr_stmt_value): Declare.
10927
10928 2002-01-01  Tom Rix  <trix@redhat.com>
10929
10930         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10931         rs6000_emit_allocate_stack.
10932
10933 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10934
10935         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10936         ${srcdir}/ginclude/ to every entry in extra_headers.
10937         * configure: Regenerate.
10938         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10939         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10940         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10941         * ginclude/proto.h: Rename to config/convex/proto.h.
10942
10943 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10944
10945         * attribs.c (handle_vector_size_attribute): Use host_integerp
10946         and tree_int_cst; remove warnings.
10947         * caller-save.c (insert_restore): Add cast to get rid of warning.
10948         (insert_save): Likewise.
10949         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10950         * regmove.c (find_matches): Add temporary var to kill a warning.
10951
10952 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
10953
10954         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10955         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10956         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10957         (vms-dwarf2eh.o): Add Makefile rule.
10958         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10959         * config/alpha/vms-dwarf2eh.asm: New file.
10960
10961         * gcc.c (delete_if_ordinary): Delete all versions.
10962
10963 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10964
10965         * config/mmix/mmix.md: Update FIXME to not mention
10966         define_constants.
10967         (MMIX_rJ_REGNUM): New define_constants constant.
10968         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10969         "*movdicc_real"): Adjust contraints formatting.
10970         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10971         for branch prediction.
10972         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10973         output template.
10974         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10975         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10976         number.  Delete related FIXMEs.
10977         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10978         from number to MMIX_rJ_REGNUM.
10979         (TARGET_MASK_BRANCH_PREDICT): New.
10980         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10981         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
10982         value.  Add -mbranch-predict and -mno-branch-predict.
10983         (TARGET_VERSION): Drop date.
10984         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10985         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10986         for finding out global symbols.
10987         (mmix_asm_output_labelref): Revert condition for global symbol.
10988         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10989         (mmix_print_operand_punct_valid_p): A '+' is valid.
10990
10991 See ChangeLog.6 for earlier changes.