OSDN Git Service

* config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-20  Kazu Hirata  <kazu@hxi.com>
2
3         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
4         push and pop.  Replace add.l with add.w.
5
6 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
7
8         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
9         multiply instructions for H8/300H case.
10
11 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
12
13         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
14         Bum three instructions from each routine.
15
16 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
17
18         * Makefile.in: Update.
19         * decl.c (push_c_function_context, pop_c_function_context,
20         mark_c_function_context): Rename for consistency.
21         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
22         * c-tree.h (push_c_function_context, pop_c_function_context,
23         mark_c_function_context): Rename for consistency.
24         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
25         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
26         * function.c (init_lang_status, save_lang_status,
27         restore_lang_status, mark_lang_status, free_lang_status):
28         Move to langhooks.h.
29         (push_function_context_to, pop_function_context_from,
30         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
31         Update.
32         * function.h (init_lang_status, save_lang_status,
33         restore_lang_status, mark_lang_status, free_lang_status):
34         Move to langhooks.h.
35         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
36         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
37         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
38         LANG_HOOKS_FUNCTION_INITIALIZER): New.
39         (LANG_HOOKS_INITIALIZER): Update.
40         (lhd_do_nothing_f): New.
41         * langhooks.h (struct lang_hooks_for_functions): New.
42         (struct lang_hooks): New hooks.
43         * langhooks.c (lhd_do_nothing_f): New.
44 objc:
45         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
46         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
47
48 2002-04-19  David S. Miller  <davem@redhat.com>
49
50         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
51         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
52
53 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
54
55         PR optimization/3756
56         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
57         x = ((int) y < 0) ? cst1 : cst2.
58
59 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
60
61         PR c/6358
62         * function.c: Reapply patch for c/6358.
63         (expand_function_end): Copy decl_rtl's mode, not
64         current_function_return_rtx mode.
65
66 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
67
68         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
69         targets.
70
71 2002-04-19  Tom Tromey  <tromey@redhat.com>
72
73         * doc/install.texi (Specific): Update status of Solaris 2.8.
74         For PR libgcj/6158.
75
76 2002-04-19  Andreas Schwab  <schwab@suse.de>
77
78         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
79         (PUT_REAL): Restore old definition.
80
81 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
82             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
83
84         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
85         binutils 2.11.2 and higher generate smaller binaries than Sun's
86         native tools.
87
88 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
89
90         PR c++/6352
91         * toplev.c (rest_of_compilation): Do not defer functions for which
92         TREE_SYMBOL_REFERENCED has already been set.
93
94 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
95
96         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
97         alternative.
98
99 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
100
101         * builtins.c: Include langhooks.h.
102         (lang_type_promotes_to): Remove.
103         (expand_builtin_va_arg): Use new hook.
104         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
105         (simple_type_promotes_to): Move to c-typeck.c.
106         * c-common.h (simple_type_promotes_to): Remove.
107         * c-decl.c (duplicate_decls, grokdeclarator): Update.
108         * c-format.c: Include langhooks.h.
109         (check_format_types): Update.
110         * c-tree.h (c_type_promotes_to): New.
111         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
112         (type_lists_compatible_p): Update.
113         * langhooks-def.h (lhd_type_promotes_to): New.
114         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
115         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
116         * langhooks.c (lhd_type_promotes_to): New.
117         * langhooks.h (struct lang_hooks_for_types): New hook.
118         * tree.h (lang_type_promotes_to): Remove.
119 objc:
120         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
121
122 2002-04-18  Richard Henderson  <rth@redhat.com>
123
124         * function.c: Revert patch for c/6358.
125
126 2002-04-18  Richard Henderson  <rth@redhat.com>
127
128         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
129         blocks.  Handle multiple references to the TRAP block.  Handle
130         non-adjacent THEN and OTHER blocks.
131
132 2002-04-18  Richard Henderson  <rth@redhat.com>
133
134         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
135         crash with no type for by-mode libcalls.
136
137         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
138
139 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
140
141         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
142         __xtensa_nonlocal_goto): Use a syscall instructions to flush
143         the register windows.
144
145 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
146
147         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
148         appropriate.  Document need for extended precision even when
149         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
150         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
151         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
152         instead of relying on later syntax error when REAL_WIDTH > 5.
153         * real.c: Define NE based only on whether or not we have a
154         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
155         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
156         define GET_REAL and PUT_REAL as simple memcpy operations; no
157         need to byteswap or round.
158         Use #error instead of #ifdef-ing out the entire file, for
159         prompt error detection.
160
161         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
162
163 2002-04-18  David S. Miller  <davem@redhat.com>
164
165         * config/sparc/sparc.h (BRANCH_COST): Define.
166
167         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
168         does it.
169
170 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
171
172         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
173         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
174         propagate_block calls after relaxation loop using new variable
175         stabilized_prop_flags.
176
177 2002-04-18  Richard Henderson  <rth@redhat.com>
178
179         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
180         (ia64_va_arg): Expect variable sized types by reference.
181         * config/ia64/ia64-protos.h: Update.
182         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
183         ia64_function_arg_pass_by_reference.
184
185 2002-04-18  Richard Henderson  <rth@redhat.com>
186
187         * ifcvt.c: Include except.h.
188         (block_has_only_trap): Break out from find_cond_trap.
189         (find_cond_trap): Use it.  Always delete the trap block.
190         (merge_if_block): Allow then block null.  Be less simplistic about
191         what insns can end a block.
192         * Makefile.in (ifcvt.o): Depend on except.h.
193
194         * config/ia64/ia64.md (trap, conditional_trap): New.
195
196 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
197
198         PR c/6358
199         * function.c (assign_parms): Assign hard current_function_return_rtx
200         register here...
201         (expand_function_end): ...not here.
202
203 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
204
205         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
206         * c-tree.h (c_incomplete_type_error): New.
207         * c-typeck.c (require_complete_type, build_component_ref): Update.
208         (incomplete_type_error): Rename.
209         * langhooks-def.h (lhd_incomplete_type_error): New.
210         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
211         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
212         * langhooks.c (lhd_incomplete_type_error): New.
213         * langhooks.h (struct lang_hooks_for_types): New hook.
214         * tree.c (size_in_bytes): Use new hook.
215         * tree.h (incomplete_type_error): Remove.
216 objc:
217         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
218
219 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
220
221         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
222         TARGET_FLOAT_FORMAT blocks.
223
224 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
225
226         * doc/install.texi (Downloading the source): Do not mention Chill
227         any longer, but mention Ada.
228         (Configuration): Do not mention Chill any longer.
229
230 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
231
232         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
233
234 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
235
236         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
237         in last patch.
238
239 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
240
241         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
242         instead of unsigned_type.
243
244 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
245
246         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
247         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
248         later.
249
250 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
251
252         * attribs.c (vector_type_node_list): New static variable.
253         (handle_vector_size_attribute): Use it to avoid generating a
254         new type node each time we are called.
255
256         * combine.c (subst): Avoid trying to make a vector mode subreg of
257         an integer constant.
258         (gen_lowpart_for_combine): Likewise.
259
260 2002-04-18  Roger Sayle  <roger@eyesopen.com>
261             Jakub Jelinek  <jakub@redhat.com>
262
263         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
264         for integer constant c (if x has unsigned type or sign bit is not
265         set in c).  This folds the zero/sign extension into the bit-wise and
266         operation.
267
268 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
269
270         PR middle-end/6205
271         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
272         otherwise xorps.
273
274 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
275
276         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
277
278 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
279
280         * gcc.c (read_specs): Detect and fail if an attempt is made to
281         rename a spec string to an already existing string.
282
283 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
284
285         * config/s390/s390.c (legitimize_pic_address): Do not generate
286         illegal address constant without CONST.
287
288 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
289
290         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
291         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
292
293 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
294
295         PR optimization/6305
296         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
297         to make sure previous reloads are taken into account.  Generate
298         better code if one operand is an in-range immediate constant.
299
300 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
301
302         * doc/install.texi (Building): libgcj requires GNU make.
303
304 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
305
306         PR bootstrap/6315
307         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
308         even if hard quad and register is not floating.
309         (movtf reg<-mem split): Disallow splitting if hard quad and
310         register is floating.
311         (movtf mem<-reg split): Likewise.
312         * config/sparc/sparc.c (fp_register_operand): New predicate.
313         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
314
315 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
316
317         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
318         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
319         (unprotoize.o): Ditto.  Build from protoize.c.  Define
320         UNPROTOIZE on command line.
321         * protoize.c: Include cppdefault.h.  Delete include_defaults.
322         (in_system_include_dir): Use cpp_include_defaults (defined in
323         cppdefault.o).
324         * unprotoize.c: Delete file.
325
326 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
327
328         * config/rs6000/altivec.h (vec_ld): Add array variants.
329         (vec_lde): Same.
330         (vec_ldl): Same.
331
332 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
333             Aldy Hernandez <aldyh@redhat.com>
334
335         * config/rs6000/altivec.h: Define __ALTIVEC__.
336         (bool): New.
337         (__pixel): New.
338         (pixel): New.
339         (vec_cfux): New.
340         (vec_vmaddfp): New.
341         (vec_vsldoi): New.
342         Add parentheses to all macro arguments.
343
344 2002-04-16  Richard Henderson  <rth@redhat.com>
345
346         PR c++/6320
347         * except.c (remove_eh_handler): Insert inner regions at beginning
348         of sibling chain.  Refactor expressions.
349
350 2002-04-16  Richard Henderson  <rth@redhat.com>
351
352         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
353         * config/sparc/sol2-gas-bi.h: New file.
354         * config.gcc (sparc*-solaris): Add it as needed.
355         * configure.in (AS_SPARC64_FLAG): Remove check.
356         * config.in, configure: Regenerate.
357
358         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
359
360 2002-04-16  Richard Henderson  <rth@redhat.com>
361
362         * config/mips/mips.c (override_options): Don't override N32 for
363         a 64-bit ISA.
364
365         PR 6202
366         * config/mips/mips.md (can_delay): Split out of existing define_delays.
367         (HILO_delay): Set can_delay false.
368
369 2002-04-16  Dale Johannesen <dalej@apple.com>
370
371         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
372         instruction addresses.
373         (rs6000_output_function_epilogue): Likewise.
374
375 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
376
377         * c-parse.in (poplevel, compstmt_start,
378         compstmt_primary_start): Add ending ';', in accordance
379         with POSIX.
380
381 2002-04-16  Richard Henderson  <rth@redhat.com>
382
383         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
384         Adjust tm_file order to get TARGET_DEFAULT set properly.
385         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
386         * doc/install.texi (sparc-solaris): Update.
387
388 2002-04-16  Dale Johannesen <dalej@apple.com>
389
390         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
391         comparison operands do not match each other or if modes of
392         conditions do not match result.
393
394 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
395
396         PR target/6305
397         * config/s390/s390.md (mulsidi3): Set both subregs of the
398         multiword register.
399
400 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
401
402         * config/rs6000/altivec.h (vec_addc): Type check.
403
404 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
405
406         PR middle-end/6279
407         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
408
409         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
410
411 2002-04-15  Richard Henderson  <rth@redhat.com>
412
413         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
414         call_really_used_regs too.
415
416 2002-04-15  Richard Henderson  <rth@redhat.com>
417
418         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
419
420 2002-04-15  David S. Miller  <davem@redhat.com>
421
422         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
423         as being CLOBBERed.
424
425 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
426
427         PR c/6290
428         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
429         CONST_VECTOR is { 0, ... 0 }.
430
431 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
432
433         * doc/install.texi (Installing GCC: Configuration): Clarify
434         the only supported ways to configure gcc.
435
436 2002-04-15  Roland McGrath  <roland@frob.com>
437
438         * config.gcc (alpha*-*-gnu*): New target configuration.
439         * config/alpha/gnu.h: New file for it.
440         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
441
442 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
443
444         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
445         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
446         * tree.h (expand_start_stmt_expr): Update prototype.
447         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
448         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
449         on the STMT_EXPR created for the inline function.
450
451 2002-04-15  Richard Henderson  <rth@redhat.com>
452
453         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
454         config/i386/linux-aout.h, config/i386/linux-oldld.h,
455         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
456         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
457         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
458         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
459         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
460         Define __gnu_linux__, not gnu_linux.
461         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
462
463 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
464
465         Remove Chill front end.
466         * gcc.c (default_compilers): Remove Chill entries.
467         * ch: Remove directory.
468         * doc/frontends.texi: Remove information about Chill.
469         * doc/sourcebuild.texi: Likewise.
470         * doc/standards.texi: Likewise.
471
472 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
473
474         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
475         (LONGLONG_STANDALONE): Define.
476
477 2002-04-15  David S. Miller  <davem@redhat.com>
478
479         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
480         Call emit_library_call with LCT_NORMAL.
481         (sparc_initialize_trampoline): Use LCT_foo instead of
482         magic constant in emit_library_call invocations.
483         (sparc64_initialize_trampoline): Likewise.
484         (sparc_profile_hook): Likewise.
485         * config/sparc/sparc.md: Likewise.
486
487         * config/sparc/sparc.c (sparc_extra_constraint_check):
488         Fix type of argument 'c'.
489         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
490         Likewise.
491
492 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
493
494         * diagnostic.h (output_buffer_state): Redefine.
495         (output_format_decoder): New macro.
496         (output_prefixing_rule): Likewise.
497         (output_line_cutoff): Likewise.
498         (diagnostic_format_decoder): Adjust.
499         (diagnostic_prefixing_rule): Likewise.
500         (diagnostic_line_cutoff): Likewise.
501         (diagnostic_state): Likewise.
502         (diagnostic_kind_count): Likewise.
503         (diagnostic_buffer): Now a macro.
504
505         * diagnostic.c (diagnostic_buffer): Remove definition.
506         (output_is_line_wrapping): Adjust.
507         (set_real_maximum_length): Likewise.
508         (output_set_maximum_length): Likewise.
509         (init_output_buffer): Likewise.
510         (lhd_print_error_function): Likewise.
511         (output_do_verbatim): Likewise.
512
513 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
514
515         * cpperror.c (print_location): Don't print include chain
516         if line == 0.
517         (cpp_begin_message): Update to use DL_ macros.
518         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
519         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
520         cpp_notice, cpp_notice_from_errno): Remove.
521         (cpp_error, cpp_error_with_line): Update to take a diagnostic
522         level.
523         (cpp_errno): New.
524         * cppexp.c (CPP_ICE): Remove.
525         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
526         lex, integer_overflow, _cpp_parse_expr): Update.
527         * cppfiles.c (read_include_file, find_include_file,
528         handle_missing_header, _cpp_read_file, remap_filename): Update.
529         * cpphash.h (enum error_type): Remove.
530         (_cpp_begin_message): Update.
531         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
532         cpp_handle_option, cpp_post_options): Update.
533         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
534         skip_whitespace, parse_identifier, parse_slow, parse_string,
535         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
536         cpp_interpret_charconst): Update.
537         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
538         lex_macro_node, do_undef, glue_header_name, parse_include,
539         do_include_common, read_flag, do_line, do_linemarker, do_ident,
540         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
541         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
542         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
543         _cpp_pop_buffer, do_diagnostic): Update.
544         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
545         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
546         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
547         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
548         cpp_notice, cpp_notice_from_errno): Remove.
549         (cpp_error, cpp_error_with_line): Update to take a diagnostic
550         level.
551         (cpp_errno): New.
552         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
553         collect_args, enter_macro_context, save_parameter, parse_params,
554         _cpp_create_definition, check_trad_stringification,
555         cpp_macro_definition): Update.
556         * cppmain.c (cpp_preprocess_file): Update.
557         * fix-header.c (read_scan_file): Update.
558
559 2002-04-14  Andreas Schwab  <schwab@suse.de>
560
561         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
562
563 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
564
565         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
566
567 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
568
569         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
570         not gnu_hurd.
571
572 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
573
574         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
575
576 2002-04-13      Joel Sherrill <joel@OARcorp.com>
577
578         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
579         sparc-elf and sparc-rtems targets.
580
581 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
582
583         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
584         defined, and __gnu_hurd__ wherever __GNU__ is defined.
585         * arm/linux-elf.h: Likewise.
586         * cris/aout.h: Likewise.
587         * cris/linux.h: Likewise.
588         * i370/linux.h: Likewise.
589         * i386/gnu.h: Likewise.
590         * i386/linux-aout.h: Likewise.
591         * i386/linux-oldld.h: Likewise.
592         * i386/linux.h: Likewise.
593         * i386/linux64.h: Likewise.
594         * ia64/linux.h: Likewise.
595         * m68k/linux-aout.h: Likewise.
596         * m68k/linux.h: Likewise.
597         * mips/linux.h: Likewise.
598         * pa/pa-linux.h: Likewise.
599         * pj/linux.h: Likewise.
600         * rs6000/sysv4.h: Likewise.
601         * s390/linux.h: Likewise.
602         * sh/linux.h: Likewise.
603         * sparc/linux-aout.h: Likewise.
604         * sparc/linux.h: Likewise.
605         * sparc/linux64.h: Likewise.
606         * xtensa/linux.h: Likewise.
607
608 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
609
610         * stmt.c (check_unique_operand_names): Expect operand names to
611         be strings rather than identifiers.  Use simple_cst_equal to
612         compare them.
613         (resolve_operand_name_1): Make same identifier to string change here.
614         * c-parse.in (asm_operand): Convert a named operand into a string.
615         * cp/parse.y (asm_operand): Likewise.
616
617 2002-04-13  Andreas Schwab  <schwab@suse.de>
618
619         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
620
621 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
622
623         Revert these changes:
624
625         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
626
627         PR c++/5571
628         * stor-layout.c (layout_decl): Reset the RTL for the decl.
629
630 2002-04-12  Richard Henderson  <rth@redhat.com>
631
632         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
633         (sparc*-*-solaris): Clean up header files.
634         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
635         and plan on generating 64-bit code.
636         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
637         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
638         * config/sparc/sol2-sld-64.h: Rename ...
639         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
640         for AS_SPARC64_FLAG not defined.
641         * config/sparc/sol2-gld-bi.h: New.
642         * config/sparc/sol2-sld.h: Remove.
643         * config/sparc/sol26-sld.h: New.
644         * config/sparc/sol2.h: Tidy comments.
645         * doc/install.texi: Document sparc-solaris configury changes.
646
647 2002-04-12  Richard Henderson  <rth@redhat.com>
648
649         * recog.c (offsettable_address_p): Match the logic in adjust_address.
650
651         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
652         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
653
654 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
655
656         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
657
658 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
659
660         * pa.c (pa_can_combine_p): Call extract_insn before calling
661         constrain_operands.
662
663 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
664
665         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
666         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
667         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
668         (CPP_PREDEFINES): Handle __declspec.
669         * config/i386/t-interix (USER_H): Remove.
670
671 2002-04-12  DJ Delorie  <dj@redhat.com>
672
673         * integrate.c (compare_blocks): Make comparisons safe for when
674         sizeof(int) < sizeof(char *).
675         (find_block): Likewise.
676
677 2002-04-12  Jan Hubicka  <jh@suse.cz>
678             David Edelsohn  <edelsohn@gnu.org>
679
680         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
681         registers.
682         (symbol_ref_operand): New.
683         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
684         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
685
686 2002-04-12  Andreas Schwab  <schwab@suse.de>
687
688         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
689         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
690         overrides the definition in config/svr4.h.
691
692 2002-04-12      Eric Norum <eric.norum@usask.ca>
693
694         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
695         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
696         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
697         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
698         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
699         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
700         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
701         definitions to config/rtems.h and make the targets more similar.
702
703 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
704
705         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
706         POINTERS_EXTEND_UNSIGNED.
707         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
708         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
709
710         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
711         not specified.
712
713 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
714
715         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
716         depends on TARGET_SHMEDIA, not TARGET_SH5.
717
718 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
719
720         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
721         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
722
723 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
724
725         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
726         no r0 clobber.
727
728 2002-04-12  Andreas Schwab  <schwab@suse.de>
729
730         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
731
732 2002-04-12  Richard Henderson  <rth@redhat.com>
733
734         PR bootstrap/4191
735         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
736
737         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
738         modes spanning multiple hard regs.
739
740         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
741
742 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
743
744         * pa.c (pa_output_function_prologue): Don't accumulate the total
745         number of code bytes when using TARGET_64BIT, or gas, SOM and not
746         the portable runtime.
747         (output_deferred_plabels): Handle 64bit plabels.
748         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
749         generating pic code using the GAS assembler for object formats that
750         are not SOM (ie., ELF32 and ELF64).
751         (output_millicode_call): Check attribute type if attribute length is 28.
752         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
753         dbr_sequence_length once.
754         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
755         dbr_sequence_length once.
756         * pa.h (TARGET_SOM): Define if not defined.
757         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
758         with GAS and not SOM.
759         (jump, call_internal_reg, call_value_internal_reg): Likewise.
760         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
761
762 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
763
764         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
765         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
766         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
767         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
768         elfos.h and dbxelf.h values are fine now.
769         * config/i386/freebsd.h, config/alpha/freebsd.h
770         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
771
772 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
773
774         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
775         or set Acpu or Amachine.  Reformat.
776         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
777         define.
778         (LINK_SPEC): Do not need to undef.
779         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
780         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
781         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
782         define.
783         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
784         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
785         (LINK_SPEC): Do not need to undef.
786         (DONT_USE_BUILTIN_SETJMP): Do not define.
787         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
788         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
789         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
790         Remove trailing spaces.
791         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
792         __ELF__, or set Acpu or Amachine.  Reformat.
793         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
794         define.
795
796 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
797
798         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
799         all other *-*-freebsd* targets.
800
801 2002-04-11  Richard Henderson  <rth@redhat.com>
802
803         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
804
805 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
806
807         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
808         Include {cpu}/{cpu}.h thru tm_file.
809         (alpha*-*-linux*ecoff): Remove target.
810         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
811         (LINK_SPEC): Remove, is not OS independent.
812         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
813         (LINK_SPEC): Do not need to #undef any longer.
814         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
815         any longer.
816         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
817         __ELF__.
818         (LINK_SPEC): Moved here from alpha/elf.h.
819         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
820         SUB_CPP_PREDEFINES.
821         * config/alpha/linux-ecoff.h: Remove.
822         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
823         (CPP_SPEC): Define _POSIX_SOURCE as needed.
824         (CPP_SUBTARGET_SPEC): Do not define.
825         (LINK_SPEC): Do not need to #undef any longer.
826         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
827         * config/alpha/vms.h: Likewise.
828
829 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
830
831         * doc/extend.texi: Remove old claim that typedefs cannot have
832         an alignment attribute.
833
834 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
835
836         PR optimization/6177
837         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
838         bitpos is 0 and bitsize CONCAT size.
839
840 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
841
842         PR c/6223
843         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
844
845 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
846
847         * config/alpha/freebsd.h: Minor reformatting.
848         (CPP_SPEC): Define ELF and add cpp_subtarget.
849         (ASM_SPEC): No longer needed.
850
851 2002-04-11  Richard Henderson  <rth@redhat.com>
852
853         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
854         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
855         (dimode mem/zero splitter): New.
856
857 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
858
859         * config/cris/cris.c (cris_override_options): Tweak error message
860         for PIC not implemented.
861
862         * config/cris/cris.h: Tweak comments related to parameter-passing.
863
864         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
865
866 2002-04-10  Richard Henderson  <rth@redhat.com>
867
868         * except.c (add_ehl_entry): Allow duplicates after landing pad
869         creation.
870
871 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
872
873         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
874
875 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
876
877         * c-decl.c (c_init_decl_processing): Move generation of
878         decls for g77_integer_type_node and friends from here ...
879         * c-common.c (c_common_nodes_and_builtins): ... to here.
880
881 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
882
883         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
884         is only used as frame pointer when frame_pointer_needed is true.
885
886 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
887
888         PR target/817
889         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
890         for the fact that the pool entry uses two words.
891         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
892         1k bytes.
893         (movdf_soft_insn): Similarly.
894         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
895         for the fact that the pool entry uses three words.
896
897 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
898
899         * config/mips/mips.c (mips_va_arg): When using the struct version
900         of the EABI va_list, allow arguments in the register save area to
901         take up less room than a stack argument.
902
903 2002-04-10  Richard Henderson  <rth@redhat.com>
904
905         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
906         if EXPAND_INITIALIZER.
907
908 2002-04-09  Richard Henderson  <rth@redhat.com>
909
910         * config/alpha/alpha.md (movdi_er_maybe_g): New.
911         * config/alpha/alpha.c (alpha_expand_mov): Use it.
912
913 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
914
915         PR optimization/6233
916         * rtlanal.c (pure_call_p): New function.
917         * rtl.h (pure_call_p): Declare.
918         * loop.c (prescan_loop): Use it to set has_nonconst_call.
919         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
920
921 2002-04-09  Eric Christopher  <echristo@redhat.com>
922
923         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
924         information to .comm directive.
925
926 2002-04-09  Richard Henderson  <rth@redhat.com>
927
928         PR c/5078
929         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
930
931 2002-04-09  Richard Henderson  <rth@redhat.com>
932
933         * basic-block.h (flow_delete_block_noexpunge): Declare.
934         (expunge_block_nocompact): Declare.
935         * cfg.c (expunge_block_nocompact): Split out from ...
936         (expunge_block): ... here.
937         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
938         (flow_delete_block_noexpunge): Split out from ...
939         (flow_delete_block): ... here.
940         * cfgcleanup.c (delete_unreachable_blocks): Compact while
941         removing dead blocks.
942         * except.c (exception_handler_labels): Remove.
943         (exception_handler_label_map): New.
944         (struct eh_region): Add aka member.
945         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
946         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
947         (for_each_eh_label, for_each_eh_label_1): New.
948         (init_eh): Register exception_handler_label_map.
949         (free_eh_status): Use free_region.
950         (find_exception_handler_labels): Use the map, not the list.
951         (remove_exception_handler_label): Likewise.
952         (maybe_remove_eh_handler): Likewise.
953         (remove_eh_handler): Use the region aka bitmap.
954         * except.h (exception_handler_labels): Remove.
955         (for_each_eh_label): Declare.
956         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
957         * loop.c (invalidate_loops_containing_label): New.
958         (find_and_verify_loops): Use it.  Use for_each_eh_label.
959         * sched-rgn.c (is_cfg_nonregular): Use
960         current_function_has_exception_handlers.
961
962 2002-04-09  Richard Henderson  <rth@redhat.com>
963
964         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
965         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
966         Do not return changed status.
967         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
968         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
969         New functions that do return changed status.
970         * sbitmap.h: Update decls.
971         * gcse.c, lcm.c: Use _cg functions as needed.
972
973 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
974
975         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
976         (sh64-*-elf*, sh-*-rtemself*): Likewise.
977         * config/sh/embed_bb.c: New file.
978         * config/sh/embed-elf.h: New file.
979         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
980         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
981         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
982         __PTRDIFF_TYPE__ .
983         (SUBTARGET_CPP_PTR_SPEC): Don't define.
984         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
985         Add subtarget_asm_endian_spec.
986         (ASM_SPEC): Use subtarget_asm_endian_spec.
987         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
988         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
989         (WCHAR_UNSIGNED): Define.
990         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
991         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
992         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
993         Fix value.
994         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
995         (sh_adjust_cost): Likewise.
996         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
997         __PTRDIFF_TYPE__ .
998         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
999         (WCHAR_TYPE_SIZE): Likewise.
1000         (ASM_SPEC): Use subtarget_asm_endian_spec.
1001         (SH_ELF_WCHAR_TYPE): #undef/ #define.
1002         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1003         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1004         (MAX_WCHAR_TYPE_SIZE): Don't #define .
1005         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1006         (USER_LABEL_PREFIX): Don't #undef /#define .
1007         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1008         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1009         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1010         (ASM_SPEC): Likewise.
1011         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1012         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1013         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1014         (LIB2FUNCS_EXTRA): Define.
1015         * t-sh64 (LIB2FUNCS_EXTRA): Define.
1016         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1017         (LIB1ASMFUNCS_CACHE): Define.
1018         (LIB2FUNCS_EXTRA): Redefine empty.
1019
1020 2002-04-08  Richard Henderson  <rth@redhat.com>
1021
1022         * reorg.c (get_branch_condition): Use reversed_comparison_code.
1023
1024 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1025
1026         * config/m68hc11/larith.asm (__map_data_section): Fix condition
1027         and optimize for size.
1028         (__do_global_ctors): Fix pointer comparison.
1029         (__do_global_dtors): Likewise.
1030
1031 2002-04-09  David S. Miller  <davem@redhat.com>
1032
1033         * config/sparc/sparc.c (sparc_extra_constraint_check): New
1034         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
1035         allow reloading pseudos.
1036         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1037         * config/sparc/sparc-protos.h: Declare it.
1038
1039         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1040         unsigned comparison warning.
1041         (output_restore_regs): Mark leaf_function as unused.
1042
1043 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1044
1045         * expr.c (is_aligning_offset): New function.
1046         (expand_expr, case COMPONENT_EXPR): Call it.
1047
1048 2002-04-08  David S. Miller  <davem@redhat.com>
1049
1050         PR target/6082
1051         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1052
1053         Make init_priority work on Sparc when using GNU ld.
1054         * config/sparc/linux.h, config/sparc/linux64.h,
1055         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1056         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1057         * config/sparc/sol2-gld.h: New file to do the same.
1058         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1059         sparc/sol2-gld.h to tm_file.
1060
1061         PR optimization/4328
1062         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1063         * doc/md.texi: Document it.
1064         * config/sparc/sparc.md (movdi_insn_sp64_novis,
1065         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1066         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1067         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1068         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1069
1070 2002-04-08  Andreas Jaeger  <aj@suse.de>
1071
1072         * stmt.c (expand_asm_operands): Revert last patch from Richard
1073         Henderson.
1074
1075 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1076
1077         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1078         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
1079
1080 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1081
1082         * doc/contrib.texi (Contributors): Add David O'Brien.
1083
1084 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1085
1086         * configure.in (auto-build.h): Use target_alias and build_alias
1087         when running configure.
1088         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1089         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1090         * configure: Regenerate.
1091
1092 2002-04-07  David S. Miller  <davem@redhat.com>
1093
1094         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1095
1096 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1097
1098         PR 5933
1099         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1100         generating 32-bit pic code.
1101
1102 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1103
1104         * cppinit.c (cpp_create_reader): Initialize
1105         discard_comments_in_macro_exp.
1106         (COMMAND_LINE_OPTIONS): Add "-CC" option.
1107         (cpp_handle_option): Handle "-CC" option.
1108         * cpplex.c (save_comment): If saving a C++ comment in
1109         a directive, convert it to a C comment.
1110         (_cpp_lex_direct): Pass second comment start character to
1111         save_comment to indicate comment type.
1112         * cpplib.c (_cpp_handle_directive): If processing
1113         a "#define" directive and discard_comments_in_macro_exp
1114         is false,  re-enable saving of comments.
1115         (lex_macro_node): If discard_comments_in_macro_exp is false,
1116         discard any comments before the macro identifier.
1117         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1118         member.
1119         * cppmacro.c (cpp_get_token): If expanding a macro while
1120         processing a directive, discard any comments we might encounter.
1121         (parse_params): If discard_comments_in_macro_exp is false,
1122         ignore comments in the macro parameter list.
1123         * gcc.c (cpp_unique_options): Add "-CC" option.
1124         (option_map): Map "--comments-in-macros" to "-CC".
1125         * doc/cppopts.texi: Document "-CC" option.
1126         * f/lang-specs.h: Add "-CC" option.
1127         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1128         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1129         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1130         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1131         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1132         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1133
1134 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1135
1136         PR middle-end/6180
1137         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1138
1139 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1140
1141         PR c++/5571
1142         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1143
1144         PR opt/5120
1145         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1146         RTX_UNCHANGING_P for the functions arguments when a tail call
1147         is made.
1148
1149 2002-04-06  Jason Merrill  <jason@redhat.com>
1150
1151         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1152         (parse_options_and_default_flags): Set them appropriately.
1153         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1154
1155 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1156
1157         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1158         here.
1159
1160         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1161         semicolon.
1162
1163         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1164         types come in by-reference.  Fix typo in comment.
1165
1166 2002-04-05  David S. Miller  <davem@redhat.com>
1167
1168         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1169         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1170         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1171         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1172
1173 2002-04-05  David S. Miller  <davem@redhat.com>
1174
1175         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1176         are not going to emit return instructions, emit at least a nop
1177         for the sake of sane backtraces.
1178
1179 2002-04-05  Richard Henderson  <rth@redhat.com>
1180
1181         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1182
1183 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1184
1185         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1186
1187 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1188
1189         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1190         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1191         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1192
1193 2002-04-05  Andreas Schwab  <schwab@suse.de>
1194
1195         * c-convert.c: Include c-common.h.
1196         * Makefile.in (c-convert.o): Updated.
1197
1198 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1199
1200         * mklibgcc.in: Use separate libgcc.map for each multilib.
1201         * Makefile.in (distclean): Don't remove libgcc.map here.
1202
1203 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1204
1205         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1206         genmultilib invocation.
1207
1208 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1209
1210         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1211         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1212         to num_gprs for symmetry.
1213         * config/mips/mips.c: Adjust accordingly.
1214
1215 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1216
1217         * c-common.c (truthvalue_conversion): Rename, update.
1218         * c-common.h (c_common_truthvalue_conversion): New.
1219         * c-convert.c (convert): Update.
1220         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1221         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1222         * c-typeck.c (build_binary_op, build_unary_op,
1223         build_conditional_expr): Update.
1224         * fold-const.c (constant_boolean_node, fold): Use langhook.
1225         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1226         * langhooks.h (struct lang_hooks): New hook.
1227         * stmt.c (expand_decl_cleanup): Use langhook.
1228         * tree.h (truthvalue_conversion): Remove.
1229 objc:
1230         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1231
1232 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1233
1234         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1235         Add rules to make null object file.
1236
1237 2002-04-04  Jim Blandy  <jimb@redhat.com>
1238
1239         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1240         macro formal parameter names.
1241
1242 2002-04-04  David S. Miller  <davem@redhat.com>
1243
1244         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1245
1246 2002-04-04  Richard Henderson  <rth@redhat.com>
1247
1248         PR middle-end/5099
1249         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1250         Support copies into and out of memory.  Don't accept allows_reg
1251         and allows_mem as gospel.
1252
1253 2002-04-04  Richard Henderson  <rth@redhat.com>
1254
1255         PR opt/6165
1256         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1257         (write_dependence_p): Likewise.
1258
1259 2002-04-04  Richard Henderson  <rth@redhat.com>
1260
1261         * predict.c (estimate_bb_frequencies): Do frequency calculation
1262         with a volatile temporary.
1263
1264 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1265
1266         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1267
1268 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1269
1270         PR c++/6119
1271         * final.c (final_start_function): Don't bump profile_label_no here...
1272         (final_end_function): ...but here.
1273
1274 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1275
1276         * config/sparc/sparc.md (pic): New attribute.
1277         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1278         into stack slots.
1279         (split after do_builtin_setjmp_setup): New.
1280
1281 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1282
1283         PR fortran/6106
1284         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1285         change.
1286
1287 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1288
1289         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1290         UNITS_PER_WORD for zero sized aggregates.
1291
1292 2002-04-03  David S. Miller  <davem@redhat.com>
1293
1294         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1295         one-character spec for this, just use %(link_gcc_c_sequence).
1296
1297 2002-04-03  David S. Miller  <davem@redhat.com>
1298
1299         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1300         handling.
1301
1302 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1303
1304         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1305         (DWARF_FRAME_RETURN_COLUMN): Move.
1306         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1307         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1308         * pa.c (except.h, predict.h): Include.
1309         (FRP): Delete.
1310         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1311         (output_ascii): Add cast.
1312         (store_reg_modify): Revise to add frame notes.
1313         (set_reg_plus_d): Likewise.
1314         (compute_frame_size): Include space for eh data registers in frame if
1315         the current function calls eh_return.
1316         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1317         function calls eh_return.  Save eh data registers if the current
1318         function calls eh_return.  Fix code to add frame notes.  Emit
1319         blockage to prevent insns with frame notes being scheduled in the
1320         delay slot of calls.
1321         (hppa_expand_epilogue): Restore eh data registers and do final stack
1322         adjustment if the current function calls eh_return.  Don't add frame
1323         notes.
1324         (output_call): Revise for change in length of call insn.  Don't do
1325         return pointer adjustment for an unconditional jump in the delay slot
1326         of a call when using frame notes.
1327         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1328         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1329         (ARG_POINTER_CFA_OFFSET): Define.
1330         * pa.md (return_external_pic): New pattern.
1331         (prologue): Correct formatting.  Use return_external_pic if current
1332         function calls eh_return.
1333         (call_internal_symref, call_value_internal_symref,
1334         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1335         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1336         respectively.
1337         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1338
1339         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1340         list of targets to check using "nop" insn.
1341         * configure: Rebuilt.
1342
1343 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1344
1345         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1346
1347 2002-04-03  David S. Miller  <davem@redhat.com>
1348
1349         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1350         library sequence passed to the linker.
1351         (LINK_COMMAND_SPEC): Use it.
1352         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1353         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1354         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1355
1356 2002-04-03  Jason Merrill  <jason@redhat.com>
1357
1358         * except.c (struct eh_status): Remove protect_list.
1359         (begin_protect_partials, end_protect_partials): Remove.
1360         (add_partial_entry): Remove.
1361         * except.h: Remove prototypes.
1362
1363         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1364         expand_decl_cleanup_eh.
1365
1366         PR c++/5636
1367         * tree.h (CLEANUP_EH_ONLY): New macro.
1368         * stmt.c (expand_decl_cleanup_eh): New fn.
1369         (expand_cleanups): Check CLEANUP_EH_ONLY.
1370         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1371         Use expand_decl_cleanup_eh.
1372         (expand_stmt): Adjust.
1373         * c-common.h: Adjust prototype.
1374
1375 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1376
1377         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1378         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1379         (cris_target_asm_function_epilogue): Ditto.
1380         (cris_initial_frame_pointer_offset): Ditto.
1381         (cris_simple_epilogue): Ditto.
1382         (cris_expand_builtin_va_arg): Variable-size types come in
1383         by-reference.
1384
1385 2002-04-03  David S. Miller  <davem@redhat.com>
1386
1387         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1388         little-endian.
1389         (set_fast_math): Correct 'fsr' type.
1390
1391 2002-04-03  Richard Henderson  <rth@redhat.com>
1392
1393         PR opt/3569
1394         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1395         * toplev.c (check_global_declarations): Use it.
1396         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1397         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1398         (LANG_HOOKS_DECLS): Add it.
1399         * langhooks.c (lhd_warn_unused_global_decl): New.
1400         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1401         * c-objc-common.c (c_warn_unused_global_decl): New.
1402         * c-tree.h (c_warn_unused_global_decl): Declare.
1403         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1404
1405 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1406
1407         * langhooks-def.h (lhd_set_decl_assembler_name,
1408         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1409         (LANG_HOOKS_INITIALIZER): Update.
1410         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1411         * langhooks.h (struct lang_hooks): New hook.
1412         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1413         (lang_set_decl_assembler_name): Remove.
1414         (init_obstacks): Don't set hook.
1415         (decl_assembler_name): New function.
1416         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1417         (decl_assembler_name): New.
1418         (lang_set_decl_assembler_name): Remove.
1419
1420 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1421
1422         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1423         works properly with .hidden symbols.
1424         * configure: Rebuilt.
1425         * config.in: Rebuilt.
1426         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1427         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1428         properly with .hidden symbols.
1429
1430 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1431
1432         PR middle-end/6102
1433         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1434         USE argument.
1435
1436 2002-04-03  Richard Henderson  <rth@redhat.com>
1437
1438         PR opt/4120
1439         * sched-rgn.c (sets_likely_spilled): New.
1440         (sets_likely_spilled_1): New.
1441         (add_branch_dependences): Use it.
1442
1443 2002-04-02  Richard Henderson  <rth@redhat.com>
1444
1445         PR opt/4311
1446         * loop.h (LOOP_FIRST_PASS): New.
1447         * loop.c (strength_reduce): Mind it when deciding to unroll.
1448         * toplev.c (rest_of_compilation): Set it.
1449
1450 2002-04-02  David S. Miller  <davem@redhat.com>
1451
1452         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1453         mems_ok_for_ldd_peep when the order of the loads being examined
1454         is reversed.
1455         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1456         existing comment to increase comprehension of this situation.
1457
1458 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1459
1460         * config/sh/sh.md: Don't use union real_extract.
1461
1462 2002-04-02  Richard Henderson  <rth@redhat.com>
1463
1464         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1465
1466 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1467
1468         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1469         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1470         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1471         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1472         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1473         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1474         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1475         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1476         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1477         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1478         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1479         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1480         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1481         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1482         Include as many configury headers via tm_file as possible.  This
1483         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1484         * config/openbsd-oldgas.h: New file.
1485         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1486         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1487         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1488         config/i386/i386-coff.h, config/i386/i386-interix.h,
1489         config/i386/iscdbx.h, config/i386/linux-aout.h,
1490         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1491         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1492         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1493         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1494         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1495         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1496         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1497         config/i386/vxi386.h: Do not directly include configury headers.
1498         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1499         Directly include configury headers that are no longer automatically
1500         included by the above headers.
1501         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1502         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1503         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1504         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1505         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1506         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1507         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1508         (TARGET_VERSION): Define.
1509         * config/i386/beos-elf.h, config/i386/freebsd.h,
1510         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1511         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1512         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1513         config/i386/sco5.h, config/i386/sysv4.h
1514         (TARGET_VERSION): Do not need to protect.
1515         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1516         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1517         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1518         config/i386/i386-interix.h, config/i386/linux-aout.h,
1519         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1520         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1521         (YES_UNDERSCORES): Do not define - not needed.
1522         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1523         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1524         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1525         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1526         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1527         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1528         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1529         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1530
1531 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1532             Richard Henderson  <rth@redhat.com>
1533
1534         PR c/5484
1535         * function.c (assign_temp): Accept either type or decl argument.
1536         Detect variables whose size is too large to fit into an integer.
1537         * stmt.c (expand_decl): Pass the decl, not the type.
1538
1539 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1540
1541         * protoize.c: Match include directory usage with cppdefault.c.
1542
1543 2002-04-03  Jeffrey A Law  (law@redhat.com)
1544             Hans-Peter Nilsson  <hp@bitrange.com>
1545
1546         * combine.c (simplify_comparison): Avoid narrowing a comparison
1547         with a paradoxical subreg when doing so would drop signficant bits.
1548
1549 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1550
1551         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1552         if POINTERS_EXTEND_UNSIGNED is defined.
1553
1554 2002-04-02  Richard Henderson  <rth@redhat.com>
1555
1556         PR opt/3967
1557         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1558         replace regs.
1559
1560 2002-04-02  Richard Henderson  <rth@redhat.com>
1561
1562         * doc/standards.texi: Document required freestanding libc entry points.
1563
1564 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1565
1566         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1567         associated splitter.  Remove MQ constraint.
1568         (ctrdi_internal4): Correct CCmode clobber.
1569
1570 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1571
1572         * milli64.S ($$dyncall): New function.
1573         * t-linux (LIB1ASMFUNCS): Revise module list.
1574         (LIB1ASMSRC): Use pa/milli64.S.
1575
1576 2002-04-02  Richard Henderson  <rth@redhat.com>
1577
1578         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1579         rename solaris_sys_varargs_h.
1580
1581 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1582
1583         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1584         the same mode as its component.
1585
1586 2002-04-02  Richard Henderson  <rth@redhat.com>
1587
1588         PR opt/190
1589         * final.c (this_is_asm_operands): Export.
1590         * output.h (this_is_asm_operands): Declare.
1591         * config/i386/i386.c (print_operand): Error odd asm operands.
1592
1593 2002-04-02  Richard Henderson  <rth@redhat.com>
1594
1595         PR opt/420
1596         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1597
1598 2002-04-01  Richard Henderson  <rth@redhat.com>
1599
1600         PR target/1538
1601         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1602         * fixinc/fixincl.x: Rebuild.
1603
1604 2002-04-01  Richard Henderson  <rth@redhat.com>
1605
1606         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1607         (atomic_alloc, atomic_free): New.
1608         (SIZE, MASK_FOR, PTR_IN): New.
1609         (emergency_reg_state, emergency_reg_state_free): New.
1610         (emergency_labeled_state, emergency_labeled_state_free): New.
1611         (reg_state_alloced, labeled_state_alloced): New.
1612         (alloc_reg_state, free_reg_state): New.
1613         (alloc_label_state, free_label_state, free_label_states): New.
1614         (push, pop, dup_state_stack, free_state_stack): Use them.
1615         (desc_label_state): Likewise.
1616         (uw_frame_state_for): Free label states and state stack.
1617         (uw_update_reg_address): Eliminate warnings.
1618
1619 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1620
1621         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1622         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1623
1624 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1625
1626         * c-decl.c (grokdeclarator): Update.
1627         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1628         * c-tree.h (c_mark_addressable): New.
1629         * c-typeck.c (default_function_array_conversion, build_unary_op,
1630         build_array_ref, convert_for_assignment): Update.
1631         (mark_addressable): Rename.
1632         * calls.c (try_to_integrate, expand_call): Use langhook.
1633         * expr.c (expand_expr): Use langhook.
1634         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1635         * langhooks.h (struct lang_hooks): New hook.
1636         * stmt.c (expand_asm_operands): Use langhook.
1637         * tree.h (mark_addressable): Remove.
1638 objc:
1639         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1640
1641 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1642
1643         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1644         in previous change.
1645
1646 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1647
1648         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1649         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1650
1651 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1652
1653         * c-common.c (unsigned_conversion_warning, convert_and_check,
1654         unsigned_type, signed_type, shorten_compare,
1655         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1656         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1657         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1658         New.
1659         * c-decl.c (grokdeclarator): Update.
1660         * c-format.c (check_format_types): Update.
1661         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1662         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1663         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1664         * convert.c (convert_to_integer): Use new hooks.
1665         * expmed.c (make_tree): Use new hooks.
1666         * expr.c (store_expr): Use new hooks.
1667         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1668         all_ones_mask_p, unextend, fold): Use new hooks.
1669         * langhooks.h (struct lang_hooks_for_types): New hooks.
1670         * tree.h (signed_or_unsigned_type, signed_type,
1671         unsigned_type): Remove.
1672 objc:
1673         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1674         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1675
1676 2002-03-31  Richard Henderson  <rth@redhat.com>
1677
1678         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1679         (desc_frgr_mem): Fix reference to f16-f31.
1680
1681 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1682
1683         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1684         RTVEC_ELT): Const-ify.
1685         * varray.h (VARRAY_CHECK): Const-ify.
1686         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1687         ggc_mark_rtvec, ggc_mark): Const-ify.
1688
1689 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1690
1691         * diagnostic.c: Include langhooks-def.h.
1692         * Makefile.in (diagnostic.o): Update.
1693
1694 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1695
1696         * c-common.c (c_unsafe_for_reeval): Rename.
1697         * c-common.h (c_unsafe_for_reeval): Rename.
1698         * c-decl.c (finish_incomplete_decl): Rename.
1699         (c_init_decl_processing): Don't set langhook.
1700         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1701         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1702         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1703         * c-tree.h (finish_incomplete_decl): Rename.
1704         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1705         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1706         (LANG_HOOKS_INITIALIZER): Update.
1707         * langhooks.c (lhd_unsafe_For_reeval): New.
1708         * langhooks.h (struct langhooks): New hooks.
1709         * toplev.c (incomplete_decl_finalize_hook): Remove.
1710         (wrapup_global_declarations): Update.
1711         * tree.c (lang_unsafe_for_reeval): Remove.
1712         (unsafe_for_reeval): Update.
1713         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1714         Remove.
1715 objc:
1716         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1717         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1718
1719 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1720
1721         * diagnostic.c (print_error_function): Remove.
1722         (default_print_error_function): Rename.
1723         (report_error_function): Update.
1724         * diagnostic.h (print_error_function): Remove.
1725         (default_print_error_function): Remove.
1726         * langhooks-def.h (struct diagnostic_context): Predeclare.
1727         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1728         (LANG_HOOKS_INITIALIZER): Update.
1729         * langhooks.h (struct diagnostic context): Predeclare.
1730         (struct lang_hooks): New hook.
1731
1732 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1733
1734         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1735         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1736         !flag_pic.
1737         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1738         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1739         of PIC_OFFSET_TABLE_REGNUM thruout.
1740         * config/rs6000/rs6000.md: Likewise.
1741         * config/rs6000/darwin.h: Likewise.
1742
1743 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1744
1745         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1746         unsigned HOST_WIDE_INT, not unsigned int.
1747
1748 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1749
1750         PR middle-end/6096, middle-end/6098, middle-end/6099
1751         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1752         CODE_LABELs.
1753         (fill_slots_from_thread): Likewise.
1754
1755 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1756
1757         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1758         floating fields in float regs.
1759         (function_arg_record_value_2): Likewise.
1760
1761 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1762
1763         * config/mmix/mmix.md (define_constants): Remove misleading
1764         FIXME.  Add MMIX_fp_rO_OFFSET.
1765         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1766         saved rO as part of the pattern.  Remove FIXME.
1767         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1768         here, at output-time.
1769
1770 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1771
1772         PR middle-end/6100
1773         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1774         REG_BR_PRED.
1775         (output_v9branch): Likewise.
1776
1777 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1778
1779         * gcc.c: Revert previous patch for now.
1780         * config/i386/djgpp.h: Likewise.
1781
1782 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1783
1784         * config/mmix/crti.asm (_init): Register _fini with atexit.
1785         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1786
1787 2002-03-31  Richard Henderson  <rth@redhat.com>
1788
1789         PR target/3997
1790         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1791         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1792
1793 2002-03-31  Richard Henderson  <rth@redhat.com>
1794
1795         * libgcc2.c (__bb_exit_func): Make static.
1796
1797         * config/alpha/alpha.md (trap): New.
1798
1799 2002-03-31  Richard Henderson  <rth@redhat.com>
1800
1801         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1802         promoted argument types; build trap.
1803         (expand_builtin_trap): New.
1804         (expand_builtin): Use it.
1805         * stmt.c (expand_nl_goto_receivers): Likewise.
1806         * expr.h (expand_builtin_trap): Declare.
1807         * libfuncs.h (LTI_abort, abort_libfunc): New.
1808         * optabs.c (init_optabs): Init abort_libfunc.
1809
1810 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1811
1812         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1813         (LINK_COMMAND_SPEC): ... from here.
1814         (init_gcc_specs): Duplicate it here too, omitting
1815         shared_name in the second copy.
1816         (init_spec): Test for duplicate
1817         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1818
1819 2002-03-30  David S. Miller  <davem@redhat.com>
1820
1821         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1822         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1823
1824 2002-03-30  Roger Sayle <roger@eyesopen.com>
1825             Richard Henderson  <rth@redhat.com>
1826
1827         * regmove.c (combine_stack_adjustments_for_block): Avoid
1828         emitting a stack adjustment of zero bytes.  Let delete_insn
1829         update bb->head.
1830
1831 2002-03-30  Richard Henderson  <rth@redhat.com>
1832
1833         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1834         (sparc_emitting_epilogue): New.
1835         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1836         * config/sparc/sparc-protos.h: Update.
1837         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1838         (TARGET_SWITCHES): Update.
1839         * config/sparc/sparc.md (return): Remove.
1840         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1841         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1842         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1843         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1844         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1845         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1846         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1847         Remove MASK_EPILOGUE.
1848         * doc/invoke.texi: Update.
1849
1850 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1851
1852         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1853         CPP will start the file for us.
1854
1855 2002-03-30  Richard Henderson  <rth@redhat.com>
1856
1857         PR target/5446
1858         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1859         prologue_allocate_stack.
1860         (ia64_single_set): Use insn codes for recognition of special
1861         cases, not rtl matching.
1862         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1863
1864 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1865
1866         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1867
1868 2002-03-30  Richard Henderson  <rth@redhat.com>
1869
1870         PR target/6032
1871         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1872         or -fomit-frame-pointer with profiling.
1873         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1874         (FUNCTION_PROFILER): Do nothing.
1875         (PROFILE_HOOK): New.
1876         * config/sparc/sparc.c (sparc_override_options): Don't check
1877         code models for profiling.
1878         (sparc_function_profiler): Remove.
1879         (sparc_profile_hook): New.
1880         * config/sparc/sparc-protos.h: Update.
1881
1882 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1883
1884         PR optimization/6086
1885         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1886         of SUBREG of volatile MEM or because the MEM was mode dependent,
1887         return CLOBBER instead of unmodified SUBREG.
1888
1889 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1890
1891         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1892         when not optimizing.
1893
1894         * toplev.c (rest_of_compilation): Cann mark_constant_function
1895         only when optimizing.
1896
1897         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1898         are NULL.
1899
1900         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1901         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1902         (try_optimize_cfg): clear all AUX fields.
1903
1904         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1905         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1906         (ix86_address_cost): Be prepared for SUBREGed registers.
1907         (legitimate_address_p): Accept SUBREGed registers.
1908
1909 2002-03-29  Richard Henderson  <rth@redhat.com>
1910
1911         PR target/5672
1912         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1913
1914 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1915
1916         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1917         for aggregate and TFmode types.
1918
1919 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1920
1921         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1922
1923 2002-03-29  Richard Henderson  <rth@redhat.com>
1924
1925         PR target/5886
1926         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1927         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1928
1929 2002-03-29  Richard Henderson  <rth@redhat.com>
1930
1931         PR target/6041
1932         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1933         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1934         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1935         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1936         conditional.
1937         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1938
1939 2002-03-29  Dale Johannesen <dalej@apple.com>
1940
1941         * loop.c (combine_movables): Do allow combination of pseudos.
1942
1943 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
1944
1945         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1946         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1947         No functional change except ...
1948         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
1949         * doc/install.texi (*-*-freebsd*): Document port configuration.
1950
1951 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1952
1953         * Makefile.in (convert.o, calls.o, expmed.o): Update.
1954         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1955         Use new hooks.
1956         * builtin-types.def (BT_PTRMODE): Update.
1957         * c-common.c (type_for_size): Rename c_common_type_for_size.
1958         (type_for_mode): Similarly.
1959         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1960         Use new hook.
1961         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1962         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1963         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1964         Redefine.
1965         * c-typeck.c (common_type, comptypes, default_conversion):
1966         Use new hooks.
1967         * calls.c: Include langhooks.h.
1968         (emit_library_call_value_1): Use new hooks.  Avoid redundant
1969         calls.
1970         * convert.c: Include langhooks.h
1971         (convert_to_pointer, convert_to_integer): Use new hooks.
1972         * except.c (init_eh): Similarly.
1973         * expmed.c: Include langhooks.h.
1974         (expand_mult_add): Use new hooks.
1975         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1976         try_casesi): Similarly.
1977         * fold-const.c (optimize_bit_field_compare, make_range,
1978         decode_field_reference, fold_truthop, fold): Similarly.
1979         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1980         put_var_into_stack): Similarly.
1981         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1982         LANG_HOOKS_TYPE_FOR_SIZE): New.
1983         (LANG_HOOKS_TYPES_INITIALIZER): Update.
1984         * langhooks.h (lang_hooks_for_types): New hooks.
1985         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1986         * tree.c (get_unwidened, get_narrower): Similarly.
1987         * tree.h (type_for_mode, type_for_size): Remove.
1988         * varasm.c (force_const_mem): Use new hooks.
1989         * utils2.c (nonbinary_modular_operation): Update.
1990 objc:
1991         * objc-act.c (handle_impent): Update.
1992         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1993         Redefine.
1994
1995 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
1996
1997         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1998         * config/ia64/ia64.c (basereg_operand): New.
1999         * config/ia64/ia64-protos.h (basereg_operand): Declare.
2000         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2001
2002 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2003
2004         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2005         unwind information when frame_pointer_needed.
2006         (mmix_assemble_integer): Tweak wording in comment.
2007
2008 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2009
2010         * Makefile.in (except.o): Update.
2011         * except.c: Include langhooks.h.
2012         (init_eh): Use langhook.
2013         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2014         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2015         (LANG_HOOKS_INITIALIZER): Update.
2016         * langhooks.h (lang_hooks_for_types): New.
2017         (struct lang_hooks): Add it.
2018         * tree.c (make_lang_type_fn, make_lang_type): Remove.
2019         * tree.h (make_lang_type_fn, make_lang_type): Remove.
2020 config:
2021         * alpha/alpha.c: Include langhooks.h.
2022         (alpha_build_va_list): Use langhook.
2023         * d30v/d30v.c: Include langhooks.h.
2024         (d30v_build_va_list): Use langhook.
2025         * i386/i386.c: Include langhooks.h.
2026         (ix86_build_va_list): Use langhook.
2027         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2028         * s390/s390.c: Include langhooks.h.
2029         (s390_build_va_list): Use langhook.
2030         * stormy16/stormy16.c: Include langhooks.h.
2031         (stormy16_build_va_list): Use langhook.
2032
2033 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2034
2035         PR c++/5964
2036         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2037         attributes.
2038         (length): Compute variable length for branches/calls/jumps here.
2039         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2040         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2041         define branch_type attribute.
2042         (divsi3_sp32): Maximum length is 6 not 7.
2043         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2044         call_address_untyped_struct_value_sp32,
2045         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2046         * config/sparc/sparc.c (empty_delay_slot): New function.
2047         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2048         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2049
2050 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2051
2052         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2053         nonzero_bits if not needed.
2054         (nonzero_bits) [XOR]: Likewise.
2055         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2056         reg_last_set_mode and mode are both MODE_INT, but not equal.
2057         (record_value_for_reg): Compute reg_last_set_nonzero_bits
2058         in nonzero_bits_mode for MODE_INT modes.
2059
2060 2002-03-28  Richard Henderson  <rth@redhat.com>
2061
2062         PR target/5715
2063         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2064         to GAS.  Correct drift between alternatives.
2065
2066 2002-03-28  Richard Henderson  <rth@redhat.com>
2067
2068         PR target/6087
2069         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2070
2071 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
2072
2073         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2074         emulation to the linker.
2075
2076 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
2077
2078         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2079         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2080
2081 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
2082
2083         * combine.c (simplify_and_const_int): Make sure to apply mask
2084         when force_to_mode returns a constant integer.  PR3311.
2085
2086 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2087
2088         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2089
2090 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2091
2092         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2093         and Objective-C Dialect Options.
2094
2095 2002-03-28  Richard Henderson  <rth@redhat.com>
2096
2097         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2098         comparison should be done vs !=0 not >0 return code.  Tidy cases.
2099
2100 2002-03-28  Richard Henderson  <rth@redhat.com>
2101
2102         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
2103         on to c_expand_body.
2104         * c-tree.h (finish_function): Update decl.
2105         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2106
2107 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2108
2109         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2110
2111 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
2112
2113         * rtlanal.c: Include flags.h
2114         (may_trap_p): Do not mark FP operations if trapping
2115         if !flag_trapping_math
2116         * Makefile.in (rtlanal.o): Add dependency on flag.h
2117         * ifcvt.c (noce_operand_ok): Avoid the lameness.
2118
2119 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
2120
2121         * mips.md: Use dconst1, not 1.0, as first argument of
2122         REAL_VALUE_LDEXP.  Don't use union real_extract.
2123
2124 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2125
2126         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2127         rather than $target.  Heed program_prefix and
2128         program_transform_name.  Search for gas in cross-compiler case too.
2129         "test -x" rather than "test -f".
2130         (gcc_cv_ld): Likewise.
2131         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2132         (gcc_cv_objdump): Likewise.
2133         * configure: Regenerate.
2134
2135 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2136
2137         * Makefile.in (attribs.o): Update.
2138         * attribs.c: Include langhooks.h.
2139         (decl_attributes): Use langhook.
2140         * c-decl.c (insert_default_attributes): Rename.
2141         * c-tree.h (c_insert_default_attributes): New.
2142         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2143         (LANG_HOOKS_INITIALIZER): Update.
2144         * langhooks.h (struct lang_hooks): New hook.
2145         * tree.h (insert_default_attributes): Remove.
2146 objc:
2147         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2148
2149 2002-03-27  Andreas Schwab  <schwab@suse.de>
2150
2151         * config/i386/i386.c (classify_argument): Also check for
2152         QUAL_UNION_TYPE.
2153
2154 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2155
2156         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2157         any more.
2158
2159 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2160
2161         * i960.md (ret): Set PC.
2162         (nonlocal_goto): Fix expander.
2163         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2164         some jump or call.
2165
2166 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2167
2168         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2169         of libcall regions.
2170
2171 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2172
2173         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2174         assigning to BLOCK_FOR_INSN directly.
2175
2176 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2177
2178         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2179
2180 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2181
2182         * c-common.c (c_expand_expr): Fix prototype.
2183         * c-common.h (c_expand_expr): Always declare, update.
2184         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2185         * c-objc-common.c (c_objc_common_init): No global hook.
2186         * expr.c (expand_expr): Use langhook.
2187         * expr.h (enum expand_modifier): Conditionally declare.
2188         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2189         (LANG_HOOKS_INITIALIZER): Update.
2190         * langhooks.c (lhd_expand_expr): New.
2191         * langhooks.h (struct lang_hooks): New hook.
2192         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2193         (lang_independent_init): Don't default hook.
2194 objc:
2195         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2196
2197 2002-03-27  Richard Henderson  <rth@redhat.com>
2198
2199         PR target/6054
2200         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2201         TARGET_CONST_GP.  Simplify conditions.
2202
2203 2002-03-27  Richard Henderson  <rth@redhat.com>
2204
2205         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2206         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2207         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2208
2209 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2210
2211         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2212         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2213         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2214         Remove unnecessary masks.
2215         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2216         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2217         -mwindows, -mdll switches and their negations.
2218
2219 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2220
2221         * gcc-common.c (lang_mark_false_label_stack): Remove.
2222         * ggc.h (lang_mark_false_label_stack): Similarly.
2223
2224 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2225
2226         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2227
2228         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2229         or __rtems_ is defined.
2230
2231 2002-03-26  Richard Henderson  <rth@redhat.com>
2232
2233         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2234         if a non-trivial load was emitted.
2235         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2236         in high+extra+low case.
2237
2238 2002-03-26  Richard Henderson  <rth@redhat.com>
2239
2240         * config.gcc (sparc*-solaris): Use float_format=sparc.
2241
2242 2002-03-26  Richard Henderson  <rth@redhat.com>
2243
2244         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2245         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2246         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2247         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2248         (WINT_TYPE_SIZE): Fix at 32.
2249
2250 2002-03-26  Richard Henderson  <rth@redhat.com>
2251
2252         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2253         until after eh landing pad generation.
2254         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2255         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2256
2257 2002-03-26  Richard Henderson  <rth@redhat.com>
2258
2259         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2260
2261 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2262
2263         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2264         and warning switches.
2265         (cc1_options):  Likewise.
2266
2267 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2268
2269         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2270         Restore more of the signal context.  Set no_reg_stack_frame.
2271         * config/ia64/unwind-ia64.c (unw_state_record):
2272         Add no_reg_stack_frame, comments.
2273         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2274         (uw_update_context): Adjust bsp when unwinding from leaf,
2275         but not signal frame.
2276
2277 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2278
2279         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2280
2281 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2282
2283         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2284
2285 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2286
2287         PR target/5621
2288         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2289         "Add a pool_range attribute", which was lost during the ARM/Thumb
2290         merge.
2291
2292 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2293
2294         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2295         a register into the MAC16 accumulator.
2296
2297 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2298
2299         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2300         (Warning Options): Document -Wswitch-enum.
2301         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2302         -Wswitch.
2303         (warn_switch_enum): Define variables.
2304         * flags.h (warn_switch_enum): Declare variables.
2305         * stmt.c (expand_end_case_type): When warn_switch_enum /
2306         -Wswitch-enum, perform switch checks.
2307         Fix PR c/5044.
2308
2309 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2310
2311         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2312         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2313         (reload_muladdsi_compare0_scratch): Delete.
2314
2315 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2316
2317         * doc/install.texi (*-*-freebsd*): Update.
2318
2319 2002-03-26  Richard Henderson  <rth@redhat.com>
2320
2321         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2322         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2323
2324         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2325         types from the normal argument frame.
2326
2327         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2328         variable sized objects by reference.
2329         (sparc_va_arg): Receive them by reference too.
2330
2331 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2332
2333         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2334         code to not restoring global registers.
2335
2336 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2337
2338         * Makefile.in (ggc-common.o): Update.
2339         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2340         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2341         * c-tree.h (c_mark_tree): New.
2342         * ggc-common.c: Include langhooks.h.
2343         (gcc_mark_trees): Use new langhook.
2344         * ggc-callbacks.c: Delete file.
2345         * ggc.h (lang_mark_tree): Remove.
2346         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2347         (LANG_HOOKS_INITIALIZER): Update.
2348         * langhooks.h (struct lang_hooks): New hook.
2349 objc:
2350         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2351
2352 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2353
2354         * doc/cpp.texi: Exclude entire Top node from printed manual.
2355         Move option index after directive index.  Insert page breaks
2356         before GFDL and concept index.  Index environment variables
2357         with command line options.
2358         * doc/cppenv.texi: Use @vtable for environment variable list.
2359         Add paragraph explaining semantics of empty elements in path
2360         variables.  Exclude a cross-reference to Fishkill from the
2361         manpage.  Remove an unnecessary cross-reference of the entry
2362         right above the referer.  Don't use @anchor in text that goes
2363         into manpage.
2364         * doc/cppopts.texi: Cross-reference the environment variables
2365         section, not the specific environment variable, for consistency.
2366
2367 2002-03-25  Richard Henderson  <rth@redhat.com>
2368
2369         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2370         anywhere in the block.  Don't refer to insns that have been
2371         removed from the chain.  Iterate backward through the new insns.
2372         Don't refer to edges that have been removed.
2373
2374 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2375
2376         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2377         test for overflow of constant.
2378
2379 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2380
2381         PR target/2623
2382         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2383         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2384         these patterns on arm_archv4.
2385
2386 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2387
2388         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2389         int".
2390
2391 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2392
2393         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2394         float_handled, float_handler, float_signal, set_float_handler,
2395         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2396         * toplev.h: Don't prototype do_float_handler.
2397
2398         * c-lex.c: Fold parse_float into lex_number.  Make warning
2399         about portability of hex float constants more informative, and
2400         don't issue it on top of a syntax error.
2401         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2402         their callers.
2403         * real.h: Define REAL_VALUE_ABS here...
2404         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2405         simplify_unary_real, simplify_binary_real, and
2406         simplify_binary_is2orm1 into their callers.
2407         * tree.c: Fold build_real_from_int_cst_1 into caller.
2408
2409         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2410
2411         * tsystem.h: Include float.h here...
2412         * libgcc2.c: ... not here.
2413
2414 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2415
2416         Fixes for: PR bootstrap/3591, target/5676
2417         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2418         defined.  Do not disable exceptions or rtti.
2419         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2420         mcore.h.  Disable exceptions and rtti, since they are not
2421         supported by EPOC.
2422
2423 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2424
2425         * c-decl.c (maybe_build_cleanup): Remove.
2426         * expr.c (expand_expr): Use langhook.
2427         * langhooks-def.h (lhd_return_null_tree,
2428         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2429         (LANGHOOKS_INITIALIZER): Update.
2430         * langhooks.c (lhd_return_null_tree): New.
2431         * langhooks.h (struct lang_hooks): New hook.
2432         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2433         * tree.h (maybe_build_cleanup): Remove.
2434
2435 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2436
2437         * regrename.c (build_def_use): Move recog_memoized
2438         before extract_insn.
2439
2440 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2441
2442         PR target/6043
2443         * expr.c (emit_group_store): Handle storing into CONCAT.
2444
2445 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2446
2447         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2448         corresponding MATCH_DUP.
2449
2450 2002-03-24  Richard Henderson  <rth@redhat.com>
2451
2452         * unroll.c (unroll_loop): Zero label_map.
2453
2454         * gcse.c: Include except.h.
2455         * Makefile.in (gcse.o): Update.
2456
2457 2002-03-24  Richard Henderson  <rth@redhat.com>
2458
2459         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2460         Do resolve_unique_section before shared data clause.
2461
2462 2002-03-24  Richard Henderson  <rth@redhat.com>
2463
2464         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2465
2466 2002-03-24  Richard Henderson  <rth@redhat.com>
2467
2468         * recog.c (peephole2_optimize): Split blocks when EH insns are
2469         generated in the middle of a block.  Do global life update if
2470         zapped EH edges.
2471
2472 2002-03-24  Richard Henderson  <rth@redhat.com>
2473
2474         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2475
2476 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2477
2478         preprocessor/3951
2479         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2480         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2481         (init_dependency_output): Don't make no_output decision here.
2482
2483 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2484
2485         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2486         warn_switch.  Update description.
2487         (expand_end_case_type): Call check_for_full_enumeration_handling
2488         when warn_switch.
2489
2490 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2491
2492         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2493         (m68hc11_split_move): Call it to see if the source and destination
2494         operands use the same direction auto inc/dec mode, otherwise make the
2495         source an offsetable memory operand and generate an add.
2496
2497 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2498
2499         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2500         register for operand 2.
2501         ("*subsi3_zero_extendqi"): Likewise.
2502         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2503         bits so that it is compatible with a pop.
2504         ("*andhi3_gen"): Likewise.
2505         ("xorhi3"): Likewise.
2506
2507 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2508
2509         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2510         -pedantic here...
2511         (cpp_post_options): ... not here.
2512
2513 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2514             Aldy Hernandez  <aldyh@redhat.com>
2515
2516         Removal of separate preprocessor cpp0.
2517
2518         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2519         cpp0, install-common): Update.
2520         * c-common.c (flag_preprocess_only): New.
2521         (c_common_init): Preprocess for -E.
2522         * c-common.h (flag_preprocess_only): New.
2523         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2524         * c-objc-common.c (c_init_decl_processing): Exit quickly
2525         for NULL return from c_common_init.
2526         * cpplib.h (cpp_preprocess_file): New.
2527         * cppmain.c (main, general_init, pfile, progname): Remove.
2528         (do_preprocessing): Rename cpp_preprocess_file, don't call
2529         cpp_finish.  Don't close stdout here.
2530         (setup_callbacks): Update prototype.
2531         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2532         Update.
2533         * tradcpp.c (main): Ignore -quiet.
2534 objc:
2535         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2536
2537 2002-03-24  Richard Henderson  <rth@redhat.com>
2538
2539         PR optimization/5742
2540         * machmode.def: Add inner mode field to complex modes.
2541         * config/mips/mips.c (mips_function_value): Always define.  Add
2542         new argument to handle libcalls.
2543         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2544         (FUNCTION_VALUE): Likewise.
2545         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2546         * config/mips/mips-protos.h: Update.
2547
2548 2002-03-23  Richard Henderson  <rth@redhat.com>
2549
2550         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2551         * config/sparc/sparc-protos.h: Update.
2552         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2553
2554 2002-03-23  Richard Henderson  <rth@redhat.com>
2555
2556         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2557         _start or _init begins the text segment.
2558
2559 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2560
2561         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2562         not HOST_WIDEST_INT.
2563         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2564
2565 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2566
2567         PR java/5489
2568         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2569         operand argument to output_return_instruction.
2570         * arm.c (arm_print_operand, case 'd'): If the operand is
2571         const_true_rtx then just return.
2572         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2573         then abort.
2574
2575 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2576
2577         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2578         (Warning Options): Document -Wswitch-default.
2579         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2580         -Wswitch.
2581         (warn_switch_default): Define variable.
2582         (warn_switch): Update comment.
2583         * flags.h (warn_switch_default): Declare variable.
2584         (warn_switch): Update comment.
2585         * stmt.c (expand_end_case): Check for and, when
2586         warn_switch_no_default, warn of a missing default case.
2587
2588 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2589
2590         * real.h (N): Special case 128 bit doubles.
2591
2592         * combine.c (simplify_comparison): When widening modes, ignore
2593         sign extension on CONST_INTs.
2594
2595 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2596
2597         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2598         passed to adjust_address.  Fix comment formatting.
2599
2600
2601 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2602
2603         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2604         Always make REAL_VALUE_TYPE a struct containing an array of
2605         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2606         big it is.  Don't declare or use union real_extract.
2607
2608         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2609         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2610         (print_operand), config/arm/arm.c (output_move_double),
2611         config/arm/arm.md (consttable_4, consttable_8),
2612         config/romp/romp.c (output_fpops), config/s390/s390.h
2613         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2614         (xtensa_output_literal): Don't use union real_extract.
2615
2616         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2617         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2618         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2619         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2620         (PRINT_OPERAND): Don't use local version of union
2621         real_extract.
2622
2623         * config/convex/convex.c (check_float_value), config/vax/vax.c
2624         (vax_float_literal), config/m88k/m88k.md (divdf3),
2625         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2626         config/pdp11/pdp11.c (output_move_quad): Don't do host
2627         arithmetic on target floating point quantities.
2628
2629         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2630         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2631
2632         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2633         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2634
2635         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2636         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2637         INFINITY.
2638         * print-rtl.c (print_rtx): Disable code which needs
2639         floating-point emulator.
2640         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2641         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2642         depending on HOST_FLOAT_FORMAT to be defined properly.
2643
2644         * config/1750a/1750a.c (get_double, float_label): Delete.
2645         (print_operand): Delete huge commented-out chunk.  Use
2646         REAL_VALUE_TO_DECIMAL.
2647         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2648         functions.
2649         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2650         IEEE_FLOAT_FORMAT.
2651         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2652         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2653         * config/m88k/m88k.c (real_power_of_2_operand,
2654         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2655         real_extract out of the union; run the input through
2656         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2657         from that into the union.
2658         * config/pdp11/pdp11.c (output_move_double): Rearrange
2659         parentheses to make automatic indenter happy.
2660
2661         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2662         Point" and rewrite to describe current situation.  Also adjust
2663         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2664         match code.
2665         * doc/rtl.texi: Adjust cross reference.
2666
2667 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2668
2669         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2670         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2671         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2672         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2673         prevent use of sp as a reload register.
2674         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2675         non_acc_reg_operand.
2676         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2677         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2678         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2679         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2680
2681 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2682
2683         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2684         * cpplex.c (unterminated): Delete.
2685         (parse_string): No string literal may extend over multiple
2686         lines.  Suppress the error when preprocessing assembly.
2687         * cppmain.c (scan_translation_unit): Strings are single-line.
2688
2689         * doc/cpp.texi: Update to match.
2690
2691 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2692
2693         PR optimization/5854
2694         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2695         Shut up warnings.
2696         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2697         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2698         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2699         const0 if scratch register was not allocated.
2700         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2701         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2702         with GEN_INT (...).
2703         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2704         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2705         with GEN_INT (...) everywhere.  Remove constraints in define_split
2706         patterns.
2707         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2708         require scratch register for setting 0 into regs/non-pushable memory.
2709
2710 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2711
2712         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2713         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2714
2715 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2716
2717         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2718         * cppinit.c (cpp_create_reader):  On by default.
2719         (cpp_handle_option):  Handle -W[no-]endif-labels.
2720         (cpp_post_options):  Also enable if -pedantic.
2721         * cpplib.c (do_else):  Use it.
2722         (do_endif):  Likewise.
2723         * doc/cppopts.texi:  Document new option.
2724         * doc/invoke.texi:  Document new option.
2725
2726 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2727
2728         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2729         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2730
2731 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2732
2733         * flow.c (calculate_global_regs_live): Clear aux fields of
2734         ENTRY and EXIT.
2735
2736 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2737
2738         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2739         REG or MEM subregs, pass rtx * instead of rtx to it.
2740         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2741         rtx * instead of rtx to alter_subreg.
2742         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2743         * config/pj/pj.c (pj_output_rval): Likewise.
2744
2745 2002-03-22  Richard Henderson  <rth@redhat.com>
2746
2747         PR target/3177
2748         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2749         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2750         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2751         (ia64_expand_prologue): Look at int_regs, not words, for number
2752         of incomming int regs.
2753
2754 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2755
2756         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2757
2758 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2759
2760         * toplev.c (flag_loop_optimize, flag_crossjumping):
2761         New static variables.
2762         (rest_of_compilation): Conditionalize crossjumping and
2763         loop optimizer.
2764         (parse_options_and_default_flags): Default loop_optimize and
2765         crossjumping.
2766         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2767         * invoke.texi (crossjumping, loop-optimize): Document.
2768
2769 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2770
2771         * real.c (eiisneg): Move outside #ifdef NANS.
2772
2773 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2774
2775         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2776         frequencies match; avoid match on different loop depths.
2777         (try_crossjump_to_bb): Kill tests that no longer brings time
2778         savings.
2779         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2780         updating code.
2781         (split_edge): Likewise.
2782
2783         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2784         variable.
2785
2786         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2787         * cfgrtl.c: Include insn-config.h
2788         (split_block) Dirtify block in presence of conditional execution
2789
2790 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2791
2792         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2793         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2794         (function_arg): Constify CUMULATIVE_ARGS.
2795         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2796         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2797         (UNITS_PER_DOUBLE): New macro.
2798         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2799         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2800         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2801         fp_regs and stack_words.
2802         (EABI_FLOAT_VARARGS_P): New macro.
2803         * config/mips/mips.c (struct mips_arg_info): New.
2804         (mips_arg_info): New function.
2805         (function_arg_advance): Use it.  Add adjustment instructions here
2806         rather than in function_arg.
2807         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2808         for VOIDmode at the beginning of the function.
2809         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2810         (function_arg_pass_by_reference): Likewise.
2811         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2812         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2813         (mips_va_start): Likewise.  Use the new stack_words field of
2814         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2815         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2816         doubles and other types, aligning the overflow pointer for non-doubles
2817         too.  Remove some code duplication.  Replace hard-coded constants.
2818
2819 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2820
2821         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2822         (CLASS_UNITS): Undefine.
2823         (CLASS_MAX_NREGS): Use FP_INC.
2824         * config/mips/mips.c (compute_frame_size): Likewise.
2825         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2826
2827 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2828
2829         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2830         prototype, and handle lexing numbers and identifiers.
2831         (parse_identifier): Update to new form of parse_slow.
2832         (parse_number): Fast path only, use parse_slow otherwise.
2833         (_cpp_lex_direct): Update calls to parse_number.
2834
2835 2002-03-21  DJ Delorie  <dj@redhat.com>
2836
2837         * bb-reorder.c (make_reorder_chain_1): Protect against
2838         when redundant edges are omitted.
2839         * predict.c (dump_prediction): Likewise.
2840
2841 2002-03-21  Richard Henderson  <rth@redhat.com>
2842
2843         PR target/5996
2844         * fixinc/inclhack.def (solaris_stdio_tag): New.
2845         * fixinc/fixincl.x: Regenerate.
2846
2847 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2848
2849         PR c/5597
2850         * c-typeck.c (process_init_element): Flag non-static
2851         initialization of a flexible array member as illegal.
2852
2853 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2854
2855         * config/rs6000/t-linux64: New.
2856         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2857         t-ppccomm.  Use t-rs6000 and t-linux64.
2858         (powerpc64-*-gnu* <tmake_file>): Likewise.
2859         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2860         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2861         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2862
2863 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2864
2865         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2866         flag_really_no_inline instead of optimize == 0.
2867
2868         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2869
2870         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2871
2872         * flags.h (flag_really_no_inline): New.
2873
2874         * c-common.c (c_common_post_options): Initialize
2875         flag_really_no_inline.
2876
2877         * toplev.c (flag_really_no_inline): New.
2878
2879 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2880
2881         * config/avr/avr.md (length): Fix length computation for
2882         conditional branches.
2883
2884 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2885
2886         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2887         sdbout.o, profile.o): Update.
2888         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2889         langhook.
2890         * c-common.h (gettags): Move here from tree.h.
2891         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2892         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2893         * dbxout.c (dbxout_init): Use getdecls langhook.
2894         * expr.c (expand_expr): Use insert_block langhook.
2895         * fold-const.c: Include langhooks.h.
2896         (fold_range_test, fold_binary_op_with_conditional_arg,
2897         fold): Use global_bindings_p langhook.
2898         * integrate.c (expand_inline_function): Use insert_block langhook.
2899         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2900         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2901         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2902         LANG_HOOKS_GETDECLS): New.
2903         (LANG_HOOKS_INITIALIZER): Update.
2904         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2905         langhook.
2906         * langhooks.h (struct lang_hooks_for_decls): New.
2907         (struct lang_hooks): Update.
2908         * profile.c: Include langhooks.h.
2909         (output_func_start_profiler): Use new langhooks.
2910         * sdbout.c: Include langhooks.h.
2911         (sdbout_init, sdbout_finish): Use getdecls langhook.
2912         * stmt.c: Include langhooks.h.
2913         (expand_fixup, fixup_gotos): Use new langhooks.
2914         * stor-layout.c: Include langhooks.h.
2915         (variable_size): Use global_bindings_p langhook.
2916         * toplev.c (compile_file): Use getdecls langhook.
2917         * tree-inline.c (remap_block): Use insert_block langhook.
2918         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2919         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2920
2921 2002-03-21  Richard Henderson  <rth@redhat.com>
2922
2923         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2924         constants in .data when -fpic.
2925
2926 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2927
2928         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2929         where appropriate.
2930
2931 2002-03-21  Tom Tromey  <tromey@redhat.com>
2932
2933         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
2934
2935 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2936
2937         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2938
2939         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2940
2941 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2942             Richard Henderson  <rth@redhat.com>
2943
2944         PR c/5354
2945         * c-common.c (c_expand_expr): Preserve result of a statement
2946         expression if needed.
2947
2948 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2949
2950         PR bootstrap/4195
2951         * genrecog.c (maybe_both_true_mode): Remove.
2952         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2953         * machmode.def (Pmode): Likewise.
2954
2955 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
2956
2957         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2958         (nonlocal_mentioned_p_1): New function.
2959         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2960         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2961         (mark_constant_function): Recognize pure functions.
2962         * rtl.h (global_reg_mentioned_p): New prototype.
2963         * rtlanal.c (global_reg_mentioned_p,
2964         global_reg_mentioned_p_1): New function.
2965
2966 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2967
2968         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2969         UNIX assert.h.
2970         * fixinc/fixincl.x: Regenerate.
2971
2972 2002-03-20  Jason Merrill  <jason@redhat.com>
2973
2974         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2975
2976 2002-03-20  Michael Meissner  <meissner@redhat.com>
2977
2978         * doc/invoke.texi (Optimize Options): Document that -O2 sets
2979         -fstrict-aliasing.
2980
2981 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2982
2983         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2984         ".literal_position" directive before the constant pool.
2985
2986 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2987
2988         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2989         Add Craig Rodrigues.
2990         Add Brad Lucier to testers.
2991
2992 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2993
2994         PR target/4792
2995         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2996         to if_then_else.
2997         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2998         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2999         instead of insn_extract.
3000
3001 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3002
3003         PR bootstrap/4192
3004         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3005
3006         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3007         stmt if some case has been output.
3008
3009 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3010
3011         PR c/5972
3012         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3013         movsfcc_1, movdfcc_1): Add %O2.
3014         * config/i386/i386.c (print_operand): Handle %ON.
3015         Print . before float condition codes in Sun as cmov syntax.
3016         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3017         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3018         no longer true.
3019
3020 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
3021
3022         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3023         return instruction if PC was popped.
3024
3025 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3026
3027         * config/xtensa/xtensa.md: Remove unused type attributes.
3028         (adddi_carry, subddi_carry): Change type attribute to "multi".
3029
3030 2002-03-19  Dale Johannesen  <dalej@apple.com>
3031
3032         PR optimization/5999, middle-end/5731
3033         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3034         multiplications by reciprocals.
3035
3036 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3037
3038         * Makefile.in: Update.
3039         * c-common.c: Include langhooks.h.
3040         (inline_forbidden_p): Use new hook.
3041         * diagnostic.c: Include langhooks.h.
3042         (format_with_decl, announce_function,
3043         default_print_error_function): Use new hook.
3044         * dwarf2out.c (dwarf2_name): Use new hook.
3045         * function.c: Include langhooks.h.
3046         (init_function_start): Use new hook.
3047         * langhooks-def.h (lhd_decl_printable_name): New.
3048         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3049         (LANGHOOKS_INITIALIZER): Update.
3050         * langhooks.c (lhd_decl_printable_name): New.
3051         * langhooks.h (struct lang_hooks): New hook.
3052         * toplev.c (decl_name, decl_printable_name): Remove.
3053         (open_dump_file): Use new hook.
3054         (process_options): Remove old hook.
3055         * tree.h (decl_printable_name): Remove.
3056 objc:
3057         * objc-act.c (objc_init): Remove old hook.
3058         (objc_printable_name): Export.
3059         * objc-act.h (objc_printable_name): New.
3060         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3061
3062 2002-03-19  Jim Blandy  <jimb@redhat.com>
3063
3064         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3065         the start_source_file debug hook, not the current line number.
3066
3067 2002-03-19  Richard Henderson  <rth@redhat.com>
3068
3069         * flow.c (EH_USES): Provide default.
3070         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3071         * doc/tm.texi (EH_USES): New.
3072
3073         * config/ia64/ia64.c (ia64_eh_uses): New.
3074         * config/ia64/ia64-protos.h: Update.
3075         * config/ia64/ia64.h (EH_USES): New.
3076
3077 2002-03-19  Richard Henderson  <rth@redhat.com>
3078
3079         * varasm.c (output_constant_def): Fix stupid typo.
3080
3081 2002-03-19  Richard Henderson  <rth@redhat.com>
3082
3083         PR 5879
3084         * except.c (current_function_has_exception_handlers): New.
3085         * except.h: Declare it.
3086         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3087         Combine tests that disable all sibcalls for the function.
3088
3089 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
3090
3091         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3092         for INTEGER_CST.
3093
3094 2002-03-19  Richard Henderson  <rth@redhat.com>
3095
3096         PR 5977, 5991
3097         * config/ia64/ia64.c: Revert 2002-03-01 patch.
3098         * config/ia64/ia64.h (INIT_EXPANDERS): New.
3099
3100 2002-03-19  Jim Blandy  <jimb@redhat.com>
3101
3102         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3103         name, even if the replacement list contains no tokens, as required
3104         by Dwarf.
3105
3106 2002-03-19  Jason Merrill  <jason@redhat.com>
3107
3108         * varasm.c (globalize_decl): Get the name from the RTL, not
3109         DECL_ASSEMBLER_NAME.
3110
3111         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3112
3113 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
3114
3115         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3116         subdi_carry): Define.
3117
3118 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3119
3120         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3121         about -fpic/-fPIC if extra_warnings set.
3122
3123 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3124
3125         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3126         TREE_STRING_POINTER.
3127         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3128
3129 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3130
3131         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3132         in favor of SP if FRAME_POINTER_REQUIRED is false.
3133
3134 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3135
3136         * emit-rtl.c (gen_int_mode): New function.
3137         * rtl.h: Prototype for it.
3138         * combine.c (make_extraction, simplify_comparison), expmed.c
3139         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3140         (convert_modes, store_field), optabs.c (expand_fix),
3141         simplify-rtx.c (neg_const_int, simplify_unary_real),
3142
3143         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3144         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3145
3146 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3147
3148         PR c/5656
3149         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3150         convert_parm_for_inlining.
3151         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3152         Define.
3153         * langhooks-def.h: Likewise.
3154         * objc/objc-lang.c: Likewise.
3155         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3156         function.
3157         * tree-inline.c (initialize_inlined_parameters):
3158         Call convert_parm_for_inlining lang hook if needed.
3159         * c-typeck.c (c_convert_parm_for_inlining): New function.
3160         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3161
3162 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3163
3164         * calls.c (precompute_arguments): Do not assume that temporaries
3165         can be destroyed after expanding the argument.
3166         (expand_call): Likewise.
3167
3168 2002-03-15  Eric Christopher  <echristo@redhat.com>
3169
3170         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3171         Fix register preference on last change.
3172         * config/mips/mips.c (mips_return_in_memory): New function.
3173         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3174         * config/mips/mips-protos.h: Declare.
3175         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3176         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3177
3178 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3179
3180         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3181         a register too.
3182         (anddi3, iorsi3): Likewise.
3183
3184         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3185         use %gprel for symbols that are going to be placed in linkonce
3186         sections.
3187
3188         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3189         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3190         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3191         not needed.  Disregard leaf_function_p().
3192         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3193         mips16 frame pointer.
3194         * config/mips/mips.md (store ra): Only to small SP offsets.
3195         2001-08-22  Graham Stott  <grahams@redhat.com>
3196         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3197         return a REG rtx for the return address register.
3198
3199 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3200
3201         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3202         constant-pool addresses as "mode-dependent".
3203         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3204
3205 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3206
3207         PR target/5740
3208         * expr.c (emit_group_load): Use extract_bit_field if
3209         needed for CONCAT arguments.
3210
3211 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3212
3213         PR target/4863
3214         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3215         offset to the base of the table.
3216         (thumb_tablejump): Matcher for Thumb tablejump insn.
3217         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3218         as the difference of two labels.
3219         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3220         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3221         tables in the code.
3222         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3223         * arm.c (get_jump_table_size): If the table is not in the text
3224         section, return zero.
3225
3226 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3227
3228         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3229         of gen_rtx_SUBREG.
3230         (arm_reload_out_hi): Use gen_lowpart instead of
3231         gen_rtx_SUBREG to access QImode components.
3232         * config/arm/arm.md: Disable zero_extend split for QImode
3233         subregs in BIG_ENDIAN mode.
3234         (storehi_bigend): Match use of least significant byte.
3235         (storeinthi): Remove extraneous SUBREG.
3236         Add missing construction of operands[2].
3237         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3238         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3239         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3240
3241 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3242
3243         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3244         any_operand.
3245
3246 2002-03-17  Richard Henderson  <rth@redhat.com>
3247
3248         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3249         explicitly.
3250
3251 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3252
3253         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3254         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3255
3256 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3257
3258         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3259
3260         * predict.c (estimate_bb_frequencies): Delete unused variables.
3261
3262 2002-03-17  Richard Henderson  <rth@redhat.com>
3263
3264         * config/ia64/ia64.c (ia64_attribute_table): Move before
3265         targetm definition.  Make static.
3266
3267 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3268
3269         * c-common.h (yyparse, c_common_parse_file): New.
3270         * c-lang.c: Include c-common.h.
3271         (LANG_HOOKS_PARSE_FILE): Redefine.
3272         * c-lex.c: Include c-common.h.
3273         (yyparse): Rename c_common_parse_file.  Call yyparse.
3274         * c-parse.in (yyparse): Remove macro.
3275         * c-tree.h (yyparse_1): Remove.
3276         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3277         (LANG_HOOKS_INITIALIZER): Update.
3278         * langhooks.h (struct lang_hoooks): New hook parse_file.
3279         * toplev.c (compile_file): Use parse_file hook.
3280         * tree.h (yyparse): Remove.
3281         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3282
3283 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3284
3285         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3286         float_truncate, not fix.
3287         ("*truncdfsf2_real"): Ditto.
3288         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3289
3290         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3291
3292 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3293
3294         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3295         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3296         where appropriate.  Make the second reference to
3297         leaf_function_p a function call, as intended.  Reindented.
3298
3299         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3300         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3301
3302         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3303         add register to non-constant into sp.
3304
3305         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3306         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3307         (mips16_gp_pseudo_rtx): Lose.
3308         (INIT_EXPANDERS): Deleted.
3309         * config/mips/mips.c (mips_init_machine_status): New.
3310         (mips_free_machine_status): New.
3311         (mips_mark_machine_status): New.
3312         (override_options): Set them.
3313         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3314         (struct machine_function): ... new.  Replaced all references.
3315         (mips_add_gc_roots): Don't mark them.
3316         (embedded_pic_fnaddr_reg): New, extracted from...
3317         (embedded_pic_offset): ... here.
3318         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3319         (movsi): Likewise.
3320
3321 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3322
3323         * cppinit.c: Revert -MD removal.
3324
3325 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3326
3327         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3328         soft registers by default for 68HC12.
3329         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3330         when compiling with -fomit-frame-pointer.
3331         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3332         (expand_epilogue): Likewise.
3333         (m68hc11_gen_rotate): Use exg when rotating by 8.
3334
3335 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3336
3337         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3338         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3339         (splits): Remove unused add splits.
3340         ("*addhi3_68hc12"): Tune constraints.
3341         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3342         constant fits in 8-bits and D is dead use abx/aby instructions.
3343         ("*addhi3"): Remove extern declaration of ix_reg.
3344         ("*subsi3"): Optimize and provide new split.
3345         ("subhi3"): Cleanup.
3346         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3347         (arith splits): For 68hc12 save the address register on the stack
3348         and do the arithmetic operation with a pop.
3349
3350 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3351
3352         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3353         allocating QImode in address registers.
3354         ("*movqi_m68hc11"): Likewise.
3355
3356 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3357
3358         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3359
3360 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3361
3362         * cppinit.c (print_help): Display -MD and -MMD.
3363         Don't display usage string.  Update assertion syntax and
3364         typo.
3365         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3366         (cpp_handle_option): Update.
3367
3368 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3369
3370         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3371         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3372         and define it so that regardless of target CPU size,
3373         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3374         of "int" rather than "long."
3375
3376 2002-03-15  Richard Henderson  <rth@redhat.com>
3377
3378         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3379         size as a tree.
3380
3381 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3382
3383         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3384         ("tstqi" split): Avoid using memory for tstqi on address register.
3385         (splits): Remove constraints.
3386         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3387         ("cmpdf", "cmpsf"): Remove since not used.
3388         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3389         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3390
3391 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3392
3393         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3394         ("neghi2"): Tighten constraints.
3395         ("one_cmplsi2"): Optimize and simplify split.
3396         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3397
3398 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3399
3400         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3401         and split of AND operation to clear the upper bits.
3402         ("*logicalsi3_zextqi"): Likewise.
3403         ("*logicallhi3_zexthi_ashift8"): Likewise.
3404         ("*logicalsi3_silshr16"): Likewise.
3405         ("logicalsi3_silshl16"): Likewise.
3406         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3407
3408 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3409
3410         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3411         (m68hc11_indirect_p): New function.
3412         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3413         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3414         TARGET_M6812.
3415         (asm_print_register): Likewise.
3416         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3417         (m68hc11_indirect_p): Declare.
3418         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3419         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3420         (TARGET_SWITCHES): New option -mrelax.
3421         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3422         destination.
3423         ("iorsi3", "xorsi3"): Likewise.
3424         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3425         ("*andhi3_mem"): New to handle destination in memory with bclr
3426         and a scratch register.
3427         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3428         ("*andhi3_const"): New when operand2 is constant.
3429         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3430         ("*andhi3_gen"): Cleanup of the old "andhi3".
3431         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3432         ("xorqi3"): Update constraints.
3433
3434 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3435
3436         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3437         for reg_equiv_memory_loc when the operand is a register that does
3438         not get a hard register (stack location).
3439         (tst_operand): After reload, accept all memory operand.
3440         (symbolic_memory_operand): Fix detection of symbolic references.
3441         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3442         accept symbols and any constant.
3443
3444 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3445
3446         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3447         note on the insn that sets the soft frame register.
3448         (must_parenthesize): ix and iy are also reserved names.
3449         (print_operand_address): One more place where parenthesis are required
3450         to avoid confusion with register names.
3451         (m68hc11_gen_movhi): Allow push of stack pointer.
3452         (m68hc11_check_z_replacement): Fix handling of parallel with a
3453         clobber.
3454         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3455         the replacement register is.
3456         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3457         and D8_REGS classes.
3458         (MODES_TIEABLE_P): All modes are tieable except QImode.
3459
3460 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3461
3462         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3463         (___subdi3): Likewise.
3464         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3465         (__map_data_section): Optimize 68hc11 case.
3466
3467 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3468
3469         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3470         than a shift to avoid adding a register with itself.
3471         (m68hc11_memory_move_cost): Take into account NO_REGS.
3472         (m68hc11_register_move_cost): Update and use memory move cost
3473         for soft registers.
3474         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3475         it gives more opportunities to cse to optimize.
3476         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3477         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3478
3479 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3480
3481         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3482         * c-common.def (CLEANUP_STMT): New tree node.
3483         * c-common.h (CLEANUP_DECL): New macro.
3484         (CLEANUP_EXPR): Likewise.
3485         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3486         * expr.c (expand_expr): Tidy.
3487         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3488         * tree-inline.c (initialize_inlined_parameters): Clean up
3489         new local variables.
3490
3491 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3492
3493         PR bootstrap/4128
3494         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3495         before movrXX only, use reg_overlap_mentioned_p.
3496         Only special case NE if just one insn can be generated.
3497
3498 2002-03-15  Jason Merrill  <jason@redhat.com>
3499
3500         * varasm.c (assemble_variable): Call resolve_unique_section before
3501         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3502         of error_mark_node.
3503
3504 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3505
3506         PR target/5170
3507         * arm.md (split pattern for thumb shiftable immediates): Add comment
3508         explaining non-obvious test.
3509
3510 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3511
3512         PR target/5712
3513         * arm.md (movaddr, movaddr_insn): Delete.
3514
3515 2002-03-15  Jason Merrill  <jason@redhat.com>
3516
3517         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3518         -fkeep-static-consts doesn't apply to comdats.
3519
3520 2002-03-14  Richard Henderson  <rth@redhat.com>
3521
3522         * c-decl.c: Include c-pragma.h.
3523         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3524         (finish_function): Tidy.
3525         * c-pragma.c: Include c-common.h.
3526         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3527         (handle_pragma_weak): Use them.
3528         (init_pragma): Register pending_weaks.
3529         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3530         * print-tree.c (print_node): Print DECL_WEAK.
3531         * varasm.c (mark_weak_decls): Remove.
3532         (remove_from_pending_weak_list): Remove.
3533         (add_weak): Remove.
3534         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3535         (weak_decls): Make a tree_list.
3536         (declare_weak): Cons weak_decls directly.
3537         (globalize_decl): Remove weak_decls elements directly.
3538         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3539         symbols.  Don't pretend to handle aliases.
3540         (init_varasm_once): Update weak_decls registry.
3541         * Makefile.in: Update dependencies.
3542
3543 2002-03-14  Richard Henderson  <rth@redhat.com>
3544
3545         PR target/5312
3546         * config/ia64/ia64.c: Include tm_p.h last.
3547         (gen_nop_type): Remove duplicate definition.
3548         (cycle_end_fill_slots): Set sched_data for second L slot.
3549         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3550         (nop_cycles_until): Fix typos.
3551
3552 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3553
3554         PR optimization/5891
3555         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3556
3557 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3558
3559         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3560           descriptors correctly.
3561
3562 2002-03-14  Michael Meissner  <meissner@redhat.com>
3563
3564         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3565         100, allowing MAX_UNROLLED_INSNS to be overridden.
3566
3567         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3568         --param.
3569
3570         * unroll.c (params.h): Include.
3571         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3572
3573         * doc/invoke.texi (--param max-unroll-insns): Document.
3574
3575         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3576
3577 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3578
3579         * arm.md: Fix warnings about constraints in peepholes and splits.
3580
3581 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3582
3583         * cpphash.h (struct lexer_state): Remove line_extension member.
3584         * cpplib.c (dequote_string, do_linemarker): New functions.
3585         (linemarker_dir): New data object.
3586         (DIRECTIVE_TABLE): No longer need to interpret #line in
3587         preprocessed source.  Delete obsolete comment about return
3588         values of handlers.
3589         (end_directive, directive_diagnostics, _cpp_handle_directive):
3590         Don't muck with line_extension.
3591         (directive_diagnostics): No need to issue warnings for
3592         linemarkers here.
3593         (_cpp_handle_directive): Issue warnings for linemarkers here,
3594         when appropriate.  Dispatch linemarkers to do_linemarker, not
3595         do_line.
3596         (do_line): Code to handle linemarkers split out to do_linemarker.
3597         Convert escape sequences in filename argument, both places.
3598
3599         * cppmacro.c (quote_string): Rename cpp_quote_string and
3600         export.  All callers changed.
3601         * cpplib.h (cpp_quote_string): Prototype.
3602         * cppmain.c (print_line): Call cpp_quote_string on to_file
3603         before printing it.
3604
3605         * doc/cpp.texi: Document that escapes are now interpreted in
3606         #line and in linemarkers, and that non-printing characters are
3607         converted to octal escapes when linemarkers are generated.
3608
3609 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3610
3611         * emit-rtl.c (try_split): Use delete_insns.
3612         * recog.c (split_all_insns): Fix terminating condition.
3613
3614 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3615             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3616
3617         PR target/5828
3618         * arm.c (arm_output_epilogue): Fix floating-point register save
3619         adjustment when using a frame pointer.
3620
3621 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3622
3623         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3624         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3625         (save_restore_insns, mips_expand_epilogue): And here.
3626         (build_mips16_call_stub): And here.
3627         (mips_function_value): Use the new macros to decide whether a single
3628         or complex float can be returned in floating-point registers.  Return
3629         a parallel rtx in the complex case.
3630
3631 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3632
3633         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3634         call after liveness analysis.
3635
3636         * recog.c (split_insn): Use delete_insn_and_edges.
3637
3638         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3639         instructions to have branch prediction notes.
3640         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3641
3642 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3643
3644         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3645         that doesn't support it.
3646         * configure: Regenerate.
3647
3648 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3649
3650         PR target/5626
3651         * config/sparc/sparc.md (normal_branch, inverted_branch,
3652         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3653         inverted_fp_branch): Adjust calls to output_cbranch.
3654         Set length attribute.
3655         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3656         output_v9branch.  Set length attribute.
3657         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3658         predicates.
3659         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3660         (output_cbranch): Likewise.  Handle far branches.
3661         (output_v9branch): Handle far branches.
3662         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3663         Adjust prototypes.
3664         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3665         noov_compare64_op predicates.
3666
3667 2002-03-13  Jason Merrill  <jason@redhat.com>
3668
3669         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3670         into the function and constify it.
3671         * gthr-dce.h, gthr-solaris.h: Likewise.
3672
3673 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3674
3675         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3676         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3677         std_expand_builtin_va_arg if not ABI_V4.
3678
3679 2002-03-13  Jason Merrill  <jason@redhat.com>
3680
3681         * varasm.c (globalize_decl): New fn.
3682         (assemble_start_function): Use it.
3683         (asm_emit_uninitialized): Use it.
3684         (assemble_alias): Use it.
3685         (assemble_variable): Use it.
3686
3687 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3688
3689         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3690         2002-03-12 internal visibility change.
3691         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3692         visibility into SYMBOL_REF_FLAG.
3693
3694 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3695
3696         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3697         VOIDmode operand.  Add compile-time optimization for constant results.
3698
3699 2002-03-12  Jason Merrill  <jason@redhat.com>
3700
3701         * c-typeck.c (convert_for_assignment): Don't allow conversions
3702         between pointers and references.  Only allow lvalues to convert to
3703         reference.
3704
3705 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3706
3707         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3708         before prologue, to avoid scheduling problems.
3709
3710 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3711
3712         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3713         (ELIMINABLE_REGS): Add sfp->sp.
3714         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3715
3716 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3717
3718         PR optimization/5892
3719         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3720
3721 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3722
3723         * loop.c (basic_induction_var): Don't call convert_modes if mode
3724         classes are different.
3725
3726 2002-03-12  Richard Henderson  <rth@redhat.com>
3727
3728         PR optimization/5901
3729         * function.c (reposition_prologue_and_epilogue_notes): Position
3730         the markers after/before the last/first insn not deleted.
3731
3732 2002-03-12  Richard Henderson  <rth@redhat.com>
3733
3734         PR optimization/5878
3735         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3736         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3737         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3738
3739         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3740         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3741         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3742
3743         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3744         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3745         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3746         also.  Don't set it if not flag_pic.
3747         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3748         to be INVALID_REGNUM when not used.
3749
3750 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3751
3752         * expmed.c (store_bit_field): Reset alias set for memory.
3753         (extract_bit_field): Same.
3754
3755 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3756
3757         * c-common.c (c_tree_code_type, c_tree_code_length,
3758         c_tree_code_name, add_c_tree_codes): Delete.
3759         * c-common.h (add_c_tree_codes): Delete.
3760         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3761         Define.
3762         * c-objc-common.c (c_objc_common_init): Don't call
3763         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3764         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3765         objc_tree_code_name, add_objc_tree_codes): Delete.
3766         (objc_init): Don't call add_objc_tree_codes.
3767         * objc/objc-lang.c (tree_code_type, tree_code_length,
3768         tree_code_name): Define.
3769         * toplev.c (lang_independent_init): Don't set
3770         tree_code_length[IDENTIFIER_NODE].
3771         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3772         Delete definitions, moved to language front-ends.
3773         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3774         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3775         Const-ify.
3776         (tree_code_length): Change type to unsigned char.
3777
3778 2002-03-12  Richard Henderson  <rth@redhat.com>
3779
3780         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3781         internal visibility change.
3782
3783 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3784
3785         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3786         validize_mem() instead of change_address to avoid clobbering
3787         memory attributes.
3788
3789 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3790
3791         * c-lex.h (position_after_whitespace): Remove.
3792
3793 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3794
3795         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3796         (lex_string): Use unsigned char pointers.
3797
3798 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3799
3800         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3801         is not a valid memory_operand.
3802
3803 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3804
3805         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3806         * config/xtensa/lib1funcs.asm: Fix copyright to include
3807         special case for libgcc files.
3808         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3809         (__divsi3): Likewise.
3810         (__umodsi3): Likewise.
3811         (__modsi3): Likewise.
3812         * config/xtensa/lib2funcs.S: Fix copyright to include
3813         special case for libgcc files.
3814
3815 2002-03-12  Tom Rix  <trix@redhat.com>
3816
3817         * collect2.c (resolve_lib_name): Move outside of
3818         OBJECT_FORMAT_COFF ifdef.
3819         (ignore_library): Same.
3820
3821 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3822
3823         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3824
3825 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3826
3827         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3828         to function_section before writing out the constant pool.
3829
3830 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3831
3832         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3833         zero_constant.
3834         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3835
3836 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3837
3838         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3839         (adddi3): Likewise.
3840         (movdf): Likewise.
3841         (movdi): Likewise.
3842         (cmpsi splitter): Likewise.
3843         (modsi3): Fail if <= 0.
3844         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3845         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3846         (reg_or_sub_cint64_operand): Likewise.
3847         (num_insns_constant_wide): Optimize sign extension.
3848         (rs6000_legitimize_address): Likewise.
3849
3850 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3851
3852         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3853         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3854
3855 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3856
3857         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3858         address calculation.
3859
3860 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3861
3862         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3863         scratch register to DImode / TImode.
3864         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3865         register used does not overlap the target.
3866
3867 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3868
3869         * Makefile.in (debug.o): Depend on debug.h.
3870         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3871         * debug.c (do_nothing_debug_hooks): Likewise.
3872         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3873         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3874         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3875         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3876         * dwarfout.c (dwarf_debug_hooks): Likewise.
3877         * integrate.c (output_inline_function): Likewise.
3878         * objc/objc-act.c (synth_module_prologue): Likewise.
3879         * sdbout.c (sdb_debug_hooks): Likewise.
3880         * toplev.c (debug_hooks): Likewise.
3881         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3882
3883 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3884
3885         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3886         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3887         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3888         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3889         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3890         * defaults.h (POINTER_SIZE): Define.
3891         * doc/tm.texi (POINTER_SIZE): Document default.
3892
3893 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3894
3895         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3896
3897 2002-03-11  Richard Henderson  <rth@redhat.com>
3898
3899         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3900         if rebuild_label_notes_after_reload.
3901
3902 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3903
3904         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3905         emit pic register load if "internal" visibility.
3906         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3907         (cris_expand_builtin_va_arg): Do all computations on trees.
3908
3909 2002-03-11  Richard Henderson  <rth@redhat.com>
3910
3911         * rtlanal.c: Include recog.h.
3912         (keep_with_call_p): Fix thinko.
3913         * Makefile.in (rtlanal.o): Update dependencies.
3914
3915 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3916
3917         * genflags.c (gen_insn): Use IS_VSPACE.
3918         * genoutput.c (output_insn_data): Likewise.
3919         (process_template): Likewise.
3920
3921 2002-03-11  Richard Henderson  <rth@redhat.com>
3922
3923         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3924
3925 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3926
3927         * Makefile.in: Update.
3928         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3929         Update documentation.
3930         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3931         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3932
3933 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
3934
3935         * Makefile.in: Give texi2pod its input file as a command line
3936         argument, not on stdin.
3937
3938 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
3939             Daniel Berlin  <dan@dberlin.org>
3940
3941         C++ alias analysis improvement.
3942         * alias.c (record_component_aliases): Record aliases for base
3943         classes too.
3944
3945 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
3946
3947         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3948
3949 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3950
3951         * toplev.c (vms_fopen): Remove, not needed.
3952
3953         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3954
3955         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3956
3957         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3958         for FP, already done later.
3959
3960         * toplev.c (debug_args): Add entry for VMS_DEBUG.
3961         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3962
3963 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
3964
3965         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3966         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3967         LARGEST_EXPONENT_IS_NORMAL for the given mode.
3968         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3969         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3970         (ediv, emul, eldexp, esqrt): Likewise.
3971         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3972         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3973         (saturate): New function.
3974         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3975         (make_nan): Use a saturation value instead of a NaN if
3976         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
3977         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3978         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
3979         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
3980         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3981         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3982         !ROUND_TOWARDS_ZERO.
3983         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3984         (ROUND_TOWARDS_ZERO): Document.
3985
3986 2002-03-11  Andreas Jaeger  <aj@suse.de>
3987
3988         * cfg.c (dump_flow_info): Remove unused variable.
3989
3990 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
3991
3992         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3993         computations on trees.
3994
3995 2002-03-10  Richard Henderson  <rth@redhat.com>
3996
3997         PR 5693:
3998         * reload.c (copy_replacements_1): New.
3999         (copy_replacements): Use it to recurse through the rtx.
4000
4001 2002-03-10  Richard Henderson  <rth@redhat.com>
4002
4003         * loop.c (strength_reduce): Compute number of iterations as
4004         unsigned HOST_WIDE_INT.
4005
4006 2002-03-10  Richard Henderson  <rth@redhat.com>
4007
4008         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4009         to move away from the end of the block.
4010
4011 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4012
4013         PR preprocessor/5899
4014         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4015
4016 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4017
4018         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4019
4020         * attribs.c (decl_attributes): Fix signed/unsigned warning.
4021
4022 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
4023
4024         * config/mmix/mmix.c: Improve comments.
4025         (mmix_target_asm_function_prologue): Drop variable
4026         empty_stack_frame.  Don't allocate unused slot above fp.
4027         (mmix_target_asm_function_epilogue): Mirror prologue changes.
4028         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4029         brace in first column.
4030         (enum reg_class): Ditto.
4031         (FIRST_PARM_OFFSET): Now 0.
4032         (USER_LABEL_PREFIX): Remove #if 0:d definition.
4033
4034 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4035
4036         * combine.c (make_extraction): Fix error in last change.
4037
4038 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4039
4040         * c4x.c (c4x_fp_reglist): Const-ify.
4041         * cris.c (cris_print_operand): Likewise.
4042         * i386.c (ix86_va_arg): Likewise.
4043         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4044         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4045         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4046         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4047         * mcore.h (regno_reg_class): Likewise.
4048         * mips.c (gen_int_relational): Likewise.
4049         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4050         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4051         * pdp11.c (move_costs): Likewise.
4052         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4053         * s390.c (s390_branch_condition_mnemonic, regclass_map):
4054         Likewise.
4055         * s390.h (regclass_map): Likewise.
4056         * sh.c (shift_amounts): Likewise.
4057         * sh.md (rotlsi3): Likewise.
4058
4059 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4060
4061         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4062         (ne0+5): Use new clobber to generate proper shift pattern.
4063         Patch by Michael Matz <matz@kde.org>.
4064
4065 2002-03-09  Andreas Schwab  <schwab@suse.de>
4066
4067         * gcc.c (validate_all_switches): Also handle `%W{...}'.
4068
4069 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4070
4071         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4072
4073 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
4074
4075         PR middle-end/5877
4076         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4077         even for non-representable constants.
4078
4079 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4080
4081         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4082         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4083         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4084         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4085         (pop_function_context): Compute MAY_SHARE parameter for
4086         fixup_var_refs.
4087         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4088         (gen_mem_addressof): Call fixup_var_refs with new parm.
4089
4090         * combine.c (make_extraction): Don't make extension of CONST_INT.
4091
4092 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4093
4094         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4095         in o32 and o64 ABIs.
4096         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4097         but getting fixed-size structs passed in registers regardless of
4098         padding in o32 and o64 ABIs.
4099
4100         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4101         offset before loading address of argument passed by transparent
4102         reference.
4103
4104 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4105
4106         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4107
4108 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4109
4110         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4111         marker such that registers after it are saved.
4112
4113 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4114
4115         * sparc.c (arith_4096_operand): Fix error in last change.
4116
4117 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4118
4119         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4120         defaults for MEABI.
4121
4122 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4123
4124         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4125         vectors.
4126
4127 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4128
4129         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4130
4131 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4132
4133         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4134         removed; fix return value.
4135         * combine.c (combine_instructions): Dirtify blocks where we failed to
4136         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4137         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4138
4139 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4140
4141         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4142
4143 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4144
4145         * recog.c (peephole2_optimize): Re-distribute EH edges.
4146
4147 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4148
4149         * expr.c (expand_expr): Use unsave lang hook.
4150         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4151         (LANG_HOOKS_INITIALIZER): Update.
4152         * langhooks.h (struct lang_hooks): New hook unsave.
4153         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4154         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4155         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4156         (unsave_expr_now): Remove.
4157         * tree.h (unsave_expr_now, lang_unsave,
4158         lang_unsave_expr_now): Remove.
4159         (lhd_unsave): New.
4160
4161 2002-03-08  Andreas Jaeger  <aj@suse.de>
4162
4163         * flow.c (propagate_block_delete_insn): Remove unused variable.
4164
4165 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4166
4167         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4168         insn length for memory load/store.
4169
4170 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4171
4172         * doc/install.texi (--with-libiconv-prefix): Document.
4173
4174 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4175
4176         * doc/sourcebuild.texi: Fix typo.
4177
4178 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4179
4180         PR c/3711
4181         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4182         trees.
4183
4184 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4185
4186         * rtl.c (copy_most_rtx): Move from here ...
4187         * emit-rtl.c (copy_most_rtx): ... to here.
4188
4189 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4190
4191         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4192         SUBTARGET_CPP_SIZE_SPEC.
4193         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4194
4195         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4196
4197 2002-03-07  Matt Hiller  <hiller@redhat.com>
4198
4199         * gensupport.c (first_dir_md_include): Renamed from include;
4200         change all references.
4201         (last_dir_md_include): Renamed from last_include; change all
4202         references.
4203         (init_md_reader): Unconditionally initialize base_dir whether or
4204         not filename is a relative path.
4205
4206 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4207
4208         * config/fp-bit.c (_unord_f2): Compile it in even if
4209         US_SOFTWARE_GOFAST is enabled.
4210
4211         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4212         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4213         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4214         NULL_RTX, try reversing the comparison and the operands.
4215
4216 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4217
4218         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4219         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4220         and MATCH_OP_DUP.
4221
4222 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4223
4224         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4225
4226 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4227
4228         * basic-block.h (fixup_abnormal_edges): Declare.
4229         * reload1.c (fixup_abnormal_edges): New function.
4230         * reg-stack.c (convert_regs): Use it.
4231
4232         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4233
4234         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4235
4236 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4237
4238         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4239         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4240         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4241         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4242         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4243         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4244         unless x and y could be infinite.
4245         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4246         Check that the common type of both arguments is a real, even for
4247         targets without unordered comparisons.  Allow an integer argument
4248         to be compared against a real.
4249         (expand_tree_builtin): Use expand_unordered_cmp.
4250         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4251         * cse.c (fold_rtx): Likewise.  Fix indentation.
4252         * fold-const.c (fold_real_zero_addition_p): New.
4253         (fold): Use it, and the new HONOR_... macros.
4254         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4255         * jump.c (reversed_comparison_code_parts): After searching for
4256         the true comparison mode, use HONOR_NANS to decide whether it
4257         can be safely reversed.
4258         (reverse_condition_maybe_unordered): Remove IEEE check.
4259         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4260         to decide which simplifications are valid.  Allow the following
4261         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4262         and (a - -b) to (a + b).
4263         (simplify_relational_operation): Use HONOR_NANS.
4264         * doc/tm.texi: Document the MODE_HAS_... macros.
4265
4266 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4267
4268         * combine.c (simplify_comparison): If simplifying a logical shift
4269         right and compare with constant, force the comparison to unsigned.
4270
4271 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4272
4273         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4274
4275         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4276         -mabi=no-altivec
4277         (alt_reg_names): Remove % for vrsave.
4278
4279 2002-03-06  Richard Henderson  <rth@redhat.com>
4280
4281         PR optimization/5844
4282         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4283         if used indicates we've already emitted one copy of an operand.
4284         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4285         (gen_split): Supply a non-null used.
4286
4287 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4288
4289         * reload1.c (reload): Unshare all rtl after reload is done.
4290
4291         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4292         but simply fail if the expression is too complex to simplify.
4293         (simplify_gen_binary): Handle simplify_plus_minus failures.
4294
4295 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4296
4297         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4298         consistently call delete_trivially_dead_insns after CSE and GCSE;
4299         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4300         after liveness2; update comment in last crossjumping.
4301         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4302
4303 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4304
4305         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4306         after completing fast dead code elimination.
4307
4308         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4309         COMPARE operator.
4310
4311 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4312
4313         * version.c:  Fix misplaced leading blanks on first line.
4314
4315 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4316
4317         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4318
4319 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4320
4321         * cfgcleanup.c (mentions_nonequal_regs): New function.
4322         (thread_jump): Use it.
4323         * toplev.c (rest_of_compilation): Run jump threading after
4324         liveness.
4325
4326 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4327
4328         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4329         patch.
4330
4331 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4332
4333         * predict.c (estimate_bb_frequencies): Do not reload the
4334         frequencies from notes.
4335
4336 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4337
4338         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4339         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4340
4341         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4342         delete_noop_moves): Return indeger.
4343         * flow.c (ndead): New variable.
4344         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4345         BB argument; update callers.
4346         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4347         (life_analysis): Do not call purge_all_dead_edges.
4348         (update_life_info): Return number of deleted insns; print statistics.
4349         (update_life_info_in_dirty_blocks): likewise.
4350         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4351         return number of insns deleted.
4352
4353         * cse.c: Include timevar.h
4354         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4355         iterate until stabilizes; print statistics; return number of killed
4356         insns.
4357         * Makefile.in: (cse.o): Add timevar.h dependency
4358         * rtl.h (delete_trivially_dead_insns): New.
4359         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4360         * toplev.c (rest_of_compilation): Update callers.
4361
4362         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4363         (try_optimize_cfg): Do not update liveness.
4364         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4365         removal stabilizes; use delete_trivially_dead_insns.
4366
4367         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4368
4369 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4370
4371         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4372         callbacks when processing assembly language.
4373
4374 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4375
4376         * pa.h (ASM_FILE_END): Define.
4377         * som.h (ASM_FILE_END): Delete.
4378
4379         * pa.c (function_arg): Don't pass floats in general registers in
4380         indirect calls if TARGET_ELF32.
4381
4382 2002-03-05  Richard Henderson  <rth@redhat.com>
4383
4384         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4385
4386 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4387
4388         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4389
4390 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4391
4392         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4393         -r command line.  Don't hide any symbols if not building
4394         shared libgcc.
4395
4396 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4397
4398         * cfg.c (dump_flow_info): Warn about profile mismatches.
4399         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4400         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4401
4402 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4403
4404         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4405         wide volatile memory by parts.
4406
4407 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4408
4409         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4410         is NULL.
4411
4412 2002-03-05  Richard Henderson  <rth@redhat.com>
4413
4414         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4415
4416 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4417
4418         * toplev.c (documented_lang_options): Document more
4419         language-specific options.
4420         * doc/invoke.texi (Warning Options): Correct documentation for
4421         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4422         * c-decl.c (c_decode_option): Use a table to handle warning options.
4423
4424 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4425
4426         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4427         parameter to mmix_encode_section_info.
4428         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4429         relocatably.  Always produce ELF, not mmo if linking relocatably.
4430         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4431         first is non-zero, don't add symbol prefix.
4432         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4433         prototype accordingly.
4434
4435 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4436
4437         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4438
4439 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4440
4441         * configure.in: Increase required makeinfo version to 4.1.
4442         * configure: Regenerate.
4443
4444 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4445
4446         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4447         elsewhere now.
4448
4449 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4450
4451         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4452         * doc/invoke.texi: Fix @math uses.
4453
4454 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4455
4456         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4457         removal
4458
4459 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4460
4461         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4462         (powerpc-*-eabisimaltivec*): Same.
4463
4464         * config/rs6000/t-ppcendian: New.
4465
4466 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4467
4468         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4469         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4470         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4471
4472 2002-03-03  Richard Henderson  <rth@redhat.com>
4473
4474         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4475
4476 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4477
4478         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4479         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4480         tree.c, config/m68k/m68k.c:
4481         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4482         REAL_ARITHMETIC blocks unconditional.  Delete some further
4483         #ifdef blocks predicated on REAL_ARITHMETIC.
4484         * flags.h, toplev.c: Delete remaining references to
4485         flag_pretend_float.
4486
4487         * doc/invoke.texi: Remove documentation of -fpretend-float.
4488         * doc/tm.texi: Describe the various REAL_* macros as provided by
4489         real.h, not by the target configuration files.
4490
4491         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4492         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4493         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4494         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4495         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4496         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4497         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4498         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4499         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4500         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4501         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4502         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4503         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4504         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4505         config/xtensa/xtensa.h:
4506         Do not define, undefine, or mention in comments any of
4507         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4508         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4509         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4510         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4511         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4512         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4513         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4514         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4515         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4516
4517 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4518
4519         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4520         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4521         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4522         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4523         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4524         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4525         Delete.
4526         * defaults.h (BITS_PER_WORD): Define.
4527         * doc/tm.texi (BITS_PER_WORD): Document default value.
4528
4529         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4530         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4531         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4532
4533 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4534
4535         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4536         lieu of explicit sizeof/sizeof.
4537         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4538         ix86_expand_builtin): Likewise.
4539         * mips.c (mips_add_gc_roots): Likewise.
4540         * mmix.c (mmix_output_condition): Likewise.
4541         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4542         altivec_init_builtins): Likewise.
4543         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4544         * cppexp.c (Nsuff, parse_number): Likewise.
4545         * cppinit.c (builtin_array_end): Likewise.
4546         * gcc.c (n_default_compilers, process_command): Likewise.
4547         * genpreds.c (output_predicate_decls): Likewise.
4548         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4549         * lcm.c (N_ENTITIES): Likewise.
4550         * stor-layout.c (set_sizetype): Likewise.
4551
4552 2002-03-03  Richard Henderson  <rth@redhat.com>
4553
4554         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4555         for types or labels.
4556
4557 2002-03-03  Richard Henderson  <rth@redhat.com>
4558
4559         * c-decl.c (start_decl): Initialized variables are not common.
4560
4561 2002-03-02  Per Bothner  <per@bothner.com>
4562
4563         * gcc.c (option_map):  Suport new --bootclasspath option.
4564         --CLASSPATH is now just an alias for --classpath.
4565
4566 2002-03-02  Richard Henderson  <rth@redhat.com>
4567
4568         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4569         load if "internal" visibility.
4570         * doc/extend.texi: Document visibility meanings.
4571
4572 2002-03-02  Richard Henderson  <rth@redhat.com>
4573
4574         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4575         to functions as well.
4576
4577 2002-03-02  Richard Henderson  <rth@redhat.com>
4578
4579         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4580         (handle_visibility_attribute): Don't call assemble_visibility.
4581         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4582         without asmspec.  Invoke assemble_alias when needed.
4583         * varasm.c (maybe_assemble_visibility): New.
4584         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4585
4586 2002-03-02  Richard Henderson  <rth@redhat.com>
4587
4588         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4589         invoke ENCODE_SECTION_INFO with first call flag.
4590
4591         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4592         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4593         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4594         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4595         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4596         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4597         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4598         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4599         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4600         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4601         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4602         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4603         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4604         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4605         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4606         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4607         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4608         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4609         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4610         config/sh/sh.h, config/sparc/sparc.h,
4611         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4612         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4613         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4614         FIRST argument.  As needed, examine it and do nothing.
4615
4616         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4617         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4618         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4619
4620         * config/arm/t-pe (pe.o): Add dependencies.
4621
4622 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4623
4624         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4625         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4626         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4627         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4628         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4629         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4630         * defaults.h (BITS_PER_UNIT): Define.
4631         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4632
4633 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4634
4635         * config/h8300/h8300-protos.h: Add a prototype for
4636         compute_a_shift_length.
4637         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4638         (compute_a_shift_length): Likewise.
4639         (h8300_adjust_insn_length): Do not adjust insn length of shift
4640         insns.
4641         * config/h8300/h8300.md (anonymous shift patterns): Use
4642         compute_a_shift_length.
4643
4644 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4645
4646         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4647         trunc_int_for_mode.
4648
4649         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4650
4651 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4652
4653         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4654         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4655         * flags.h (flag_zero_initialized_in_bss): Declare.
4656         * toplev.c (flag_zero_initialized_in_bss): New flag.
4657         (lang_independent_options): Add flag_zero_initialized_in_bss.
4658         * tree.c (initializer_zerop): New function.
4659         * tree.h (initializer_zerop): Declare.
4660         * varasm.c (assemble_variable): If we can emit bss, put zero
4661         initializers in the bss section.
4662
4663 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4664
4665         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4666         like more than one symbol per .weak directive.
4667
4668 2002-03-01  Richard Henderson  <rth@redhat.com>
4669
4670         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4671         adjust argument_pointer by pretend_args_size.
4672         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4673
4674 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4675
4676         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4677
4678 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4679
4680         * toplev.c (rest_of_compilation): Delete dead jumptables before
4681         loop.
4682         * flow.c (delete_dead_jumptables): Make global.
4683         * rtl.h (delete_dead_jumptables): Declare.
4684
4685 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4686
4687         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4688         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4689         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4690
4691 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4692
4693         * config/h8300/h8300-protos.h: Fix formatting.
4694         * config/h8300/h8300.c: Likewise.
4695         * config/h8300/h8300.h: Likewise.
4696
4697 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4698
4699         * config/h8300/h8300.c (print_operand): Support 16-bit
4700         constant addresses.
4701         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4702
4703 2002-02-28  Richard Henderson  <rth@redhat.com>
4704
4705         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4706         pun complex values as integers; use gen_lowpart instead of
4707         gen_rtx_SUBREG.
4708         (extract_bit_field): Likewise.
4709
4710 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4711             David Edelsohn  <edelsohn@gnu.org>
4712
4713         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4714         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4715         (SUPPORTS_WEAK): Likewise.
4716         * output.h (add_weak): Add tree param.
4717         * varasm.c (add_weak): Likewise.  Save decl.
4718         (struct weak_syms): Add decl field.
4719         (mark_weak_decls): New function.
4720         (init_varasm_once): ggc_add_root mark_weak_decls.
4721         (assemble_start_function): Use ASM_WEAKEN_DECL.
4722         (assemble_variable): Likewise.
4723         (assemble_alias): Likewise.
4724         (declare_weak): Pass decl to add_weak.
4725         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4726         (remove_from_pending_weak_list): Declare and define for
4727         ASM_WEAKEN_DECL.
4728         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4729         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4730         * defaults.h (SUPPORTS_WEAK): Likewise.
4731         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4732         .weak for code sym.  Do emit .size for descriptor sym.
4733         (ASM_DECLARE_FUNCTION_SIZE): Define.
4734         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4735         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4736         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4737         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4738         .weak for code sym.
4739         (HANDLE_PRAGMA_WEAK): Remove.
4740         (ASM_WEAKEN_LABEL): Remove.
4741         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4742
4743 2002-03-01  Jason Merrill  <jason@redhat.com>
4744
4745         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4746         (TARGET_EXPR_CLEANUP): New macro.
4747
4748 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4749
4750         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4751         to take ptr_extend into account as third type of extension.
4752         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4753         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4754         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4755         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4756         * calls.c (precompute_arguments): Use new macro.
4757         (expand_call): Ditto.
4758         * combine.c (nonzero_bits): Ditto.
4759         (record_promoted_value): Ditto.
4760         * expr.c (store_expr): Ditto.
4761         (expand_expr): Ditto.
4762         * function.c (assign_parms): Ditto.
4763
4764 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4765
4766         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4767         override -shared and -shared-libgcc.
4768
4769 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4770
4771         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4772         of "ultrasparc".
4773         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4774         to be broken.
4775
4776 2002-02-28  Richard Henderson  <rth@redhat.com>
4777
4778         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4779         4 cycle latency from MM producers.
4780         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4781
4782 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4783
4784         * mklibgcc.in: Don't use GNU make extension.
4785
4786 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4787
4788         * c-parse.in (STATIC): New terminal.
4789         (scspec): New non-terminal.  Update productions accordingly.
4790         (program): Remove bogus ifc / end ifc.
4791         (array_declarator): Simplify production using STATIC.
4792
4793 2002-02-28  Jim Meyering  <meyering@lucent.com>
4794
4795         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4796         \a still means TARGET_BELL.
4797
4798 2002-02-28  Richard Henderson  <rth@redhat.com>
4799
4800         * haifa-sched.c (sched_emit_insn): New.
4801         (schedule_block): Use last_scheduled_insn to track last insn.
4802         * sched-int.h (sched_emit_insn): Prototype.
4803         * config/ia64/ia64.c (last_issued): Remove.
4804         (ia64_variable_issue): Don't set it.
4805         (nop_cycles_until): Use sched_emit_insn.
4806
4807 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4808
4809         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4810         extended constants.
4811
4812 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4813
4814         * config/h8300/h8300.c: Fix formatting.
4815         * config/h8300/h8300.h: Likewise.
4816
4817 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4818
4819         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4820         which may overwrite the high byte of the frame pointer.
4821
4822 2002-02-28  Bo Thorsen  <bo@suse.de>
4823
4824         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4825         (STARTFILE_SPEC): Add 64 bit files.
4826         (ENDFILE_SPEC): Likewise.
4827
4828 2002-02-28  Jason Merrill  <jason@redhat.com>
4829
4830         * c-decl.c (finish_function): Only warn about missing return
4831         statement with -Wreturn-type.
4832
4833 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4834
4835         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4836
4837         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4838         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4839
4840 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4841
4842         * basic-block.h (BB_REACHABLE): Renumber.
4843         (BB_DIRTY, BB_NEW): New flags.
4844         (clear_bb_flags): Declare.
4845         (update_life_info_in_dirty_blocks): Declare.
4846         * cfg.c (clear_bb_flags): New function.
4847         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4848         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4849         reorder_insns, emit_insn_after): Mark block as dirty.
4850         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4851         (update_life_info_in_dirty_blocks): New function.
4852         * recog.c (apply_change_group): Dirtify block.
4853
4854         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4855         cfg consistent.
4856         * gcse.c (delete_null_pointer_checks): Likewise.
4857
4858         * toplev.c (dump_file_index): Move cse2 after bp,
4859         add DFI_null
4860         (dump_file_info): Similary.
4861         (rest_of_compilation): Avoid most of CFG rebuilds;
4862         do first if converision after null pointer checks, do cse2
4863         after branch prediction; avoid full liveness rebuild after
4864         initializing subregs.
4865         * invoke.texi (-d options): Document -du, renumber.
4866
4867         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4868         (notice_new_block): Do not set BB_UPDATE_LIFE.
4869         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4870          merge_blocks_move_successor_nojumps, merge_blocks,
4871          try_crossjump_to_edge): Likewise.
4872         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4873         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4874         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4875         (merge_of_block): Do not use life_data_ok.
4876         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4877         (if_convert): Use BB_DIRTY mechanizm to update life.
4878         * lcm.c (optimize_mode_switching): Update
4879         update_life_info_in_dirty_blocks
4880
4881 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4882
4883         * Makefile.in (integrate.o): Update.
4884         * c-decl.c (copy_lang_decl): Rename.
4885         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4886         * integrate.c: Include langhooks.h.
4887         (copy_decl_for_inlining): Update to use langhook.
4888         * langhooks-def.h (lhd_do_nothing_t,
4889         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4890         (LANG_HOOKS_INITIALIZER): Update.
4891         * langhooks.c (lhd_do_nothing_t): New.
4892         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4893         * tree.h (copy_lang_decl): Remove.
4894 objc:
4895         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4896
4897 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4898
4899         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4900         POST_DEC, and POST_MODIFY.
4901
4902 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4903
4904         * c-typeck.c (digest_init): Remove unused parameter; all
4905         callers changed.
4906
4907 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4908
4909         * expmed.c (expand_shift): Correctly test for low part of a
4910         subreg.
4911
4912 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4913
4914         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4915         insn UIDs with insn addresses.
4916
4917 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4918
4919         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4920         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4921         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4922         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4923         gcc.c, toplev.c: Delete code implementing -traditional mode.
4924
4925         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4926         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4927         Document removal of -traditional mode for compilation, and
4928         remove documentation only relevant to that mode.
4929
4930         * config/nextstep.h, config/ptx4.h, config/svr4.h,
4931         config/convex/convex.h, config/d30v/d30v.h,
4932         config/i386/dgux.h, config/i386/osf1elf.h,
4933         config/i386/osfelf.h, config/i386/osfrose.h,
4934         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4935         config/m68k/hp310.h, config/m88k/dgux.h,
4936         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4937         config/m88k/m88k.h, config/m88k/openbsd.h,
4938         config/mips/abi64.h, config/mips/osfrose.h,
4939         config/mips/svr4-5.h, config/mips/svr4-t.h,
4940         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4941         config/stormy16/stormy16.h: Remove all references to
4942         -traditional from target specs.  Delete all mention of the
4943         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
4944         delete a couple of commented-out definitions of
4945         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4946         to -traditional.
4947
4948         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4949         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4950
4951 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4952
4953         * mklibgcc.in: Don't use \n in a line subject to
4954         interpretation by echo.
4955
4956 2002-02-27  Graham Stott  <grahams@redhat.com>
4957
4958         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4959         Constify NAME.
4960
4961         * loop.c (prescan_loop): Handle PARALLEL.
4962
4963         * unroll.c (loop_iterations): Return 0 if the add_val for
4964         a BIV is REG.
4965
4966         * final.c (output_operand_lossage): Constify PFX_STR.
4967
4968         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4969
4970 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4971
4972         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4973         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4974
4975 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
4976
4977         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4978
4979 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4980
4981         * cpplex.c (_cpp_lex_token): Handle directives in macro
4982         arguments.
4983         * cpplib.c (_cpp_handle_directive): Save and restore state
4984         if parsing macro args when entering a directive.
4985         * cppmacro.c (collect_args): No need to handle directives
4986         in macro arguments.
4987         (enter_macro_context, replace_args): Use the original macro
4988         definition in case it was redefined whilst collecting arguments.
4989 doc:
4990         * cpp.texi: Update.
4991
4992 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
4993
4994         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4995         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4996         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4997         method on AIX.
4998         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4999         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5000         (load_toc_v4_PIC_2): Same.
5001
5002 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
5003
5004         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5005
5006 2002-02-26  Richard Henderson  <rth@redhat.com>
5007
5008         * config/alpha/alpha.md (ashldi_se): Re-enable.
5009
5010 2002-02-26  Richard Henderson  <rth@redhat.com>
5011
5012         * config/alpha/alpha.c (alpha_encode_section_info): Examine
5013         MODULE_LOCAL_P; improve commentary.
5014
5015 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
5016
5017         * doc/cpp.texi: Clarify documentation of relationship between
5018         #line and #include.
5019
5020 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5021
5022         * config/h8300/h8300-protos.h: Update the prototype for
5023         compute_logical_op_length.  Add the prototype for
5024         compute_logical_op_cc.
5025         * config/h8300/h8300.c (compute_logical_op_length): Figure out
5026         code from operands.
5027         (compute_logical_op_cc): New.
5028         * config/h8300/h8300.md: Combine all the logical op patterns
5029         in HImode and SImode.  Use compute_logical_op_cc.
5030
5031 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
5032
5033         * config/i386/i386.c (print_operand): Don't append ATT-style
5034         length suffixs to x87 opcodes when in Intel mode.
5035
5036 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
5037
5038         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5039         (init_emit_once): Update calls.
5040         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5041         (init_syntax_once): Prototype.
5042
5043 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5044
5045         * pa-linux.h (LIB_SPEC): Update definition.
5046         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5047
5048 2002-02-26  Richard Henderson  <rth@redhat.com>
5049
5050         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5051         if we emitted a stop bit.
5052
5053 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5054
5055         * configure.in (libgcc_visibility): Substitute.
5056         * configure: Rebuilt.
5057         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5058         defined symbols .hidden.
5059
5060 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5061
5062         * attribs.c (c_common_attribute_table): Add visibility.
5063         (handle_visibility_attribute): New function.
5064         * varasm.c (assemble_visibility): New function.
5065         * output.h (assemble_visibility): Add prototype.
5066         * tree.h (MODULE_LOCAL_P): Define.
5067         * crtstuff.c (__dso_handle): Use visibility attribute.
5068         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5069         for MODULE_LOCAL_P symbols too.
5070         * config/ia64/ia64.c (ia64_encode_section_info): Handle
5071         MODULE_LOCAL_P symbols the same way as local symbols.
5072         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5073         into .sdata/.sbss by the user.
5074         * doc/extend.texi (Function Attributes): Document visibility
5075         attribute.
5076
5077 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5078
5079         PR debug/5770
5080         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5081         STRING_CST initializer spanning the whole variable without
5082         embedded zeros.
5083         If expand_expr returned MEM, don't use it.
5084
5085 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5086
5087         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5088         generate a die for the lexical block.
5089
5090 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5091
5092         * config/h8300/h8300-protos.h: Add a prototype for
5093         compute_logical_op_length.
5094         * config/h8300/h8300.c (compute_logical_op_length): New.
5095         * config/h8300/h8300.md (anonymous logical patterns): Use
5096         compute_logical_op_length for length.
5097
5098 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5099
5100         * dwarf2out.c (modified_type_die): Do not call type_main_variant
5101         for vectors.
5102         (gen_type_die): Same.
5103
5104         * attribs.c (handle_vector_size_attribute): Set debug information.
5105
5106 2002-02-26  Daniel Egger  <degger@fhm.edu>
5107
5108         * config/rs6000/rs6000.md: Swap define_insn attributes to
5109         fix incorrect generation of merge high instructions instead
5110         of merge low.
5111
5112 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5113
5114         * c-typeck.c (really_start_incremental_init): Use
5115         bitsize_zero_node for vectors.
5116
5117 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5118
5119         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5120         ("*set_vrsave_internal"): Same.
5121
5122 2002-02-25  Richard Henderson  <rth@redhat.com>
5123
5124         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5125         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5126
5127 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5128
5129         PR target/5755
5130         * config/i386/i386.c (ix86_return_pops_args): Only pop
5131         fake structure return argument if it was passed on the stack.
5132
5133 2002-02-25  Jason Merrill  <jason@redhat.com>
5134
5135         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5136         RESULT_DECL.
5137
5138 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5139
5140         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5141         link with shared_name only.
5142         * doc/invoke.texi (Link Options): Document new behavior.
5143
5144 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5145
5146         * c-typeck.c (push_init_level): Handle vectors.
5147
5148 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5149
5150         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5151         operands of SPARC_SETHI_P.
5152         (input_operand): Likewise.
5153         (sparc_emit_set_const32): Likewise.
5154         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5155         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5156         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5157         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5158         (movdi_insn_sp64_vis): Likewise.
5159         (movdi split, movdf split): Use SETHI32.
5160         * doc/md.texi: Document SPARC constraints L, M and N.
5161
5162 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5163
5164         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5165         ("*set_vrsave_internal"): use mfspr for Darwin.
5166
5167         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5168         gen_get_vrsave_internal.
5169
5170 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5171
5172         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5173
5174 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5175
5176         * cpplex.c (cpp_interpret_charconst): Get signedness or
5177         otherwise of wide character constants correct.
5178         * cppexp.c (lex): Get signedness of wide charconsts correct.
5179
5180 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5181
5182         * optabs.c (widen_operand): Only call convert_modes for
5183         promoted SUBREG if signedness matches.
5184         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5185
5186 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5187
5188         * cpplib.c (glue_header_name): Use local buffer to build up
5189         header name.
5190
5191 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5192
5193         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5194
5195 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5196
5197         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5198         H8/300[HS] separately.
5199         * config/h8300/h8300.md: Remove the early clobber constraint
5200         from bit field patterns.
5201
5202 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5203
5204         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5205         register_operand.
5206         (mulhisi3): Likewise.
5207         (umulqisi3): Likewise.
5208         (umulhisi3): Likewise.
5209
5210 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5211
5212         * cppinit.c (output_deps): Correct test for stdout output.
5213         (init_dependency_output): Cure warning.
5214
5215 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5216
5217         * expr.c (store_expr): When converting expression to promoted
5218         equivalent type, allow using SUBREG_REG of TARGET as the target
5219         of the expansion of EXP.
5220         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5221         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5222         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5223         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5224         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5225
5226 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5227
5228         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5229         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5230         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5231
5232 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5233
5234         PR optimization/5747
5235         * loop.c (scan_loop): Update reg info if move_movables created new
5236         pseudos.
5237
5238 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5239
5240         * gcc.c (init_gcc_spec): Revert last change.
5241
5242 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5243
5244         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5245         gpc_reg_operand constraint.
5246
5247 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5248
5249         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5250         Simplify comparison of `low'.
5251         (add_operand): Fix formatting.
5252         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5253         (mask_operand): Disallow mask to wrap in 64-bit mode.
5254         (rs6000_stack_info): Remove redundant test setting push_p.
5255         (output_toc): Fix formatting.
5256         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5257         cc_reg_not_cr0_operand constraint.
5258         (booldi3, boolcdi3 splitters): Same.
5259
5260 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5261
5262         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5263
5264 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5265
5266         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5267         gcc invoked with -shared-libgcc.
5268
5269 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5270
5271         PR c++/5748
5272         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5273         decl if any of elements was TREE_USED.
5274
5275 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5276
5277         * config/sparc/sol2.h: Don't include sys/mman.h.
5278         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5279         (arith_4096_operand): Don't throw high bits away.
5280         (const64_operand): Take sign extension of CONST_INTs into account.
5281         (const64_high_operand, sparc_emit_set_const32): Likewise.
5282         (GEN_HIGHINT64): Likewise.
5283         (sparc_emit_set_const64_quick1): Likewise.
5284         (const64_is_2insns): Likewise.
5285         (print_operand): Use trunc_int_for_mode for sign extension.
5286         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5287         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5288         chars.  Assume CONST_INT is already properly sign-extended.
5289         (movdi split): Sign-extend each SImode part.
5290         (andsi3 split): Don't mask high bits off, so that result
5291         remains properly sign-extend.
5292         (iorsi3 split): Likewise.
5293         (xorsi3 split): Likewise.
5294
5295 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5296
5297         * fold-const.c (fold): Fix typo in comments.
5298
5299 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5300
5301         * Makefile.in (langhooks.o): Update dependencies.
5302
5303 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5304
5305         * langhooks.c: Include flags.h.
5306
5307 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5308
5309         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5310
5311         * c-common.c (c_common_post_options): Set inline trees by
5312         default.
5313
5314         * doc/extend.texi (Function Attributes): Document always_inline
5315         attribute.
5316         Update documentation about inlining when not optimizing.
5317
5318         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5319
5320         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5321         unless DECL_ALWAYS_INLINE.
5322
5323         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5324         unless DECL_ALWAYS_INLINE.
5325         (c_disregard_inline_limits): Disregard if always_inline set.
5326
5327         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5328         Disregard if always_inline set.
5329         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5330         unless DECL_ALWAYS_INLINE.
5331
5332         * attribs.c (handle_always_inline_attribute): New.
5333         (c_common_attribute_table): Add always_inline.
5334
5335         * config/rs6000/altivec.h: Add prototypes for builtins
5336         requiring the always_inline attribute.
5337
5338 2002-02-21  Eric Christopher  <echristo@redhat.com>
5339
5340         * expmed.c (store_bit_field): Try to simplify the subreg
5341         before generating a new one when when the mode size of
5342         value is less than maxmode.
5343
5344 2002-02-21  Richard Henderson  <rth@redhat.com>
5345
5346         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5347         than gen_rtx_PLUS to form the sum.
5348         * explow.c (force_reg): Rearrange to not allocate new pseudo
5349         when force_operand returns a register.
5350         * expr.c (expand_assignment): Allow offset_rtx expansion to
5351         return a sum.  Do not force addresses into registers.
5352         (expand_expr): Likewise.
5353         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5354         to canonicalize arithmetic that didn't simpify.
5355         (simplify_plus_minus): New argument force; update
5356         all callers.  Don't split CONST unless we can do something with it,
5357         and wouldn't lose the constness of the operands.
5358
5359         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5360         that we generated earlier.
5361
5362 2002-02-21  Tom Tromey  <tromey@redhat.com>
5363
5364         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5365         (output_line_info): Use constant `1', with a long explanatory
5366         comment.
5367         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5368
5369 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5370
5371         * jump.c (redirect_jump): If old label has no UID, don't try to
5372         delete it.
5373
5374 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5375
5376         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5377         If input is constant, do shifts at compile time.
5378
5379 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5380
5381         * doc/extend.texi: Fix some more overfull hboxes.
5382
5383 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5384
5385         PR optimization/4994
5386         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5387         register moves.
5388
5389 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5390
5391         PR c++/4574
5392         * expr.h (expand_and): Add mode argument.
5393         * expmed.c (expand_and): Add mode argument.
5394         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5395         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5396         * except.c (expand_builtin_extract_return_addr): Likewise.
5397         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5398         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5399         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5400         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5401         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5402         gen_rtx (CONST_INT, VOIDmode, x).
5403
5404 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5405
5406         PR c/4697:
5407         * stmt.c (warn_if_unused_value): Move side effects test once more.
5408
5409 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5410
5411         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5412         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5413
5414 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5415
5416         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5417         SUBREG or ZERO_EXTEND.
5418
5419 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5420
5421         * sh.h (current_function_anonymous_args): Remove.
5422         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5423         of current_function_varargs and current_function_stdarg is set.
5424         * sh.c (sh_expand_prologue): Check current_function_varargs /
5425         current_function_stdarg / TARGET_SH5 instead of
5426         current_function_anonymous_args.
5427
5428         * sh64.h (TARGET_VERSION): Define.
5429
5430 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5431
5432         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5433         VRSAVE_REGNO on TARGET_ALTIVEC.
5434
5435 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5436
5437         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5438         bits of SImode const_int.
5439         (includes_rshift_p): Likewise.
5440         (print_operand): Call mask_operand and mask64_operand with correct
5441         mode.
5442         (rs6000_output_function_epilogue): Pad traceback table to word.
5443         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5444         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5445         mask64_operand with correct mode.
5446         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5447
5448 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5449
5450         PR debug/4461
5451         * varasm.c (get_pool_constant_mark): New.
5452         * rtl.h (get_pool_constant_mark): Add prototype.
5453         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5454         be represented if it has not been output.
5455
5456 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5457
5458         * combine.c (do_SUBST): Sanity check substitutions of
5459         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5460         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5461         CONST_INT into its operand.
5462         (known_cond): Likewise, for ZERO_EXTEND.
5463         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5464         allow for simplification of wide modes.  Reject CONST_INTs in
5465         ZERO_EXTEND when their actual mode is not given.
5466
5467 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5468
5469         * c-decl.c (pushdecl): If no global declaration is found for an
5470         extern declaration in block scope, try a limbo one.
5471
5472 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5473
5474         PR c++/4401
5475         * c-common.c (pointer_int_sum): Moved from...
5476         * c-typeck.c (pointer_int_sum): ...here.
5477         * c-common.h (pointer_int_sum): Add prototype.
5478
5479 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5480
5481         PR c++/5713
5482         * c-decl.c (duplicate_decls): Return 0 if issued error about
5483         redeclaration.
5484
5485 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5486             Jakub Jelinek  <jakub@redhat.com>
5487
5488         PR c/4389
5489         * tree.c (host_integerp): Ensure that the constant integer is
5490         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5491         when pos is zero or non-zero respectively.  Clarify comment.
5492         * c-format.c (check_format_info_recurse): Fix host_integerp
5493         usage; the pos argument should be zero when assigning to a
5494         signed HOST_WIDE_INT.
5495
5496 2002-02-20  Richard Henderson  <rth@redhat.com>
5497
5498         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5499         of the operand, rather than assuming TImode.
5500         (ix86_expand_binop_builtin): Cope with commutative patterns
5501         using nonimmediate_operand for both operands.
5502         (ix86_expand_timode_binop_builtin): Likewise.
5503         (ix86_expand_store_builtin): Validate operand 1.
5504         (ix86_expand_unop1_builtin): Likewise.
5505
5506 2002-02-20  Philip Blundell  <philb@gnu.org>
5507
5508         PR 5705
5509         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5510
5511 2002-02-20  Richard Henderson  <rth@redhat.com>
5512
5513         PR c/5615
5514         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5515
5516 2002-02-20  Tom Tromey  <tromey@redhat.com>
5517
5518         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5519         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5520         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5521         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5522         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5523         unconditionally.
5524
5525 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5526
5527         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5528           for (const_int 0) in X not just INTVAL.
5529
5530 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5531
5532         * doc/extend.texi: Avoid or reduce overfull hboxes.
5533
5534 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5535
5536         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5537         operations if the field does not start at a mode boundary.
5538
5539 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5540
5541         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5542         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5543         Also done for -Acpu and -Amachine.
5544
5545 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5546
5547         * cppinit.c (init_dependency_output): Take deps output file
5548         from -o if none given with -MF.  Suppress normal output.
5549         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5550         * doc/cpp.texi, doc/invoke.texi: Update.
5551
5552 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5553
5554         * toplev.c (output_quoted_string): Write unprintable
5555         characters with octal escapes.
5556
5557 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5558
5559         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5560         really_call_used[VRSAVE_REGNO] if not Altivec.
5561
5562 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5563
5564         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5565         MODE_MASK.
5566         (constant_pool_expr_1): Fix formatting.
5567         (rs6000_legitimize_reload_address): Likewise.
5568
5569 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5570
5571         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5572         now that we have one.
5573
5574 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5575
5576         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5577         end of first block of bitfields (which was only seven bits);
5578         rename dummy to unused_1; remove comment which is no longer true.
5579
5580 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5581
5582         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5583
5584 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5585
5586         PR 5399
5587         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5588         if generating PIC.
5589
5590         PR 5054
5591         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5592         arm_is_longcall_p rather than inspecting call-type cookie
5593         directly.
5594         (call_value_insn) [TARGET_THUMB]: Likewise.
5595
5596 2002-02-19  Graham Stott  <grahams@redhat.com>
5597
5598         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5599
5600 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5601
5602         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5603         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5604         (FP_SAVE_INLINE): Delete.
5605
5606         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5607         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5608         * config/rs6000/t-ppccomm: Build crtsavres.o.
5609         * config/rs6000/crtsavres.asm: New file.
5610
5611 2002-02-19  Philip Blundell  <philb@gnu.org>
5612
5613         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5614         functions.
5615         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5616         (output_return_instruction): Allow interrupt functions to return with
5617         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5618         (arm_expand_prologue): Subtract 4 before stacking LR in an
5619         interrupt function.
5620
5621 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5622
5623         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5624         decl, not just FUNCTION_DECL.
5625         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5626         (arm_assemble_integer): Likewise.
5627         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5628         marked local.
5629
5630 2002-02-19  matthew green  <mrg@eterna.com.au>
5631
5632         * config.gcc (sparc-*-netbsdelf*): Enable target.
5633         (sparc64-*-netbsd*): New target.
5634         * config/sparc/netbsd-elf.h: New file.
5635         * config/sparc/t-netbsd64: New file.
5636
5637 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5638
5639         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5640
5641 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5642
5643         * doc/invoke.texi: explicitly list the style guidelines that
5644         -Weffc++ checks for.
5645
5646 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5647
5648         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5649
5650 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5651
5652         PR other/5718
5653         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5654         only if not -E.  If -E, pass -o through to the preprocessor.
5655
5656 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5657
5658         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5659         register number with an appropriate macro.
5660
5661 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5662
5663         * doc/rtl.texi (Constants): Close @code tag.
5664
5665 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5666
5667         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5668         ("mmx_uavgv4hi3"): Same.
5669         ("pmulhrwv4hi3"): Same.
5670
5671         * tree-inline.c (walk_tree): Handle vectors.
5672
5673         * c-common.c (constant_expression_warning): Handle vectors.
5674         (overflow_warning): Same.
5675
5676         * sched-deps.c (sched_analyze_2): Handle vectors.
5677
5678         * rtlanal.c (rtx_unstable_p): Handle vectors.
5679         (rtx_varies_p): Same.
5680         (count_occurrences): Same.
5681         (regs_set_between_p): Same.
5682         (modified_between_p): Same.
5683         (modified_in_p): Same.
5684         (volatile_insn_p): Same.
5685         (volatile_refs_p): Same.
5686         (side_effects_p): Same.
5687         (may_trap_p): Same.
5688         (inequality_comparisons_p): Same.
5689         (replace_regs): Same.
5690         (computed_jump_p_1): Same.
5691
5692         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5693         argument.
5694         (inner_mode_array): New.
5695         (copy_rtx): Handle vectors.
5696         (copy_most_rtx): Same.
5697         (rtx_equal_p): Same.
5698         (get_mode_alignment): Adjust for vectors.
5699
5700         * resource.c (mark_referenced_resources): Handle vectors.
5701         (mark_set_resources): Same.
5702
5703         * reload1.c (eliminate_regs): Handle vectors.
5704         (elimination_effects): Same.
5705         (scan_paradoxical_subregs): Same.
5706
5707         * reload.c (subst_reg_equivs): Handle vectors.
5708
5709         * regrename.c (scan_rtx): Handle vectors.
5710
5711         * regclass.c (reg_scan_mark_refs): Handle vectors.
5712
5713         * recog.c (find_single_use_1): Handle vectors.
5714
5715         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5716         (contains_replace_regs): Same.
5717         (memref_referenced_p): Same.
5718
5719         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5720         (subst_constants): Same.
5721
5722         * genattrtab.c (attr_copy_rtx): Handle vectors.
5723         (encode_units_mask): Same.
5724         (clear_struct_flag): Same.
5725         (count_sub_rtxs): Same.
5726
5727         * gcse.c (want_to_gcse_p): Handle vectors.
5728         (oprs_unchanged_p): Same.
5729         (hash_expr_1): Same.
5730         (oprs_not_set_p): Same.
5731         (expr_killed_p): Same.
5732         (compute_transp): Same.
5733         (store_ops_ok): Same.
5734
5735         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5736         of vectors.
5737         (fixup_var_refs_1): Same.
5738         (instantiate_virtual_regs_1): Same.
5739
5740         * fold-const.c (operand_equal_p): Handle vectors.
5741         (fold): Same.
5742         (rtl_expr_nonnegative_p): Same.
5743
5744         * flow.c (mark_used_regs): Handle vectors.
5745
5746         * df.c (df_uses_record): Handle vectors.
5747
5748         * cselib.c (cselib_subst_to_values): Handle vectors.
5749         (cselib_mem_conflict_p): Same.
5750         (hash_rtx): Same.
5751
5752         * cse.c (canon_reg): Handle vectors.
5753         (fold_rt): Same.
5754         (cse_process_notes): Same.
5755         (count_reg_usage): Same.
5756         (canon_hash): Same.
5757
5758         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5759
5760         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5761
5762         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5763         (gen_rtx): Handle CONST_VECTOR.
5764         (gen_const_vector_0): New.
5765         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5766         (reset_used_flags): Same.
5767         (copy_insn_1): Same.
5768         (initializer_constant_valid_p): Handle VECTOR_CST.
5769
5770         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5771
5772         * doc/rtl.texi (Constants): Document const_vector.
5773         (CONST0_RTX): Update for vectors.
5774         (RTL sharing): Same.
5775
5776         * print-tree.c (print_node): Add case for VECTOR_CST.
5777
5778         * tree.h (TREE_VECTOR_CST_ELTS): New.
5779         (struct tree_vector): New.
5780         (union tree_node): Add vector node.
5781         (build_vector): Add prototype.
5782
5783         * tree.def (VECTOR_CST): New.
5784
5785         * tree.c (build_vector): New.
5786
5787         * expmed.c (make_tree): Handle CONST_VECTOR.
5788
5789         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5790         (CONST_VECTOR_ELT): New.
5791         (CONST_VECTOR_NUNITS): New.
5792
5793         * machmode.h (GET_MODE_INNER): New.
5794         (DEF_MACHMODE): Accept 8th arg.
5795
5796         * machmode.def: Add 8th argument for vector inner mode.
5797         Add inner vector modes for vectors.
5798
5799         * rtl.def (VEC_CONST): Remove.
5800         (CONST_VECTOR): New.
5801
5802         * expr.c (clear_storage): Allow vectors.
5803         (is_zeros_p): Handle VECTOR_CST.
5804
5805         * varasm.c (output_constant_pool): Handle vectors.
5806         (rtx_const): Add veclo and vechi fields.
5807         (kind): Add RTX_VECTOR.
5808         (decode_rtx_const): Add case for vector.
5809
5810         * config/rs6000/rs6000-protos.h: Add zero_constant.
5811
5812         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5813         constants.  Force easy vector constants into memory.
5814         (easy_vector_constant): New.
5815         (emit_easy_vector_constant): New.
5816         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5817         darwin.
5818
5819         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5820         instruction does.
5821         ("altivec_lvxl"): Same.
5822         (altivec_lvebx): Same.
5823         (altivec_lvehx): Same.
5824         (altivec_lvewx): Same.
5825         ("*movv4si_const0"): New.
5826         ("*movv4sf_const0"): New.
5827         ("*movv8hi_const0"): New.
5828         ("*movv16qi_const0"): New.
5829
5830 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5831
5832         * config/h8300/h8300.c (notice_update_cc): Use
5833         cc_status.value2.
5834
5835 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5836
5837         * config/h8300/h8300.md (divmod patterns): Change the
5838         constraints for operands[1] to register_operand.
5839
5840 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5841
5842         * config/h8300/h8300-protos.h: Remove the prototype for
5843         p_operand.
5844         * config/h8300/h8300.c (p_operand): Remove.
5845         * config/h8300/h8300.md: Replace p_operand with
5846         const_int_operand.
5847
5848 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5849
5850         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5851         comment.
5852         (output_return_instruction): Allow use of LDR to unstack
5853         return addresss even for interrupt handlers or when
5854         interworking.  If compiling for ARMv5, use interworking-safe
5855         return instructions by default.  Remove duplicated code and
5856         lengthy "strcat" sequences.
5857
5858 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5859
5860         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5861         (LINK_EH_SPEC): Define.
5862         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5863
5864 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5865
5866         * config/s390/s390.c (s390_emit_prologue): Do not set the
5867         frame_related flag for call-clobbered registers.
5868
5869 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5870
5871         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5872         (construct_container): Fix handling of SSE operands.
5873         (ix86_expand_builtin): Fix handling of 64bit pointers.
5874         (mmx_maskmovq_rex): New pattern.
5875
5876 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5877
5878         * regrename.c (kill_set_value): Handle subregs properly.
5879
5880 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5881
5882         * objc/objc-act.c (handle_impent): Remove leading '*'
5883         from objc_class_name.
5884
5885 2002-02-17  Richard Henderson  <rth@redhat.com>
5886
5887         * config/alpha/alpha.c (some_small_symbolic_operand,
5888         some_small_symbolic_operand_1, split_small_symbolic_operand,
5889         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5890         Handle small SYMBOL_REFs anywhere, not just inside memories.
5891         * config/alpha/alpha-protos.h: Update.
5892         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5893         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5894
5895 2002-02-17  Roland McGrath  <roland@frob.com>
5896
5897         * config.gcc (powerpc-*-gnu-gnualtivec*,
5898         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5899         * config/rs6000/gnu.h: New file.
5900         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5901         Grok "gnu" in rs6000_abi_name.
5902         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5903         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5904         Grok -mcall-gnu analogous to -mcall-linux et al.
5905         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5906         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5907         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5908
5909 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5910
5911         PR c/3444:
5912         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5913         shortening.
5914
5915 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5916
5917         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5918         ENDFILE_SPEC before (re)defining them.
5919
5920 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5921
5922         * config/h8300/h8300.c: Fix formatting.
5923         * config/h8300/h8300.h: Likewise.
5924
5925 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5926
5927         * doc/tm.texi: Explain why empty strings should not be
5928         marked for translation.
5929
5930 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5931
5932         * final.c (output_operand_lossage): Changed to accept
5933         printf style arguments. Change calls where necessary.
5934         * output.h (output_operand_lossage): Change declaration
5935         accordingly. Update copyright.
5936         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5937         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5938         Update copyright date where necessary.
5939
5940         * config/i386/i386.c (print_operand): Likewise. Remove use of
5941         sprintf.
5942
5943         * config/cris/cris.c (cris_operand_lossage): Likewise.
5944         Rename parameter so that exgettext recognizes it as
5945         translatable message.
5946         (LOSE_AND_RETURN): Rename parameter to msgid.
5947
5948 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5949
5950         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5951         hard coded register number with an appropriate macro.
5952         (HARD_REGNO_MODE_OK): Likewise.
5953         (ARG_POINTER_REGNUM): Likewise.
5954         (STATIC_CHAIN_REGNUM): Likewise.
5955         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5956         * config/h8300/h8300.md (define_constants): Define more
5957         register numbers.
5958
5959 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5960
5961         * config/i386/i386.h: Don't mark empty strings for translation.
5962
5963 2002-02-16  H.J. Lu <hjl@gnu.org>
5964
5965         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5966
5967 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
5968
5969         * cppinit.c (merge_include_chains): Check for brack being
5970         NULL before attempting to merge it with qtail.
5971
5972 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5973
5974         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5975         DBX_DEBUG.
5976
5977 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5978
5979         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5980
5981 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5982
5983         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5984         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5985         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5986
5987 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5988
5989         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5990         now only if !TARGET_FIX.
5991         (*movsi_nt_vms_fix): New pattern.
5992
5993 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
5994
5995         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5996         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5997         (alpha_sa_mask, alpha_sa_size): Reflect above change.
5998         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5999         (alpha_start_function, alpha_expand_epilogue): Likewise.
6000         (unicosmk_gen_dsib): Likewise.
6001
6002 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6003
6004         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6005
6006 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
6007
6008         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6009         check_and_change_labels, s390_final_chunkify): Delete.
6010         (s390_split_branches, s390_chunkify_pool): New functions.
6011         (s390_function_prologue): Call them.
6012
6013         * config/s390/s390.h (S390_REL_MAX): Delete.
6014         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6015
6016         * config/s390/s390.md (cjump, icjump, jump): Fix length
6017         attribute calculation.
6018
6019
6020 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
6021
6022         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6023         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6024
6025 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6026
6027         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6028         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6029         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6030
6031 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6032
6033         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6034
6035 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6036
6037         * reload.c (find_dummy_reload): Check that an output register
6038         is valid for its mode.
6039
6040 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
6041
6042         * combine.c (known_cond): After replacing the REG of a SUBREG, try
6043         to simplify it.
6044
6045         * function.c (assign_parms): Demote promoted argument passed by
6046         transparent reference.
6047
6048 2001-02-14      Joel Sherrill <joel@OARcorp.com>
6049
6050         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6051         -Acpu() and -Amachine() to eliminate warnings.
6052
6053 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
6054
6055         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6056
6057 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6058
6059         * config/h8300/h8300-protos.h: Update the prototype for
6060         const_costs.
6061         * config/h8300/h8300.c (const_costs): Treat SET as a little
6062         more expensive operation.
6063         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6064         reference to const_costs.
6065
6066 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6067
6068         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6069
6070 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6071
6072         PR c/5503:
6073         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6074         use arguments from newtype.
6075
6076 2002-02-13  Eric Christopher  <echristo@redhat.com>
6077
6078         * config/mips/mips.c (override_options): Add check for march/mipsX
6079         on the same command line. Fix error message in cpu processing.
6080         Remove architecture and ISA checks.
6081
6082 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6083
6084         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6085
6086         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6087
6088 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6089
6090         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6091         alternatives.
6092         ("*movv8hi_internal1"): Same.
6093         ("*movv16qi_internal1"): Same.
6094         ("*movv4sf_internal1"): Same.
6095
6096         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6097         not push_reload for altivec modes.
6098
6099 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6100
6101         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6102         all RTEMS targets including removal of #includes from config/*/rtems*.h
6103         file and adding them to tm_file setting. Added xm_defines=POSIX to
6104         many targets.
6105         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6106         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6107         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6108         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6109         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6110         config/m68k/rtemself.h: Ditto.
6111         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6112         config/mips/rtems64.h: Ditto.
6113         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6114         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6115         Ditto.
6116         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6117         config/sparc/rtemself.h: Ditto.
6118         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6119         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6120         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6121         more like arm-elf.
6122         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6123         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6124         target made more similar to i386-elf.
6125         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6126         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6127         be similar to config/m68k/t-m68kelf.
6128         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6129
6130 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6131
6132         * regmove.c (kill_value): Handle subregs.
6133
6134 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6135
6136         * i386.md (mul patterns): Allow memory operand to be first;
6137         add expanders where needed; fix constraints.
6138         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6139         Allow memory operand to be the first.
6140
6141         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6142         operands.
6143
6144 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6145
6146         PR c/5681:
6147         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6148         GET_MODE (x).
6149
6150 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6151
6152         PR optimization/5547:
6153         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6154         all valid IA-32 address modes involving non-scaled %ebx and
6155         GOT/GOTOFF as displacement.
6156
6157 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6158
6159         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6160         after emitting ltorg insns.
6161
6162         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6163         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6164         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6165         *abssf2): Fix "op_type" attribute.
6166
6167 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6168
6169         * mkconfig.sh: Avoid using a subshell redirect.
6170         ($output.T): Change to $(output)T.
6171         (ENABLE_NLS): Remove unneeded undef.
6172
6173         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6174         * config/alpha/x-vms (libsubdir): Define.
6175
6176         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6177         register frame procedures. Optimize retrieving context.
6178
6179         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6180         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6181         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6182
6183 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6184
6185         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6186         Make same change as for find_base_value.
6187
6188 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6189
6190         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6191         of QImode and SImode.
6192
6193 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6194
6195         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6196         length computation of movsi.
6197         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6198
6199 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6200
6201         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6202         operands[2] to register_operand.
6203
6204 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6205
6206         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6207
6208 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6209
6210         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6211         for altivec_lvx* and altivec_stvx*.
6212         ("*movv4si_internal"): Add constraint for loading from GPRs.
6213         ("*movv8hi_internal1"): Same.
6214         ("*movv16qi_internal1"): Same.
6215         ("*movv4sf_internal1"): Same.
6216
6217         * config/rs6000/rs6000.c (altivec_register_operand): New.
6218
6219         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6220         altivec_register_operand.
6221
6222 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6223
6224         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6225         handle SYMBOL_REF.
6226
6227 2002-02-13  Stan Shebs  <shebs@apple.com>
6228
6229         * c-typeck.c (digest_init): Handle vectors.
6230         (really_start_incremental_init): Same.
6231         (pop_init_level): Same.
6232         (process_init_element): Same.
6233
6234         * varasm.c (output_constant): Same.
6235
6236         * expr.c (clear_storage): Same.
6237         (store_constructor): Same.
6238
6239 2002-02-12  Eric Christopher  <echristo@redhat.com>
6240
6241         * explow.c (hard_function_value): Add comment explaining
6242         signed/unsigned comparison.
6243
6244 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6245
6246         * jump.c (never_reached_warning): Add finish argument.
6247         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6248         real insn after end.
6249         * rtl.h (never_reached_warning): Adjust prototype.
6250         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6251         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6252         never_reached_warning.
6253
6254 2002-02-12  Graham Stott  <grahams@redhat.com>
6255
6256         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6257
6258 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6259
6260         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6261         logical shifts on H8/300.
6262         (shift_alg_si): Improve several shifts on H8/300.
6263         (get_shift_alg): Likewise.
6264
6265 2002-02-12  Graham Stott  <grahams@redhat.com>
6266
6267         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6268
6269 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6270
6271         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6272         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6273
6274 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6275
6276         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6277         non-CONST_INT through default_assemble_integer.
6278         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6279         <case 8>: Abort for CONST_DOUBLE.
6280
6281 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6282
6283         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6284         is specified.
6285         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6286         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6287
6288 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6289
6290         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6291
6292 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6293
6294         * regrename.c (regrename_optimize): Don't accept a
6295         part-clobbered register if the replaced register is not part
6296         clobbered.
6297
6298         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6299         take padding into account when computing the argument value.
6300
6301         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6302
6303         * combine.c (try_combine): Apply substitutions in
6304         CALL_INSN_FUNCTION_USAGE too.
6305
6306 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6307
6308         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6309         __builtin_altivec_abs*.
6310         (bdesc_abs): New.
6311
6312         * config/rs6000/rs6000.h (rs6000_builtins): Add
6313         ALTIVEC_BUILTIN_ABS*.
6314
6315         * config/rs6000/altivec.h: Use const char for builtins expecting
6316         literals.
6317         (vec_abs): New versions for C and C++.
6318         (vec_abss): Same.
6319
6320 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6321
6322         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6323         using Pmode.
6324
6325 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6326
6327         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6328         constant definition from h8300.md.
6329         (FRAME_POINTER_REGNUM): Likewise.
6330         * config/h8300/h8300.md (define_constants): Add FP_REG.
6331
6332 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6333
6334         * config/h8300/h8300.c (print_operand): Remove redundant code.
6335
6336 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6337
6338         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6339         * config/h8300/h8300.c (byte_reg): Make it static.
6340
6341 2002-02-10  Richard Henderson  <rth@redhat.com>
6342
6343         PR c/5623
6344         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6345
6346 2002-02-10  Richard Henderson  <rth@redhat.com>
6347
6348         PR c++/5624
6349         * tree.c (append_random_chars): Don't abort if main_input_filename
6350         does not exist.
6351
6352 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6353
6354         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6355
6356 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6357
6358         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6359         (pushhi1): Likewise.
6360
6361 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6362
6363         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6364         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6365
6366 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6367
6368         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6369         remove MASK_VIS.
6370         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6371
6372 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6373
6374         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6375         a half of an SImode register on H8/300.
6376
6377 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6378
6379         * i386.md (movdi_2): Add missing '!'.
6380
6381 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6382
6383         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6384         definitions.
6385
6386 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6387
6388         * config/h8300/h8300.md (length): Correct the distance valid
6389         for the short branch.
6390
6391 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6392
6393         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6394
6395 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6396
6397         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6398         registers in SImode.
6399         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6400         part-clobbered.
6401
6402         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6403         patch.
6404
6405         Contribute sh64-elf.
6406         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6407         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6408         (sh_cannot_modify_jumps_p): New function.
6409         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6410         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6411         (sh_ms_bitfield_layout_p): New function.
6412         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6413                     Zack Weinberg  <zack@codesourcery.com>
6414         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6415         expand_simple_binop instead of expand_binop.
6416         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6417         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6418         use of .quad and .uaquad.
6419         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6420         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6421         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6422         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6423         movdi_const_16bit): Make sure all CONSTs have modes.
6424         (sym2PIC): Ditto, but by adjusting all callers.
6425         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6426         if the prologue calls the SHmedia argument decoder or register
6427         saver.
6428         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6429         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6430         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6431         (sh_expand_epilogue): Don't emit USE of return target register.
6432         (prepare_move_operands): Legitimize DImode PIC addresses.
6433         (sh_media_register_for_return): Skip tr0, used to initialize the
6434         PIC register.
6435         (sh_expand_prologue): Remove explicit USE of return register.
6436         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6437         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6438         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6439         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6440         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6441         EXTRA_CONSTRAINT_T.
6442         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6443         (MOVI_SHORI_BASE_OPERAND_P): New.
6444         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6445         (EXTRA_CONSTRAINT_T): Define in terms of them.
6446         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6447         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6448         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6449         alternatives supporting TARGET_REGS.
6450         (UNSPEC_GOTPLT): New constant.
6451         (movdi split): Move incrementing of LABEL_NUSES...
6452         (movdi_const, movdi_const_32bit): Here.  Use
6453         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6454         (movdi_const_16bit): New.
6455         (call, call_value) [flag_pic]: Use GOTPLT.
6456         (call_pop, call_value_pop): New expands.
6457         (call_pop_compact, call_pop_rettramp): New insns.
6458         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6459         (sibcall) [flag_pic]: Use GOT.
6460         (builtint_setjmp_receiver): Remove bogus, unused expand.
6461         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6462         (*pt, *ptb, ptrel): New insns.
6463         (sym2GOT): Handle DImode GOT.
6464         (sym2GOTPLT, symGOTPLT2reg): New expands.
6465         (sym2PIC): New expand.
6466         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6467         (shcompact_return_tramp_i): Use return register explicitly.
6468         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6469         disable flag_reorder_blocks.
6470         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6471         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6472         clobbers, for clarity.
6473         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6474         restoring of r0 in macl as MAYBE_DEAD.
6475         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6476         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6477         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6478         alter_subreg all over.
6479         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6480         reload, instead of emitting instructions that would require
6481         reloading.
6482         (casesi_load_media): Add missing modes.
6483         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6484         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6485         as used if the argument decoder is called.
6486         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6487         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6488         Pmode, then extend it to DImode if necessary.
6489         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6490         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6491         constants in FPU-enabled SHmedia, let them be loaded from memory.
6492         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6493         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6494         Adjust whitespace in assembly output templates.
6495         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6496         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6497         mode of if_then_else.
6498         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6499         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6500         sh.h.
6501         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6502                     Joern Rennecke <amylaar@redhat.com>
6503         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6504         (SUBTARGET_CPP_PTR_SPEC): New.
6505         (SUBTARGET_CPP_SPEC): Remove.
6506         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6507         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6508         Fix typo in previous checkin.
6509         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6510         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6511         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6512                     Alexandre Oliva  <aoliva@redhat.com>
6513         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6514         what single FP register can hold for SHmedia target.
6515         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6516                     Alexandre Oliva  <aoliva@redhat.com>
6517         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6518         Do not split into SUBREG.
6519         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6520         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6521         and added new functions as specified in SH5 ABI r9.
6522         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6523         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6524         8-byte boundary.
6525         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6526         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6527         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6528         and consttable_window_ends.
6529         2001-06-03  Graham Stott  <grahams@redhat,com>
6530         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6531         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6532         * config/sh/sh.c (print_operand): Handle floating-point pair,
6533         vector and matrix registers.
6534         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6535         vector modes into account.
6536         * config/sh/sh.md (movv2sf): Split move between registers into
6537         movdf.
6538         (movv4sf, movv16sf): Introduce insns that get split only after
6539         reload.
6540         * config/sh/shmedia.h: Fix Copyright dates.
6541         * config/sh/ushmedia.h: Likewise.  Move loop counter
6542         declarations into conditionals that uses them.
6543         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6544         loop boundary.
6545         * config/sh/sshmedia.h: Fix Copyright dates.
6546         (sh_media_PUTCFG): Fix constraints.
6547         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6548         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6549         ptrmemfunc_vbit_in_delta for SH5.
6550         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6551         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6552         * invoke.texi: Likewise.
6553         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6554         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6555         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6556         GCC_pop_shmedia_regs_nofpu): New global symbols.
6557         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6558         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6559         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6560         compact function with nonlocal labels.
6561         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6562         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6563         (initial_elimination_offset): Account for their stack space.
6564         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6565         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6566         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6567         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6568         least one of the operands to be a register.
6569         (movv2sf): Likewise.  Renamed to movv2sf_i.
6570         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6571         prepare_move_operands() before emitting SHmedia insns.
6572         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6573         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6574         Don't save nor initialize r12.  Don't mis-align the stack.
6575         Pad the code with a nop.
6576         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6577         stack.
6578         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6579         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6580         [__SHMEDIA__]: Implement.
6581         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6582         * config/sh/sh.md: Set latency of `pt' closer to reality.
6583         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6584         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6585         Set move, load and store type attributes.
6586         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6587         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6588         profiling.
6589         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6590         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6591         * config/sh/sh.c (sh_media_register_for_return): New function.
6592         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6593         branch-target register.
6594         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6595         * config/sh/sh.md (return_media_i): Use any call-clobbered
6596         branch-target register.
6597         (return_media): If r18 wasn't copied in the prologue, copy it
6598         here.
6599         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6600         Clear class FP0_REGS.
6601         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6602         from elf.h.
6603         2001-03-08  DJ Delorie  <dj@redhat.com>
6604         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6605         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6606         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6607         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6608         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6609         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6610         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6611         return value correctly for call_cookie.
6612         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6613         * config/sh/crt1.asm (start): Modified so as to call
6614         ___setup_argv_and_call_main.
6615         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6616         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6617         SHmedia mode.
6618         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6619         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6620         (STRIP_NAME_ENCODING): Use it.
6621         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6622         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6623         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6624         prepare_scc_operands().
6625         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6626         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6627         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6628         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6629         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6630         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6631         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6632         used in shcompact_incoming_args.
6633         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6634         change.
6635         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6636         mode.
6637         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6638         Adjust accordingly.
6639         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6640         Simplify.  Adjust.  Add sanity check.
6641         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6642         FPU_SINGLE_BIT.
6643         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6644         TARGET_SHCOMPACT.
6645         (udivsi3, divsi3): Use them.
6646         (force_mode_for_call): New insn.
6647         (call, call_value, sibcall_value): Emit it before SHcompact
6648         calls.
6649         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6650         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6651         call cookie is non-NULL before taking its value.
6652         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6653         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6654         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6655         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6656         block.
6657         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6658         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6659         temporary for stack adjusts.  Use MACL and MACH to pass
6660         arguments to shcompact_incoming_args.
6661         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6662         clobber r1.
6663         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6664         (nested_trampoline): Load static chain address into r1.
6665         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6666         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6667         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6668         fp_arith_reg_operand().
6669         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6670         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6671         and use signed compares for them.
6672         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6673         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6674         ones properly aligned.
6675         (find_barrier): Account for extra alignment needed for 8-byte wide
6676         constants.
6677         (machine_dependent_reorg): Require a label for the second 4-byte
6678         constant after an 8-byte one.
6679         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6680         change.
6681         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6682         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6683         last_float when switching float modes.
6684         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6685         auto-increment for general-purpose registers.
6686         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6687         result.
6688         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6689         for stack adjust.
6690         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6691         registers for varargs.
6692         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6693         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6694         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6695         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6696         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6697         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6698         call_cookie accordingly.
6699         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6700         (SHCOMPACT_BYREF): Likewise.
6701         (SHCOMPACT_FORCE_ON_STACK): New macro.
6702         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6703         (sh_builtin_saveregs): Likewise.
6704         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6705         shcompact_incoming_args): Use new shift values.  Support
6706         sequences of consecutive and non-consecutive pushes/pops.
6707         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6708         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6709         * config/sh/sh.h (TEXT_SECTION): Define.
6710         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6711         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6712         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6713         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6714         return values on FPU-enabled SHmedia.
6715         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6716         FPU-enabled SHmedia.
6717         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6718         value is returned in a non-FP reg and is not returned by
6719         reference.
6720         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6721         jump_ind.
6722         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6723         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6724         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6725         quad-aligned to be passed by callee-copy reference.
6726         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6727         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6728         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6729         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6730         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6731         copying low-numbered FP regs to r7 and r8.
6732         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6733         FP regs to general-purpose regs only if the copy was passed on the
6734         stack.
6735         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6736         copying FP reg to r9.
6737         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6738         copy FP regs to general-purpose regs only in outgoing calls.
6739         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6740         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6741         HOST_WIDE_INT.
6742         * config/sh/sh.h (struct sh_args): Document all fields.
6743         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6744         passed partially on the stack should not consider making
6745         sibcalls.
6746         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6747         stack_regs only for incoming calls.  When passing FP args,
6748         make sure there are FP regs available before modifying
6749         call_cookie.
6750         (SHCOMPACT_BYREF): Pass double args in general-purpose
6751         registers by reference.
6752         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6753         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6754         attempt to generate sibcalls if the caller got any arguments
6755         by reference.
6756         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6757         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6758         to 8-byte boundaries.
6759         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6760         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6761         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6762         stored in the stack.
6763         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6764         for the offsets to have the ISA bit set.
6765         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6766         invocation.  Use beq instead of bgt to mark end of sequence of
6767         loads.
6768         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6769         bgt to mark end of sequence of stores.
6770         * config/sh/sh.c (arith_operand): Don't check whether
6771         CONST_OK_FOR_J for now.
6772         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6773         instead of long for conversion.
6774         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6775         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6776         before passing it to fprintf.
6777         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6778         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6779         Call set_fpscr before reading/writing SR.
6780         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6781         Call set_fpscr.
6782         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6783         SHmedia code.
6784         (FMOVD_WORKS): Define on SH5 with FPU.
6785         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6786         setting.
6787         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6788         _fpscr_values.
6789         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6790         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6791         address.
6792         (ia_main_table): Ditto.
6793         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6794         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6795         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6796         the definitions from sh.h.
6797         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6798         TARGET_SH5.
6799         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6800         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6801         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6802         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6803         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6804         Increment LABEL_NUSES.
6805
6806         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6807         TARGET_SH5.
6808         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6809         defined.
6810         * config/sh/elf.h (SIZE_TYPE): Likewise.
6811         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6812         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6813         shcompact_incoming_args): Load switch table addresses using
6814         datalabel.
6815         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6816         (NO_BUILTIN_SIZE_TYPE): Define.
6817         (SIZE_TYPE): Don't define.
6818         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6819         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6820         definition of __SH5__=32 for -m5-compact-nofpu.
6821         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6822         ADDR_DIFF_VEC.
6823         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6824         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6825         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6826         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6827         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6828         (INSN_LENGTH_ALIGNMENT): Likewise.
6829         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6830         * config/sh/sh.md (call, call_value, sibcall): Simplify
6831         copying of non-branch-target register.
6832         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6833         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6834         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6835         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6836         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6837         floating-point values as structs.
6838         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6839         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6840         general-purpose register.
6841         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6842         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6843         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6844         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6845         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6846         (ENCODE_SECTION_INFO): Enclose variables and constants in
6847         DATALABEL unspecs.
6848         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6849         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6850         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6851         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6852         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6853         SH_DATALABEL_ENCODING to the symbol name.
6854         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6855         convert_mode().
6856         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6857         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6858         UNSPEC_DATALABEL.
6859         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6860         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6861         (DATALABEL_REF_P): Don't require CONST.
6862         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6863         REL label.
6864         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6865         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6866         right.
6867         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6868         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6869         Use shallow_copy_rtx and PUT_MODE to change the mode of
6870         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6871         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6872         on SHmedia using GENERAL_REGs.
6873         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6874         bltu_media_i): Fix reversion of conditions.
6875         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6876         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6877         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6878         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6879         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6880         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6881         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6882         (GCC_nested_trampoline): Likewise.
6883         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6884         * config/sh/sh.c (gen_datalabel_ref): Define.
6885         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6886         (INITIALIZE_TRAMPOLINE): Likewise.
6887         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6888         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6889         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6890         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6891         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6892         (ic_invalidate): Adjust for SH5.
6893         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6894         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6895         _nested_trampoline.
6896         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6897         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6898         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6899         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6900         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6901         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6902         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6903         * config/sh/sh.c (target_reg_operand): Match only target-branch
6904         registers and pseudos that aren't virtual registers.
6905         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6906         Copy operands that don't match target_reg_operand to pseudos.
6907         (call_media, call_value_media, sibcall_media): Use
6908         target_reg_operand instead of target_operand.
6909         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6910         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6911         * config/sh/sh.c (target_reg_operand): Match hardware registers
6912         other than branch-target registers.
6913         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6914         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6915         (fpscr_values) [SH5 == 32]: Define.
6916         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6917         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6918         Handle function addresses coming in SUBREGs.
6919         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6920         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6921         shcompact_return_trampoline): Use datalabel where appropriate.
6922         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6923         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6924         general-purpose register to copy one branch-target register to
6925         another.
6926         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6927         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6928         SYMBOL_REFs with VOIDmode.
6929         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6930         bltu_media_i): New insns.
6931         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6932         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6933         (INIT_CUMULATIVE_ARGS): Likewise.
6934         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
6935         * machmode.def (V16SFmode): New mode.
6936         * c-common.c (type_for_mode): Support V2SF and V16SF.
6937         * tree.c (build_common_tree_nodes_2): Likewise.
6938         * tree.h (tree_index): Likewise.
6939         * calls.c (emit_call_1): Take args_so_far.  Adjust all
6940         callers.  Introduce CALL_POPS_ARGS.
6941         * tm.texi (CALL_POPS_ARGS): Document.
6942         * config/sh/crt1.asm: Implement in SHmedia mode.
6943         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6944         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6945         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6946         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6947         Implement divsi and udivsi in SHmedia mode.  Introduce
6948         SHcompact trampolines.
6949         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6950         only in SHmedia64.
6951         (regno_reg_class): Rewrite.
6952         (fp_reg_names): Remove.
6953         (sh_register_names, sh_additional_register_names): New.
6954         (print_operand): Added `u'.  Support SUBREGs in addresses.
6955         Add parentheses around shifted CONSTs.
6956         (output_file_start): Output .mode and .abi directives.
6957         (shiftcosts, addsubcosts, multcosts): Adjust.
6958         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
6959         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
6960         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
6961         bytes, not registers.  Take into account the need for the
6962         SHcompact incoming args trampoline.  Adjust all callers.
6963         (sh_expand_prologue): Take stack_regs into account.  Call
6964         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
6965         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
6966         stack aligned as per SH5 ABI.
6967         (sh_builtin_saveregs): Support SH5 ABI.
6968         (sh_build_va_list, sh_va_start): Likewise.
6969         (initial_elimination_offset): Take alignment into account.
6970         Compute location of PR according to the SH5 stack frame.
6971         (arith_reg_operand): Reject branch-target registers.
6972         (shmedia_6bit_operand): New.
6973         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6974         (target_reg_operand): Match DImode only.  Accept SUBREGs.
6975         (target_operand): New.
6976         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6977         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
6978         SIBCALL_REGS for SHmedia.
6979         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6980         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6981         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6982         (TARGET_SWITCHES): New SH5 flags.
6983         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
6984         VALID_REGISTER_P to disable unsupported registers.
6985         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6986         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6987         (FUNCTION_ARG_PADDING): Define.
6988         (FASTEST_ALIGNMENT): Adjust.
6989         (SH_REGISTER_NAMES_INITIALIZER): New.
6990         (sh_register_names): Declare.
6991         (DEBUG_REGISTER_NAMES): Define.
6992         (REGISTER_NAMES): Define based on sh_register_names.
6993         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6994         (sh_additional_register_names): Declare.
6995         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6996         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6997         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6998         (REGISTER_NATURAL_MODE): Define.
6999         (FIRST_PSEUDO_REGISTER): Adjust.
7000         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7001         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7002         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7003         (VECTOR_MODE_SUPPORTED_P): Define.
7004         (REG_CLASS_CONTENTS): Adjust.
7005         (SMALL_REGISTER_CLASSES): Adjust.
7006         (REG_ALLOC_ORDER): Adjust.
7007         (INDEX_REG_CLASS): Adjust.
7008         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7009         (CONST_OK_FOR_LETTER_P): Adjust.
7010         (PREFERRED_RELOAD_CLASS): Adjust.
7011         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7012         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7013         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7014         (FIRST_FP_PARM_REG): Adjust.
7015         (CALL_POPS_ARGS): Define.
7016         (FUNCTION_ARG_REGNO_P): Adjust.
7017         (struct sh_args): New fields.
7018         (GET_SH_ARG_CLASS): Adjust.
7019         (INIT_CUMULATIVE_ARGS): Adjust.
7020         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7021         (FUNCTION_ARG_ADVANCE): Adjust.
7022         (FUNCTION_ARG): Adjust.
7023         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7024         (FUNCTION_ARG_CALLEE_COPIES): Define.
7025         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7026         (STRICT_ARGUMENT_NAMING): Define.
7027         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7028         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7029         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7030         (SETUP_INCOMING_VARARGS): Adjust.
7031         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7032         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7033         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7034         (SUBREG_OK_FOR_INDEX_P): Adjust.
7035         (EXTRA_CONSTRAINT_S): Update.
7036         (EXTRA_CONSTRAINT_T): New.
7037         (EXTRA_CONSTRAINT): Adjust.
7038         (GO_IF_LEGITIMATE_INDEX): Adjust.
7039         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7040         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7041         (MOVE_MAX): Adjust.
7042         (MAX_MOVE_MAX): Define.
7043         (Pmode): Adjust.
7044         (CONST_COSTS): Adjust.
7045         (REGISTER_MOVE_COST): Adjust.
7046         (BRANCH_COST): Adjust.
7047         (TEXT_SECTION_ASM_OP): Adjust.
7048         (DBX_REGISTER_NUMBER): Adjust.
7049         (ASM_OUTPUT_DOUBLE_INT): New.
7050         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7051         (PREDICATE_CODES): Adjust.
7052         (PROMOTE_MODE): Adjust.
7053         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7054         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7055         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7056         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7057         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7058         (TR0_REG, TR1_REG, TR2_REG): New.
7059         (XD0_REG): Renumber.
7060         (UNSPEC_COMPACT_ARGS): New.
7061         (type): Added pt and ptabs.
7062         (length): Default to 4 on SHmedia.  Default pt length to 12
7063         and     20 on SHmedia32 and SHmedia64, respectively.
7064         (pt): New function unit.
7065         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7066         Add whitespace between operands of SHmedia instructions.
7067         (movdicc): Fix.
7068         (adddi3_media, addsi3_media): Adjust constraints.
7069         (subsi3) [SHmedia]: Force operand 1 into a register.
7070         (udivsi3_i1_media, udivsi3_i4_media): New.
7071         (udivsi3): Support SHmedia.
7072         (divsi3_i1_media, divsi3_i4_media): New.
7073         (divsi3): Support SHmedia.
7074         (anddi3, iordi3, xordi3): Adjust constraints.
7075         (zero_extendhidi2, zero_extendqidi2): New.
7076         (extendsidi2, extendhidi2, extendqidi2): New.
7077         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7078         (pop_e, pop_fpul, pop_4): Likewise.
7079         (movsi_media): Support FP and BT registers.
7080         (movsi_media_nofpu): New.  Adjust splits to DImode.
7081         (lduw, ldub): Renamed to zero_extend* above.
7082         (movqi_media): Fix typo.
7083         (movdi_media): Support FP and BT registers.
7084         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7085         (movdi_const_32bit): New.
7086         (shori_media): Require immediate operand.  Use `u' for output.
7087         (movdf_media, movsf_media): Simplified.
7088         (movdf_media_nofpu, movsf_media_nofpu): New.
7089         (movdf, movsf): Adjust
7090         (movv2sf, movv2sf, movv16sf): New.
7091         (beq_media, beq_media_i): Adjust constraints.  Don't use
7092         scratch BT register.
7093         (bne_media, bne_media_i): Likewise.
7094         (bgt_media, bgt_media_i): Likewise.
7095         (bge_media, bge_media_i): Likewise.
7096         (bgtu_media, bgtu_media_i): Likewise.
7097         (bgeu_media, bgeu_media_i): Likewise.
7098         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7099         bunordered): Emit jump insn.  Force operands to registers when
7100         needed.
7101         (jump_media, jump): Simplify.
7102         (call_compact, call_compact_rettramp): New.
7103         (call_value_compact, call_value_compact_rettramp): New.
7104         (call_media, call_value_media): Simplify.
7105         (sibcall_compact, sibcall_media): New.
7106         (call, call_value): Adjust for SHmedia and SHcompact.
7107         (sibcall, sibcall_value, untyped_call): Likewise.
7108         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7109         (indirect_jump): Adjust for SHmedia.
7110         (casesi_jump_media): New.
7111         (nop): Re-enable for SHmedia.
7112         (call_site): Restrict to SH1.
7113         (casesi): Adjust for SHmedia.
7114         (casesi_shift_media, casesi_load_media): New.
7115         (return): Explicitly use PR register.  Call return trampoline
7116         on SHcompact.
7117         (return_i): Explicitly use PR register.
7118         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7119         (return_media): Adjust.
7120         (shcompact_incoming_args): New.
7121         (epilogue): Adjust.
7122         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7123         (movstrsi): Disable on SH5.
7124         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7125         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7126         (subsf3, subsf3_media): Likewise.
7127         (mulsf3, mulsf3_media, mac_media): Likewise.
7128         (divsf3, divsf3_media): Likewise.
7129         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7130         (floatsisf2, fux_truncsfsi2): Likewise.
7131         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7132         constraints.
7133         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7134         (cmpunsf_media, cmpsf): Likewise.
7135         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7136         (abssf2, abssf2_media): Likewise.
7137         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7138         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7139         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7140         (floatsidf2, fix_truncdfsi2): Likewise.
7141         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7142         constraints.
7143         (cmpeqdf_media, cmpgtdf_media): Likewise.
7144         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7145         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7146         (absdf2, absdf2_media): Likewise.
7147         (extendsfdf2, extendsfdf2_media): Likewise.
7148         (truncsfdf2, truncsfdf2_media): Likewise.
7149         * config/sh/sh64.h: New file.
7150         * config/sh/t-sh64: New file.
7151         * config/sh/shmedia.h: New file.
7152         * config/sh/ushmedia.h: New file.
7153         * config/sh/sshmedia.h: New file.
7154         * configure.in: Added sh64-*-elf.
7155         * configure: Rebuilt.
7156         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7157         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7158         (reg_class_from_letter): Use `b' for TARGET_REGS.
7159         (print_operand): Support `%M', `%m', `AND' and
7160         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7161         (andcosts): Adjust for SHmedia.
7162         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7163         Likewise.
7164         (target_reg_operand): New function.
7165         * config/sh/sh-protos.h (target_reg_operand): Declare.
7166         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7167         FP registers on SH5.
7168         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7169         on SH4.
7170         (TARGET_REGISTER_P): New macro.
7171         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7172         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7173         (EXTRA_CONSTRAINT_S): New macro.
7174         (EXTRA_CONSTRAINT): Adjust.
7175         (FLOAT_TYPE_SIZE): Define to 32.
7176         (Pmode): DImode on SHmedia.
7177         (CONST_COSTS): Adjust for SHmedia literals.
7178         (PREDICATE_CODES): Added target_reg_operand.
7179         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7180         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7181         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7182         (cmpdi): Accept SHmedia.
7183         (movdicc_false, movdicc_true): New insns.
7184         (movdicc): New expand.
7185         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7186         no_new_pseudos.
7187         (addsi3_media): Match `S' constraint.
7188         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7189         (negdi2): Expand for SHmedia.
7190         (one_cmpldi2): New expand.
7191         (zero_extendsidi2): Change from expand to insn.
7192         (extendsidi2): Add constraints.
7193         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7194         LD/ST address.  Fix SI immediate loading split.
7195         (movhi_media, movqi_media, lduw, ldub): New insns.
7196         (movhi, movqi): Accept SHmedia.
7197         (shori_media, movdi_media): Relax input constraints.  Split
7198         symbolic constants.
7199         (movdf_media, movsf_media): New insn.  New split to movdi.
7200         (movdf, movsf): Match on SHmedia.
7201         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7202         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7203         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7204         (bunordered): New expand.
7205         (jump_compact): Renamed from `jump'.
7206         (jump_media): New insn.
7207         (jump): New expand.
7208         (call_media, call_value_media): New insns.
7209         (call, call_value): Adjust.
7210         (indirect_jump_compact): Renamed from `indirect_jump'.
7211         (indirect_jump_media): New insn.
7212         (indirect_jump): New expand.
7213         (untyped_call, return): Accept SHmedia.
7214         (return_media): New insn.
7215         (prologue, epilogue, blockage): Accept SHmedia.
7216         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7217         (sunordered): New expand.
7218         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7219         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7220         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7221         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7222         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7223         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7224         abssf2_media): New insns.
7225         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7226         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7227         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7228         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7229         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7230         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7231         absdf2_media): New insns.
7232         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7233         (extendsfdf2_media, truncdfsf2_media): New insns.
7234         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7235         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7236         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7237         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7238         * config/sh/sh.md (adddi3): New expand.
7239         (adddi3_media, adddi3z_media): New insns.
7240         (adddi3_compact): Renamed from adddi3.
7241         (addsi3_media): Use add.l r63 to add constant zero.
7242         (subdi3): New expand.
7243         (subdi3_media): New insn.
7244         (subdi3_compact): Renamed from subdi3.
7245         (mulsidi3): New expand.
7246         (mulsidi3_media): New insn.
7247         (mulsidi3_compact): Renamed from mulsidi3.
7248         (umulsidi3): New expand.
7249         (umulsidi3_media): New insn.
7250         (umulsidi3_compact): Renamed from umulsidi3.
7251         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7252         (ashlsi3, ashrsi3, lshrsi3): Use them.
7253         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7254         (ashldi3, ashrdi3, lshrdi3): Use them.
7255         (zero_extendsidi2): New expand.
7256         (extendsidi2): New insn.
7257         (movsi_media): New insn.  Split to movdi to load constants.
7258         (movsi): Enable for shmedia.
7259         (movdi_media): New insn.  Use shori_media to load wide constants.
7260         (short_media): New insn.
7261         (movdi): Enable for shmedia.
7262         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7263         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7264         (SUBTARGET_CPP_SPEC): Added `!m5'.
7265         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7266         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7267         to all other SH variants.
7268         (TARGET_DEFAULT): Set to SH1_BIT.
7269         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7270         (BITS_PER_WORD): Raise to 64 on shmedia.
7271         (MAX_BITS_PER_WORD): Change to 64.
7272         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7273         (INT_TYPE_SIZE): Keep as 32.
7274         (UNITS_PER_WORD): Raise to 8 on shmedia.
7275         (MIN_UNITS_PER_WORD): Keep as 4.
7276         (POINTER_SIZE): Raise to 64 on shmedia.
7277         (CONST_OK_FOR_J): New macro.
7278         (CONST_OK_FOR_LETTER_P): Use it.
7279         (processor_type): Add PROCESSOR_SH5.
7280         * config/sh/sh.md: Conditionalize all expands, insns and
7281         splits to TARGET_SH1.
7282         (cpu): Added sh5.
7283         (addsi3_compact): Renamed from...
7284         (addsi3): Now an expand.
7285         (addsi3_media, subsi3_media): New insns.
7286         (subsi3): Don't negate constants with SHmedia.
7287
7288         * hooks.c: New file.
7289         * hooks.h: New file.
7290         * Makefile.in (HOOKS_H): New.
7291         (TARGET_DEF_H): Added $(HOOKS_H).
7292         (OBJS): Added hooks.o.
7293         (cfgcleanup.o, bb-reorder.o): Added target.h.
7294         (hooks.o): Added dependencies.
7295         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7296         (TARGET_INITIALIZER): this.
7297         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7298         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7299         * bb-reorder.c: Include target.h.
7300         (reorder_basic_blocks): Skip if cannot modify jumps.
7301         * cfgcleanup.c: Include target.h.
7302         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7303
7304 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7305
7306         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7307         Protect jump delay slot instructions with .set noreorder and
7308         .set nomacro.
7309
7310 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7311
7312         * config/mips/mips.md (casesi_internal_di): Calculate
7313         the index into the target offset table correctly.
7314
7315 2002-02-08  Richard Henderson  <rth@redhat.com>
7316
7317         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7318         * final.c (output_addr_const): Accept and discard SUBREG.
7319         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7320         mark them unknown instead.
7321         (simplify_subtraction): Handle RTX_UNKNOWN.
7322         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7323
7324 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7325
7326         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7327
7328 2002-02-08  Richard Henderson  <rth@redhat.com>
7329
7330         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7331
7332 2002-02-08  Andreas Jaeger  <aj@suse.de>
7333
7334         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7335         * config/i386/t-linux64: New file.
7336
7337 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7338
7339         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7340         * c-parse.in (compstmt): Clear last_expr_type.
7341
7342 2002-02-07  Richard Henderson  <rth@redhat.com>
7343
7344         * loop.c (strength_reduce): Sink final_value when not
7345         eliminating a biv.
7346
7347 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7348
7349         * config/sparc/freebsd.h: Fix mismatched spec {.
7350
7351 2002-02-07  Richard Henderson  <rth@redhat.com>
7352
7353         * cfgrtl.c: Include recog.h and insn-config.h.
7354         (keep_with_call_p): Fix general_operand invocation.
7355         * Makefile.in (cfgrtl.o): Update dependencies.
7356
7357 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7358
7359         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7360         comment.  Accept HImode only if TARGET_H8300.
7361
7362 2002-02-07  Eric Christopher  <echristo@redhat.com>
7363
7364         * config/mips/crtn.asm: Cleanup #ifdefs.
7365
7366 2002-02-07  Eric Christopher  <echristo@redhat.com>
7367
7368         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7369         register 7 as RA instead of $31.
7370         * config/mips/crtn.asm: Ditto.
7371         * config/mips/mips.c (mips_move_2words): Add case for
7372         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7373         (compute_frame_size): Fix typo.
7374         (save_restore_insns): Ditto.  Make documentation about using
7375         register $7 as return register more precise.
7376         (mips_expand_epilogue): Fix comment. Add code to work around not
7377         being able to add to the stack pointer directly.
7378         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7379         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7380         epilogue.
7381
7382 2002-02-07  Tom Rix  <trix@redhat.com>
7383
7384         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7385         immediates in ldu and stdu DS opcode field.
7386         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7387         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7388         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7389
7390 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7391
7392         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7393         offset for stack bias.
7394
7395 2002-02-07  H.J. Lu <hjl@gnu.org>
7396
7397         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7398
7399 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7400
7401         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7402
7403 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7404
7405         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7406         * i386.c (x86_order_regs_for_local_alloc): New global function.
7407         * i386.h (REG_ALLOC_ORDER): CLeanup.
7408         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7409
7410 2002-02-07  Richard Henderson  <rth@redhat.com>
7411
7412         PR optimization/2463
7413         * alias.c (find_base_value): Recall base values for fixed hard regs.
7414         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7415
7416 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7417
7418         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7419         length.
7420
7421 2002-02-06  Richard Henderson  <rth@redhat.com>
7422
7423         PR c/5609
7424         * stmt.c (resolve_operand_name_1): Take more care with mixed
7425         named and unnamed operands.
7426
7427 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7428             Jan Hubicka  <jh@suse.cz>
7429
7430         * loop.c (remove_constant_addition): Avoid clobbering a shared
7431         CONST expression.
7432
7433 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7434
7435         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7436         * config/s390/t-linux64: New file.
7437         * config/s390/libgcc-glibc.ver: New file.
7438
7439 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7440
7441         * config/s390/linux64.h: Delete file.
7442         * config/s390/s390x.h: New file.
7443         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7444         as target header file.
7445         * config/s390/linux.h (TARGET_VERSION): Define depending on
7446         DEFAULT_TARGET_64BIT.
7447         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7448         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7449         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7450         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7451         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7452         (EXTRA_SPEC): New define.
7453         * config/s390/s390.h (TARGET_VERSION): Define depending on
7454         DEFAULT_TARGET_64BIT.
7455         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7456
7457 2002-02-06  Jason Merrill  <jason@redhat.com>
7458
7459         * c-decl.c (finish_function): Warn about a non-void function with
7460         no return statement and no abnormal exit.
7461         (current_function_returns_abnormally): New variable.
7462         (start_function): Clear it.
7463         (struct c_language_function): Add returns_abnormally.
7464         (push_c_function_context): Save it.
7465         (pop_c_function_context): Restore it.
7466         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7467         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7468         an explicit return type.
7469         * c-tree.h: Declare current_function_returns_abnormally.
7470         (C_FUNCTION_IMPLICIT_INT): New macro.
7471         * c-typeck.c (build_function_call): Set it.
7472         (c_expand_return): Set current_function_returns_value even if the
7473         value is erroneous.
7474
7475 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7476
7477         PR c/5420:
7478         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7479         unsafe for reevaluation.
7480
7481 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7482
7483         PR c/5482:
7484         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7485         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7486
7487 2002-02-06  Richard Henderson  <rth@redhat.com>
7488
7489         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7490         be a general_operand.  Dest for function value must be a pseudo.
7491
7492 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7493
7494         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7495         as SYMBOL_REFs from the constant pool.
7496
7497 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7498
7499         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7500         passed by invisible reference.
7501
7502 2002-02-05  Richard Henderson  <rth@redhat.com>
7503
7504         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7505
7506 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7507
7508         Implement using "base addresses" in insn operands as default.
7509         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7510         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7511         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7512         used to read the rtx value.
7513         (mmix_target_asm_function_epilogue): Fix spacing.
7514         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7515         (mmix_legitimate_address): Ditto.
7516         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7517         should be loaded with a GETA insn.  Don't allocate needless extra
7518         char for nul termination and fix misleading comment.
7519         (mmix_print_operand_address): Handle constants if
7520         TARGET_BASE_ADDRESSES.
7521         (mmix_output_register_setting): Use base addressing if
7522         TARGET_BASE_ADDRESSES and the number of insns is 3.
7523         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7524         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7525         to use R as constraint, add LDA to match s.
7526         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7527         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7528         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7529         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7530         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7531         order with other fixed registers.
7532         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7533         other parameter/call-clobbered registers.
7534         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7535         -mbase-addresses, -mno-base-addresses.
7536         (MMIX Options): Ditto.
7537
7538 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7539
7540         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7541
7542 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7543
7544         * config/rs6000/altivec.h: Change elem to _S_elem.
7545
7546 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7547
7548         * config/netbsd.h (WCHAR_TYPE): Define.
7549         (WCHAR_TYPE_SIZE): Ditto.
7550         (WINT_TYPE): Ditto.
7551         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7552         (WCHAR_UNSIGNED): Ditto.
7553         (WCHAR_TYPE_SIZE): Ditto.
7554         (WINT_TYPE): Ditto.
7555         * config/arm/netbsd.h: Likewise.
7556         * config/i386/netbsd-elf.h: Likewise.
7557         * config/i386/netbsd.h: Likewise.
7558         * config/m68k/netbsd-elf.h: Likewise.
7559         * config/m68k/netbsd.h: Likewise.
7560         * config/ns32k/netbsd.h: Likewise.
7561         * config/sparc/netbsd.h: Likewise.
7562         * config/vax/netbsd.: Likewise.
7563
7564 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7565
7566         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7567         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7568         (TARGET_INITIALIZER): this.
7569         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7570         (BITFIELD_NBYTES_LIMITED): Markup fix.
7571         * tree.h (default_ms_bitfield_layout_p): Declare.
7572         (record_layout_info): Added prev_field.
7573         * tree.c (default_ms_bitfield_layout_p): New fn.
7574         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7575         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7576         * stor-layout.c: Include target.h.
7577         (start_record_layout): Initialize prev_field.
7578         (place_field): Handle MS bit-field layout, and disregard
7579         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7580         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7581         * Makefile.in (stor-layout.o): Adjust dependencies.
7582
7583 2002-02-05  Jason Merrill  <jason@redhat.com>
7584
7585         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7586
7587 2002-02-05  Andreas Jaeger  <aj@suse.de>
7588
7589         * crtstuff.c: Fix comments.
7590
7591 2002-02-05  Richard Henderson  <rth@redhat.com>
7592
7593         PR fortran/3393
7594         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7595         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7596
7597         PR fortran/3392
7598         * config/mips/mips.c (function_arg): Handle TImode.
7599         (function_arg_advance): Likewise.
7600
7601 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7602
7603         * config/rs6000/altivec.h (vec_step_help): Rename to
7604         __vec_step_help.
7605
7606 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7607
7608         * config/rs6000/altivec.h: Fix typos.
7609
7610 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7611
7612         * config/arm/netbsd.h: Correct a comment.
7613
7614 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7615
7616         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7617         building void typed builtins.
7618
7619         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7620         (vec_step): Implement for C++.
7621
7622 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7623
7624         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7625
7626 2002-02-04  Richard Henderson  <rth@redhat.com>
7627
7628         * combine.c (nonzero_bits): Re-introduce special case for
7629         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7630
7631 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7632
7633         * doc/extend.texi: Warn about unsupported usage of altivec
7634         builtins.
7635
7636         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7637         (altivec_predicate_*): New.
7638
7639         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7640         Add C++ version of vec_*() functions.
7641
7642         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7643         (bdesc_2arg): Remove altivec predicates.
7644         (altivec_expand_builtin): Handle predicates.
7645         (altivec_init_builtins): Handle predicates.
7646         (altivec_expand_predicate_builtin): New.
7647
7648 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7649
7650         * pa.c (DO_FRAME_NOTES): Move forward.
7651         (store_reg): Revise handling of frame notes.
7652         (load_reg): Likewise.
7653         (set_reg_plus_d): Likewise.
7654         (hppa_expand_prologue): Likewise.
7655         (hppa_expand_epilogue): Likewise.
7656
7657 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7658
7659         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7660
7661 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7662
7663         PR c/4475, c++/3780:
7664         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7665         * c-common.h (SWITCH_TYPE): Define.
7666         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7667         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7668         Rename spareness variable to sparseness.
7669         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7670         if non-NULL instead of TREE_TYPE (orig_index).
7671         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7672         (expand_end_case): Define using expand_end_case_type.
7673         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7674         to expand_end_case_type.
7675         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7676
7677 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7678
7679         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7680         (BIGGEST_ALIGNMENT): Change to 128.
7681
7682 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7683
7684         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7685
7686 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7687
7688         * pa.md (call_internal_reg_64bit): Remove unused variable.
7689
7690 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7691
7692         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7693         field.
7694         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7695         * config/arm/arm.c (current_function_anonymous_args): Delete,
7696         replace uses with cfun->machine->uses_anonymous_args.
7697         (arm_reorg): Do not reset uses_anonymous_args.
7698
7699         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7700         any geenral register.
7701
7702 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7703
7704         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7705         the entry block.
7706
7707 2002-02-04  Richard Henderson  <rth@redhat.com>
7708
7709         * combine.c (force_to_mode): Remove STACK_BIAS code.
7710         (nonzero_bits): Likewise.  Replace sp/fp special case with
7711         REGNO_POINTER_ALIGN.
7712
7713         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7714         (HARD_FRAME_POINTER_REGNUM): New.
7715         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7716         (FIXED_REGS, CALL_USED_REGS): Update.
7717         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7718         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7719         (HARD_REGNO_NREGS): Update for SFP.
7720         (STACK_POINTER_OFFSET): Include bias here ...
7721         (FIRST_PARM_OFFSET): ... not here.
7722         (STACK_BIAS): Remove.
7723         (INIT_EXPANDERS): New.
7724         (STARTING_FRAME_OFFSET): Do not include bias.
7725         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7726         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7727         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7728         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7729         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7730         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7731         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7732         (MUST_SAVE_REGISTER): Likewise.
7733         (sparc_flat_function_prologue): Likewise.
7734         (sparc_flat_function_epilogue): Likewise.
7735         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7736         (sparc_init_modes): SFP is GENERAL_REGS.
7737         (sparc_builtin_saveregs): SFP does not have bias applied.
7738
7739 2002-02-04  Richard Henderson  <rth@redhat.com>
7740
7741         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7742         current_function_is_thunk.
7743         (alpha_sa_mask): Distinguish between current_function_is_thunk
7744         called from ASM_OUTPUT_MI_THUNK and not.
7745         (alpha_does_function_need_gp): Thunks always need gp.
7746         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7747         (alpha_output_mi_thunk_osf): New.
7748         * config/alpha/alpha-protos.h: Update.
7749         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7750
7751 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7752
7753         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7754         function types, not when they're taken away.
7755
7756 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7757
7758         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7759         CODE_LABEL and jump table when replacing a table jump with a
7760         simple jump.
7761
7762 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7763
7764         * config/s390/s390-protos.h (legitimize_la_operand,
7765         s390_secondary_input_reload_class, s390_plus_operand,
7766         s390_expand_plus_operand): Add prototypes.
7767
7768         config/s390/s390.c (s390_secondary_input_reload_class,
7769         s390_plus_operand, s390_expand_plus_operand): New functions.
7770
7771         (struct s390_address): New member 'pointer'.
7772         (s390_decompose_address): Compute it.
7773         (legitimate_la_operand_p): Use it.
7774         (legitimize_la_operand): New function.
7775         (movti, movdi, movdf splitters): Call it.
7776
7777         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7778         (PREDICATE_CODES): Add s390_plus_operand.
7779
7780         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7781         (la_ccclobber): Allow GENERAL_REGS as output operand.
7782
7783         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7784         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7785         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7786
7787 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7788
7789         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7790         register names for regular asm () construct.
7791
7792 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7793
7794         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7795         registers.
7796
7797 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7798
7799         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7800         pat for recog.
7801
7802 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7803
7804         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7805         constant pool to be identical by string address and index.
7806
7807 2002-02-04  Anthony Green  <green@redhat.com>
7808
7809         * output.h (SECTION_OVERRIDE): Define.
7810         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7811
7812 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7813
7814         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7815         by existing arm*-*-netbsd* (a.out) target.
7816         (ns32k-*-netbsdelf*): Likewise.
7817         (sparc-*-netbsdelf*): Likewise.
7818         (vax-*-netbsdelf*): Likewise.
7819
7820 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7821
7822         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7823         headers and libobjc headers.
7824
7825 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7826
7827         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7828         (_mingw.h): Remove duplicate include.
7829
7830 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7831
7832         * config.gcc: Set cpu_type to m68k for 68010, as well.
7833         (m68010-*-netbsdelf*): New...
7834         (m68k*-*-netbsdelf*): ...targets.
7835         * config/m68k/netbsd-elf.h: New file.
7836
7837 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7838
7839         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7840
7841 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7842
7843         * config/h8300/h8300.c (h8_push_ops): Move inside
7844         h8300_init_once.
7845         (h8_pop_ops): Likewise.
7846         (h8_move_ops): Likewise.
7847
7848 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7849
7850         * config/h8300/h8300.c (os_task): Make it static.
7851         (monitor): Likewise.
7852         (pragma_saveall): Likewise.
7853
7854 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7855
7856         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7857         constant is a valid sign-extension for Pmode.
7858
7859 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7860
7861         * config/h8300/h8300.c: Fix formatting.
7862
7863 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7864
7865         * config/h8300/h8300.md: Fix formatting.
7866
7867 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7868
7869         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7870         predicates of operands[1].  Split the patterns for each
7871         processor variant.
7872
7873 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7874
7875         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7876         of operands[1] to register_operand.
7877
7878 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7879
7880         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7881         * cpphash.c (_cpp_init_hashtable): Similarly.
7882         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7883         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7884         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7885         (cpp_handle_option): Handle the new options.
7886         * cpplex.c (cpp_interpret_charconst): Use new flag.
7887         * cpplib.h (struct cpp_options): New member signed_char.
7888         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7889         (cpp_options): Handle -fsigned-char and -funsigned-char.
7890         (static_specs): Remove signed_char_spec.
7891         (do_spec1): Don't handle %c.
7892         * system.h: Poison SIGNED_CHAR_SPEC.
7893         * tradcif.y (yylex): Use flag_signed_char.
7894         * tradcpp.h (flag_signed_char): New.
7895         * tradcpp.c (flag_signed_char): New.
7896         (main): Handle new command-line options.
7897         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7898 config:
7899         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7900         * avr/avr.h: Remove old comments.
7901         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7902         (CC1_SPEC): Pass -fsigned-char if -mic*.
7903         (SIGNED_CHAR_SPEC): Remove.
7904 doc:
7905         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7906
7907 2002-02-01  Eric Christopher  <echristo@redhat.com>
7908
7909         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7910         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7911         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7912         (ASM_OUTPUT_REG_POP): Ditto.
7913
7914 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7915
7916         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7917         patch.
7918
7919 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7920
7921         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7922
7923 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7924
7925         PR c/5304:
7926         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7927         unconditionally.
7928
7929 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7930
7931         * cfganal.c: Include tm_p.h.
7932         (keep_with_call_p): Fix the test that determines if a register holds
7933         the return value of a call.
7934
7935 2002-02-01  DJ Delorie  <dj@redhat.com>
7936
7937         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7938         we are given conflicting registers, switch to the other one we
7939         had allocated for us.
7940         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7941         as TImode so we know when the "other" register is available.
7942
7943 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
7944
7945         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7946         sparc/sparc_bi.h.
7947
7948 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7949
7950         * cfganal.c (keep_with_call_p): New function.
7951         (flow_call_edges_add): Prevent splitting a block between a call and
7952         a single-set instruction that should be kept in the same block.
7953
7954 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7955
7956         * doc/install.texi (avr): Update outdated URL.
7957
7958 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
7959
7960         * config/stormy16/stormy16.md (pushqi): New.
7961         (popqi): New.
7962         (pushhi): New.
7963         (pophi): New.
7964         (movhi): Remove stack operands.
7965         (movqi): Likewise.
7966         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7967         nonimmediate_nonstack_operand.
7968         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7969         New.
7970         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7971         New.
7972
7973 2002-01-31  Jason Merrill  <jason@redhat.com>
7974
7975         * Makefile.in (c-parse.c): Handle .output file.
7976         * objc/Make-lang.in (objc-parse.c): Likewise.
7977
7978 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
7979
7980         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7981         the -me[lb] option is given.  Don't output the default flag
7982         twice.
7983
7984 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
7985
7986         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7987         the primary source file; this has not been done yet.
7988         * c-decl.c (c_expand_body): Reset input_filename from
7989         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7990
7991 2002-01-31  Kazu Hirata  <kazu@hxi.com>
7992
7993         * rtlanal.c (subreg_regno_offset): Do not use
7994         SUBREG_REGNO_OFFSET.
7995         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7996         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7997
7998 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7999
8000         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
8001         version rather than GNATS version in --version output.
8002
8003 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
8004
8005         * ifcvt.c (noce_process_if_block): Make a copy of the destination
8006         when copying back from a temporary.
8007
8008 2002-01-30  Richard Henderson  <rth@redhat.com>
8009
8010         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8011         and new_dest are the same.
8012
8013 2002-01-30  Richard Henderson  <rth@redhat.com>
8014
8015         PR opt/5076
8016         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8017         * rtl.c (note_insn_name): Update.
8018         * emit-rtl.c (remove_unnecessary_notes): Kill it.
8019         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
8020         to perform loop rotation.
8021         (expand_exit_loop_top_cond): New.
8022         * tree.h (expand_exit_loop_top_cond): Declare it.
8023         * c-semantics.c (genrtl_while_stmt): Use it.
8024         (genrtl_for_stmt): Likewise.
8025
8026 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
8027
8028         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8029         arguments to 64-bit boundaries on 64-bit ABIs.
8030
8031 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
8032
8033         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8034
8035 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8036
8037         * c-decl.c (grokdeclarator): Handle type being a typedef for an
8038         invalid type.
8039
8040 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
8041
8042         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8043         * config/sparc/sparc_bi.h: Remove file.
8044         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8045
8046 2002-01-30  Richard Henderson  <rth@redhat.com>
8047
8048         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8049
8050 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
8051
8052         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8053
8054 2002-01-30  Jason Merrill  <jason@redhat.com>
8055
8056         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8057         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8058         (reg_save): Use DW_CFA_offset_extended_sf instead.
8059
8060         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8061
8062 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8063
8064         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8065         in cselib_lookup.
8066
8067 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8068
8069         * rs6000.md ("*call_value_local32"): Remove constraints.
8070         ("*call_value_local64"): Same.
8071         ("*call_value_indirect_nonlocal_aix32"): Same.
8072         ("*call_value_nonlocal_aix32"): Same.
8073         ("*call_value_indirect_nonlocal_aix64"): Same.
8074         ("*call_value_nonlocal_aix64"): Same.
8075         ("*call_value_nonlocal_sysv"): Same.
8076
8077 2002-01-29  Richard Henderson  <rth@redhat.com>
8078
8079         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8080
8081 2002-01-29  Richard Henderson  <rth@redhat.com>
8082
8083         * expr.c (force_operand): Ignore flag_pic for detecting pic
8084         address loads.
8085         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8086         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8087         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8088         instead of open-coded loop.
8089         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8090         be fixed when in use.
8091
8092 2002-01-29  Richard Henderson  <rth@redhat.com>
8093
8094         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8095         * sched-rgn.c (propagate_deps): Update them.
8096         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8097         clobbers list when either gets too long.
8098
8099 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8100
8101         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8102         and INDEX_REGS the same as GENERAL_REGS.
8103         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8104
8105 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8106
8107         * tree.c (build_nonstandard_integer_type): Correct prototype.
8108
8109 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8110
8111         * config/s390/s390.md (movstrsico, movstrdix_64,
8112         movstrsix_31): Remove, replace by ...
8113         (movstrdi_short, movstrsi_short, movstrdi_long,
8114         movstrsi_long): ... these.  New.
8115         (movstrdi, movstrsi): Adapt.
8116
8117         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8118         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8119         Remove unnecessary CC clobber.
8120         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8121         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8122
8123         (divmoddi4): Don't partially initialize TImode register.
8124
8125 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8126
8127         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8128
8129 2002-01-29  Richard Henderson  <rth@redhat.com>
8130
8131         * flow.c (print_rtl_and_abort): Remove.
8132         (print_rtl_and_abort_fcn): Remove.
8133         (verify_local_live_at_start): Use dump_bb instead.
8134         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8135         (verify_wide_reg_1): Return 2 on mode test failure.
8136
8137 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8138
8139         PR c/3325, c/3326, c/2511, c/3347
8140         * c-decl.c (enum_decl_context): Remove BITFIELD.
8141         (grokdeclarator): Take bitfield width as an input.
8142         Ensure bitfields are given the correct type.  Perform
8143         bitfield width validation with build_bitfield_integer_type
8144         rather than waiting for finish_struct.
8145         (grok_typename, grok_typename_in_parm_context, start_decl,
8146         push_parmdecl, grokfield, start_function): Update calls to
8147         grokdeclarator.
8148         (build_bitfield_integer_type): New function.
8149         (finish_struct): Move bitfield validation to grokdeclarator
8150         and build_bitfield_integer_type.
8151         * tree.c (build_nonstandard_integer_type): New function.
8152         * tree.h (build_nonstandard_integer_type): New prototype.
8153 objc:
8154         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8155
8156 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8157
8158         PR other/1502:
8159         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8160         don't ignore unrecognized -W* options.
8161         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8162         * cpplib.h (cpp_handle_option): Adjust prototype.
8163         * c-decl.c (c_decode_options): Pass 0 as last argument to
8164         cpp_handle_option.
8165
8166         PR c/2896:
8167         * gcc.c (cpp_unique_options): Split from cpp_options.
8168         (cpp_options): Source cpp_unique_options.
8169         (default_compilers): Use cpp_unique_options instead of cpp_options
8170         when used together with cc1_options.
8171         (static_specs): Add cpp_unique_options.
8172         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8173         when used together with cc1_options.
8174
8175 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8176
8177         * config/h8300/h8300-protos.h: Update the prototype of
8178         output_a_shift.
8179         * config/h8300/h8300.c (output_a_shift): Remove an unused
8180         argument 'insn'.  Remove redundant code.
8181         * config/h8300/h8300.md: Adust to the new prototype of
8182         output_a_shift.
8183
8184 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8185
8186         * config/h8300/h8300-protos.h: Update the prototypes of
8187         emit_a_rotate and expand_a_rotate.
8188         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8189         first argument to 'enum rtx_code'.
8190         (expand_a_rotate): Likewise.
8191
8192 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8193
8194         * config/h8300/h8300-protos.h: Update the prototype of
8195         output_simode_bld.
8196         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8197         'log2'.
8198         * config/h8300/h8300.md: Adjust to the new prototype.
8199
8200 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8201
8202         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8203         redundant code.
8204
8205 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8206
8207         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8208         is a fixed register before returning pic_offset_table_rtx.
8209         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8210         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8211
8212 2002-01-28  Jason Merrill  <jason@redhat.com>
8213
8214         * dwarf2.h: Sync with src version.
8215
8216 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8217
8218         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8219         BT_FN_VOID_PTR_VAR.
8220         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8221         * doc/extend.texi (__builtin_prefetch): Update documentation:
8222         first argument is now const void ptr.
8223
8224 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8225
8226         * config/h8300/h8300-protos.h: Remove an unused prototype.
8227
8228 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8229
8230         * toplev.c (lang_independent_init): Round up identifier size.
8231
8232 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8233
8234         * config.gcc: Revert previous change.
8235
8236 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8237
8238         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8239
8240 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8241
8242         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8243         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8244         other non-elf netbsd config frags.
8245         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8246         collect2 will does that.
8247         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8248         shared-lib frobbing will work.
8249
8250 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8251
8252         * config/h8300/h8300.h: Fix formatting.
8253         * config/h8300/h8300.md: Likewise.
8254
8255 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8256
8257         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8258         the old, removed AAA_standards fix.
8259         * fixinc/fixincl.x: Rebuilt.
8260
8261 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8262
8263         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8264         atexit call in crtbegin, hooked in after call to frame_dummy;
8265         register EH before registering __fini__start.
8266
8267 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8268
8269         * config/rs6000/altivec.h: Remove spurious semicolons.
8270
8271 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8272
8273         * config/h8300/h8300.md: Replace dead bit extraction patterns
8274         with ones that work.
8275
8276 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8277
8278         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8279         if not STRICT_ALIGNMENT.
8280         * rtl.h (MEM_ALIGN): Likewise.
8281
8282 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8283
8284         * doc/invoke.texi (-fdump-translation-unit): Revert this
8285         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8286
8287 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8288
8289         * config/h8300/h8300.md (define_constants): New.
8290         (anonymous patterns) Use defined constants appropriately.
8291
8292 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8293
8294         * config/h8300/h8300.c (function_arg): Remove redundant code.
8295
8296 2002-01-26  Richard Henderson  <rth@redhat.com>
8297
8298         * sched-deps.c (reg_pending_uses_head): New.
8299         (reg_pending_barrier): Rename from reg_pending_sets_all.
8300         (find_insn_list): Don't mark inline.
8301         (find_insn_mem_list): Remove.
8302         (add_dependence_list, add_dependence_list_and_free): New.
8303         (flush_pending_lists): Replace only_write param with separate
8304         for_read and for_write parameters.  Update all callers.  Use
8305         add_dependence_list_and_free.
8306         (sched_analyze_1): Do not add reg dependencies here; just set
8307         the pending bits.  Use add_dependence_list.
8308         (sched_analyze_2): Likewise.
8309         (sched_analyze_insn): Replace schedule_barrier_found with
8310         reg_pending_barrier.  Add all dependencies for pending reg
8311         uses, sets, and clobbers.
8312         (sched_analyze): Don't add reg dependencies for calls, just
8313         set pending bits.  Use regs_invalidated_by_call.  Treat
8314         sched_before_next_call as a normal list, not a fake insn.
8315         (init_deps): No funny init for sched_before_next_call.
8316         (free_deps): Free pending mems lists.  Don't zero reg_last.
8317         (init_deps_global): Init reg_pending_uses.
8318         (finish_deps_global): Free it.
8319         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8320         (find_insn_mem_list): Remove.
8321         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8322         (propagate_deps): Use them.  Zero temp mem lists.
8323
8324 2002-01-26  Richard Henderson  <rth@redhat.com>
8325
8326         * Makefile.in (CRTSTUFF_CFLAGS): New.
8327         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8328         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8329         crtstuff.c instead of alpha assembly version.
8330         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8331         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8332         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8333         (__do_global_dtors_aux): Mark used.
8334         (frame_dummy, __do_global_ctors_aux): Mark used.
8335         (fini_dummy, init_dummy): Remove.
8336
8337         * config/alpha/crtbegin.asm: Remove file.
8338         * config/alpha/crtend.asm: Remove file.
8339         * config/alpha/t-crtbe: Remove file.
8340         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8341         (LINK_EH_SPEC): New.
8342
8343         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8344         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8345         calling constructors.
8346         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8347
8348         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8349         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8350         CRT_END_INIT_DUMMY hack.
8351         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8352         FORCE_{INIT,FINI}_SECTION_ALIGN.
8353
8354         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8355         FORCE_{INIT,FINI}_SECTION_ALIGN.
8356
8357         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8358         invocation sequence.
8359         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8360
8361         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8362         (FORCE_CODE_SECTION_ALIGN): New.
8363
8364 2002-01-26  Richard Henderson  <rth@redhat.com>
8365
8366         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8367
8368 2002-01-26  Richard Henderson  <rth@redhat.com>
8369
8370         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8371         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8372
8373 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8374
8375         * config/h8300/h8300.md: Remove bit extraction patterns that
8376         cannot be triggered.
8377         Restrict each bit extraction pattern to a variant on which the
8378         pattern is tested.
8379
8380 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8381
8382         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8383
8384 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8385
8386         * config/h8300/h8300.md: Remove bit test patterns that cannot
8387         be triggered.
8388         Restrict each bit test pattern to a variant on which the
8389         pattern is tested.
8390
8391 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8392
8393         * builtins.c (expand_builtin_strncat): Remove redundant check for
8394         INTEGER_CST.
8395
8396 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8397
8398         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8399         default setting.
8400         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8401         existing setting.
8402
8403 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8404
8405         * dbxout.c (dbxout_init): Use assemble_name rather than just
8406         stripping off the first character.
8407         (dbxout_source_file): Likewise.
8408
8409 2002-01-25  DJ Delorie  <dj@redhat.com>
8410
8411         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8412         using rtx_equal_p, not by comparing pointers.
8413
8414 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8415
8416         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8417         for PIC_OFFSET_TABLE_REGNUM.
8418         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8419
8420 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8421
8422         * config.gcc (x86_64-*-freebsd*): New target.
8423         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8424         value.
8425         (i[34567]86-*-freebsd*): Don't include svr4.h.
8426         * config/i386/freebsd64.h: New file.
8427
8428 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8429
8430         * config/alpha/x-vms (version): Make static.
8431
8432         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8433         in previous checkin.
8434
8435         * Makefile.in (install-headers-cp): New target.
8436         * config.gcc (alpha-dec-*vms*): Install headers with
8437         install-headers-cp
8438
8439 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8440
8441         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8442         avoid it's copies.
8443
8444 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8445
8446         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8447         of compare_tree_int.
8448         (expand_builtin_strncat): Likewise.
8449         * c-decl.c (finish_struct): Use tree_low_cst.
8450         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8451         * tree.c (compare_tree_int): Likewise.
8452
8453 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8454
8455         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8456         adjustments even if they are implemented by more than two insns.
8457
8458 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8459
8460         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8461         * df.h (struct ref): Kill B.
8462         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8463
8464         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8465         * flow.c (propagate_one_insn): Use it.
8466         (mark_used_regs): Handle NIL.
8467
8468 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8469
8470         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8471         to help folding.
8472
8473 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8474
8475         * rs6000.md (prefetch): Make address V4SI mode so that the address
8476         is restricted to legitimate form for instruction.
8477
8478 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8479
8480         * doc/install.texi (xtensa-*-elf): New target.
8481         (xtensa-*-linux*): New target.
8482         * doc/contrib.texi: Add myself.
8483
8484 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8485
8486         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8487         purpose register to hold an SImode (or smaller) value.
8488
8489 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8490
8491         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8492         registry only.
8493         * crtstuff.c: Likewise.
8494
8495 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8496
8497         * config/h8300/h8300.md (negation patterns): Tighten
8498         predicates to register_operand.
8499
8500 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8501
8502         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8503         mode, not Pmode.
8504
8505         * builtins.c (expand_builtin_prefetch): Same.
8506
8507 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8508
8509         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8510         modes.
8511
8512 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8513
8514         * config/h8300/h8300.c (print_operand): Remove support for
8515         operand character 'A'.
8516         * config/h8300/h8300.md (three anonymous patterns): Replace
8517         operand character 'A' with either 'T' or 'S'.
8518
8519 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8520
8521         * config/h8300/h8300.c (print_operand): Remove support for
8522         operand character 'U'.
8523
8524 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8525
8526         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8527
8528 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8529
8530         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8531         values to be assigned to the stack pointer.
8532
8533 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8534
8535         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8536         to const_double needs to be done right for big-endian systems.
8537
8538 2002-01-24  Jason Merrill  <jason@redhat.com>
8539
8540         PR c++/2432
8541         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8542         to can_throw_internal.
8543
8544 2002-01-23  Richard Henderson  <rth@redhat.com>
8545
8546         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8547         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8548
8549 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8550
8551         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8552         (symGOT2reg): Use them, then set as GOT value as unchanging.
8553         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8554         as a temporary, if possible.
8555         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8556         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8557
8558 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8559
8560         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8561         accept to accept 0x80 as operands[2].
8562
8563 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8564
8565         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8566
8567 2002-01-23  Richard Henderson  <rth@redhat.com>
8568
8569         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8570
8571 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8572
8573         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8574         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8575         an attribute.
8576
8577 2002-01-23  Richard Henderson  <rth@redhat.com>
8578
8579         * expr.c (move_by_pieces_1): Extend size before negation.
8580
8581         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8582         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8583         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8584         * config/m68k/t-m68kelf: Likewise.
8585
8586 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8587
8588         * config/xtensa/elf.h: New file.
8589         * config/xtensa/lib1funcs.asm: New file.
8590         * config/xtensa/lib2funcs.S: New file.
8591         * config/xtensa/linux.h: New file.
8592         * config/xtensa/t-xtensa: New file.
8593         * config/xtensa/xtensa-config.h: New file.
8594         * config/xtensa/xtensa-protos.h: New file.
8595         * config/xtensa/xtensa.c: New file.
8596         * config/xtensa/xtensa.h: New file.
8597         * config/xtensa/xtensa.md: New file.
8598         * config.gcc (xtensa-*-elf*): New target.
8599         (xtensa-*-linux*): New target.
8600         * cse.c (canon_hash): Compare rtx pointers instead of register
8601         numbers.  This is required for the Xtensa port.
8602         * integrate.c (copy_insn_list): Handle case where the static
8603         chain is in memory and the memory address has to be copied to
8604         a register.
8605         * doc/invoke.texi (Option Summary): Add Xtensa options.
8606         (Xtensa Options): New node.
8607         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8608
8609 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8610
8611         * diagnostic.c (internal_error): Do ICE suppression only
8612         when ENABLE_CHECKING is not defined.
8613
8614         * c-typeck.c (require_complete_type): Return error_mark_node
8615         if type is error_mark_node.
8616
8617 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8618
8619         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8620         -Os and issue a warning.
8621
8622 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8623
8624         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8625         current (lack of) need for host configuration by hand.
8626
8627         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8628         references.  Documentation of some target macros moved from
8629         hostconfig.texi to tm.texi.
8630
8631 2002-01-23  Will Cohen  <wcohen@redhat.com>
8632
8633         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8634         defined.
8635
8636 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8637
8638         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8639         operand[3].
8640
8641 2002-01-23  Jason Merrill  <jason@redhat.com>
8642
8643         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8644
8645         * function.c (assign_parms): Don't put args of inline functions
8646         into registers when not optimizing.
8647
8648 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8649
8650         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8651         (prologue_use): New pattern.
8652         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8653         preference to gen_rtx_USE.
8654         (thumb_expand_prologue): Use gen_prologue_use in preference to
8655         gen_rtx_USE.
8656         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8657         gen_rtx_USE.
8658
8659 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8660
8661         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8662
8663 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8664
8665         PR c/3504
8666         * doc/extend.texi: Correct documentation of __alignof__.
8667
8668 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8669
8670         * params.h: Rename arguments of DEFPARAM so that it will be
8671         recognized as a translation keyword.
8672
8673 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8674
8675         * extend.texi: Document altivec functions.
8676         Fix N-bit adjectives in X86 builtin documentation.
8677
8678 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8679
8680         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8681         auto_inc_dec values.
8682
8683 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8684
8685         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8686         after backslash.
8687         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8688
8689 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8690
8691         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8692
8693 2002-01-22  Richard Henderson  <rth@redhat.com>
8694
8695         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8696         copy_insn not copy_rtx.
8697
8698 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8699
8700         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8701         "nonzero" as that might add "1" bits.  Ensure "constop" is
8702         properly sign extened.
8703         (force_to_mode): Tweak for sign extended constop.
8704
8705 2002-01-22  Richard Henderson  <rth@redhat.com>
8706
8707         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8708         for_each_rtx instead of assuming we're already looking at the MEM.
8709         (split_small_symbolic_mem_operand): Likewise.
8710         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8711         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8712
8713 2002-01-22  Richard Henderson  <rth@redhat.com>
8714
8715         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8716         sequence number for the literal.
8717         (divmoddi_internal_er): Likewise.
8718
8719 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8720
8721         PR java/4972
8722         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8723         in LIBICONV variable.
8724         * configure: Regenerated.
8725
8726 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8727
8728         * dependence.c (build_def_use): Remove array_idx.
8729
8730         * dwarfout.c (last_filename): Remove.
8731         (output_compile_unit_die): Remove last_filename.
8732
8733 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8734             Richard Henderson  <rth@redhat.com>
8735
8736         PR opt/3640
8737         * fold-const.c (fold): Optimize unsigned comparisons against
8738         UINT_MAX (and similar unsigned constants).
8739
8740 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8741
8742         * Makefile.in (loop.o): Depend on OPTABS_H.
8743         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8744         against the predicate.
8745
8746         PR target/5379
8747         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8748         for the address operand.
8749
8750 2002-01-22  Richard Henderson  <rth@redhat.com>
8751
8752         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8753
8754 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8755
8756         PR other/5450
8757         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8758         preprocessor flags.
8759
8760 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8761
8762         * config.gcc (x86_64-*-netbsd*): New target.
8763         * config/i386/netbsd64.h: New file.
8764
8765 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8766
8767         * regrename.c (kill_value): Fix typo.
8768
8769 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8770
8771         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8772
8773         * config/rs6000/rs6000.h: Same.
8774
8775         * function.c (instantiate_virtual_regs): Remove
8776         STARTING_FRAME_PHASE.
8777         (assign_stack_local_1): Same.
8778         Calculate frame phase.
8779
8780 2002-01-22  Nick Clifton  <nickc@redhat.com>
8781
8782         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8783         variable declaration to outer scope in order to simplify
8784         future extensions.
8785         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8786         arm_hard_regno_mode_ok.
8787         * config/arm/arm-protos.h: Add a prototype for
8788         arm_hard_regno_mode_ok.
8789         * config/arm/arm.c (soft_df_operand): Remove now redundant
8790         check for DImode values using IP_REGNUM.
8791         (nonimmediate_soft_df_operand): Remove now redundant check for
8792         DImode values using IP_REGNUM.
8793         (arm_hard_regno_mode_ok): New function. New check: make sure
8794         that DImode values are not stored in IP_REGNUM.
8795
8796         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8797         note with a USE.
8798         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8799
8800 2002-01-22  Jason Merrill  <jason@redhat.com>
8801
8802         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8803         consistency if this COMPOUND_STMT is scoped.
8804
8805 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8806
8807         * predict.c: Fix formatting.
8808         * print-tree.c: Likewise.
8809         * protoize.c: Likewise.
8810         * real.h: Likewise.
8811         * rtl.h: Likewise.
8812         * sbitmap.h: Likewise.
8813         * scan.c: Likewise.
8814         * sched-deps.c: Likewise.
8815         * sched-vis.c: Likewise.
8816         * sdbout.c: Likewise.
8817         * sibcall.c: Likewise.
8818         * ssa.c: Likewise.
8819         * ssa-ccp.c: Likewise.
8820         * ssa-dce.c: Likewise.
8821         * stmt.c: Likewise.
8822         * stor-layout.c: Likewise.
8823         * system.h: Likewise.
8824
8825 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8826
8827         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8828         if fits in bounds of base type.
8829
8830         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8831         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8832         (add_bound_info, default): If can't find a context, make a
8833         SAVE_EXPR.
8834         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8835
8836 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8837
8838         * c-typeck.c (parser_build_binary_op): If result from
8839         build_binary_op is ERROR_MARK just return error_mark_node without
8840         further processing.
8841
8842 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8843
8844         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8845         Split a.out-specific bits into...
8846         * config/netbsd-aout.h: ...this.
8847         * config/netbsd-elf.h: New file.
8848         * config/alpha/netbsd-elf.h: Remove.
8849         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8850         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8851         (STARTFILE_SPEC): Remove redundant definition.
8852         (ENDFILE_SPEC): Likewise.
8853         (LINK_SPEC): Likewise.
8854         (CPP_SPEC): Likewise.
8855         (ASM_SPEC): Likewise.
8856         (LIB_SPEC): Likewise.
8857         (SWITCH_TAKES_ARG): Likewise.
8858         (TARGET_MEM_FUNCTIONS): Likewise.
8859         (CPP_PREDEFINES): Redefine.
8860         (ASM_FINAL_SPEC): Remove redefinition.
8861         (ASM_COMMENT_START): Redefine.
8862         (FUNCTION_PROFILER): Define.
8863         (TARGET_VERSION): Redefine.
8864         Comment and formatting cleanup.
8865         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8866         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8867         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8868         big- or little-endian.
8869         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8870         * config.gcc (*-*-netbsd*): Add definitions common to all
8871         NetBSD configs.
8872         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8873         gnu_ld definitions.  Add netbsd-elf.h to and remove
8874         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8875         tmake_file, and don't lose previous tmake_file contents.
8876         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8877         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8878         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8879         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8880         (mipsel-*-netbsd*): Rename this to...
8881         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8882         mips/little.h to tm_file for mips*el-*.
8883         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8884         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8885         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8886
8887 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8888
8889         * pa-protos.h (reg_before_reload_operand): New function prototype.
8890         * pa.c (reg_before_reload_operand): New function implementation.
8891         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8892         contraints to "*m".
8893
8894 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8895
8896         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8897
8898 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8899
8900         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8901         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8902         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8903         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8904         (ENDFILE_SPEC): Undefine.
8905         (STARTFILE_SPEC): Redefine for PA.
8906
8907 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8908
8909         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8910
8911 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8912
8913         * config.gcc: Add entries to supported PowerPC --with-cpu
8914         types.
8915
8916 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8917
8918         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8919         true for 64-bit mode only SSE registers in 32-bit mode.
8920
8921 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8922
8923         * unwind-dw2.c: Fix formatting.
8924         * unwind-dw2-fde.c: Likewise.
8925         * unwind-dw2-fde.h: Likewise.
8926         * unwind-pe.h: Likewise.
8927         * varasm.c: Likewise.
8928         * varray.h: Likewise.
8929
8930 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
8931
8932         Remove workaround for register stack overwrite bug in mmix.
8933         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8934         support for TARGET_REG_STACK_FILL_BUG.
8935         * config/mmix/mmix.h: Remove member has_call_without_parameters.
8936         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8937         Delete.
8938         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8939         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8940         -mno-reg-stack-fill-bug-workaround.
8941         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8942         machine member has_call_without_parameters.
8943         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8944         -mreg-stack-fill-bug-workaround and
8945         -mno-reg-stack-fill-bug-workaround.
8946         (MMIX Options): Ditto.
8947
8948 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8949
8950         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8951         as appropriate.
8952         Remove redundant code.
8953
8954 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8955
8956         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8957         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8958         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8959         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8960         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8961         out target macro definitions and non-target-specific comments
8962         mostly taken from old versions of the manual.
8963
8964 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8965
8966         * config/h8300/h8300.h: Fix comment formatting.
8967         * config/ia64/aix.h: Likewise.
8968         * config/ia64/ia64-protos.h: Likewise.
8969         * config/ia64/ia64.c: Likewise.
8970         * config/ia64/ia64.h: Likewise.
8971         * config/ia64/ia64intrin.h: Likewise.
8972         * config/ia64/linux.h: Likewise.
8973         * config/ia64/unwind-aix.c: Likewise.
8974         * config/ia64/unwind-ia64.c: Likewise.
8975
8976 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8977
8978         * config/h8300/h8300.c: Revise comments about shift code.
8979
8980 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8981
8982         * config/h8300/h8300.c (function_arg): Update a comment.
8983
8984 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8985
8986         * config/h8300/h8300.md: Update the comments at the beginning
8987         of the file.
8988
8989 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8990
8991         * config/i370/i370.c: Fix comment formatting.
8992         * config/i370/i370.h: Likewise.
8993         * config/i370/i370.md: Likewise.
8994         * config/i370/linux.h: Likewise.
8995
8996 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8997
8998         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8999
9000         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9001         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9002         in incomplete case.
9003
9004 2002-01-20  Graham Stott  <grahams@redhat.com>
9005
9006         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9007
9008 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9009
9010         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9011
9012 2002-01-19  Tom Rix  <trix@redhat.com>
9013
9014         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9015
9016 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
9017
9018         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9019
9020         * function.c (assign_stack_local_1): Adjust x_frame_offset with
9021         STARTING_FRAME_PHASE.
9022         (STARTING_FRAME_PHASE): New.
9023         (instantiate_virtual_regs): Check saneness of
9024         STARTING_FRAME_PHASE.
9025
9026         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9027
9028 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9029
9030         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9031
9032 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9033
9034         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9035         be used for bootstrapping GCC 3.0.
9036
9037 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9038
9039         * config/h8300/h8300.md: Fix an insn length.
9040
9041 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9042
9043         * bitmap.h: Fix comment formatting.
9044         * combine.c: Likewise.
9045         * cppfiles.c: Likewise.
9046         * c-pragma.h: Likewise.
9047         * c-typeck.c: Likewise.
9048         * df.c: Likewise.
9049         * dwarf2out.c: Likewise.
9050         * function.c: Likewise.
9051         * gcc.c: Likewise.
9052         * genattrtab.c: Likewise.
9053         * gthr-win32.h: Likewise.
9054         * haifa-sched.c: Likewise.
9055         * predict.c: Likewise.
9056         * rtlanal.c: Likewise.
9057         * rtl.h: Likewise.
9058         * unwind-dw2-fde.h: Likewise.
9059         * unwind-pe.h: Likewise.
9060         * vmsdbgout.c: Likewise.
9061
9062 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9063
9064         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9065         if type_required and passed decl.
9066
9067 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9068
9069         * config.gcc (cpu_type): Include altivec.h in powerpc
9070         extra_headers.
9071         Same for darwin.
9072
9073         * config/rs6000/altivec.h: New.
9074
9075 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9076
9077         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9078         handling information.
9079         * doc/trouble.texi (Interoperation): Add libstdc++ information
9080         for AIX.
9081         (Misunderstandings): Add template instantiation and static template
9082         member information for AIX.
9083
9084 2002-01-17  Jason Merrill  <jason@redhat.com>
9085
9086         * dbxout.c (dbxout_type): Support const and volatile.
9087
9088         * except.c (add_partial_entry): Remove backwards compatibility code.
9089         (end_protect_partials): Likewise.
9090
9091 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9092
9093         * config/ia64/ia64.md (prologue_use): New.
9094         * config/ia64/ia64.c (ia64_expand_prologue): Use
9095         gen_prologue_use instead of gen_rtx_USE.
9096         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9097         as CODE_FOR_pred_rel_mutex.
9098         (ia64_sched_reorder2): Likewise.
9099
9100 2002-01-16  Eric Christopher  <echristo@redhat.com>
9101
9102         * config/mips/r3900.h: Reformat.
9103         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9104         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9105         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9106         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9107         * config/mips/t-elf: Remove mips3 multilib.
9108
9109 2002-01-16  H.J. Lu <hjl@gnu.org>
9110
9111         * config/mips/linux.h: Include "mips/abi64.h".
9112
9113 2002-01-16  H.J. Lu <hjl@gnu.org>
9114
9115         * config/mips/t-linux: New.
9116
9117         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9118
9119         * config/mips/linux.h: Don't include "gofast.h".
9120         (INIT_SUBTARGET_OPTABS): Removed.
9121
9122 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9123
9124         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9125         output_a_shift.
9126         * config/h8300/h8300.c: Likewise.
9127         * config/h8300/h8300.md: Likewise.
9128
9129 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9130
9131         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9132         spaces after an opcode name.
9133         (pushqi1_h8300hs): Likewise.
9134         (pushhi1_h8300hs): Likewise.
9135
9136 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9137
9138         * doc/extend.texi: Replace "option" with "attribute"
9139         appropriately.
9140
9141 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9142
9143         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9144         (and:DI () (const_int -8)).
9145         (split_small_symbolic_mem_operand): Split
9146         (mem (and:DI () (const_int -8)).
9147
9148 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9149
9150         PR target/5309:
9151         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9152         same way as TYPE_IMUL.
9153         (ultrasparc_sched_reorder): Likewise.
9154         * config/sparc/sparc.md (type): Add comment to update
9155         ultrasparc_sched_reorder when making changes.
9156
9157 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9158
9159         * doc/invoke.texi: Change the dump file name of block
9160         reordering pass from 28.bbro to 29.bbro.
9161         Mention -dk option.
9162
9163 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9164
9165         * i386.md (minsf splitter): Fix pasto.
9166
9167 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9168
9169         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9170         to frame pointer initialisation instruction.
9171         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9172         initialisation instruction.
9173         (soft_df_operand): Do not accept the IP register.
9174         (nonimmediate_soft_df_operand): Do not accept the IP register.
9175
9176 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9177
9178         PR target/5357:
9179         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9180         MASK_V8 being both set.
9181
9182 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9183
9184         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9185         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9186         config/s390/s390.md (call, call_value): Add GOT register to
9187         CALL_INSN_FUNCTION_USAGE where needed.
9188         (call_exp, call_value_exp): New.
9189
9190 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9191
9192         * config/arm/arm.c: General formatting tidy up.
9193
9194 2002-01-16  Graham Stott  <grahams@redhat.com>
9195
9196         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9197         cast and when casting an integer literal to "rtx" pointer.
9198         (expand_call): Likewise.
9199         * flow.c (try_pre_increment): Likewise.
9200         (find_use_as_address): Likewise.
9201         * integrate.c (expand_iline_function): Likewise.
9202         * regmove.c (try_auto_increment): Likewise.
9203
9204 2002-01-16  Graham Stott  <grahams@redhat.com>
9205
9206         * sched-rgn.c (passed): Use sbitmap_free.
9207         (header): Likewise.
9208         (inner): Likewise.
9209         (in_queue): Likewise.
9210         (in_stack): Likewise.
9211
9212 2002-01-15  Eric Christopher  <echristo@redhat.com>
9213
9214         * flow.c (propagate_one_insn): Change to use fatal_insn.
9215
9216 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9217
9218         * expmed.c (extract_fixed_bit_field): Remove unused code.
9219         * system.h: Poison SLOW_ZERO_EXTEND.
9220         * doc/tm.texi: Remove.
9221         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9222         * config/arm/arm.h: Likewise.
9223         * config/avr/avr.h: Likewise.
9224         * config/clipper/clipper.h: Likewise.
9225         * config/convex/convex.h: Likewise.
9226         * config/d30v/d30v.h: Likewise.
9227         * config/dsp16xx/dsp16xx.h: Likewise.
9228         * config/elxsi/elxsi.h: Likewise.
9229         * config/fr30/fr30.h: Likewise.
9230         * config/h8300/h8300.h: Likewise.
9231         * config/i370/i370.h: Likewise.
9232         * config/i386/i386.h: Likewise.
9233         * config/m68k/m68k.h: Likewise.
9234         * config/mips/mips.h: Likewise.
9235         * config/ns32k/ns32k.h: Likewise.
9236         * config/pdp11/pdp11.h: Likewise.
9237         * config/pj/pj.h: Likewise.
9238         * config/s390/s390.h: Likewise.
9239         * config/sh/sh.h: Likewise.
9240         * config/stormy16/stormy16.h: Likewise.
9241         * config/v850/v850.h: Likewise.
9242         * config/vax/vax.h: Likewise.
9243         * config/we32k/we32k.h: Likewise.
9244
9245 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9246
9247         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9248         (altivec_lvsl): Change constraint to b.
9249         (altivec_lvsr): Same.
9250         (altivec_lvebx): Same.
9251         (altivec_lvehx): Same.
9252         (altivec_lvewx): Same.
9253         (altivec_lvxl): Same.
9254         (altivec_lvx): Same.
9255         (altivec_stvx): Add parallel.
9256         (altivec_stvxl): Same.
9257         (altivec_stvehx): Same.
9258         (altivec_stvebx): Same.
9259         (altivec_stvebx): Same.
9260
9261 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9262
9263         * config.gcc: Change altivec.h to altivec-defs.h.
9264
9265         * config/rs6000/altivec.h: Delete.
9266
9267         * config/rs6000/altivec-defs.h: Add.
9268
9269 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9270
9271         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9272         and UMOD modes.
9273
9274         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9275         less than or equal to eight bytes.
9276
9277         * vax.md (andsi3): Remove constraints and change SET destination
9278         operand type to nonimmediate_operand.
9279         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9280         when it is a CONST_INT.
9281
9282 2002-01-15  Jason Merrill  <jason@redhat.com>
9283
9284         * c-common.def (FILE_STMT): New code.
9285         * c-common.c (statement_code_p): It's a statement.
9286         * c-common.h (stmt_tree_s): Add x_last_filename.
9287         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9288         (last_expr_filename): New macro.
9289         * c-semantics.c (begin_stmt_tree): Initialize it.
9290         (add_stmt): If the filename changed, also insert a
9291         FILE_STMT.
9292         (expand_stmt): Handle seeing one.
9293
9294 2002-01-15  Eric Christopher  <echristo@redhat.com>
9295
9296         * flow.c (propagate_one_insn): Add error message and print out
9297         insn for debugging.
9298
9299 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9300
9301         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9302         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9303         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9304         TRAMPOLINE_ALIGNMENT.
9305         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9306         to be in bits.
9307         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9308         PCC_BITFIELD_TYPE_MATTERS.
9309         * config/interix.h (STDC_VALUE): Remove.  Use
9310         STDC_0_IN_SYSTEM_HEADERS.
9311         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9312         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9313         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9314
9315 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9316
9317         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9318         not work on this platform currently.
9319
9320 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9321
9322         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9323         readonly_warning in _().
9324
9325 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9326
9327         * gcc.c (delete_if_ordinary): Backout previous change.
9328
9329 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9330
9331         * config/h8300/h8300.c (print_operand): Remove support for
9332         unused operand characters.
9333
9334         * read-rtl.c: Fix formatting.
9335         * real.c: Likewise.
9336         * recog.c: Likewise.
9337         * regclass.c: Likewise.
9338         * regmove.c: Likewise.
9339         * reg-stack.c: Likewise.
9340         * reload1.c: Likewise.
9341         * rtlanal.c: Likewise.
9342
9343 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9344
9345         * config/i386/i386.c: Fix formatting.
9346
9347 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9348
9349         * c-typeck.c (process_init_element): Don't save_expr
9350         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9351
9352 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9353
9354         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9355         emit optional traceback table if optimize_size or TARGET_ELF.
9356         * config/rs6000/rs6000.md (prefetch): New.
9357
9358 2002-01-15  Andreas Jaeger  <aj@suse.de>
9359
9360         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9361
9362 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9363
9364         * mips-tfile.c: Fix formatting.
9365
9366 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9367
9368         * unroll.c (final_reg_note_copy): Fix previous commit.
9369
9370 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9371
9372         * config/h8300/h8300-protos.h: Remove the prototype for
9373         eq_operator.
9374         * config/h8300/h8300.c (eq_operator): Remove.
9375
9376 2002-01-14  Richard Henderson  <rth@redhat.com>
9377
9378         * config/i386/i386.md (prefetch): Tidy.
9379         (prefetch_3dnow): Fix locality operand.
9380
9381 2002-01-14  Richard Henderson  <rth@redhat.com>
9382
9383         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9384         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9385
9386 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9387
9388         * reload1.c (reload_combine): Pass reg_sum replacement through
9389         copy_rtx in loop performing multiple changes.
9390
9391 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9392
9393         * except.c (remove_unreachable_regions): New.
9394         (free_eh_status): Clear exception_handler_labels.
9395         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9396         (find_exception_handler_labels): Don't add the same label more than
9397         once.
9398         (remove_exception_handler_label): Don't die if
9399         find_exception_handler_labels hasn't been called for the current
9400         function yet.
9401
9402 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9403
9404         * toplev.c (rest_of_compilation): Rebuild jump labels after
9405         gcse.
9406
9407 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9408
9409         * doc/extend.texi: Move documentation of X86 built-in functions
9410         here.
9411         * doc/invoke.texi: From here.
9412         * doc/sourcebuild.texi: Document location of documentation for
9413         machine built-in functions.
9414
9415 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9416
9417         * cppfiles.c (TEST_THRESHOLD): New macro.
9418         (SHOULD_MMAP): Ditto.
9419         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9420         be used.
9421
9422 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9423
9424         * unroll.c (final_reg_note_copy): Properly handle
9425         REG_LABEL
9426         (unroll_loops): Fix LOOP_CONDITION heuristics.
9427
9428 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9429
9430         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9431         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9432
9433 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9434
9435         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9436         threaded loop.
9437
9438 2002-01-14  Tom Rix  <trix@redhat.com>
9439
9440         * config/rs6000/rs6000.md: Fix typo with sradi.
9441
9442 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9443
9444         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9445         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9446         (clrstrdi, clrstrsi): Adapt callers.
9447
9448         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9449
9450         (movti splitter): Never use register 0 as base register.
9451
9452 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9453
9454         * combine.c (simplify_shift_const): Always generate new rtx
9455         for shift expression instead of reusing given expression.
9456
9457 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9458
9459         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9460         alpha_legitimize_address unless mode is Pmode.
9461
9462 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9463
9464         * doc/md.texi (Modifiers): Document the '*' constraint for the
9465         user.
9466
9467         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9468         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9469         for xstormy16 too.
9470
9471 2002-01-13  Richard Henderson  <rth@redhat.com>
9472
9473         * reload.c (find_reloads): Use a hard reg destination as reload reg
9474         for an input reload of the source.
9475
9476 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9477
9478         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9479         more generic.
9480
9481 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9482
9483         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9484         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9485
9486         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9487
9488 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9489
9490         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9491
9492 2002-01-12  Tom Rix  <trix@redhat.com>
9493
9494         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9495         TARGET_POWERPC64.
9496
9497 2002-01-12  Richard Henderson  <rth@redhat.com>
9498
9499         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9500
9501         * doc/invoke.texi: Update Alpha options.
9502
9503         * doc/invoke.texi: Update i386 built-in function lists.
9504
9505 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9506
9507         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9508         referencing outside.
9509
9510 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9511
9512         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9513         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9514         offsets, and change line folding.
9515         * optabs.c (expand_binop): Remove warnings.
9516         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9517
9518 2002-01-12  Graham Stott <grahams@redhat.com>
9519
9520         * attribs.c (handle_deprecated_attribute): constify WHAT.
9521         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9522         dangling else warning and constify WHAT.
9523         * except.h (struct function, struct inline_remap): Move
9524         struct tag forward defs before all prototypes.
9525         (duplicate_eh_regions): Whitespace.
9526
9527 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9528
9529         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9530         MODE_BASE_REG_CLASS.
9531         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9532
9533 2002-01-12  Richard Henderson  <rth@redhat.com>
9534
9535         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9536         (ix86_expand_vector_move): New.
9537         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9538         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9539         Remove old prefetch builtins.  Special case the logicals removed above.
9540         (ix86_expand_builtin): Likewise.
9541         (safe_vector_operand): Use V4SFmode, not TImode.
9542         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9543         (ix86_expand_timode_binop_builtin): New.
9544         * config/i386/i386-protos.h: Update.
9545         * config/i386/i386.h (enum ix86_builtins): Update.
9546         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9547         Use ix86_expand_vector_move in vector move expanders.
9548         (movti_internal, movti_rex64): Add xorps alternative.
9549         (sse_clrv4sf): Rename and adjust from sse_clrti.
9550         (prefetch): Don't work so hard.
9551         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9552         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9553         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9554
9555 2002-01-11  Richard Henderson  <rth@redhat.com>
9556
9557         * config/i386/mmintrin.h: New file.
9558         * config/i386/xmmintrin.h: New file.
9559         * config.gcc (i?86-*-*): Add extra_headers.
9560         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9561         truncation codes.
9562         (simplify_binary_operation): Handle saturating arithmetic codes.
9563         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9564         not the lowpart subreg.
9565         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9566         on error.
9567         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9568
9569 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9570
9571         * conflict.c (conflict_graph_compute): Free regsets when finished.
9572         * ssa.c (compute_coalesced_reg_partition): Likewise.
9573
9574 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9575
9576         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9577         every where we allocate a register.
9578
9579 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9580
9581         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9582         * lcm.c (compute_earliest, compute_farthest): Likewise.
9583
9584 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9585
9586         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9587
9588 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9589
9590         * doc/rtl.texi (Insns): Fix 2 typos.
9591
9592 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9593
9594         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9595         options.  Use @table @gcctabopt for MMIX options.  Add index
9596         entries for MMIX options.  Start new paragraph with first
9597         heading of the machine-dependent options.
9598
9599 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9600
9601         PR other/5299
9602         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9603         * combine.c (force_to_mode): Same.
9604         * reload1.c (clear_reload_reg_in_use): Same.
9605
9606 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9607
9608         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9609         and 'subtargets'.
9610
9611 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9612             Brad Lucier <lucier@math.purdue.edu>
9613
9614         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9615         mcpu.
9616
9617 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9618
9619         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9620         Protect with IN_LIBGCC.
9621         (LINK_EH_SPEC): Add required trailing space.
9622
9623 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9624
9625         * c-tree.h: Move function declarations so that they are listed
9626         under the filename which contains them.
9627         (check_identifier, finish_decl_top_level,
9628         lookup_name_current_level_global, shadow_record_fields): Remove.
9629
9630 2002-01-11  Andreas Jaeger  <aj@suse.de>
9631
9632         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9633         march.
9634
9635 2002-01-10  Richard Henderson  <rth@redhat.com>
9636
9637         * config/alpha/alpha.c (print_operand): Add 'J'.
9638         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9639         new operand with the sequence number for the lituse.  When splitting
9640         the insns, use gen_movdi_er_high_g and generate a sequence number.
9641         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9642
9643 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9644
9645         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9646         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9647         stvxl.
9648         (altivec_expand_builtin): Same.
9649         (altivec_expand_stv_builtin): New.
9650
9651         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9652
9653         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9654         ("altivec_lvehx"): New.
9655         ("altivec_lvewx"): New.
9656         ("altivec_lvxl"): New.
9657         ("altivec_lvx"): New.
9658         ("altivec_stvx"): New.
9659         ("altivec_stvebx"): New.
9660         ("altivec_stvehx"): New.
9661         ("altivec_stvewx"): New.
9662         ("altivec_stvxl"): New.
9663
9664 2002-01-10  Richard Henderson  <rth@redhat.com>
9665
9666         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9667         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9668         care not to delete instructions twice.
9669
9670 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9671
9672         * toplev.c: Don't declare environ (it's not used anywhere).
9673         * configure.in: Don't check for declaration of environ.
9674         * config/i386/xm-mingw32.h: Don't #define environ.
9675         * config.in, configure: Regenerate.
9676
9677 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9678
9679         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9680         * configure: Regenerate.
9681
9682         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9683         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9684         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9685         alpha/xm-vms.h.
9686         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9687         LIMITS_H_TEST here, not in m68k/x-next.
9688         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9689         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9690
9691         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9692         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9693         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9694
9695         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9696         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9697         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9698         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9699         replacement of quadlib.asm with quadlib.c.
9700
9701         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9702         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9703         config/rs6000/xm-beos.h: Delete file.
9704
9705         * config.gcc: Update to match above changes.
9706
9707 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9708
9709         * config/h8300/h8300.h: Fix comment typos.
9710         * config/h8300/h8300.md: Likewise.
9711         * config/h8300/lib1funcs.asm: Likewise.
9712
9713 2002-01-10  Dale Johannesen  <dalej@apple.com>
9714
9715         PR optimization/5269
9716         * unroll.c (precondition_loop_p): Make *increment be the correct
9717         sign when n_iterations known, to avoid confusing caller.
9718
9719 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9720
9721         * doc/extend.texi (deprecated): Fix a typo.
9722
9723 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9724
9725         * basic-block.h (update_br_prob_note): Declare.
9726         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9727         (try_forward_edges): Care negative frequencies and update note.
9728         (outgoing_edges_match): Tweek conditional merging heuristics.
9729         (try_crossjump_to_edge): use update_br_prob_note.
9730         * cfglayout.c (fixup_reorder_chain): Likewise.
9731         * cfrtl.c (update_br_prob_note): New.
9732         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9733
9734         * i386.c (ix86_decompose_address): Return -1 if address contains
9735         shift.
9736         (legitimate_address_p): Require ix86_decompose_address to return 1.
9737
9738         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9739         (cprop_insn): Likewise.
9740
9741 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9742
9743         * toplev.c: Fix formatting.
9744         * tree.c: Likewise.
9745         * tree-dump.c: Likewise.
9746         * unroll.c: Likewise.
9747         * unwind-dw2.c: Likewise.
9748         * unwind-dw2-fde.c: Likewise.
9749         * unwind-dw2-fde-glibc.c: Likewise.
9750         * unwind-sjlj.c: Likewise.
9751
9752 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9753
9754         * doc/invoke.texi: Document PDP-11 options.
9755
9756 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9757
9758         * config/h8300/h8300.h: Fix formatting.
9759
9760 2002-01-10  Ira Ruben   <ira@apple.com>
9761
9762         Add __attribute__ ((deprecated)).
9763         * extend.texi: Document __attribute__ ((deprecated)).
9764         * invoke.texi: Document -Wno-deprecated-declarations.
9765         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9766         * testsuite/gcc.dg/deprecated.c: New C test.
9767         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9768         (c_common_attribute_table): Add "deprecated" entry.
9769         (handle_deprecated_attribute): New function.
9770         * c-decl.c (deprecated_states): New enum.
9771         deprecated_state: State of "deprecated" handling.
9772         (start_decl): Set deprecated_state based on attributes.
9773         (grokdeclarator): Test for deprecated uses, propagate attribute.
9774         * c-typeck.c (build_component_ref): Test for deprecated fields.
9775         (build_external_ref): Test for deprecated primaries.
9776         * diagnostic.c (warn_deprecated_use) New function to issue
9777         warnings about __attribute__ ((depricated)) references.
9778         * flags.h (warn_deprecated_decl): Extern declared for
9779         -W[no-]deprecated-declarations option.
9780         * print-tree.c (print_node): Show deprecated flag status.
9781         * toplev.c (warn_deprecated_decl): Defined.
9782         (W_options): Added "deprecated-declaration".
9783         * toplev.h (warn_deprecated_use): Extern declared.
9784         * tree.h (struct tree_common): Define deprecated_flag.
9785         (TREE_DEPRECATED): New macro to access flag.
9786         * cp/call.c (build_call): Test for deprecated calls.
9787         * cp/class.c (add_implicitly_declared_members): Set global
9788         flag to tell grokdeclarator to not issue deprecated warnings.
9789         * cp/cp-tree.h: Add extern for adding_implicit_members.
9790         * cp/decl.c (deprecated_states): New enum.
9791         (start_decl): Set deprecated_state based on attributes.
9792         (grokdeclarator): Test for deprecated uses, propagate attribute.
9793         * cp/lex.c (do_identifier): Test for deprecated primaries.
9794         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9795
9796 2002-01-10  Ira Ruben   <ira@apple.com>
9797
9798         Fix to assign attributes to inline member functions.
9799         * cp/decl.c (start_method): Handle attrlist.
9800
9801 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9802
9803         * combine.c (expand_field_assignment): Use subreg_lsb().
9804
9805 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9806
9807         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9808         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9809         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9810         Recurse for any operand of AND as long as constant is non-zero.
9811
9812 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9813
9814         * config/h8300/h8300.md: Remove constraints from expanders.
9815
9816 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9817
9818         * varasm.c: Fix formatting.
9819         * varray.c: Likewise.
9820         * vmsdbgout.c: Likewise.
9821         * xcoffout.c: Likewise.
9822
9823 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9824
9825         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9826         update edge probabilities to match.
9827
9828 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9829
9830         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9831         dependencies.
9832         * doc/languages.texi, doc/sourcebuild.texi: New files.
9833         * doc/configfiles.texi: Make a subsubsection.  Update.
9834         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9835         instructions for building GCC.
9836         * doc/makefile.texi: Make a subsection.
9837         * doc/gccint.texi: Update.
9838
9839 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9840
9841         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9842
9843 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9844
9845         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9846
9847 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9848
9849         * optabs.c (expand_fix): Look for wider integer modes first.
9850
9851         * i386.md (mov?f): Avoid the fake const double trick for medium
9852         memory model.
9853         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9854         (fop_df_4): Disable for SSE compilation.
9855
9856 2002-01-10  Graham Stott  <grahams@redhat.com>
9857
9858         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9859         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9860
9861 2002-01-10  Richard Henderson  <rth@redhat.com>
9862
9863         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9864
9865 2002-01-10  Richard Henderson  <rth@redhat.com>
9866
9867         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9868         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9869
9870 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9871
9872         * combine.c (can_combine_p): Fix a comment typo.
9873
9874 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9875
9876         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9877         empty list correctly.  Change loop index $t to $f for
9878         consistency with rest of Makefile.
9879
9880 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9881
9882         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9883         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9884
9885         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9886         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9887         (altivec_init_builtins): Same.
9888         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9889         (altivec_expand_binop_builtin): Same.
9890         (altivec_expand_ternop_builtin): Same.
9891         (bdesc_dst): New.
9892
9893         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9894         ("altivec_vctuxs"): Fix typo.
9895         ("altivec_vnmsubfp"): Same.
9896         ("altivec_dssall"): New.
9897         ("altivec_mfvscr"): New.
9898         ("altivec_dss"): New.
9899         ("altivec_lvsl"): New.
9900         ("altivec_lvsr"): New.
9901         ("altivec_dstt"): New.
9902         ("altivec_dstst"): New.
9903         ("altivec_dststt"): New.
9904         ("altivec_dst"): New.
9905
9906         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9907         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9908
9909 2002-01-09  Richard Henderson  <rth@redhat.com>
9910
9911         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9912
9913 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9914
9915         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9916         function.
9917         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9918         prototype.
9919         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9920
9921 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9922
9923         * read-rtl.c: Fix formatting.
9924         * real.c: Likewise.
9925         * regclass.c: Likewise.
9926         * regrename.c: Likewise.
9927         * reg-stack.c: Likewise.
9928         * reload1.c: Likewise.
9929         * reload.c: Likewise.
9930         * rtl.c: Likewise.
9931
9932 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9933
9934         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9935         to extract items in the expr_list chain.
9936
9937 2002-01-09  Richard Henderson  <rth@redhat.com>
9938
9939         * config/vax/vax.c (vax_rtx_cost): Never abort.
9940
9941         * config/vax/vax.h (REAL_ARITHMETIC): Define.
9942
9943 2002-01-09  Jan Hubicka  <jh@suse.cz>
9944
9945         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9946
9947 2002-01-09  Richard Henderson  <rth@redhat.com>
9948
9949         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9950         Unify code from various alternatives.
9951
9952 2002-01-09  Richard Henderson  <rth@redhat.com>
9953
9954         * regrename.c (copy_value): Ignore the copy if the source register
9955         is present in the value chain with a narrower mode.
9956
9957 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9958
9959         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9960         for the c4x target. Also improve layout.
9961
9962 2002-01-09  Richard Henderson  <rth@redhat.com>
9963
9964         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9965         * config/m32r/m32r.md (and ior xor splitters): Swap operands
9966         to match insn patterns.
9967
9968 2002-01-09  Richard Henderson  <rth@redhat.com>
9969
9970         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9971         (copyprop_hardreg_forward_1): Likewise.
9972
9973 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9974
9975         * pa.md (decrement_and_branch_until_zero): Change predicate for
9976         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9977
9978 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9979
9980         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9981         gets undefined. For Darwin.
9982
9983 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9984
9985         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9986
9987 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9988
9989         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9990
9991 2002-01-08  Richard Henderson  <rth@redhat.com>
9992
9993         * regrename.c (copy_value): Ignore overlapping copies.
9994
9995 2002-01-08  Richard Henderson  <rth@redhat.com>
9996
9997         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9998         as needed to avoid shared structure.
9999
10000 2002-01-08  Kazu Hirata  <kazu@hxi.com>
10001
10002         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10003         H8/300H and H8/S.
10004
10005 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10006
10007         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10008         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10009         documentation of obsolete macros.
10010         * system.h: Poison these macros.
10011         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10012         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10013         config/c4x/c4x.h, config/clipper/clipper.h,
10014         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10015         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10016         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10017         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10018         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10019         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10020         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10021         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10022         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10023         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10024         config/sparc/sparc.h, config/stormy16/stormy16.h,
10025         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10026         definitions and commented out definitions of obsolete macros.
10027         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10028         of MAX_INT_TYPE_SIZE.
10029
10030 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10031
10032         * config/s390/s390.c (s390_preferred_reload_class): Never
10033         return ADDR_REGS if it isn't a subset of the given class.
10034         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10035         FP_REGS, but all superclasses as well.
10036
10037         * config/s390/s390.c (s390_function_profiler): Fix thinko.
10038
10039         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10040         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10041         must not be a const_int.
10042
10043 2002-01-08  Richard Henderson  <rth@redhat.com>
10044
10045         * Makefile.in (toplev.o): Depend on options.h.
10046         (gcc.o): Depend on specs.h.
10047
10048 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
10049
10050         * expr.c (store_expr): Convert VOIDmode constants back to target's
10051         mode.
10052
10053 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10054
10055         * doc/invoke.texi: Markup gcc as @command.  Refer to
10056         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10057         of http://gcc.gnu.org/thanks.html.
10058
10059 2002-01-08  Dale Johannesen  <dalej@apple.com>
10060
10061         * config/rs6000/rs6000.md: Add missing int register
10062         target case to movdf_low.
10063
10064 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10065
10066         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10067         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10068         (cppinit.o): Depend on except.h.
10069         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10070         s-specs): New rules.
10071
10072         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10073         Don't create specs.h/options.h/gencheck.h here.  Remove
10074         unnecessary variable settings from last argument of AC_OUTPUT.
10075         * config.in, configure: Regenerate.
10076         * intl.c: Hardcode package name as "gcc".
10077
10078         * cppinit.c: Include except.h.
10079         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10080         appropriate.
10081         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10082         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10083         (!)USING_SJLJ_EXCEPTIONS.
10084         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10085
10086 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10087
10088         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10089         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10090         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10091         documentation of obsolete macros.
10092         * system.h: Poison these macros.
10093         * config/d30v/d30v.h, config/ns32k/encore.h,
10094         config/stormy16/stormy16.h: Remove definitions and commented out
10095         definitions of obsolete macros.
10096
10097 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10098
10099         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10100         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10101         warnings.
10102
10103 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10104
10105         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10106         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10107         to insn adjusting stack/frame pointer.
10108         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10109         accept operands that cause the insn to be non-splittable.
10110
10111 2002-01-08  Graham Stott  <grahams@redhat.com>
10112
10113         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10114         (C_TYPE_FIELDS_VOLATILE): Likewise.
10115         (C_TYPE_BEING_DEFINED): Likewise.
10116         (C_IS_RESERVED_WORD): Likewise.
10117         (C_TYPE_VARIABLE_SIZE): Likewise.
10118         (C_DECL_VARIABLE_SIZE): Likewise.
10119         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10120         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10121         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10122         parenthesis.
10123         (C_DECL_ANTICIPATED): Likewise.
10124         (c_build_type_variant): Add parenthesis.
10125
10126 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10127
10128         * gcc.c (option_map): Remove --version.
10129         (process_command): Handle -fversion following the GNU Coding
10130         Standards.  Partially addresses PR other/704.
10131
10132 2002-01-08  Graham Stott  <grahams@redhat.com>
10133
10134         * combine.c (combine_instructions): Fix typo.
10135
10136 2002-01-08  Graham Stott  <grahams@redhat.com>
10137
10138         * debug.h: Use "tree" and "rtx" throughout.
10139
10140         * debug.c: Likewise.
10141
10142 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10143
10144         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10145         constant pool, use the pool's version of the symbol instead.
10146
10147 2002-01-07  Richard Henderson  <rth@redhat.com>
10148
10149         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10150         the original register was copied in a mode with a fewer number of
10151         hard registers than the desired mode.
10152         (copyprop_hardreg_forward_1): Likewise.
10153         (debug_value_data): Fix loop test.
10154         * toplev.c (parse_options_and_default_flags): Reenable
10155         -fcprop-registers at -O1.
10156
10157 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10158
10159         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10160         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10161
10162         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10163         predicates.
10164
10165         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10166
10167 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10168
10169         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10170         (pa_output_function_prologue): Output local label at the beginning of
10171         the prologue when profiling.
10172         (hppa_profile_hook): Use the local label rather than the function label.
10173         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10174
10175 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10176
10177         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10178         (altivec_expand_unop_builtin): Fix thinko.
10179         (altivec_expand_binop_builtin): Same.
10180         (altivec_expand_ternop_builtin): Same.
10181         (altivec_expand_builtin): Same.
10182
10183 2002-01-07  Richard Henderson  <rth@redhat.com>
10184
10185         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10186
10187 2002-01-07  Jason Merrill  <jason@redhat.com>
10188
10189         * unwind-dw2.c (execute_cfa_program): Use < again.
10190
10191 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10192
10193         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10194
10195 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10196
10197         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10198         Don't allow -1 - x -> ~x simplifications in the first pass.
10199
10200 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10201
10202         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10203         arguments.
10204         (altivec_expand_binop_builtin): Same.
10205         (altivec_expand_unop_builtin): Same.
10206         (print_operand): Fix typo.
10207         (bdesc_1arg): Add vupk* variants.
10208
10209         * rs6000.h (rs6000_builtins): Add vupk* enums.
10210
10211         * rs6000.md: Add altivec_vupk* variants.
10212
10213 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10214
10215         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10216         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10217         and last update dates.
10218
10219 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10220
10221         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10222
10223 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10224
10225         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10226         * config/avr/avr.h (CPP_SPEC): Likewise.
10227         (LINK_SPEC): Likewise.
10228         (CRT_BINUTILS_SPECS): Likewise.
10229         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10230         * doc/invoke.texi (AVR Options): Document them.
10231
10232 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10233
10234         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10235         LABEL_NUSES.
10236
10237 2002-01-07  Graham Stott  <grahams@redhat.com>
10238
10239         * config/i386/i386.h: Update copyright date.
10240         (HALF_PIC_PTR): Add parenthesis.
10241         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10242         (CONSTANT_ALIGNMENT): Add parenthesis.
10243         (DATA_ALIGNMENT): Likewise.
10244         (LOCAL_ALIGNMENT): Likewise.
10245         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10246         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10247         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10248         (HARD_REGNO_NREGS): Add paranethesis.
10249         (VALID_SSE_REG_MODE): Whitespace.
10250         (VALID_MMX_REG_MODE): Whitespace.
10251         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10252         (ix86_hard_regno_mode_ok): Add parenthesis.
10253         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10254         (RETURN_IN_MEMORY): Whitespace.
10255         (N_REG_CLASSES): Add parenthesis.
10256         (INTEGER_CLASS_P): Add parenthesis and wrap.
10257         (FLOAT_CLASS_P): Likewise.
10258         (SSE_CLASS_P): Likewise.
10259         (MMX_CLASS_P): Likewise.
10260         (MAYBE_INTEGER_CLASS_P): Likewise.
10261         (MAYBE_FLOAT_CLASS_P): Likewise.
10262         (MAYBE_SSE_CLASS_P): Likewise.
10263         (MAYBE_MMX_CLASS_P): Likewise.
10264         (Q_CLASS_P): Likewise.
10265         (GENERAL_REGNO_P): Uppercase macro parameter.
10266         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10267         (FP_REGNO_P): Likewise.
10268         (ANY_FP_REGNO_P): Uppercase macro parameter.
10269         (SSE_REGNO_P): Likewise.
10270         (SSE_REGNO): Likewise.
10271         (SSE_REG_P): Likewise.
10272         (SSE_FLOAT_MODE_P): Likewise.
10273         (MMX_REGNO_P): Likewise.
10274         (MMX_REG_P):Likewise.
10275         (STACK_REG_P): Likewise.
10276         (NON_STACK_REG_P): Likewise.
10277         (STACK_TOP_P): Likewise.
10278         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10279         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10280         (SECONDARY_MEMORY_NEEDED): Likewise.
10281         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10282         (MD_ASM_CLOBBERS): Whitespace and wrap.
10283         (MUST_PASS_IN_STACK): Whitespace and wrap.
10284         (RETURN_POPS_ARGS): Add parenthesis.
10285         (INIT_CUMULATIVE_ARGS): Likewise.
10286         (FUNCTION_ARG): Likewise.
10287         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10288         (SETUP_INCOMING_VARARGS): Likewise.
10289         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10290         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10291         parenthsis.
10292         (EXPAND_BUILTIN_VA_ARG): Likewise.
10293         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10294         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10295         (INITIAL_ELIMINATION_OFFSET): Likewise.
10296         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10297         (REGNO_OK_FOR_BASE_P): Likewise.
10298         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10299         (REGNO_OK_FOR_DIREG_P): Likewise.
10300         (REG_OK_FOR_INDEX_P): Whitespace.
10301         (REG_OK_FOR_BASE_P): Whitespace.
10302         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10303         parenthesis.
10304         (FIND_BASE_TERM): Fix typo.
10305         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10306         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10307         (SYMBOLIC_CONST; Whitespace.
10308         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10309         (ENCODE_SECTION_INFO): Whitespace.
10310         (FINALIZE_PIC): Remove do { ... } while (0).
10311         (PROMOTE_MODE): Wrap in do { ... } while (0).
10312         (CONST_COSTS): Whitespace.
10313         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10314         (REGISTER_MOVE_COST): Add parenthesis.
10315         (MEMORY_MOVE_COST): Likewise.
10316         (EXTRA_CC_MODES): Whitespace.
10317         (SELECT_CC_MODE): Add parenthesis and whitespace.
10318         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10319         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10320         (ASM_OUTPUT_LABEL): Add paramethesis.
10321         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10322         (ASM_OUTPUT_REG_POP): Likewise.
10323         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10324         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10325
10326         * config/i386/i386.c: Update copyright.
10327         (CHECK_STACK_LIMIT): Add parenthesis.
10328         (AT_BP): Uppercase macro parameter.
10329         (x86_64_int_parameter_registers): Constify.
10330         (x86_64_int_return_registers): Likewise.
10331         (ix86_compare_op0): Use rtx.
10332         (construct_container): Constify INTREG parameter.
10333         (function_arg): Use rtx.
10334
10335         * diagnostic.h: Update copyright date.
10336         (output_buffer_state): Add parenthesis.
10337         (output_buffer_format_args): Likewise.
10338
10339         * combine.c (combine_instructions): Replace XEXP (links, 0)
10340         with link.
10341
10342 2002-01-06  H.J. Lu <hjl@gnu.org>
10343
10344         * cfgcleanup.c (thread_jump): Fix 2 typos.
10345
10346 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10347
10348         * config.gcc: Add support for --enable-altivec.
10349
10350 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10351
10352         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10353
10354 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10355
10356         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10357         __objc_class_name_*.
10358
10359 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10360
10361         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10362
10363 2002-01-06  Richard Henderson  <rth@redhat.com>
10364
10365         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10366         nop them out.  Increment label reference count for REG_LABEL.
10367         (fill_slots_from_thread): Frob label reference count around
10368         delete_related_insns.
10369
10370 2002-01-05  Richard Henderson  <rth@redhat.com>
10371
10372         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10373         jump threading.
10374
10375 2002-01-05  Richard Henderson  <rth@redhat.com>
10376
10377         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10378         * integrate.c (output_inline_function): Likewise.
10379         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10380         to remove_unnecessary_notes after emitting abstract instance.
10381         Force an emitted nested function to have its parent emited as well.
10382         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10383         for null.
10384         (rtl_for_decl_location): Do not look at reload data structures
10385         before reload has run.
10386
10387 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10388
10389         * cse.c: Fix formatting.
10390         * dwarf2asm.c: Likewise.
10391         * dwarf2out.c: Likewise.
10392         * explow.c: Likewise.
10393         * expmed.c: Likewise.
10394         * function.c: Likewise.
10395         * gcov.c: Likewise.
10396         * gencheck.c: Likewise.
10397         * genrecog.c: Likewise.
10398         * ggc-common.c: Likewise.
10399         * ggc-page.c: Likewise.
10400         * global.c: Likewise.
10401
10402 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10403
10404         * combine.c: Fix formatting.
10405
10406 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10407
10408         PR middle-end/1557
10409         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10410
10411 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10412
10413         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10414         as 1 for __powerpc64__ as well.
10415
10416         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10417
10418         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10419         return it.
10420
10421 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10422
10423         * lcm.c: Revert change, due to performance regression it causes on
10424         SPEC because it's slightly more conservative (sigh, I hate
10425         edge-based LCM).
10426
10427 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10428
10429         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10430
10431 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10432
10433         * doc/cppinternals.texi: Update.
10434
10435 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10436
10437         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10438         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10439         negatives.
10440         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10441         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10442         kludge for pre-october-14th mmix versions to handle new-found bug
10443         with PUSHJ/PUSHGO and the register stack.
10444         * config/mmix/mmix.h (struct machine_function): Rename member
10445         has_call_value_without_parameters to has_call_without_parameters.
10446         All referers changed.
10447         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10448         TARGET_MASK_BRANCH_PREDICT): New macros.
10449         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10450         -mno-reg-stack-fill-bug-workaround.
10451         * config/mmix/mmix.md ("call"): Set struct machine member
10452         has_call_without_parameters.
10453
10454 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10455
10456         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10457
10458 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10459
10460         * cfgcleanup.c: Include tm_p.h
10461         (mark_effect): Fix handling of hard register; fix handling of SET
10462
10463 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10464
10465         * config/h8300/h8300.md (anonymous patterns): Check that
10466         operands are registers before using REGNO on them.
10467
10468 2002-01-03  Roland McGrath  <roland@frob.com>
10469
10470         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10471
10472 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10473
10474         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10475         * c-common.h (genrtl_expr_stmt_value): Likewise.
10476         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10477         (expand_expr_stmt_value): Add maybe_last argument.
10478         Don't warn about statement with no effect if it is the last statement
10479         in expression statement.
10480         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10481         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10482         expand_expr_stmt_value.
10483         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10484         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10485         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10486         as maybe_last to expand_expr_stmt_value.
10487
10488 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10489
10490         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10491         be passed in, do not build it.
10492         (c_begin_if_stmt): New function.
10493         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10494         * c-common.h (c_expand_start_cond): Update prototype.
10495         (c_begin_if_stmt): Prototype new function.
10496         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10497         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10498         c_begin_while_stmt and c_finish_while_stmt_cond.
10499
10500 2002-01-04  William Cohen  <wcohen@redhat.com>
10501
10502         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10503         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10504         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10505         * config/pa/som.h (ASM_FILE_START): Likewise.
10506
10507 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10508
10509         * lcm.c: Include df.h.
10510         Add available_transfer_function prototype.
10511         (compute_available): Rework to use iterative dataflow framework.
10512         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10513         with bb_info in df.h
10514         (available_transfer_function): New function.
10515
10516         * Makefile.in (lcm.o): add df.h to dependencies.
10517
10518 2002-01-04  Richard Henderson  <rth@redhat.com>
10519
10520         * config/alpha/alpha.c (some_operand): Accept HIGH.
10521         (input_operand): Likewise; accept simple references to globals.
10522         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10523         (alpha_const_double_ok_for_letter_p): Likewise.
10524         (alpha_extra_constraint): Likewise.
10525         (alpha_preferred_reload_class): Likewise.  Do not force
10526         symbolic constants to memory.
10527         (alpha_legitimate_address_p): Accept simple references
10528         to small_symbolic_operand.
10529         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10530         called when no_new_pseudos.  Emit simple symbolic references.
10531         Split integers into low, high, and rest.
10532         (alpha_expand_mov): Use alpha_legitimize_address.
10533         (some_small_symbolic_mem_operand): New.
10534         (split_small_symbolic_mem_operand): New.
10535         * config/alpha/alpha-protos.h: Update.
10536         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10537         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10538         (EXTRA_CONSTRAINT): Likewise.
10539         (PREFERRED_RELOAD_CLASS): Likewise.
10540         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10541         (PREDICATE_CODES): Update.
10542         * config/alpha/alpha.md: New post-reload splitters to convert
10543         simplfied symbolic operands to the form that references $29.
10544         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10545         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10546
10547 2002-01-03  Richard Henderson  <rth@redhat.com>
10548
10549         * local-alloc.c (function_invariant_p): Update commentary.
10550
10551 2002-01-04  H.J. Lu <hjl@gnu.org>
10552
10553         * toplev.c (rest_of_compilation): Fix a typo when calling
10554         cleanup_cfg.
10555
10556 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10557
10558         * c-common.c: Fix formatting.
10559         * diagnostic.c: Likewise.
10560         * doloop.c: Likewise.
10561         * dwarf2out.c: Likewise.
10562
10563 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10564
10565         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10566         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10567
10568 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10569
10570         * cpperror.c: Update comments and copyright.
10571         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10572         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10573
10574 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10575
10576         * collect2.c (main): Use strcmp when testing for "-shared".
10577
10578 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10579
10580         * cppmacro.c: Don't include intl.h.  Update comments.
10581         (new_number_token): Allocate enough buffer for 64-bit unsigned
10582         integers; update prototype.
10583         * cppmain.c: Update comments.
10584
10585 2002-01-03  William Cohen  <wcohen@redhat.com>
10586
10587         * function.h (struct function): Add profile.
10588         (current_function_profile): New.
10589         doc/extend.texi: Update documentation.
10590         * final.c (final_start_function): Use current_function_profile
10591         instead of profile_flag.
10592         (profile_after_prologue): Likewise.
10593         * function.c (expand_function_start): Likewise.
10594         (expand_function_start): Likewise.
10595         * config/alpha/alpha.c (direct_call_operand):
10596         (alpha_does_function_need_gp): Likewise.
10597         (alpha_expand_prologue): Likewise.
10598         * config/arm/arm.c (arm_expand_prologue): Likewise.
10599         thumb_expand_prologue: Likewise.
10600         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10601         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10602         (fr30_expand_prologue): Likewise.
10603         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10604         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10605         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10606         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10607         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10608         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10609         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10610         (m32r_expand_prologue): Likewise.
10611         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10612         (m88k_expand_prologue): Likewise.
10613         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10614         * config/mips/mips.c (compute_frame_size): Likewise.
10615         (mips_expand_prologue): Likewise.
10616         (mips_can_use_return_insn): Likewise.
10617         * config/pa/elf.h (ASM_FILE_START): Likewise.
10618         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10619         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10620         * config/pa/som.h (ASM_FILE_START): Likewise.
10621         * config/romp/romp.c (romp_using_r14): Likewise.
10622         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10623         (rs6000_stack_info): Likewise.
10624         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10625         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10626         * config/v850/v850.c (compute_register_save_size): Likewise.
10627
10628 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10629
10630         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10631         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10632
10633 2002-01-03  Turly O'Connor  <turly@apple.com>
10634
10635         * darwin.c (machopic_output_possible_stub_label): Don't generate
10636         stub routines for pseudo-stubs which we've just defined.
10637
10638 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10639
10640         * builtins.c: Fix formatting.
10641         * c-typeck.c: Likewise.
10642         * combine.c: Likewise.
10643         * expr.c: Likewise.
10644         * loop.c: Likewise.
10645
10646 2002-01-03  Andreas Schwab  <schwab@suse.de>
10647
10648         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10649         and return true if _cpp_push_next_buffer pushed a new include
10650         file.
10651         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10652         _cpp_pop_file_buffer did not push a new file.
10653         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10654
10655 2002-01-02  Eric Christopher  <echristo@redhat.com>
10656
10657         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10658         FIND_REG_INC_NOTE call. Update copyright.
10659         * loop.c (canonicalize_condition): Ditto.
10660         * reorg.c (delete_scheduled_jump): Ditto.
10661
10662 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10663
10664         * gcse.c: Fix formatting.
10665
10666 2002-01-03  Graham Stott  <grahams@redhat.com>
10667
10668         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10669         forward defs for struct tags rtx_def, union_tree, rtvec_def
10670         also output corresponding typedefs for rtx, tree, and rtvec.
10671
10672         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10673         rtvec_def along with corresponding typedefs for rtx, tree, and
10674         rtvec to config.h, hconfig.h, tconfig.h.
10675
10676 2002-01-03  Graham Stott  <grahams@redhat.com>
10677
10678         * tree.h: Update copyright date.
10679         (IS_EXPR_CODE_CLASS): Add parenthesis.
10680         (TREE_SET_CODE): Add whitespace.
10681         (TREE_CHECK): Add parenthesis.
10682         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10683         (CST_OR_CONSTRUCTOR_CHECK):
10684         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10685         (TREE_SYMBOL_REFERENCED): Whitespace.
10686         (INT_CST_LT): Likewise.
10687         (INT_CST_LT_UNSIGNED): Likewise.
10688         (tree_real_cst): Unwrap comment.
10689         (tree_string): Likewise.
10690         (tree_complex): Likewise.
10691         (IDENTIFIER_POINTER): correct cast.
10692         (SAVE_EXPR_CONTEXT): Whitespace.
10693         (EXPR_WFL_FILENAME_NODE): Likewise.
10694         (EXPR_WFL_FILENAME): Remove parenthesis.
10695         (DECL_ORIGIN): Add parenthesis.
10696         (DECL_FROM_INLINE): Use NULL_TREE.
10697         (build_int_2): Whitespace.
10698         (build_type_variant): Add parenthesis.
10699
10700         * gcc/jcf-parse.c: Update copyright date.
10701         (yyparse): Constify resource_filename.
10702
10703 2002-01-03  Graham Stott  <grahams@redhat.com>
10704
10705         * rtl.h: Update copyright date.
10706         (RTL_CHECK1): Wrap long line.
10707         (RTL_CHECK2): Likewise.
10708         (RTL_CHECKC1): Wrap long line and whitespace.
10709         (RTL_CHECKC2): Likewise.
10710         (XWINT): Whitespace.
10711         (XINT): Likewise.
10712         (XSTR): Likewise.
10713         (XEXP): Likewise.
10714         (XVEC): Likewise.
10715         (XMODE): Likewise.
10716         (XBITMAP): Likewise.
10717         (XTREE): Likewise.
10718         (XBBDEF): Likewise.
10719         (XTMPL): Likewise.
10720         (X0WINT): Likewise.
10721         (X0INT):Likewise.
10722         (X0UINT): Likewise.
10723         (X0STR): Likewise.
10724         (X0EXP): Likewise.
10725         (X0VEC): Likewise.
10726         (X0MODE): Likewise.
10727         (X0BITMAP): Likewise.
10728         (X0TREE): Likewise.
10729         (X0BBDEF): Likewise.
10730         (X0ADVFLAGS): Likewise.
10731         (X0CSELIB): Likewise.
10732         (X0MEMATTR): Likewise.
10733         (XCWINT): Likewise.
10734         (XCINT): Likewise.
10735         (XCUINT): Likewise.
10736         (XCSTR): Likewise.
10737         (XCEXP): Likewise.
10738         (XCVEC): Likewise.
10739         (XCMODE): Likewise.
10740         (XCBITMAP): Likewise.
10741         (XCTREE): Likewise.
10742         (XCBBDEF): Likewise.
10743         (XCADVFLAGS): Likewise.
10744         (XCCSELIB): Likewise.
10745         (XC2EXP): Likewise.
10746         (INSN_UID): Likewise.
10747         (PREV_INSN): Likewise.
10748         (PATTERN): Likewise.
10749         (INSN_CODE): Likewise.
10750         (PUT_REG_NOTE_KIND): Likewise.
10751         (CODE_LABEL_NUMBER): Likewise.
10752         (NOTE_SOURCE_FILE): Likewise.
10753         (NOTE_BLOCK): Likewise.
10754         (NOTE_EH_HANDLER): Likewise.
10755         (NOTE_RANGE_INFO): Likewise.
10756         (NOTE_LIVE_INFO): Likewise.
10757         (NOTE_BASIC_BLOCK): Likewise.
10758         (NOTE_EXPECTED_VALUE): Likewise.
10759         (NOTE_LINE_NUMBER): Likewise.
10760         (LABEL_NAME): Likewise.
10761         (LABEL_NUSES): Likewise.
10762         (LABEL_ALTERNATE_NAME): Likewise.
10763         (ADDRESSOF_DECL): Likewise.
10764         (JUMP_LABEL): Likewise.
10765         (LABEL_NEXTREF): Likewise.
10766         (REGNO): Likewise.
10767         (ORIGINAL_REGNO: Likewise.
10768         (HARD_REGISTER_NUM_P): Add parenthesis.
10769         (SUBREG_REG): Whitespace.
10770         (SUBREG_BYTE): Likewise.
10771         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10772         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10773         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10774         (ASM_OPERANDS_INPUT_VEC): Likewise.
10775         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10776         (ASM_OPERANDS_INPUT): Likewise.
10777         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10778         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10779         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10780         (ASM_OPERANDS_INPUT_MODE): Likewise.
10781         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10782         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10783         (MEM_SET_IN_STRUCT_P): Minor reformat.
10784         (TRAP_CONDITION): Whitespace.
10785         (TRAP_CODE): Likewise.
10786         (COND_EXEC_TEST): Likewise.
10787         (COND_EXEC_CODE): Likewise.
10788         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10789         (PHI_NODE_P): Add parenthesis.
10790         (plus_constant): Whitespace and add parenthesis.
10791
10792 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10793
10794         * config/avr/avr.c: Fix comment typos.
10795         * config/c4x/c4x.md: Likewise.
10796         * config/dsp16xx/dsp16xx.h: Likewise.
10797         * config/dsp16xx/dsp16xx.md: Likewise.
10798         * config/i386/i386.md: Likewise.
10799         * config/ia64/ia64.c: Likewise.
10800         * config/m32r/m32r.h: Likewise.
10801         * config/m68hc11/m68hc11.md: Likewise.
10802         * config/mmix/mmix.c: Likewise.
10803         * config/mn10200/mn10200.c: Likewise.
10804         * config/romp/romp.c: Likewise.
10805         * config/sh/sh.c: Likewise.
10806         * config/stormy16/stormy16.c: Likewise.
10807         * config/stormy16/stormy16.h: Likewise.
10808         * config/stormy16/stormy16.md: Likewise.
10809
10810 2002-01-03  Graham Stott  <grahams@redhat.com>
10811
10812         * loop.h: Update copyright date.
10813         (LOOP_MOVABLES): Fix typo.
10814         (LOOP_REGS): Likewise.
10815         (LOOP_IVS): Likewise.
10816
10817 2002-01-03  Graham Stott  <grahams@redhat.com>
10818
10819         * cppinit.c: Update copyright date.
10820         Don't include output.h
10821         * Makefile.in: Update copyright date.
10822         Update dependency.
10823
10824 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10825
10826         PR c/5226
10827         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10828         (-pthread) Add to RS/6000 options.
10829
10830 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10831
10832         * except.c: Fix comment typos.
10833         * loop.c: Likewise.
10834         * varasm.c: Likewise.
10835         * doc/tm.texi: Fix a typo.
10836
10837 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10838
10839         * c-typeck.c (output_init_element): Allow initializing static storage
10840         duration objects with compound literals.
10841
10842 2002-01-02  Richard Henderson  <rth@redhat.com>
10843
10844         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10845         after abusing it.
10846
10847 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10848
10849         * gcc.c (default_compilers): Const-ify.
10850         * mips-tdump.c (stab_names): Likewise.
10851         * mips-tfile.c (map_coff_types, map_coff_storage,
10852         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10853         pseudo_ops_t, pseudo_ops): Likewise.
10854         * protoize.c (default_include): Likewise
10855
10856         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10857         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10858         Add array size in declaration.
10859         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10860         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10861         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10862         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10863         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10864         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10865         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10866         emtens, make_nan): Const-ify.
10867         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10868         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10869
10870 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10871
10872         * config.gcc (ia64-*-*): Set extra_headers.
10873         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10874         * config/alpha/t-osf: Remove.
10875         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10876
10877 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10878
10879         * config/rs6000/t-aix43: Revert previous change.
10880
10881 2002-01-02  Jason Merrill  <jason@redhat.com>
10882
10883         * c-decl.c (c_expand_body): Call outlining_inline_function when
10884         emitting an inline function out of line.
10885
10886 2002-01-02  Richard Henderson  <rth@redhat.com>
10887
10888         * dwarf2out.c (limbo_die_node): Add created_for member.
10889         (new_die): New argument created_for.  Update all callers.
10890         (mark_limbo_die_list): New.
10891         (dwarf2out_init): Register limbo_die_list as a root.
10892         (dwarf2out_finish): Force insert limbo dies into their function
10893         context.
10894
10895 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10896
10897         PR c++/5089
10898         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10899
10900 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10901
10902         * config/h8300/fixunssfsi.c: Update copyright.
10903         Fix comment typos.
10904         Fix formatting.
10905         * config/h8300/h8300.c: Update copyright.
10906         Eliminate warnings.
10907
10908 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10909
10910         * config/romp/romp.c: Fix comment formatting.
10911         * config/romp/romp.h: Likewise.
10912         * config/romp/romp.md: Likewise.
10913         * config/s390/s390.c: Likewise.
10914         * config/stormy16/stormy16.c: Likewise.
10915         * config/stormy16/stormy16.h: Likewise.
10916
10917 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10918
10919         * c-common.h (genrtl_expr_stmt_value): Declare.
10920         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10921         (genrtl_goto_stmt_value): ... this new function.  Pass new
10922         argument down to expand_expr_stmt_value, taking
10923         TREE_ADDRESSABLE into account.
10924         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10925         STMT_EXPR as addressable, i.e., one whose result we want.
10926         * expr.c (expand_expr): Don't save expression statement value
10927         of labeled_blocks or loop_exprs.
10928         * stmt.c (expand_expr_stmt): Redirect to...
10929         (expand_expr_stmt_value): ... this new function.  Use new
10930         argument to tell whether to save expression value.
10931         (expand_end_stmt_expr): Reset last_expr_type and
10932         last_expr_value if we don't have either.
10933         * tree-inline.c (declare_return_variable): Mark its use
10934         statement as addressable.
10935         * tree.h: Document new use of TREE_ADDRESSABLE.
10936         (expand_expr_stmt_value): Declare.
10937
10938 2002-01-01  Tom Rix  <trix@redhat.com>
10939
10940         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10941         rs6000_emit_allocate_stack.
10942
10943 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10944
10945         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10946         ${srcdir}/ginclude/ to every entry in extra_headers.
10947         * configure: Regenerate.
10948         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10949         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10950         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10951         * ginclude/proto.h: Rename to config/convex/proto.h.
10952
10953 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10954
10955         * attribs.c (handle_vector_size_attribute): Use host_integerp
10956         and tree_int_cst; remove warnings.
10957         * caller-save.c (insert_restore): Add cast to get rid of warning.
10958         (insert_save): Likewise.
10959         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10960         * regmove.c (find_matches): Add temporary var to kill a warning.
10961
10962 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
10963
10964         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10965         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10966         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10967         (vms-dwarf2eh.o): Add Makefile rule.
10968         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10969         * config/alpha/vms-dwarf2eh.asm: New file.
10970
10971         * gcc.c (delete_if_ordinary): Delete all versions.
10972
10973 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10974
10975         * config/mmix/mmix.md: Update FIXME to not mention
10976         define_constants.
10977         (MMIX_rJ_REGNUM): New define_constants constant.
10978         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10979         "*movdicc_real"): Adjust contraints formatting.
10980         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10981         for branch prediction.
10982         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10983         output template.
10984         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10985         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10986         number.  Delete related FIXMEs.
10987         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10988         from number to MMIX_rJ_REGNUM.
10989         (TARGET_MASK_BRANCH_PREDICT): New.
10990         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10991         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
10992         value.  Add -mbranch-predict and -mno-branch-predict.
10993         (TARGET_VERSION): Drop date.
10994         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10995         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10996         for finding out global symbols.
10997         (mmix_asm_output_labelref): Revert condition for global symbol.
10998         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10999         (mmix_print_operand_punct_valid_p): A '+' is valid.
11000
11001 See ChangeLog.6 for earlier changes.