OSDN Git Service

* cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2
3         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
4         * cppfiles.c (read_include_file): Similarly.
5         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6         uxstrdup ustrchr, ufputs): Similarly.
7         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
9         cpp_ideq, parse_identifier, parse_number): Similarly.
10         * cpplib.c (struct directive, dequote_string, D, run_directive,
11         cpp_push_buffer): Similarly.
12         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
13         _cpp_create_definition, check_trad_stringification,
14         cpp_macro_definition): Similarly.
15
16 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
17
18         * cppmacro.c (funlike_invocation_p): Don't step back
19         over CPP_EOF.
20
21 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
22
23         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
24         labelno.
25
26 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
27
28         * doc/invoke.texi: Remove Chill references.
29         * doc/gcc.texi: Update last modified date.
30
31 2002-04-20  Kazu Hirata  <kazu@hxi.com>
32
33         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
34         push and pop.  Replace add.l with add.w.
35
36 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
37
38         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
39         multiply instructions for H8/300H case.
40
41 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
42
43         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
44         Bum three instructions from each routine.
45
46 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
47
48         * Makefile.in: Update.
49         * decl.c (push_c_function_context, pop_c_function_context,
50         mark_c_function_context): Rename for consistency.
51         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
52         * c-tree.h (push_c_function_context, pop_c_function_context,
53         mark_c_function_context): Rename for consistency.
54         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
55         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
56         * function.c (init_lang_status, save_lang_status,
57         restore_lang_status, mark_lang_status, free_lang_status):
58         Move to langhooks.h.
59         (push_function_context_to, pop_function_context_from,
60         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
61         Update.
62         * function.h (init_lang_status, save_lang_status,
63         restore_lang_status, mark_lang_status, free_lang_status):
64         Move to langhooks.h.
65         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
66         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
67         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
68         LANG_HOOKS_FUNCTION_INITIALIZER): New.
69         (LANG_HOOKS_INITIALIZER): Update.
70         (lhd_do_nothing_f): New.
71         * langhooks.h (struct lang_hooks_for_functions): New.
72         (struct lang_hooks): New hooks.
73         * langhooks.c (lhd_do_nothing_f): New.
74 objc:
75         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
76         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
77
78 2002-04-19  David S. Miller  <davem@redhat.com>
79
80         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
81         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
82
83 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
84
85         PR optimization/3756
86         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
87         x = ((int) y < 0) ? cst1 : cst2.
88
89 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
90
91         PR c/6358
92         * function.c: Reapply patch for c/6358.
93         (expand_function_end): Copy decl_rtl's mode, not
94         current_function_return_rtx mode.
95
96 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
97
98         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
99         targets.
100
101 2002-04-19  Tom Tromey  <tromey@redhat.com>
102
103         * doc/install.texi (Specific): Update status of Solaris 2.8.
104         For PR libgcj/6158.
105
106 2002-04-19  Andreas Schwab  <schwab@suse.de>
107
108         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
109         (PUT_REAL): Restore old definition.
110
111 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
112             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
113
114         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
115         binutils 2.11.2 and higher generate smaller binaries than Sun's
116         native tools.
117
118 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
119
120         PR c++/6352
121         * toplev.c (rest_of_compilation): Do not defer functions for which
122         TREE_SYMBOL_REFERENCED has already been set.
123
124 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
125
126         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
127         alternative.
128
129 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
130
131         * builtins.c: Include langhooks.h.
132         (lang_type_promotes_to): Remove.
133         (expand_builtin_va_arg): Use new hook.
134         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
135         (simple_type_promotes_to): Move to c-typeck.c.
136         * c-common.h (simple_type_promotes_to): Remove.
137         * c-decl.c (duplicate_decls, grokdeclarator): Update.
138         * c-format.c: Include langhooks.h.
139         (check_format_types): Update.
140         * c-tree.h (c_type_promotes_to): New.
141         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
142         (type_lists_compatible_p): Update.
143         * langhooks-def.h (lhd_type_promotes_to): New.
144         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
145         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
146         * langhooks.c (lhd_type_promotes_to): New.
147         * langhooks.h (struct lang_hooks_for_types): New hook.
148         * tree.h (lang_type_promotes_to): Remove.
149 objc:
150         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
151
152 2002-04-18  Richard Henderson  <rth@redhat.com>
153
154         * function.c: Revert patch for c/6358.
155
156 2002-04-18  Richard Henderson  <rth@redhat.com>
157
158         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
159         blocks.  Handle multiple references to the TRAP block.  Handle
160         non-adjacent THEN and OTHER blocks.
161
162 2002-04-18  Richard Henderson  <rth@redhat.com>
163
164         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
165         crash with no type for by-mode libcalls.
166
167         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
168
169 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
170
171         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
172         __xtensa_nonlocal_goto): Use a syscall instructions to flush
173         the register windows.
174
175 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
176
177         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
178         appropriate.  Document need for extended precision even when
179         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
180         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
181         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
182         instead of relying on later syntax error when REAL_WIDTH > 5.
183         * real.c: Define NE based only on whether or not we have a
184         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
185         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
186         define GET_REAL and PUT_REAL as simple memcpy operations; no
187         need to byteswap or round.
188         Use #error instead of #ifdef-ing out the entire file, for
189         prompt error detection.
190
191         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
192
193 2002-04-18  David S. Miller  <davem@redhat.com>
194
195         * config/sparc/sparc.h (BRANCH_COST): Define.
196
197         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
198         does it.
199
200 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
201
202         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
203         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
204         propagate_block calls after relaxation loop using new variable
205         stabilized_prop_flags.
206
207 2002-04-18  Richard Henderson  <rth@redhat.com>
208
209         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
210         (ia64_va_arg): Expect variable sized types by reference.
211         * config/ia64/ia64-protos.h: Update.
212         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
213         ia64_function_arg_pass_by_reference.
214
215 2002-04-18  Richard Henderson  <rth@redhat.com>
216
217         * ifcvt.c: Include except.h.
218         (block_has_only_trap): Break out from find_cond_trap.
219         (find_cond_trap): Use it.  Always delete the trap block.
220         (merge_if_block): Allow then block null.  Be less simplistic about
221         what insns can end a block.
222         * Makefile.in (ifcvt.o): Depend on except.h.
223
224         * config/ia64/ia64.md (trap, conditional_trap): New.
225
226 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
227
228         PR c/6358
229         * function.c (assign_parms): Assign hard current_function_return_rtx
230         register here...
231         (expand_function_end): ...not here.
232
233 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
234
235         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
236         * c-tree.h (c_incomplete_type_error): New.
237         * c-typeck.c (require_complete_type, build_component_ref): Update.
238         (incomplete_type_error): Rename.
239         * langhooks-def.h (lhd_incomplete_type_error): New.
240         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
241         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
242         * langhooks.c (lhd_incomplete_type_error): New.
243         * langhooks.h (struct lang_hooks_for_types): New hook.
244         * tree.c (size_in_bytes): Use new hook.
245         * tree.h (incomplete_type_error): Remove.
246 objc:
247         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
248
249 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
250
251         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
252         TARGET_FLOAT_FORMAT blocks.
253
254 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
255
256         * doc/install.texi (Downloading the source): Do not mention Chill
257         any longer, but mention Ada.
258         (Configuration): Do not mention Chill any longer.
259
260 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
261
262         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
263
264 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
265
266         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
267         in last patch.
268
269 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
270
271         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
272         instead of unsigned_type.
273
274 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
275
276         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
277         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
278         later.
279
280 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
281
282         * attribs.c (vector_type_node_list): New static variable.
283         (handle_vector_size_attribute): Use it to avoid generating a
284         new type node each time we are called.
285
286         * combine.c (subst): Avoid trying to make a vector mode subreg of
287         an integer constant.
288         (gen_lowpart_for_combine): Likewise.
289
290 2002-04-18  Roger Sayle  <roger@eyesopen.com>
291             Jakub Jelinek  <jakub@redhat.com>
292
293         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
294         for integer constant c (if x has unsigned type or sign bit is not
295         set in c).  This folds the zero/sign extension into the bit-wise and
296         operation.
297
298 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
299
300         PR middle-end/6205
301         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
302         otherwise xorps.
303
304 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
305
306         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
307
308 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
309
310         * gcc.c (read_specs): Detect and fail if an attempt is made to
311         rename a spec string to an already existing string.
312
313 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
314
315         * config/s390/s390.c (legitimize_pic_address): Do not generate
316         illegal address constant without CONST.
317
318 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
319
320         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
321         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
322
323 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
324
325         PR optimization/6305
326         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
327         to make sure previous reloads are taken into account.  Generate
328         better code if one operand is an in-range immediate constant.
329
330 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
331
332         * doc/install.texi (Building): libgcj requires GNU make.
333
334 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
335
336         PR bootstrap/6315
337         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
338         even if hard quad and register is not floating.
339         (movtf reg<-mem split): Disallow splitting if hard quad and
340         register is floating.
341         (movtf mem<-reg split): Likewise.
342         * config/sparc/sparc.c (fp_register_operand): New predicate.
343         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
344
345 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
346
347         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
348         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
349         (unprotoize.o): Ditto.  Build from protoize.c.  Define
350         UNPROTOIZE on command line.
351         * protoize.c: Include cppdefault.h.  Delete include_defaults.
352         (in_system_include_dir): Use cpp_include_defaults (defined in
353         cppdefault.o).
354         * unprotoize.c: Delete file.
355
356 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
357
358         * config/rs6000/altivec.h (vec_ld): Add array variants.
359         (vec_lde): Same.
360         (vec_ldl): Same.
361
362 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
363             Aldy Hernandez <aldyh@redhat.com>
364
365         * config/rs6000/altivec.h: Define __ALTIVEC__.
366         (bool): New.
367         (__pixel): New.
368         (pixel): New.
369         (vec_cfux): New.
370         (vec_vmaddfp): New.
371         (vec_vsldoi): New.
372         Add parentheses to all macro arguments.
373
374 2002-04-16  Richard Henderson  <rth@redhat.com>
375
376         PR c++/6320
377         * except.c (remove_eh_handler): Insert inner regions at beginning
378         of sibling chain.  Refactor expressions.
379
380 2002-04-16  Richard Henderson  <rth@redhat.com>
381
382         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
383         * config/sparc/sol2-gas-bi.h: New file.
384         * config.gcc (sparc*-solaris): Add it as needed.
385         * configure.in (AS_SPARC64_FLAG): Remove check.
386         * config.in, configure: Regenerate.
387
388         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
389
390 2002-04-16  Richard Henderson  <rth@redhat.com>
391
392         * config/mips/mips.c (override_options): Don't override N32 for
393         a 64-bit ISA.
394
395         PR 6202
396         * config/mips/mips.md (can_delay): Split out of existing define_delays.
397         (HILO_delay): Set can_delay false.
398
399 2002-04-16  Dale Johannesen <dalej@apple.com>
400
401         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
402         instruction addresses.
403         (rs6000_output_function_epilogue): Likewise.
404
405 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
406
407         * c-parse.in (poplevel, compstmt_start,
408         compstmt_primary_start): Add ending ';', in accordance
409         with POSIX.
410
411 2002-04-16  Richard Henderson  <rth@redhat.com>
412
413         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
414         Adjust tm_file order to get TARGET_DEFAULT set properly.
415         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
416         * doc/install.texi (sparc-solaris): Update.
417
418 2002-04-16  Dale Johannesen <dalej@apple.com>
419
420         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
421         comparison operands do not match each other or if modes of
422         conditions do not match result.
423
424 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
425
426         PR target/6305
427         * config/s390/s390.md (mulsidi3): Set both subregs of the
428         multiword register.
429
430 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
431
432         * config/rs6000/altivec.h (vec_addc): Type check.
433
434 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
435
436         PR middle-end/6279
437         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
438
439         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
440
441 2002-04-15  Richard Henderson  <rth@redhat.com>
442
443         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
444         call_really_used_regs too.
445
446 2002-04-15  Richard Henderson  <rth@redhat.com>
447
448         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
449
450 2002-04-15  David S. Miller  <davem@redhat.com>
451
452         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
453         as being CLOBBERed.
454
455 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
456
457         PR c/6290
458         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
459         CONST_VECTOR is { 0, ... 0 }.
460
461 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
462
463         * doc/install.texi (Installing GCC: Configuration): Clarify
464         the only supported ways to configure gcc.
465
466 2002-04-15  Roland McGrath  <roland@frob.com>
467
468         * config.gcc (alpha*-*-gnu*): New target configuration.
469         * config/alpha/gnu.h: New file for it.
470         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
471
472 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
473
474         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
475         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
476         * tree.h (expand_start_stmt_expr): Update prototype.
477         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
478         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
479         on the STMT_EXPR created for the inline function.
480
481 2002-04-15  Richard Henderson  <rth@redhat.com>
482
483         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
484         config/i386/linux-aout.h, config/i386/linux-oldld.h,
485         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
486         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
487         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
488         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
489         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
490         Define __gnu_linux__, not gnu_linux.
491         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
492
493 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
494
495         Remove Chill front end.
496         * gcc.c (default_compilers): Remove Chill entries.
497         * ch: Remove directory.
498         * doc/frontends.texi: Remove information about Chill.
499         * doc/sourcebuild.texi: Likewise.
500         * doc/standards.texi: Likewise.
501
502 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
503
504         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
505         (LONGLONG_STANDALONE): Define.
506
507 2002-04-15  David S. Miller  <davem@redhat.com>
508
509         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
510         Call emit_library_call with LCT_NORMAL.
511         (sparc_initialize_trampoline): Use LCT_foo instead of
512         magic constant in emit_library_call invocations.
513         (sparc64_initialize_trampoline): Likewise.
514         (sparc_profile_hook): Likewise.
515         * config/sparc/sparc.md: Likewise.
516
517         * config/sparc/sparc.c (sparc_extra_constraint_check):
518         Fix type of argument 'c'.
519         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
520         Likewise.
521
522 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
523
524         * diagnostic.h (output_buffer_state): Redefine.
525         (output_format_decoder): New macro.
526         (output_prefixing_rule): Likewise.
527         (output_line_cutoff): Likewise.
528         (diagnostic_format_decoder): Adjust.
529         (diagnostic_prefixing_rule): Likewise.
530         (diagnostic_line_cutoff): Likewise.
531         (diagnostic_state): Likewise.
532         (diagnostic_kind_count): Likewise.
533         (diagnostic_buffer): Now a macro.
534
535         * diagnostic.c (diagnostic_buffer): Remove definition.
536         (output_is_line_wrapping): Adjust.
537         (set_real_maximum_length): Likewise.
538         (output_set_maximum_length): Likewise.
539         (init_output_buffer): Likewise.
540         (lhd_print_error_function): Likewise.
541         (output_do_verbatim): Likewise.
542
543 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
544
545         * cpperror.c (print_location): Don't print include chain
546         if line == 0.
547         (cpp_begin_message): Update to use DL_ macros.
548         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
549         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
550         cpp_notice, cpp_notice_from_errno): Remove.
551         (cpp_error, cpp_error_with_line): Update to take a diagnostic
552         level.
553         (cpp_errno): New.
554         * cppexp.c (CPP_ICE): Remove.
555         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
556         lex, integer_overflow, _cpp_parse_expr): Update.
557         * cppfiles.c (read_include_file, find_include_file,
558         handle_missing_header, _cpp_read_file, remap_filename): Update.
559         * cpphash.h (enum error_type): Remove.
560         (_cpp_begin_message): Update.
561         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
562         cpp_handle_option, cpp_post_options): Update.
563         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
564         skip_whitespace, parse_identifier, parse_slow, parse_string,
565         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
566         cpp_interpret_charconst): Update.
567         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
568         lex_macro_node, do_undef, glue_header_name, parse_include,
569         do_include_common, read_flag, do_line, do_linemarker, do_ident,
570         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
571         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
572         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
573         _cpp_pop_buffer, do_diagnostic): Update.
574         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
575         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
576         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
577         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
578         cpp_notice, cpp_notice_from_errno): Remove.
579         (cpp_error, cpp_error_with_line): Update to take a diagnostic
580         level.
581         (cpp_errno): New.
582         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
583         collect_args, enter_macro_context, save_parameter, parse_params,
584         _cpp_create_definition, check_trad_stringification,
585         cpp_macro_definition): Update.
586         * cppmain.c (cpp_preprocess_file): Update.
587         * fix-header.c (read_scan_file): Update.
588
589 2002-04-14  Andreas Schwab  <schwab@suse.de>
590
591         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
592
593 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
594
595         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
596
597 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
598
599         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
600         not gnu_hurd.
601
602 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
603
604         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
605
606 2002-04-13      Joel Sherrill <joel@OARcorp.com>
607
608         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
609         sparc-elf and sparc-rtems targets.
610
611 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
612
613         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
614         defined, and __gnu_hurd__ wherever __GNU__ is defined.
615         * arm/linux-elf.h: Likewise.
616         * cris/aout.h: Likewise.
617         * cris/linux.h: Likewise.
618         * i370/linux.h: Likewise.
619         * i386/gnu.h: Likewise.
620         * i386/linux-aout.h: Likewise.
621         * i386/linux-oldld.h: Likewise.
622         * i386/linux.h: Likewise.
623         * i386/linux64.h: Likewise.
624         * ia64/linux.h: Likewise.
625         * m68k/linux-aout.h: Likewise.
626         * m68k/linux.h: Likewise.
627         * mips/linux.h: Likewise.
628         * pa/pa-linux.h: Likewise.
629         * pj/linux.h: Likewise.
630         * rs6000/sysv4.h: Likewise.
631         * s390/linux.h: Likewise.
632         * sh/linux.h: Likewise.
633         * sparc/linux-aout.h: Likewise.
634         * sparc/linux.h: Likewise.
635         * sparc/linux64.h: Likewise.
636         * xtensa/linux.h: Likewise.
637
638 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
639
640         * stmt.c (check_unique_operand_names): Expect operand names to
641         be strings rather than identifiers.  Use simple_cst_equal to
642         compare them.
643         (resolve_operand_name_1): Make same identifier to string change here.
644         * c-parse.in (asm_operand): Convert a named operand into a string.
645         * cp/parse.y (asm_operand): Likewise.
646
647 2002-04-13  Andreas Schwab  <schwab@suse.de>
648
649         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
650
651 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
652
653         Revert these changes:
654
655         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
656
657         PR c++/5571
658         * stor-layout.c (layout_decl): Reset the RTL for the decl.
659
660 2002-04-12  Richard Henderson  <rth@redhat.com>
661
662         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
663         (sparc*-*-solaris): Clean up header files.
664         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
665         and plan on generating 64-bit code.
666         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
667         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
668         * config/sparc/sol2-sld-64.h: Rename ...
669         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
670         for AS_SPARC64_FLAG not defined.
671         * config/sparc/sol2-gld-bi.h: New.
672         * config/sparc/sol2-sld.h: Remove.
673         * config/sparc/sol26-sld.h: New.
674         * config/sparc/sol2.h: Tidy comments.
675         * doc/install.texi: Document sparc-solaris configury changes.
676
677 2002-04-12  Richard Henderson  <rth@redhat.com>
678
679         * recog.c (offsettable_address_p): Match the logic in adjust_address.
680
681         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
682         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
683
684 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
685
686         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
687
688 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
689
690         * pa.c (pa_can_combine_p): Call extract_insn before calling
691         constrain_operands.
692
693 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
694
695         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
696         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
697         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
698         (CPP_PREDEFINES): Handle __declspec.
699         * config/i386/t-interix (USER_H): Remove.
700
701 2002-04-12  DJ Delorie  <dj@redhat.com>
702
703         * integrate.c (compare_blocks): Make comparisons safe for when
704         sizeof(int) < sizeof(char *).
705         (find_block): Likewise.
706
707 2002-04-12  Jan Hubicka  <jh@suse.cz>
708             David Edelsohn  <edelsohn@gnu.org>
709
710         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
711         registers.
712         (symbol_ref_operand): New.
713         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
714         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
715
716 2002-04-12  Andreas Schwab  <schwab@suse.de>
717
718         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
719         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
720         overrides the definition in config/svr4.h.
721
722 2002-04-12      Eric Norum <eric.norum@usask.ca>
723
724         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
725         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
726         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
727         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
728         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
729         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
730         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
731         definitions to config/rtems.h and make the targets more similar.
732
733 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
734
735         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
736         POINTERS_EXTEND_UNSIGNED.
737         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
738         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
739
740         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
741         not specified.
742
743 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
744
745         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
746         depends on TARGET_SHMEDIA, not TARGET_SH5.
747
748 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
749
750         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
751         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
752
753 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
754
755         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
756         no r0 clobber.
757
758 2002-04-12  Andreas Schwab  <schwab@suse.de>
759
760         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
761
762 2002-04-12  Richard Henderson  <rth@redhat.com>
763
764         PR bootstrap/4191
765         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
766
767         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
768         modes spanning multiple hard regs.
769
770         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
771
772 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
773
774         * pa.c (pa_output_function_prologue): Don't accumulate the total
775         number of code bytes when using TARGET_64BIT, or gas, SOM and not
776         the portable runtime.
777         (output_deferred_plabels): Handle 64bit plabels.
778         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
779         generating pic code using the GAS assembler for object formats that
780         are not SOM (ie., ELF32 and ELF64).
781         (output_millicode_call): Check attribute type if attribute length is 28.
782         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
783         dbr_sequence_length once.
784         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
785         dbr_sequence_length once.
786         * pa.h (TARGET_SOM): Define if not defined.
787         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
788         with GAS and not SOM.
789         (jump, call_internal_reg, call_value_internal_reg): Likewise.
790         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
791
792 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
793
794         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
795         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
796         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
797         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
798         elfos.h and dbxelf.h values are fine now.
799         * config/i386/freebsd.h, config/alpha/freebsd.h
800         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
801
802 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
803
804         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
805         or set Acpu or Amachine.  Reformat.
806         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
807         define.
808         (LINK_SPEC): Do not need to undef.
809         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
810         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
811         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
812         define.
813         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
814         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
815         (LINK_SPEC): Do not need to undef.
816         (DONT_USE_BUILTIN_SETJMP): Do not define.
817         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
818         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
819         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
820         Remove trailing spaces.
821         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
822         __ELF__, or set Acpu or Amachine.  Reformat.
823         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
824         define.
825
826 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
827
828         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
829         all other *-*-freebsd* targets.
830
831 2002-04-11  Richard Henderson  <rth@redhat.com>
832
833         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
834
835 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
836
837         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
838         Include {cpu}/{cpu}.h thru tm_file.
839         (alpha*-*-linux*ecoff): Remove target.
840         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
841         (LINK_SPEC): Remove, is not OS independent.
842         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
843         (LINK_SPEC): Do not need to #undef any longer.
844         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
845         any longer.
846         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
847         __ELF__.
848         (LINK_SPEC): Moved here from alpha/elf.h.
849         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
850         SUB_CPP_PREDEFINES.
851         * config/alpha/linux-ecoff.h: Remove.
852         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
853         (CPP_SPEC): Define _POSIX_SOURCE as needed.
854         (CPP_SUBTARGET_SPEC): Do not define.
855         (LINK_SPEC): Do not need to #undef any longer.
856         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
857         * config/alpha/vms.h: Likewise.
858
859 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
860
861         * doc/extend.texi: Remove old claim that typedefs cannot have
862         an alignment attribute.
863
864 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
865
866         PR optimization/6177
867         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
868         bitpos is 0 and bitsize CONCAT size.
869
870 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
871
872         PR c/6223
873         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
874
875 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
876
877         * config/alpha/freebsd.h: Minor reformatting.
878         (CPP_SPEC): Define ELF and add cpp_subtarget.
879         (ASM_SPEC): No longer needed.
880
881 2002-04-11  Richard Henderson  <rth@redhat.com>
882
883         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
884         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
885         (dimode mem/zero splitter): New.
886
887 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
888
889         * config/cris/cris.c (cris_override_options): Tweak error message
890         for PIC not implemented.
891
892         * config/cris/cris.h: Tweak comments related to parameter-passing.
893
894         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
895
896 2002-04-10  Richard Henderson  <rth@redhat.com>
897
898         * except.c (add_ehl_entry): Allow duplicates after landing pad
899         creation.
900
901 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
902
903         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
904
905 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
906
907         * c-decl.c (c_init_decl_processing): Move generation of
908         decls for g77_integer_type_node and friends from here ...
909         * c-common.c (c_common_nodes_and_builtins): ... to here.
910
911 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
912
913         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
914         is only used as frame pointer when frame_pointer_needed is true.
915
916 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
917
918         PR target/817
919         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
920         for the fact that the pool entry uses two words.
921         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
922         1k bytes.
923         (movdf_soft_insn): Similarly.
924         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
925         for the fact that the pool entry uses three words.
926
927 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
928
929         * config/mips/mips.c (mips_va_arg): When using the struct version
930         of the EABI va_list, allow arguments in the register save area to
931         take up less room than a stack argument.
932
933 2002-04-10  Richard Henderson  <rth@redhat.com>
934
935         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
936         if EXPAND_INITIALIZER.
937
938 2002-04-09  Richard Henderson  <rth@redhat.com>
939
940         * config/alpha/alpha.md (movdi_er_maybe_g): New.
941         * config/alpha/alpha.c (alpha_expand_mov): Use it.
942
943 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
944
945         PR optimization/6233
946         * rtlanal.c (pure_call_p): New function.
947         * rtl.h (pure_call_p): Declare.
948         * loop.c (prescan_loop): Use it to set has_nonconst_call.
949         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
950
951 2002-04-09  Eric Christopher  <echristo@redhat.com>
952
953         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
954         information to .comm directive.
955
956 2002-04-09  Richard Henderson  <rth@redhat.com>
957
958         PR c/5078
959         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
960
961 2002-04-09  Richard Henderson  <rth@redhat.com>
962
963         * basic-block.h (flow_delete_block_noexpunge): Declare.
964         (expunge_block_nocompact): Declare.
965         * cfg.c (expunge_block_nocompact): Split out from ...
966         (expunge_block): ... here.
967         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
968         (flow_delete_block_noexpunge): Split out from ...
969         (flow_delete_block): ... here.
970         * cfgcleanup.c (delete_unreachable_blocks): Compact while
971         removing dead blocks.
972         * except.c (exception_handler_labels): Remove.
973         (exception_handler_label_map): New.
974         (struct eh_region): Add aka member.
975         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
976         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
977         (for_each_eh_label, for_each_eh_label_1): New.
978         (init_eh): Register exception_handler_label_map.
979         (free_eh_status): Use free_region.
980         (find_exception_handler_labels): Use the map, not the list.
981         (remove_exception_handler_label): Likewise.
982         (maybe_remove_eh_handler): Likewise.
983         (remove_eh_handler): Use the region aka bitmap.
984         * except.h (exception_handler_labels): Remove.
985         (for_each_eh_label): Declare.
986         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
987         * loop.c (invalidate_loops_containing_label): New.
988         (find_and_verify_loops): Use it.  Use for_each_eh_label.
989         * sched-rgn.c (is_cfg_nonregular): Use
990         current_function_has_exception_handlers.
991
992 2002-04-09  Richard Henderson  <rth@redhat.com>
993
994         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
995         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
996         Do not return changed status.
997         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
998         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
999         New functions that do return changed status.
1000         * sbitmap.h: Update decls.
1001         * gcse.c, lcm.c: Use _cg functions as needed.
1002
1003 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1004
1005         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1006         (sh64-*-elf*, sh-*-rtemself*): Likewise.
1007         * config/sh/embed_bb.c: New file.
1008         * config/sh/embed-elf.h: New file.
1009         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1010         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
1011         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1012         __PTRDIFF_TYPE__ .
1013         (SUBTARGET_CPP_PTR_SPEC): Don't define.
1014         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1015         Add subtarget_asm_endian_spec.
1016         (ASM_SPEC): Use subtarget_asm_endian_spec.
1017         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1018         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1019         (WCHAR_UNSIGNED): Define.
1020         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1021         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1022         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1023         Fix value.
1024         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1025         (sh_adjust_cost): Likewise.
1026         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1027         __PTRDIFF_TYPE__ .
1028         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1029         (WCHAR_TYPE_SIZE): Likewise.
1030         (ASM_SPEC): Use subtarget_asm_endian_spec.
1031         (SH_ELF_WCHAR_TYPE): #undef/ #define.
1032         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1033         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1034         (MAX_WCHAR_TYPE_SIZE): Don't #define .
1035         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1036         (USER_LABEL_PREFIX): Don't #undef /#define .
1037         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1038         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1039         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1040         (ASM_SPEC): Likewise.
1041         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1042         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1043         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1044         (LIB2FUNCS_EXTRA): Define.
1045         * t-sh64 (LIB2FUNCS_EXTRA): Define.
1046         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1047         (LIB1ASMFUNCS_CACHE): Define.
1048         (LIB2FUNCS_EXTRA): Redefine empty.
1049
1050 2002-04-08  Richard Henderson  <rth@redhat.com>
1051
1052         * reorg.c (get_branch_condition): Use reversed_comparison_code.
1053
1054 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1055
1056         * config/m68hc11/larith.asm (__map_data_section): Fix condition
1057         and optimize for size.
1058         (__do_global_ctors): Fix pointer comparison.
1059         (__do_global_dtors): Likewise.
1060
1061 2002-04-09  David S. Miller  <davem@redhat.com>
1062
1063         * config/sparc/sparc.c (sparc_extra_constraint_check): New
1064         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
1065         allow reloading pseudos.
1066         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1067         * config/sparc/sparc-protos.h: Declare it.
1068
1069         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1070         unsigned comparison warning.
1071         (output_restore_regs): Mark leaf_function as unused.
1072
1073 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1074
1075         * expr.c (is_aligning_offset): New function.
1076         (expand_expr, case COMPONENT_EXPR): Call it.
1077
1078 2002-04-08  David S. Miller  <davem@redhat.com>
1079
1080         PR target/6082
1081         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1082
1083         Make init_priority work on Sparc when using GNU ld.
1084         * config/sparc/linux.h, config/sparc/linux64.h,
1085         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1086         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1087         * config/sparc/sol2-gld.h: New file to do the same.
1088         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1089         sparc/sol2-gld.h to tm_file.
1090
1091         PR optimization/4328
1092         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1093         * doc/md.texi: Document it.
1094         * config/sparc/sparc.md (movdi_insn_sp64_novis,
1095         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1096         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1097         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1098         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1099
1100 2002-04-08  Andreas Jaeger  <aj@suse.de>
1101
1102         * stmt.c (expand_asm_operands): Revert last patch from Richard
1103         Henderson.
1104
1105 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1106
1107         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1108         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
1109
1110 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1111
1112         * doc/contrib.texi (Contributors): Add David O'Brien.
1113
1114 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1115
1116         * configure.in (auto-build.h): Use target_alias and build_alias
1117         when running configure.
1118         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1119         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1120         * configure: Regenerate.
1121
1122 2002-04-07  David S. Miller  <davem@redhat.com>
1123
1124         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1125
1126 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1127
1128         PR 5933
1129         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1130         generating 32-bit pic code.
1131
1132 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1133
1134         * cppinit.c (cpp_create_reader): Initialize
1135         discard_comments_in_macro_exp.
1136         (COMMAND_LINE_OPTIONS): Add "-CC" option.
1137         (cpp_handle_option): Handle "-CC" option.
1138         * cpplex.c (save_comment): If saving a C++ comment in
1139         a directive, convert it to a C comment.
1140         (_cpp_lex_direct): Pass second comment start character to
1141         save_comment to indicate comment type.
1142         * cpplib.c (_cpp_handle_directive): If processing
1143         a "#define" directive and discard_comments_in_macro_exp
1144         is false,  re-enable saving of comments.
1145         (lex_macro_node): If discard_comments_in_macro_exp is false,
1146         discard any comments before the macro identifier.
1147         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1148         member.
1149         * cppmacro.c (cpp_get_token): If expanding a macro while
1150         processing a directive, discard any comments we might encounter.
1151         (parse_params): If discard_comments_in_macro_exp is false,
1152         ignore comments in the macro parameter list.
1153         * gcc.c (cpp_unique_options): Add "-CC" option.
1154         (option_map): Map "--comments-in-macros" to "-CC".
1155         * doc/cppopts.texi: Document "-CC" option.
1156         * f/lang-specs.h: Add "-CC" option.
1157         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1158         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1159         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1160         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1161         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1162         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1163
1164 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1165
1166         PR middle-end/6180
1167         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1168
1169 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1170
1171         PR c++/5571
1172         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1173
1174         PR opt/5120
1175         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1176         RTX_UNCHANGING_P for the functions arguments when a tail call
1177         is made.
1178
1179 2002-04-06  Jason Merrill  <jason@redhat.com>
1180
1181         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1182         (parse_options_and_default_flags): Set them appropriately.
1183         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1184
1185 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1186
1187         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1188         here.
1189
1190         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1191         semicolon.
1192
1193         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1194         types come in by-reference.  Fix typo in comment.
1195
1196 2002-04-05  David S. Miller  <davem@redhat.com>
1197
1198         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1199         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1200         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1201         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1202
1203 2002-04-05  David S. Miller  <davem@redhat.com>
1204
1205         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1206         are not going to emit return instructions, emit at least a nop
1207         for the sake of sane backtraces.
1208
1209 2002-04-05  Richard Henderson  <rth@redhat.com>
1210
1211         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1212
1213 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1214
1215         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1216
1217 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1218
1219         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1220         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1221         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1222
1223 2002-04-05  Andreas Schwab  <schwab@suse.de>
1224
1225         * c-convert.c: Include c-common.h.
1226         * Makefile.in (c-convert.o): Updated.
1227
1228 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1229
1230         * mklibgcc.in: Use separate libgcc.map for each multilib.
1231         * Makefile.in (distclean): Don't remove libgcc.map here.
1232
1233 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1234
1235         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1236         genmultilib invocation.
1237
1238 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1239
1240         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1241         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1242         to num_gprs for symmetry.
1243         * config/mips/mips.c: Adjust accordingly.
1244
1245 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1246
1247         * c-common.c (truthvalue_conversion): Rename, update.
1248         * c-common.h (c_common_truthvalue_conversion): New.
1249         * c-convert.c (convert): Update.
1250         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1251         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1252         * c-typeck.c (build_binary_op, build_unary_op,
1253         build_conditional_expr): Update.
1254         * fold-const.c (constant_boolean_node, fold): Use langhook.
1255         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1256         * langhooks.h (struct lang_hooks): New hook.
1257         * stmt.c (expand_decl_cleanup): Use langhook.
1258         * tree.h (truthvalue_conversion): Remove.
1259 objc:
1260         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1261
1262 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1263
1264         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1265         Add rules to make null object file.
1266
1267 2002-04-04  Jim Blandy  <jimb@redhat.com>
1268
1269         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1270         macro formal parameter names.
1271
1272 2002-04-04  David S. Miller  <davem@redhat.com>
1273
1274         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1275
1276 2002-04-04  Richard Henderson  <rth@redhat.com>
1277
1278         PR middle-end/5099
1279         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1280         Support copies into and out of memory.  Don't accept allows_reg
1281         and allows_mem as gospel.
1282
1283 2002-04-04  Richard Henderson  <rth@redhat.com>
1284
1285         PR opt/6165
1286         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1287         (write_dependence_p): Likewise.
1288
1289 2002-04-04  Richard Henderson  <rth@redhat.com>
1290
1291         * predict.c (estimate_bb_frequencies): Do frequency calculation
1292         with a volatile temporary.
1293
1294 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1295
1296         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1297
1298 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1299
1300         PR c++/6119
1301         * final.c (final_start_function): Don't bump profile_label_no here...
1302         (final_end_function): ...but here.
1303
1304 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1305
1306         * config/sparc/sparc.md (pic): New attribute.
1307         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1308         into stack slots.
1309         (split after do_builtin_setjmp_setup): New.
1310
1311 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1312
1313         PR fortran/6106
1314         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1315         change.
1316
1317 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1318
1319         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1320         UNITS_PER_WORD for zero sized aggregates.
1321
1322 2002-04-03  David S. Miller  <davem@redhat.com>
1323
1324         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1325         one-character spec for this, just use %(link_gcc_c_sequence).
1326
1327 2002-04-03  David S. Miller  <davem@redhat.com>
1328
1329         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1330         handling.
1331
1332 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1333
1334         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1335         (DWARF_FRAME_RETURN_COLUMN): Move.
1336         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1337         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1338         * pa.c (except.h, predict.h): Include.
1339         (FRP): Delete.
1340         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1341         (output_ascii): Add cast.
1342         (store_reg_modify): Revise to add frame notes.
1343         (set_reg_plus_d): Likewise.
1344         (compute_frame_size): Include space for eh data registers in frame if
1345         the current function calls eh_return.
1346         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1347         function calls eh_return.  Save eh data registers if the current
1348         function calls eh_return.  Fix code to add frame notes.  Emit
1349         blockage to prevent insns with frame notes being scheduled in the
1350         delay slot of calls.
1351         (hppa_expand_epilogue): Restore eh data registers and do final stack
1352         adjustment if the current function calls eh_return.  Don't add frame
1353         notes.
1354         (output_call): Revise for change in length of call insn.  Don't do
1355         return pointer adjustment for an unconditional jump in the delay slot
1356         of a call when using frame notes.
1357         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1358         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1359         (ARG_POINTER_CFA_OFFSET): Define.
1360         * pa.md (return_external_pic): New pattern.
1361         (prologue): Correct formatting.  Use return_external_pic if current
1362         function calls eh_return.
1363         (call_internal_symref, call_value_internal_symref,
1364         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1365         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1366         respectively.
1367         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1368
1369         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1370         list of targets to check using "nop" insn.
1371         * configure: Rebuilt.
1372
1373 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1374
1375         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1376
1377 2002-04-03  David S. Miller  <davem@redhat.com>
1378
1379         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1380         library sequence passed to the linker.
1381         (LINK_COMMAND_SPEC): Use it.
1382         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1383         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1384         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1385
1386 2002-04-03  Jason Merrill  <jason@redhat.com>
1387
1388         * except.c (struct eh_status): Remove protect_list.
1389         (begin_protect_partials, end_protect_partials): Remove.
1390         (add_partial_entry): Remove.
1391         * except.h: Remove prototypes.
1392
1393         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1394         expand_decl_cleanup_eh.
1395
1396         PR c++/5636
1397         * tree.h (CLEANUP_EH_ONLY): New macro.
1398         * stmt.c (expand_decl_cleanup_eh): New fn.
1399         (expand_cleanups): Check CLEANUP_EH_ONLY.
1400         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1401         Use expand_decl_cleanup_eh.
1402         (expand_stmt): Adjust.
1403         * c-common.h: Adjust prototype.
1404
1405 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1406
1407         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1408         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1409         (cris_target_asm_function_epilogue): Ditto.
1410         (cris_initial_frame_pointer_offset): Ditto.
1411         (cris_simple_epilogue): Ditto.
1412         (cris_expand_builtin_va_arg): Variable-size types come in
1413         by-reference.
1414
1415 2002-04-03  David S. Miller  <davem@redhat.com>
1416
1417         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1418         little-endian.
1419         (set_fast_math): Correct 'fsr' type.
1420
1421 2002-04-03  Richard Henderson  <rth@redhat.com>
1422
1423         PR opt/3569
1424         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1425         * toplev.c (check_global_declarations): Use it.
1426         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1427         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1428         (LANG_HOOKS_DECLS): Add it.
1429         * langhooks.c (lhd_warn_unused_global_decl): New.
1430         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1431         * c-objc-common.c (c_warn_unused_global_decl): New.
1432         * c-tree.h (c_warn_unused_global_decl): Declare.
1433         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1434
1435 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1436
1437         * langhooks-def.h (lhd_set_decl_assembler_name,
1438         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1439         (LANG_HOOKS_INITIALIZER): Update.
1440         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1441         * langhooks.h (struct lang_hooks): New hook.
1442         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1443         (lang_set_decl_assembler_name): Remove.
1444         (init_obstacks): Don't set hook.
1445         (decl_assembler_name): New function.
1446         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1447         (decl_assembler_name): New.
1448         (lang_set_decl_assembler_name): Remove.
1449
1450 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1451
1452         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1453         works properly with .hidden symbols.
1454         * configure: Rebuilt.
1455         * config.in: Rebuilt.
1456         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1457         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1458         properly with .hidden symbols.
1459
1460 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1461
1462         PR middle-end/6102
1463         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1464         USE argument.
1465
1466 2002-04-03  Richard Henderson  <rth@redhat.com>
1467
1468         PR opt/4120
1469         * sched-rgn.c (sets_likely_spilled): New.
1470         (sets_likely_spilled_1): New.
1471         (add_branch_dependences): Use it.
1472
1473 2002-04-02  Richard Henderson  <rth@redhat.com>
1474
1475         PR opt/4311
1476         * loop.h (LOOP_FIRST_PASS): New.
1477         * loop.c (strength_reduce): Mind it when deciding to unroll.
1478         * toplev.c (rest_of_compilation): Set it.
1479
1480 2002-04-02  David S. Miller  <davem@redhat.com>
1481
1482         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1483         mems_ok_for_ldd_peep when the order of the loads being examined
1484         is reversed.
1485         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1486         existing comment to increase comprehension of this situation.
1487
1488 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1489
1490         * config/sh/sh.md: Don't use union real_extract.
1491
1492 2002-04-02  Richard Henderson  <rth@redhat.com>
1493
1494         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1495
1496 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1497
1498         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1499         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1500         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1501         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1502         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1503         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1504         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1505         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1506         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1507         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1508         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1509         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1510         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1511         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1512         Include as many configury headers via tm_file as possible.  This
1513         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1514         * config/openbsd-oldgas.h: New file.
1515         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1516         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1517         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1518         config/i386/i386-coff.h, config/i386/i386-interix.h,
1519         config/i386/iscdbx.h, config/i386/linux-aout.h,
1520         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1521         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1522         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1523         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1524         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1525         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1526         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1527         config/i386/vxi386.h: Do not directly include configury headers.
1528         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1529         Directly include configury headers that are no longer automatically
1530         included by the above headers.
1531         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1532         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1533         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1534         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1535         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1536         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1537         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1538         (TARGET_VERSION): Define.
1539         * config/i386/beos-elf.h, config/i386/freebsd.h,
1540         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1541         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1542         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1543         config/i386/sco5.h, config/i386/sysv4.h
1544         (TARGET_VERSION): Do not need to protect.
1545         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1546         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1547         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1548         config/i386/i386-interix.h, config/i386/linux-aout.h,
1549         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1550         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1551         (YES_UNDERSCORES): Do not define - not needed.
1552         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1553         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1554         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1555         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1556         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1557         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1558         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1559         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1560
1561 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1562             Richard Henderson  <rth@redhat.com>
1563
1564         PR c/5484
1565         * function.c (assign_temp): Accept either type or decl argument.
1566         Detect variables whose size is too large to fit into an integer.
1567         * stmt.c (expand_decl): Pass the decl, not the type.
1568
1569 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1570
1571         * protoize.c: Match include directory usage with cppdefault.c.
1572
1573 2002-04-03  Jeffrey A Law  (law@redhat.com)
1574             Hans-Peter Nilsson  <hp@bitrange.com>
1575
1576         * combine.c (simplify_comparison): Avoid narrowing a comparison
1577         with a paradoxical subreg when doing so would drop signficant bits.
1578
1579 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1580
1581         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1582         if POINTERS_EXTEND_UNSIGNED is defined.
1583
1584 2002-04-02  Richard Henderson  <rth@redhat.com>
1585
1586         PR opt/3967
1587         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1588         replace regs.
1589
1590 2002-04-02  Richard Henderson  <rth@redhat.com>
1591
1592         * doc/standards.texi: Document required freestanding libc entry points.
1593
1594 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1595
1596         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1597         associated splitter.  Remove MQ constraint.
1598         (ctrdi_internal4): Correct CCmode clobber.
1599
1600 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1601
1602         * milli64.S ($$dyncall): New function.
1603         * t-linux (LIB1ASMFUNCS): Revise module list.
1604         (LIB1ASMSRC): Use pa/milli64.S.
1605
1606 2002-04-02  Richard Henderson  <rth@redhat.com>
1607
1608         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1609         rename solaris_sys_varargs_h.
1610
1611 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1612
1613         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1614         the same mode as its component.
1615
1616 2002-04-02  Richard Henderson  <rth@redhat.com>
1617
1618         PR opt/190
1619         * final.c (this_is_asm_operands): Export.
1620         * output.h (this_is_asm_operands): Declare.
1621         * config/i386/i386.c (print_operand): Error odd asm operands.
1622
1623 2002-04-02  Richard Henderson  <rth@redhat.com>
1624
1625         PR opt/420
1626         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1627
1628 2002-04-01  Richard Henderson  <rth@redhat.com>
1629
1630         PR target/1538
1631         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1632         * fixinc/fixincl.x: Rebuild.
1633
1634 2002-04-01  Richard Henderson  <rth@redhat.com>
1635
1636         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1637         (atomic_alloc, atomic_free): New.
1638         (SIZE, MASK_FOR, PTR_IN): New.
1639         (emergency_reg_state, emergency_reg_state_free): New.
1640         (emergency_labeled_state, emergency_labeled_state_free): New.
1641         (reg_state_alloced, labeled_state_alloced): New.
1642         (alloc_reg_state, free_reg_state): New.
1643         (alloc_label_state, free_label_state, free_label_states): New.
1644         (push, pop, dup_state_stack, free_state_stack): Use them.
1645         (desc_label_state): Likewise.
1646         (uw_frame_state_for): Free label states and state stack.
1647         (uw_update_reg_address): Eliminate warnings.
1648
1649 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1650
1651         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1652         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1653
1654 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1655
1656         * c-decl.c (grokdeclarator): Update.
1657         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1658         * c-tree.h (c_mark_addressable): New.
1659         * c-typeck.c (default_function_array_conversion, build_unary_op,
1660         build_array_ref, convert_for_assignment): Update.
1661         (mark_addressable): Rename.
1662         * calls.c (try_to_integrate, expand_call): Use langhook.
1663         * expr.c (expand_expr): Use langhook.
1664         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1665         * langhooks.h (struct lang_hooks): New hook.
1666         * stmt.c (expand_asm_operands): Use langhook.
1667         * tree.h (mark_addressable): Remove.
1668 objc:
1669         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1670
1671 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1672
1673         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1674         in previous change.
1675
1676 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1677
1678         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1679         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1680
1681 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1682
1683         * c-common.c (unsigned_conversion_warning, convert_and_check,
1684         unsigned_type, signed_type, shorten_compare,
1685         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1686         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1687         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1688         New.
1689         * c-decl.c (grokdeclarator): Update.
1690         * c-format.c (check_format_types): Update.
1691         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1692         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1693         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1694         * convert.c (convert_to_integer): Use new hooks.
1695         * expmed.c (make_tree): Use new hooks.
1696         * expr.c (store_expr): Use new hooks.
1697         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1698         all_ones_mask_p, unextend, fold): Use new hooks.
1699         * langhooks.h (struct lang_hooks_for_types): New hooks.
1700         * tree.h (signed_or_unsigned_type, signed_type,
1701         unsigned_type): Remove.
1702 objc:
1703         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1704         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1705
1706 2002-03-31  Richard Henderson  <rth@redhat.com>
1707
1708         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1709         (desc_frgr_mem): Fix reference to f16-f31.
1710
1711 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1712
1713         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1714         RTVEC_ELT): Const-ify.
1715         * varray.h (VARRAY_CHECK): Const-ify.
1716         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1717         ggc_mark_rtvec, ggc_mark): Const-ify.
1718
1719 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1720
1721         * diagnostic.c: Include langhooks-def.h.
1722         * Makefile.in (diagnostic.o): Update.
1723
1724 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1725
1726         * c-common.c (c_unsafe_for_reeval): Rename.
1727         * c-common.h (c_unsafe_for_reeval): Rename.
1728         * c-decl.c (finish_incomplete_decl): Rename.
1729         (c_init_decl_processing): Don't set langhook.
1730         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1731         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1732         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1733         * c-tree.h (finish_incomplete_decl): Rename.
1734         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1735         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1736         (LANG_HOOKS_INITIALIZER): Update.
1737         * langhooks.c (lhd_unsafe_For_reeval): New.
1738         * langhooks.h (struct langhooks): New hooks.
1739         * toplev.c (incomplete_decl_finalize_hook): Remove.
1740         (wrapup_global_declarations): Update.
1741         * tree.c (lang_unsafe_for_reeval): Remove.
1742         (unsafe_for_reeval): Update.
1743         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1744         Remove.
1745 objc:
1746         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1747         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1748
1749 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1750
1751         * diagnostic.c (print_error_function): Remove.
1752         (default_print_error_function): Rename.
1753         (report_error_function): Update.
1754         * diagnostic.h (print_error_function): Remove.
1755         (default_print_error_function): Remove.
1756         * langhooks-def.h (struct diagnostic_context): Predeclare.
1757         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1758         (LANG_HOOKS_INITIALIZER): Update.
1759         * langhooks.h (struct diagnostic context): Predeclare.
1760         (struct lang_hooks): New hook.
1761
1762 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1763
1764         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1765         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1766         !flag_pic.
1767         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1768         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1769         of PIC_OFFSET_TABLE_REGNUM thruout.
1770         * config/rs6000/rs6000.md: Likewise.
1771         * config/rs6000/darwin.h: Likewise.
1772
1773 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1774
1775         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1776         unsigned HOST_WIDE_INT, not unsigned int.
1777
1778 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1779
1780         PR middle-end/6096, middle-end/6098, middle-end/6099
1781         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1782         CODE_LABELs.
1783         (fill_slots_from_thread): Likewise.
1784
1785 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1786
1787         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1788         floating fields in float regs.
1789         (function_arg_record_value_2): Likewise.
1790
1791 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1792
1793         * config/mmix/mmix.md (define_constants): Remove misleading
1794         FIXME.  Add MMIX_fp_rO_OFFSET.
1795         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1796         saved rO as part of the pattern.  Remove FIXME.
1797         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1798         here, at output-time.
1799
1800 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1801
1802         PR middle-end/6100
1803         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1804         REG_BR_PRED.
1805         (output_v9branch): Likewise.
1806
1807 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1808
1809         * gcc.c: Revert previous patch for now.
1810         * config/i386/djgpp.h: Likewise.
1811
1812 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1813
1814         * config/mmix/crti.asm (_init): Register _fini with atexit.
1815         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1816
1817 2002-03-31  Richard Henderson  <rth@redhat.com>
1818
1819         PR target/3997
1820         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1821         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1822
1823 2002-03-31  Richard Henderson  <rth@redhat.com>
1824
1825         * libgcc2.c (__bb_exit_func): Make static.
1826
1827         * config/alpha/alpha.md (trap): New.
1828
1829 2002-03-31  Richard Henderson  <rth@redhat.com>
1830
1831         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1832         promoted argument types; build trap.
1833         (expand_builtin_trap): New.
1834         (expand_builtin): Use it.
1835         * stmt.c (expand_nl_goto_receivers): Likewise.
1836         * expr.h (expand_builtin_trap): Declare.
1837         * libfuncs.h (LTI_abort, abort_libfunc): New.
1838         * optabs.c (init_optabs): Init abort_libfunc.
1839
1840 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1841
1842         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1843         (LINK_COMMAND_SPEC): ... from here.
1844         (init_gcc_specs): Duplicate it here too, omitting
1845         shared_name in the second copy.
1846         (init_spec): Test for duplicate
1847         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1848
1849 2002-03-30  David S. Miller  <davem@redhat.com>
1850
1851         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1852         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1853
1854 2002-03-30  Roger Sayle <roger@eyesopen.com>
1855             Richard Henderson  <rth@redhat.com>
1856
1857         * regmove.c (combine_stack_adjustments_for_block): Avoid
1858         emitting a stack adjustment of zero bytes.  Let delete_insn
1859         update bb->head.
1860
1861 2002-03-30  Richard Henderson  <rth@redhat.com>
1862
1863         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1864         (sparc_emitting_epilogue): New.
1865         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1866         * config/sparc/sparc-protos.h: Update.
1867         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1868         (TARGET_SWITCHES): Update.
1869         * config/sparc/sparc.md (return): Remove.
1870         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1871         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1872         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1873         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1874         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1875         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1876         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1877         Remove MASK_EPILOGUE.
1878         * doc/invoke.texi: Update.
1879
1880 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1881
1882         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1883         CPP will start the file for us.
1884
1885 2002-03-30  Richard Henderson  <rth@redhat.com>
1886
1887         PR target/5446
1888         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1889         prologue_allocate_stack.
1890         (ia64_single_set): Use insn codes for recognition of special
1891         cases, not rtl matching.
1892         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1893
1894 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1895
1896         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1897
1898 2002-03-30  Richard Henderson  <rth@redhat.com>
1899
1900         PR target/6032
1901         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1902         or -fomit-frame-pointer with profiling.
1903         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1904         (FUNCTION_PROFILER): Do nothing.
1905         (PROFILE_HOOK): New.
1906         * config/sparc/sparc.c (sparc_override_options): Don't check
1907         code models for profiling.
1908         (sparc_function_profiler): Remove.
1909         (sparc_profile_hook): New.
1910         * config/sparc/sparc-protos.h: Update.
1911
1912 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1913
1914         PR optimization/6086
1915         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1916         of SUBREG of volatile MEM or because the MEM was mode dependent,
1917         return CLOBBER instead of unmodified SUBREG.
1918
1919 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1920
1921         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1922         when not optimizing.
1923
1924         * toplev.c (rest_of_compilation): Cann mark_constant_function
1925         only when optimizing.
1926
1927         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1928         are NULL.
1929
1930         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1931         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1932         (try_optimize_cfg): clear all AUX fields.
1933
1934         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1935         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1936         (ix86_address_cost): Be prepared for SUBREGed registers.
1937         (legitimate_address_p): Accept SUBREGed registers.
1938
1939 2002-03-29  Richard Henderson  <rth@redhat.com>
1940
1941         PR target/5672
1942         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1943
1944 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1945
1946         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1947         for aggregate and TFmode types.
1948
1949 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1950
1951         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1952
1953 2002-03-29  Richard Henderson  <rth@redhat.com>
1954
1955         PR target/5886
1956         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1957         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1958
1959 2002-03-29  Richard Henderson  <rth@redhat.com>
1960
1961         PR target/6041
1962         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1963         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1964         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1965         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1966         conditional.
1967         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1968
1969 2002-03-29  Dale Johannesen <dalej@apple.com>
1970
1971         * loop.c (combine_movables): Do allow combination of pseudos.
1972
1973 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
1974
1975         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1976         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1977         No functional change except ...
1978         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
1979         * doc/install.texi (*-*-freebsd*): Document port configuration.
1980
1981 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1982
1983         * Makefile.in (convert.o, calls.o, expmed.o): Update.
1984         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1985         Use new hooks.
1986         * builtin-types.def (BT_PTRMODE): Update.
1987         * c-common.c (type_for_size): Rename c_common_type_for_size.
1988         (type_for_mode): Similarly.
1989         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1990         Use new hook.
1991         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1992         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1993         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1994         Redefine.
1995         * c-typeck.c (common_type, comptypes, default_conversion):
1996         Use new hooks.
1997         * calls.c: Include langhooks.h.
1998         (emit_library_call_value_1): Use new hooks.  Avoid redundant
1999         calls.
2000         * convert.c: Include langhooks.h
2001         (convert_to_pointer, convert_to_integer): Use new hooks.
2002         * except.c (init_eh): Similarly.
2003         * expmed.c: Include langhooks.h.
2004         (expand_mult_add): Use new hooks.
2005         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2006         try_casesi): Similarly.
2007         * fold-const.c (optimize_bit_field_compare, make_range,
2008         decode_field_reference, fold_truthop, fold): Similarly.
2009         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2010         put_var_into_stack): Similarly.
2011         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2012         LANG_HOOKS_TYPE_FOR_SIZE): New.
2013         (LANG_HOOKS_TYPES_INITIALIZER): Update.
2014         * langhooks.h (lang_hooks_for_types): New hooks.
2015         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2016         * tree.c (get_unwidened, get_narrower): Similarly.
2017         * tree.h (type_for_mode, type_for_size): Remove.
2018         * varasm.c (force_const_mem): Use new hooks.
2019         * utils2.c (nonbinary_modular_operation): Update.
2020 objc:
2021         * objc-act.c (handle_impent): Update.
2022         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2023         Redefine.
2024
2025 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
2026
2027         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2028         * config/ia64/ia64.c (basereg_operand): New.
2029         * config/ia64/ia64-protos.h (basereg_operand): Declare.
2030         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2031
2032 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2033
2034         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2035         unwind information when frame_pointer_needed.
2036         (mmix_assemble_integer): Tweak wording in comment.
2037
2038 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2039
2040         * Makefile.in (except.o): Update.
2041         * except.c: Include langhooks.h.
2042         (init_eh): Use langhook.
2043         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2044         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2045         (LANG_HOOKS_INITIALIZER): Update.
2046         * langhooks.h (lang_hooks_for_types): New.
2047         (struct lang_hooks): Add it.
2048         * tree.c (make_lang_type_fn, make_lang_type): Remove.
2049         * tree.h (make_lang_type_fn, make_lang_type): Remove.
2050 config:
2051         * alpha/alpha.c: Include langhooks.h.
2052         (alpha_build_va_list): Use langhook.
2053         * d30v/d30v.c: Include langhooks.h.
2054         (d30v_build_va_list): Use langhook.
2055         * i386/i386.c: Include langhooks.h.
2056         (ix86_build_va_list): Use langhook.
2057         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2058         * s390/s390.c: Include langhooks.h.
2059         (s390_build_va_list): Use langhook.
2060         * stormy16/stormy16.c: Include langhooks.h.
2061         (stormy16_build_va_list): Use langhook.
2062
2063 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2064
2065         PR c++/5964
2066         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2067         attributes.
2068         (length): Compute variable length for branches/calls/jumps here.
2069         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2070         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2071         define branch_type attribute.
2072         (divsi3_sp32): Maximum length is 6 not 7.
2073         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2074         call_address_untyped_struct_value_sp32,
2075         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2076         * config/sparc/sparc.c (empty_delay_slot): New function.
2077         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2078         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2079
2080 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2081
2082         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2083         nonzero_bits if not needed.
2084         (nonzero_bits) [XOR]: Likewise.
2085         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2086         reg_last_set_mode and mode are both MODE_INT, but not equal.
2087         (record_value_for_reg): Compute reg_last_set_nonzero_bits
2088         in nonzero_bits_mode for MODE_INT modes.
2089
2090 2002-03-28  Richard Henderson  <rth@redhat.com>
2091
2092         PR target/5715
2093         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2094         to GAS.  Correct drift between alternatives.
2095
2096 2002-03-28  Richard Henderson  <rth@redhat.com>
2097
2098         PR target/6087
2099         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2100
2101 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
2102
2103         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2104         emulation to the linker.
2105
2106 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
2107
2108         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2109         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2110
2111 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
2112
2113         * combine.c (simplify_and_const_int): Make sure to apply mask
2114         when force_to_mode returns a constant integer.  PR3311.
2115
2116 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2117
2118         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2119
2120 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2121
2122         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2123         and Objective-C Dialect Options.
2124
2125 2002-03-28  Richard Henderson  <rth@redhat.com>
2126
2127         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2128         comparison should be done vs !=0 not >0 return code.  Tidy cases.
2129
2130 2002-03-28  Richard Henderson  <rth@redhat.com>
2131
2132         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
2133         on to c_expand_body.
2134         * c-tree.h (finish_function): Update decl.
2135         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2136
2137 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2138
2139         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2140
2141 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
2142
2143         * rtlanal.c: Include flags.h
2144         (may_trap_p): Do not mark FP operations if trapping
2145         if !flag_trapping_math
2146         * Makefile.in (rtlanal.o): Add dependency on flag.h
2147         * ifcvt.c (noce_operand_ok): Avoid the lameness.
2148
2149 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
2150
2151         * mips.md: Use dconst1, not 1.0, as first argument of
2152         REAL_VALUE_LDEXP.  Don't use union real_extract.
2153
2154 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2155
2156         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2157         rather than $target.  Heed program_prefix and
2158         program_transform_name.  Search for gas in cross-compiler case too.
2159         "test -x" rather than "test -f".
2160         (gcc_cv_ld): Likewise.
2161         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2162         (gcc_cv_objdump): Likewise.
2163         * configure: Regenerate.
2164
2165 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2166
2167         * Makefile.in (attribs.o): Update.
2168         * attribs.c: Include langhooks.h.
2169         (decl_attributes): Use langhook.
2170         * c-decl.c (insert_default_attributes): Rename.
2171         * c-tree.h (c_insert_default_attributes): New.
2172         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2173         (LANG_HOOKS_INITIALIZER): Update.
2174         * langhooks.h (struct lang_hooks): New hook.
2175         * tree.h (insert_default_attributes): Remove.
2176 objc:
2177         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2178
2179 2002-03-27  Andreas Schwab  <schwab@suse.de>
2180
2181         * config/i386/i386.c (classify_argument): Also check for
2182         QUAL_UNION_TYPE.
2183
2184 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2185
2186         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2187         any more.
2188
2189 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2190
2191         * i960.md (ret): Set PC.
2192         (nonlocal_goto): Fix expander.
2193         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2194         some jump or call.
2195
2196 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2197
2198         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2199         of libcall regions.
2200
2201 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2202
2203         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2204         assigning to BLOCK_FOR_INSN directly.
2205
2206 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2207
2208         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2209
2210 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2211
2212         * c-common.c (c_expand_expr): Fix prototype.
2213         * c-common.h (c_expand_expr): Always declare, update.
2214         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2215         * c-objc-common.c (c_objc_common_init): No global hook.
2216         * expr.c (expand_expr): Use langhook.
2217         * expr.h (enum expand_modifier): Conditionally declare.
2218         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2219         (LANG_HOOKS_INITIALIZER): Update.
2220         * langhooks.c (lhd_expand_expr): New.
2221         * langhooks.h (struct lang_hooks): New hook.
2222         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2223         (lang_independent_init): Don't default hook.
2224 objc:
2225         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2226
2227 2002-03-27  Richard Henderson  <rth@redhat.com>
2228
2229         PR target/6054
2230         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2231         TARGET_CONST_GP.  Simplify conditions.
2232
2233 2002-03-27  Richard Henderson  <rth@redhat.com>
2234
2235         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2236         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2237         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2238
2239 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2240
2241         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2242         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2243         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2244         Remove unnecessary masks.
2245         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2246         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2247         -mwindows, -mdll switches and their negations.
2248
2249 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2250
2251         * gcc-common.c (lang_mark_false_label_stack): Remove.
2252         * ggc.h (lang_mark_false_label_stack): Similarly.
2253
2254 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2255
2256         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2257
2258         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2259         or __rtems_ is defined.
2260
2261 2002-03-26  Richard Henderson  <rth@redhat.com>
2262
2263         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2264         if a non-trivial load was emitted.
2265         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2266         in high+extra+low case.
2267
2268 2002-03-26  Richard Henderson  <rth@redhat.com>
2269
2270         * config.gcc (sparc*-solaris): Use float_format=sparc.
2271
2272 2002-03-26  Richard Henderson  <rth@redhat.com>
2273
2274         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2275         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2276         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2277         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2278         (WINT_TYPE_SIZE): Fix at 32.
2279
2280 2002-03-26  Richard Henderson  <rth@redhat.com>
2281
2282         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2283         until after eh landing pad generation.
2284         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2285         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2286
2287 2002-03-26  Richard Henderson  <rth@redhat.com>
2288
2289         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2290
2291 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2292
2293         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2294         and warning switches.
2295         (cc1_options):  Likewise.
2296
2297 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2298
2299         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2300         Restore more of the signal context.  Set no_reg_stack_frame.
2301         * config/ia64/unwind-ia64.c (unw_state_record):
2302         Add no_reg_stack_frame, comments.
2303         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2304         (uw_update_context): Adjust bsp when unwinding from leaf,
2305         but not signal frame.
2306
2307 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2308
2309         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2310
2311 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2312
2313         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2314
2315 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2316
2317         PR target/5621
2318         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2319         "Add a pool_range attribute", which was lost during the ARM/Thumb
2320         merge.
2321
2322 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2323
2324         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2325         a register into the MAC16 accumulator.
2326
2327 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2328
2329         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2330         (Warning Options): Document -Wswitch-enum.
2331         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2332         -Wswitch.
2333         (warn_switch_enum): Define variables.
2334         * flags.h (warn_switch_enum): Declare variables.
2335         * stmt.c (expand_end_case_type): When warn_switch_enum /
2336         -Wswitch-enum, perform switch checks.
2337         Fix PR c/5044.
2338
2339 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2340
2341         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2342         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2343         (reload_muladdsi_compare0_scratch): Delete.
2344
2345 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2346
2347         * doc/install.texi (*-*-freebsd*): Update.
2348
2349 2002-03-26  Richard Henderson  <rth@redhat.com>
2350
2351         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2352         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2353
2354         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2355         types from the normal argument frame.
2356
2357         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2358         variable sized objects by reference.
2359         (sparc_va_arg): Receive them by reference too.
2360
2361 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2362
2363         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2364         code to not restoring global registers.
2365
2366 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2367
2368         * Makefile.in (ggc-common.o): Update.
2369         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2370         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2371         * c-tree.h (c_mark_tree): New.
2372         * ggc-common.c: Include langhooks.h.
2373         (gcc_mark_trees): Use new langhook.
2374         * ggc-callbacks.c: Delete file.
2375         * ggc.h (lang_mark_tree): Remove.
2376         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2377         (LANG_HOOKS_INITIALIZER): Update.
2378         * langhooks.h (struct lang_hooks): New hook.
2379 objc:
2380         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2381
2382 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2383
2384         * doc/cpp.texi: Exclude entire Top node from printed manual.
2385         Move option index after directive index.  Insert page breaks
2386         before GFDL and concept index.  Index environment variables
2387         with command line options.
2388         * doc/cppenv.texi: Use @vtable for environment variable list.
2389         Add paragraph explaining semantics of empty elements in path
2390         variables.  Exclude a cross-reference to Fishkill from the
2391         manpage.  Remove an unnecessary cross-reference of the entry
2392         right above the referer.  Don't use @anchor in text that goes
2393         into manpage.
2394         * doc/cppopts.texi: Cross-reference the environment variables
2395         section, not the specific environment variable, for consistency.
2396
2397 2002-03-25  Richard Henderson  <rth@redhat.com>
2398
2399         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2400         anywhere in the block.  Don't refer to insns that have been
2401         removed from the chain.  Iterate backward through the new insns.
2402         Don't refer to edges that have been removed.
2403
2404 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2405
2406         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2407         test for overflow of constant.
2408
2409 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2410
2411         PR target/2623
2412         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2413         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2414         these patterns on arm_archv4.
2415
2416 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2417
2418         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2419         int".
2420
2421 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2422
2423         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2424         float_handled, float_handler, float_signal, set_float_handler,
2425         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2426         * toplev.h: Don't prototype do_float_handler.
2427
2428         * c-lex.c: Fold parse_float into lex_number.  Make warning
2429         about portability of hex float constants more informative, and
2430         don't issue it on top of a syntax error.
2431         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2432         their callers.
2433         * real.h: Define REAL_VALUE_ABS here...
2434         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2435         simplify_unary_real, simplify_binary_real, and
2436         simplify_binary_is2orm1 into their callers.
2437         * tree.c: Fold build_real_from_int_cst_1 into caller.
2438
2439         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2440
2441         * tsystem.h: Include float.h here...
2442         * libgcc2.c: ... not here.
2443
2444 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2445
2446         Fixes for: PR bootstrap/3591, target/5676
2447         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2448         defined.  Do not disable exceptions or rtti.
2449         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2450         mcore.h.  Disable exceptions and rtti, since they are not
2451         supported by EPOC.
2452
2453 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2454
2455         * c-decl.c (maybe_build_cleanup): Remove.
2456         * expr.c (expand_expr): Use langhook.
2457         * langhooks-def.h (lhd_return_null_tree,
2458         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2459         (LANGHOOKS_INITIALIZER): Update.
2460         * langhooks.c (lhd_return_null_tree): New.
2461         * langhooks.h (struct lang_hooks): New hook.
2462         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2463         * tree.h (maybe_build_cleanup): Remove.
2464
2465 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2466
2467         * regrename.c (build_def_use): Move recog_memoized
2468         before extract_insn.
2469
2470 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2471
2472         PR target/6043
2473         * expr.c (emit_group_store): Handle storing into CONCAT.
2474
2475 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2476
2477         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2478         corresponding MATCH_DUP.
2479
2480 2002-03-24  Richard Henderson  <rth@redhat.com>
2481
2482         * unroll.c (unroll_loop): Zero label_map.
2483
2484         * gcse.c: Include except.h.
2485         * Makefile.in (gcse.o): Update.
2486
2487 2002-03-24  Richard Henderson  <rth@redhat.com>
2488
2489         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2490         Do resolve_unique_section before shared data clause.
2491
2492 2002-03-24  Richard Henderson  <rth@redhat.com>
2493
2494         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2495
2496 2002-03-24  Richard Henderson  <rth@redhat.com>
2497
2498         * recog.c (peephole2_optimize): Split blocks when EH insns are
2499         generated in the middle of a block.  Do global life update if
2500         zapped EH edges.
2501
2502 2002-03-24  Richard Henderson  <rth@redhat.com>
2503
2504         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2505
2506 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2507
2508         preprocessor/3951
2509         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2510         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2511         (init_dependency_output): Don't make no_output decision here.
2512
2513 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2514
2515         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2516         warn_switch.  Update description.
2517         (expand_end_case_type): Call check_for_full_enumeration_handling
2518         when warn_switch.
2519
2520 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2521
2522         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2523         (m68hc11_split_move): Call it to see if the source and destination
2524         operands use the same direction auto inc/dec mode, otherwise make the
2525         source an offsetable memory operand and generate an add.
2526
2527 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2528
2529         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2530         register for operand 2.
2531         ("*subsi3_zero_extendqi"): Likewise.
2532         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2533         bits so that it is compatible with a pop.
2534         ("*andhi3_gen"): Likewise.
2535         ("xorhi3"): Likewise.
2536
2537 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2538
2539         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2540         -pedantic here...
2541         (cpp_post_options): ... not here.
2542
2543 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2544             Aldy Hernandez  <aldyh@redhat.com>
2545
2546         Removal of separate preprocessor cpp0.
2547
2548         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2549         cpp0, install-common): Update.
2550         * c-common.c (flag_preprocess_only): New.
2551         (c_common_init): Preprocess for -E.
2552         * c-common.h (flag_preprocess_only): New.
2553         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2554         * c-objc-common.c (c_init_decl_processing): Exit quickly
2555         for NULL return from c_common_init.
2556         * cpplib.h (cpp_preprocess_file): New.
2557         * cppmain.c (main, general_init, pfile, progname): Remove.
2558         (do_preprocessing): Rename cpp_preprocess_file, don't call
2559         cpp_finish.  Don't close stdout here.
2560         (setup_callbacks): Update prototype.
2561         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2562         Update.
2563         * tradcpp.c (main): Ignore -quiet.
2564 objc:
2565         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2566
2567 2002-03-24  Richard Henderson  <rth@redhat.com>
2568
2569         PR optimization/5742
2570         * machmode.def: Add inner mode field to complex modes.
2571         * config/mips/mips.c (mips_function_value): Always define.  Add
2572         new argument to handle libcalls.
2573         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2574         (FUNCTION_VALUE): Likewise.
2575         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2576         * config/mips/mips-protos.h: Update.
2577
2578 2002-03-23  Richard Henderson  <rth@redhat.com>
2579
2580         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2581         * config/sparc/sparc-protos.h: Update.
2582         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2583
2584 2002-03-23  Richard Henderson  <rth@redhat.com>
2585
2586         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2587         _start or _init begins the text segment.
2588
2589 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2590
2591         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2592         not HOST_WIDEST_INT.
2593         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2594
2595 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2596
2597         PR java/5489
2598         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2599         operand argument to output_return_instruction.
2600         * arm.c (arm_print_operand, case 'd'): If the operand is
2601         const_true_rtx then just return.
2602         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2603         then abort.
2604
2605 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2606
2607         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2608         (Warning Options): Document -Wswitch-default.
2609         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2610         -Wswitch.
2611         (warn_switch_default): Define variable.
2612         (warn_switch): Update comment.
2613         * flags.h (warn_switch_default): Declare variable.
2614         (warn_switch): Update comment.
2615         * stmt.c (expand_end_case): Check for and, when
2616         warn_switch_no_default, warn of a missing default case.
2617
2618 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2619
2620         * real.h (N): Special case 128 bit doubles.
2621
2622         * combine.c (simplify_comparison): When widening modes, ignore
2623         sign extension on CONST_INTs.
2624
2625 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2626
2627         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2628         passed to adjust_address.  Fix comment formatting.
2629
2630
2631 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2632
2633         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2634         Always make REAL_VALUE_TYPE a struct containing an array of
2635         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2636         big it is.  Don't declare or use union real_extract.
2637
2638         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2639         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2640         (print_operand), config/arm/arm.c (output_move_double),
2641         config/arm/arm.md (consttable_4, consttable_8),
2642         config/romp/romp.c (output_fpops), config/s390/s390.h
2643         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2644         (xtensa_output_literal): Don't use union real_extract.
2645
2646         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2647         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2648         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2649         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2650         (PRINT_OPERAND): Don't use local version of union
2651         real_extract.
2652
2653         * config/convex/convex.c (check_float_value), config/vax/vax.c
2654         (vax_float_literal), config/m88k/m88k.md (divdf3),
2655         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2656         config/pdp11/pdp11.c (output_move_quad): Don't do host
2657         arithmetic on target floating point quantities.
2658
2659         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2660         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2661
2662         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2663         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2664
2665         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2666         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2667         INFINITY.
2668         * print-rtl.c (print_rtx): Disable code which needs
2669         floating-point emulator.
2670         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2671         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2672         depending on HOST_FLOAT_FORMAT to be defined properly.
2673
2674         * config/1750a/1750a.c (get_double, float_label): Delete.
2675         (print_operand): Delete huge commented-out chunk.  Use
2676         REAL_VALUE_TO_DECIMAL.
2677         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2678         functions.
2679         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2680         IEEE_FLOAT_FORMAT.
2681         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2682         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2683         * config/m88k/m88k.c (real_power_of_2_operand,
2684         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2685         real_extract out of the union; run the input through
2686         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2687         from that into the union.
2688         * config/pdp11/pdp11.c (output_move_double): Rearrange
2689         parentheses to make automatic indenter happy.
2690
2691         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2692         Point" and rewrite to describe current situation.  Also adjust
2693         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2694         match code.
2695         * doc/rtl.texi: Adjust cross reference.
2696
2697 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2698
2699         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2700         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2701         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2702         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2703         prevent use of sp as a reload register.
2704         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2705         non_acc_reg_operand.
2706         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2707         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2708         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2709         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2710
2711 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2712
2713         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2714         * cpplex.c (unterminated): Delete.
2715         (parse_string): No string literal may extend over multiple
2716         lines.  Suppress the error when preprocessing assembly.
2717         * cppmain.c (scan_translation_unit): Strings are single-line.
2718
2719         * doc/cpp.texi: Update to match.
2720
2721 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2722
2723         PR optimization/5854
2724         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2725         Shut up warnings.
2726         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2727         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2728         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2729         const0 if scratch register was not allocated.
2730         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2731         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2732         with GEN_INT (...).
2733         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2734         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2735         with GEN_INT (...) everywhere.  Remove constraints in define_split
2736         patterns.
2737         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2738         require scratch register for setting 0 into regs/non-pushable memory.
2739
2740 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2741
2742         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2743         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2744
2745 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2746
2747         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2748         * cppinit.c (cpp_create_reader):  On by default.
2749         (cpp_handle_option):  Handle -W[no-]endif-labels.
2750         (cpp_post_options):  Also enable if -pedantic.
2751         * cpplib.c (do_else):  Use it.
2752         (do_endif):  Likewise.
2753         * doc/cppopts.texi:  Document new option.
2754         * doc/invoke.texi:  Document new option.
2755
2756 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2757
2758         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2759         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2760
2761 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2762
2763         * flow.c (calculate_global_regs_live): Clear aux fields of
2764         ENTRY and EXIT.
2765
2766 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2767
2768         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2769         REG or MEM subregs, pass rtx * instead of rtx to it.
2770         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2771         rtx * instead of rtx to alter_subreg.
2772         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2773         * config/pj/pj.c (pj_output_rval): Likewise.
2774
2775 2002-03-22  Richard Henderson  <rth@redhat.com>
2776
2777         PR target/3177
2778         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2779         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2780         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2781         (ia64_expand_prologue): Look at int_regs, not words, for number
2782         of incomming int regs.
2783
2784 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2785
2786         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2787
2788 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2789
2790         * toplev.c (flag_loop_optimize, flag_crossjumping):
2791         New static variables.
2792         (rest_of_compilation): Conditionalize crossjumping and
2793         loop optimizer.
2794         (parse_options_and_default_flags): Default loop_optimize and
2795         crossjumping.
2796         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2797         * invoke.texi (crossjumping, loop-optimize): Document.
2798
2799 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2800
2801         * real.c (eiisneg): Move outside #ifdef NANS.
2802
2803 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2804
2805         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2806         frequencies match; avoid match on different loop depths.
2807         (try_crossjump_to_bb): Kill tests that no longer brings time
2808         savings.
2809         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2810         updating code.
2811         (split_edge): Likewise.
2812
2813         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2814         variable.
2815
2816         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2817         * cfgrtl.c: Include insn-config.h
2818         (split_block) Dirtify block in presence of conditional execution
2819
2820 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2821
2822         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2823         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2824         (function_arg): Constify CUMULATIVE_ARGS.
2825         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2826         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2827         (UNITS_PER_DOUBLE): New macro.
2828         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2829         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2830         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2831         fp_regs and stack_words.
2832         (EABI_FLOAT_VARARGS_P): New macro.
2833         * config/mips/mips.c (struct mips_arg_info): New.
2834         (mips_arg_info): New function.
2835         (function_arg_advance): Use it.  Add adjustment instructions here
2836         rather than in function_arg.
2837         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2838         for VOIDmode at the beginning of the function.
2839         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2840         (function_arg_pass_by_reference): Likewise.
2841         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2842         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2843         (mips_va_start): Likewise.  Use the new stack_words field of
2844         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2845         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2846         doubles and other types, aligning the overflow pointer for non-doubles
2847         too.  Remove some code duplication.  Replace hard-coded constants.
2848
2849 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2850
2851         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2852         (CLASS_UNITS): Undefine.
2853         (CLASS_MAX_NREGS): Use FP_INC.
2854         * config/mips/mips.c (compute_frame_size): Likewise.
2855         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2856
2857 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2858
2859         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2860         prototype, and handle lexing numbers and identifiers.
2861         (parse_identifier): Update to new form of parse_slow.
2862         (parse_number): Fast path only, use parse_slow otherwise.
2863         (_cpp_lex_direct): Update calls to parse_number.
2864
2865 2002-03-21  DJ Delorie  <dj@redhat.com>
2866
2867         * bb-reorder.c (make_reorder_chain_1): Protect against
2868         when redundant edges are omitted.
2869         * predict.c (dump_prediction): Likewise.
2870
2871 2002-03-21  Richard Henderson  <rth@redhat.com>
2872
2873         PR target/5996
2874         * fixinc/inclhack.def (solaris_stdio_tag): New.
2875         * fixinc/fixincl.x: Regenerate.
2876
2877 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2878
2879         PR c/5597
2880         * c-typeck.c (process_init_element): Flag non-static
2881         initialization of a flexible array member as illegal.
2882
2883 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2884
2885         * config/rs6000/t-linux64: New.
2886         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2887         t-ppccomm.  Use t-rs6000 and t-linux64.
2888         (powerpc64-*-gnu* <tmake_file>): Likewise.
2889         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2890         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2891         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2892
2893 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2894
2895         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2896         flag_really_no_inline instead of optimize == 0.
2897
2898         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2899
2900         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2901
2902         * flags.h (flag_really_no_inline): New.
2903
2904         * c-common.c (c_common_post_options): Initialize
2905         flag_really_no_inline.
2906
2907         * toplev.c (flag_really_no_inline): New.
2908
2909 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2910
2911         * config/avr/avr.md (length): Fix length computation for
2912         conditional branches.
2913
2914 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2915
2916         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2917         sdbout.o, profile.o): Update.
2918         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2919         langhook.
2920         * c-common.h (gettags): Move here from tree.h.
2921         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2922         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2923         * dbxout.c (dbxout_init): Use getdecls langhook.
2924         * expr.c (expand_expr): Use insert_block langhook.
2925         * fold-const.c: Include langhooks.h.
2926         (fold_range_test, fold_binary_op_with_conditional_arg,
2927         fold): Use global_bindings_p langhook.
2928         * integrate.c (expand_inline_function): Use insert_block langhook.
2929         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2930         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2931         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2932         LANG_HOOKS_GETDECLS): New.
2933         (LANG_HOOKS_INITIALIZER): Update.
2934         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2935         langhook.
2936         * langhooks.h (struct lang_hooks_for_decls): New.
2937         (struct lang_hooks): Update.
2938         * profile.c: Include langhooks.h.
2939         (output_func_start_profiler): Use new langhooks.
2940         * sdbout.c: Include langhooks.h.
2941         (sdbout_init, sdbout_finish): Use getdecls langhook.
2942         * stmt.c: Include langhooks.h.
2943         (expand_fixup, fixup_gotos): Use new langhooks.
2944         * stor-layout.c: Include langhooks.h.
2945         (variable_size): Use global_bindings_p langhook.
2946         * toplev.c (compile_file): Use getdecls langhook.
2947         * tree-inline.c (remap_block): Use insert_block langhook.
2948         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2949         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2950
2951 2002-03-21  Richard Henderson  <rth@redhat.com>
2952
2953         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2954         constants in .data when -fpic.
2955
2956 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2957
2958         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2959         where appropriate.
2960
2961 2002-03-21  Tom Tromey  <tromey@redhat.com>
2962
2963         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
2964
2965 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2966
2967         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2968
2969         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2970
2971 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2972             Richard Henderson  <rth@redhat.com>
2973
2974         PR c/5354
2975         * c-common.c (c_expand_expr): Preserve result of a statement
2976         expression if needed.
2977
2978 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2979
2980         PR bootstrap/4195
2981         * genrecog.c (maybe_both_true_mode): Remove.
2982         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2983         * machmode.def (Pmode): Likewise.
2984
2985 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
2986
2987         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2988         (nonlocal_mentioned_p_1): New function.
2989         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2990         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2991         (mark_constant_function): Recognize pure functions.
2992         * rtl.h (global_reg_mentioned_p): New prototype.
2993         * rtlanal.c (global_reg_mentioned_p,
2994         global_reg_mentioned_p_1): New function.
2995
2996 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2997
2998         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2999         UNIX assert.h.
3000         * fixinc/fixincl.x: Regenerate.
3001
3002 2002-03-20  Jason Merrill  <jason@redhat.com>
3003
3004         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3005
3006 2002-03-20  Michael Meissner  <meissner@redhat.com>
3007
3008         * doc/invoke.texi (Optimize Options): Document that -O2 sets
3009         -fstrict-aliasing.
3010
3011 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3012
3013         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3014         ".literal_position" directive before the constant pool.
3015
3016 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3017
3018         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3019         Add Craig Rodrigues.
3020         Add Brad Lucier to testers.
3021
3022 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3023
3024         PR target/4792
3025         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3026         to if_then_else.
3027         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3028         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3029         instead of insn_extract.
3030
3031 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3032
3033         PR bootstrap/4192
3034         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3035
3036         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3037         stmt if some case has been output.
3038
3039 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3040
3041         PR c/5972
3042         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3043         movsfcc_1, movdfcc_1): Add %O2.
3044         * config/i386/i386.c (print_operand): Handle %ON.
3045         Print . before float condition codes in Sun as cmov syntax.
3046         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3047         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3048         no longer true.
3049
3050 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
3051
3052         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3053         return instruction if PC was popped.
3054
3055 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3056
3057         * config/xtensa/xtensa.md: Remove unused type attributes.
3058         (adddi_carry, subddi_carry): Change type attribute to "multi".
3059
3060 2002-03-19  Dale Johannesen  <dalej@apple.com>
3061
3062         PR optimization/5999, middle-end/5731
3063         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3064         multiplications by reciprocals.
3065
3066 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3067
3068         * Makefile.in: Update.
3069         * c-common.c: Include langhooks.h.
3070         (inline_forbidden_p): Use new hook.
3071         * diagnostic.c: Include langhooks.h.
3072         (format_with_decl, announce_function,
3073         default_print_error_function): Use new hook.
3074         * dwarf2out.c (dwarf2_name): Use new hook.
3075         * function.c: Include langhooks.h.
3076         (init_function_start): Use new hook.
3077         * langhooks-def.h (lhd_decl_printable_name): New.
3078         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3079         (LANGHOOKS_INITIALIZER): Update.
3080         * langhooks.c (lhd_decl_printable_name): New.
3081         * langhooks.h (struct lang_hooks): New hook.
3082         * toplev.c (decl_name, decl_printable_name): Remove.
3083         (open_dump_file): Use new hook.
3084         (process_options): Remove old hook.
3085         * tree.h (decl_printable_name): Remove.
3086 objc:
3087         * objc-act.c (objc_init): Remove old hook.
3088         (objc_printable_name): Export.
3089         * objc-act.h (objc_printable_name): New.
3090         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3091
3092 2002-03-19  Jim Blandy  <jimb@redhat.com>
3093
3094         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3095         the start_source_file debug hook, not the current line number.
3096
3097 2002-03-19  Richard Henderson  <rth@redhat.com>
3098
3099         * flow.c (EH_USES): Provide default.
3100         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3101         * doc/tm.texi (EH_USES): New.
3102
3103         * config/ia64/ia64.c (ia64_eh_uses): New.
3104         * config/ia64/ia64-protos.h: Update.
3105         * config/ia64/ia64.h (EH_USES): New.
3106
3107 2002-03-19  Richard Henderson  <rth@redhat.com>
3108
3109         * varasm.c (output_constant_def): Fix stupid typo.
3110
3111 2002-03-19  Richard Henderson  <rth@redhat.com>
3112
3113         PR 5879
3114         * except.c (current_function_has_exception_handlers): New.
3115         * except.h: Declare it.
3116         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3117         Combine tests that disable all sibcalls for the function.
3118
3119 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
3120
3121         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3122         for INTEGER_CST.
3123
3124 2002-03-19  Richard Henderson  <rth@redhat.com>
3125
3126         PR 5977, 5991
3127         * config/ia64/ia64.c: Revert 2002-03-01 patch.
3128         * config/ia64/ia64.h (INIT_EXPANDERS): New.
3129
3130 2002-03-19  Jim Blandy  <jimb@redhat.com>
3131
3132         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3133         name, even if the replacement list contains no tokens, as required
3134         by Dwarf.
3135
3136 2002-03-19  Jason Merrill  <jason@redhat.com>
3137
3138         * varasm.c (globalize_decl): Get the name from the RTL, not
3139         DECL_ASSEMBLER_NAME.
3140
3141         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3142
3143 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
3144
3145         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3146         subdi_carry): Define.
3147
3148 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3149
3150         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3151         about -fpic/-fPIC if extra_warnings set.
3152
3153 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3154
3155         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3156         TREE_STRING_POINTER.
3157         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3158
3159 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3160
3161         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3162         in favor of SP if FRAME_POINTER_REQUIRED is false.
3163
3164 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3165
3166         * emit-rtl.c (gen_int_mode): New function.
3167         * rtl.h: Prototype for it.
3168         * combine.c (make_extraction, simplify_comparison), expmed.c
3169         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3170         (convert_modes, store_field), optabs.c (expand_fix),
3171         simplify-rtx.c (neg_const_int, simplify_unary_real),
3172
3173         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3174         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3175
3176 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3177
3178         PR c/5656
3179         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3180         convert_parm_for_inlining.
3181         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3182         Define.
3183         * langhooks-def.h: Likewise.
3184         * objc/objc-lang.c: Likewise.
3185         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3186         function.
3187         * tree-inline.c (initialize_inlined_parameters):
3188         Call convert_parm_for_inlining lang hook if needed.
3189         * c-typeck.c (c_convert_parm_for_inlining): New function.
3190         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3191
3192 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3193
3194         * calls.c (precompute_arguments): Do not assume that temporaries
3195         can be destroyed after expanding the argument.
3196         (expand_call): Likewise.
3197
3198 2002-03-15  Eric Christopher  <echristo@redhat.com>
3199
3200         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3201         Fix register preference on last change.
3202         * config/mips/mips.c (mips_return_in_memory): New function.
3203         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3204         * config/mips/mips-protos.h: Declare.
3205         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3206         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3207
3208 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3209
3210         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3211         a register too.
3212         (anddi3, iorsi3): Likewise.
3213
3214         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3215         use %gprel for symbols that are going to be placed in linkonce
3216         sections.
3217
3218         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3219         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3220         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3221         not needed.  Disregard leaf_function_p().
3222         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3223         mips16 frame pointer.
3224         * config/mips/mips.md (store ra): Only to small SP offsets.
3225         2001-08-22  Graham Stott  <grahams@redhat.com>
3226         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3227         return a REG rtx for the return address register.
3228
3229 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3230
3231         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3232         constant-pool addresses as "mode-dependent".
3233         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3234
3235 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3236
3237         PR target/5740
3238         * expr.c (emit_group_load): Use extract_bit_field if
3239         needed for CONCAT arguments.
3240
3241 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3242
3243         PR target/4863
3244         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3245         offset to the base of the table.
3246         (thumb_tablejump): Matcher for Thumb tablejump insn.
3247         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3248         as the difference of two labels.
3249         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3250         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3251         tables in the code.
3252         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3253         * arm.c (get_jump_table_size): If the table is not in the text
3254         section, return zero.
3255
3256 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3257
3258         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3259         of gen_rtx_SUBREG.
3260         (arm_reload_out_hi): Use gen_lowpart instead of
3261         gen_rtx_SUBREG to access QImode components.
3262         * config/arm/arm.md: Disable zero_extend split for QImode
3263         subregs in BIG_ENDIAN mode.
3264         (storehi_bigend): Match use of least significant byte.
3265         (storeinthi): Remove extraneous SUBREG.
3266         Add missing construction of operands[2].
3267         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3268         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3269         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3270
3271 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3272
3273         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3274         any_operand.
3275
3276 2002-03-17  Richard Henderson  <rth@redhat.com>
3277
3278         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3279         explicitly.
3280
3281 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3282
3283         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3284         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3285
3286 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3287
3288         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3289
3290         * predict.c (estimate_bb_frequencies): Delete unused variables.
3291
3292 2002-03-17  Richard Henderson  <rth@redhat.com>
3293
3294         * config/ia64/ia64.c (ia64_attribute_table): Move before
3295         targetm definition.  Make static.
3296
3297 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3298
3299         * c-common.h (yyparse, c_common_parse_file): New.
3300         * c-lang.c: Include c-common.h.
3301         (LANG_HOOKS_PARSE_FILE): Redefine.
3302         * c-lex.c: Include c-common.h.
3303         (yyparse): Rename c_common_parse_file.  Call yyparse.
3304         * c-parse.in (yyparse): Remove macro.
3305         * c-tree.h (yyparse_1): Remove.
3306         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3307         (LANG_HOOKS_INITIALIZER): Update.
3308         * langhooks.h (struct lang_hoooks): New hook parse_file.
3309         * toplev.c (compile_file): Use parse_file hook.
3310         * tree.h (yyparse): Remove.
3311         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3312
3313 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3314
3315         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3316         float_truncate, not fix.
3317         ("*truncdfsf2_real"): Ditto.
3318         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3319
3320         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3321
3322 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3323
3324         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3325         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3326         where appropriate.  Make the second reference to
3327         leaf_function_p a function call, as intended.  Reindented.
3328
3329         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3330         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3331
3332         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3333         add register to non-constant into sp.
3334
3335         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3336         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3337         (mips16_gp_pseudo_rtx): Lose.
3338         (INIT_EXPANDERS): Deleted.
3339         * config/mips/mips.c (mips_init_machine_status): New.
3340         (mips_free_machine_status): New.
3341         (mips_mark_machine_status): New.
3342         (override_options): Set them.
3343         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3344         (struct machine_function): ... new.  Replaced all references.
3345         (mips_add_gc_roots): Don't mark them.
3346         (embedded_pic_fnaddr_reg): New, extracted from...
3347         (embedded_pic_offset): ... here.
3348         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3349         (movsi): Likewise.
3350
3351 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3352
3353         * cppinit.c: Revert -MD removal.
3354
3355 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3356
3357         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3358         soft registers by default for 68HC12.
3359         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3360         when compiling with -fomit-frame-pointer.
3361         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3362         (expand_epilogue): Likewise.
3363         (m68hc11_gen_rotate): Use exg when rotating by 8.
3364
3365 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3366
3367         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3368         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3369         (splits): Remove unused add splits.
3370         ("*addhi3_68hc12"): Tune constraints.
3371         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3372         constant fits in 8-bits and D is dead use abx/aby instructions.
3373         ("*addhi3"): Remove extern declaration of ix_reg.
3374         ("*subsi3"): Optimize and provide new split.
3375         ("subhi3"): Cleanup.
3376         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3377         (arith splits): For 68hc12 save the address register on the stack
3378         and do the arithmetic operation with a pop.
3379
3380 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3381
3382         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3383         allocating QImode in address registers.
3384         ("*movqi_m68hc11"): Likewise.
3385
3386 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3387
3388         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3389
3390 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3391
3392         * cppinit.c (print_help): Display -MD and -MMD.
3393         Don't display usage string.  Update assertion syntax and
3394         typo.
3395         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3396         (cpp_handle_option): Update.
3397
3398 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3399
3400         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3401         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3402         and define it so that regardless of target CPU size,
3403         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3404         of "int" rather than "long."
3405
3406 2002-03-15  Richard Henderson  <rth@redhat.com>
3407
3408         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3409         size as a tree.
3410
3411 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3412
3413         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3414         ("tstqi" split): Avoid using memory for tstqi on address register.
3415         (splits): Remove constraints.
3416         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3417         ("cmpdf", "cmpsf"): Remove since not used.
3418         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3419         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3420
3421 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3422
3423         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3424         ("neghi2"): Tighten constraints.
3425         ("one_cmplsi2"): Optimize and simplify split.
3426         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3427
3428 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3429
3430         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3431         and split of AND operation to clear the upper bits.
3432         ("*logicalsi3_zextqi"): Likewise.
3433         ("*logicallhi3_zexthi_ashift8"): Likewise.
3434         ("*logicalsi3_silshr16"): Likewise.
3435         ("logicalsi3_silshl16"): Likewise.
3436         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3437
3438 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3439
3440         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3441         (m68hc11_indirect_p): New function.
3442         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3443         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3444         TARGET_M6812.
3445         (asm_print_register): Likewise.
3446         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3447         (m68hc11_indirect_p): Declare.
3448         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3449         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3450         (TARGET_SWITCHES): New option -mrelax.
3451         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3452         destination.
3453         ("iorsi3", "xorsi3"): Likewise.
3454         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3455         ("*andhi3_mem"): New to handle destination in memory with bclr
3456         and a scratch register.
3457         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3458         ("*andhi3_const"): New when operand2 is constant.
3459         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3460         ("*andhi3_gen"): Cleanup of the old "andhi3".
3461         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3462         ("xorqi3"): Update constraints.
3463
3464 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3465
3466         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3467         for reg_equiv_memory_loc when the operand is a register that does
3468         not get a hard register (stack location).
3469         (tst_operand): After reload, accept all memory operand.
3470         (symbolic_memory_operand): Fix detection of symbolic references.
3471         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3472         accept symbols and any constant.
3473
3474 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3475
3476         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3477         note on the insn that sets the soft frame register.
3478         (must_parenthesize): ix and iy are also reserved names.
3479         (print_operand_address): One more place where parenthesis are required
3480         to avoid confusion with register names.
3481         (m68hc11_gen_movhi): Allow push of stack pointer.
3482         (m68hc11_check_z_replacement): Fix handling of parallel with a
3483         clobber.
3484         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3485         the replacement register is.
3486         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3487         and D8_REGS classes.
3488         (MODES_TIEABLE_P): All modes are tieable except QImode.
3489
3490 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3491
3492         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3493         (___subdi3): Likewise.
3494         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3495         (__map_data_section): Optimize 68hc11 case.
3496
3497 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3498
3499         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3500         than a shift to avoid adding a register with itself.
3501         (m68hc11_memory_move_cost): Take into account NO_REGS.
3502         (m68hc11_register_move_cost): Update and use memory move cost
3503         for soft registers.
3504         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3505         it gives more opportunities to cse to optimize.
3506         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3507         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3508
3509 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3510
3511         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3512         * c-common.def (CLEANUP_STMT): New tree node.
3513         * c-common.h (CLEANUP_DECL): New macro.
3514         (CLEANUP_EXPR): Likewise.
3515         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3516         * expr.c (expand_expr): Tidy.
3517         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3518         * tree-inline.c (initialize_inlined_parameters): Clean up
3519         new local variables.
3520
3521 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3522
3523         PR bootstrap/4128
3524         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3525         before movrXX only, use reg_overlap_mentioned_p.
3526         Only special case NE if just one insn can be generated.
3527
3528 2002-03-15  Jason Merrill  <jason@redhat.com>
3529
3530         * varasm.c (assemble_variable): Call resolve_unique_section before
3531         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3532         of error_mark_node.
3533
3534 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3535
3536         PR target/5170
3537         * arm.md (split pattern for thumb shiftable immediates): Add comment
3538         explaining non-obvious test.
3539
3540 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3541
3542         PR target/5712
3543         * arm.md (movaddr, movaddr_insn): Delete.
3544
3545 2002-03-15  Jason Merrill  <jason@redhat.com>
3546
3547         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3548         -fkeep-static-consts doesn't apply to comdats.
3549
3550 2002-03-14  Richard Henderson  <rth@redhat.com>
3551
3552         * c-decl.c: Include c-pragma.h.
3553         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3554         (finish_function): Tidy.
3555         * c-pragma.c: Include c-common.h.
3556         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3557         (handle_pragma_weak): Use them.
3558         (init_pragma): Register pending_weaks.
3559         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3560         * print-tree.c (print_node): Print DECL_WEAK.
3561         * varasm.c (mark_weak_decls): Remove.
3562         (remove_from_pending_weak_list): Remove.
3563         (add_weak): Remove.
3564         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3565         (weak_decls): Make a tree_list.
3566         (declare_weak): Cons weak_decls directly.
3567         (globalize_decl): Remove weak_decls elements directly.
3568         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3569         symbols.  Don't pretend to handle aliases.
3570         (init_varasm_once): Update weak_decls registry.
3571         * Makefile.in: Update dependencies.
3572
3573 2002-03-14  Richard Henderson  <rth@redhat.com>
3574
3575         PR target/5312
3576         * config/ia64/ia64.c: Include tm_p.h last.
3577         (gen_nop_type): Remove duplicate definition.
3578         (cycle_end_fill_slots): Set sched_data for second L slot.
3579         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3580         (nop_cycles_until): Fix typos.
3581
3582 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3583
3584         PR optimization/5891
3585         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3586
3587 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3588
3589         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3590           descriptors correctly.
3591
3592 2002-03-14  Michael Meissner  <meissner@redhat.com>
3593
3594         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3595         100, allowing MAX_UNROLLED_INSNS to be overridden.
3596
3597         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3598         --param.
3599
3600         * unroll.c (params.h): Include.
3601         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3602
3603         * doc/invoke.texi (--param max-unroll-insns): Document.
3604
3605         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3606
3607 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3608
3609         * arm.md: Fix warnings about constraints in peepholes and splits.
3610
3611 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3612
3613         * cpphash.h (struct lexer_state): Remove line_extension member.
3614         * cpplib.c (dequote_string, do_linemarker): New functions.
3615         (linemarker_dir): New data object.
3616         (DIRECTIVE_TABLE): No longer need to interpret #line in
3617         preprocessed source.  Delete obsolete comment about return
3618         values of handlers.
3619         (end_directive, directive_diagnostics, _cpp_handle_directive):
3620         Don't muck with line_extension.
3621         (directive_diagnostics): No need to issue warnings for
3622         linemarkers here.
3623         (_cpp_handle_directive): Issue warnings for linemarkers here,
3624         when appropriate.  Dispatch linemarkers to do_linemarker, not
3625         do_line.
3626         (do_line): Code to handle linemarkers split out to do_linemarker.
3627         Convert escape sequences in filename argument, both places.
3628
3629         * cppmacro.c (quote_string): Rename cpp_quote_string and
3630         export.  All callers changed.
3631         * cpplib.h (cpp_quote_string): Prototype.
3632         * cppmain.c (print_line): Call cpp_quote_string on to_file
3633         before printing it.
3634
3635         * doc/cpp.texi: Document that escapes are now interpreted in
3636         #line and in linemarkers, and that non-printing characters are
3637         converted to octal escapes when linemarkers are generated.
3638
3639 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3640
3641         * emit-rtl.c (try_split): Use delete_insns.
3642         * recog.c (split_all_insns): Fix terminating condition.
3643
3644 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3645             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3646
3647         PR target/5828
3648         * arm.c (arm_output_epilogue): Fix floating-point register save
3649         adjustment when using a frame pointer.
3650
3651 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3652
3653         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3654         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3655         (save_restore_insns, mips_expand_epilogue): And here.
3656         (build_mips16_call_stub): And here.
3657         (mips_function_value): Use the new macros to decide whether a single
3658         or complex float can be returned in floating-point registers.  Return
3659         a parallel rtx in the complex case.
3660
3661 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3662
3663         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3664         call after liveness analysis.
3665
3666         * recog.c (split_insn): Use delete_insn_and_edges.
3667
3668         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3669         instructions to have branch prediction notes.
3670         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3671
3672 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3673
3674         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3675         that doesn't support it.
3676         * configure: Regenerate.
3677
3678 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3679
3680         PR target/5626
3681         * config/sparc/sparc.md (normal_branch, inverted_branch,
3682         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3683         inverted_fp_branch): Adjust calls to output_cbranch.
3684         Set length attribute.
3685         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3686         output_v9branch.  Set length attribute.
3687         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3688         predicates.
3689         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3690         (output_cbranch): Likewise.  Handle far branches.
3691         (output_v9branch): Handle far branches.
3692         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3693         Adjust prototypes.
3694         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3695         noov_compare64_op predicates.
3696
3697 2002-03-13  Jason Merrill  <jason@redhat.com>
3698
3699         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3700         into the function and constify it.
3701         * gthr-dce.h, gthr-solaris.h: Likewise.
3702
3703 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3704
3705         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3706         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3707         std_expand_builtin_va_arg if not ABI_V4.
3708
3709 2002-03-13  Jason Merrill  <jason@redhat.com>
3710
3711         * varasm.c (globalize_decl): New fn.
3712         (assemble_start_function): Use it.
3713         (asm_emit_uninitialized): Use it.
3714         (assemble_alias): Use it.
3715         (assemble_variable): Use it.
3716
3717 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3718
3719         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3720         2002-03-12 internal visibility change.
3721         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3722         visibility into SYMBOL_REF_FLAG.
3723
3724 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3725
3726         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3727         VOIDmode operand.  Add compile-time optimization for constant results.
3728
3729 2002-03-12  Jason Merrill  <jason@redhat.com>
3730
3731         * c-typeck.c (convert_for_assignment): Don't allow conversions
3732         between pointers and references.  Only allow lvalues to convert to
3733         reference.
3734
3735 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3736
3737         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3738         before prologue, to avoid scheduling problems.
3739
3740 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3741
3742         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3743         (ELIMINABLE_REGS): Add sfp->sp.
3744         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3745
3746 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3747
3748         PR optimization/5892
3749         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3750
3751 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3752
3753         * loop.c (basic_induction_var): Don't call convert_modes if mode
3754         classes are different.
3755
3756 2002-03-12  Richard Henderson  <rth@redhat.com>
3757
3758         PR optimization/5901
3759         * function.c (reposition_prologue_and_epilogue_notes): Position
3760         the markers after/before the last/first insn not deleted.
3761
3762 2002-03-12  Richard Henderson  <rth@redhat.com>
3763
3764         PR optimization/5878
3765         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3766         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3767         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3768
3769         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3770         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3771         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3772
3773         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3774         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3775         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3776         also.  Don't set it if not flag_pic.
3777         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3778         to be INVALID_REGNUM when not used.
3779
3780 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3781
3782         * expmed.c (store_bit_field): Reset alias set for memory.
3783         (extract_bit_field): Same.
3784
3785 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3786
3787         * c-common.c (c_tree_code_type, c_tree_code_length,
3788         c_tree_code_name, add_c_tree_codes): Delete.
3789         * c-common.h (add_c_tree_codes): Delete.
3790         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3791         Define.
3792         * c-objc-common.c (c_objc_common_init): Don't call
3793         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3794         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3795         objc_tree_code_name, add_objc_tree_codes): Delete.
3796         (objc_init): Don't call add_objc_tree_codes.
3797         * objc/objc-lang.c (tree_code_type, tree_code_length,
3798         tree_code_name): Define.
3799         * toplev.c (lang_independent_init): Don't set
3800         tree_code_length[IDENTIFIER_NODE].
3801         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3802         Delete definitions, moved to language front-ends.
3803         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3804         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3805         Const-ify.
3806         (tree_code_length): Change type to unsigned char.
3807
3808 2002-03-12  Richard Henderson  <rth@redhat.com>
3809
3810         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3811         internal visibility change.
3812
3813 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3814
3815         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3816         validize_mem() instead of change_address to avoid clobbering
3817         memory attributes.
3818
3819 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3820
3821         * c-lex.h (position_after_whitespace): Remove.
3822
3823 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3824
3825         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3826         (lex_string): Use unsigned char pointers.
3827
3828 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3829
3830         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3831         is not a valid memory_operand.
3832
3833 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3834
3835         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3836         * config/xtensa/lib1funcs.asm: Fix copyright to include
3837         special case for libgcc files.
3838         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3839         (__divsi3): Likewise.
3840         (__umodsi3): Likewise.
3841         (__modsi3): Likewise.
3842         * config/xtensa/lib2funcs.S: Fix copyright to include
3843         special case for libgcc files.
3844
3845 2002-03-12  Tom Rix  <trix@redhat.com>
3846
3847         * collect2.c (resolve_lib_name): Move outside of
3848         OBJECT_FORMAT_COFF ifdef.
3849         (ignore_library): Same.
3850
3851 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3852
3853         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3854
3855 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3856
3857         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3858         to function_section before writing out the constant pool.
3859
3860 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3861
3862         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3863         zero_constant.
3864         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3865
3866 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3867
3868         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3869         (adddi3): Likewise.
3870         (movdf): Likewise.
3871         (movdi): Likewise.
3872         (cmpsi splitter): Likewise.
3873         (modsi3): Fail if <= 0.
3874         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3875         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3876         (reg_or_sub_cint64_operand): Likewise.
3877         (num_insns_constant_wide): Optimize sign extension.
3878         (rs6000_legitimize_address): Likewise.
3879
3880 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3881
3882         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3883         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3884
3885 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3886
3887         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3888         address calculation.
3889
3890 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3891
3892         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3893         scratch register to DImode / TImode.
3894         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3895         register used does not overlap the target.
3896
3897 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3898
3899         * Makefile.in (debug.o): Depend on debug.h.
3900         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3901         * debug.c (do_nothing_debug_hooks): Likewise.
3902         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3903         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3904         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3905         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3906         * dwarfout.c (dwarf_debug_hooks): Likewise.
3907         * integrate.c (output_inline_function): Likewise.
3908         * objc/objc-act.c (synth_module_prologue): Likewise.
3909         * sdbout.c (sdb_debug_hooks): Likewise.
3910         * toplev.c (debug_hooks): Likewise.
3911         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3912
3913 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3914
3915         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3916         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3917         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3918         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3919         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3920         * defaults.h (POINTER_SIZE): Define.
3921         * doc/tm.texi (POINTER_SIZE): Document default.
3922
3923 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3924
3925         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3926
3927 2002-03-11  Richard Henderson  <rth@redhat.com>
3928
3929         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3930         if rebuild_label_notes_after_reload.
3931
3932 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3933
3934         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3935         emit pic register load if "internal" visibility.
3936         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3937         (cris_expand_builtin_va_arg): Do all computations on trees.
3938
3939 2002-03-11  Richard Henderson  <rth@redhat.com>
3940
3941         * rtlanal.c: Include recog.h.
3942         (keep_with_call_p): Fix thinko.
3943         * Makefile.in (rtlanal.o): Update dependencies.
3944
3945 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3946
3947         * genflags.c (gen_insn): Use IS_VSPACE.
3948         * genoutput.c (output_insn_data): Likewise.
3949         (process_template): Likewise.
3950
3951 2002-03-11  Richard Henderson  <rth@redhat.com>
3952
3953         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3954
3955 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3956
3957         * Makefile.in: Update.
3958         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3959         Update documentation.
3960         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3961         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3962
3963 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
3964
3965         * Makefile.in: Give texi2pod its input file as a command line
3966         argument, not on stdin.
3967
3968 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
3969             Daniel Berlin  <dan@dberlin.org>
3970
3971         C++ alias analysis improvement.
3972         * alias.c (record_component_aliases): Record aliases for base
3973         classes too.
3974
3975 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
3976
3977         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3978
3979 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3980
3981         * toplev.c (vms_fopen): Remove, not needed.
3982
3983         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3984
3985         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3986
3987         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3988         for FP, already done later.
3989
3990         * toplev.c (debug_args): Add entry for VMS_DEBUG.
3991         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3992
3993 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
3994
3995         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3996         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3997         LARGEST_EXPONENT_IS_NORMAL for the given mode.
3998         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3999         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4000         (ediv, emul, eldexp, esqrt): Likewise.
4001         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4002         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4003         (saturate): New function.
4004         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4005         (make_nan): Use a saturation value instead of a NaN if
4006         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
4007         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4008         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
4009         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
4010         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4011         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4012         !ROUND_TOWARDS_ZERO.
4013         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4014         (ROUND_TOWARDS_ZERO): Document.
4015
4016 2002-03-11  Andreas Jaeger  <aj@suse.de>
4017
4018         * cfg.c (dump_flow_info): Remove unused variable.
4019
4020 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
4021
4022         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4023         computations on trees.
4024
4025 2002-03-10  Richard Henderson  <rth@redhat.com>
4026
4027         PR 5693:
4028         * reload.c (copy_replacements_1): New.
4029         (copy_replacements): Use it to recurse through the rtx.
4030
4031 2002-03-10  Richard Henderson  <rth@redhat.com>
4032
4033         * loop.c (strength_reduce): Compute number of iterations as
4034         unsigned HOST_WIDE_INT.
4035
4036 2002-03-10  Richard Henderson  <rth@redhat.com>
4037
4038         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4039         to move away from the end of the block.
4040
4041 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4042
4043         PR preprocessor/5899
4044         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4045
4046 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4047
4048         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4049
4050         * attribs.c (decl_attributes): Fix signed/unsigned warning.
4051
4052 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
4053
4054         * config/mmix/mmix.c: Improve comments.
4055         (mmix_target_asm_function_prologue): Drop variable
4056         empty_stack_frame.  Don't allocate unused slot above fp.
4057         (mmix_target_asm_function_epilogue): Mirror prologue changes.
4058         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4059         brace in first column.
4060         (enum reg_class): Ditto.
4061         (FIRST_PARM_OFFSET): Now 0.
4062         (USER_LABEL_PREFIX): Remove #if 0:d definition.
4063
4064 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4065
4066         * combine.c (make_extraction): Fix error in last change.
4067
4068 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4069
4070         * c4x.c (c4x_fp_reglist): Const-ify.
4071         * cris.c (cris_print_operand): Likewise.
4072         * i386.c (ix86_va_arg): Likewise.
4073         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4074         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4075         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4076         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4077         * mcore.h (regno_reg_class): Likewise.
4078         * mips.c (gen_int_relational): Likewise.
4079         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4080         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4081         * pdp11.c (move_costs): Likewise.
4082         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4083         * s390.c (s390_branch_condition_mnemonic, regclass_map):
4084         Likewise.
4085         * s390.h (regclass_map): Likewise.
4086         * sh.c (shift_amounts): Likewise.
4087         * sh.md (rotlsi3): Likewise.
4088
4089 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4090
4091         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4092         (ne0+5): Use new clobber to generate proper shift pattern.
4093         Patch by Michael Matz <matz@kde.org>.
4094
4095 2002-03-09  Andreas Schwab  <schwab@suse.de>
4096
4097         * gcc.c (validate_all_switches): Also handle `%W{...}'.
4098
4099 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4100
4101         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4102
4103 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
4104
4105         PR middle-end/5877
4106         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4107         even for non-representable constants.
4108
4109 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4110
4111         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4112         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4113         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4114         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4115         (pop_function_context): Compute MAY_SHARE parameter for
4116         fixup_var_refs.
4117         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4118         (gen_mem_addressof): Call fixup_var_refs with new parm.
4119
4120         * combine.c (make_extraction): Don't make extension of CONST_INT.
4121
4122 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4123
4124         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4125         in o32 and o64 ABIs.
4126         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4127         but getting fixed-size structs passed in registers regardless of
4128         padding in o32 and o64 ABIs.
4129
4130         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4131         offset before loading address of argument passed by transparent
4132         reference.
4133
4134 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4135
4136         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4137
4138 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4139
4140         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4141         marker such that registers after it are saved.
4142
4143 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4144
4145         * sparc.c (arith_4096_operand): Fix error in last change.
4146
4147 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4148
4149         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4150         defaults for MEABI.
4151
4152 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4153
4154         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4155         vectors.
4156
4157 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4158
4159         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4160
4161 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4162
4163         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4164         removed; fix return value.
4165         * combine.c (combine_instructions): Dirtify blocks where we failed to
4166         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4167         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4168
4169 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4170
4171         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4172
4173 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4174
4175         * recog.c (peephole2_optimize): Re-distribute EH edges.
4176
4177 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4178
4179         * expr.c (expand_expr): Use unsave lang hook.
4180         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4181         (LANG_HOOKS_INITIALIZER): Update.
4182         * langhooks.h (struct lang_hooks): New hook unsave.
4183         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4184         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4185         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4186         (unsave_expr_now): Remove.
4187         * tree.h (unsave_expr_now, lang_unsave,
4188         lang_unsave_expr_now): Remove.
4189         (lhd_unsave): New.
4190
4191 2002-03-08  Andreas Jaeger  <aj@suse.de>
4192
4193         * flow.c (propagate_block_delete_insn): Remove unused variable.
4194
4195 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4196
4197         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4198         insn length for memory load/store.
4199
4200 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4201
4202         * doc/install.texi (--with-libiconv-prefix): Document.
4203
4204 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4205
4206         * doc/sourcebuild.texi: Fix typo.
4207
4208 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4209
4210         PR c/3711
4211         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4212         trees.
4213
4214 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4215
4216         * rtl.c (copy_most_rtx): Move from here ...
4217         * emit-rtl.c (copy_most_rtx): ... to here.
4218
4219 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4220
4221         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4222         SUBTARGET_CPP_SIZE_SPEC.
4223         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4224
4225         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4226
4227 2002-03-07  Matt Hiller  <hiller@redhat.com>
4228
4229         * gensupport.c (first_dir_md_include): Renamed from include;
4230         change all references.
4231         (last_dir_md_include): Renamed from last_include; change all
4232         references.
4233         (init_md_reader): Unconditionally initialize base_dir whether or
4234         not filename is a relative path.
4235
4236 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4237
4238         * config/fp-bit.c (_unord_f2): Compile it in even if
4239         US_SOFTWARE_GOFAST is enabled.
4240
4241         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4242         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4243         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4244         NULL_RTX, try reversing the comparison and the operands.
4245
4246 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4247
4248         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4249         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4250         and MATCH_OP_DUP.
4251
4252 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4253
4254         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4255
4256 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4257
4258         * basic-block.h (fixup_abnormal_edges): Declare.
4259         * reload1.c (fixup_abnormal_edges): New function.
4260         * reg-stack.c (convert_regs): Use it.
4261
4262         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4263
4264         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4265
4266 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4267
4268         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4269         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4270         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4271         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4272         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4273         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4274         unless x and y could be infinite.
4275         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4276         Check that the common type of both arguments is a real, even for
4277         targets without unordered comparisons.  Allow an integer argument
4278         to be compared against a real.
4279         (expand_tree_builtin): Use expand_unordered_cmp.
4280         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4281         * cse.c (fold_rtx): Likewise.  Fix indentation.
4282         * fold-const.c (fold_real_zero_addition_p): New.
4283         (fold): Use it, and the new HONOR_... macros.
4284         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4285         * jump.c (reversed_comparison_code_parts): After searching for
4286         the true comparison mode, use HONOR_NANS to decide whether it
4287         can be safely reversed.
4288         (reverse_condition_maybe_unordered): Remove IEEE check.
4289         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4290         to decide which simplifications are valid.  Allow the following
4291         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4292         and (a - -b) to (a + b).
4293         (simplify_relational_operation): Use HONOR_NANS.
4294         * doc/tm.texi: Document the MODE_HAS_... macros.
4295
4296 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4297
4298         * combine.c (simplify_comparison): If simplifying a logical shift
4299         right and compare with constant, force the comparison to unsigned.
4300
4301 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4302
4303         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4304
4305         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4306         -mabi=no-altivec
4307         (alt_reg_names): Remove % for vrsave.
4308
4309 2002-03-06  Richard Henderson  <rth@redhat.com>
4310
4311         PR optimization/5844
4312         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4313         if used indicates we've already emitted one copy of an operand.
4314         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4315         (gen_split): Supply a non-null used.
4316
4317 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4318
4319         * reload1.c (reload): Unshare all rtl after reload is done.
4320
4321         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4322         but simply fail if the expression is too complex to simplify.
4323         (simplify_gen_binary): Handle simplify_plus_minus failures.
4324
4325 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4326
4327         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4328         consistently call delete_trivially_dead_insns after CSE and GCSE;
4329         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4330         after liveness2; update comment in last crossjumping.
4331         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4332
4333 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4334
4335         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4336         after completing fast dead code elimination.
4337
4338         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4339         COMPARE operator.
4340
4341 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4342
4343         * version.c:  Fix misplaced leading blanks on first line.
4344
4345 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4346
4347         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4348
4349 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4350
4351         * cfgcleanup.c (mentions_nonequal_regs): New function.
4352         (thread_jump): Use it.
4353         * toplev.c (rest_of_compilation): Run jump threading after
4354         liveness.
4355
4356 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4357
4358         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4359         patch.
4360
4361 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4362
4363         * predict.c (estimate_bb_frequencies): Do not reload the
4364         frequencies from notes.
4365
4366 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4367
4368         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4369         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4370
4371         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4372         delete_noop_moves): Return indeger.
4373         * flow.c (ndead): New variable.
4374         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4375         BB argument; update callers.
4376         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4377         (life_analysis): Do not call purge_all_dead_edges.
4378         (update_life_info): Return number of deleted insns; print statistics.
4379         (update_life_info_in_dirty_blocks): likewise.
4380         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4381         return number of insns deleted.
4382
4383         * cse.c: Include timevar.h
4384         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4385         iterate until stabilizes; print statistics; return number of killed
4386         insns.
4387         * Makefile.in: (cse.o): Add timevar.h dependency
4388         * rtl.h (delete_trivially_dead_insns): New.
4389         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4390         * toplev.c (rest_of_compilation): Update callers.
4391
4392         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4393         (try_optimize_cfg): Do not update liveness.
4394         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4395         removal stabilizes; use delete_trivially_dead_insns.
4396
4397         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4398
4399 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4400
4401         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4402         callbacks when processing assembly language.
4403
4404 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4405
4406         * pa.h (ASM_FILE_END): Define.
4407         * som.h (ASM_FILE_END): Delete.
4408
4409         * pa.c (function_arg): Don't pass floats in general registers in
4410         indirect calls if TARGET_ELF32.
4411
4412 2002-03-05  Richard Henderson  <rth@redhat.com>
4413
4414         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4415
4416 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4417
4418         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4419
4420 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4421
4422         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4423         -r command line.  Don't hide any symbols if not building
4424         shared libgcc.
4425
4426 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4427
4428         * cfg.c (dump_flow_info): Warn about profile mismatches.
4429         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4430         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4431
4432 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4433
4434         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4435         wide volatile memory by parts.
4436
4437 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4438
4439         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4440         is NULL.
4441
4442 2002-03-05  Richard Henderson  <rth@redhat.com>
4443
4444         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4445
4446 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4447
4448         * toplev.c (documented_lang_options): Document more
4449         language-specific options.
4450         * doc/invoke.texi (Warning Options): Correct documentation for
4451         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4452         * c-decl.c (c_decode_option): Use a table to handle warning options.
4453
4454 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4455
4456         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4457         parameter to mmix_encode_section_info.
4458         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4459         relocatably.  Always produce ELF, not mmo if linking relocatably.
4460         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4461         first is non-zero, don't add symbol prefix.
4462         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4463         prototype accordingly.
4464
4465 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4466
4467         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4468
4469 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4470
4471         * configure.in: Increase required makeinfo version to 4.1.
4472         * configure: Regenerate.
4473
4474 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4475
4476         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4477         elsewhere now.
4478
4479 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4480
4481         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4482         * doc/invoke.texi: Fix @math uses.
4483
4484 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4485
4486         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4487         removal
4488
4489 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4490
4491         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4492         (powerpc-*-eabisimaltivec*): Same.
4493
4494         * config/rs6000/t-ppcendian: New.
4495
4496 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4497
4498         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4499         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4500         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4501
4502 2002-03-03  Richard Henderson  <rth@redhat.com>
4503
4504         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4505
4506 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4507
4508         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4509         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4510         tree.c, config/m68k/m68k.c:
4511         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4512         REAL_ARITHMETIC blocks unconditional.  Delete some further
4513         #ifdef blocks predicated on REAL_ARITHMETIC.
4514         * flags.h, toplev.c: Delete remaining references to
4515         flag_pretend_float.
4516
4517         * doc/invoke.texi: Remove documentation of -fpretend-float.
4518         * doc/tm.texi: Describe the various REAL_* macros as provided by
4519         real.h, not by the target configuration files.
4520
4521         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4522         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4523         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4524         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4525         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4526         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4527         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4528         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4529         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4530         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4531         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4532         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4533         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4534         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4535         config/xtensa/xtensa.h:
4536         Do not define, undefine, or mention in comments any of
4537         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4538         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4539         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4540         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4541         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4542         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4543         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4544         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4545         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4546
4547 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4548
4549         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4550         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4551         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4552         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4553         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4554         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4555         Delete.
4556         * defaults.h (BITS_PER_WORD): Define.
4557         * doc/tm.texi (BITS_PER_WORD): Document default value.
4558
4559         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4560         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4561         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4562
4563 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4564
4565         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4566         lieu of explicit sizeof/sizeof.
4567         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4568         ix86_expand_builtin): Likewise.
4569         * mips.c (mips_add_gc_roots): Likewise.
4570         * mmix.c (mmix_output_condition): Likewise.
4571         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4572         altivec_init_builtins): Likewise.
4573         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4574         * cppexp.c (Nsuff, parse_number): Likewise.
4575         * cppinit.c (builtin_array_end): Likewise.
4576         * gcc.c (n_default_compilers, process_command): Likewise.
4577         * genpreds.c (output_predicate_decls): Likewise.
4578         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4579         * lcm.c (N_ENTITIES): Likewise.
4580         * stor-layout.c (set_sizetype): Likewise.
4581
4582 2002-03-03  Richard Henderson  <rth@redhat.com>
4583
4584         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4585         for types or labels.
4586
4587 2002-03-03  Richard Henderson  <rth@redhat.com>
4588
4589         * c-decl.c (start_decl): Initialized variables are not common.
4590
4591 2002-03-02  Per Bothner  <per@bothner.com>
4592
4593         * gcc.c (option_map):  Suport new --bootclasspath option.
4594         --CLASSPATH is now just an alias for --classpath.
4595
4596 2002-03-02  Richard Henderson  <rth@redhat.com>
4597
4598         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4599         load if "internal" visibility.
4600         * doc/extend.texi: Document visibility meanings.
4601
4602 2002-03-02  Richard Henderson  <rth@redhat.com>
4603
4604         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4605         to functions as well.
4606
4607 2002-03-02  Richard Henderson  <rth@redhat.com>
4608
4609         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4610         (handle_visibility_attribute): Don't call assemble_visibility.
4611         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4612         without asmspec.  Invoke assemble_alias when needed.
4613         * varasm.c (maybe_assemble_visibility): New.
4614         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4615
4616 2002-03-02  Richard Henderson  <rth@redhat.com>
4617
4618         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4619         invoke ENCODE_SECTION_INFO with first call flag.
4620
4621         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4622         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4623         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4624         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4625         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4626         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4627         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4628         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4629         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4630         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4631         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4632         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4633         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4634         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4635         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4636         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4637         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4638         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4639         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4640         config/sh/sh.h, config/sparc/sparc.h,
4641         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4642         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4643         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4644         FIRST argument.  As needed, examine it and do nothing.
4645
4646         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4647         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4648         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4649
4650         * config/arm/t-pe (pe.o): Add dependencies.
4651
4652 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4653
4654         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4655         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4656         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4657         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4658         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4659         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4660         * defaults.h (BITS_PER_UNIT): Define.
4661         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4662
4663 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4664
4665         * config/h8300/h8300-protos.h: Add a prototype for
4666         compute_a_shift_length.
4667         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4668         (compute_a_shift_length): Likewise.
4669         (h8300_adjust_insn_length): Do not adjust insn length of shift
4670         insns.
4671         * config/h8300/h8300.md (anonymous shift patterns): Use
4672         compute_a_shift_length.
4673
4674 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4675
4676         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4677         trunc_int_for_mode.
4678
4679         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4680
4681 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4682
4683         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4684         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4685         * flags.h (flag_zero_initialized_in_bss): Declare.
4686         * toplev.c (flag_zero_initialized_in_bss): New flag.
4687         (lang_independent_options): Add flag_zero_initialized_in_bss.
4688         * tree.c (initializer_zerop): New function.
4689         * tree.h (initializer_zerop): Declare.
4690         * varasm.c (assemble_variable): If we can emit bss, put zero
4691         initializers in the bss section.
4692
4693 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4694
4695         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4696         like more than one symbol per .weak directive.
4697
4698 2002-03-01  Richard Henderson  <rth@redhat.com>
4699
4700         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4701         adjust argument_pointer by pretend_args_size.
4702         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4703
4704 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4705
4706         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4707
4708 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4709
4710         * toplev.c (rest_of_compilation): Delete dead jumptables before
4711         loop.
4712         * flow.c (delete_dead_jumptables): Make global.
4713         * rtl.h (delete_dead_jumptables): Declare.
4714
4715 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4716
4717         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4718         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4719         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4720
4721 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4722
4723         * config/h8300/h8300-protos.h: Fix formatting.
4724         * config/h8300/h8300.c: Likewise.
4725         * config/h8300/h8300.h: Likewise.
4726
4727 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4728
4729         * config/h8300/h8300.c (print_operand): Support 16-bit
4730         constant addresses.
4731         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4732
4733 2002-02-28  Richard Henderson  <rth@redhat.com>
4734
4735         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4736         pun complex values as integers; use gen_lowpart instead of
4737         gen_rtx_SUBREG.
4738         (extract_bit_field): Likewise.
4739
4740 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4741             David Edelsohn  <edelsohn@gnu.org>
4742
4743         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4744         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4745         (SUPPORTS_WEAK): Likewise.
4746         * output.h (add_weak): Add tree param.
4747         * varasm.c (add_weak): Likewise.  Save decl.
4748         (struct weak_syms): Add decl field.
4749         (mark_weak_decls): New function.
4750         (init_varasm_once): ggc_add_root mark_weak_decls.
4751         (assemble_start_function): Use ASM_WEAKEN_DECL.
4752         (assemble_variable): Likewise.
4753         (assemble_alias): Likewise.
4754         (declare_weak): Pass decl to add_weak.
4755         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4756         (remove_from_pending_weak_list): Declare and define for
4757         ASM_WEAKEN_DECL.
4758         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4759         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4760         * defaults.h (SUPPORTS_WEAK): Likewise.
4761         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4762         .weak for code sym.  Do emit .size for descriptor sym.
4763         (ASM_DECLARE_FUNCTION_SIZE): Define.
4764         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4765         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4766         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4767         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4768         .weak for code sym.
4769         (HANDLE_PRAGMA_WEAK): Remove.
4770         (ASM_WEAKEN_LABEL): Remove.
4771         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4772
4773 2002-03-01  Jason Merrill  <jason@redhat.com>
4774
4775         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4776         (TARGET_EXPR_CLEANUP): New macro.
4777
4778 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4779
4780         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4781         to take ptr_extend into account as third type of extension.
4782         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4783         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4784         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4785         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4786         * calls.c (precompute_arguments): Use new macro.
4787         (expand_call): Ditto.
4788         * combine.c (nonzero_bits): Ditto.
4789         (record_promoted_value): Ditto.
4790         * expr.c (store_expr): Ditto.
4791         (expand_expr): Ditto.
4792         * function.c (assign_parms): Ditto.
4793
4794 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4795
4796         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4797         override -shared and -shared-libgcc.
4798
4799 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4800
4801         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4802         of "ultrasparc".
4803         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4804         to be broken.
4805
4806 2002-02-28  Richard Henderson  <rth@redhat.com>
4807
4808         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4809         4 cycle latency from MM producers.
4810         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4811
4812 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4813
4814         * mklibgcc.in: Don't use GNU make extension.
4815
4816 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4817
4818         * c-parse.in (STATIC): New terminal.
4819         (scspec): New non-terminal.  Update productions accordingly.
4820         (program): Remove bogus ifc / end ifc.
4821         (array_declarator): Simplify production using STATIC.
4822
4823 2002-02-28  Jim Meyering  <meyering@lucent.com>
4824
4825         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4826         \a still means TARGET_BELL.
4827
4828 2002-02-28  Richard Henderson  <rth@redhat.com>
4829
4830         * haifa-sched.c (sched_emit_insn): New.
4831         (schedule_block): Use last_scheduled_insn to track last insn.
4832         * sched-int.h (sched_emit_insn): Prototype.
4833         * config/ia64/ia64.c (last_issued): Remove.
4834         (ia64_variable_issue): Don't set it.
4835         (nop_cycles_until): Use sched_emit_insn.
4836
4837 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4838
4839         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4840         extended constants.
4841
4842 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4843
4844         * config/h8300/h8300.c: Fix formatting.
4845         * config/h8300/h8300.h: Likewise.
4846
4847 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4848
4849         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4850         which may overwrite the high byte of the frame pointer.
4851
4852 2002-02-28  Bo Thorsen  <bo@suse.de>
4853
4854         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4855         (STARTFILE_SPEC): Add 64 bit files.
4856         (ENDFILE_SPEC): Likewise.
4857
4858 2002-02-28  Jason Merrill  <jason@redhat.com>
4859
4860         * c-decl.c (finish_function): Only warn about missing return
4861         statement with -Wreturn-type.
4862
4863 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4864
4865         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4866
4867         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4868         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4869
4870 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4871
4872         * basic-block.h (BB_REACHABLE): Renumber.
4873         (BB_DIRTY, BB_NEW): New flags.
4874         (clear_bb_flags): Declare.
4875         (update_life_info_in_dirty_blocks): Declare.
4876         * cfg.c (clear_bb_flags): New function.
4877         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4878         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4879         reorder_insns, emit_insn_after): Mark block as dirty.
4880         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4881         (update_life_info_in_dirty_blocks): New function.
4882         * recog.c (apply_change_group): Dirtify block.
4883
4884         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4885         cfg consistent.
4886         * gcse.c (delete_null_pointer_checks): Likewise.
4887
4888         * toplev.c (dump_file_index): Move cse2 after bp,
4889         add DFI_null
4890         (dump_file_info): Similary.
4891         (rest_of_compilation): Avoid most of CFG rebuilds;
4892         do first if converision after null pointer checks, do cse2
4893         after branch prediction; avoid full liveness rebuild after
4894         initializing subregs.
4895         * invoke.texi (-d options): Document -du, renumber.
4896
4897         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4898         (notice_new_block): Do not set BB_UPDATE_LIFE.
4899         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4900          merge_blocks_move_successor_nojumps, merge_blocks,
4901          try_crossjump_to_edge): Likewise.
4902         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4903         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4904         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4905         (merge_of_block): Do not use life_data_ok.
4906         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4907         (if_convert): Use BB_DIRTY mechanizm to update life.
4908         * lcm.c (optimize_mode_switching): Update
4909         update_life_info_in_dirty_blocks
4910
4911 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4912
4913         * Makefile.in (integrate.o): Update.
4914         * c-decl.c (copy_lang_decl): Rename.
4915         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4916         * integrate.c: Include langhooks.h.
4917         (copy_decl_for_inlining): Update to use langhook.
4918         * langhooks-def.h (lhd_do_nothing_t,
4919         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4920         (LANG_HOOKS_INITIALIZER): Update.
4921         * langhooks.c (lhd_do_nothing_t): New.
4922         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4923         * tree.h (copy_lang_decl): Remove.
4924 objc:
4925         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4926
4927 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4928
4929         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4930         POST_DEC, and POST_MODIFY.
4931
4932 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4933
4934         * c-typeck.c (digest_init): Remove unused parameter; all
4935         callers changed.
4936
4937 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4938
4939         * expmed.c (expand_shift): Correctly test for low part of a
4940         subreg.
4941
4942 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4943
4944         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4945         insn UIDs with insn addresses.
4946
4947 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4948
4949         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4950         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4951         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4952         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4953         gcc.c, toplev.c: Delete code implementing -traditional mode.
4954
4955         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4956         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4957         Document removal of -traditional mode for compilation, and
4958         remove documentation only relevant to that mode.
4959
4960         * config/nextstep.h, config/ptx4.h, config/svr4.h,
4961         config/convex/convex.h, config/d30v/d30v.h,
4962         config/i386/dgux.h, config/i386/osf1elf.h,
4963         config/i386/osfelf.h, config/i386/osfrose.h,
4964         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4965         config/m68k/hp310.h, config/m88k/dgux.h,
4966         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4967         config/m88k/m88k.h, config/m88k/openbsd.h,
4968         config/mips/abi64.h, config/mips/osfrose.h,
4969         config/mips/svr4-5.h, config/mips/svr4-t.h,
4970         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4971         config/stormy16/stormy16.h: Remove all references to
4972         -traditional from target specs.  Delete all mention of the
4973         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
4974         delete a couple of commented-out definitions of
4975         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4976         to -traditional.
4977
4978         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4979         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4980
4981 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4982
4983         * mklibgcc.in: Don't use \n in a line subject to
4984         interpretation by echo.
4985
4986 2002-02-27  Graham Stott  <grahams@redhat.com>
4987
4988         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4989         Constify NAME.
4990
4991         * loop.c (prescan_loop): Handle PARALLEL.
4992
4993         * unroll.c (loop_iterations): Return 0 if the add_val for
4994         a BIV is REG.
4995
4996         * final.c (output_operand_lossage): Constify PFX_STR.
4997
4998         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4999
5000 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5001
5002         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5003         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5004
5005 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
5006
5007         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5008
5009 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5010
5011         * cpplex.c (_cpp_lex_token): Handle directives in macro
5012         arguments.
5013         * cpplib.c (_cpp_handle_directive): Save and restore state
5014         if parsing macro args when entering a directive.
5015         * cppmacro.c (collect_args): No need to handle directives
5016         in macro arguments.
5017         (enter_macro_context, replace_args): Use the original macro
5018         definition in case it was redefined whilst collecting arguments.
5019 doc:
5020         * cpp.texi: Update.
5021
5022 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
5023
5024         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5025         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5026         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5027         method on AIX.
5028         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5029         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5030         (load_toc_v4_PIC_2): Same.
5031
5032 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
5033
5034         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5035
5036 2002-02-26  Richard Henderson  <rth@redhat.com>
5037
5038         * config/alpha/alpha.md (ashldi_se): Re-enable.
5039
5040 2002-02-26  Richard Henderson  <rth@redhat.com>
5041
5042         * config/alpha/alpha.c (alpha_encode_section_info): Examine
5043         MODULE_LOCAL_P; improve commentary.
5044
5045 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
5046
5047         * doc/cpp.texi: Clarify documentation of relationship between
5048         #line and #include.
5049
5050 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5051
5052         * config/h8300/h8300-protos.h: Update the prototype for
5053         compute_logical_op_length.  Add the prototype for
5054         compute_logical_op_cc.
5055         * config/h8300/h8300.c (compute_logical_op_length): Figure out
5056         code from operands.
5057         (compute_logical_op_cc): New.
5058         * config/h8300/h8300.md: Combine all the logical op patterns
5059         in HImode and SImode.  Use compute_logical_op_cc.
5060
5061 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
5062
5063         * config/i386/i386.c (print_operand): Don't append ATT-style
5064         length suffixs to x87 opcodes when in Intel mode.
5065
5066 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
5067
5068         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5069         (init_emit_once): Update calls.
5070         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5071         (init_syntax_once): Prototype.
5072
5073 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5074
5075         * pa-linux.h (LIB_SPEC): Update definition.
5076         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5077
5078 2002-02-26  Richard Henderson  <rth@redhat.com>
5079
5080         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5081         if we emitted a stop bit.
5082
5083 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5084
5085         * configure.in (libgcc_visibility): Substitute.
5086         * configure: Rebuilt.
5087         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5088         defined symbols .hidden.
5089
5090 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5091
5092         * attribs.c (c_common_attribute_table): Add visibility.
5093         (handle_visibility_attribute): New function.
5094         * varasm.c (assemble_visibility): New function.
5095         * output.h (assemble_visibility): Add prototype.
5096         * tree.h (MODULE_LOCAL_P): Define.
5097         * crtstuff.c (__dso_handle): Use visibility attribute.
5098         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5099         for MODULE_LOCAL_P symbols too.
5100         * config/ia64/ia64.c (ia64_encode_section_info): Handle
5101         MODULE_LOCAL_P symbols the same way as local symbols.
5102         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5103         into .sdata/.sbss by the user.
5104         * doc/extend.texi (Function Attributes): Document visibility
5105         attribute.
5106
5107 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5108
5109         PR debug/5770
5110         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5111         STRING_CST initializer spanning the whole variable without
5112         embedded zeros.
5113         If expand_expr returned MEM, don't use it.
5114
5115 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5116
5117         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5118         generate a die for the lexical block.
5119
5120 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5121
5122         * config/h8300/h8300-protos.h: Add a prototype for
5123         compute_logical_op_length.
5124         * config/h8300/h8300.c (compute_logical_op_length): New.
5125         * config/h8300/h8300.md (anonymous logical patterns): Use
5126         compute_logical_op_length for length.
5127
5128 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5129
5130         * dwarf2out.c (modified_type_die): Do not call type_main_variant
5131         for vectors.
5132         (gen_type_die): Same.
5133
5134         * attribs.c (handle_vector_size_attribute): Set debug information.
5135
5136 2002-02-26  Daniel Egger  <degger@fhm.edu>
5137
5138         * config/rs6000/rs6000.md: Swap define_insn attributes to
5139         fix incorrect generation of merge high instructions instead
5140         of merge low.
5141
5142 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5143
5144         * c-typeck.c (really_start_incremental_init): Use
5145         bitsize_zero_node for vectors.
5146
5147 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5148
5149         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5150         ("*set_vrsave_internal"): Same.
5151
5152 2002-02-25  Richard Henderson  <rth@redhat.com>
5153
5154         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5155         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5156
5157 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5158
5159         PR target/5755
5160         * config/i386/i386.c (ix86_return_pops_args): Only pop
5161         fake structure return argument if it was passed on the stack.
5162
5163 2002-02-25  Jason Merrill  <jason@redhat.com>
5164
5165         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5166         RESULT_DECL.
5167
5168 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5169
5170         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5171         link with shared_name only.
5172         * doc/invoke.texi (Link Options): Document new behavior.
5173
5174 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5175
5176         * c-typeck.c (push_init_level): Handle vectors.
5177
5178 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5179
5180         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5181         operands of SPARC_SETHI_P.
5182         (input_operand): Likewise.
5183         (sparc_emit_set_const32): Likewise.
5184         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5185         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5186         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5187         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5188         (movdi_insn_sp64_vis): Likewise.
5189         (movdi split, movdf split): Use SETHI32.
5190         * doc/md.texi: Document SPARC constraints L, M and N.
5191
5192 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5193
5194         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5195         ("*set_vrsave_internal"): use mfspr for Darwin.
5196
5197         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5198         gen_get_vrsave_internal.
5199
5200 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5201
5202         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5203
5204 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5205
5206         * cpplex.c (cpp_interpret_charconst): Get signedness or
5207         otherwise of wide character constants correct.
5208         * cppexp.c (lex): Get signedness of wide charconsts correct.
5209
5210 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5211
5212         * optabs.c (widen_operand): Only call convert_modes for
5213         promoted SUBREG if signedness matches.
5214         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5215
5216 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5217
5218         * cpplib.c (glue_header_name): Use local buffer to build up
5219         header name.
5220
5221 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5222
5223         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5224
5225 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5226
5227         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5228         H8/300[HS] separately.
5229         * config/h8300/h8300.md: Remove the early clobber constraint
5230         from bit field patterns.
5231
5232 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5233
5234         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5235         register_operand.
5236         (mulhisi3): Likewise.
5237         (umulqisi3): Likewise.
5238         (umulhisi3): Likewise.
5239
5240 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5241
5242         * cppinit.c (output_deps): Correct test for stdout output.
5243         (init_dependency_output): Cure warning.
5244
5245 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5246
5247         * expr.c (store_expr): When converting expression to promoted
5248         equivalent type, allow using SUBREG_REG of TARGET as the target
5249         of the expansion of EXP.
5250         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5251         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5252         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5253         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5254         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5255
5256 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5257
5258         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5259         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5260         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5261
5262 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5263
5264         PR optimization/5747
5265         * loop.c (scan_loop): Update reg info if move_movables created new
5266         pseudos.
5267
5268 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5269
5270         * gcc.c (init_gcc_spec): Revert last change.
5271
5272 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5273
5274         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5275         gpc_reg_operand constraint.
5276
5277 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5278
5279         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5280         Simplify comparison of `low'.
5281         (add_operand): Fix formatting.
5282         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5283         (mask_operand): Disallow mask to wrap in 64-bit mode.
5284         (rs6000_stack_info): Remove redundant test setting push_p.
5285         (output_toc): Fix formatting.
5286         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5287         cc_reg_not_cr0_operand constraint.
5288         (booldi3, boolcdi3 splitters): Same.
5289
5290 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5291
5292         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5293
5294 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5295
5296         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5297         gcc invoked with -shared-libgcc.
5298
5299 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5300
5301         PR c++/5748
5302         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5303         decl if any of elements was TREE_USED.
5304
5305 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5306
5307         * config/sparc/sol2.h: Don't include sys/mman.h.
5308         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5309         (arith_4096_operand): Don't throw high bits away.
5310         (const64_operand): Take sign extension of CONST_INTs into account.
5311         (const64_high_operand, sparc_emit_set_const32): Likewise.
5312         (GEN_HIGHINT64): Likewise.
5313         (sparc_emit_set_const64_quick1): Likewise.
5314         (const64_is_2insns): Likewise.
5315         (print_operand): Use trunc_int_for_mode for sign extension.
5316         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5317         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5318         chars.  Assume CONST_INT is already properly sign-extended.
5319         (movdi split): Sign-extend each SImode part.
5320         (andsi3 split): Don't mask high bits off, so that result
5321         remains properly sign-extend.
5322         (iorsi3 split): Likewise.
5323         (xorsi3 split): Likewise.
5324
5325 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5326
5327         * fold-const.c (fold): Fix typo in comments.
5328
5329 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5330
5331         * Makefile.in (langhooks.o): Update dependencies.
5332
5333 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5334
5335         * langhooks.c: Include flags.h.
5336
5337 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5338
5339         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5340
5341         * c-common.c (c_common_post_options): Set inline trees by
5342         default.
5343
5344         * doc/extend.texi (Function Attributes): Document always_inline
5345         attribute.
5346         Update documentation about inlining when not optimizing.
5347
5348         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5349
5350         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5351         unless DECL_ALWAYS_INLINE.
5352
5353         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5354         unless DECL_ALWAYS_INLINE.
5355         (c_disregard_inline_limits): Disregard if always_inline set.
5356
5357         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5358         Disregard if always_inline set.
5359         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5360         unless DECL_ALWAYS_INLINE.
5361
5362         * attribs.c (handle_always_inline_attribute): New.
5363         (c_common_attribute_table): Add always_inline.
5364
5365         * config/rs6000/altivec.h: Add prototypes for builtins
5366         requiring the always_inline attribute.
5367
5368 2002-02-21  Eric Christopher  <echristo@redhat.com>
5369
5370         * expmed.c (store_bit_field): Try to simplify the subreg
5371         before generating a new one when when the mode size of
5372         value is less than maxmode.
5373
5374 2002-02-21  Richard Henderson  <rth@redhat.com>
5375
5376         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5377         than gen_rtx_PLUS to form the sum.
5378         * explow.c (force_reg): Rearrange to not allocate new pseudo
5379         when force_operand returns a register.
5380         * expr.c (expand_assignment): Allow offset_rtx expansion to
5381         return a sum.  Do not force addresses into registers.
5382         (expand_expr): Likewise.
5383         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5384         to canonicalize arithmetic that didn't simpify.
5385         (simplify_plus_minus): New argument force; update
5386         all callers.  Don't split CONST unless we can do something with it,
5387         and wouldn't lose the constness of the operands.
5388
5389         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5390         that we generated earlier.
5391
5392 2002-02-21  Tom Tromey  <tromey@redhat.com>
5393
5394         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5395         (output_line_info): Use constant `1', with a long explanatory
5396         comment.
5397         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5398
5399 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5400
5401         * jump.c (redirect_jump): If old label has no UID, don't try to
5402         delete it.
5403
5404 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5405
5406         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5407         If input is constant, do shifts at compile time.
5408
5409 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5410
5411         * doc/extend.texi: Fix some more overfull hboxes.
5412
5413 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5414
5415         PR optimization/4994
5416         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5417         register moves.
5418
5419 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5420
5421         PR c++/4574
5422         * expr.h (expand_and): Add mode argument.
5423         * expmed.c (expand_and): Add mode argument.
5424         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5425         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5426         * except.c (expand_builtin_extract_return_addr): Likewise.
5427         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5428         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5429         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5430         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5431         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5432         gen_rtx (CONST_INT, VOIDmode, x).
5433
5434 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5435
5436         PR c/4697:
5437         * stmt.c (warn_if_unused_value): Move side effects test once more.
5438
5439 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5440
5441         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5442         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5443
5444 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5445
5446         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5447         SUBREG or ZERO_EXTEND.
5448
5449 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5450
5451         * sh.h (current_function_anonymous_args): Remove.
5452         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5453         of current_function_varargs and current_function_stdarg is set.
5454         * sh.c (sh_expand_prologue): Check current_function_varargs /
5455         current_function_stdarg / TARGET_SH5 instead of
5456         current_function_anonymous_args.
5457
5458         * sh64.h (TARGET_VERSION): Define.
5459
5460 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5461
5462         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5463         VRSAVE_REGNO on TARGET_ALTIVEC.
5464
5465 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5466
5467         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5468         bits of SImode const_int.
5469         (includes_rshift_p): Likewise.
5470         (print_operand): Call mask_operand and mask64_operand with correct
5471         mode.
5472         (rs6000_output_function_epilogue): Pad traceback table to word.
5473         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5474         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5475         mask64_operand with correct mode.
5476         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5477
5478 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5479
5480         PR debug/4461
5481         * varasm.c (get_pool_constant_mark): New.
5482         * rtl.h (get_pool_constant_mark): Add prototype.
5483         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5484         be represented if it has not been output.
5485
5486 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5487
5488         * combine.c (do_SUBST): Sanity check substitutions of
5489         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5490         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5491         CONST_INT into its operand.
5492         (known_cond): Likewise, for ZERO_EXTEND.
5493         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5494         allow for simplification of wide modes.  Reject CONST_INTs in
5495         ZERO_EXTEND when their actual mode is not given.
5496
5497 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5498
5499         * c-decl.c (pushdecl): If no global declaration is found for an
5500         extern declaration in block scope, try a limbo one.
5501
5502 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5503
5504         PR c++/4401
5505         * c-common.c (pointer_int_sum): Moved from...
5506         * c-typeck.c (pointer_int_sum): ...here.
5507         * c-common.h (pointer_int_sum): Add prototype.
5508
5509 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5510
5511         PR c++/5713
5512         * c-decl.c (duplicate_decls): Return 0 if issued error about
5513         redeclaration.
5514
5515 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5516             Jakub Jelinek  <jakub@redhat.com>
5517
5518         PR c/4389
5519         * tree.c (host_integerp): Ensure that the constant integer is
5520         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5521         when pos is zero or non-zero respectively.  Clarify comment.
5522         * c-format.c (check_format_info_recurse): Fix host_integerp
5523         usage; the pos argument should be zero when assigning to a
5524         signed HOST_WIDE_INT.
5525
5526 2002-02-20  Richard Henderson  <rth@redhat.com>
5527
5528         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5529         of the operand, rather than assuming TImode.
5530         (ix86_expand_binop_builtin): Cope with commutative patterns
5531         using nonimmediate_operand for both operands.
5532         (ix86_expand_timode_binop_builtin): Likewise.
5533         (ix86_expand_store_builtin): Validate operand 1.
5534         (ix86_expand_unop1_builtin): Likewise.
5535
5536 2002-02-20  Philip Blundell  <philb@gnu.org>
5537
5538         PR 5705
5539         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5540
5541 2002-02-20  Richard Henderson  <rth@redhat.com>
5542
5543         PR c/5615
5544         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5545
5546 2002-02-20  Tom Tromey  <tromey@redhat.com>
5547
5548         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5549         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5550         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5551         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5552         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5553         unconditionally.
5554
5555 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5556
5557         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5558           for (const_int 0) in X not just INTVAL.
5559
5560 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5561
5562         * doc/extend.texi: Avoid or reduce overfull hboxes.
5563
5564 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5565
5566         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5567         operations if the field does not start at a mode boundary.
5568
5569 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5570
5571         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5572         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5573         Also done for -Acpu and -Amachine.
5574
5575 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5576
5577         * cppinit.c (init_dependency_output): Take deps output file
5578         from -o if none given with -MF.  Suppress normal output.
5579         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5580         * doc/cpp.texi, doc/invoke.texi: Update.
5581
5582 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5583
5584         * toplev.c (output_quoted_string): Write unprintable
5585         characters with octal escapes.
5586
5587 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5588
5589         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5590         really_call_used[VRSAVE_REGNO] if not Altivec.
5591
5592 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5593
5594         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5595         MODE_MASK.
5596         (constant_pool_expr_1): Fix formatting.
5597         (rs6000_legitimize_reload_address): Likewise.
5598
5599 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5600
5601         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5602         now that we have one.
5603
5604 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5605
5606         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5607         end of first block of bitfields (which was only seven bits);
5608         rename dummy to unused_1; remove comment which is no longer true.
5609
5610 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5611
5612         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5613
5614 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5615
5616         PR 5399
5617         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5618         if generating PIC.
5619
5620         PR 5054
5621         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5622         arm_is_longcall_p rather than inspecting call-type cookie
5623         directly.
5624         (call_value_insn) [TARGET_THUMB]: Likewise.
5625
5626 2002-02-19  Graham Stott  <grahams@redhat.com>
5627
5628         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5629
5630 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5631
5632         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5633         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5634         (FP_SAVE_INLINE): Delete.
5635
5636         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5637         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5638         * config/rs6000/t-ppccomm: Build crtsavres.o.
5639         * config/rs6000/crtsavres.asm: New file.
5640
5641 2002-02-19  Philip Blundell  <philb@gnu.org>
5642
5643         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5644         functions.
5645         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5646         (output_return_instruction): Allow interrupt functions to return with
5647         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5648         (arm_expand_prologue): Subtract 4 before stacking LR in an
5649         interrupt function.
5650
5651 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5652
5653         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5654         decl, not just FUNCTION_DECL.
5655         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5656         (arm_assemble_integer): Likewise.
5657         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5658         marked local.
5659
5660 2002-02-19  matthew green  <mrg@eterna.com.au>
5661
5662         * config.gcc (sparc-*-netbsdelf*): Enable target.
5663         (sparc64-*-netbsd*): New target.
5664         * config/sparc/netbsd-elf.h: New file.
5665         * config/sparc/t-netbsd64: New file.
5666
5667 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5668
5669         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5670
5671 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5672
5673         * doc/invoke.texi: explicitly list the style guidelines that
5674         -Weffc++ checks for.
5675
5676 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5677
5678         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5679
5680 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5681
5682         PR other/5718
5683         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5684         only if not -E.  If -E, pass -o through to the preprocessor.
5685
5686 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5687
5688         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5689         register number with an appropriate macro.
5690
5691 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5692
5693         * doc/rtl.texi (Constants): Close @code tag.
5694
5695 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5696
5697         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5698         ("mmx_uavgv4hi3"): Same.
5699         ("pmulhrwv4hi3"): Same.
5700
5701         * tree-inline.c (walk_tree): Handle vectors.
5702
5703         * c-common.c (constant_expression_warning): Handle vectors.
5704         (overflow_warning): Same.
5705
5706         * sched-deps.c (sched_analyze_2): Handle vectors.
5707
5708         * rtlanal.c (rtx_unstable_p): Handle vectors.
5709         (rtx_varies_p): Same.
5710         (count_occurrences): Same.
5711         (regs_set_between_p): Same.
5712         (modified_between_p): Same.
5713         (modified_in_p): Same.
5714         (volatile_insn_p): Same.
5715         (volatile_refs_p): Same.
5716         (side_effects_p): Same.
5717         (may_trap_p): Same.
5718         (inequality_comparisons_p): Same.
5719         (replace_regs): Same.
5720         (computed_jump_p_1): Same.
5721
5722         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5723         argument.
5724         (inner_mode_array): New.
5725         (copy_rtx): Handle vectors.
5726         (copy_most_rtx): Same.
5727         (rtx_equal_p): Same.
5728         (get_mode_alignment): Adjust for vectors.
5729
5730         * resource.c (mark_referenced_resources): Handle vectors.
5731         (mark_set_resources): Same.
5732
5733         * reload1.c (eliminate_regs): Handle vectors.
5734         (elimination_effects): Same.
5735         (scan_paradoxical_subregs): Same.
5736
5737         * reload.c (subst_reg_equivs): Handle vectors.
5738
5739         * regrename.c (scan_rtx): Handle vectors.
5740
5741         * regclass.c (reg_scan_mark_refs): Handle vectors.
5742
5743         * recog.c (find_single_use_1): Handle vectors.
5744
5745         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5746         (contains_replace_regs): Same.
5747         (memref_referenced_p): Same.
5748
5749         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5750         (subst_constants): Same.
5751
5752         * genattrtab.c (attr_copy_rtx): Handle vectors.
5753         (encode_units_mask): Same.
5754         (clear_struct_flag): Same.
5755         (count_sub_rtxs): Same.
5756
5757         * gcse.c (want_to_gcse_p): Handle vectors.
5758         (oprs_unchanged_p): Same.
5759         (hash_expr_1): Same.
5760         (oprs_not_set_p): Same.
5761         (expr_killed_p): Same.
5762         (compute_transp): Same.
5763         (store_ops_ok): Same.
5764
5765         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5766         of vectors.
5767         (fixup_var_refs_1): Same.
5768         (instantiate_virtual_regs_1): Same.
5769
5770         * fold-const.c (operand_equal_p): Handle vectors.
5771         (fold): Same.
5772         (rtl_expr_nonnegative_p): Same.
5773
5774         * flow.c (mark_used_regs): Handle vectors.
5775
5776         * df.c (df_uses_record): Handle vectors.
5777
5778         * cselib.c (cselib_subst_to_values): Handle vectors.
5779         (cselib_mem_conflict_p): Same.
5780         (hash_rtx): Same.
5781
5782         * cse.c (canon_reg): Handle vectors.
5783         (fold_rt): Same.
5784         (cse_process_notes): Same.
5785         (count_reg_usage): Same.
5786         (canon_hash): Same.
5787
5788         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5789
5790         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5791
5792         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5793         (gen_rtx): Handle CONST_VECTOR.
5794         (gen_const_vector_0): New.
5795         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5796         (reset_used_flags): Same.
5797         (copy_insn_1): Same.
5798         (initializer_constant_valid_p): Handle VECTOR_CST.
5799
5800         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5801
5802         * doc/rtl.texi (Constants): Document const_vector.
5803         (CONST0_RTX): Update for vectors.
5804         (RTL sharing): Same.
5805
5806         * print-tree.c (print_node): Add case for VECTOR_CST.
5807
5808         * tree.h (TREE_VECTOR_CST_ELTS): New.
5809         (struct tree_vector): New.
5810         (union tree_node): Add vector node.
5811         (build_vector): Add prototype.
5812
5813         * tree.def (VECTOR_CST): New.
5814
5815         * tree.c (build_vector): New.
5816
5817         * expmed.c (make_tree): Handle CONST_VECTOR.
5818
5819         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5820         (CONST_VECTOR_ELT): New.
5821         (CONST_VECTOR_NUNITS): New.
5822
5823         * machmode.h (GET_MODE_INNER): New.
5824         (DEF_MACHMODE): Accept 8th arg.
5825
5826         * machmode.def: Add 8th argument for vector inner mode.
5827         Add inner vector modes for vectors.
5828
5829         * rtl.def (VEC_CONST): Remove.
5830         (CONST_VECTOR): New.
5831
5832         * expr.c (clear_storage): Allow vectors.
5833         (is_zeros_p): Handle VECTOR_CST.
5834
5835         * varasm.c (output_constant_pool): Handle vectors.
5836         (rtx_const): Add veclo and vechi fields.
5837         (kind): Add RTX_VECTOR.
5838         (decode_rtx_const): Add case for vector.
5839
5840         * config/rs6000/rs6000-protos.h: Add zero_constant.
5841
5842         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5843         constants.  Force easy vector constants into memory.
5844         (easy_vector_constant): New.
5845         (emit_easy_vector_constant): New.
5846         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5847         darwin.
5848
5849         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5850         instruction does.
5851         ("altivec_lvxl"): Same.
5852         (altivec_lvebx): Same.
5853         (altivec_lvehx): Same.
5854         (altivec_lvewx): Same.
5855         ("*movv4si_const0"): New.
5856         ("*movv4sf_const0"): New.
5857         ("*movv8hi_const0"): New.
5858         ("*movv16qi_const0"): New.
5859
5860 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5861
5862         * config/h8300/h8300.c (notice_update_cc): Use
5863         cc_status.value2.
5864
5865 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5866
5867         * config/h8300/h8300.md (divmod patterns): Change the
5868         constraints for operands[1] to register_operand.
5869
5870 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5871
5872         * config/h8300/h8300-protos.h: Remove the prototype for
5873         p_operand.
5874         * config/h8300/h8300.c (p_operand): Remove.
5875         * config/h8300/h8300.md: Replace p_operand with
5876         const_int_operand.
5877
5878 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5879
5880         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5881         comment.
5882         (output_return_instruction): Allow use of LDR to unstack
5883         return addresss even for interrupt handlers or when
5884         interworking.  If compiling for ARMv5, use interworking-safe
5885         return instructions by default.  Remove duplicated code and
5886         lengthy "strcat" sequences.
5887
5888 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5889
5890         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5891         (LINK_EH_SPEC): Define.
5892         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5893
5894 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5895
5896         * config/s390/s390.c (s390_emit_prologue): Do not set the
5897         frame_related flag for call-clobbered registers.
5898
5899 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5900
5901         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5902         (construct_container): Fix handling of SSE operands.
5903         (ix86_expand_builtin): Fix handling of 64bit pointers.
5904         (mmx_maskmovq_rex): New pattern.
5905
5906 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5907
5908         * regrename.c (kill_set_value): Handle subregs properly.
5909
5910 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5911
5912         * objc/objc-act.c (handle_impent): Remove leading '*'
5913         from objc_class_name.
5914
5915 2002-02-17  Richard Henderson  <rth@redhat.com>
5916
5917         * config/alpha/alpha.c (some_small_symbolic_operand,
5918         some_small_symbolic_operand_1, split_small_symbolic_operand,
5919         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5920         Handle small SYMBOL_REFs anywhere, not just inside memories.
5921         * config/alpha/alpha-protos.h: Update.
5922         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5923         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5924
5925 2002-02-17  Roland McGrath  <roland@frob.com>
5926
5927         * config.gcc (powerpc-*-gnu-gnualtivec*,
5928         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5929         * config/rs6000/gnu.h: New file.
5930         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5931         Grok "gnu" in rs6000_abi_name.
5932         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5933         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5934         Grok -mcall-gnu analogous to -mcall-linux et al.
5935         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5936         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5937         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5938
5939 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5940
5941         PR c/3444:
5942         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5943         shortening.
5944
5945 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5946
5947         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5948         ENDFILE_SPEC before (re)defining them.
5949
5950 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5951
5952         * config/h8300/h8300.c: Fix formatting.
5953         * config/h8300/h8300.h: Likewise.
5954
5955 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5956
5957         * doc/tm.texi: Explain why empty strings should not be
5958         marked for translation.
5959
5960 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5961
5962         * final.c (output_operand_lossage): Changed to accept
5963         printf style arguments. Change calls where necessary.
5964         * output.h (output_operand_lossage): Change declaration
5965         accordingly. Update copyright.
5966         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5967         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5968         Update copyright date where necessary.
5969
5970         * config/i386/i386.c (print_operand): Likewise. Remove use of
5971         sprintf.
5972
5973         * config/cris/cris.c (cris_operand_lossage): Likewise.
5974         Rename parameter so that exgettext recognizes it as
5975         translatable message.
5976         (LOSE_AND_RETURN): Rename parameter to msgid.
5977
5978 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5979
5980         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5981         hard coded register number with an appropriate macro.
5982         (HARD_REGNO_MODE_OK): Likewise.
5983         (ARG_POINTER_REGNUM): Likewise.
5984         (STATIC_CHAIN_REGNUM): Likewise.
5985         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5986         * config/h8300/h8300.md (define_constants): Define more
5987         register numbers.
5988
5989 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5990
5991         * config/i386/i386.h: Don't mark empty strings for translation.
5992
5993 2002-02-16  H.J. Lu <hjl@gnu.org>
5994
5995         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5996
5997 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
5998
5999         * cppinit.c (merge_include_chains): Check for brack being
6000         NULL before attempting to merge it with qtail.
6001
6002 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
6003
6004         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6005         DBX_DEBUG.
6006
6007 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6008
6009         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6010
6011 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6012
6013         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6014         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6015         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6016
6017 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6018
6019         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6020         now only if !TARGET_FIX.
6021         (*movsi_nt_vms_fix): New pattern.
6022
6023 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
6024
6025         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6026         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6027         (alpha_sa_mask, alpha_sa_size): Reflect above change.
6028         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6029         (alpha_start_function, alpha_expand_epilogue): Likewise.
6030         (unicosmk_gen_dsib): Likewise.
6031
6032 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6033
6034         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6035
6036 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
6037
6038         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6039         check_and_change_labels, s390_final_chunkify): Delete.
6040         (s390_split_branches, s390_chunkify_pool): New functions.
6041         (s390_function_prologue): Call them.
6042
6043         * config/s390/s390.h (S390_REL_MAX): Delete.
6044         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6045
6046         * config/s390/s390.md (cjump, icjump, jump): Fix length
6047         attribute calculation.
6048
6049
6050 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
6051
6052         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6053         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6054
6055 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6056
6057         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6058         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6059         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6060
6061 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6062
6063         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6064
6065 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6066
6067         * reload.c (find_dummy_reload): Check that an output register
6068         is valid for its mode.
6069
6070 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
6071
6072         * combine.c (known_cond): After replacing the REG of a SUBREG, try
6073         to simplify it.
6074
6075         * function.c (assign_parms): Demote promoted argument passed by
6076         transparent reference.
6077
6078 2001-02-14      Joel Sherrill <joel@OARcorp.com>
6079
6080         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6081         -Acpu() and -Amachine() to eliminate warnings.
6082
6083 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
6084
6085         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6086
6087 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6088
6089         * config/h8300/h8300-protos.h: Update the prototype for
6090         const_costs.
6091         * config/h8300/h8300.c (const_costs): Treat SET as a little
6092         more expensive operation.
6093         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6094         reference to const_costs.
6095
6096 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6097
6098         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6099
6100 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6101
6102         PR c/5503:
6103         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6104         use arguments from newtype.
6105
6106 2002-02-13  Eric Christopher  <echristo@redhat.com>
6107
6108         * config/mips/mips.c (override_options): Add check for march/mipsX
6109         on the same command line. Fix error message in cpu processing.
6110         Remove architecture and ISA checks.
6111
6112 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6113
6114         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6115
6116         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6117
6118 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6119
6120         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6121         alternatives.
6122         ("*movv8hi_internal1"): Same.
6123         ("*movv16qi_internal1"): Same.
6124         ("*movv4sf_internal1"): Same.
6125
6126         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6127         not push_reload for altivec modes.
6128
6129 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6130
6131         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6132         all RTEMS targets including removal of #includes from config/*/rtems*.h
6133         file and adding them to tm_file setting. Added xm_defines=POSIX to
6134         many targets.
6135         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6136         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6137         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6138         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6139         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6140         config/m68k/rtemself.h: Ditto.
6141         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6142         config/mips/rtems64.h: Ditto.
6143         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6144         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6145         Ditto.
6146         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6147         config/sparc/rtemself.h: Ditto.
6148         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6149         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6150         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6151         more like arm-elf.
6152         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6153         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6154         target made more similar to i386-elf.
6155         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6156         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6157         be similar to config/m68k/t-m68kelf.
6158         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6159
6160 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6161
6162         * regmove.c (kill_value): Handle subregs.
6163
6164 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6165
6166         * i386.md (mul patterns): Allow memory operand to be first;
6167         add expanders where needed; fix constraints.
6168         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6169         Allow memory operand to be the first.
6170
6171         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6172         operands.
6173
6174 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6175
6176         PR c/5681:
6177         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6178         GET_MODE (x).
6179
6180 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6181
6182         PR optimization/5547:
6183         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6184         all valid IA-32 address modes involving non-scaled %ebx and
6185         GOT/GOTOFF as displacement.
6186
6187 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6188
6189         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6190         after emitting ltorg insns.
6191
6192         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6193         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6194         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6195         *abssf2): Fix "op_type" attribute.
6196
6197 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6198
6199         * mkconfig.sh: Avoid using a subshell redirect.
6200         ($output.T): Change to $(output)T.
6201         (ENABLE_NLS): Remove unneeded undef.
6202
6203         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6204         * config/alpha/x-vms (libsubdir): Define.
6205
6206         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6207         register frame procedures. Optimize retrieving context.
6208
6209         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6210         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6211         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6212
6213 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6214
6215         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6216         Make same change as for find_base_value.
6217
6218 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6219
6220         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6221         of QImode and SImode.
6222
6223 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6224
6225         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6226         length computation of movsi.
6227         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6228
6229 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6230
6231         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6232         operands[2] to register_operand.
6233
6234 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6235
6236         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6237
6238 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6239
6240         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6241         for altivec_lvx* and altivec_stvx*.
6242         ("*movv4si_internal"): Add constraint for loading from GPRs.
6243         ("*movv8hi_internal1"): Same.
6244         ("*movv16qi_internal1"): Same.
6245         ("*movv4sf_internal1"): Same.
6246
6247         * config/rs6000/rs6000.c (altivec_register_operand): New.
6248
6249         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6250         altivec_register_operand.
6251
6252 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6253
6254         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6255         handle SYMBOL_REF.
6256
6257 2002-02-13  Stan Shebs  <shebs@apple.com>
6258
6259         * c-typeck.c (digest_init): Handle vectors.
6260         (really_start_incremental_init): Same.
6261         (pop_init_level): Same.
6262         (process_init_element): Same.
6263
6264         * varasm.c (output_constant): Same.
6265
6266         * expr.c (clear_storage): Same.
6267         (store_constructor): Same.
6268
6269 2002-02-12  Eric Christopher  <echristo@redhat.com>
6270
6271         * explow.c (hard_function_value): Add comment explaining
6272         signed/unsigned comparison.
6273
6274 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6275
6276         * jump.c (never_reached_warning): Add finish argument.
6277         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6278         real insn after end.
6279         * rtl.h (never_reached_warning): Adjust prototype.
6280         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6281         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6282         never_reached_warning.
6283
6284 2002-02-12  Graham Stott  <grahams@redhat.com>
6285
6286         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6287
6288 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6289
6290         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6291         logical shifts on H8/300.
6292         (shift_alg_si): Improve several shifts on H8/300.
6293         (get_shift_alg): Likewise.
6294
6295 2002-02-12  Graham Stott  <grahams@redhat.com>
6296
6297         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6298
6299 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6300
6301         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6302         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6303
6304 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6305
6306         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6307         non-CONST_INT through default_assemble_integer.
6308         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6309         <case 8>: Abort for CONST_DOUBLE.
6310
6311 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6312
6313         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6314         is specified.
6315         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6316         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6317
6318 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6319
6320         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6321
6322 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6323
6324         * regrename.c (regrename_optimize): Don't accept a
6325         part-clobbered register if the replaced register is not part
6326         clobbered.
6327
6328         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6329         take padding into account when computing the argument value.
6330
6331         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6332
6333         * combine.c (try_combine): Apply substitutions in
6334         CALL_INSN_FUNCTION_USAGE too.
6335
6336 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6337
6338         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6339         __builtin_altivec_abs*.
6340         (bdesc_abs): New.
6341
6342         * config/rs6000/rs6000.h (rs6000_builtins): Add
6343         ALTIVEC_BUILTIN_ABS*.
6344
6345         * config/rs6000/altivec.h: Use const char for builtins expecting
6346         literals.
6347         (vec_abs): New versions for C and C++.
6348         (vec_abss): Same.
6349
6350 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6351
6352         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6353         using Pmode.
6354
6355 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6356
6357         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6358         constant definition from h8300.md.
6359         (FRAME_POINTER_REGNUM): Likewise.
6360         * config/h8300/h8300.md (define_constants): Add FP_REG.
6361
6362 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6363
6364         * config/h8300/h8300.c (print_operand): Remove redundant code.
6365
6366 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6367
6368         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6369         * config/h8300/h8300.c (byte_reg): Make it static.
6370
6371 2002-02-10  Richard Henderson  <rth@redhat.com>
6372
6373         PR c/5623
6374         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6375
6376 2002-02-10  Richard Henderson  <rth@redhat.com>
6377
6378         PR c++/5624
6379         * tree.c (append_random_chars): Don't abort if main_input_filename
6380         does not exist.
6381
6382 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6383
6384         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6385
6386 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6387
6388         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6389         (pushhi1): Likewise.
6390
6391 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6392
6393         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6394         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6395
6396 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6397
6398         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6399         remove MASK_VIS.
6400         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6401
6402 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6403
6404         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6405         a half of an SImode register on H8/300.
6406
6407 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6408
6409         * i386.md (movdi_2): Add missing '!'.
6410
6411 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6412
6413         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6414         definitions.
6415
6416 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6417
6418         * config/h8300/h8300.md (length): Correct the distance valid
6419         for the short branch.
6420
6421 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6422
6423         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6424
6425 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6426
6427         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6428         registers in SImode.
6429         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6430         part-clobbered.
6431
6432         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6433         patch.
6434
6435         Contribute sh64-elf.
6436         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6437         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6438         (sh_cannot_modify_jumps_p): New function.
6439         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6440         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6441         (sh_ms_bitfield_layout_p): New function.
6442         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6443                     Zack Weinberg  <zack@codesourcery.com>
6444         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6445         expand_simple_binop instead of expand_binop.
6446         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6447         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6448         use of .quad and .uaquad.
6449         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6450         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6451         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6452         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6453         movdi_const_16bit): Make sure all CONSTs have modes.
6454         (sym2PIC): Ditto, but by adjusting all callers.
6455         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6456         if the prologue calls the SHmedia argument decoder or register
6457         saver.
6458         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6459         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6460         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6461         (sh_expand_epilogue): Don't emit USE of return target register.
6462         (prepare_move_operands): Legitimize DImode PIC addresses.
6463         (sh_media_register_for_return): Skip tr0, used to initialize the
6464         PIC register.
6465         (sh_expand_prologue): Remove explicit USE of return register.
6466         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6467         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6468         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6469         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6470         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6471         EXTRA_CONSTRAINT_T.
6472         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6473         (MOVI_SHORI_BASE_OPERAND_P): New.
6474         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6475         (EXTRA_CONSTRAINT_T): Define in terms of them.
6476         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6477         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6478         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6479         alternatives supporting TARGET_REGS.
6480         (UNSPEC_GOTPLT): New constant.
6481         (movdi split): Move incrementing of LABEL_NUSES...
6482         (movdi_const, movdi_const_32bit): Here.  Use
6483         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6484         (movdi_const_16bit): New.
6485         (call, call_value) [flag_pic]: Use GOTPLT.
6486         (call_pop, call_value_pop): New expands.
6487         (call_pop_compact, call_pop_rettramp): New insns.
6488         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6489         (sibcall) [flag_pic]: Use GOT.
6490         (builtint_setjmp_receiver): Remove bogus, unused expand.
6491         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6492         (*pt, *ptb, ptrel): New insns.
6493         (sym2GOT): Handle DImode GOT.
6494         (sym2GOTPLT, symGOTPLT2reg): New expands.
6495         (sym2PIC): New expand.
6496         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6497         (shcompact_return_tramp_i): Use return register explicitly.
6498         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6499         disable flag_reorder_blocks.
6500         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6501         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6502         clobbers, for clarity.
6503         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6504         restoring of r0 in macl as MAYBE_DEAD.
6505         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6506         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6507         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6508         alter_subreg all over.
6509         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6510         reload, instead of emitting instructions that would require
6511         reloading.
6512         (casesi_load_media): Add missing modes.
6513         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6514         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6515         as used if the argument decoder is called.
6516         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6517         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6518         Pmode, then extend it to DImode if necessary.
6519         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6520         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6521         constants in FPU-enabled SHmedia, let them be loaded from memory.
6522         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6523         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6524         Adjust whitespace in assembly output templates.
6525         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6526         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6527         mode of if_then_else.
6528         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6529         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6530         sh.h.
6531         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6532                     Joern Rennecke <amylaar@redhat.com>
6533         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6534         (SUBTARGET_CPP_PTR_SPEC): New.
6535         (SUBTARGET_CPP_SPEC): Remove.
6536         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6537         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6538         Fix typo in previous checkin.
6539         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6540         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6541         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6542                     Alexandre Oliva  <aoliva@redhat.com>
6543         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6544         what single FP register can hold for SHmedia target.
6545         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6546                     Alexandre Oliva  <aoliva@redhat.com>
6547         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6548         Do not split into SUBREG.
6549         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6550         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6551         and added new functions as specified in SH5 ABI r9.
6552         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6553         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6554         8-byte boundary.
6555         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6556         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6557         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6558         and consttable_window_ends.
6559         2001-06-03  Graham Stott  <grahams@redhat,com>
6560         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6561         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6562         * config/sh/sh.c (print_operand): Handle floating-point pair,
6563         vector and matrix registers.
6564         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6565         vector modes into account.
6566         * config/sh/sh.md (movv2sf): Split move between registers into
6567         movdf.
6568         (movv4sf, movv16sf): Introduce insns that get split only after
6569         reload.
6570         * config/sh/shmedia.h: Fix Copyright dates.
6571         * config/sh/ushmedia.h: Likewise.  Move loop counter
6572         declarations into conditionals that uses them.
6573         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6574         loop boundary.
6575         * config/sh/sshmedia.h: Fix Copyright dates.
6576         (sh_media_PUTCFG): Fix constraints.
6577         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6578         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6579         ptrmemfunc_vbit_in_delta for SH5.
6580         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6581         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6582         * invoke.texi: Likewise.
6583         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6584         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6585         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6586         GCC_pop_shmedia_regs_nofpu): New global symbols.
6587         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6588         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6589         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6590         compact function with nonlocal labels.
6591         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6592         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6593         (initial_elimination_offset): Account for their stack space.
6594         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6595         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6596         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6597         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6598         least one of the operands to be a register.
6599         (movv2sf): Likewise.  Renamed to movv2sf_i.
6600         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6601         prepare_move_operands() before emitting SHmedia insns.
6602         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6603         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6604         Don't save nor initialize r12.  Don't mis-align the stack.
6605         Pad the code with a nop.
6606         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6607         stack.
6608         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6609         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6610         [__SHMEDIA__]: Implement.
6611         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6612         * config/sh/sh.md: Set latency of `pt' closer to reality.
6613         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6614         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6615         Set move, load and store type attributes.
6616         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6617         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6618         profiling.
6619         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6620         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6621         * config/sh/sh.c (sh_media_register_for_return): New function.
6622         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6623         branch-target register.
6624         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6625         * config/sh/sh.md (return_media_i): Use any call-clobbered
6626         branch-target register.
6627         (return_media): If r18 wasn't copied in the prologue, copy it
6628         here.
6629         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6630         Clear class FP0_REGS.
6631         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6632         from elf.h.
6633         2001-03-08  DJ Delorie  <dj@redhat.com>
6634         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6635         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6636         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6637         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6638         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6639         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6640         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6641         return value correctly for call_cookie.
6642         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6643         * config/sh/crt1.asm (start): Modified so as to call
6644         ___setup_argv_and_call_main.
6645         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6646         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6647         SHmedia mode.
6648         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6649         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6650         (STRIP_NAME_ENCODING): Use it.
6651         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6652         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6653         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6654         prepare_scc_operands().
6655         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6656         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6657         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6658         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6659         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6660         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6661         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6662         used in shcompact_incoming_args.
6663         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6664         change.
6665         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6666         mode.
6667         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6668         Adjust accordingly.
6669         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6670         Simplify.  Adjust.  Add sanity check.
6671         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6672         FPU_SINGLE_BIT.
6673         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6674         TARGET_SHCOMPACT.
6675         (udivsi3, divsi3): Use them.
6676         (force_mode_for_call): New insn.
6677         (call, call_value, sibcall_value): Emit it before SHcompact
6678         calls.
6679         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6680         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6681         call cookie is non-NULL before taking its value.
6682         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6683         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6684         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6685         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6686         block.
6687         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6688         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6689         temporary for stack adjusts.  Use MACL and MACH to pass
6690         arguments to shcompact_incoming_args.
6691         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6692         clobber r1.
6693         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6694         (nested_trampoline): Load static chain address into r1.
6695         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6696         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6697         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6698         fp_arith_reg_operand().
6699         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6700         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6701         and use signed compares for them.
6702         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6703         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6704         ones properly aligned.
6705         (find_barrier): Account for extra alignment needed for 8-byte wide
6706         constants.
6707         (machine_dependent_reorg): Require a label for the second 4-byte
6708         constant after an 8-byte one.
6709         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6710         change.
6711         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6712         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6713         last_float when switching float modes.
6714         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6715         auto-increment for general-purpose registers.
6716         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6717         result.
6718         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6719         for stack adjust.
6720         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6721         registers for varargs.
6722         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6723         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6724         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6725         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6726         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6727         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6728         call_cookie accordingly.
6729         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6730         (SHCOMPACT_BYREF): Likewise.
6731         (SHCOMPACT_FORCE_ON_STACK): New macro.
6732         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6733         (sh_builtin_saveregs): Likewise.
6734         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6735         shcompact_incoming_args): Use new shift values.  Support
6736         sequences of consecutive and non-consecutive pushes/pops.
6737         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6738         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6739         * config/sh/sh.h (TEXT_SECTION): Define.
6740         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6741         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6742         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6743         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6744         return values on FPU-enabled SHmedia.
6745         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6746         FPU-enabled SHmedia.
6747         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6748         value is returned in a non-FP reg and is not returned by
6749         reference.
6750         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6751         jump_ind.
6752         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6753         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6754         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6755         quad-aligned to be passed by callee-copy reference.
6756         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6757         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6758         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6759         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6760         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6761         copying low-numbered FP regs to r7 and r8.
6762         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6763         FP regs to general-purpose regs only if the copy was passed on the
6764         stack.
6765         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6766         copying FP reg to r9.
6767         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6768         copy FP regs to general-purpose regs only in outgoing calls.
6769         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6770         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6771         HOST_WIDE_INT.
6772         * config/sh/sh.h (struct sh_args): Document all fields.
6773         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6774         passed partially on the stack should not consider making
6775         sibcalls.
6776         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6777         stack_regs only for incoming calls.  When passing FP args,
6778         make sure there are FP regs available before modifying
6779         call_cookie.
6780         (SHCOMPACT_BYREF): Pass double args in general-purpose
6781         registers by reference.
6782         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6783         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6784         attempt to generate sibcalls if the caller got any arguments
6785         by reference.
6786         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6787         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6788         to 8-byte boundaries.
6789         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6790         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6791         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6792         stored in the stack.
6793         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6794         for the offsets to have the ISA bit set.
6795         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6796         invocation.  Use beq instead of bgt to mark end of sequence of
6797         loads.
6798         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6799         bgt to mark end of sequence of stores.
6800         * config/sh/sh.c (arith_operand): Don't check whether
6801         CONST_OK_FOR_J for now.
6802         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6803         instead of long for conversion.
6804         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6805         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6806         before passing it to fprintf.
6807         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6808         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6809         Call set_fpscr before reading/writing SR.
6810         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6811         Call set_fpscr.
6812         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6813         SHmedia code.
6814         (FMOVD_WORKS): Define on SH5 with FPU.
6815         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6816         setting.
6817         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6818         _fpscr_values.
6819         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6820         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6821         address.
6822         (ia_main_table): Ditto.
6823         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6824         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6825         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6826         the definitions from sh.h.
6827         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6828         TARGET_SH5.
6829         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6830         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6831         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6832         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6833         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6834         Increment LABEL_NUSES.
6835
6836         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6837         TARGET_SH5.
6838         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6839         defined.
6840         * config/sh/elf.h (SIZE_TYPE): Likewise.
6841         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6842         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6843         shcompact_incoming_args): Load switch table addresses using
6844         datalabel.
6845         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6846         (NO_BUILTIN_SIZE_TYPE): Define.
6847         (SIZE_TYPE): Don't define.
6848         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6849         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6850         definition of __SH5__=32 for -m5-compact-nofpu.
6851         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6852         ADDR_DIFF_VEC.
6853         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6854         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6855         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6856         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6857         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6858         (INSN_LENGTH_ALIGNMENT): Likewise.
6859         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6860         * config/sh/sh.md (call, call_value, sibcall): Simplify
6861         copying of non-branch-target register.
6862         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6863         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6864         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6865         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6866         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6867         floating-point values as structs.
6868         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6869         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6870         general-purpose register.
6871         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6872         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6873         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6874         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6875         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6876         (ENCODE_SECTION_INFO): Enclose variables and constants in
6877         DATALABEL unspecs.
6878         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6879         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6880         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6881         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6882         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6883         SH_DATALABEL_ENCODING to the symbol name.
6884         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6885         convert_mode().
6886         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6887         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6888         UNSPEC_DATALABEL.
6889         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6890         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6891         (DATALABEL_REF_P): Don't require CONST.
6892         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6893         REL label.
6894         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6895         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6896         right.
6897         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6898         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6899         Use shallow_copy_rtx and PUT_MODE to change the mode of
6900         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6901         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6902         on SHmedia using GENERAL_REGs.
6903         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6904         bltu_media_i): Fix reversion of conditions.
6905         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6906         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6907         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6908         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6909         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6910         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6911         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6912         (GCC_nested_trampoline): Likewise.
6913         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6914         * config/sh/sh.c (gen_datalabel_ref): Define.
6915         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6916         (INITIALIZE_TRAMPOLINE): Likewise.
6917         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6918         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6919         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6920         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6921         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6922         (ic_invalidate): Adjust for SH5.
6923         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6924         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6925         _nested_trampoline.
6926         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6927         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6928         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6929         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6930         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6931         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6932         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6933         * config/sh/sh.c (target_reg_operand): Match only target-branch
6934         registers and pseudos that aren't virtual registers.
6935         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6936         Copy operands that don't match target_reg_operand to pseudos.
6937         (call_media, call_value_media, sibcall_media): Use
6938         target_reg_operand instead of target_operand.
6939         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6940         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6941         * config/sh/sh.c (target_reg_operand): Match hardware registers
6942         other than branch-target registers.
6943         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6944         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6945         (fpscr_values) [SH5 == 32]: Define.
6946         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6947         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6948         Handle function addresses coming in SUBREGs.
6949         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6950         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6951         shcompact_return_trampoline): Use datalabel where appropriate.
6952         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6953         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6954         general-purpose register to copy one branch-target register to
6955         another.
6956         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6957         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6958         SYMBOL_REFs with VOIDmode.
6959         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6960         bltu_media_i): New insns.
6961         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6962         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6963         (INIT_CUMULATIVE_ARGS): Likewise.
6964         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
6965         * machmode.def (V16SFmode): New mode.
6966         * c-common.c (type_for_mode): Support V2SF and V16SF.
6967         * tree.c (build_common_tree_nodes_2): Likewise.
6968         * tree.h (tree_index): Likewise.
6969         * calls.c (emit_call_1): Take args_so_far.  Adjust all
6970         callers.  Introduce CALL_POPS_ARGS.
6971         * tm.texi (CALL_POPS_ARGS): Document.
6972         * config/sh/crt1.asm: Implement in SHmedia mode.
6973         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6974         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6975         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6976         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6977         Implement divsi and udivsi in SHmedia mode.  Introduce
6978         SHcompact trampolines.
6979         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6980         only in SHmedia64.
6981         (regno_reg_class): Rewrite.
6982         (fp_reg_names): Remove.
6983         (sh_register_names, sh_additional_register_names): New.
6984         (print_operand): Added `u'.  Support SUBREGs in addresses.
6985         Add parentheses around shifted CONSTs.
6986         (output_file_start): Output .mode and .abi directives.
6987         (shiftcosts, addsubcosts, multcosts): Adjust.
6988         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
6989         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
6990         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
6991         bytes, not registers.  Take into account the need for the
6992         SHcompact incoming args trampoline.  Adjust all callers.
6993         (sh_expand_prologue): Take stack_regs into account.  Call
6994         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
6995         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
6996         stack aligned as per SH5 ABI.
6997         (sh_builtin_saveregs): Support SH5 ABI.
6998         (sh_build_va_list, sh_va_start): Likewise.
6999         (initial_elimination_offset): Take alignment into account.
7000         Compute location of PR according to the SH5 stack frame.
7001         (arith_reg_operand): Reject branch-target registers.
7002         (shmedia_6bit_operand): New.
7003         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7004         (target_reg_operand): Match DImode only.  Accept SUBREGs.
7005         (target_operand): New.
7006         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7007         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
7008         SIBCALL_REGS for SHmedia.
7009         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7010         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7011         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7012         (TARGET_SWITCHES): New SH5 flags.
7013         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
7014         VALID_REGISTER_P to disable unsupported registers.
7015         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7016         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7017         (FUNCTION_ARG_PADDING): Define.
7018         (FASTEST_ALIGNMENT): Adjust.
7019         (SH_REGISTER_NAMES_INITIALIZER): New.
7020         (sh_register_names): Declare.
7021         (DEBUG_REGISTER_NAMES): Define.
7022         (REGISTER_NAMES): Define based on sh_register_names.
7023         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7024         (sh_additional_register_names): Declare.
7025         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7026         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7027         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7028         (REGISTER_NATURAL_MODE): Define.
7029         (FIRST_PSEUDO_REGISTER): Adjust.
7030         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7031         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7032         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7033         (VECTOR_MODE_SUPPORTED_P): Define.
7034         (REG_CLASS_CONTENTS): Adjust.
7035         (SMALL_REGISTER_CLASSES): Adjust.
7036         (REG_ALLOC_ORDER): Adjust.
7037         (INDEX_REG_CLASS): Adjust.
7038         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7039         (CONST_OK_FOR_LETTER_P): Adjust.
7040         (PREFERRED_RELOAD_CLASS): Adjust.
7041         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7042         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7043         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7044         (FIRST_FP_PARM_REG): Adjust.
7045         (CALL_POPS_ARGS): Define.
7046         (FUNCTION_ARG_REGNO_P): Adjust.
7047         (struct sh_args): New fields.
7048         (GET_SH_ARG_CLASS): Adjust.
7049         (INIT_CUMULATIVE_ARGS): Adjust.
7050         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7051         (FUNCTION_ARG_ADVANCE): Adjust.
7052         (FUNCTION_ARG): Adjust.
7053         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7054         (FUNCTION_ARG_CALLEE_COPIES): Define.
7055         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7056         (STRICT_ARGUMENT_NAMING): Define.
7057         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7058         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7059         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7060         (SETUP_INCOMING_VARARGS): Adjust.
7061         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7062         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7063         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7064         (SUBREG_OK_FOR_INDEX_P): Adjust.
7065         (EXTRA_CONSTRAINT_S): Update.
7066         (EXTRA_CONSTRAINT_T): New.
7067         (EXTRA_CONSTRAINT): Adjust.
7068         (GO_IF_LEGITIMATE_INDEX): Adjust.
7069         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7070         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7071         (MOVE_MAX): Adjust.
7072         (MAX_MOVE_MAX): Define.
7073         (Pmode): Adjust.
7074         (CONST_COSTS): Adjust.
7075         (REGISTER_MOVE_COST): Adjust.
7076         (BRANCH_COST): Adjust.
7077         (TEXT_SECTION_ASM_OP): Adjust.
7078         (DBX_REGISTER_NUMBER): Adjust.
7079         (ASM_OUTPUT_DOUBLE_INT): New.
7080         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7081         (PREDICATE_CODES): Adjust.
7082         (PROMOTE_MODE): Adjust.
7083         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7084         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7085         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7086         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7087         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7088         (TR0_REG, TR1_REG, TR2_REG): New.
7089         (XD0_REG): Renumber.
7090         (UNSPEC_COMPACT_ARGS): New.
7091         (type): Added pt and ptabs.
7092         (length): Default to 4 on SHmedia.  Default pt length to 12
7093         and     20 on SHmedia32 and SHmedia64, respectively.
7094         (pt): New function unit.
7095         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7096         Add whitespace between operands of SHmedia instructions.
7097         (movdicc): Fix.
7098         (adddi3_media, addsi3_media): Adjust constraints.
7099         (subsi3) [SHmedia]: Force operand 1 into a register.
7100         (udivsi3_i1_media, udivsi3_i4_media): New.
7101         (udivsi3): Support SHmedia.
7102         (divsi3_i1_media, divsi3_i4_media): New.
7103         (divsi3): Support SHmedia.
7104         (anddi3, iordi3, xordi3): Adjust constraints.
7105         (zero_extendhidi2, zero_extendqidi2): New.
7106         (extendsidi2, extendhidi2, extendqidi2): New.
7107         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7108         (pop_e, pop_fpul, pop_4): Likewise.
7109         (movsi_media): Support FP and BT registers.
7110         (movsi_media_nofpu): New.  Adjust splits to DImode.
7111         (lduw, ldub): Renamed to zero_extend* above.
7112         (movqi_media): Fix typo.
7113         (movdi_media): Support FP and BT registers.
7114         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7115         (movdi_const_32bit): New.
7116         (shori_media): Require immediate operand.  Use `u' for output.
7117         (movdf_media, movsf_media): Simplified.
7118         (movdf_media_nofpu, movsf_media_nofpu): New.
7119         (movdf, movsf): Adjust
7120         (movv2sf, movv2sf, movv16sf): New.
7121         (beq_media, beq_media_i): Adjust constraints.  Don't use
7122         scratch BT register.
7123         (bne_media, bne_media_i): Likewise.
7124         (bgt_media, bgt_media_i): Likewise.
7125         (bge_media, bge_media_i): Likewise.
7126         (bgtu_media, bgtu_media_i): Likewise.
7127         (bgeu_media, bgeu_media_i): Likewise.
7128         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7129         bunordered): Emit jump insn.  Force operands to registers when
7130         needed.
7131         (jump_media, jump): Simplify.
7132         (call_compact, call_compact_rettramp): New.
7133         (call_value_compact, call_value_compact_rettramp): New.
7134         (call_media, call_value_media): Simplify.
7135         (sibcall_compact, sibcall_media): New.
7136         (call, call_value): Adjust for SHmedia and SHcompact.
7137         (sibcall, sibcall_value, untyped_call): Likewise.
7138         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7139         (indirect_jump): Adjust for SHmedia.
7140         (casesi_jump_media): New.
7141         (nop): Re-enable for SHmedia.
7142         (call_site): Restrict to SH1.
7143         (casesi): Adjust for SHmedia.
7144         (casesi_shift_media, casesi_load_media): New.
7145         (return): Explicitly use PR register.  Call return trampoline
7146         on SHcompact.
7147         (return_i): Explicitly use PR register.
7148         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7149         (return_media): Adjust.
7150         (shcompact_incoming_args): New.
7151         (epilogue): Adjust.
7152         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7153         (movstrsi): Disable on SH5.
7154         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7155         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7156         (subsf3, subsf3_media): Likewise.
7157         (mulsf3, mulsf3_media, mac_media): Likewise.
7158         (divsf3, divsf3_media): Likewise.
7159         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7160         (floatsisf2, fux_truncsfsi2): Likewise.
7161         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7162         constraints.
7163         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7164         (cmpunsf_media, cmpsf): Likewise.
7165         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7166         (abssf2, abssf2_media): Likewise.
7167         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7168         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7169         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7170         (floatsidf2, fix_truncdfsi2): Likewise.
7171         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7172         constraints.
7173         (cmpeqdf_media, cmpgtdf_media): Likewise.
7174         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7175         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7176         (absdf2, absdf2_media): Likewise.
7177         (extendsfdf2, extendsfdf2_media): Likewise.
7178         (truncsfdf2, truncsfdf2_media): Likewise.
7179         * config/sh/sh64.h: New file.
7180         * config/sh/t-sh64: New file.
7181         * config/sh/shmedia.h: New file.
7182         * config/sh/ushmedia.h: New file.
7183         * config/sh/sshmedia.h: New file.
7184         * configure.in: Added sh64-*-elf.
7185         * configure: Rebuilt.
7186         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7187         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7188         (reg_class_from_letter): Use `b' for TARGET_REGS.
7189         (print_operand): Support `%M', `%m', `AND' and
7190         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7191         (andcosts): Adjust for SHmedia.
7192         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7193         Likewise.
7194         (target_reg_operand): New function.
7195         * config/sh/sh-protos.h (target_reg_operand): Declare.
7196         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7197         FP registers on SH5.
7198         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7199         on SH4.
7200         (TARGET_REGISTER_P): New macro.
7201         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7202         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7203         (EXTRA_CONSTRAINT_S): New macro.
7204         (EXTRA_CONSTRAINT): Adjust.
7205         (FLOAT_TYPE_SIZE): Define to 32.
7206         (Pmode): DImode on SHmedia.
7207         (CONST_COSTS): Adjust for SHmedia literals.
7208         (PREDICATE_CODES): Added target_reg_operand.
7209         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7210         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7211         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7212         (cmpdi): Accept SHmedia.
7213         (movdicc_false, movdicc_true): New insns.
7214         (movdicc): New expand.
7215         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7216         no_new_pseudos.
7217         (addsi3_media): Match `S' constraint.
7218         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7219         (negdi2): Expand for SHmedia.
7220         (one_cmpldi2): New expand.
7221         (zero_extendsidi2): Change from expand to insn.
7222         (extendsidi2): Add constraints.
7223         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7224         LD/ST address.  Fix SI immediate loading split.
7225         (movhi_media, movqi_media, lduw, ldub): New insns.
7226         (movhi, movqi): Accept SHmedia.
7227         (shori_media, movdi_media): Relax input constraints.  Split
7228         symbolic constants.
7229         (movdf_media, movsf_media): New insn.  New split to movdi.
7230         (movdf, movsf): Match on SHmedia.
7231         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7232         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7233         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7234         (bunordered): New expand.
7235         (jump_compact): Renamed from `jump'.
7236         (jump_media): New insn.
7237         (jump): New expand.
7238         (call_media, call_value_media): New insns.
7239         (call, call_value): Adjust.
7240         (indirect_jump_compact): Renamed from `indirect_jump'.
7241         (indirect_jump_media): New insn.
7242         (indirect_jump): New expand.
7243         (untyped_call, return): Accept SHmedia.
7244         (return_media): New insn.
7245         (prologue, epilogue, blockage): Accept SHmedia.
7246         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7247         (sunordered): New expand.
7248         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7249         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7250         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7251         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7252         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7253         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7254         abssf2_media): New insns.
7255         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7256         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7257         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7258         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7259         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7260         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7261         absdf2_media): New insns.
7262         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7263         (extendsfdf2_media, truncdfsf2_media): New insns.
7264         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7265         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7266         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7267         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7268         * config/sh/sh.md (adddi3): New expand.
7269         (adddi3_media, adddi3z_media): New insns.
7270         (adddi3_compact): Renamed from adddi3.
7271         (addsi3_media): Use add.l r63 to add constant zero.
7272         (subdi3): New expand.
7273         (subdi3_media): New insn.
7274         (subdi3_compact): Renamed from subdi3.
7275         (mulsidi3): New expand.
7276         (mulsidi3_media): New insn.
7277         (mulsidi3_compact): Renamed from mulsidi3.
7278         (umulsidi3): New expand.
7279         (umulsidi3_media): New insn.
7280         (umulsidi3_compact): Renamed from umulsidi3.
7281         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7282         (ashlsi3, ashrsi3, lshrsi3): Use them.
7283         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7284         (ashldi3, ashrdi3, lshrdi3): Use them.
7285         (zero_extendsidi2): New expand.
7286         (extendsidi2): New insn.
7287         (movsi_media): New insn.  Split to movdi to load constants.
7288         (movsi): Enable for shmedia.
7289         (movdi_media): New insn.  Use shori_media to load wide constants.
7290         (short_media): New insn.
7291         (movdi): Enable for shmedia.
7292         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7293         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7294         (SUBTARGET_CPP_SPEC): Added `!m5'.
7295         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7296         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7297         to all other SH variants.
7298         (TARGET_DEFAULT): Set to SH1_BIT.
7299         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7300         (BITS_PER_WORD): Raise to 64 on shmedia.
7301         (MAX_BITS_PER_WORD): Change to 64.
7302         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7303         (INT_TYPE_SIZE): Keep as 32.
7304         (UNITS_PER_WORD): Raise to 8 on shmedia.
7305         (MIN_UNITS_PER_WORD): Keep as 4.
7306         (POINTER_SIZE): Raise to 64 on shmedia.
7307         (CONST_OK_FOR_J): New macro.
7308         (CONST_OK_FOR_LETTER_P): Use it.
7309         (processor_type): Add PROCESSOR_SH5.
7310         * config/sh/sh.md: Conditionalize all expands, insns and
7311         splits to TARGET_SH1.
7312         (cpu): Added sh5.
7313         (addsi3_compact): Renamed from...
7314         (addsi3): Now an expand.
7315         (addsi3_media, subsi3_media): New insns.
7316         (subsi3): Don't negate constants with SHmedia.
7317
7318         * hooks.c: New file.
7319         * hooks.h: New file.
7320         * Makefile.in (HOOKS_H): New.
7321         (TARGET_DEF_H): Added $(HOOKS_H).
7322         (OBJS): Added hooks.o.
7323         (cfgcleanup.o, bb-reorder.o): Added target.h.
7324         (hooks.o): Added dependencies.
7325         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7326         (TARGET_INITIALIZER): this.
7327         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7328         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7329         * bb-reorder.c: Include target.h.
7330         (reorder_basic_blocks): Skip if cannot modify jumps.
7331         * cfgcleanup.c: Include target.h.
7332         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7333
7334 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7335
7336         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7337         Protect jump delay slot instructions with .set noreorder and
7338         .set nomacro.
7339
7340 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7341
7342         * config/mips/mips.md (casesi_internal_di): Calculate
7343         the index into the target offset table correctly.
7344
7345 2002-02-08  Richard Henderson  <rth@redhat.com>
7346
7347         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7348         * final.c (output_addr_const): Accept and discard SUBREG.
7349         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7350         mark them unknown instead.
7351         (simplify_subtraction): Handle RTX_UNKNOWN.
7352         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7353
7354 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7355
7356         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7357
7358 2002-02-08  Richard Henderson  <rth@redhat.com>
7359
7360         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7361
7362 2002-02-08  Andreas Jaeger  <aj@suse.de>
7363
7364         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7365         * config/i386/t-linux64: New file.
7366
7367 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7368
7369         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7370         * c-parse.in (compstmt): Clear last_expr_type.
7371
7372 2002-02-07  Richard Henderson  <rth@redhat.com>
7373
7374         * loop.c (strength_reduce): Sink final_value when not
7375         eliminating a biv.
7376
7377 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7378
7379         * config/sparc/freebsd.h: Fix mismatched spec {.
7380
7381 2002-02-07  Richard Henderson  <rth@redhat.com>
7382
7383         * cfgrtl.c: Include recog.h and insn-config.h.
7384         (keep_with_call_p): Fix general_operand invocation.
7385         * Makefile.in (cfgrtl.o): Update dependencies.
7386
7387 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7388
7389         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7390         comment.  Accept HImode only if TARGET_H8300.
7391
7392 2002-02-07  Eric Christopher  <echristo@redhat.com>
7393
7394         * config/mips/crtn.asm: Cleanup #ifdefs.
7395
7396 2002-02-07  Eric Christopher  <echristo@redhat.com>
7397
7398         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7399         register 7 as RA instead of $31.
7400         * config/mips/crtn.asm: Ditto.
7401         * config/mips/mips.c (mips_move_2words): Add case for
7402         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7403         (compute_frame_size): Fix typo.
7404         (save_restore_insns): Ditto.  Make documentation about using
7405         register $7 as return register more precise.
7406         (mips_expand_epilogue): Fix comment. Add code to work around not
7407         being able to add to the stack pointer directly.
7408         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7409         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7410         epilogue.
7411
7412 2002-02-07  Tom Rix  <trix@redhat.com>
7413
7414         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7415         immediates in ldu and stdu DS opcode field.
7416         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7417         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7418         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7419
7420 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7421
7422         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7423         offset for stack bias.
7424
7425 2002-02-07  H.J. Lu <hjl@gnu.org>
7426
7427         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7428
7429 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7430
7431         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7432
7433 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7434
7435         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7436         * i386.c (x86_order_regs_for_local_alloc): New global function.
7437         * i386.h (REG_ALLOC_ORDER): CLeanup.
7438         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7439
7440 2002-02-07  Richard Henderson  <rth@redhat.com>
7441
7442         PR optimization/2463
7443         * alias.c (find_base_value): Recall base values for fixed hard regs.
7444         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7445
7446 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7447
7448         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7449         length.
7450
7451 2002-02-06  Richard Henderson  <rth@redhat.com>
7452
7453         PR c/5609
7454         * stmt.c (resolve_operand_name_1): Take more care with mixed
7455         named and unnamed operands.
7456
7457 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7458             Jan Hubicka  <jh@suse.cz>
7459
7460         * loop.c (remove_constant_addition): Avoid clobbering a shared
7461         CONST expression.
7462
7463 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7464
7465         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7466         * config/s390/t-linux64: New file.
7467         * config/s390/libgcc-glibc.ver: New file.
7468
7469 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7470
7471         * config/s390/linux64.h: Delete file.
7472         * config/s390/s390x.h: New file.
7473         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7474         as target header file.
7475         * config/s390/linux.h (TARGET_VERSION): Define depending on
7476         DEFAULT_TARGET_64BIT.
7477         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7478         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7479         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7480         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7481         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7482         (EXTRA_SPEC): New define.
7483         * config/s390/s390.h (TARGET_VERSION): Define depending on
7484         DEFAULT_TARGET_64BIT.
7485         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7486
7487 2002-02-06  Jason Merrill  <jason@redhat.com>
7488
7489         * c-decl.c (finish_function): Warn about a non-void function with
7490         no return statement and no abnormal exit.
7491         (current_function_returns_abnormally): New variable.
7492         (start_function): Clear it.
7493         (struct c_language_function): Add returns_abnormally.
7494         (push_c_function_context): Save it.
7495         (pop_c_function_context): Restore it.
7496         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7497         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7498         an explicit return type.
7499         * c-tree.h: Declare current_function_returns_abnormally.
7500         (C_FUNCTION_IMPLICIT_INT): New macro.
7501         * c-typeck.c (build_function_call): Set it.
7502         (c_expand_return): Set current_function_returns_value even if the
7503         value is erroneous.
7504
7505 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7506
7507         PR c/5420:
7508         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7509         unsafe for reevaluation.
7510
7511 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7512
7513         PR c/5482:
7514         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7515         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7516
7517 2002-02-06  Richard Henderson  <rth@redhat.com>
7518
7519         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7520         be a general_operand.  Dest for function value must be a pseudo.
7521
7522 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7523
7524         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7525         as SYMBOL_REFs from the constant pool.
7526
7527 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7528
7529         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7530         passed by invisible reference.
7531
7532 2002-02-05  Richard Henderson  <rth@redhat.com>
7533
7534         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7535
7536 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7537
7538         Implement using "base addresses" in insn operands as default.
7539         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7540         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7541         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7542         used to read the rtx value.
7543         (mmix_target_asm_function_epilogue): Fix spacing.
7544         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7545         (mmix_legitimate_address): Ditto.
7546         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7547         should be loaded with a GETA insn.  Don't allocate needless extra
7548         char for nul termination and fix misleading comment.
7549         (mmix_print_operand_address): Handle constants if
7550         TARGET_BASE_ADDRESSES.
7551         (mmix_output_register_setting): Use base addressing if
7552         TARGET_BASE_ADDRESSES and the number of insns is 3.
7553         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7554         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7555         to use R as constraint, add LDA to match s.
7556         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7557         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7558         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7559         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7560         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7561         order with other fixed registers.
7562         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7563         other parameter/call-clobbered registers.
7564         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7565         -mbase-addresses, -mno-base-addresses.
7566         (MMIX Options): Ditto.
7567
7568 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7569
7570         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7571
7572 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7573
7574         * config/rs6000/altivec.h: Change elem to _S_elem.
7575
7576 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7577
7578         * config/netbsd.h (WCHAR_TYPE): Define.
7579         (WCHAR_TYPE_SIZE): Ditto.
7580         (WINT_TYPE): Ditto.
7581         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7582         (WCHAR_UNSIGNED): Ditto.
7583         (WCHAR_TYPE_SIZE): Ditto.
7584         (WINT_TYPE): Ditto.
7585         * config/arm/netbsd.h: Likewise.
7586         * config/i386/netbsd-elf.h: Likewise.
7587         * config/i386/netbsd.h: Likewise.
7588         * config/m68k/netbsd-elf.h: Likewise.
7589         * config/m68k/netbsd.h: Likewise.
7590         * config/ns32k/netbsd.h: Likewise.
7591         * config/sparc/netbsd.h: Likewise.
7592         * config/vax/netbsd.: Likewise.
7593
7594 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7595
7596         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7597         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7598         (TARGET_INITIALIZER): this.
7599         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7600         (BITFIELD_NBYTES_LIMITED): Markup fix.
7601         * tree.h (default_ms_bitfield_layout_p): Declare.
7602         (record_layout_info): Added prev_field.
7603         * tree.c (default_ms_bitfield_layout_p): New fn.
7604         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7605         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7606         * stor-layout.c: Include target.h.
7607         (start_record_layout): Initialize prev_field.
7608         (place_field): Handle MS bit-field layout, and disregard
7609         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7610         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7611         * Makefile.in (stor-layout.o): Adjust dependencies.
7612
7613 2002-02-05  Jason Merrill  <jason@redhat.com>
7614
7615         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7616
7617 2002-02-05  Andreas Jaeger  <aj@suse.de>
7618
7619         * crtstuff.c: Fix comments.
7620
7621 2002-02-05  Richard Henderson  <rth@redhat.com>
7622
7623         PR fortran/3393
7624         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7625         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7626
7627         PR fortran/3392
7628         * config/mips/mips.c (function_arg): Handle TImode.
7629         (function_arg_advance): Likewise.
7630
7631 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7632
7633         * config/rs6000/altivec.h (vec_step_help): Rename to
7634         __vec_step_help.
7635
7636 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7637
7638         * config/rs6000/altivec.h: Fix typos.
7639
7640 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7641
7642         * config/arm/netbsd.h: Correct a comment.
7643
7644 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7645
7646         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7647         building void typed builtins.
7648
7649         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7650         (vec_step): Implement for C++.
7651
7652 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7653
7654         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7655
7656 2002-02-04  Richard Henderson  <rth@redhat.com>
7657
7658         * combine.c (nonzero_bits): Re-introduce special case for
7659         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7660
7661 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7662
7663         * doc/extend.texi: Warn about unsupported usage of altivec
7664         builtins.
7665
7666         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7667         (altivec_predicate_*): New.
7668
7669         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7670         Add C++ version of vec_*() functions.
7671
7672         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7673         (bdesc_2arg): Remove altivec predicates.
7674         (altivec_expand_builtin): Handle predicates.
7675         (altivec_init_builtins): Handle predicates.
7676         (altivec_expand_predicate_builtin): New.
7677
7678 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7679
7680         * pa.c (DO_FRAME_NOTES): Move forward.
7681         (store_reg): Revise handling of frame notes.
7682         (load_reg): Likewise.
7683         (set_reg_plus_d): Likewise.
7684         (hppa_expand_prologue): Likewise.
7685         (hppa_expand_epilogue): Likewise.
7686
7687 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7688
7689         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7690
7691 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7692
7693         PR c/4475, c++/3780:
7694         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7695         * c-common.h (SWITCH_TYPE): Define.
7696         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7697         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7698         Rename spareness variable to sparseness.
7699         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7700         if non-NULL instead of TREE_TYPE (orig_index).
7701         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7702         (expand_end_case): Define using expand_end_case_type.
7703         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7704         to expand_end_case_type.
7705         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7706
7707 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7708
7709         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7710         (BIGGEST_ALIGNMENT): Change to 128.
7711
7712 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7713
7714         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7715
7716 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7717
7718         * pa.md (call_internal_reg_64bit): Remove unused variable.
7719
7720 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7721
7722         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7723         field.
7724         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7725         * config/arm/arm.c (current_function_anonymous_args): Delete,
7726         replace uses with cfun->machine->uses_anonymous_args.
7727         (arm_reorg): Do not reset uses_anonymous_args.
7728
7729         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7730         any geenral register.
7731
7732 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7733
7734         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7735         the entry block.
7736
7737 2002-02-04  Richard Henderson  <rth@redhat.com>
7738
7739         * combine.c (force_to_mode): Remove STACK_BIAS code.
7740         (nonzero_bits): Likewise.  Replace sp/fp special case with
7741         REGNO_POINTER_ALIGN.
7742
7743         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7744         (HARD_FRAME_POINTER_REGNUM): New.
7745         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7746         (FIXED_REGS, CALL_USED_REGS): Update.
7747         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7748         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7749         (HARD_REGNO_NREGS): Update for SFP.
7750         (STACK_POINTER_OFFSET): Include bias here ...
7751         (FIRST_PARM_OFFSET): ... not here.
7752         (STACK_BIAS): Remove.
7753         (INIT_EXPANDERS): New.
7754         (STARTING_FRAME_OFFSET): Do not include bias.
7755         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7756         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7757         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7758         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7759         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7760         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7761         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7762         (MUST_SAVE_REGISTER): Likewise.
7763         (sparc_flat_function_prologue): Likewise.
7764         (sparc_flat_function_epilogue): Likewise.
7765         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7766         (sparc_init_modes): SFP is GENERAL_REGS.
7767         (sparc_builtin_saveregs): SFP does not have bias applied.
7768
7769 2002-02-04  Richard Henderson  <rth@redhat.com>
7770
7771         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7772         current_function_is_thunk.
7773         (alpha_sa_mask): Distinguish between current_function_is_thunk
7774         called from ASM_OUTPUT_MI_THUNK and not.
7775         (alpha_does_function_need_gp): Thunks always need gp.
7776         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7777         (alpha_output_mi_thunk_osf): New.
7778         * config/alpha/alpha-protos.h: Update.
7779         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7780
7781 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7782
7783         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7784         function types, not when they're taken away.
7785
7786 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7787
7788         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7789         CODE_LABEL and jump table when replacing a table jump with a
7790         simple jump.
7791
7792 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7793
7794         * config/s390/s390-protos.h (legitimize_la_operand,
7795         s390_secondary_input_reload_class, s390_plus_operand,
7796         s390_expand_plus_operand): Add prototypes.
7797
7798         config/s390/s390.c (s390_secondary_input_reload_class,
7799         s390_plus_operand, s390_expand_plus_operand): New functions.
7800
7801         (struct s390_address): New member 'pointer'.
7802         (s390_decompose_address): Compute it.
7803         (legitimate_la_operand_p): Use it.
7804         (legitimize_la_operand): New function.
7805         (movti, movdi, movdf splitters): Call it.
7806
7807         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7808         (PREDICATE_CODES): Add s390_plus_operand.
7809
7810         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7811         (la_ccclobber): Allow GENERAL_REGS as output operand.
7812
7813         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7814         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7815         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7816
7817 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7818
7819         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7820         register names for regular asm () construct.
7821
7822 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7823
7824         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7825         registers.
7826
7827 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7828
7829         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7830         pat for recog.
7831
7832 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7833
7834         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7835         constant pool to be identical by string address and index.
7836
7837 2002-02-04  Anthony Green  <green@redhat.com>
7838
7839         * output.h (SECTION_OVERRIDE): Define.
7840         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7841
7842 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7843
7844         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7845         by existing arm*-*-netbsd* (a.out) target.
7846         (ns32k-*-netbsdelf*): Likewise.
7847         (sparc-*-netbsdelf*): Likewise.
7848         (vax-*-netbsdelf*): Likewise.
7849
7850 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7851
7852         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7853         headers and libobjc headers.
7854
7855 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7856
7857         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7858         (_mingw.h): Remove duplicate include.
7859
7860 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7861
7862         * config.gcc: Set cpu_type to m68k for 68010, as well.
7863         (m68010-*-netbsdelf*): New...
7864         (m68k*-*-netbsdelf*): ...targets.
7865         * config/m68k/netbsd-elf.h: New file.
7866
7867 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7868
7869         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7870
7871 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7872
7873         * config/h8300/h8300.c (h8_push_ops): Move inside
7874         h8300_init_once.
7875         (h8_pop_ops): Likewise.
7876         (h8_move_ops): Likewise.
7877
7878 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7879
7880         * config/h8300/h8300.c (os_task): Make it static.
7881         (monitor): Likewise.
7882         (pragma_saveall): Likewise.
7883
7884 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7885
7886         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7887         constant is a valid sign-extension for Pmode.
7888
7889 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7890
7891         * config/h8300/h8300.c: Fix formatting.
7892
7893 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7894
7895         * config/h8300/h8300.md: Fix formatting.
7896
7897 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7898
7899         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7900         predicates of operands[1].  Split the patterns for each
7901         processor variant.
7902
7903 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7904
7905         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7906         of operands[1] to register_operand.
7907
7908 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7909
7910         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7911         * cpphash.c (_cpp_init_hashtable): Similarly.
7912         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7913         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7914         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7915         (cpp_handle_option): Handle the new options.
7916         * cpplex.c (cpp_interpret_charconst): Use new flag.
7917         * cpplib.h (struct cpp_options): New member signed_char.
7918         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7919         (cpp_options): Handle -fsigned-char and -funsigned-char.
7920         (static_specs): Remove signed_char_spec.
7921         (do_spec1): Don't handle %c.
7922         * system.h: Poison SIGNED_CHAR_SPEC.
7923         * tradcif.y (yylex): Use flag_signed_char.
7924         * tradcpp.h (flag_signed_char): New.
7925         * tradcpp.c (flag_signed_char): New.
7926         (main): Handle new command-line options.
7927         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7928 config:
7929         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7930         * avr/avr.h: Remove old comments.
7931         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7932         (CC1_SPEC): Pass -fsigned-char if -mic*.
7933         (SIGNED_CHAR_SPEC): Remove.
7934 doc:
7935         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7936
7937 2002-02-01  Eric Christopher  <echristo@redhat.com>
7938
7939         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7940         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7941         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7942         (ASM_OUTPUT_REG_POP): Ditto.
7943
7944 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7945
7946         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7947         patch.
7948
7949 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7950
7951         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7952
7953 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7954
7955         PR c/5304:
7956         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7957         unconditionally.
7958
7959 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7960
7961         * cfganal.c: Include tm_p.h.
7962         (keep_with_call_p): Fix the test that determines if a register holds
7963         the return value of a call.
7964
7965 2002-02-01  DJ Delorie  <dj@redhat.com>
7966
7967         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7968         we are given conflicting registers, switch to the other one we
7969         had allocated for us.
7970         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7971         as TImode so we know when the "other" register is available.
7972
7973 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
7974
7975         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7976         sparc/sparc_bi.h.
7977
7978 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7979
7980         * cfganal.c (keep_with_call_p): New function.
7981         (flow_call_edges_add): Prevent splitting a block between a call and
7982         a single-set instruction that should be kept in the same block.
7983
7984 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7985
7986         * doc/install.texi (avr): Update outdated URL.
7987
7988 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
7989
7990         * config/stormy16/stormy16.md (pushqi): New.
7991         (popqi): New.
7992         (pushhi): New.
7993         (pophi): New.
7994         (movhi): Remove stack operands.
7995         (movqi): Likewise.
7996         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7997         nonimmediate_nonstack_operand.
7998         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7999         New.
8000         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8001         New.
8002
8003 2002-01-31  Jason Merrill  <jason@redhat.com>
8004
8005         * Makefile.in (c-parse.c): Handle .output file.
8006         * objc/Make-lang.in (objc-parse.c): Likewise.
8007
8008 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
8009
8010         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8011         the -me[lb] option is given.  Don't output the default flag
8012         twice.
8013
8014 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
8015
8016         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8017         the primary source file; this has not been done yet.
8018         * c-decl.c (c_expand_body): Reset input_filename from
8019         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8020
8021 2002-01-31  Kazu Hirata  <kazu@hxi.com>
8022
8023         * rtlanal.c (subreg_regno_offset): Do not use
8024         SUBREG_REGNO_OFFSET.
8025         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8026         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8027
8028 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8029
8030         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
8031         version rather than GNATS version in --version output.
8032
8033 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
8034
8035         * ifcvt.c (noce_process_if_block): Make a copy of the destination
8036         when copying back from a temporary.
8037
8038 2002-01-30  Richard Henderson  <rth@redhat.com>
8039
8040         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8041         and new_dest are the same.
8042
8043 2002-01-30  Richard Henderson  <rth@redhat.com>
8044
8045         PR opt/5076
8046         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8047         * rtl.c (note_insn_name): Update.
8048         * emit-rtl.c (remove_unnecessary_notes): Kill it.
8049         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
8050         to perform loop rotation.
8051         (expand_exit_loop_top_cond): New.
8052         * tree.h (expand_exit_loop_top_cond): Declare it.
8053         * c-semantics.c (genrtl_while_stmt): Use it.
8054         (genrtl_for_stmt): Likewise.
8055
8056 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
8057
8058         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8059         arguments to 64-bit boundaries on 64-bit ABIs.
8060
8061 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
8062
8063         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8064
8065 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8066
8067         * c-decl.c (grokdeclarator): Handle type being a typedef for an
8068         invalid type.
8069
8070 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
8071
8072         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8073         * config/sparc/sparc_bi.h: Remove file.
8074         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8075
8076 2002-01-30  Richard Henderson  <rth@redhat.com>
8077
8078         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8079
8080 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
8081
8082         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8083
8084 2002-01-30  Jason Merrill  <jason@redhat.com>
8085
8086         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8087         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8088         (reg_save): Use DW_CFA_offset_extended_sf instead.
8089
8090         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8091
8092 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8093
8094         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8095         in cselib_lookup.
8096
8097 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8098
8099         * rs6000.md ("*call_value_local32"): Remove constraints.
8100         ("*call_value_local64"): Same.
8101         ("*call_value_indirect_nonlocal_aix32"): Same.
8102         ("*call_value_nonlocal_aix32"): Same.
8103         ("*call_value_indirect_nonlocal_aix64"): Same.
8104         ("*call_value_nonlocal_aix64"): Same.
8105         ("*call_value_nonlocal_sysv"): Same.
8106
8107 2002-01-29  Richard Henderson  <rth@redhat.com>
8108
8109         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8110
8111 2002-01-29  Richard Henderson  <rth@redhat.com>
8112
8113         * expr.c (force_operand): Ignore flag_pic for detecting pic
8114         address loads.
8115         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8116         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8117         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8118         instead of open-coded loop.
8119         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8120         be fixed when in use.
8121
8122 2002-01-29  Richard Henderson  <rth@redhat.com>
8123
8124         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8125         * sched-rgn.c (propagate_deps): Update them.
8126         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8127         clobbers list when either gets too long.
8128
8129 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8130
8131         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8132         and INDEX_REGS the same as GENERAL_REGS.
8133         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8134
8135 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8136
8137         * tree.c (build_nonstandard_integer_type): Correct prototype.
8138
8139 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8140
8141         * config/s390/s390.md (movstrsico, movstrdix_64,
8142         movstrsix_31): Remove, replace by ...
8143         (movstrdi_short, movstrsi_short, movstrdi_long,
8144         movstrsi_long): ... these.  New.
8145         (movstrdi, movstrsi): Adapt.
8146
8147         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8148         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8149         Remove unnecessary CC clobber.
8150         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8151         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8152
8153         (divmoddi4): Don't partially initialize TImode register.
8154
8155 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8156
8157         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8158
8159 2002-01-29  Richard Henderson  <rth@redhat.com>
8160
8161         * flow.c (print_rtl_and_abort): Remove.
8162         (print_rtl_and_abort_fcn): Remove.
8163         (verify_local_live_at_start): Use dump_bb instead.
8164         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8165         (verify_wide_reg_1): Return 2 on mode test failure.
8166
8167 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8168
8169         PR c/3325, c/3326, c/2511, c/3347
8170         * c-decl.c (enum_decl_context): Remove BITFIELD.
8171         (grokdeclarator): Take bitfield width as an input.
8172         Ensure bitfields are given the correct type.  Perform
8173         bitfield width validation with build_bitfield_integer_type
8174         rather than waiting for finish_struct.
8175         (grok_typename, grok_typename_in_parm_context, start_decl,
8176         push_parmdecl, grokfield, start_function): Update calls to
8177         grokdeclarator.
8178         (build_bitfield_integer_type): New function.
8179         (finish_struct): Move bitfield validation to grokdeclarator
8180         and build_bitfield_integer_type.
8181         * tree.c (build_nonstandard_integer_type): New function.
8182         * tree.h (build_nonstandard_integer_type): New prototype.
8183 objc:
8184         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8185
8186 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8187
8188         PR other/1502:
8189         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8190         don't ignore unrecognized -W* options.
8191         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8192         * cpplib.h (cpp_handle_option): Adjust prototype.
8193         * c-decl.c (c_decode_options): Pass 0 as last argument to
8194         cpp_handle_option.
8195
8196         PR c/2896:
8197         * gcc.c (cpp_unique_options): Split from cpp_options.
8198         (cpp_options): Source cpp_unique_options.
8199         (default_compilers): Use cpp_unique_options instead of cpp_options
8200         when used together with cc1_options.
8201         (static_specs): Add cpp_unique_options.
8202         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8203         when used together with cc1_options.
8204
8205 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8206
8207         * config/h8300/h8300-protos.h: Update the prototype of
8208         output_a_shift.
8209         * config/h8300/h8300.c (output_a_shift): Remove an unused
8210         argument 'insn'.  Remove redundant code.
8211         * config/h8300/h8300.md: Adust to the new prototype of
8212         output_a_shift.
8213
8214 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8215
8216         * config/h8300/h8300-protos.h: Update the prototypes of
8217         emit_a_rotate and expand_a_rotate.
8218         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8219         first argument to 'enum rtx_code'.
8220         (expand_a_rotate): Likewise.
8221
8222 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8223
8224         * config/h8300/h8300-protos.h: Update the prototype of
8225         output_simode_bld.
8226         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8227         'log2'.
8228         * config/h8300/h8300.md: Adjust to the new prototype.
8229
8230 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8231
8232         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8233         redundant code.
8234
8235 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8236
8237         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8238         is a fixed register before returning pic_offset_table_rtx.
8239         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8240         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8241
8242 2002-01-28  Jason Merrill  <jason@redhat.com>
8243
8244         * dwarf2.h: Sync with src version.
8245
8246 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8247
8248         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8249         BT_FN_VOID_PTR_VAR.
8250         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8251         * doc/extend.texi (__builtin_prefetch): Update documentation:
8252         first argument is now const void ptr.
8253
8254 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8255
8256         * config/h8300/h8300-protos.h: Remove an unused prototype.
8257
8258 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8259
8260         * toplev.c (lang_independent_init): Round up identifier size.
8261
8262 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8263
8264         * config.gcc: Revert previous change.
8265
8266 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8267
8268         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8269
8270 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8271
8272         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8273         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8274         other non-elf netbsd config frags.
8275         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8276         collect2 will does that.
8277         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8278         shared-lib frobbing will work.
8279
8280 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8281
8282         * config/h8300/h8300.h: Fix formatting.
8283         * config/h8300/h8300.md: Likewise.
8284
8285 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8286
8287         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8288         the old, removed AAA_standards fix.
8289         * fixinc/fixincl.x: Rebuilt.
8290
8291 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8292
8293         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8294         atexit call in crtbegin, hooked in after call to frame_dummy;
8295         register EH before registering __fini__start.
8296
8297 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8298
8299         * config/rs6000/altivec.h: Remove spurious semicolons.
8300
8301 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8302
8303         * config/h8300/h8300.md: Replace dead bit extraction patterns
8304         with ones that work.
8305
8306 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8307
8308         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8309         if not STRICT_ALIGNMENT.
8310         * rtl.h (MEM_ALIGN): Likewise.
8311
8312 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8313
8314         * doc/invoke.texi (-fdump-translation-unit): Revert this
8315         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8316
8317 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8318
8319         * config/h8300/h8300.md (define_constants): New.
8320         (anonymous patterns) Use defined constants appropriately.
8321
8322 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8323
8324         * config/h8300/h8300.c (function_arg): Remove redundant code.
8325
8326 2002-01-26  Richard Henderson  <rth@redhat.com>
8327
8328         * sched-deps.c (reg_pending_uses_head): New.
8329         (reg_pending_barrier): Rename from reg_pending_sets_all.
8330         (find_insn_list): Don't mark inline.
8331         (find_insn_mem_list): Remove.
8332         (add_dependence_list, add_dependence_list_and_free): New.
8333         (flush_pending_lists): Replace only_write param with separate
8334         for_read and for_write parameters.  Update all callers.  Use
8335         add_dependence_list_and_free.
8336         (sched_analyze_1): Do not add reg dependencies here; just set
8337         the pending bits.  Use add_dependence_list.
8338         (sched_analyze_2): Likewise.
8339         (sched_analyze_insn): Replace schedule_barrier_found with
8340         reg_pending_barrier.  Add all dependencies for pending reg
8341         uses, sets, and clobbers.
8342         (sched_analyze): Don't add reg dependencies for calls, just
8343         set pending bits.  Use regs_invalidated_by_call.  Treat
8344         sched_before_next_call as a normal list, not a fake insn.
8345         (init_deps): No funny init for sched_before_next_call.
8346         (free_deps): Free pending mems lists.  Don't zero reg_last.
8347         (init_deps_global): Init reg_pending_uses.
8348         (finish_deps_global): Free it.
8349         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8350         (find_insn_mem_list): Remove.
8351         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8352         (propagate_deps): Use them.  Zero temp mem lists.
8353
8354 2002-01-26  Richard Henderson  <rth@redhat.com>
8355
8356         * Makefile.in (CRTSTUFF_CFLAGS): New.
8357         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8358         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8359         crtstuff.c instead of alpha assembly version.
8360         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8361         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8362         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8363         (__do_global_dtors_aux): Mark used.
8364         (frame_dummy, __do_global_ctors_aux): Mark used.
8365         (fini_dummy, init_dummy): Remove.
8366
8367         * config/alpha/crtbegin.asm: Remove file.
8368         * config/alpha/crtend.asm: Remove file.
8369         * config/alpha/t-crtbe: Remove file.
8370         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8371         (LINK_EH_SPEC): New.
8372
8373         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8374         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8375         calling constructors.
8376         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8377
8378         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8379         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8380         CRT_END_INIT_DUMMY hack.
8381         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8382         FORCE_{INIT,FINI}_SECTION_ALIGN.
8383
8384         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8385         FORCE_{INIT,FINI}_SECTION_ALIGN.
8386
8387         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8388         invocation sequence.
8389         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8390
8391         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8392         (FORCE_CODE_SECTION_ALIGN): New.
8393
8394 2002-01-26  Richard Henderson  <rth@redhat.com>
8395
8396         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8397
8398 2002-01-26  Richard Henderson  <rth@redhat.com>
8399
8400         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8401         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8402
8403 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8404
8405         * config/h8300/h8300.md: Remove bit extraction patterns that
8406         cannot be triggered.
8407         Restrict each bit extraction pattern to a variant on which the
8408         pattern is tested.
8409
8410 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8411
8412         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8413
8414 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8415
8416         * config/h8300/h8300.md: Remove bit test patterns that cannot
8417         be triggered.
8418         Restrict each bit test pattern to a variant on which the
8419         pattern is tested.
8420
8421 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8422
8423         * builtins.c (expand_builtin_strncat): Remove redundant check for
8424         INTEGER_CST.
8425
8426 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8427
8428         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8429         default setting.
8430         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8431         existing setting.
8432
8433 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8434
8435         * dbxout.c (dbxout_init): Use assemble_name rather than just
8436         stripping off the first character.
8437         (dbxout_source_file): Likewise.
8438
8439 2002-01-25  DJ Delorie  <dj@redhat.com>
8440
8441         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8442         using rtx_equal_p, not by comparing pointers.
8443
8444 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8445
8446         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8447         for PIC_OFFSET_TABLE_REGNUM.
8448         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8449
8450 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8451
8452         * config.gcc (x86_64-*-freebsd*): New target.
8453         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8454         value.
8455         (i[34567]86-*-freebsd*): Don't include svr4.h.
8456         * config/i386/freebsd64.h: New file.
8457
8458 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8459
8460         * config/alpha/x-vms (version): Make static.
8461
8462         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8463         in previous checkin.
8464
8465         * Makefile.in (install-headers-cp): New target.
8466         * config.gcc (alpha-dec-*vms*): Install headers with
8467         install-headers-cp
8468
8469 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8470
8471         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8472         avoid it's copies.
8473
8474 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8475
8476         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8477         of compare_tree_int.
8478         (expand_builtin_strncat): Likewise.
8479         * c-decl.c (finish_struct): Use tree_low_cst.
8480         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8481         * tree.c (compare_tree_int): Likewise.
8482
8483 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8484
8485         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8486         adjustments even if they are implemented by more than two insns.
8487
8488 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8489
8490         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8491         * df.h (struct ref): Kill B.
8492         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8493
8494         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8495         * flow.c (propagate_one_insn): Use it.
8496         (mark_used_regs): Handle NIL.
8497
8498 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8499
8500         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8501         to help folding.
8502
8503 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8504
8505         * rs6000.md (prefetch): Make address V4SI mode so that the address
8506         is restricted to legitimate form for instruction.
8507
8508 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8509
8510         * doc/install.texi (xtensa-*-elf): New target.
8511         (xtensa-*-linux*): New target.
8512         * doc/contrib.texi: Add myself.
8513
8514 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8515
8516         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8517         purpose register to hold an SImode (or smaller) value.
8518
8519 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8520
8521         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8522         registry only.
8523         * crtstuff.c: Likewise.
8524
8525 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8526
8527         * config/h8300/h8300.md (negation patterns): Tighten
8528         predicates to register_operand.
8529
8530 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8531
8532         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8533         mode, not Pmode.
8534
8535         * builtins.c (expand_builtin_prefetch): Same.
8536
8537 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8538
8539         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8540         modes.
8541
8542 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8543
8544         * config/h8300/h8300.c (print_operand): Remove support for
8545         operand character 'A'.
8546         * config/h8300/h8300.md (three anonymous patterns): Replace
8547         operand character 'A' with either 'T' or 'S'.
8548
8549 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8550
8551         * config/h8300/h8300.c (print_operand): Remove support for
8552         operand character 'U'.
8553
8554 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8555
8556         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8557
8558 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8559
8560         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8561         values to be assigned to the stack pointer.
8562
8563 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8564
8565         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8566         to const_double needs to be done right for big-endian systems.
8567
8568 2002-01-24  Jason Merrill  <jason@redhat.com>
8569
8570         PR c++/2432
8571         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8572         to can_throw_internal.
8573
8574 2002-01-23  Richard Henderson  <rth@redhat.com>
8575
8576         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8577         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8578
8579 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8580
8581         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8582         (symGOT2reg): Use them, then set as GOT value as unchanging.
8583         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8584         as a temporary, if possible.
8585         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8586         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8587
8588 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8589
8590         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8591         accept to accept 0x80 as operands[2].
8592
8593 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8594
8595         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8596
8597 2002-01-23  Richard Henderson  <rth@redhat.com>
8598
8599         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8600
8601 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8602
8603         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8604         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8605         an attribute.
8606
8607 2002-01-23  Richard Henderson  <rth@redhat.com>
8608
8609         * expr.c (move_by_pieces_1): Extend size before negation.
8610
8611         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8612         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8613         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8614         * config/m68k/t-m68kelf: Likewise.
8615
8616 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8617
8618         * config/xtensa/elf.h: New file.
8619         * config/xtensa/lib1funcs.asm: New file.
8620         * config/xtensa/lib2funcs.S: New file.
8621         * config/xtensa/linux.h: New file.
8622         * config/xtensa/t-xtensa: New file.
8623         * config/xtensa/xtensa-config.h: New file.
8624         * config/xtensa/xtensa-protos.h: New file.
8625         * config/xtensa/xtensa.c: New file.
8626         * config/xtensa/xtensa.h: New file.
8627         * config/xtensa/xtensa.md: New file.
8628         * config.gcc (xtensa-*-elf*): New target.
8629         (xtensa-*-linux*): New target.
8630         * cse.c (canon_hash): Compare rtx pointers instead of register
8631         numbers.  This is required for the Xtensa port.
8632         * integrate.c (copy_insn_list): Handle case where the static
8633         chain is in memory and the memory address has to be copied to
8634         a register.
8635         * doc/invoke.texi (Option Summary): Add Xtensa options.
8636         (Xtensa Options): New node.
8637         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8638
8639 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8640
8641         * diagnostic.c (internal_error): Do ICE suppression only
8642         when ENABLE_CHECKING is not defined.
8643
8644         * c-typeck.c (require_complete_type): Return error_mark_node
8645         if type is error_mark_node.
8646
8647 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8648
8649         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8650         -Os and issue a warning.
8651
8652 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8653
8654         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8655         current (lack of) need for host configuration by hand.
8656
8657         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8658         references.  Documentation of some target macros moved from
8659         hostconfig.texi to tm.texi.
8660
8661 2002-01-23  Will Cohen  <wcohen@redhat.com>
8662
8663         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8664         defined.
8665
8666 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8667
8668         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8669         operand[3].
8670
8671 2002-01-23  Jason Merrill  <jason@redhat.com>
8672
8673         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8674
8675         * function.c (assign_parms): Don't put args of inline functions
8676         into registers when not optimizing.
8677
8678 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8679
8680         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8681         (prologue_use): New pattern.
8682         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8683         preference to gen_rtx_USE.
8684         (thumb_expand_prologue): Use gen_prologue_use in preference to
8685         gen_rtx_USE.
8686         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8687         gen_rtx_USE.
8688
8689 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8690
8691         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8692
8693 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8694
8695         PR c/3504
8696         * doc/extend.texi: Correct documentation of __alignof__.
8697
8698 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8699
8700         * params.h: Rename arguments of DEFPARAM so that it will be
8701         recognized as a translation keyword.
8702
8703 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8704
8705         * extend.texi: Document altivec functions.
8706         Fix N-bit adjectives in X86 builtin documentation.
8707
8708 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8709
8710         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8711         auto_inc_dec values.
8712
8713 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8714
8715         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8716         after backslash.
8717         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8718
8719 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8720
8721         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8722
8723 2002-01-22  Richard Henderson  <rth@redhat.com>
8724
8725         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8726         copy_insn not copy_rtx.
8727
8728 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8729
8730         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8731         "nonzero" as that might add "1" bits.  Ensure "constop" is
8732         properly sign extened.
8733         (force_to_mode): Tweak for sign extended constop.
8734
8735 2002-01-22  Richard Henderson  <rth@redhat.com>
8736
8737         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8738         for_each_rtx instead of assuming we're already looking at the MEM.
8739         (split_small_symbolic_mem_operand): Likewise.
8740         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8741         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8742
8743 2002-01-22  Richard Henderson  <rth@redhat.com>
8744
8745         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8746         sequence number for the literal.
8747         (divmoddi_internal_er): Likewise.
8748
8749 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8750
8751         PR java/4972
8752         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8753         in LIBICONV variable.
8754         * configure: Regenerated.
8755
8756 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8757
8758         * dependence.c (build_def_use): Remove array_idx.
8759
8760         * dwarfout.c (last_filename): Remove.
8761         (output_compile_unit_die): Remove last_filename.
8762
8763 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8764             Richard Henderson  <rth@redhat.com>
8765
8766         PR opt/3640
8767         * fold-const.c (fold): Optimize unsigned comparisons against
8768         UINT_MAX (and similar unsigned constants).
8769
8770 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8771
8772         * Makefile.in (loop.o): Depend on OPTABS_H.
8773         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8774         against the predicate.
8775
8776         PR target/5379
8777         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8778         for the address operand.
8779
8780 2002-01-22  Richard Henderson  <rth@redhat.com>
8781
8782         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8783
8784 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8785
8786         PR other/5450
8787         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8788         preprocessor flags.
8789
8790 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8791
8792         * config.gcc (x86_64-*-netbsd*): New target.
8793         * config/i386/netbsd64.h: New file.
8794
8795 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8796
8797         * regrename.c (kill_value): Fix typo.
8798
8799 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8800
8801         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8802
8803         * config/rs6000/rs6000.h: Same.
8804
8805         * function.c (instantiate_virtual_regs): Remove
8806         STARTING_FRAME_PHASE.
8807         (assign_stack_local_1): Same.
8808         Calculate frame phase.
8809
8810 2002-01-22  Nick Clifton  <nickc@redhat.com>
8811
8812         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8813         variable declaration to outer scope in order to simplify
8814         future extensions.
8815         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8816         arm_hard_regno_mode_ok.
8817         * config/arm/arm-protos.h: Add a prototype for
8818         arm_hard_regno_mode_ok.
8819         * config/arm/arm.c (soft_df_operand): Remove now redundant
8820         check for DImode values using IP_REGNUM.
8821         (nonimmediate_soft_df_operand): Remove now redundant check for
8822         DImode values using IP_REGNUM.
8823         (arm_hard_regno_mode_ok): New function. New check: make sure
8824         that DImode values are not stored in IP_REGNUM.
8825
8826         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8827         note with a USE.
8828         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8829
8830 2002-01-22  Jason Merrill  <jason@redhat.com>
8831
8832         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8833         consistency if this COMPOUND_STMT is scoped.
8834
8835 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8836
8837         * predict.c: Fix formatting.
8838         * print-tree.c: Likewise.
8839         * protoize.c: Likewise.
8840         * real.h: Likewise.
8841         * rtl.h: Likewise.
8842         * sbitmap.h: Likewise.
8843         * scan.c: Likewise.
8844         * sched-deps.c: Likewise.
8845         * sched-vis.c: Likewise.
8846         * sdbout.c: Likewise.
8847         * sibcall.c: Likewise.
8848         * ssa.c: Likewise.
8849         * ssa-ccp.c: Likewise.
8850         * ssa-dce.c: Likewise.
8851         * stmt.c: Likewise.
8852         * stor-layout.c: Likewise.
8853         * system.h: Likewise.
8854
8855 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8856
8857         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8858         if fits in bounds of base type.
8859
8860         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8861         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8862         (add_bound_info, default): If can't find a context, make a
8863         SAVE_EXPR.
8864         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8865
8866 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8867
8868         * c-typeck.c (parser_build_binary_op): If result from
8869         build_binary_op is ERROR_MARK just return error_mark_node without
8870         further processing.
8871
8872 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8873
8874         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8875         Split a.out-specific bits into...
8876         * config/netbsd-aout.h: ...this.
8877         * config/netbsd-elf.h: New file.
8878         * config/alpha/netbsd-elf.h: Remove.
8879         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8880         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8881         (STARTFILE_SPEC): Remove redundant definition.
8882         (ENDFILE_SPEC): Likewise.
8883         (LINK_SPEC): Likewise.
8884         (CPP_SPEC): Likewise.
8885         (ASM_SPEC): Likewise.
8886         (LIB_SPEC): Likewise.
8887         (SWITCH_TAKES_ARG): Likewise.
8888         (TARGET_MEM_FUNCTIONS): Likewise.
8889         (CPP_PREDEFINES): Redefine.
8890         (ASM_FINAL_SPEC): Remove redefinition.
8891         (ASM_COMMENT_START): Redefine.
8892         (FUNCTION_PROFILER): Define.
8893         (TARGET_VERSION): Redefine.
8894         Comment and formatting cleanup.
8895         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8896         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8897         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8898         big- or little-endian.
8899         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8900         * config.gcc (*-*-netbsd*): Add definitions common to all
8901         NetBSD configs.
8902         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8903         gnu_ld definitions.  Add netbsd-elf.h to and remove
8904         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8905         tmake_file, and don't lose previous tmake_file contents.
8906         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8907         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8908         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8909         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8910         (mipsel-*-netbsd*): Rename this to...
8911         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8912         mips/little.h to tm_file for mips*el-*.
8913         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8914         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8915         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8916
8917 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8918
8919         * pa-protos.h (reg_before_reload_operand): New function prototype.
8920         * pa.c (reg_before_reload_operand): New function implementation.
8921         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8922         contraints to "*m".
8923
8924 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8925
8926         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8927
8928 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8929
8930         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8931         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8932         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8933         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8934         (ENDFILE_SPEC): Undefine.
8935         (STARTFILE_SPEC): Redefine for PA.
8936
8937 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8938
8939         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8940
8941 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8942
8943         * config.gcc: Add entries to supported PowerPC --with-cpu
8944         types.
8945
8946 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8947
8948         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8949         true for 64-bit mode only SSE registers in 32-bit mode.
8950
8951 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8952
8953         * unwind-dw2.c: Fix formatting.
8954         * unwind-dw2-fde.c: Likewise.
8955         * unwind-dw2-fde.h: Likewise.
8956         * unwind-pe.h: Likewise.
8957         * varasm.c: Likewise.
8958         * varray.h: Likewise.
8959
8960 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
8961
8962         Remove workaround for register stack overwrite bug in mmix.
8963         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8964         support for TARGET_REG_STACK_FILL_BUG.
8965         * config/mmix/mmix.h: Remove member has_call_without_parameters.
8966         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8967         Delete.
8968         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8969         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8970         -mno-reg-stack-fill-bug-workaround.
8971         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8972         machine member has_call_without_parameters.
8973         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8974         -mreg-stack-fill-bug-workaround and
8975         -mno-reg-stack-fill-bug-workaround.
8976         (MMIX Options): Ditto.
8977
8978 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8979
8980         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8981         as appropriate.
8982         Remove redundant code.
8983
8984 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8985
8986         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8987         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8988         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8989         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8990         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8991         out target macro definitions and non-target-specific comments
8992         mostly taken from old versions of the manual.
8993
8994 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8995
8996         * config/h8300/h8300.h: Fix comment formatting.
8997         * config/ia64/aix.h: Likewise.
8998         * config/ia64/ia64-protos.h: Likewise.
8999         * config/ia64/ia64.c: Likewise.
9000         * config/ia64/ia64.h: Likewise.
9001         * config/ia64/ia64intrin.h: Likewise.
9002         * config/ia64/linux.h: Likewise.
9003         * config/ia64/unwind-aix.c: Likewise.
9004         * config/ia64/unwind-ia64.c: Likewise.
9005
9006 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9007
9008         * config/h8300/h8300.c: Revise comments about shift code.
9009
9010 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9011
9012         * config/h8300/h8300.c (function_arg): Update a comment.
9013
9014 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9015
9016         * config/h8300/h8300.md: Update the comments at the beginning
9017         of the file.
9018
9019 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9020
9021         * config/i370/i370.c: Fix comment formatting.
9022         * config/i370/i370.h: Likewise.
9023         * config/i370/i370.md: Likewise.
9024         * config/i370/linux.h: Likewise.
9025
9026 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9027
9028         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9029
9030         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9031         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9032         in incomplete case.
9033
9034 2002-01-20  Graham Stott  <grahams@redhat.com>
9035
9036         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9037
9038 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9039
9040         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9041
9042 2002-01-19  Tom Rix  <trix@redhat.com>
9043
9044         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9045
9046 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
9047
9048         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9049
9050         * function.c (assign_stack_local_1): Adjust x_frame_offset with
9051         STARTING_FRAME_PHASE.
9052         (STARTING_FRAME_PHASE): New.
9053         (instantiate_virtual_regs): Check saneness of
9054         STARTING_FRAME_PHASE.
9055
9056         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9057
9058 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9059
9060         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9061
9062 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9063
9064         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9065         be used for bootstrapping GCC 3.0.
9066
9067 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9068
9069         * config/h8300/h8300.md: Fix an insn length.
9070
9071 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9072
9073         * bitmap.h: Fix comment formatting.
9074         * combine.c: Likewise.
9075         * cppfiles.c: Likewise.
9076         * c-pragma.h: Likewise.
9077         * c-typeck.c: Likewise.
9078         * df.c: Likewise.
9079         * dwarf2out.c: Likewise.
9080         * function.c: Likewise.
9081         * gcc.c: Likewise.
9082         * genattrtab.c: Likewise.
9083         * gthr-win32.h: Likewise.
9084         * haifa-sched.c: Likewise.
9085         * predict.c: Likewise.
9086         * rtlanal.c: Likewise.
9087         * rtl.h: Likewise.
9088         * unwind-dw2-fde.h: Likewise.
9089         * unwind-pe.h: Likewise.
9090         * vmsdbgout.c: Likewise.
9091
9092 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9093
9094         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9095         if type_required and passed decl.
9096
9097 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9098
9099         * config.gcc (cpu_type): Include altivec.h in powerpc
9100         extra_headers.
9101         Same for darwin.
9102
9103         * config/rs6000/altivec.h: New.
9104
9105 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9106
9107         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9108         handling information.
9109         * doc/trouble.texi (Interoperation): Add libstdc++ information
9110         for AIX.
9111         (Misunderstandings): Add template instantiation and static template
9112         member information for AIX.
9113
9114 2002-01-17  Jason Merrill  <jason@redhat.com>
9115
9116         * dbxout.c (dbxout_type): Support const and volatile.
9117
9118         * except.c (add_partial_entry): Remove backwards compatibility code.
9119         (end_protect_partials): Likewise.
9120
9121 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9122
9123         * config/ia64/ia64.md (prologue_use): New.
9124         * config/ia64/ia64.c (ia64_expand_prologue): Use
9125         gen_prologue_use instead of gen_rtx_USE.
9126         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9127         as CODE_FOR_pred_rel_mutex.
9128         (ia64_sched_reorder2): Likewise.
9129
9130 2002-01-16  Eric Christopher  <echristo@redhat.com>
9131
9132         * config/mips/r3900.h: Reformat.
9133         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9134         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9135         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9136         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9137         * config/mips/t-elf: Remove mips3 multilib.
9138
9139 2002-01-16  H.J. Lu <hjl@gnu.org>
9140
9141         * config/mips/linux.h: Include "mips/abi64.h".
9142
9143 2002-01-16  H.J. Lu <hjl@gnu.org>
9144
9145         * config/mips/t-linux: New.
9146
9147         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9148
9149         * config/mips/linux.h: Don't include "gofast.h".
9150         (INIT_SUBTARGET_OPTABS): Removed.
9151
9152 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9153
9154         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9155         output_a_shift.
9156         * config/h8300/h8300.c: Likewise.
9157         * config/h8300/h8300.md: Likewise.
9158
9159 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9160
9161         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9162         spaces after an opcode name.
9163         (pushqi1_h8300hs): Likewise.
9164         (pushhi1_h8300hs): Likewise.
9165
9166 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9167
9168         * doc/extend.texi: Replace "option" with "attribute"
9169         appropriately.
9170
9171 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9172
9173         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9174         (and:DI () (const_int -8)).
9175         (split_small_symbolic_mem_operand): Split
9176         (mem (and:DI () (const_int -8)).
9177
9178 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9179
9180         PR target/5309:
9181         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9182         same way as TYPE_IMUL.
9183         (ultrasparc_sched_reorder): Likewise.
9184         * config/sparc/sparc.md (type): Add comment to update
9185         ultrasparc_sched_reorder when making changes.
9186
9187 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9188
9189         * doc/invoke.texi: Change the dump file name of block
9190         reordering pass from 28.bbro to 29.bbro.
9191         Mention -dk option.
9192
9193 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9194
9195         * i386.md (minsf splitter): Fix pasto.
9196
9197 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9198
9199         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9200         to frame pointer initialisation instruction.
9201         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9202         initialisation instruction.
9203         (soft_df_operand): Do not accept the IP register.
9204         (nonimmediate_soft_df_operand): Do not accept the IP register.
9205
9206 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9207
9208         PR target/5357:
9209         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9210         MASK_V8 being both set.
9211
9212 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9213
9214         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9215         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9216         config/s390/s390.md (call, call_value): Add GOT register to
9217         CALL_INSN_FUNCTION_USAGE where needed.
9218         (call_exp, call_value_exp): New.
9219
9220 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9221
9222         * config/arm/arm.c: General formatting tidy up.
9223
9224 2002-01-16  Graham Stott  <grahams@redhat.com>
9225
9226         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9227         cast and when casting an integer literal to "rtx" pointer.
9228         (expand_call): Likewise.
9229         * flow.c (try_pre_increment): Likewise.
9230         (find_use_as_address): Likewise.
9231         * integrate.c (expand_iline_function): Likewise.
9232         * regmove.c (try_auto_increment): Likewise.
9233
9234 2002-01-16  Graham Stott  <grahams@redhat.com>
9235
9236         * sched-rgn.c (passed): Use sbitmap_free.
9237         (header): Likewise.
9238         (inner): Likewise.
9239         (in_queue): Likewise.
9240         (in_stack): Likewise.
9241
9242 2002-01-15  Eric Christopher  <echristo@redhat.com>
9243
9244         * flow.c (propagate_one_insn): Change to use fatal_insn.
9245
9246 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9247
9248         * expmed.c (extract_fixed_bit_field): Remove unused code.
9249         * system.h: Poison SLOW_ZERO_EXTEND.
9250         * doc/tm.texi: Remove.
9251         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9252         * config/arm/arm.h: Likewise.
9253         * config/avr/avr.h: Likewise.
9254         * config/clipper/clipper.h: Likewise.
9255         * config/convex/convex.h: Likewise.
9256         * config/d30v/d30v.h: Likewise.
9257         * config/dsp16xx/dsp16xx.h: Likewise.
9258         * config/elxsi/elxsi.h: Likewise.
9259         * config/fr30/fr30.h: Likewise.
9260         * config/h8300/h8300.h: Likewise.
9261         * config/i370/i370.h: Likewise.
9262         * config/i386/i386.h: Likewise.
9263         * config/m68k/m68k.h: Likewise.
9264         * config/mips/mips.h: Likewise.
9265         * config/ns32k/ns32k.h: Likewise.
9266         * config/pdp11/pdp11.h: Likewise.
9267         * config/pj/pj.h: Likewise.
9268         * config/s390/s390.h: Likewise.
9269         * config/sh/sh.h: Likewise.
9270         * config/stormy16/stormy16.h: Likewise.
9271         * config/v850/v850.h: Likewise.
9272         * config/vax/vax.h: Likewise.
9273         * config/we32k/we32k.h: Likewise.
9274
9275 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9276
9277         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9278         (altivec_lvsl): Change constraint to b.
9279         (altivec_lvsr): Same.
9280         (altivec_lvebx): Same.
9281         (altivec_lvehx): Same.
9282         (altivec_lvewx): Same.
9283         (altivec_lvxl): Same.
9284         (altivec_lvx): Same.
9285         (altivec_stvx): Add parallel.
9286         (altivec_stvxl): Same.
9287         (altivec_stvehx): Same.
9288         (altivec_stvebx): Same.
9289         (altivec_stvebx): Same.
9290
9291 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9292
9293         * config.gcc: Change altivec.h to altivec-defs.h.
9294
9295         * config/rs6000/altivec.h: Delete.
9296
9297         * config/rs6000/altivec-defs.h: Add.
9298
9299 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9300
9301         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9302         and UMOD modes.
9303
9304         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9305         less than or equal to eight bytes.
9306
9307         * vax.md (andsi3): Remove constraints and change SET destination
9308         operand type to nonimmediate_operand.
9309         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9310         when it is a CONST_INT.
9311
9312 2002-01-15  Jason Merrill  <jason@redhat.com>
9313
9314         * c-common.def (FILE_STMT): New code.
9315         * c-common.c (statement_code_p): It's a statement.
9316         * c-common.h (stmt_tree_s): Add x_last_filename.
9317         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9318         (last_expr_filename): New macro.
9319         * c-semantics.c (begin_stmt_tree): Initialize it.
9320         (add_stmt): If the filename changed, also insert a
9321         FILE_STMT.
9322         (expand_stmt): Handle seeing one.
9323
9324 2002-01-15  Eric Christopher  <echristo@redhat.com>
9325
9326         * flow.c (propagate_one_insn): Add error message and print out
9327         insn for debugging.
9328
9329 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9330
9331         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9332         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9333         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9334         TRAMPOLINE_ALIGNMENT.
9335         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9336         to be in bits.
9337         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9338         PCC_BITFIELD_TYPE_MATTERS.
9339         * config/interix.h (STDC_VALUE): Remove.  Use
9340         STDC_0_IN_SYSTEM_HEADERS.
9341         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9342         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9343         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9344
9345 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9346
9347         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9348         not work on this platform currently.
9349
9350 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9351
9352         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9353         readonly_warning in _().
9354
9355 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9356
9357         * gcc.c (delete_if_ordinary): Backout previous change.
9358
9359 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9360
9361         * config/h8300/h8300.c (print_operand): Remove support for
9362         unused operand characters.
9363
9364         * read-rtl.c: Fix formatting.
9365         * real.c: Likewise.
9366         * recog.c: Likewise.
9367         * regclass.c: Likewise.
9368         * regmove.c: Likewise.
9369         * reg-stack.c: Likewise.
9370         * reload1.c: Likewise.
9371         * rtlanal.c: Likewise.
9372
9373 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9374
9375         * config/i386/i386.c: Fix formatting.
9376
9377 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9378
9379         * c-typeck.c (process_init_element): Don't save_expr
9380         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9381
9382 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9383
9384         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9385         emit optional traceback table if optimize_size or TARGET_ELF.
9386         * config/rs6000/rs6000.md (prefetch): New.
9387
9388 2002-01-15  Andreas Jaeger  <aj@suse.de>
9389
9390         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9391
9392 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9393
9394         * mips-tfile.c: Fix formatting.
9395
9396 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9397
9398         * unroll.c (final_reg_note_copy): Fix previous commit.
9399
9400 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9401
9402         * config/h8300/h8300-protos.h: Remove the prototype for
9403         eq_operator.
9404         * config/h8300/h8300.c (eq_operator): Remove.
9405
9406 2002-01-14  Richard Henderson  <rth@redhat.com>
9407
9408         * config/i386/i386.md (prefetch): Tidy.
9409         (prefetch_3dnow): Fix locality operand.
9410
9411 2002-01-14  Richard Henderson  <rth@redhat.com>
9412
9413         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9414         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9415
9416 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9417
9418         * reload1.c (reload_combine): Pass reg_sum replacement through
9419         copy_rtx in loop performing multiple changes.
9420
9421 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9422
9423         * except.c (remove_unreachable_regions): New.
9424         (free_eh_status): Clear exception_handler_labels.
9425         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9426         (find_exception_handler_labels): Don't add the same label more than
9427         once.
9428         (remove_exception_handler_label): Don't die if
9429         find_exception_handler_labels hasn't been called for the current
9430         function yet.
9431
9432 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9433
9434         * toplev.c (rest_of_compilation): Rebuild jump labels after
9435         gcse.
9436
9437 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9438
9439         * doc/extend.texi: Move documentation of X86 built-in functions
9440         here.
9441         * doc/invoke.texi: From here.
9442         * doc/sourcebuild.texi: Document location of documentation for
9443         machine built-in functions.
9444
9445 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9446
9447         * cppfiles.c (TEST_THRESHOLD): New macro.
9448         (SHOULD_MMAP): Ditto.
9449         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9450         be used.
9451
9452 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9453
9454         * unroll.c (final_reg_note_copy): Properly handle
9455         REG_LABEL
9456         (unroll_loops): Fix LOOP_CONDITION heuristics.
9457
9458 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9459
9460         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9461         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9462
9463 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9464
9465         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9466         threaded loop.
9467
9468 2002-01-14  Tom Rix  <trix@redhat.com>
9469
9470         * config/rs6000/rs6000.md: Fix typo with sradi.
9471
9472 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9473
9474         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9475         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9476         (clrstrdi, clrstrsi): Adapt callers.
9477
9478         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9479
9480         (movti splitter): Never use register 0 as base register.
9481
9482 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9483
9484         * combine.c (simplify_shift_const): Always generate new rtx
9485         for shift expression instead of reusing given expression.
9486
9487 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9488
9489         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9490         alpha_legitimize_address unless mode is Pmode.
9491
9492 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9493
9494         * doc/md.texi (Modifiers): Document the '*' constraint for the
9495         user.
9496
9497         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9498         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9499         for xstormy16 too.
9500
9501 2002-01-13  Richard Henderson  <rth@redhat.com>
9502
9503         * reload.c (find_reloads): Use a hard reg destination as reload reg
9504         for an input reload of the source.
9505
9506 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9507
9508         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9509         more generic.
9510
9511 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9512
9513         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9514         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9515
9516         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9517
9518 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9519
9520         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9521
9522 2002-01-12  Tom Rix  <trix@redhat.com>
9523
9524         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9525         TARGET_POWERPC64.
9526
9527 2002-01-12  Richard Henderson  <rth@redhat.com>
9528
9529         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9530
9531         * doc/invoke.texi: Update Alpha options.
9532
9533         * doc/invoke.texi: Update i386 built-in function lists.
9534
9535 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9536
9537         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9538         referencing outside.
9539
9540 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9541
9542         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9543         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9544         offsets, and change line folding.
9545         * optabs.c (expand_binop): Remove warnings.
9546         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9547
9548 2002-01-12  Graham Stott <grahams@redhat.com>
9549
9550         * attribs.c (handle_deprecated_attribute): constify WHAT.
9551         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9552         dangling else warning and constify WHAT.
9553         * except.h (struct function, struct inline_remap): Move
9554         struct tag forward defs before all prototypes.
9555         (duplicate_eh_regions): Whitespace.
9556
9557 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9558
9559         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9560         MODE_BASE_REG_CLASS.
9561         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9562
9563 2002-01-12  Richard Henderson  <rth@redhat.com>
9564
9565         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9566         (ix86_expand_vector_move): New.
9567         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9568         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9569         Remove old prefetch builtins.  Special case the logicals removed above.
9570         (ix86_expand_builtin): Likewise.
9571         (safe_vector_operand): Use V4SFmode, not TImode.
9572         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9573         (ix86_expand_timode_binop_builtin): New.
9574         * config/i386/i386-protos.h: Update.
9575         * config/i386/i386.h (enum ix86_builtins): Update.
9576         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9577         Use ix86_expand_vector_move in vector move expanders.
9578         (movti_internal, movti_rex64): Add xorps alternative.
9579         (sse_clrv4sf): Rename and adjust from sse_clrti.
9580         (prefetch): Don't work so hard.
9581         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9582         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9583         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9584
9585 2002-01-11  Richard Henderson  <rth@redhat.com>
9586
9587         * config/i386/mmintrin.h: New file.
9588         * config/i386/xmmintrin.h: New file.
9589         * config.gcc (i?86-*-*): Add extra_headers.
9590         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9591         truncation codes.
9592         (simplify_binary_operation): Handle saturating arithmetic codes.
9593         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9594         not the lowpart subreg.
9595         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9596         on error.
9597         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9598
9599 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9600
9601         * conflict.c (conflict_graph_compute): Free regsets when finished.
9602         * ssa.c (compute_coalesced_reg_partition): Likewise.
9603
9604 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9605
9606         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9607         every where we allocate a register.
9608
9609 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9610
9611         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9612         * lcm.c (compute_earliest, compute_farthest): Likewise.
9613
9614 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9615
9616         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9617
9618 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9619
9620         * doc/rtl.texi (Insns): Fix 2 typos.
9621
9622 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9623
9624         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9625         options.  Use @table @gcctabopt for MMIX options.  Add index
9626         entries for MMIX options.  Start new paragraph with first
9627         heading of the machine-dependent options.
9628
9629 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9630
9631         PR other/5299
9632         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9633         * combine.c (force_to_mode): Same.
9634         * reload1.c (clear_reload_reg_in_use): Same.
9635
9636 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9637
9638         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9639         and 'subtargets'.
9640
9641 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9642             Brad Lucier <lucier@math.purdue.edu>
9643
9644         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9645         mcpu.
9646
9647 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9648
9649         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9650         Protect with IN_LIBGCC.
9651         (LINK_EH_SPEC): Add required trailing space.
9652
9653 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9654
9655         * c-tree.h: Move function declarations so that they are listed
9656         under the filename which contains them.
9657         (check_identifier, finish_decl_top_level,
9658         lookup_name_current_level_global, shadow_record_fields): Remove.
9659
9660 2002-01-11  Andreas Jaeger  <aj@suse.de>
9661
9662         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9663         march.
9664
9665 2002-01-10  Richard Henderson  <rth@redhat.com>
9666
9667         * config/alpha/alpha.c (print_operand): Add 'J'.
9668         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9669         new operand with the sequence number for the lituse.  When splitting
9670         the insns, use gen_movdi_er_high_g and generate a sequence number.
9671         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9672
9673 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9674
9675         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9676         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9677         stvxl.
9678         (altivec_expand_builtin): Same.
9679         (altivec_expand_stv_builtin): New.
9680
9681         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9682
9683         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9684         ("altivec_lvehx"): New.
9685         ("altivec_lvewx"): New.
9686         ("altivec_lvxl"): New.
9687         ("altivec_lvx"): New.
9688         ("altivec_stvx"): New.
9689         ("altivec_stvebx"): New.
9690         ("altivec_stvehx"): New.
9691         ("altivec_stvewx"): New.
9692         ("altivec_stvxl"): New.
9693
9694 2002-01-10  Richard Henderson  <rth@redhat.com>
9695
9696         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9697         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9698         care not to delete instructions twice.
9699
9700 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9701
9702         * toplev.c: Don't declare environ (it's not used anywhere).
9703         * configure.in: Don't check for declaration of environ.
9704         * config/i386/xm-mingw32.h: Don't #define environ.
9705         * config.in, configure: Regenerate.
9706
9707 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9708
9709         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9710         * configure: Regenerate.
9711
9712         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9713         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9714         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9715         alpha/xm-vms.h.
9716         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9717         LIMITS_H_TEST here, not in m68k/x-next.
9718         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9719         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9720
9721         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9722         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9723         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9724
9725         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9726         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9727         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9728         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9729         replacement of quadlib.asm with quadlib.c.
9730
9731         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9732         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9733         config/rs6000/xm-beos.h: Delete file.
9734
9735         * config.gcc: Update to match above changes.
9736
9737 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9738
9739         * config/h8300/h8300.h: Fix comment typos.
9740         * config/h8300/h8300.md: Likewise.
9741         * config/h8300/lib1funcs.asm: Likewise.
9742
9743 2002-01-10  Dale Johannesen  <dalej@apple.com>
9744
9745         PR optimization/5269
9746         * unroll.c (precondition_loop_p): Make *increment be the correct
9747         sign when n_iterations known, to avoid confusing caller.
9748
9749 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9750
9751         * doc/extend.texi (deprecated): Fix a typo.
9752
9753 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9754
9755         * basic-block.h (update_br_prob_note): Declare.
9756         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9757         (try_forward_edges): Care negative frequencies and update note.
9758         (outgoing_edges_match): Tweek conditional merging heuristics.
9759         (try_crossjump_to_edge): use update_br_prob_note.
9760         * cfglayout.c (fixup_reorder_chain): Likewise.
9761         * cfrtl.c (update_br_prob_note): New.
9762         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9763
9764         * i386.c (ix86_decompose_address): Return -1 if address contains
9765         shift.
9766         (legitimate_address_p): Require ix86_decompose_address to return 1.
9767
9768         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9769         (cprop_insn): Likewise.
9770
9771 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9772
9773         * toplev.c: Fix formatting.
9774         * tree.c: Likewise.
9775         * tree-dump.c: Likewise.
9776         * unroll.c: Likewise.
9777         * unwind-dw2.c: Likewise.
9778         * unwind-dw2-fde.c: Likewise.
9779         * unwind-dw2-fde-glibc.c: Likewise.
9780         * unwind-sjlj.c: Likewise.
9781
9782 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9783
9784         * doc/invoke.texi: Document PDP-11 options.
9785
9786 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9787
9788         * config/h8300/h8300.h: Fix formatting.
9789
9790 2002-01-10  Ira Ruben   <ira@apple.com>
9791
9792         Add __attribute__ ((deprecated)).
9793         * extend.texi: Document __attribute__ ((deprecated)).
9794         * invoke.texi: Document -Wno-deprecated-declarations.
9795         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9796         * testsuite/gcc.dg/deprecated.c: New C test.
9797         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9798         (c_common_attribute_table): Add "deprecated" entry.
9799         (handle_deprecated_attribute): New function.
9800         * c-decl.c (deprecated_states): New enum.
9801         deprecated_state: State of "deprecated" handling.
9802         (start_decl): Set deprecated_state based on attributes.
9803         (grokdeclarator): Test for deprecated uses, propagate attribute.
9804         * c-typeck.c (build_component_ref): Test for deprecated fields.
9805         (build_external_ref): Test for deprecated primaries.
9806         * diagnostic.c (warn_deprecated_use) New function to issue
9807         warnings about __attribute__ ((depricated)) references.
9808         * flags.h (warn_deprecated_decl): Extern declared for
9809         -W[no-]deprecated-declarations option.
9810         * print-tree.c (print_node): Show deprecated flag status.
9811         * toplev.c (warn_deprecated_decl): Defined.
9812         (W_options): Added "deprecated-declaration".
9813         * toplev.h (warn_deprecated_use): Extern declared.
9814         * tree.h (struct tree_common): Define deprecated_flag.
9815         (TREE_DEPRECATED): New macro to access flag.
9816         * cp/call.c (build_call): Test for deprecated calls.
9817         * cp/class.c (add_implicitly_declared_members): Set global
9818         flag to tell grokdeclarator to not issue deprecated warnings.
9819         * cp/cp-tree.h: Add extern for adding_implicit_members.
9820         * cp/decl.c (deprecated_states): New enum.
9821         (start_decl): Set deprecated_state based on attributes.
9822         (grokdeclarator): Test for deprecated uses, propagate attribute.
9823         * cp/lex.c (do_identifier): Test for deprecated primaries.
9824         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9825
9826 2002-01-10  Ira Ruben   <ira@apple.com>
9827
9828         Fix to assign attributes to inline member functions.
9829         * cp/decl.c (start_method): Handle attrlist.
9830
9831 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9832
9833         * combine.c (expand_field_assignment): Use subreg_lsb().
9834
9835 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9836
9837         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9838         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9839         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9840         Recurse for any operand of AND as long as constant is non-zero.
9841
9842 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9843
9844         * config/h8300/h8300.md: Remove constraints from expanders.
9845
9846 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9847
9848         * varasm.c: Fix formatting.
9849         * varray.c: Likewise.
9850         * vmsdbgout.c: Likewise.
9851         * xcoffout.c: Likewise.
9852
9853 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9854
9855         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9856         update edge probabilities to match.
9857
9858 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9859
9860         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9861         dependencies.
9862         * doc/languages.texi, doc/sourcebuild.texi: New files.
9863         * doc/configfiles.texi: Make a subsubsection.  Update.
9864         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9865         instructions for building GCC.
9866         * doc/makefile.texi: Make a subsection.
9867         * doc/gccint.texi: Update.
9868
9869 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9870
9871         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9872
9873 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9874
9875         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9876
9877 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9878
9879         * optabs.c (expand_fix): Look for wider integer modes first.
9880
9881         * i386.md (mov?f): Avoid the fake const double trick for medium
9882         memory model.
9883         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9884         (fop_df_4): Disable for SSE compilation.
9885
9886 2002-01-10  Graham Stott  <grahams@redhat.com>
9887
9888         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9889         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9890
9891 2002-01-10  Richard Henderson  <rth@redhat.com>
9892
9893         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9894
9895 2002-01-10  Richard Henderson  <rth@redhat.com>
9896
9897         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9898         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9899
9900 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9901
9902         * combine.c (can_combine_p): Fix a comment typo.
9903
9904 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9905
9906         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9907         empty list correctly.  Change loop index $t to $f for
9908         consistency with rest of Makefile.
9909
9910 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9911
9912         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9913         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9914
9915         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9916         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9917         (altivec_init_builtins): Same.
9918         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9919         (altivec_expand_binop_builtin): Same.
9920         (altivec_expand_ternop_builtin): Same.
9921         (bdesc_dst): New.
9922
9923         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9924         ("altivec_vctuxs"): Fix typo.
9925         ("altivec_vnmsubfp"): Same.
9926         ("altivec_dssall"): New.
9927         ("altivec_mfvscr"): New.
9928         ("altivec_dss"): New.
9929         ("altivec_lvsl"): New.
9930         ("altivec_lvsr"): New.
9931         ("altivec_dstt"): New.
9932         ("altivec_dstst"): New.
9933         ("altivec_dststt"): New.
9934         ("altivec_dst"): New.
9935
9936         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9937         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9938
9939 2002-01-09  Richard Henderson  <rth@redhat.com>
9940
9941         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9942
9943 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9944
9945         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9946         function.
9947         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9948         prototype.
9949         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9950
9951 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9952
9953         * read-rtl.c: Fix formatting.
9954         * real.c: Likewise.
9955         * regclass.c: Likewise.
9956         * regrename.c: Likewise.
9957         * reg-stack.c: Likewise.
9958         * reload1.c: Likewise.
9959         * reload.c: Likewise.
9960         * rtl.c: Likewise.
9961
9962 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9963
9964         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9965         to extract items in the expr_list chain.
9966
9967 2002-01-09  Richard Henderson  <rth@redhat.com>
9968
9969         * config/vax/vax.c (vax_rtx_cost): Never abort.
9970
9971         * config/vax/vax.h (REAL_ARITHMETIC): Define.
9972
9973 2002-01-09  Jan Hubicka  <jh@suse.cz>
9974
9975         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9976
9977 2002-01-09  Richard Henderson  <rth@redhat.com>
9978
9979         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9980         Unify code from various alternatives.
9981
9982 2002-01-09  Richard Henderson  <rth@redhat.com>
9983
9984         * regrename.c (copy_value): Ignore the copy if the source register
9985         is present in the value chain with a narrower mode.
9986
9987 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9988
9989         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9990         for the c4x target. Also improve layout.
9991
9992 2002-01-09  Richard Henderson  <rth@redhat.com>
9993
9994         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9995         * config/m32r/m32r.md (and ior xor splitters): Swap operands
9996         to match insn patterns.
9997
9998 2002-01-09  Richard Henderson  <rth@redhat.com>
9999
10000         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10001         (copyprop_hardreg_forward_1): Likewise.
10002
10003 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10004
10005         * pa.md (decrement_and_branch_until_zero): Change predicate for
10006         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10007
10008 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10009
10010         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10011         gets undefined. For Darwin.
10012
10013 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10014
10015         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10016
10017 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10018
10019         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10020
10021 2002-01-08  Richard Henderson  <rth@redhat.com>
10022
10023         * regrename.c (copy_value): Ignore overlapping copies.
10024
10025 2002-01-08  Richard Henderson  <rth@redhat.com>
10026
10027         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10028         as needed to avoid shared structure.
10029
10030 2002-01-08  Kazu Hirata  <kazu@hxi.com>
10031
10032         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10033         H8/300H and H8/S.
10034
10035 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10036
10037         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10038         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10039         documentation of obsolete macros.
10040         * system.h: Poison these macros.
10041         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10042         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10043         config/c4x/c4x.h, config/clipper/clipper.h,
10044         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10045         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10046         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10047         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10048         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10049         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10050         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10051         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10052         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10053         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10054         config/sparc/sparc.h, config/stormy16/stormy16.h,
10055         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10056         definitions and commented out definitions of obsolete macros.
10057         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10058         of MAX_INT_TYPE_SIZE.
10059
10060 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10061
10062         * config/s390/s390.c (s390_preferred_reload_class): Never
10063         return ADDR_REGS if it isn't a subset of the given class.
10064         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10065         FP_REGS, but all superclasses as well.
10066
10067         * config/s390/s390.c (s390_function_profiler): Fix thinko.
10068
10069         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10070         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10071         must not be a const_int.
10072
10073 2002-01-08  Richard Henderson  <rth@redhat.com>
10074
10075         * Makefile.in (toplev.o): Depend on options.h.
10076         (gcc.o): Depend on specs.h.
10077
10078 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
10079
10080         * expr.c (store_expr): Convert VOIDmode constants back to target's
10081         mode.
10082
10083 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10084
10085         * doc/invoke.texi: Markup gcc as @command.  Refer to
10086         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10087         of http://gcc.gnu.org/thanks.html.
10088
10089 2002-01-08  Dale Johannesen  <dalej@apple.com>
10090
10091         * config/rs6000/rs6000.md: Add missing int register
10092         target case to movdf_low.
10093
10094 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10095
10096         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10097         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10098         (cppinit.o): Depend on except.h.
10099         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10100         s-specs): New rules.
10101
10102         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10103         Don't create specs.h/options.h/gencheck.h here.  Remove
10104         unnecessary variable settings from last argument of AC_OUTPUT.
10105         * config.in, configure: Regenerate.
10106         * intl.c: Hardcode package name as "gcc".
10107
10108         * cppinit.c: Include except.h.
10109         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10110         appropriate.
10111         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10112         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10113         (!)USING_SJLJ_EXCEPTIONS.
10114         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10115
10116 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10117
10118         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10119         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10120         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10121         documentation of obsolete macros.
10122         * system.h: Poison these macros.
10123         * config/d30v/d30v.h, config/ns32k/encore.h,
10124         config/stormy16/stormy16.h: Remove definitions and commented out
10125         definitions of obsolete macros.
10126
10127 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10128
10129         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10130         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10131         warnings.
10132
10133 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10134
10135         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10136         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10137         to insn adjusting stack/frame pointer.
10138         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10139         accept operands that cause the insn to be non-splittable.
10140
10141 2002-01-08  Graham Stott  <grahams@redhat.com>
10142
10143         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10144         (C_TYPE_FIELDS_VOLATILE): Likewise.
10145         (C_TYPE_BEING_DEFINED): Likewise.
10146         (C_IS_RESERVED_WORD): Likewise.
10147         (C_TYPE_VARIABLE_SIZE): Likewise.
10148         (C_DECL_VARIABLE_SIZE): Likewise.
10149         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10150         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10151         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10152         parenthesis.
10153         (C_DECL_ANTICIPATED): Likewise.
10154         (c_build_type_variant): Add parenthesis.
10155
10156 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10157
10158         * gcc.c (option_map): Remove --version.
10159         (process_command): Handle -fversion following the GNU Coding
10160         Standards.  Partially addresses PR other/704.
10161
10162 2002-01-08  Graham Stott  <grahams@redhat.com>
10163
10164         * combine.c (combine_instructions): Fix typo.
10165
10166 2002-01-08  Graham Stott  <grahams@redhat.com>
10167
10168         * debug.h: Use "tree" and "rtx" throughout.
10169
10170         * debug.c: Likewise.
10171
10172 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10173
10174         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10175         constant pool, use the pool's version of the symbol instead.
10176
10177 2002-01-07  Richard Henderson  <rth@redhat.com>
10178
10179         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10180         the original register was copied in a mode with a fewer number of
10181         hard registers than the desired mode.
10182         (copyprop_hardreg_forward_1): Likewise.
10183         (debug_value_data): Fix loop test.
10184         * toplev.c (parse_options_and_default_flags): Reenable
10185         -fcprop-registers at -O1.
10186
10187 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10188
10189         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10190         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10191
10192         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10193         predicates.
10194
10195         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10196
10197 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10198
10199         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10200         (pa_output_function_prologue): Output local label at the beginning of
10201         the prologue when profiling.
10202         (hppa_profile_hook): Use the local label rather than the function label.
10203         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10204
10205 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10206
10207         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10208         (altivec_expand_unop_builtin): Fix thinko.
10209         (altivec_expand_binop_builtin): Same.
10210         (altivec_expand_ternop_builtin): Same.
10211         (altivec_expand_builtin): Same.
10212
10213 2002-01-07  Richard Henderson  <rth@redhat.com>
10214
10215         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10216
10217 2002-01-07  Jason Merrill  <jason@redhat.com>
10218
10219         * unwind-dw2.c (execute_cfa_program): Use < again.
10220
10221 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10222
10223         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10224
10225 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10226
10227         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10228         Don't allow -1 - x -> ~x simplifications in the first pass.
10229
10230 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10231
10232         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10233         arguments.
10234         (altivec_expand_binop_builtin): Same.
10235         (altivec_expand_unop_builtin): Same.
10236         (print_operand): Fix typo.
10237         (bdesc_1arg): Add vupk* variants.
10238
10239         * rs6000.h (rs6000_builtins): Add vupk* enums.
10240
10241         * rs6000.md: Add altivec_vupk* variants.
10242
10243 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10244
10245         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10246         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10247         and last update dates.
10248
10249 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10250
10251         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10252
10253 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10254
10255         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10256         * config/avr/avr.h (CPP_SPEC): Likewise.
10257         (LINK_SPEC): Likewise.
10258         (CRT_BINUTILS_SPECS): Likewise.
10259         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10260         * doc/invoke.texi (AVR Options): Document them.
10261
10262 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10263
10264         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10265         LABEL_NUSES.
10266
10267 2002-01-07  Graham Stott  <grahams@redhat.com>
10268
10269         * config/i386/i386.h: Update copyright date.
10270         (HALF_PIC_PTR): Add parenthesis.
10271         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10272         (CONSTANT_ALIGNMENT): Add parenthesis.
10273         (DATA_ALIGNMENT): Likewise.
10274         (LOCAL_ALIGNMENT): Likewise.
10275         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10276         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10277         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10278         (HARD_REGNO_NREGS): Add paranethesis.
10279         (VALID_SSE_REG_MODE): Whitespace.
10280         (VALID_MMX_REG_MODE): Whitespace.
10281         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10282         (ix86_hard_regno_mode_ok): Add parenthesis.
10283         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10284         (RETURN_IN_MEMORY): Whitespace.
10285         (N_REG_CLASSES): Add parenthesis.
10286         (INTEGER_CLASS_P): Add parenthesis and wrap.
10287         (FLOAT_CLASS_P): Likewise.
10288         (SSE_CLASS_P): Likewise.
10289         (MMX_CLASS_P): Likewise.
10290         (MAYBE_INTEGER_CLASS_P): Likewise.
10291         (MAYBE_FLOAT_CLASS_P): Likewise.
10292         (MAYBE_SSE_CLASS_P): Likewise.
10293         (MAYBE_MMX_CLASS_P): Likewise.
10294         (Q_CLASS_P): Likewise.
10295         (GENERAL_REGNO_P): Uppercase macro parameter.
10296         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10297         (FP_REGNO_P): Likewise.
10298         (ANY_FP_REGNO_P): Uppercase macro parameter.
10299         (SSE_REGNO_P): Likewise.
10300         (SSE_REGNO): Likewise.
10301         (SSE_REG_P): Likewise.
10302         (SSE_FLOAT_MODE_P): Likewise.
10303         (MMX_REGNO_P): Likewise.
10304         (MMX_REG_P):Likewise.
10305         (STACK_REG_P): Likewise.
10306         (NON_STACK_REG_P): Likewise.
10307         (STACK_TOP_P): Likewise.
10308         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10309         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10310         (SECONDARY_MEMORY_NEEDED): Likewise.
10311         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10312         (MD_ASM_CLOBBERS): Whitespace and wrap.
10313         (MUST_PASS_IN_STACK): Whitespace and wrap.
10314         (RETURN_POPS_ARGS): Add parenthesis.
10315         (INIT_CUMULATIVE_ARGS): Likewise.
10316         (FUNCTION_ARG): Likewise.
10317         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10318         (SETUP_INCOMING_VARARGS): Likewise.
10319         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10320         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10321         parenthsis.
10322         (EXPAND_BUILTIN_VA_ARG): Likewise.
10323         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10324         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10325         (INITIAL_ELIMINATION_OFFSET): Likewise.
10326         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10327         (REGNO_OK_FOR_BASE_P): Likewise.
10328         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10329         (REGNO_OK_FOR_DIREG_P): Likewise.
10330         (REG_OK_FOR_INDEX_P): Whitespace.
10331         (REG_OK_FOR_BASE_P): Whitespace.
10332         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10333         parenthesis.
10334         (FIND_BASE_TERM): Fix typo.
10335         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10336         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10337         (SYMBOLIC_CONST; Whitespace.
10338         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10339         (ENCODE_SECTION_INFO): Whitespace.
10340         (FINALIZE_PIC): Remove do { ... } while (0).
10341         (PROMOTE_MODE): Wrap in do { ... } while (0).
10342         (CONST_COSTS): Whitespace.
10343         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10344         (REGISTER_MOVE_COST): Add parenthesis.
10345         (MEMORY_MOVE_COST): Likewise.
10346         (EXTRA_CC_MODES): Whitespace.
10347         (SELECT_CC_MODE): Add parenthesis and whitespace.
10348         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10349         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10350         (ASM_OUTPUT_LABEL): Add paramethesis.
10351         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10352         (ASM_OUTPUT_REG_POP): Likewise.
10353         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10354         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10355
10356         * config/i386/i386.c: Update copyright.
10357         (CHECK_STACK_LIMIT): Add parenthesis.
10358         (AT_BP): Uppercase macro parameter.
10359         (x86_64_int_parameter_registers): Constify.
10360         (x86_64_int_return_registers): Likewise.
10361         (ix86_compare_op0): Use rtx.
10362         (construct_container): Constify INTREG parameter.
10363         (function_arg): Use rtx.
10364
10365         * diagnostic.h: Update copyright date.
10366         (output_buffer_state): Add parenthesis.
10367         (output_buffer_format_args): Likewise.
10368
10369         * combine.c (combine_instructions): Replace XEXP (links, 0)
10370         with link.
10371
10372 2002-01-06  H.J. Lu <hjl@gnu.org>
10373
10374         * cfgcleanup.c (thread_jump): Fix 2 typos.
10375
10376 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10377
10378         * config.gcc: Add support for --enable-altivec.
10379
10380 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10381
10382         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10383
10384 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10385
10386         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10387         __objc_class_name_*.
10388
10389 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10390
10391         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10392
10393 2002-01-06  Richard Henderson  <rth@redhat.com>
10394
10395         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10396         nop them out.  Increment label reference count for REG_LABEL.
10397         (fill_slots_from_thread): Frob label reference count around
10398         delete_related_insns.
10399
10400 2002-01-05  Richard Henderson  <rth@redhat.com>
10401
10402         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10403         jump threading.
10404
10405 2002-01-05  Richard Henderson  <rth@redhat.com>
10406
10407         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10408         * integrate.c (output_inline_function): Likewise.
10409         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10410         to remove_unnecessary_notes after emitting abstract instance.
10411         Force an emitted nested function to have its parent emited as well.
10412         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10413         for null.
10414         (rtl_for_decl_location): Do not look at reload data structures
10415         before reload has run.
10416
10417 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10418
10419         * cse.c: Fix formatting.
10420         * dwarf2asm.c: Likewise.
10421         * dwarf2out.c: Likewise.
10422         * explow.c: Likewise.
10423         * expmed.c: Likewise.
10424         * function.c: Likewise.
10425         * gcov.c: Likewise.
10426         * gencheck.c: Likewise.
10427         * genrecog.c: Likewise.
10428         * ggc-common.c: Likewise.
10429         * ggc-page.c: Likewise.
10430         * global.c: Likewise.
10431
10432 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10433
10434         * combine.c: Fix formatting.
10435
10436 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10437
10438         PR middle-end/1557
10439         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10440
10441 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10442
10443         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10444         as 1 for __powerpc64__ as well.
10445
10446         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10447
10448         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10449         return it.
10450
10451 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10452
10453         * lcm.c: Revert change, due to performance regression it causes on
10454         SPEC because it's slightly more conservative (sigh, I hate
10455         edge-based LCM).
10456
10457 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10458
10459         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10460
10461 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10462
10463         * doc/cppinternals.texi: Update.
10464
10465 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10466
10467         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10468         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10469         negatives.
10470         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10471         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10472         kludge for pre-october-14th mmix versions to handle new-found bug
10473         with PUSHJ/PUSHGO and the register stack.
10474         * config/mmix/mmix.h (struct machine_function): Rename member
10475         has_call_value_without_parameters to has_call_without_parameters.
10476         All referers changed.
10477         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10478         TARGET_MASK_BRANCH_PREDICT): New macros.
10479         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10480         -mno-reg-stack-fill-bug-workaround.
10481         * config/mmix/mmix.md ("call"): Set struct machine member
10482         has_call_without_parameters.
10483
10484 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10485
10486         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10487
10488 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10489
10490         * cfgcleanup.c: Include tm_p.h
10491         (mark_effect): Fix handling of hard register; fix handling of SET
10492
10493 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10494
10495         * config/h8300/h8300.md (anonymous patterns): Check that
10496         operands are registers before using REGNO on them.
10497
10498 2002-01-03  Roland McGrath  <roland@frob.com>
10499
10500         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10501
10502 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10503
10504         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10505         * c-common.h (genrtl_expr_stmt_value): Likewise.
10506         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10507         (expand_expr_stmt_value): Add maybe_last argument.
10508         Don't warn about statement with no effect if it is the last statement
10509         in expression statement.
10510         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10511         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10512         expand_expr_stmt_value.
10513         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10514         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10515         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10516         as maybe_last to expand_expr_stmt_value.
10517
10518 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10519
10520         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10521         be passed in, do not build it.
10522         (c_begin_if_stmt): New function.
10523         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10524         * c-common.h (c_expand_start_cond): Update prototype.
10525         (c_begin_if_stmt): Prototype new function.
10526         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10527         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10528         c_begin_while_stmt and c_finish_while_stmt_cond.
10529
10530 2002-01-04  William Cohen  <wcohen@redhat.com>
10531
10532         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10533         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10534         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10535         * config/pa/som.h (ASM_FILE_START): Likewise.
10536
10537 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10538
10539         * lcm.c: Include df.h.
10540         Add available_transfer_function prototype.
10541         (compute_available): Rework to use iterative dataflow framework.
10542         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10543         with bb_info in df.h
10544         (available_transfer_function): New function.
10545
10546         * Makefile.in (lcm.o): add df.h to dependencies.
10547
10548 2002-01-04  Richard Henderson  <rth@redhat.com>
10549
10550         * config/alpha/alpha.c (some_operand): Accept HIGH.
10551         (input_operand): Likewise; accept simple references to globals.
10552         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10553         (alpha_const_double_ok_for_letter_p): Likewise.
10554         (alpha_extra_constraint): Likewise.
10555         (alpha_preferred_reload_class): Likewise.  Do not force
10556         symbolic constants to memory.
10557         (alpha_legitimate_address_p): Accept simple references
10558         to small_symbolic_operand.
10559         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10560         called when no_new_pseudos.  Emit simple symbolic references.
10561         Split integers into low, high, and rest.
10562         (alpha_expand_mov): Use alpha_legitimize_address.
10563         (some_small_symbolic_mem_operand): New.
10564         (split_small_symbolic_mem_operand): New.
10565         * config/alpha/alpha-protos.h: Update.
10566         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10567         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10568         (EXTRA_CONSTRAINT): Likewise.
10569         (PREFERRED_RELOAD_CLASS): Likewise.
10570         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10571         (PREDICATE_CODES): Update.
10572         * config/alpha/alpha.md: New post-reload splitters to convert
10573         simplfied symbolic operands to the form that references $29.
10574         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10575         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10576
10577 2002-01-03  Richard Henderson  <rth@redhat.com>
10578
10579         * local-alloc.c (function_invariant_p): Update commentary.
10580
10581 2002-01-04  H.J. Lu <hjl@gnu.org>
10582
10583         * toplev.c (rest_of_compilation): Fix a typo when calling
10584         cleanup_cfg.
10585
10586 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10587
10588         * c-common.c: Fix formatting.
10589         * diagnostic.c: Likewise.
10590         * doloop.c: Likewise.
10591         * dwarf2out.c: Likewise.
10592
10593 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10594
10595         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10596         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10597
10598 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10599
10600         * cpperror.c: Update comments and copyright.
10601         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10602         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10603
10604 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10605
10606         * collect2.c (main): Use strcmp when testing for "-shared".
10607
10608 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10609
10610         * cppmacro.c: Don't include intl.h.  Update comments.
10611         (new_number_token): Allocate enough buffer for 64-bit unsigned
10612         integers; update prototype.
10613         * cppmain.c: Update comments.
10614
10615 2002-01-03  William Cohen  <wcohen@redhat.com>
10616
10617         * function.h (struct function): Add profile.
10618         (current_function_profile): New.
10619         doc/extend.texi: Update documentation.
10620         * final.c (final_start_function): Use current_function_profile
10621         instead of profile_flag.
10622         (profile_after_prologue): Likewise.
10623         * function.c (expand_function_start): Likewise.
10624         (expand_function_start): Likewise.
10625         * config/alpha/alpha.c (direct_call_operand):
10626         (alpha_does_function_need_gp): Likewise.
10627         (alpha_expand_prologue): Likewise.
10628         * config/arm/arm.c (arm_expand_prologue): Likewise.
10629         thumb_expand_prologue: Likewise.
10630         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10631         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10632         (fr30_expand_prologue): Likewise.
10633         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10634         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10635         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10636         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10637         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10638         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10639         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10640         (m32r_expand_prologue): Likewise.
10641         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10642         (m88k_expand_prologue): Likewise.
10643         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10644         * config/mips/mips.c (compute_frame_size): Likewise.
10645         (mips_expand_prologue): Likewise.
10646         (mips_can_use_return_insn): Likewise.
10647         * config/pa/elf.h (ASM_FILE_START): Likewise.
10648         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10649         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10650         * config/pa/som.h (ASM_FILE_START): Likewise.
10651         * config/romp/romp.c (romp_using_r14): Likewise.
10652         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10653         (rs6000_stack_info): Likewise.
10654         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10655         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10656         * config/v850/v850.c (compute_register_save_size): Likewise.
10657
10658 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10659
10660         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10661         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10662
10663 2002-01-03  Turly O'Connor  <turly@apple.com>
10664
10665         * darwin.c (machopic_output_possible_stub_label): Don't generate
10666         stub routines for pseudo-stubs which we've just defined.
10667
10668 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10669
10670         * builtins.c: Fix formatting.
10671         * c-typeck.c: Likewise.
10672         * combine.c: Likewise.
10673         * expr.c: Likewise.
10674         * loop.c: Likewise.
10675
10676 2002-01-03  Andreas Schwab  <schwab@suse.de>
10677
10678         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10679         and return true if _cpp_push_next_buffer pushed a new include
10680         file.
10681         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10682         _cpp_pop_file_buffer did not push a new file.
10683         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10684
10685 2002-01-02  Eric Christopher  <echristo@redhat.com>
10686
10687         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10688         FIND_REG_INC_NOTE call. Update copyright.
10689         * loop.c (canonicalize_condition): Ditto.
10690         * reorg.c (delete_scheduled_jump): Ditto.
10691
10692 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10693
10694         * gcse.c: Fix formatting.
10695
10696 2002-01-03  Graham Stott  <grahams@redhat.com>
10697
10698         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10699         forward defs for struct tags rtx_def, union_tree, rtvec_def
10700         also output corresponding typedefs for rtx, tree, and rtvec.
10701
10702         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10703         rtvec_def along with corresponding typedefs for rtx, tree, and
10704         rtvec to config.h, hconfig.h, tconfig.h.
10705
10706 2002-01-03  Graham Stott  <grahams@redhat.com>
10707
10708         * tree.h: Update copyright date.
10709         (IS_EXPR_CODE_CLASS): Add parenthesis.
10710         (TREE_SET_CODE): Add whitespace.
10711         (TREE_CHECK): Add parenthesis.
10712         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10713         (CST_OR_CONSTRUCTOR_CHECK):
10714         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10715         (TREE_SYMBOL_REFERENCED): Whitespace.
10716         (INT_CST_LT): Likewise.
10717         (INT_CST_LT_UNSIGNED): Likewise.
10718         (tree_real_cst): Unwrap comment.
10719         (tree_string): Likewise.
10720         (tree_complex): Likewise.
10721         (IDENTIFIER_POINTER): correct cast.
10722         (SAVE_EXPR_CONTEXT): Whitespace.
10723         (EXPR_WFL_FILENAME_NODE): Likewise.
10724         (EXPR_WFL_FILENAME): Remove parenthesis.
10725         (DECL_ORIGIN): Add parenthesis.
10726         (DECL_FROM_INLINE): Use NULL_TREE.
10727         (build_int_2): Whitespace.
10728         (build_type_variant): Add parenthesis.
10729
10730         * gcc/jcf-parse.c: Update copyright date.
10731         (yyparse): Constify resource_filename.
10732
10733 2002-01-03  Graham Stott  <grahams@redhat.com>
10734
10735         * rtl.h: Update copyright date.
10736         (RTL_CHECK1): Wrap long line.
10737         (RTL_CHECK2): Likewise.
10738         (RTL_CHECKC1): Wrap long line and whitespace.
10739         (RTL_CHECKC2): Likewise.
10740         (XWINT): Whitespace.
10741         (XINT): Likewise.
10742         (XSTR): Likewise.
10743         (XEXP): Likewise.
10744         (XVEC): Likewise.
10745         (XMODE): Likewise.
10746         (XBITMAP): Likewise.
10747         (XTREE): Likewise.
10748         (XBBDEF): Likewise.
10749         (XTMPL): Likewise.
10750         (X0WINT): Likewise.
10751         (X0INT):Likewise.
10752         (X0UINT): Likewise.
10753         (X0STR): Likewise.
10754         (X0EXP): Likewise.
10755         (X0VEC): Likewise.
10756         (X0MODE): Likewise.
10757         (X0BITMAP): Likewise.
10758         (X0TREE): Likewise.
10759         (X0BBDEF): Likewise.
10760         (X0ADVFLAGS): Likewise.
10761         (X0CSELIB): Likewise.
10762         (X0MEMATTR): Likewise.
10763         (XCWINT): Likewise.
10764         (XCINT): Likewise.
10765         (XCUINT): Likewise.
10766         (XCSTR): Likewise.
10767         (XCEXP): Likewise.
10768         (XCVEC): Likewise.
10769         (XCMODE): Likewise.
10770         (XCBITMAP): Likewise.
10771         (XCTREE): Likewise.
10772         (XCBBDEF): Likewise.
10773         (XCADVFLAGS): Likewise.
10774         (XCCSELIB): Likewise.
10775         (XC2EXP): Likewise.
10776         (INSN_UID): Likewise.
10777         (PREV_INSN): Likewise.
10778         (PATTERN): Likewise.
10779         (INSN_CODE): Likewise.
10780         (PUT_REG_NOTE_KIND): Likewise.
10781         (CODE_LABEL_NUMBER): Likewise.
10782         (NOTE_SOURCE_FILE): Likewise.
10783         (NOTE_BLOCK): Likewise.
10784         (NOTE_EH_HANDLER): Likewise.
10785         (NOTE_RANGE_INFO): Likewise.
10786         (NOTE_LIVE_INFO): Likewise.
10787         (NOTE_BASIC_BLOCK): Likewise.
10788         (NOTE_EXPECTED_VALUE): Likewise.
10789         (NOTE_LINE_NUMBER): Likewise.
10790         (LABEL_NAME): Likewise.
10791         (LABEL_NUSES): Likewise.
10792         (LABEL_ALTERNATE_NAME): Likewise.
10793         (ADDRESSOF_DECL): Likewise.
10794         (JUMP_LABEL): Likewise.
10795         (LABEL_NEXTREF): Likewise.
10796         (REGNO): Likewise.
10797         (ORIGINAL_REGNO: Likewise.
10798         (HARD_REGISTER_NUM_P): Add parenthesis.
10799         (SUBREG_REG): Whitespace.
10800         (SUBREG_BYTE): Likewise.
10801         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10802         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10803         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10804         (ASM_OPERANDS_INPUT_VEC): Likewise.
10805         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10806         (ASM_OPERANDS_INPUT): Likewise.
10807         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10808         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10809         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10810         (ASM_OPERANDS_INPUT_MODE): Likewise.
10811         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10812         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10813         (MEM_SET_IN_STRUCT_P): Minor reformat.
10814         (TRAP_CONDITION): Whitespace.
10815         (TRAP_CODE): Likewise.
10816         (COND_EXEC_TEST): Likewise.
10817         (COND_EXEC_CODE): Likewise.
10818         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10819         (PHI_NODE_P): Add parenthesis.
10820         (plus_constant): Whitespace and add parenthesis.
10821
10822 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10823
10824         * config/avr/avr.c: Fix comment typos.
10825         * config/c4x/c4x.md: Likewise.
10826         * config/dsp16xx/dsp16xx.h: Likewise.
10827         * config/dsp16xx/dsp16xx.md: Likewise.
10828         * config/i386/i386.md: Likewise.
10829         * config/ia64/ia64.c: Likewise.
10830         * config/m32r/m32r.h: Likewise.
10831         * config/m68hc11/m68hc11.md: Likewise.
10832         * config/mmix/mmix.c: Likewise.
10833         * config/mn10200/mn10200.c: Likewise.
10834         * config/romp/romp.c: Likewise.
10835         * config/sh/sh.c: Likewise.
10836         * config/stormy16/stormy16.c: Likewise.
10837         * config/stormy16/stormy16.h: Likewise.
10838         * config/stormy16/stormy16.md: Likewise.
10839
10840 2002-01-03  Graham Stott  <grahams@redhat.com>
10841
10842         * loop.h: Update copyright date.
10843         (LOOP_MOVABLES): Fix typo.
10844         (LOOP_REGS): Likewise.
10845         (LOOP_IVS): Likewise.
10846
10847 2002-01-03  Graham Stott  <grahams@redhat.com>
10848
10849         * cppinit.c: Update copyright date.
10850         Don't include output.h
10851         * Makefile.in: Update copyright date.
10852         Update dependency.
10853
10854 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10855
10856         PR c/5226
10857         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10858         (-pthread) Add to RS/6000 options.
10859
10860 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10861
10862         * except.c: Fix comment typos.
10863         * loop.c: Likewise.
10864         * varasm.c: Likewise.
10865         * doc/tm.texi: Fix a typo.
10866
10867 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10868
10869         * c-typeck.c (output_init_element): Allow initializing static storage
10870         duration objects with compound literals.
10871
10872 2002-01-02  Richard Henderson  <rth@redhat.com>
10873
10874         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10875         after abusing it.
10876
10877 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10878
10879         * gcc.c (default_compilers): Const-ify.
10880         * mips-tdump.c (stab_names): Likewise.
10881         * mips-tfile.c (map_coff_types, map_coff_storage,
10882         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10883         pseudo_ops_t, pseudo_ops): Likewise.
10884         * protoize.c (default_include): Likewise
10885
10886         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10887         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10888         Add array size in declaration.
10889         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10890         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10891         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10892         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10893         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10894         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10895         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10896         emtens, make_nan): Const-ify.
10897         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10898         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10899
10900 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10901
10902         * config.gcc (ia64-*-*): Set extra_headers.
10903         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10904         * config/alpha/t-osf: Remove.
10905         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10906
10907 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10908
10909         * config/rs6000/t-aix43: Revert previous change.
10910
10911 2002-01-02  Jason Merrill  <jason@redhat.com>
10912
10913         * c-decl.c (c_expand_body): Call outlining_inline_function when
10914         emitting an inline function out of line.
10915
10916 2002-01-02  Richard Henderson  <rth@redhat.com>
10917
10918         * dwarf2out.c (limbo_die_node): Add created_for member.
10919         (new_die): New argument created_for.  Update all callers.
10920         (mark_limbo_die_list): New.
10921         (dwarf2out_init): Register limbo_die_list as a root.
10922         (dwarf2out_finish): Force insert limbo dies into their function
10923         context.
10924
10925 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10926
10927         PR c++/5089
10928         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10929
10930 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10931
10932         * config/h8300/fixunssfsi.c: Update copyright.
10933         Fix comment typos.
10934         Fix formatting.
10935         * config/h8300/h8300.c: Update copyright.
10936         Eliminate warnings.
10937
10938 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10939
10940         * config/romp/romp.c: Fix comment formatting.
10941         * config/romp/romp.h: Likewise.
10942         * config/romp/romp.md: Likewise.
10943         * config/s390/s390.c: Likewise.
10944         * config/stormy16/stormy16.c: Likewise.
10945         * config/stormy16/stormy16.h: Likewise.
10946
10947 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10948
10949         * c-common.h (genrtl_expr_stmt_value): Declare.
10950         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10951         (genrtl_goto_stmt_value): ... this new function.  Pass new
10952         argument down to expand_expr_stmt_value, taking
10953         TREE_ADDRESSABLE into account.
10954         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10955         STMT_EXPR as addressable, i.e., one whose result we want.
10956         * expr.c (expand_expr): Don't save expression statement value
10957         of labeled_blocks or loop_exprs.
10958         * stmt.c (expand_expr_stmt): Redirect to...
10959         (expand_expr_stmt_value): ... this new function.  Use new
10960         argument to tell whether to save expression value.
10961         (expand_end_stmt_expr): Reset last_expr_type and
10962         last_expr_value if we don't have either.
10963         * tree-inline.c (declare_return_variable): Mark its use
10964         statement as addressable.
10965         * tree.h: Document new use of TREE_ADDRESSABLE.
10966         (expand_expr_stmt_value): Declare.
10967
10968 2002-01-01  Tom Rix  <trix@redhat.com>
10969
10970         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10971         rs6000_emit_allocate_stack.
10972
10973 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10974
10975         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10976         ${srcdir}/ginclude/ to every entry in extra_headers.
10977         * configure: Regenerate.
10978         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10979         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10980         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10981         * ginclude/proto.h: Rename to config/convex/proto.h.
10982
10983 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10984
10985         * attribs.c (handle_vector_size_attribute): Use host_integerp
10986         and tree_int_cst; remove warnings.
10987         * caller-save.c (insert_restore): Add cast to get rid of warning.
10988         (insert_save): Likewise.
10989         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10990         * regmove.c (find_matches): Add temporary var to kill a warning.
10991
10992 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
10993
10994         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10995         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10996         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10997         (vms-dwarf2eh.o): Add Makefile rule.
10998         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10999         * config/alpha/vms-dwarf2eh.asm: New file.
11000
11001         * gcc.c (delete_if_ordinary): Delete all versions.
11002
11003 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11004
11005         * config/mmix/mmix.md: Update FIXME to not mention
11006         define_constants.
11007         (MMIX_rJ_REGNUM): New define_constants constant.
11008         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11009         "*movdicc_real"): Adjust contraints formatting.
11010         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11011         for branch prediction.
11012         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11013         output template.
11014         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11015         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11016         number.  Delete related FIXMEs.
11017         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11018         from number to MMIX_rJ_REGNUM.
11019         (TARGET_MASK_BRANCH_PREDICT): New.
11020         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11021         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
11022         value.  Add -mbranch-predict and -mno-branch-predict.
11023         (TARGET_VERSION): Drop date.
11024         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11025         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11026         for finding out global symbols.
11027         (mmix_asm_output_labelref): Revert condition for global symbol.
11028         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11029         (mmix_print_operand_punct_valid_p): A '+' is valid.
11030
11031 See ChangeLog.6 for earlier changes.