OSDN Git Service

8d9bb2cef5ed61d7b2adade99feead3871765d49
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2
3         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
4         file change and include code to _cpp_pop_buffer.
5         * cpphash.h (struct pending_option): Predeclare.
6         (struct cpp_reader): New member next_include_file.
7         (_cpp_pop_file_buffer): Update.
8         (_cpp_push_next_buffer): Update, rename.
9         * cppinit.c (cpp_destroy): Free include chain and pending here.
10         (cpp_finish_options): Simplify.
11         (_cpp_push_next_buffer): Rename and clean up.
12         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
13         Clarify.
14         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
15
16 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
17
18         * config/rs6000/altivec.h (vec_xor): Add variant for both args
19         being vector signed int.
20         (vec_andc): Same.
21         (vec_xor): Add variant for both args being vector signed char.
22         Remove redundant variant.
23         (vec_andc): Same.
24
25 2002-04-21  David S. Miller  <davem@redhat.com>
26
27         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
28         compare mode in output RTL.
29
30 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
31
32         * config/rs6000/rs6000.c (rs6000_override_options): Correct
33         style and formatting of previous patch.
34
35 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
36
37         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
38         flag_pic for ABI_AIX.
39
40 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
41
42         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
43         * cppfiles.c (read_include_file): Similarly.
44         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
45         uxstrdup ustrchr, ufputs): Similarly.
46         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
47         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
48         cpp_ideq, parse_identifier, parse_number): Similarly.
49         * cpplib.c (struct directive, dequote_string, D, run_directive,
50         cpp_push_buffer): Similarly.
51         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
52         _cpp_create_definition, check_trad_stringification,
53         cpp_macro_definition): Similarly.
54
55 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
56
57         * cppmacro.c (funlike_invocation_p): Don't step back
58         over CPP_EOF.
59
60 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
61
62         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
63         labelno.
64
65 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
66
67         * doc/invoke.texi: Remove Chill references.
68         * doc/gcc.texi: Update last modified date.
69
70 2002-04-20  Kazu Hirata  <kazu@hxi.com>
71
72         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
73         push and pop.  Replace add.l with add.w.
74
75 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
76
77         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
78         multiply instructions for H8/300H case.
79
80 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
81
82         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
83         Bum three instructions from each routine.
84
85 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
86
87         * Makefile.in: Update.
88         * decl.c (push_c_function_context, pop_c_function_context,
89         mark_c_function_context): Rename for consistency.
90         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
91         * c-tree.h (push_c_function_context, pop_c_function_context,
92         mark_c_function_context): Rename for consistency.
93         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
94         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
95         * function.c (init_lang_status, save_lang_status,
96         restore_lang_status, mark_lang_status, free_lang_status):
97         Move to langhooks.h.
98         (push_function_context_to, pop_function_context_from,
99         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
100         Update.
101         * function.h (init_lang_status, save_lang_status,
102         restore_lang_status, mark_lang_status, free_lang_status):
103         Move to langhooks.h.
104         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
105         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
106         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
107         LANG_HOOKS_FUNCTION_INITIALIZER): New.
108         (LANG_HOOKS_INITIALIZER): Update.
109         (lhd_do_nothing_f): New.
110         * langhooks.h (struct lang_hooks_for_functions): New.
111         (struct lang_hooks): New hooks.
112         * langhooks.c (lhd_do_nothing_f): New.
113 objc:
114         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
115         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
116
117 2002-04-19  David S. Miller  <davem@redhat.com>
118
119         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
120         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
121
122 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
123
124         PR optimization/3756
125         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
126         x = ((int) y < 0) ? cst1 : cst2.
127
128 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
129
130         PR c/6358
131         * function.c: Reapply patch for c/6358.
132         (expand_function_end): Copy decl_rtl's mode, not
133         current_function_return_rtx mode.
134
135 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
136
137         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
138         targets.
139
140 2002-04-19  Tom Tromey  <tromey@redhat.com>
141
142         * doc/install.texi (Specific): Update status of Solaris 2.8.
143         For PR libgcj/6158.
144
145 2002-04-19  Andreas Schwab  <schwab@suse.de>
146
147         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
148         (PUT_REAL): Restore old definition.
149
150 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
151             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
152
153         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
154         binutils 2.11.2 and higher generate smaller binaries than Sun's
155         native tools.
156
157 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
158
159         PR c++/6352
160         * toplev.c (rest_of_compilation): Do not defer functions for which
161         TREE_SYMBOL_REFERENCED has already been set.
162
163 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
164
165         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
166         alternative.
167
168 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
169
170         * builtins.c: Include langhooks.h.
171         (lang_type_promotes_to): Remove.
172         (expand_builtin_va_arg): Use new hook.
173         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
174         (simple_type_promotes_to): Move to c-typeck.c.
175         * c-common.h (simple_type_promotes_to): Remove.
176         * c-decl.c (duplicate_decls, grokdeclarator): Update.
177         * c-format.c: Include langhooks.h.
178         (check_format_types): Update.
179         * c-tree.h (c_type_promotes_to): New.
180         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
181         (type_lists_compatible_p): Update.
182         * langhooks-def.h (lhd_type_promotes_to): New.
183         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
184         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
185         * langhooks.c (lhd_type_promotes_to): New.
186         * langhooks.h (struct lang_hooks_for_types): New hook.
187         * tree.h (lang_type_promotes_to): Remove.
188 objc:
189         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
190
191 2002-04-18  Richard Henderson  <rth@redhat.com>
192
193         * function.c: Revert patch for c/6358.
194
195 2002-04-18  Richard Henderson  <rth@redhat.com>
196
197         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
198         blocks.  Handle multiple references to the TRAP block.  Handle
199         non-adjacent THEN and OTHER blocks.
200
201 2002-04-18  Richard Henderson  <rth@redhat.com>
202
203         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
204         crash with no type for by-mode libcalls.
205
206         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
207
208 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
209
210         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
211         __xtensa_nonlocal_goto): Use a syscall instructions to flush
212         the register windows.
213
214 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
215
216         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
217         appropriate.  Document need for extended precision even when
218         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
219         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
220         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
221         instead of relying on later syntax error when REAL_WIDTH > 5.
222         * real.c: Define NE based only on whether or not we have a
223         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
224         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
225         define GET_REAL and PUT_REAL as simple memcpy operations; no
226         need to byteswap or round.
227         Use #error instead of #ifdef-ing out the entire file, for
228         prompt error detection.
229
230         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
231
232 2002-04-18  David S. Miller  <davem@redhat.com>
233
234         * config/sparc/sparc.h (BRANCH_COST): Define.
235
236         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
237         does it.
238
239 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
240
241         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
242         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
243         propagate_block calls after relaxation loop using new variable
244         stabilized_prop_flags.
245
246 2002-04-18  Richard Henderson  <rth@redhat.com>
247
248         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
249         (ia64_va_arg): Expect variable sized types by reference.
250         * config/ia64/ia64-protos.h: Update.
251         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
252         ia64_function_arg_pass_by_reference.
253
254 2002-04-18  Richard Henderson  <rth@redhat.com>
255
256         * ifcvt.c: Include except.h.
257         (block_has_only_trap): Break out from find_cond_trap.
258         (find_cond_trap): Use it.  Always delete the trap block.
259         (merge_if_block): Allow then block null.  Be less simplistic about
260         what insns can end a block.
261         * Makefile.in (ifcvt.o): Depend on except.h.
262
263         * config/ia64/ia64.md (trap, conditional_trap): New.
264
265 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
266
267         PR c/6358
268         * function.c (assign_parms): Assign hard current_function_return_rtx
269         register here...
270         (expand_function_end): ...not here.
271
272 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
273
274         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
275         * c-tree.h (c_incomplete_type_error): New.
276         * c-typeck.c (require_complete_type, build_component_ref): Update.
277         (incomplete_type_error): Rename.
278         * langhooks-def.h (lhd_incomplete_type_error): New.
279         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
280         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
281         * langhooks.c (lhd_incomplete_type_error): New.
282         * langhooks.h (struct lang_hooks_for_types): New hook.
283         * tree.c (size_in_bytes): Use new hook.
284         * tree.h (incomplete_type_error): Remove.
285 objc:
286         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
287
288 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
289
290         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
291         TARGET_FLOAT_FORMAT blocks.
292
293 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
294
295         * doc/install.texi (Downloading the source): Do not mention Chill
296         any longer, but mention Ada.
297         (Configuration): Do not mention Chill any longer.
298
299 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
300
301         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
302
303 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
304
305         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
306         in last patch.
307
308 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
309
310         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
311         instead of unsigned_type.
312
313 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
314
315         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
316         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
317         later.
318
319 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
320
321         * attribs.c (vector_type_node_list): New static variable.
322         (handle_vector_size_attribute): Use it to avoid generating a
323         new type node each time we are called.
324
325         * combine.c (subst): Avoid trying to make a vector mode subreg of
326         an integer constant.
327         (gen_lowpart_for_combine): Likewise.
328
329 2002-04-18  Roger Sayle  <roger@eyesopen.com>
330             Jakub Jelinek  <jakub@redhat.com>
331
332         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
333         for integer constant c (if x has unsigned type or sign bit is not
334         set in c).  This folds the zero/sign extension into the bit-wise and
335         operation.
336
337 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
338
339         PR middle-end/6205
340         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
341         otherwise xorps.
342
343 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
344
345         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
346
347 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
348
349         * gcc.c (read_specs): Detect and fail if an attempt is made to
350         rename a spec string to an already existing string.
351
352 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
353
354         * config/s390/s390.c (legitimize_pic_address): Do not generate
355         illegal address constant without CONST.
356
357 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
358
359         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
360         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
361
362 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
363
364         PR optimization/6305
365         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
366         to make sure previous reloads are taken into account.  Generate
367         better code if one operand is an in-range immediate constant.
368
369 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
370
371         * doc/install.texi (Building): libgcj requires GNU make.
372
373 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
374
375         PR bootstrap/6315
376         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
377         even if hard quad and register is not floating.
378         (movtf reg<-mem split): Disallow splitting if hard quad and
379         register is floating.
380         (movtf mem<-reg split): Likewise.
381         * config/sparc/sparc.c (fp_register_operand): New predicate.
382         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
383
384 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
385
386         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
387         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
388         (unprotoize.o): Ditto.  Build from protoize.c.  Define
389         UNPROTOIZE on command line.
390         * protoize.c: Include cppdefault.h.  Delete include_defaults.
391         (in_system_include_dir): Use cpp_include_defaults (defined in
392         cppdefault.o).
393         * unprotoize.c: Delete file.
394
395 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
396
397         * config/rs6000/altivec.h (vec_ld): Add array variants.
398         (vec_lde): Same.
399         (vec_ldl): Same.
400
401 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
402             Aldy Hernandez <aldyh@redhat.com>
403
404         * config/rs6000/altivec.h: Define __ALTIVEC__.
405         (bool): New.
406         (__pixel): New.
407         (pixel): New.
408         (vec_cfux): New.
409         (vec_vmaddfp): New.
410         (vec_vsldoi): New.
411         Add parentheses to all macro arguments.
412
413 2002-04-16  Richard Henderson  <rth@redhat.com>
414
415         PR c++/6320
416         * except.c (remove_eh_handler): Insert inner regions at beginning
417         of sibling chain.  Refactor expressions.
418
419 2002-04-16  Richard Henderson  <rth@redhat.com>
420
421         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
422         * config/sparc/sol2-gas-bi.h: New file.
423         * config.gcc (sparc*-solaris): Add it as needed.
424         * configure.in (AS_SPARC64_FLAG): Remove check.
425         * config.in, configure: Regenerate.
426
427         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
428
429 2002-04-16  Richard Henderson  <rth@redhat.com>
430
431         * config/mips/mips.c (override_options): Don't override N32 for
432         a 64-bit ISA.
433
434         PR 6202
435         * config/mips/mips.md (can_delay): Split out of existing define_delays.
436         (HILO_delay): Set can_delay false.
437
438 2002-04-16  Dale Johannesen <dalej@apple.com>
439
440         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
441         instruction addresses.
442         (rs6000_output_function_epilogue): Likewise.
443
444 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
445
446         * c-parse.in (poplevel, compstmt_start,
447         compstmt_primary_start): Add ending ';', in accordance
448         with POSIX.
449
450 2002-04-16  Richard Henderson  <rth@redhat.com>
451
452         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
453         Adjust tm_file order to get TARGET_DEFAULT set properly.
454         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
455         * doc/install.texi (sparc-solaris): Update.
456
457 2002-04-16  Dale Johannesen <dalej@apple.com>
458
459         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
460         comparison operands do not match each other or if modes of
461         conditions do not match result.
462
463 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
464
465         PR target/6305
466         * config/s390/s390.md (mulsidi3): Set both subregs of the
467         multiword register.
468
469 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
470
471         * config/rs6000/altivec.h (vec_addc): Type check.
472
473 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
474
475         PR middle-end/6279
476         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
477
478         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
479
480 2002-04-15  Richard Henderson  <rth@redhat.com>
481
482         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
483         call_really_used_regs too.
484
485 2002-04-15  Richard Henderson  <rth@redhat.com>
486
487         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
488
489 2002-04-15  David S. Miller  <davem@redhat.com>
490
491         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
492         as being CLOBBERed.
493
494 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
495
496         PR c/6290
497         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
498         CONST_VECTOR is { 0, ... 0 }.
499
500 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
501
502         * doc/install.texi (Installing GCC: Configuration): Clarify
503         the only supported ways to configure gcc.
504
505 2002-04-15  Roland McGrath  <roland@frob.com>
506
507         * config.gcc (alpha*-*-gnu*): New target configuration.
508         * config/alpha/gnu.h: New file for it.
509         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
510
511 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
512
513         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
514         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
515         * tree.h (expand_start_stmt_expr): Update prototype.
516         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
517         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
518         on the STMT_EXPR created for the inline function.
519
520 2002-04-15  Richard Henderson  <rth@redhat.com>
521
522         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
523         config/i386/linux-aout.h, config/i386/linux-oldld.h,
524         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
525         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
526         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
527         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
528         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
529         Define __gnu_linux__, not gnu_linux.
530         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
531
532 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
533
534         Remove Chill front end.
535         * gcc.c (default_compilers): Remove Chill entries.
536         * ch: Remove directory.
537         * doc/frontends.texi: Remove information about Chill.
538         * doc/sourcebuild.texi: Likewise.
539         * doc/standards.texi: Likewise.
540
541 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
542
543         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
544         (LONGLONG_STANDALONE): Define.
545
546 2002-04-15  David S. Miller  <davem@redhat.com>
547
548         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
549         Call emit_library_call with LCT_NORMAL.
550         (sparc_initialize_trampoline): Use LCT_foo instead of
551         magic constant in emit_library_call invocations.
552         (sparc64_initialize_trampoline): Likewise.
553         (sparc_profile_hook): Likewise.
554         * config/sparc/sparc.md: Likewise.
555
556         * config/sparc/sparc.c (sparc_extra_constraint_check):
557         Fix type of argument 'c'.
558         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
559         Likewise.
560
561 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
562
563         * diagnostic.h (output_buffer_state): Redefine.
564         (output_format_decoder): New macro.
565         (output_prefixing_rule): Likewise.
566         (output_line_cutoff): Likewise.
567         (diagnostic_format_decoder): Adjust.
568         (diagnostic_prefixing_rule): Likewise.
569         (diagnostic_line_cutoff): Likewise.
570         (diagnostic_state): Likewise.
571         (diagnostic_kind_count): Likewise.
572         (diagnostic_buffer): Now a macro.
573
574         * diagnostic.c (diagnostic_buffer): Remove definition.
575         (output_is_line_wrapping): Adjust.
576         (set_real_maximum_length): Likewise.
577         (output_set_maximum_length): Likewise.
578         (init_output_buffer): Likewise.
579         (lhd_print_error_function): Likewise.
580         (output_do_verbatim): Likewise.
581
582 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
583
584         * cpperror.c (print_location): Don't print include chain
585         if line == 0.
586         (cpp_begin_message): Update to use DL_ macros.
587         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
588         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
589         cpp_notice, cpp_notice_from_errno): Remove.
590         (cpp_error, cpp_error_with_line): Update to take a diagnostic
591         level.
592         (cpp_errno): New.
593         * cppexp.c (CPP_ICE): Remove.
594         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
595         lex, integer_overflow, _cpp_parse_expr): Update.
596         * cppfiles.c (read_include_file, find_include_file,
597         handle_missing_header, _cpp_read_file, remap_filename): Update.
598         * cpphash.h (enum error_type): Remove.
599         (_cpp_begin_message): Update.
600         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
601         cpp_handle_option, cpp_post_options): Update.
602         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
603         skip_whitespace, parse_identifier, parse_slow, parse_string,
604         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
605         cpp_interpret_charconst): Update.
606         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
607         lex_macro_node, do_undef, glue_header_name, parse_include,
608         do_include_common, read_flag, do_line, do_linemarker, do_ident,
609         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
610         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
611         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
612         _cpp_pop_buffer, do_diagnostic): Update.
613         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
614         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
615         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
616         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
617         cpp_notice, cpp_notice_from_errno): Remove.
618         (cpp_error, cpp_error_with_line): Update to take a diagnostic
619         level.
620         (cpp_errno): New.
621         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
622         collect_args, enter_macro_context, save_parameter, parse_params,
623         _cpp_create_definition, check_trad_stringification,
624         cpp_macro_definition): Update.
625         * cppmain.c (cpp_preprocess_file): Update.
626         * fix-header.c (read_scan_file): Update.
627
628 2002-04-14  Andreas Schwab  <schwab@suse.de>
629
630         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
631
632 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
633
634         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
635
636 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
637
638         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
639         not gnu_hurd.
640
641 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
642
643         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
644
645 2002-04-13      Joel Sherrill <joel@OARcorp.com>
646
647         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
648         sparc-elf and sparc-rtems targets.
649
650 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
651
652         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
653         defined, and __gnu_hurd__ wherever __GNU__ is defined.
654         * arm/linux-elf.h: Likewise.
655         * cris/aout.h: Likewise.
656         * cris/linux.h: Likewise.
657         * i370/linux.h: Likewise.
658         * i386/gnu.h: Likewise.
659         * i386/linux-aout.h: Likewise.
660         * i386/linux-oldld.h: Likewise.
661         * i386/linux.h: Likewise.
662         * i386/linux64.h: Likewise.
663         * ia64/linux.h: Likewise.
664         * m68k/linux-aout.h: Likewise.
665         * m68k/linux.h: Likewise.
666         * mips/linux.h: Likewise.
667         * pa/pa-linux.h: Likewise.
668         * pj/linux.h: Likewise.
669         * rs6000/sysv4.h: Likewise.
670         * s390/linux.h: Likewise.
671         * sh/linux.h: Likewise.
672         * sparc/linux-aout.h: Likewise.
673         * sparc/linux.h: Likewise.
674         * sparc/linux64.h: Likewise.
675         * xtensa/linux.h: Likewise.
676
677 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
678
679         * stmt.c (check_unique_operand_names): Expect operand names to
680         be strings rather than identifiers.  Use simple_cst_equal to
681         compare them.
682         (resolve_operand_name_1): Make same identifier to string change here.
683         * c-parse.in (asm_operand): Convert a named operand into a string.
684         * cp/parse.y (asm_operand): Likewise.
685
686 2002-04-13  Andreas Schwab  <schwab@suse.de>
687
688         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
689
690 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
691
692         Revert these changes:
693
694         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
695
696         PR c++/5571
697         * stor-layout.c (layout_decl): Reset the RTL for the decl.
698
699 2002-04-12  Richard Henderson  <rth@redhat.com>
700
701         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
702         (sparc*-*-solaris): Clean up header files.
703         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
704         and plan on generating 64-bit code.
705         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
706         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
707         * config/sparc/sol2-sld-64.h: Rename ...
708         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
709         for AS_SPARC64_FLAG not defined.
710         * config/sparc/sol2-gld-bi.h: New.
711         * config/sparc/sol2-sld.h: Remove.
712         * config/sparc/sol26-sld.h: New.
713         * config/sparc/sol2.h: Tidy comments.
714         * doc/install.texi: Document sparc-solaris configury changes.
715
716 2002-04-12  Richard Henderson  <rth@redhat.com>
717
718         * recog.c (offsettable_address_p): Match the logic in adjust_address.
719
720         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
721         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
722
723 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
724
725         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
726
727 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
728
729         * pa.c (pa_can_combine_p): Call extract_insn before calling
730         constrain_operands.
731
732 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
733
734         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
735         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
736         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
737         (CPP_PREDEFINES): Handle __declspec.
738         * config/i386/t-interix (USER_H): Remove.
739
740 2002-04-12  DJ Delorie  <dj@redhat.com>
741
742         * integrate.c (compare_blocks): Make comparisons safe for when
743         sizeof(int) < sizeof(char *).
744         (find_block): Likewise.
745
746 2002-04-12  Jan Hubicka  <jh@suse.cz>
747             David Edelsohn  <edelsohn@gnu.org>
748
749         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
750         registers.
751         (symbol_ref_operand): New.
752         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
753         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
754
755 2002-04-12  Andreas Schwab  <schwab@suse.de>
756
757         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
758         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
759         overrides the definition in config/svr4.h.
760
761 2002-04-12      Eric Norum <eric.norum@usask.ca>
762
763         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
764         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
765         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
766         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
767         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
768         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
769         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
770         definitions to config/rtems.h and make the targets more similar.
771
772 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
773
774         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
775         POINTERS_EXTEND_UNSIGNED.
776         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
777         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
778
779         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
780         not specified.
781
782 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
783
784         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
785         depends on TARGET_SHMEDIA, not TARGET_SH5.
786
787 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
788
789         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
790         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
791
792 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
793
794         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
795         no r0 clobber.
796
797 2002-04-12  Andreas Schwab  <schwab@suse.de>
798
799         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
800
801 2002-04-12  Richard Henderson  <rth@redhat.com>
802
803         PR bootstrap/4191
804         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
805
806         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
807         modes spanning multiple hard regs.
808
809         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
810
811 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
812
813         * pa.c (pa_output_function_prologue): Don't accumulate the total
814         number of code bytes when using TARGET_64BIT, or gas, SOM and not
815         the portable runtime.
816         (output_deferred_plabels): Handle 64bit plabels.
817         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
818         generating pic code using the GAS assembler for object formats that
819         are not SOM (ie., ELF32 and ELF64).
820         (output_millicode_call): Check attribute type if attribute length is 28.
821         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
822         dbr_sequence_length once.
823         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
824         dbr_sequence_length once.
825         * pa.h (TARGET_SOM): Define if not defined.
826         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
827         with GAS and not SOM.
828         (jump, call_internal_reg, call_value_internal_reg): Likewise.
829         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
830
831 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
832
833         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
834         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
835         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
836         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
837         elfos.h and dbxelf.h values are fine now.
838         * config/i386/freebsd.h, config/alpha/freebsd.h
839         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
840
841 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
842
843         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
844         or set Acpu or Amachine.  Reformat.
845         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
846         define.
847         (LINK_SPEC): Do not need to undef.
848         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
849         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
850         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
851         define.
852         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
853         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
854         (LINK_SPEC): Do not need to undef.
855         (DONT_USE_BUILTIN_SETJMP): Do not define.
856         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
857         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
858         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
859         Remove trailing spaces.
860         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
861         __ELF__, or set Acpu or Amachine.  Reformat.
862         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
863         define.
864
865 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
866
867         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
868         all other *-*-freebsd* targets.
869
870 2002-04-11  Richard Henderson  <rth@redhat.com>
871
872         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
873
874 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
875
876         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
877         Include {cpu}/{cpu}.h thru tm_file.
878         (alpha*-*-linux*ecoff): Remove target.
879         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
880         (LINK_SPEC): Remove, is not OS independent.
881         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
882         (LINK_SPEC): Do not need to #undef any longer.
883         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
884         any longer.
885         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
886         __ELF__.
887         (LINK_SPEC): Moved here from alpha/elf.h.
888         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
889         SUB_CPP_PREDEFINES.
890         * config/alpha/linux-ecoff.h: Remove.
891         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
892         (CPP_SPEC): Define _POSIX_SOURCE as needed.
893         (CPP_SUBTARGET_SPEC): Do not define.
894         (LINK_SPEC): Do not need to #undef any longer.
895         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
896         * config/alpha/vms.h: Likewise.
897
898 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
899
900         * doc/extend.texi: Remove old claim that typedefs cannot have
901         an alignment attribute.
902
903 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
904
905         PR optimization/6177
906         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
907         bitpos is 0 and bitsize CONCAT size.
908
909 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
910
911         PR c/6223
912         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
913
914 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
915
916         * config/alpha/freebsd.h: Minor reformatting.
917         (CPP_SPEC): Define ELF and add cpp_subtarget.
918         (ASM_SPEC): No longer needed.
919
920 2002-04-11  Richard Henderson  <rth@redhat.com>
921
922         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
923         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
924         (dimode mem/zero splitter): New.
925
926 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
927
928         * config/cris/cris.c (cris_override_options): Tweak error message
929         for PIC not implemented.
930
931         * config/cris/cris.h: Tweak comments related to parameter-passing.
932
933         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
934
935 2002-04-10  Richard Henderson  <rth@redhat.com>
936
937         * except.c (add_ehl_entry): Allow duplicates after landing pad
938         creation.
939
940 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
941
942         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
943
944 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
945
946         * c-decl.c (c_init_decl_processing): Move generation of
947         decls for g77_integer_type_node and friends from here ...
948         * c-common.c (c_common_nodes_and_builtins): ... to here.
949
950 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
951
952         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
953         is only used as frame pointer when frame_pointer_needed is true.
954
955 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
956
957         PR target/817
958         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
959         for the fact that the pool entry uses two words.
960         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
961         1k bytes.
962         (movdf_soft_insn): Similarly.
963         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
964         for the fact that the pool entry uses three words.
965
966 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
967
968         * config/mips/mips.c (mips_va_arg): When using the struct version
969         of the EABI va_list, allow arguments in the register save area to
970         take up less room than a stack argument.
971
972 2002-04-10  Richard Henderson  <rth@redhat.com>
973
974         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
975         if EXPAND_INITIALIZER.
976
977 2002-04-09  Richard Henderson  <rth@redhat.com>
978
979         * config/alpha/alpha.md (movdi_er_maybe_g): New.
980         * config/alpha/alpha.c (alpha_expand_mov): Use it.
981
982 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
983
984         PR optimization/6233
985         * rtlanal.c (pure_call_p): New function.
986         * rtl.h (pure_call_p): Declare.
987         * loop.c (prescan_loop): Use it to set has_nonconst_call.
988         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
989
990 2002-04-09  Eric Christopher  <echristo@redhat.com>
991
992         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
993         information to .comm directive.
994
995 2002-04-09  Richard Henderson  <rth@redhat.com>
996
997         PR c/5078
998         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
999
1000 2002-04-09  Richard Henderson  <rth@redhat.com>
1001
1002         * basic-block.h (flow_delete_block_noexpunge): Declare.
1003         (expunge_block_nocompact): Declare.
1004         * cfg.c (expunge_block_nocompact): Split out from ...
1005         (expunge_block): ... here.
1006         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1007         (flow_delete_block_noexpunge): Split out from ...
1008         (flow_delete_block): ... here.
1009         * cfgcleanup.c (delete_unreachable_blocks): Compact while
1010         removing dead blocks.
1011         * except.c (exception_handler_labels): Remove.
1012         (exception_handler_label_map): New.
1013         (struct eh_region): Add aka member.
1014         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1015         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1016         (for_each_eh_label, for_each_eh_label_1): New.
1017         (init_eh): Register exception_handler_label_map.
1018         (free_eh_status): Use free_region.
1019         (find_exception_handler_labels): Use the map, not the list.
1020         (remove_exception_handler_label): Likewise.
1021         (maybe_remove_eh_handler): Likewise.
1022         (remove_eh_handler): Use the region aka bitmap.
1023         * except.h (exception_handler_labels): Remove.
1024         (for_each_eh_label): Declare.
1025         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1026         * loop.c (invalidate_loops_containing_label): New.
1027         (find_and_verify_loops): Use it.  Use for_each_eh_label.
1028         * sched-rgn.c (is_cfg_nonregular): Use
1029         current_function_has_exception_handlers.
1030
1031 2002-04-09  Richard Henderson  <rth@redhat.com>
1032
1033         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1034         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1035         Do not return changed status.
1036         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1037         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1038         New functions that do return changed status.
1039         * sbitmap.h: Update decls.
1040         * gcse.c, lcm.c: Use _cg functions as needed.
1041
1042 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1043
1044         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1045         (sh64-*-elf*, sh-*-rtemself*): Likewise.
1046         * config/sh/embed_bb.c: New file.
1047         * config/sh/embed-elf.h: New file.
1048         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1049         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
1050         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1051         __PTRDIFF_TYPE__ .
1052         (SUBTARGET_CPP_PTR_SPEC): Don't define.
1053         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1054         Add subtarget_asm_endian_spec.
1055         (ASM_SPEC): Use subtarget_asm_endian_spec.
1056         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1057         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1058         (WCHAR_UNSIGNED): Define.
1059         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1060         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1061         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1062         Fix value.
1063         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1064         (sh_adjust_cost): Likewise.
1065         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1066         __PTRDIFF_TYPE__ .
1067         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1068         (WCHAR_TYPE_SIZE): Likewise.
1069         (ASM_SPEC): Use subtarget_asm_endian_spec.
1070         (SH_ELF_WCHAR_TYPE): #undef/ #define.
1071         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1072         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1073         (MAX_WCHAR_TYPE_SIZE): Don't #define .
1074         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1075         (USER_LABEL_PREFIX): Don't #undef /#define .
1076         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1077         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1078         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1079         (ASM_SPEC): Likewise.
1080         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1081         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1082         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1083         (LIB2FUNCS_EXTRA): Define.
1084         * t-sh64 (LIB2FUNCS_EXTRA): Define.
1085         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1086         (LIB1ASMFUNCS_CACHE): Define.
1087         (LIB2FUNCS_EXTRA): Redefine empty.
1088
1089 2002-04-08  Richard Henderson  <rth@redhat.com>
1090
1091         * reorg.c (get_branch_condition): Use reversed_comparison_code.
1092
1093 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1094
1095         * config/m68hc11/larith.asm (__map_data_section): Fix condition
1096         and optimize for size.
1097         (__do_global_ctors): Fix pointer comparison.
1098         (__do_global_dtors): Likewise.
1099
1100 2002-04-09  David S. Miller  <davem@redhat.com>
1101
1102         * config/sparc/sparc.c (sparc_extra_constraint_check): New
1103         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
1104         allow reloading pseudos.
1105         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1106         * config/sparc/sparc-protos.h: Declare it.
1107
1108         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1109         unsigned comparison warning.
1110         (output_restore_regs): Mark leaf_function as unused.
1111
1112 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1113
1114         * expr.c (is_aligning_offset): New function.
1115         (expand_expr, case COMPONENT_EXPR): Call it.
1116
1117 2002-04-08  David S. Miller  <davem@redhat.com>
1118
1119         PR target/6082
1120         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1121
1122         Make init_priority work on Sparc when using GNU ld.
1123         * config/sparc/linux.h, config/sparc/linux64.h,
1124         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1125         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1126         * config/sparc/sol2-gld.h: New file to do the same.
1127         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1128         sparc/sol2-gld.h to tm_file.
1129
1130         PR optimization/4328
1131         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1132         * doc/md.texi: Document it.
1133         * config/sparc/sparc.md (movdi_insn_sp64_novis,
1134         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1135         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1136         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1137         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1138
1139 2002-04-08  Andreas Jaeger  <aj@suse.de>
1140
1141         * stmt.c (expand_asm_operands): Revert last patch from Richard
1142         Henderson.
1143
1144 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1145
1146         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1147         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
1148
1149 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1150
1151         * doc/contrib.texi (Contributors): Add David O'Brien.
1152
1153 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1154
1155         * configure.in (auto-build.h): Use target_alias and build_alias
1156         when running configure.
1157         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1158         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1159         * configure: Regenerate.
1160
1161 2002-04-07  David S. Miller  <davem@redhat.com>
1162
1163         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1164
1165 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1166
1167         PR 5933
1168         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1169         generating 32-bit pic code.
1170
1171 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1172
1173         * cppinit.c (cpp_create_reader): Initialize
1174         discard_comments_in_macro_exp.
1175         (COMMAND_LINE_OPTIONS): Add "-CC" option.
1176         (cpp_handle_option): Handle "-CC" option.
1177         * cpplex.c (save_comment): If saving a C++ comment in
1178         a directive, convert it to a C comment.
1179         (_cpp_lex_direct): Pass second comment start character to
1180         save_comment to indicate comment type.
1181         * cpplib.c (_cpp_handle_directive): If processing
1182         a "#define" directive and discard_comments_in_macro_exp
1183         is false,  re-enable saving of comments.
1184         (lex_macro_node): If discard_comments_in_macro_exp is false,
1185         discard any comments before the macro identifier.
1186         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1187         member.
1188         * cppmacro.c (cpp_get_token): If expanding a macro while
1189         processing a directive, discard any comments we might encounter.
1190         (parse_params): If discard_comments_in_macro_exp is false,
1191         ignore comments in the macro parameter list.
1192         * gcc.c (cpp_unique_options): Add "-CC" option.
1193         (option_map): Map "--comments-in-macros" to "-CC".
1194         * doc/cppopts.texi: Document "-CC" option.
1195         * f/lang-specs.h: Add "-CC" option.
1196         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1197         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1198         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1199         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1200         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1201         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1202
1203 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1204
1205         PR middle-end/6180
1206         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1207
1208 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1209
1210         PR c++/5571
1211         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1212
1213         PR opt/5120
1214         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1215         RTX_UNCHANGING_P for the functions arguments when a tail call
1216         is made.
1217
1218 2002-04-06  Jason Merrill  <jason@redhat.com>
1219
1220         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1221         (parse_options_and_default_flags): Set them appropriately.
1222         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1223
1224 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1225
1226         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1227         here.
1228
1229         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1230         semicolon.
1231
1232         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1233         types come in by-reference.  Fix typo in comment.
1234
1235 2002-04-05  David S. Miller  <davem@redhat.com>
1236
1237         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1238         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1239         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1240         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1241
1242 2002-04-05  David S. Miller  <davem@redhat.com>
1243
1244         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1245         are not going to emit return instructions, emit at least a nop
1246         for the sake of sane backtraces.
1247
1248 2002-04-05  Richard Henderson  <rth@redhat.com>
1249
1250         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1251
1252 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1253
1254         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1255
1256 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1257
1258         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1259         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1260         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1261
1262 2002-04-05  Andreas Schwab  <schwab@suse.de>
1263
1264         * c-convert.c: Include c-common.h.
1265         * Makefile.in (c-convert.o): Updated.
1266
1267 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1268
1269         * mklibgcc.in: Use separate libgcc.map for each multilib.
1270         * Makefile.in (distclean): Don't remove libgcc.map here.
1271
1272 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1273
1274         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1275         genmultilib invocation.
1276
1277 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1278
1279         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1280         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1281         to num_gprs for symmetry.
1282         * config/mips/mips.c: Adjust accordingly.
1283
1284 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1285
1286         * c-common.c (truthvalue_conversion): Rename, update.
1287         * c-common.h (c_common_truthvalue_conversion): New.
1288         * c-convert.c (convert): Update.
1289         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1290         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1291         * c-typeck.c (build_binary_op, build_unary_op,
1292         build_conditional_expr): Update.
1293         * fold-const.c (constant_boolean_node, fold): Use langhook.
1294         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1295         * langhooks.h (struct lang_hooks): New hook.
1296         * stmt.c (expand_decl_cleanup): Use langhook.
1297         * tree.h (truthvalue_conversion): Remove.
1298 objc:
1299         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1300
1301 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1302
1303         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1304         Add rules to make null object file.
1305
1306 2002-04-04  Jim Blandy  <jimb@redhat.com>
1307
1308         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1309         macro formal parameter names.
1310
1311 2002-04-04  David S. Miller  <davem@redhat.com>
1312
1313         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1314
1315 2002-04-04  Richard Henderson  <rth@redhat.com>
1316
1317         PR middle-end/5099
1318         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1319         Support copies into and out of memory.  Don't accept allows_reg
1320         and allows_mem as gospel.
1321
1322 2002-04-04  Richard Henderson  <rth@redhat.com>
1323
1324         PR opt/6165
1325         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1326         (write_dependence_p): Likewise.
1327
1328 2002-04-04  Richard Henderson  <rth@redhat.com>
1329
1330         * predict.c (estimate_bb_frequencies): Do frequency calculation
1331         with a volatile temporary.
1332
1333 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1334
1335         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1336
1337 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1338
1339         PR c++/6119
1340         * final.c (final_start_function): Don't bump profile_label_no here...
1341         (final_end_function): ...but here.
1342
1343 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1344
1345         * config/sparc/sparc.md (pic): New attribute.
1346         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1347         into stack slots.
1348         (split after do_builtin_setjmp_setup): New.
1349
1350 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1351
1352         PR fortran/6106
1353         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1354         change.
1355
1356 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1357
1358         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1359         UNITS_PER_WORD for zero sized aggregates.
1360
1361 2002-04-03  David S. Miller  <davem@redhat.com>
1362
1363         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1364         one-character spec for this, just use %(link_gcc_c_sequence).
1365
1366 2002-04-03  David S. Miller  <davem@redhat.com>
1367
1368         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1369         handling.
1370
1371 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1372
1373         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1374         (DWARF_FRAME_RETURN_COLUMN): Move.
1375         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1376         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1377         * pa.c (except.h, predict.h): Include.
1378         (FRP): Delete.
1379         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1380         (output_ascii): Add cast.
1381         (store_reg_modify): Revise to add frame notes.
1382         (set_reg_plus_d): Likewise.
1383         (compute_frame_size): Include space for eh data registers in frame if
1384         the current function calls eh_return.
1385         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1386         function calls eh_return.  Save eh data registers if the current
1387         function calls eh_return.  Fix code to add frame notes.  Emit
1388         blockage to prevent insns with frame notes being scheduled in the
1389         delay slot of calls.
1390         (hppa_expand_epilogue): Restore eh data registers and do final stack
1391         adjustment if the current function calls eh_return.  Don't add frame
1392         notes.
1393         (output_call): Revise for change in length of call insn.  Don't do
1394         return pointer adjustment for an unconditional jump in the delay slot
1395         of a call when using frame notes.
1396         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1397         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1398         (ARG_POINTER_CFA_OFFSET): Define.
1399         * pa.md (return_external_pic): New pattern.
1400         (prologue): Correct formatting.  Use return_external_pic if current
1401         function calls eh_return.
1402         (call_internal_symref, call_value_internal_symref,
1403         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1404         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1405         respectively.
1406         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1407
1408         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1409         list of targets to check using "nop" insn.
1410         * configure: Rebuilt.
1411
1412 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1413
1414         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1415
1416 2002-04-03  David S. Miller  <davem@redhat.com>
1417
1418         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1419         library sequence passed to the linker.
1420         (LINK_COMMAND_SPEC): Use it.
1421         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1422         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1423         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1424
1425 2002-04-03  Jason Merrill  <jason@redhat.com>
1426
1427         * except.c (struct eh_status): Remove protect_list.
1428         (begin_protect_partials, end_protect_partials): Remove.
1429         (add_partial_entry): Remove.
1430         * except.h: Remove prototypes.
1431
1432         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1433         expand_decl_cleanup_eh.
1434
1435         PR c++/5636
1436         * tree.h (CLEANUP_EH_ONLY): New macro.
1437         * stmt.c (expand_decl_cleanup_eh): New fn.
1438         (expand_cleanups): Check CLEANUP_EH_ONLY.
1439         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1440         Use expand_decl_cleanup_eh.
1441         (expand_stmt): Adjust.
1442         * c-common.h: Adjust prototype.
1443
1444 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1445
1446         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1447         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1448         (cris_target_asm_function_epilogue): Ditto.
1449         (cris_initial_frame_pointer_offset): Ditto.
1450         (cris_simple_epilogue): Ditto.
1451         (cris_expand_builtin_va_arg): Variable-size types come in
1452         by-reference.
1453
1454 2002-04-03  David S. Miller  <davem@redhat.com>
1455
1456         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1457         little-endian.
1458         (set_fast_math): Correct 'fsr' type.
1459
1460 2002-04-03  Richard Henderson  <rth@redhat.com>
1461
1462         PR opt/3569
1463         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1464         * toplev.c (check_global_declarations): Use it.
1465         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1466         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1467         (LANG_HOOKS_DECLS): Add it.
1468         * langhooks.c (lhd_warn_unused_global_decl): New.
1469         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1470         * c-objc-common.c (c_warn_unused_global_decl): New.
1471         * c-tree.h (c_warn_unused_global_decl): Declare.
1472         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1473
1474 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1475
1476         * langhooks-def.h (lhd_set_decl_assembler_name,
1477         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1478         (LANG_HOOKS_INITIALIZER): Update.
1479         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1480         * langhooks.h (struct lang_hooks): New hook.
1481         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1482         (lang_set_decl_assembler_name): Remove.
1483         (init_obstacks): Don't set hook.
1484         (decl_assembler_name): New function.
1485         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1486         (decl_assembler_name): New.
1487         (lang_set_decl_assembler_name): Remove.
1488
1489 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1490
1491         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1492         works properly with .hidden symbols.
1493         * configure: Rebuilt.
1494         * config.in: Rebuilt.
1495         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1496         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1497         properly with .hidden symbols.
1498
1499 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1500
1501         PR middle-end/6102
1502         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1503         USE argument.
1504
1505 2002-04-03  Richard Henderson  <rth@redhat.com>
1506
1507         PR opt/4120
1508         * sched-rgn.c (sets_likely_spilled): New.
1509         (sets_likely_spilled_1): New.
1510         (add_branch_dependences): Use it.
1511
1512 2002-04-02  Richard Henderson  <rth@redhat.com>
1513
1514         PR opt/4311
1515         * loop.h (LOOP_FIRST_PASS): New.
1516         * loop.c (strength_reduce): Mind it when deciding to unroll.
1517         * toplev.c (rest_of_compilation): Set it.
1518
1519 2002-04-02  David S. Miller  <davem@redhat.com>
1520
1521         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1522         mems_ok_for_ldd_peep when the order of the loads being examined
1523         is reversed.
1524         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1525         existing comment to increase comprehension of this situation.
1526
1527 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1528
1529         * config/sh/sh.md: Don't use union real_extract.
1530
1531 2002-04-02  Richard Henderson  <rth@redhat.com>
1532
1533         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1534
1535 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1536
1537         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1538         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1539         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1540         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1541         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1542         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1543         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1544         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1545         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1546         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1547         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1548         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1549         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1550         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1551         Include as many configury headers via tm_file as possible.  This
1552         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1553         * config/openbsd-oldgas.h: New file.
1554         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1555         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1556         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1557         config/i386/i386-coff.h, config/i386/i386-interix.h,
1558         config/i386/iscdbx.h, config/i386/linux-aout.h,
1559         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1560         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1561         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1562         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1563         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1564         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1565         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1566         config/i386/vxi386.h: Do not directly include configury headers.
1567         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1568         Directly include configury headers that are no longer automatically
1569         included by the above headers.
1570         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1571         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1572         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1573         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1574         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1575         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1576         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1577         (TARGET_VERSION): Define.
1578         * config/i386/beos-elf.h, config/i386/freebsd.h,
1579         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1580         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1581         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1582         config/i386/sco5.h, config/i386/sysv4.h
1583         (TARGET_VERSION): Do not need to protect.
1584         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1585         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1586         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1587         config/i386/i386-interix.h, config/i386/linux-aout.h,
1588         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1589         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1590         (YES_UNDERSCORES): Do not define - not needed.
1591         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1592         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1593         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1594         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1595         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1596         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1597         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1598         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1599
1600 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1601             Richard Henderson  <rth@redhat.com>
1602
1603         PR c/5484
1604         * function.c (assign_temp): Accept either type or decl argument.
1605         Detect variables whose size is too large to fit into an integer.
1606         * stmt.c (expand_decl): Pass the decl, not the type.
1607
1608 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1609
1610         * protoize.c: Match include directory usage with cppdefault.c.
1611
1612 2002-04-03  Jeffrey A Law  (law@redhat.com)
1613             Hans-Peter Nilsson  <hp@bitrange.com>
1614
1615         * combine.c (simplify_comparison): Avoid narrowing a comparison
1616         with a paradoxical subreg when doing so would drop signficant bits.
1617
1618 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1619
1620         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1621         if POINTERS_EXTEND_UNSIGNED is defined.
1622
1623 2002-04-02  Richard Henderson  <rth@redhat.com>
1624
1625         PR opt/3967
1626         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1627         replace regs.
1628
1629 2002-04-02  Richard Henderson  <rth@redhat.com>
1630
1631         * doc/standards.texi: Document required freestanding libc entry points.
1632
1633 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1634
1635         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1636         associated splitter.  Remove MQ constraint.
1637         (ctrdi_internal4): Correct CCmode clobber.
1638
1639 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1640
1641         * milli64.S ($$dyncall): New function.
1642         * t-linux (LIB1ASMFUNCS): Revise module list.
1643         (LIB1ASMSRC): Use pa/milli64.S.
1644
1645 2002-04-02  Richard Henderson  <rth@redhat.com>
1646
1647         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1648         rename solaris_sys_varargs_h.
1649
1650 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1651
1652         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1653         the same mode as its component.
1654
1655 2002-04-02  Richard Henderson  <rth@redhat.com>
1656
1657         PR opt/190
1658         * final.c (this_is_asm_operands): Export.
1659         * output.h (this_is_asm_operands): Declare.
1660         * config/i386/i386.c (print_operand): Error odd asm operands.
1661
1662 2002-04-02  Richard Henderson  <rth@redhat.com>
1663
1664         PR opt/420
1665         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1666
1667 2002-04-01  Richard Henderson  <rth@redhat.com>
1668
1669         PR target/1538
1670         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1671         * fixinc/fixincl.x: Rebuild.
1672
1673 2002-04-01  Richard Henderson  <rth@redhat.com>
1674
1675         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1676         (atomic_alloc, atomic_free): New.
1677         (SIZE, MASK_FOR, PTR_IN): New.
1678         (emergency_reg_state, emergency_reg_state_free): New.
1679         (emergency_labeled_state, emergency_labeled_state_free): New.
1680         (reg_state_alloced, labeled_state_alloced): New.
1681         (alloc_reg_state, free_reg_state): New.
1682         (alloc_label_state, free_label_state, free_label_states): New.
1683         (push, pop, dup_state_stack, free_state_stack): Use them.
1684         (desc_label_state): Likewise.
1685         (uw_frame_state_for): Free label states and state stack.
1686         (uw_update_reg_address): Eliminate warnings.
1687
1688 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1689
1690         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1691         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1692
1693 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1694
1695         * c-decl.c (grokdeclarator): Update.
1696         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1697         * c-tree.h (c_mark_addressable): New.
1698         * c-typeck.c (default_function_array_conversion, build_unary_op,
1699         build_array_ref, convert_for_assignment): Update.
1700         (mark_addressable): Rename.
1701         * calls.c (try_to_integrate, expand_call): Use langhook.
1702         * expr.c (expand_expr): Use langhook.
1703         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1704         * langhooks.h (struct lang_hooks): New hook.
1705         * stmt.c (expand_asm_operands): Use langhook.
1706         * tree.h (mark_addressable): Remove.
1707 objc:
1708         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1709
1710 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1711
1712         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1713         in previous change.
1714
1715 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1716
1717         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1718         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1719
1720 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1721
1722         * c-common.c (unsigned_conversion_warning, convert_and_check,
1723         unsigned_type, signed_type, shorten_compare,
1724         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1725         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1726         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1727         New.
1728         * c-decl.c (grokdeclarator): Update.
1729         * c-format.c (check_format_types): Update.
1730         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1731         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1732         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1733         * convert.c (convert_to_integer): Use new hooks.
1734         * expmed.c (make_tree): Use new hooks.
1735         * expr.c (store_expr): Use new hooks.
1736         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1737         all_ones_mask_p, unextend, fold): Use new hooks.
1738         * langhooks.h (struct lang_hooks_for_types): New hooks.
1739         * tree.h (signed_or_unsigned_type, signed_type,
1740         unsigned_type): Remove.
1741 objc:
1742         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1743         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1744
1745 2002-03-31  Richard Henderson  <rth@redhat.com>
1746
1747         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1748         (desc_frgr_mem): Fix reference to f16-f31.
1749
1750 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1751
1752         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1753         RTVEC_ELT): Const-ify.
1754         * varray.h (VARRAY_CHECK): Const-ify.
1755         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1756         ggc_mark_rtvec, ggc_mark): Const-ify.
1757
1758 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1759
1760         * diagnostic.c: Include langhooks-def.h.
1761         * Makefile.in (diagnostic.o): Update.
1762
1763 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1764
1765         * c-common.c (c_unsafe_for_reeval): Rename.
1766         * c-common.h (c_unsafe_for_reeval): Rename.
1767         * c-decl.c (finish_incomplete_decl): Rename.
1768         (c_init_decl_processing): Don't set langhook.
1769         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1770         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1771         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1772         * c-tree.h (finish_incomplete_decl): Rename.
1773         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1774         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1775         (LANG_HOOKS_INITIALIZER): Update.
1776         * langhooks.c (lhd_unsafe_For_reeval): New.
1777         * langhooks.h (struct langhooks): New hooks.
1778         * toplev.c (incomplete_decl_finalize_hook): Remove.
1779         (wrapup_global_declarations): Update.
1780         * tree.c (lang_unsafe_for_reeval): Remove.
1781         (unsafe_for_reeval): Update.
1782         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1783         Remove.
1784 objc:
1785         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1786         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1787
1788 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1789
1790         * diagnostic.c (print_error_function): Remove.
1791         (default_print_error_function): Rename.
1792         (report_error_function): Update.
1793         * diagnostic.h (print_error_function): Remove.
1794         (default_print_error_function): Remove.
1795         * langhooks-def.h (struct diagnostic_context): Predeclare.
1796         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1797         (LANG_HOOKS_INITIALIZER): Update.
1798         * langhooks.h (struct diagnostic context): Predeclare.
1799         (struct lang_hooks): New hook.
1800
1801 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1802
1803         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1804         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1805         !flag_pic.
1806         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1807         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1808         of PIC_OFFSET_TABLE_REGNUM thruout.
1809         * config/rs6000/rs6000.md: Likewise.
1810         * config/rs6000/darwin.h: Likewise.
1811
1812 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1813
1814         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1815         unsigned HOST_WIDE_INT, not unsigned int.
1816
1817 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1818
1819         PR middle-end/6096, middle-end/6098, middle-end/6099
1820         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1821         CODE_LABELs.
1822         (fill_slots_from_thread): Likewise.
1823
1824 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1825
1826         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1827         floating fields in float regs.
1828         (function_arg_record_value_2): Likewise.
1829
1830 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1831
1832         * config/mmix/mmix.md (define_constants): Remove misleading
1833         FIXME.  Add MMIX_fp_rO_OFFSET.
1834         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1835         saved rO as part of the pattern.  Remove FIXME.
1836         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1837         here, at output-time.
1838
1839 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1840
1841         PR middle-end/6100
1842         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1843         REG_BR_PRED.
1844         (output_v9branch): Likewise.
1845
1846 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1847
1848         * gcc.c: Revert previous patch for now.
1849         * config/i386/djgpp.h: Likewise.
1850
1851 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1852
1853         * config/mmix/crti.asm (_init): Register _fini with atexit.
1854         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1855
1856 2002-03-31  Richard Henderson  <rth@redhat.com>
1857
1858         PR target/3997
1859         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1860         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1861
1862 2002-03-31  Richard Henderson  <rth@redhat.com>
1863
1864         * libgcc2.c (__bb_exit_func): Make static.
1865
1866         * config/alpha/alpha.md (trap): New.
1867
1868 2002-03-31  Richard Henderson  <rth@redhat.com>
1869
1870         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1871         promoted argument types; build trap.
1872         (expand_builtin_trap): New.
1873         (expand_builtin): Use it.
1874         * stmt.c (expand_nl_goto_receivers): Likewise.
1875         * expr.h (expand_builtin_trap): Declare.
1876         * libfuncs.h (LTI_abort, abort_libfunc): New.
1877         * optabs.c (init_optabs): Init abort_libfunc.
1878
1879 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1880
1881         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1882         (LINK_COMMAND_SPEC): ... from here.
1883         (init_gcc_specs): Duplicate it here too, omitting
1884         shared_name in the second copy.
1885         (init_spec): Test for duplicate
1886         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1887
1888 2002-03-30  David S. Miller  <davem@redhat.com>
1889
1890         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1891         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1892
1893 2002-03-30  Roger Sayle <roger@eyesopen.com>
1894             Richard Henderson  <rth@redhat.com>
1895
1896         * regmove.c (combine_stack_adjustments_for_block): Avoid
1897         emitting a stack adjustment of zero bytes.  Let delete_insn
1898         update bb->head.
1899
1900 2002-03-30  Richard Henderson  <rth@redhat.com>
1901
1902         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1903         (sparc_emitting_epilogue): New.
1904         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1905         * config/sparc/sparc-protos.h: Update.
1906         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1907         (TARGET_SWITCHES): Update.
1908         * config/sparc/sparc.md (return): Remove.
1909         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1910         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1911         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1912         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1913         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1914         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1915         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1916         Remove MASK_EPILOGUE.
1917         * doc/invoke.texi: Update.
1918
1919 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1920
1921         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1922         CPP will start the file for us.
1923
1924 2002-03-30  Richard Henderson  <rth@redhat.com>
1925
1926         PR target/5446
1927         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1928         prologue_allocate_stack.
1929         (ia64_single_set): Use insn codes for recognition of special
1930         cases, not rtl matching.
1931         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1932
1933 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1934
1935         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1936
1937 2002-03-30  Richard Henderson  <rth@redhat.com>
1938
1939         PR target/6032
1940         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1941         or -fomit-frame-pointer with profiling.
1942         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1943         (FUNCTION_PROFILER): Do nothing.
1944         (PROFILE_HOOK): New.
1945         * config/sparc/sparc.c (sparc_override_options): Don't check
1946         code models for profiling.
1947         (sparc_function_profiler): Remove.
1948         (sparc_profile_hook): New.
1949         * config/sparc/sparc-protos.h: Update.
1950
1951 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1952
1953         PR optimization/6086
1954         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1955         of SUBREG of volatile MEM or because the MEM was mode dependent,
1956         return CLOBBER instead of unmodified SUBREG.
1957
1958 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1959
1960         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1961         when not optimizing.
1962
1963         * toplev.c (rest_of_compilation): Cann mark_constant_function
1964         only when optimizing.
1965
1966         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1967         are NULL.
1968
1969         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1970         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1971         (try_optimize_cfg): clear all AUX fields.
1972
1973         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1974         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1975         (ix86_address_cost): Be prepared for SUBREGed registers.
1976         (legitimate_address_p): Accept SUBREGed registers.
1977
1978 2002-03-29  Richard Henderson  <rth@redhat.com>
1979
1980         PR target/5672
1981         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1982
1983 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1984
1985         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1986         for aggregate and TFmode types.
1987
1988 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1989
1990         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1991
1992 2002-03-29  Richard Henderson  <rth@redhat.com>
1993
1994         PR target/5886
1995         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1996         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1997
1998 2002-03-29  Richard Henderson  <rth@redhat.com>
1999
2000         PR target/6041
2001         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2002         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2003         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2004         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2005         conditional.
2006         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2007
2008 2002-03-29  Dale Johannesen <dalej@apple.com>
2009
2010         * loop.c (combine_movables): Do allow combination of pseudos.
2011
2012 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
2013
2014         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2015         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2016         No functional change except ...
2017         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
2018         * doc/install.texi (*-*-freebsd*): Document port configuration.
2019
2020 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2021
2022         * Makefile.in (convert.o, calls.o, expmed.o): Update.
2023         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2024         Use new hooks.
2025         * builtin-types.def (BT_PTRMODE): Update.
2026         * c-common.c (type_for_size): Rename c_common_type_for_size.
2027         (type_for_mode): Similarly.
2028         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2029         Use new hook.
2030         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2031         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2032         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2033         Redefine.
2034         * c-typeck.c (common_type, comptypes, default_conversion):
2035         Use new hooks.
2036         * calls.c: Include langhooks.h.
2037         (emit_library_call_value_1): Use new hooks.  Avoid redundant
2038         calls.
2039         * convert.c: Include langhooks.h
2040         (convert_to_pointer, convert_to_integer): Use new hooks.
2041         * except.c (init_eh): Similarly.
2042         * expmed.c: Include langhooks.h.
2043         (expand_mult_add): Use new hooks.
2044         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2045         try_casesi): Similarly.
2046         * fold-const.c (optimize_bit_field_compare, make_range,
2047         decode_field_reference, fold_truthop, fold): Similarly.
2048         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2049         put_var_into_stack): Similarly.
2050         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2051         LANG_HOOKS_TYPE_FOR_SIZE): New.
2052         (LANG_HOOKS_TYPES_INITIALIZER): Update.
2053         * langhooks.h (lang_hooks_for_types): New hooks.
2054         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2055         * tree.c (get_unwidened, get_narrower): Similarly.
2056         * tree.h (type_for_mode, type_for_size): Remove.
2057         * varasm.c (force_const_mem): Use new hooks.
2058         * utils2.c (nonbinary_modular_operation): Update.
2059 objc:
2060         * objc-act.c (handle_impent): Update.
2061         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2062         Redefine.
2063
2064 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
2065
2066         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2067         * config/ia64/ia64.c (basereg_operand): New.
2068         * config/ia64/ia64-protos.h (basereg_operand): Declare.
2069         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2070
2071 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2072
2073         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2074         unwind information when frame_pointer_needed.
2075         (mmix_assemble_integer): Tweak wording in comment.
2076
2077 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2078
2079         * Makefile.in (except.o): Update.
2080         * except.c: Include langhooks.h.
2081         (init_eh): Use langhook.
2082         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2083         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2084         (LANG_HOOKS_INITIALIZER): Update.
2085         * langhooks.h (lang_hooks_for_types): New.
2086         (struct lang_hooks): Add it.
2087         * tree.c (make_lang_type_fn, make_lang_type): Remove.
2088         * tree.h (make_lang_type_fn, make_lang_type): Remove.
2089 config:
2090         * alpha/alpha.c: Include langhooks.h.
2091         (alpha_build_va_list): Use langhook.
2092         * d30v/d30v.c: Include langhooks.h.
2093         (d30v_build_va_list): Use langhook.
2094         * i386/i386.c: Include langhooks.h.
2095         (ix86_build_va_list): Use langhook.
2096         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2097         * s390/s390.c: Include langhooks.h.
2098         (s390_build_va_list): Use langhook.
2099         * stormy16/stormy16.c: Include langhooks.h.
2100         (stormy16_build_va_list): Use langhook.
2101
2102 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2103
2104         PR c++/5964
2105         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2106         attributes.
2107         (length): Compute variable length for branches/calls/jumps here.
2108         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2109         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2110         define branch_type attribute.
2111         (divsi3_sp32): Maximum length is 6 not 7.
2112         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2113         call_address_untyped_struct_value_sp32,
2114         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2115         * config/sparc/sparc.c (empty_delay_slot): New function.
2116         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2117         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2118
2119 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2120
2121         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2122         nonzero_bits if not needed.
2123         (nonzero_bits) [XOR]: Likewise.
2124         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2125         reg_last_set_mode and mode are both MODE_INT, but not equal.
2126         (record_value_for_reg): Compute reg_last_set_nonzero_bits
2127         in nonzero_bits_mode for MODE_INT modes.
2128
2129 2002-03-28  Richard Henderson  <rth@redhat.com>
2130
2131         PR target/5715
2132         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2133         to GAS.  Correct drift between alternatives.
2134
2135 2002-03-28  Richard Henderson  <rth@redhat.com>
2136
2137         PR target/6087
2138         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2139
2140 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
2141
2142         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2143         emulation to the linker.
2144
2145 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
2146
2147         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2148         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2149
2150 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
2151
2152         * combine.c (simplify_and_const_int): Make sure to apply mask
2153         when force_to_mode returns a constant integer.  PR3311.
2154
2155 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2156
2157         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2158
2159 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2160
2161         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2162         and Objective-C Dialect Options.
2163
2164 2002-03-28  Richard Henderson  <rth@redhat.com>
2165
2166         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2167         comparison should be done vs !=0 not >0 return code.  Tidy cases.
2168
2169 2002-03-28  Richard Henderson  <rth@redhat.com>
2170
2171         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
2172         on to c_expand_body.
2173         * c-tree.h (finish_function): Update decl.
2174         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2175
2176 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2177
2178         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2179
2180 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
2181
2182         * rtlanal.c: Include flags.h
2183         (may_trap_p): Do not mark FP operations if trapping
2184         if !flag_trapping_math
2185         * Makefile.in (rtlanal.o): Add dependency on flag.h
2186         * ifcvt.c (noce_operand_ok): Avoid the lameness.
2187
2188 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
2189
2190         * mips.md: Use dconst1, not 1.0, as first argument of
2191         REAL_VALUE_LDEXP.  Don't use union real_extract.
2192
2193 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2194
2195         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2196         rather than $target.  Heed program_prefix and
2197         program_transform_name.  Search for gas in cross-compiler case too.
2198         "test -x" rather than "test -f".
2199         (gcc_cv_ld): Likewise.
2200         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2201         (gcc_cv_objdump): Likewise.
2202         * configure: Regenerate.
2203
2204 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2205
2206         * Makefile.in (attribs.o): Update.
2207         * attribs.c: Include langhooks.h.
2208         (decl_attributes): Use langhook.
2209         * c-decl.c (insert_default_attributes): Rename.
2210         * c-tree.h (c_insert_default_attributes): New.
2211         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2212         (LANG_HOOKS_INITIALIZER): Update.
2213         * langhooks.h (struct lang_hooks): New hook.
2214         * tree.h (insert_default_attributes): Remove.
2215 objc:
2216         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2217
2218 2002-03-27  Andreas Schwab  <schwab@suse.de>
2219
2220         * config/i386/i386.c (classify_argument): Also check for
2221         QUAL_UNION_TYPE.
2222
2223 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2224
2225         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2226         any more.
2227
2228 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2229
2230         * i960.md (ret): Set PC.
2231         (nonlocal_goto): Fix expander.
2232         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2233         some jump or call.
2234
2235 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2236
2237         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2238         of libcall regions.
2239
2240 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2241
2242         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2243         assigning to BLOCK_FOR_INSN directly.
2244
2245 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2246
2247         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2248
2249 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2250
2251         * c-common.c (c_expand_expr): Fix prototype.
2252         * c-common.h (c_expand_expr): Always declare, update.
2253         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2254         * c-objc-common.c (c_objc_common_init): No global hook.
2255         * expr.c (expand_expr): Use langhook.
2256         * expr.h (enum expand_modifier): Conditionally declare.
2257         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2258         (LANG_HOOKS_INITIALIZER): Update.
2259         * langhooks.c (lhd_expand_expr): New.
2260         * langhooks.h (struct lang_hooks): New hook.
2261         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2262         (lang_independent_init): Don't default hook.
2263 objc:
2264         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2265
2266 2002-03-27  Richard Henderson  <rth@redhat.com>
2267
2268         PR target/6054
2269         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2270         TARGET_CONST_GP.  Simplify conditions.
2271
2272 2002-03-27  Richard Henderson  <rth@redhat.com>
2273
2274         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2275         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2276         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2277
2278 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2279
2280         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2281         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2282         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2283         Remove unnecessary masks.
2284         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2285         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2286         -mwindows, -mdll switches and their negations.
2287
2288 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2289
2290         * gcc-common.c (lang_mark_false_label_stack): Remove.
2291         * ggc.h (lang_mark_false_label_stack): Similarly.
2292
2293 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2294
2295         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2296
2297         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2298         or __rtems_ is defined.
2299
2300 2002-03-26  Richard Henderson  <rth@redhat.com>
2301
2302         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2303         if a non-trivial load was emitted.
2304         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2305         in high+extra+low case.
2306
2307 2002-03-26  Richard Henderson  <rth@redhat.com>
2308
2309         * config.gcc (sparc*-solaris): Use float_format=sparc.
2310
2311 2002-03-26  Richard Henderson  <rth@redhat.com>
2312
2313         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2314         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2315         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2316         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2317         (WINT_TYPE_SIZE): Fix at 32.
2318
2319 2002-03-26  Richard Henderson  <rth@redhat.com>
2320
2321         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2322         until after eh landing pad generation.
2323         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2324         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2325
2326 2002-03-26  Richard Henderson  <rth@redhat.com>
2327
2328         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2329
2330 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2331
2332         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2333         and warning switches.
2334         (cc1_options):  Likewise.
2335
2336 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2337
2338         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2339         Restore more of the signal context.  Set no_reg_stack_frame.
2340         * config/ia64/unwind-ia64.c (unw_state_record):
2341         Add no_reg_stack_frame, comments.
2342         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2343         (uw_update_context): Adjust bsp when unwinding from leaf,
2344         but not signal frame.
2345
2346 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2347
2348         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2349
2350 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2351
2352         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2353
2354 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2355
2356         PR target/5621
2357         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2358         "Add a pool_range attribute", which was lost during the ARM/Thumb
2359         merge.
2360
2361 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2362
2363         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2364         a register into the MAC16 accumulator.
2365
2366 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2367
2368         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2369         (Warning Options): Document -Wswitch-enum.
2370         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2371         -Wswitch.
2372         (warn_switch_enum): Define variables.
2373         * flags.h (warn_switch_enum): Declare variables.
2374         * stmt.c (expand_end_case_type): When warn_switch_enum /
2375         -Wswitch-enum, perform switch checks.
2376         Fix PR c/5044.
2377
2378 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2379
2380         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2381         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2382         (reload_muladdsi_compare0_scratch): Delete.
2383
2384 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2385
2386         * doc/install.texi (*-*-freebsd*): Update.
2387
2388 2002-03-26  Richard Henderson  <rth@redhat.com>
2389
2390         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2391         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2392
2393         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2394         types from the normal argument frame.
2395
2396         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2397         variable sized objects by reference.
2398         (sparc_va_arg): Receive them by reference too.
2399
2400 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2401
2402         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2403         code to not restoring global registers.
2404
2405 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2406
2407         * Makefile.in (ggc-common.o): Update.
2408         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2409         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2410         * c-tree.h (c_mark_tree): New.
2411         * ggc-common.c: Include langhooks.h.
2412         (gcc_mark_trees): Use new langhook.
2413         * ggc-callbacks.c: Delete file.
2414         * ggc.h (lang_mark_tree): Remove.
2415         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2416         (LANG_HOOKS_INITIALIZER): Update.
2417         * langhooks.h (struct lang_hooks): New hook.
2418 objc:
2419         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2420
2421 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2422
2423         * doc/cpp.texi: Exclude entire Top node from printed manual.
2424         Move option index after directive index.  Insert page breaks
2425         before GFDL and concept index.  Index environment variables
2426         with command line options.
2427         * doc/cppenv.texi: Use @vtable for environment variable list.
2428         Add paragraph explaining semantics of empty elements in path
2429         variables.  Exclude a cross-reference to Fishkill from the
2430         manpage.  Remove an unnecessary cross-reference of the entry
2431         right above the referer.  Don't use @anchor in text that goes
2432         into manpage.
2433         * doc/cppopts.texi: Cross-reference the environment variables
2434         section, not the specific environment variable, for consistency.
2435
2436 2002-03-25  Richard Henderson  <rth@redhat.com>
2437
2438         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2439         anywhere in the block.  Don't refer to insns that have been
2440         removed from the chain.  Iterate backward through the new insns.
2441         Don't refer to edges that have been removed.
2442
2443 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2444
2445         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2446         test for overflow of constant.
2447
2448 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2449
2450         PR target/2623
2451         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2452         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2453         these patterns on arm_archv4.
2454
2455 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2456
2457         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2458         int".
2459
2460 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2461
2462         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2463         float_handled, float_handler, float_signal, set_float_handler,
2464         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2465         * toplev.h: Don't prototype do_float_handler.
2466
2467         * c-lex.c: Fold parse_float into lex_number.  Make warning
2468         about portability of hex float constants more informative, and
2469         don't issue it on top of a syntax error.
2470         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2471         their callers.
2472         * real.h: Define REAL_VALUE_ABS here...
2473         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2474         simplify_unary_real, simplify_binary_real, and
2475         simplify_binary_is2orm1 into their callers.
2476         * tree.c: Fold build_real_from_int_cst_1 into caller.
2477
2478         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2479
2480         * tsystem.h: Include float.h here...
2481         * libgcc2.c: ... not here.
2482
2483 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2484
2485         Fixes for: PR bootstrap/3591, target/5676
2486         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2487         defined.  Do not disable exceptions or rtti.
2488         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2489         mcore.h.  Disable exceptions and rtti, since they are not
2490         supported by EPOC.
2491
2492 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2493
2494         * c-decl.c (maybe_build_cleanup): Remove.
2495         * expr.c (expand_expr): Use langhook.
2496         * langhooks-def.h (lhd_return_null_tree,
2497         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2498         (LANGHOOKS_INITIALIZER): Update.
2499         * langhooks.c (lhd_return_null_tree): New.
2500         * langhooks.h (struct lang_hooks): New hook.
2501         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2502         * tree.h (maybe_build_cleanup): Remove.
2503
2504 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2505
2506         * regrename.c (build_def_use): Move recog_memoized
2507         before extract_insn.
2508
2509 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2510
2511         PR target/6043
2512         * expr.c (emit_group_store): Handle storing into CONCAT.
2513
2514 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2515
2516         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2517         corresponding MATCH_DUP.
2518
2519 2002-03-24  Richard Henderson  <rth@redhat.com>
2520
2521         * unroll.c (unroll_loop): Zero label_map.
2522
2523         * gcse.c: Include except.h.
2524         * Makefile.in (gcse.o): Update.
2525
2526 2002-03-24  Richard Henderson  <rth@redhat.com>
2527
2528         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2529         Do resolve_unique_section before shared data clause.
2530
2531 2002-03-24  Richard Henderson  <rth@redhat.com>
2532
2533         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2534
2535 2002-03-24  Richard Henderson  <rth@redhat.com>
2536
2537         * recog.c (peephole2_optimize): Split blocks when EH insns are
2538         generated in the middle of a block.  Do global life update if
2539         zapped EH edges.
2540
2541 2002-03-24  Richard Henderson  <rth@redhat.com>
2542
2543         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2544
2545 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2546
2547         preprocessor/3951
2548         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2549         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2550         (init_dependency_output): Don't make no_output decision here.
2551
2552 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2553
2554         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2555         warn_switch.  Update description.
2556         (expand_end_case_type): Call check_for_full_enumeration_handling
2557         when warn_switch.
2558
2559 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2560
2561         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2562         (m68hc11_split_move): Call it to see if the source and destination
2563         operands use the same direction auto inc/dec mode, otherwise make the
2564         source an offsetable memory operand and generate an add.
2565
2566 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2567
2568         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2569         register for operand 2.
2570         ("*subsi3_zero_extendqi"): Likewise.
2571         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2572         bits so that it is compatible with a pop.
2573         ("*andhi3_gen"): Likewise.
2574         ("xorhi3"): Likewise.
2575
2576 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2577
2578         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2579         -pedantic here...
2580         (cpp_post_options): ... not here.
2581
2582 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2583             Aldy Hernandez  <aldyh@redhat.com>
2584
2585         Removal of separate preprocessor cpp0.
2586
2587         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2588         cpp0, install-common): Update.
2589         * c-common.c (flag_preprocess_only): New.
2590         (c_common_init): Preprocess for -E.
2591         * c-common.h (flag_preprocess_only): New.
2592         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2593         * c-objc-common.c (c_init_decl_processing): Exit quickly
2594         for NULL return from c_common_init.
2595         * cpplib.h (cpp_preprocess_file): New.
2596         * cppmain.c (main, general_init, pfile, progname): Remove.
2597         (do_preprocessing): Rename cpp_preprocess_file, don't call
2598         cpp_finish.  Don't close stdout here.
2599         (setup_callbacks): Update prototype.
2600         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2601         Update.
2602         * tradcpp.c (main): Ignore -quiet.
2603 objc:
2604         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2605
2606 2002-03-24  Richard Henderson  <rth@redhat.com>
2607
2608         PR optimization/5742
2609         * machmode.def: Add inner mode field to complex modes.
2610         * config/mips/mips.c (mips_function_value): Always define.  Add
2611         new argument to handle libcalls.
2612         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2613         (FUNCTION_VALUE): Likewise.
2614         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2615         * config/mips/mips-protos.h: Update.
2616
2617 2002-03-23  Richard Henderson  <rth@redhat.com>
2618
2619         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2620         * config/sparc/sparc-protos.h: Update.
2621         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2622
2623 2002-03-23  Richard Henderson  <rth@redhat.com>
2624
2625         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2626         _start or _init begins the text segment.
2627
2628 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2629
2630         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2631         not HOST_WIDEST_INT.
2632         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2633
2634 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2635
2636         PR java/5489
2637         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2638         operand argument to output_return_instruction.
2639         * arm.c (arm_print_operand, case 'd'): If the operand is
2640         const_true_rtx then just return.
2641         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2642         then abort.
2643
2644 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2645
2646         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2647         (Warning Options): Document -Wswitch-default.
2648         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2649         -Wswitch.
2650         (warn_switch_default): Define variable.
2651         (warn_switch): Update comment.
2652         * flags.h (warn_switch_default): Declare variable.
2653         (warn_switch): Update comment.
2654         * stmt.c (expand_end_case): Check for and, when
2655         warn_switch_no_default, warn of a missing default case.
2656
2657 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2658
2659         * real.h (N): Special case 128 bit doubles.
2660
2661         * combine.c (simplify_comparison): When widening modes, ignore
2662         sign extension on CONST_INTs.
2663
2664 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2665
2666         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2667         passed to adjust_address.  Fix comment formatting.
2668
2669
2670 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2671
2672         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2673         Always make REAL_VALUE_TYPE a struct containing an array of
2674         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2675         big it is.  Don't declare or use union real_extract.
2676
2677         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2678         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2679         (print_operand), config/arm/arm.c (output_move_double),
2680         config/arm/arm.md (consttable_4, consttable_8),
2681         config/romp/romp.c (output_fpops), config/s390/s390.h
2682         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2683         (xtensa_output_literal): Don't use union real_extract.
2684
2685         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2686         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2687         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2688         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2689         (PRINT_OPERAND): Don't use local version of union
2690         real_extract.
2691
2692         * config/convex/convex.c (check_float_value), config/vax/vax.c
2693         (vax_float_literal), config/m88k/m88k.md (divdf3),
2694         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2695         config/pdp11/pdp11.c (output_move_quad): Don't do host
2696         arithmetic on target floating point quantities.
2697
2698         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2699         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2700
2701         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2702         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2703
2704         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2705         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2706         INFINITY.
2707         * print-rtl.c (print_rtx): Disable code which needs
2708         floating-point emulator.
2709         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2710         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2711         depending on HOST_FLOAT_FORMAT to be defined properly.
2712
2713         * config/1750a/1750a.c (get_double, float_label): Delete.
2714         (print_operand): Delete huge commented-out chunk.  Use
2715         REAL_VALUE_TO_DECIMAL.
2716         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2717         functions.
2718         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2719         IEEE_FLOAT_FORMAT.
2720         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2721         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2722         * config/m88k/m88k.c (real_power_of_2_operand,
2723         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2724         real_extract out of the union; run the input through
2725         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2726         from that into the union.
2727         * config/pdp11/pdp11.c (output_move_double): Rearrange
2728         parentheses to make automatic indenter happy.
2729
2730         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2731         Point" and rewrite to describe current situation.  Also adjust
2732         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2733         match code.
2734         * doc/rtl.texi: Adjust cross reference.
2735
2736 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2737
2738         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2739         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2740         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2741         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2742         prevent use of sp as a reload register.
2743         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2744         non_acc_reg_operand.
2745         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2746         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2747         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2748         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2749
2750 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2751
2752         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2753         * cpplex.c (unterminated): Delete.
2754         (parse_string): No string literal may extend over multiple
2755         lines.  Suppress the error when preprocessing assembly.
2756         * cppmain.c (scan_translation_unit): Strings are single-line.
2757
2758         * doc/cpp.texi: Update to match.
2759
2760 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2761
2762         PR optimization/5854
2763         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2764         Shut up warnings.
2765         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2766         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2767         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2768         const0 if scratch register was not allocated.
2769         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2770         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2771         with GEN_INT (...).
2772         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2773         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2774         with GEN_INT (...) everywhere.  Remove constraints in define_split
2775         patterns.
2776         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2777         require scratch register for setting 0 into regs/non-pushable memory.
2778
2779 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2780
2781         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2782         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2783
2784 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2785
2786         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2787         * cppinit.c (cpp_create_reader):  On by default.
2788         (cpp_handle_option):  Handle -W[no-]endif-labels.
2789         (cpp_post_options):  Also enable if -pedantic.
2790         * cpplib.c (do_else):  Use it.
2791         (do_endif):  Likewise.
2792         * doc/cppopts.texi:  Document new option.
2793         * doc/invoke.texi:  Document new option.
2794
2795 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2796
2797         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2798         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2799
2800 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2801
2802         * flow.c (calculate_global_regs_live): Clear aux fields of
2803         ENTRY and EXIT.
2804
2805 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2806
2807         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2808         REG or MEM subregs, pass rtx * instead of rtx to it.
2809         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2810         rtx * instead of rtx to alter_subreg.
2811         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2812         * config/pj/pj.c (pj_output_rval): Likewise.
2813
2814 2002-03-22  Richard Henderson  <rth@redhat.com>
2815
2816         PR target/3177
2817         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2818         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2819         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2820         (ia64_expand_prologue): Look at int_regs, not words, for number
2821         of incomming int regs.
2822
2823 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2824
2825         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2826
2827 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2828
2829         * toplev.c (flag_loop_optimize, flag_crossjumping):
2830         New static variables.
2831         (rest_of_compilation): Conditionalize crossjumping and
2832         loop optimizer.
2833         (parse_options_and_default_flags): Default loop_optimize and
2834         crossjumping.
2835         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2836         * invoke.texi (crossjumping, loop-optimize): Document.
2837
2838 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2839
2840         * real.c (eiisneg): Move outside #ifdef NANS.
2841
2842 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2843
2844         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2845         frequencies match; avoid match on different loop depths.
2846         (try_crossjump_to_bb): Kill tests that no longer brings time
2847         savings.
2848         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2849         updating code.
2850         (split_edge): Likewise.
2851
2852         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2853         variable.
2854
2855         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2856         * cfgrtl.c: Include insn-config.h
2857         (split_block) Dirtify block in presence of conditional execution
2858
2859 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2860
2861         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2862         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2863         (function_arg): Constify CUMULATIVE_ARGS.
2864         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2865         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2866         (UNITS_PER_DOUBLE): New macro.
2867         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2868         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2869         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2870         fp_regs and stack_words.
2871         (EABI_FLOAT_VARARGS_P): New macro.
2872         * config/mips/mips.c (struct mips_arg_info): New.
2873         (mips_arg_info): New function.
2874         (function_arg_advance): Use it.  Add adjustment instructions here
2875         rather than in function_arg.
2876         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2877         for VOIDmode at the beginning of the function.
2878         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2879         (function_arg_pass_by_reference): Likewise.
2880         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2881         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2882         (mips_va_start): Likewise.  Use the new stack_words field of
2883         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2884         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2885         doubles and other types, aligning the overflow pointer for non-doubles
2886         too.  Remove some code duplication.  Replace hard-coded constants.
2887
2888 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2889
2890         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2891         (CLASS_UNITS): Undefine.
2892         (CLASS_MAX_NREGS): Use FP_INC.
2893         * config/mips/mips.c (compute_frame_size): Likewise.
2894         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2895
2896 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2897
2898         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2899         prototype, and handle lexing numbers and identifiers.
2900         (parse_identifier): Update to new form of parse_slow.
2901         (parse_number): Fast path only, use parse_slow otherwise.
2902         (_cpp_lex_direct): Update calls to parse_number.
2903
2904 2002-03-21  DJ Delorie  <dj@redhat.com>
2905
2906         * bb-reorder.c (make_reorder_chain_1): Protect against
2907         when redundant edges are omitted.
2908         * predict.c (dump_prediction): Likewise.
2909
2910 2002-03-21  Richard Henderson  <rth@redhat.com>
2911
2912         PR target/5996
2913         * fixinc/inclhack.def (solaris_stdio_tag): New.
2914         * fixinc/fixincl.x: Regenerate.
2915
2916 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2917
2918         PR c/5597
2919         * c-typeck.c (process_init_element): Flag non-static
2920         initialization of a flexible array member as illegal.
2921
2922 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2923
2924         * config/rs6000/t-linux64: New.
2925         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2926         t-ppccomm.  Use t-rs6000 and t-linux64.
2927         (powerpc64-*-gnu* <tmake_file>): Likewise.
2928         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2929         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2930         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2931
2932 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2933
2934         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2935         flag_really_no_inline instead of optimize == 0.
2936
2937         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2938
2939         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2940
2941         * flags.h (flag_really_no_inline): New.
2942
2943         * c-common.c (c_common_post_options): Initialize
2944         flag_really_no_inline.
2945
2946         * toplev.c (flag_really_no_inline): New.
2947
2948 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2949
2950         * config/avr/avr.md (length): Fix length computation for
2951         conditional branches.
2952
2953 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2954
2955         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2956         sdbout.o, profile.o): Update.
2957         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2958         langhook.
2959         * c-common.h (gettags): Move here from tree.h.
2960         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2961         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2962         * dbxout.c (dbxout_init): Use getdecls langhook.
2963         * expr.c (expand_expr): Use insert_block langhook.
2964         * fold-const.c: Include langhooks.h.
2965         (fold_range_test, fold_binary_op_with_conditional_arg,
2966         fold): Use global_bindings_p langhook.
2967         * integrate.c (expand_inline_function): Use insert_block langhook.
2968         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2969         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2970         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2971         LANG_HOOKS_GETDECLS): New.
2972         (LANG_HOOKS_INITIALIZER): Update.
2973         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2974         langhook.
2975         * langhooks.h (struct lang_hooks_for_decls): New.
2976         (struct lang_hooks): Update.
2977         * profile.c: Include langhooks.h.
2978         (output_func_start_profiler): Use new langhooks.
2979         * sdbout.c: Include langhooks.h.
2980         (sdbout_init, sdbout_finish): Use getdecls langhook.
2981         * stmt.c: Include langhooks.h.
2982         (expand_fixup, fixup_gotos): Use new langhooks.
2983         * stor-layout.c: Include langhooks.h.
2984         (variable_size): Use global_bindings_p langhook.
2985         * toplev.c (compile_file): Use getdecls langhook.
2986         * tree-inline.c (remap_block): Use insert_block langhook.
2987         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2988         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2989
2990 2002-03-21  Richard Henderson  <rth@redhat.com>
2991
2992         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2993         constants in .data when -fpic.
2994
2995 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2996
2997         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2998         where appropriate.
2999
3000 2002-03-21  Tom Tromey  <tromey@redhat.com>
3001
3002         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
3003
3004 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3005
3006         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3007
3008         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3009
3010 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
3011             Richard Henderson  <rth@redhat.com>
3012
3013         PR c/5354
3014         * c-common.c (c_expand_expr): Preserve result of a statement
3015         expression if needed.
3016
3017 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
3018
3019         PR bootstrap/4195
3020         * genrecog.c (maybe_both_true_mode): Remove.
3021         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3022         * machmode.def (Pmode): Likewise.
3023
3024 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
3025
3026         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3027         (nonlocal_mentioned_p_1): New function.
3028         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3029         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3030         (mark_constant_function): Recognize pure functions.
3031         * rtl.h (global_reg_mentioned_p): New prototype.
3032         * rtlanal.c (global_reg_mentioned_p,
3033         global_reg_mentioned_p_1): New function.
3034
3035 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3036
3037         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3038         UNIX assert.h.
3039         * fixinc/fixincl.x: Regenerate.
3040
3041 2002-03-20  Jason Merrill  <jason@redhat.com>
3042
3043         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3044
3045 2002-03-20  Michael Meissner  <meissner@redhat.com>
3046
3047         * doc/invoke.texi (Optimize Options): Document that -O2 sets
3048         -fstrict-aliasing.
3049
3050 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3051
3052         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3053         ".literal_position" directive before the constant pool.
3054
3055 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3056
3057         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3058         Add Craig Rodrigues.
3059         Add Brad Lucier to testers.
3060
3061 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3062
3063         PR target/4792
3064         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3065         to if_then_else.
3066         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3067         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3068         instead of insn_extract.
3069
3070 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3071
3072         PR bootstrap/4192
3073         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3074
3075         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3076         stmt if some case has been output.
3077
3078 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3079
3080         PR c/5972
3081         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3082         movsfcc_1, movdfcc_1): Add %O2.
3083         * config/i386/i386.c (print_operand): Handle %ON.
3084         Print . before float condition codes in Sun as cmov syntax.
3085         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3086         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3087         no longer true.
3088
3089 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
3090
3091         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3092         return instruction if PC was popped.
3093
3094 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3095
3096         * config/xtensa/xtensa.md: Remove unused type attributes.
3097         (adddi_carry, subddi_carry): Change type attribute to "multi".
3098
3099 2002-03-19  Dale Johannesen  <dalej@apple.com>
3100
3101         PR optimization/5999, middle-end/5731
3102         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3103         multiplications by reciprocals.
3104
3105 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3106
3107         * Makefile.in: Update.
3108         * c-common.c: Include langhooks.h.
3109         (inline_forbidden_p): Use new hook.
3110         * diagnostic.c: Include langhooks.h.
3111         (format_with_decl, announce_function,
3112         default_print_error_function): Use new hook.
3113         * dwarf2out.c (dwarf2_name): Use new hook.
3114         * function.c: Include langhooks.h.
3115         (init_function_start): Use new hook.
3116         * langhooks-def.h (lhd_decl_printable_name): New.
3117         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3118         (LANGHOOKS_INITIALIZER): Update.
3119         * langhooks.c (lhd_decl_printable_name): New.
3120         * langhooks.h (struct lang_hooks): New hook.
3121         * toplev.c (decl_name, decl_printable_name): Remove.
3122         (open_dump_file): Use new hook.
3123         (process_options): Remove old hook.
3124         * tree.h (decl_printable_name): Remove.
3125 objc:
3126         * objc-act.c (objc_init): Remove old hook.
3127         (objc_printable_name): Export.
3128         * objc-act.h (objc_printable_name): New.
3129         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3130
3131 2002-03-19  Jim Blandy  <jimb@redhat.com>
3132
3133         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3134         the start_source_file debug hook, not the current line number.
3135
3136 2002-03-19  Richard Henderson  <rth@redhat.com>
3137
3138         * flow.c (EH_USES): Provide default.
3139         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3140         * doc/tm.texi (EH_USES): New.
3141
3142         * config/ia64/ia64.c (ia64_eh_uses): New.
3143         * config/ia64/ia64-protos.h: Update.
3144         * config/ia64/ia64.h (EH_USES): New.
3145
3146 2002-03-19  Richard Henderson  <rth@redhat.com>
3147
3148         * varasm.c (output_constant_def): Fix stupid typo.
3149
3150 2002-03-19  Richard Henderson  <rth@redhat.com>
3151
3152         PR 5879
3153         * except.c (current_function_has_exception_handlers): New.
3154         * except.h: Declare it.
3155         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3156         Combine tests that disable all sibcalls for the function.
3157
3158 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
3159
3160         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3161         for INTEGER_CST.
3162
3163 2002-03-19  Richard Henderson  <rth@redhat.com>
3164
3165         PR 5977, 5991
3166         * config/ia64/ia64.c: Revert 2002-03-01 patch.
3167         * config/ia64/ia64.h (INIT_EXPANDERS): New.
3168
3169 2002-03-19  Jim Blandy  <jimb@redhat.com>
3170
3171         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3172         name, even if the replacement list contains no tokens, as required
3173         by Dwarf.
3174
3175 2002-03-19  Jason Merrill  <jason@redhat.com>
3176
3177         * varasm.c (globalize_decl): Get the name from the RTL, not
3178         DECL_ASSEMBLER_NAME.
3179
3180         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3181
3182 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
3183
3184         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3185         subdi_carry): Define.
3186
3187 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3188
3189         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3190         about -fpic/-fPIC if extra_warnings set.
3191
3192 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3193
3194         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3195         TREE_STRING_POINTER.
3196         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3197
3198 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3199
3200         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3201         in favor of SP if FRAME_POINTER_REQUIRED is false.
3202
3203 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3204
3205         * emit-rtl.c (gen_int_mode): New function.
3206         * rtl.h: Prototype for it.
3207         * combine.c (make_extraction, simplify_comparison), expmed.c
3208         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3209         (convert_modes, store_field), optabs.c (expand_fix),
3210         simplify-rtx.c (neg_const_int, simplify_unary_real),
3211
3212         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3213         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3214
3215 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3216
3217         PR c/5656
3218         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3219         convert_parm_for_inlining.
3220         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3221         Define.
3222         * langhooks-def.h: Likewise.
3223         * objc/objc-lang.c: Likewise.
3224         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3225         function.
3226         * tree-inline.c (initialize_inlined_parameters):
3227         Call convert_parm_for_inlining lang hook if needed.
3228         * c-typeck.c (c_convert_parm_for_inlining): New function.
3229         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3230
3231 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3232
3233         * calls.c (precompute_arguments): Do not assume that temporaries
3234         can be destroyed after expanding the argument.
3235         (expand_call): Likewise.
3236
3237 2002-03-15  Eric Christopher  <echristo@redhat.com>
3238
3239         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3240         Fix register preference on last change.
3241         * config/mips/mips.c (mips_return_in_memory): New function.
3242         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3243         * config/mips/mips-protos.h: Declare.
3244         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3245         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3246
3247 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3248
3249         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3250         a register too.
3251         (anddi3, iorsi3): Likewise.
3252
3253         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3254         use %gprel for symbols that are going to be placed in linkonce
3255         sections.
3256
3257         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3258         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3259         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3260         not needed.  Disregard leaf_function_p().
3261         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3262         mips16 frame pointer.
3263         * config/mips/mips.md (store ra): Only to small SP offsets.
3264         2001-08-22  Graham Stott  <grahams@redhat.com>
3265         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3266         return a REG rtx for the return address register.
3267
3268 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3269
3270         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3271         constant-pool addresses as "mode-dependent".
3272         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3273
3274 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3275
3276         PR target/5740
3277         * expr.c (emit_group_load): Use extract_bit_field if
3278         needed for CONCAT arguments.
3279
3280 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3281
3282         PR target/4863
3283         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3284         offset to the base of the table.
3285         (thumb_tablejump): Matcher for Thumb tablejump insn.
3286         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3287         as the difference of two labels.
3288         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3289         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3290         tables in the code.
3291         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3292         * arm.c (get_jump_table_size): If the table is not in the text
3293         section, return zero.
3294
3295 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3296
3297         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3298         of gen_rtx_SUBREG.
3299         (arm_reload_out_hi): Use gen_lowpart instead of
3300         gen_rtx_SUBREG to access QImode components.
3301         * config/arm/arm.md: Disable zero_extend split for QImode
3302         subregs in BIG_ENDIAN mode.
3303         (storehi_bigend): Match use of least significant byte.
3304         (storeinthi): Remove extraneous SUBREG.
3305         Add missing construction of operands[2].
3306         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3307         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3308         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3309
3310 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3311
3312         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3313         any_operand.
3314
3315 2002-03-17  Richard Henderson  <rth@redhat.com>
3316
3317         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3318         explicitly.
3319
3320 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3321
3322         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3323         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3324
3325 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3326
3327         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3328
3329         * predict.c (estimate_bb_frequencies): Delete unused variables.
3330
3331 2002-03-17  Richard Henderson  <rth@redhat.com>
3332
3333         * config/ia64/ia64.c (ia64_attribute_table): Move before
3334         targetm definition.  Make static.
3335
3336 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3337
3338         * c-common.h (yyparse, c_common_parse_file): New.
3339         * c-lang.c: Include c-common.h.
3340         (LANG_HOOKS_PARSE_FILE): Redefine.
3341         * c-lex.c: Include c-common.h.
3342         (yyparse): Rename c_common_parse_file.  Call yyparse.
3343         * c-parse.in (yyparse): Remove macro.
3344         * c-tree.h (yyparse_1): Remove.
3345         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3346         (LANG_HOOKS_INITIALIZER): Update.
3347         * langhooks.h (struct lang_hoooks): New hook parse_file.
3348         * toplev.c (compile_file): Use parse_file hook.
3349         * tree.h (yyparse): Remove.
3350         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3351
3352 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3353
3354         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3355         float_truncate, not fix.
3356         ("*truncdfsf2_real"): Ditto.
3357         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3358
3359         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3360
3361 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3362
3363         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3364         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3365         where appropriate.  Make the second reference to
3366         leaf_function_p a function call, as intended.  Reindented.
3367
3368         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3369         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3370
3371         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3372         add register to non-constant into sp.
3373
3374         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3375         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3376         (mips16_gp_pseudo_rtx): Lose.
3377         (INIT_EXPANDERS): Deleted.
3378         * config/mips/mips.c (mips_init_machine_status): New.
3379         (mips_free_machine_status): New.
3380         (mips_mark_machine_status): New.
3381         (override_options): Set them.
3382         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3383         (struct machine_function): ... new.  Replaced all references.
3384         (mips_add_gc_roots): Don't mark them.
3385         (embedded_pic_fnaddr_reg): New, extracted from...
3386         (embedded_pic_offset): ... here.
3387         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3388         (movsi): Likewise.
3389
3390 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3391
3392         * cppinit.c: Revert -MD removal.
3393
3394 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3395
3396         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3397         soft registers by default for 68HC12.
3398         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3399         when compiling with -fomit-frame-pointer.
3400         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3401         (expand_epilogue): Likewise.
3402         (m68hc11_gen_rotate): Use exg when rotating by 8.
3403
3404 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3405
3406         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3407         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3408         (splits): Remove unused add splits.
3409         ("*addhi3_68hc12"): Tune constraints.
3410         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3411         constant fits in 8-bits and D is dead use abx/aby instructions.
3412         ("*addhi3"): Remove extern declaration of ix_reg.
3413         ("*subsi3"): Optimize and provide new split.
3414         ("subhi3"): Cleanup.
3415         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3416         (arith splits): For 68hc12 save the address register on the stack
3417         and do the arithmetic operation with a pop.
3418
3419 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3420
3421         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3422         allocating QImode in address registers.
3423         ("*movqi_m68hc11"): Likewise.
3424
3425 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3426
3427         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3428
3429 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3430
3431         * cppinit.c (print_help): Display -MD and -MMD.
3432         Don't display usage string.  Update assertion syntax and
3433         typo.
3434         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3435         (cpp_handle_option): Update.
3436
3437 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3438
3439         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3440         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3441         and define it so that regardless of target CPU size,
3442         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3443         of "int" rather than "long."
3444
3445 2002-03-15  Richard Henderson  <rth@redhat.com>
3446
3447         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3448         size as a tree.
3449
3450 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3451
3452         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3453         ("tstqi" split): Avoid using memory for tstqi on address register.
3454         (splits): Remove constraints.
3455         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3456         ("cmpdf", "cmpsf"): Remove since not used.
3457         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3458         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3459
3460 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3461
3462         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3463         ("neghi2"): Tighten constraints.
3464         ("one_cmplsi2"): Optimize and simplify split.
3465         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3466
3467 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3468
3469         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3470         and split of AND operation to clear the upper bits.
3471         ("*logicalsi3_zextqi"): Likewise.
3472         ("*logicallhi3_zexthi_ashift8"): Likewise.
3473         ("*logicalsi3_silshr16"): Likewise.
3474         ("logicalsi3_silshl16"): Likewise.
3475         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3476
3477 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3478
3479         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3480         (m68hc11_indirect_p): New function.
3481         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3482         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3483         TARGET_M6812.
3484         (asm_print_register): Likewise.
3485         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3486         (m68hc11_indirect_p): Declare.
3487         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3488         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3489         (TARGET_SWITCHES): New option -mrelax.
3490         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3491         destination.
3492         ("iorsi3", "xorsi3"): Likewise.
3493         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3494         ("*andhi3_mem"): New to handle destination in memory with bclr
3495         and a scratch register.
3496         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3497         ("*andhi3_const"): New when operand2 is constant.
3498         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3499         ("*andhi3_gen"): Cleanup of the old "andhi3".
3500         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3501         ("xorqi3"): Update constraints.
3502
3503 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3504
3505         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3506         for reg_equiv_memory_loc when the operand is a register that does
3507         not get a hard register (stack location).
3508         (tst_operand): After reload, accept all memory operand.
3509         (symbolic_memory_operand): Fix detection of symbolic references.
3510         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3511         accept symbols and any constant.
3512
3513 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3514
3515         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3516         note on the insn that sets the soft frame register.
3517         (must_parenthesize): ix and iy are also reserved names.
3518         (print_operand_address): One more place where parenthesis are required
3519         to avoid confusion with register names.
3520         (m68hc11_gen_movhi): Allow push of stack pointer.
3521         (m68hc11_check_z_replacement): Fix handling of parallel with a
3522         clobber.
3523         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3524         the replacement register is.
3525         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3526         and D8_REGS classes.
3527         (MODES_TIEABLE_P): All modes are tieable except QImode.
3528
3529 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3530
3531         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3532         (___subdi3): Likewise.
3533         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3534         (__map_data_section): Optimize 68hc11 case.
3535
3536 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3537
3538         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3539         than a shift to avoid adding a register with itself.
3540         (m68hc11_memory_move_cost): Take into account NO_REGS.
3541         (m68hc11_register_move_cost): Update and use memory move cost
3542         for soft registers.
3543         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3544         it gives more opportunities to cse to optimize.
3545         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3546         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3547
3548 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3549
3550         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3551         * c-common.def (CLEANUP_STMT): New tree node.
3552         * c-common.h (CLEANUP_DECL): New macro.
3553         (CLEANUP_EXPR): Likewise.
3554         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3555         * expr.c (expand_expr): Tidy.
3556         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3557         * tree-inline.c (initialize_inlined_parameters): Clean up
3558         new local variables.
3559
3560 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3561
3562         PR bootstrap/4128
3563         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3564         before movrXX only, use reg_overlap_mentioned_p.
3565         Only special case NE if just one insn can be generated.
3566
3567 2002-03-15  Jason Merrill  <jason@redhat.com>
3568
3569         * varasm.c (assemble_variable): Call resolve_unique_section before
3570         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3571         of error_mark_node.
3572
3573 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3574
3575         PR target/5170
3576         * arm.md (split pattern for thumb shiftable immediates): Add comment
3577         explaining non-obvious test.
3578
3579 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3580
3581         PR target/5712
3582         * arm.md (movaddr, movaddr_insn): Delete.
3583
3584 2002-03-15  Jason Merrill  <jason@redhat.com>
3585
3586         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3587         -fkeep-static-consts doesn't apply to comdats.
3588
3589 2002-03-14  Richard Henderson  <rth@redhat.com>
3590
3591         * c-decl.c: Include c-pragma.h.
3592         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3593         (finish_function): Tidy.
3594         * c-pragma.c: Include c-common.h.
3595         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3596         (handle_pragma_weak): Use them.
3597         (init_pragma): Register pending_weaks.
3598         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3599         * print-tree.c (print_node): Print DECL_WEAK.
3600         * varasm.c (mark_weak_decls): Remove.
3601         (remove_from_pending_weak_list): Remove.
3602         (add_weak): Remove.
3603         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3604         (weak_decls): Make a tree_list.
3605         (declare_weak): Cons weak_decls directly.
3606         (globalize_decl): Remove weak_decls elements directly.
3607         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3608         symbols.  Don't pretend to handle aliases.
3609         (init_varasm_once): Update weak_decls registry.
3610         * Makefile.in: Update dependencies.
3611
3612 2002-03-14  Richard Henderson  <rth@redhat.com>
3613
3614         PR target/5312
3615         * config/ia64/ia64.c: Include tm_p.h last.
3616         (gen_nop_type): Remove duplicate definition.
3617         (cycle_end_fill_slots): Set sched_data for second L slot.
3618         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3619         (nop_cycles_until): Fix typos.
3620
3621 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3622
3623         PR optimization/5891
3624         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3625
3626 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3627
3628         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3629           descriptors correctly.
3630
3631 2002-03-14  Michael Meissner  <meissner@redhat.com>
3632
3633         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3634         100, allowing MAX_UNROLLED_INSNS to be overridden.
3635
3636         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3637         --param.
3638
3639         * unroll.c (params.h): Include.
3640         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3641
3642         * doc/invoke.texi (--param max-unroll-insns): Document.
3643
3644         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3645
3646 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3647
3648         * arm.md: Fix warnings about constraints in peepholes and splits.
3649
3650 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3651
3652         * cpphash.h (struct lexer_state): Remove line_extension member.
3653         * cpplib.c (dequote_string, do_linemarker): New functions.
3654         (linemarker_dir): New data object.
3655         (DIRECTIVE_TABLE): No longer need to interpret #line in
3656         preprocessed source.  Delete obsolete comment about return
3657         values of handlers.
3658         (end_directive, directive_diagnostics, _cpp_handle_directive):
3659         Don't muck with line_extension.
3660         (directive_diagnostics): No need to issue warnings for
3661         linemarkers here.
3662         (_cpp_handle_directive): Issue warnings for linemarkers here,
3663         when appropriate.  Dispatch linemarkers to do_linemarker, not
3664         do_line.
3665         (do_line): Code to handle linemarkers split out to do_linemarker.
3666         Convert escape sequences in filename argument, both places.
3667
3668         * cppmacro.c (quote_string): Rename cpp_quote_string and
3669         export.  All callers changed.
3670         * cpplib.h (cpp_quote_string): Prototype.
3671         * cppmain.c (print_line): Call cpp_quote_string on to_file
3672         before printing it.
3673
3674         * doc/cpp.texi: Document that escapes are now interpreted in
3675         #line and in linemarkers, and that non-printing characters are
3676         converted to octal escapes when linemarkers are generated.
3677
3678 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3679
3680         * emit-rtl.c (try_split): Use delete_insns.
3681         * recog.c (split_all_insns): Fix terminating condition.
3682
3683 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3684             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3685
3686         PR target/5828
3687         * arm.c (arm_output_epilogue): Fix floating-point register save
3688         adjustment when using a frame pointer.
3689
3690 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3691
3692         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3693         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3694         (save_restore_insns, mips_expand_epilogue): And here.
3695         (build_mips16_call_stub): And here.
3696         (mips_function_value): Use the new macros to decide whether a single
3697         or complex float can be returned in floating-point registers.  Return
3698         a parallel rtx in the complex case.
3699
3700 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3701
3702         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3703         call after liveness analysis.
3704
3705         * recog.c (split_insn): Use delete_insn_and_edges.
3706
3707         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3708         instructions to have branch prediction notes.
3709         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3710
3711 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3712
3713         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3714         that doesn't support it.
3715         * configure: Regenerate.
3716
3717 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3718
3719         PR target/5626
3720         * config/sparc/sparc.md (normal_branch, inverted_branch,
3721         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3722         inverted_fp_branch): Adjust calls to output_cbranch.
3723         Set length attribute.
3724         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3725         output_v9branch.  Set length attribute.
3726         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3727         predicates.
3728         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3729         (output_cbranch): Likewise.  Handle far branches.
3730         (output_v9branch): Handle far branches.
3731         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3732         Adjust prototypes.
3733         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3734         noov_compare64_op predicates.
3735
3736 2002-03-13  Jason Merrill  <jason@redhat.com>
3737
3738         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3739         into the function and constify it.
3740         * gthr-dce.h, gthr-solaris.h: Likewise.
3741
3742 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3743
3744         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3745         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3746         std_expand_builtin_va_arg if not ABI_V4.
3747
3748 2002-03-13  Jason Merrill  <jason@redhat.com>
3749
3750         * varasm.c (globalize_decl): New fn.
3751         (assemble_start_function): Use it.
3752         (asm_emit_uninitialized): Use it.
3753         (assemble_alias): Use it.
3754         (assemble_variable): Use it.
3755
3756 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3757
3758         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3759         2002-03-12 internal visibility change.
3760         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3761         visibility into SYMBOL_REF_FLAG.
3762
3763 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3764
3765         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3766         VOIDmode operand.  Add compile-time optimization for constant results.
3767
3768 2002-03-12  Jason Merrill  <jason@redhat.com>
3769
3770         * c-typeck.c (convert_for_assignment): Don't allow conversions
3771         between pointers and references.  Only allow lvalues to convert to
3772         reference.
3773
3774 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3775
3776         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3777         before prologue, to avoid scheduling problems.
3778
3779 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3780
3781         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3782         (ELIMINABLE_REGS): Add sfp->sp.
3783         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3784
3785 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3786
3787         PR optimization/5892
3788         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3789
3790 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3791
3792         * loop.c (basic_induction_var): Don't call convert_modes if mode
3793         classes are different.
3794
3795 2002-03-12  Richard Henderson  <rth@redhat.com>
3796
3797         PR optimization/5901
3798         * function.c (reposition_prologue_and_epilogue_notes): Position
3799         the markers after/before the last/first insn not deleted.
3800
3801 2002-03-12  Richard Henderson  <rth@redhat.com>
3802
3803         PR optimization/5878
3804         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3805         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3806         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3807
3808         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3809         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3810         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3811
3812         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3813         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3814         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3815         also.  Don't set it if not flag_pic.
3816         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3817         to be INVALID_REGNUM when not used.
3818
3819 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3820
3821         * expmed.c (store_bit_field): Reset alias set for memory.
3822         (extract_bit_field): Same.
3823
3824 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3825
3826         * c-common.c (c_tree_code_type, c_tree_code_length,
3827         c_tree_code_name, add_c_tree_codes): Delete.
3828         * c-common.h (add_c_tree_codes): Delete.
3829         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3830         Define.
3831         * c-objc-common.c (c_objc_common_init): Don't call
3832         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3833         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3834         objc_tree_code_name, add_objc_tree_codes): Delete.
3835         (objc_init): Don't call add_objc_tree_codes.
3836         * objc/objc-lang.c (tree_code_type, tree_code_length,
3837         tree_code_name): Define.
3838         * toplev.c (lang_independent_init): Don't set
3839         tree_code_length[IDENTIFIER_NODE].
3840         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3841         Delete definitions, moved to language front-ends.
3842         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3843         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3844         Const-ify.
3845         (tree_code_length): Change type to unsigned char.
3846
3847 2002-03-12  Richard Henderson  <rth@redhat.com>
3848
3849         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3850         internal visibility change.
3851
3852 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3853
3854         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3855         validize_mem() instead of change_address to avoid clobbering
3856         memory attributes.
3857
3858 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3859
3860         * c-lex.h (position_after_whitespace): Remove.
3861
3862 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3863
3864         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3865         (lex_string): Use unsigned char pointers.
3866
3867 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3868
3869         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3870         is not a valid memory_operand.
3871
3872 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3873
3874         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3875         * config/xtensa/lib1funcs.asm: Fix copyright to include
3876         special case for libgcc files.
3877         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3878         (__divsi3): Likewise.
3879         (__umodsi3): Likewise.
3880         (__modsi3): Likewise.
3881         * config/xtensa/lib2funcs.S: Fix copyright to include
3882         special case for libgcc files.
3883
3884 2002-03-12  Tom Rix  <trix@redhat.com>
3885
3886         * collect2.c (resolve_lib_name): Move outside of
3887         OBJECT_FORMAT_COFF ifdef.
3888         (ignore_library): Same.
3889
3890 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3891
3892         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3893
3894 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3895
3896         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3897         to function_section before writing out the constant pool.
3898
3899 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3900
3901         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3902         zero_constant.
3903         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3904
3905 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3906
3907         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3908         (adddi3): Likewise.
3909         (movdf): Likewise.
3910         (movdi): Likewise.
3911         (cmpsi splitter): Likewise.
3912         (modsi3): Fail if <= 0.
3913         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3914         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3915         (reg_or_sub_cint64_operand): Likewise.
3916         (num_insns_constant_wide): Optimize sign extension.
3917         (rs6000_legitimize_address): Likewise.
3918
3919 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3920
3921         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3922         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3923
3924 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3925
3926         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3927         address calculation.
3928
3929 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3930
3931         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3932         scratch register to DImode / TImode.
3933         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3934         register used does not overlap the target.
3935
3936 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3937
3938         * Makefile.in (debug.o): Depend on debug.h.
3939         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3940         * debug.c (do_nothing_debug_hooks): Likewise.
3941         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3942         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3943         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3944         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3945         * dwarfout.c (dwarf_debug_hooks): Likewise.
3946         * integrate.c (output_inline_function): Likewise.
3947         * objc/objc-act.c (synth_module_prologue): Likewise.
3948         * sdbout.c (sdb_debug_hooks): Likewise.
3949         * toplev.c (debug_hooks): Likewise.
3950         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3951
3952 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3953
3954         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3955         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3956         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3957         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3958         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3959         * defaults.h (POINTER_SIZE): Define.
3960         * doc/tm.texi (POINTER_SIZE): Document default.
3961
3962 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3963
3964         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3965
3966 2002-03-11  Richard Henderson  <rth@redhat.com>
3967
3968         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3969         if rebuild_label_notes_after_reload.
3970
3971 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3972
3973         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3974         emit pic register load if "internal" visibility.
3975         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3976         (cris_expand_builtin_va_arg): Do all computations on trees.
3977
3978 2002-03-11  Richard Henderson  <rth@redhat.com>
3979
3980         * rtlanal.c: Include recog.h.
3981         (keep_with_call_p): Fix thinko.
3982         * Makefile.in (rtlanal.o): Update dependencies.
3983
3984 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3985
3986         * genflags.c (gen_insn): Use IS_VSPACE.
3987         * genoutput.c (output_insn_data): Likewise.
3988         (process_template): Likewise.
3989
3990 2002-03-11  Richard Henderson  <rth@redhat.com>
3991
3992         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3993
3994 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3995
3996         * Makefile.in: Update.
3997         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3998         Update documentation.
3999         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4000         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4001
4002 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
4003
4004         * Makefile.in: Give texi2pod its input file as a command line
4005         argument, not on stdin.
4006
4007 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
4008             Daniel Berlin  <dan@dberlin.org>
4009
4010         C++ alias analysis improvement.
4011         * alias.c (record_component_aliases): Record aliases for base
4012         classes too.
4013
4014 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
4015
4016         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4017
4018 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
4019
4020         * toplev.c (vms_fopen): Remove, not needed.
4021
4022         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4023
4024         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4025
4026         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4027         for FP, already done later.
4028
4029         * toplev.c (debug_args): Add entry for VMS_DEBUG.
4030         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4031
4032 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
4033
4034         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4035         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4036         LARGEST_EXPONENT_IS_NORMAL for the given mode.
4037         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4038         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4039         (ediv, emul, eldexp, esqrt): Likewise.
4040         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4041         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4042         (saturate): New function.
4043         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4044         (make_nan): Use a saturation value instead of a NaN if
4045         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
4046         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4047         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
4048         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
4049         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4050         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4051         !ROUND_TOWARDS_ZERO.
4052         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4053         (ROUND_TOWARDS_ZERO): Document.
4054
4055 2002-03-11  Andreas Jaeger  <aj@suse.de>
4056
4057         * cfg.c (dump_flow_info): Remove unused variable.
4058
4059 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
4060
4061         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4062         computations on trees.
4063
4064 2002-03-10  Richard Henderson  <rth@redhat.com>
4065
4066         PR 5693:
4067         * reload.c (copy_replacements_1): New.
4068         (copy_replacements): Use it to recurse through the rtx.
4069
4070 2002-03-10  Richard Henderson  <rth@redhat.com>
4071
4072         * loop.c (strength_reduce): Compute number of iterations as
4073         unsigned HOST_WIDE_INT.
4074
4075 2002-03-10  Richard Henderson  <rth@redhat.com>
4076
4077         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4078         to move away from the end of the block.
4079
4080 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4081
4082         PR preprocessor/5899
4083         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4084
4085 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4086
4087         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4088
4089         * attribs.c (decl_attributes): Fix signed/unsigned warning.
4090
4091 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
4092
4093         * config/mmix/mmix.c: Improve comments.
4094         (mmix_target_asm_function_prologue): Drop variable
4095         empty_stack_frame.  Don't allocate unused slot above fp.
4096         (mmix_target_asm_function_epilogue): Mirror prologue changes.
4097         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4098         brace in first column.
4099         (enum reg_class): Ditto.
4100         (FIRST_PARM_OFFSET): Now 0.
4101         (USER_LABEL_PREFIX): Remove #if 0:d definition.
4102
4103 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4104
4105         * combine.c (make_extraction): Fix error in last change.
4106
4107 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4108
4109         * c4x.c (c4x_fp_reglist): Const-ify.
4110         * cris.c (cris_print_operand): Likewise.
4111         * i386.c (ix86_va_arg): Likewise.
4112         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4113         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4114         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4115         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4116         * mcore.h (regno_reg_class): Likewise.
4117         * mips.c (gen_int_relational): Likewise.
4118         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4119         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4120         * pdp11.c (move_costs): Likewise.
4121         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4122         * s390.c (s390_branch_condition_mnemonic, regclass_map):
4123         Likewise.
4124         * s390.h (regclass_map): Likewise.
4125         * sh.c (shift_amounts): Likewise.
4126         * sh.md (rotlsi3): Likewise.
4127
4128 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4129
4130         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4131         (ne0+5): Use new clobber to generate proper shift pattern.
4132         Patch by Michael Matz <matz@kde.org>.
4133
4134 2002-03-09  Andreas Schwab  <schwab@suse.de>
4135
4136         * gcc.c (validate_all_switches): Also handle `%W{...}'.
4137
4138 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4139
4140         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4141
4142 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
4143
4144         PR middle-end/5877
4145         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4146         even for non-representable constants.
4147
4148 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4149
4150         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4151         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4152         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4153         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4154         (pop_function_context): Compute MAY_SHARE parameter for
4155         fixup_var_refs.
4156         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4157         (gen_mem_addressof): Call fixup_var_refs with new parm.
4158
4159         * combine.c (make_extraction): Don't make extension of CONST_INT.
4160
4161 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4162
4163         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4164         in o32 and o64 ABIs.
4165         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4166         but getting fixed-size structs passed in registers regardless of
4167         padding in o32 and o64 ABIs.
4168
4169         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4170         offset before loading address of argument passed by transparent
4171         reference.
4172
4173 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4174
4175         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4176
4177 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4178
4179         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4180         marker such that registers after it are saved.
4181
4182 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4183
4184         * sparc.c (arith_4096_operand): Fix error in last change.
4185
4186 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4187
4188         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4189         defaults for MEABI.
4190
4191 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4192
4193         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4194         vectors.
4195
4196 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4197
4198         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4199
4200 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4201
4202         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4203         removed; fix return value.
4204         * combine.c (combine_instructions): Dirtify blocks where we failed to
4205         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4206         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4207
4208 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4209
4210         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4211
4212 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4213
4214         * recog.c (peephole2_optimize): Re-distribute EH edges.
4215
4216 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4217
4218         * expr.c (expand_expr): Use unsave lang hook.
4219         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4220         (LANG_HOOKS_INITIALIZER): Update.
4221         * langhooks.h (struct lang_hooks): New hook unsave.
4222         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4223         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4224         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4225         (unsave_expr_now): Remove.
4226         * tree.h (unsave_expr_now, lang_unsave,
4227         lang_unsave_expr_now): Remove.
4228         (lhd_unsave): New.
4229
4230 2002-03-08  Andreas Jaeger  <aj@suse.de>
4231
4232         * flow.c (propagate_block_delete_insn): Remove unused variable.
4233
4234 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4235
4236         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4237         insn length for memory load/store.
4238
4239 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4240
4241         * doc/install.texi (--with-libiconv-prefix): Document.
4242
4243 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4244
4245         * doc/sourcebuild.texi: Fix typo.
4246
4247 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4248
4249         PR c/3711
4250         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4251         trees.
4252
4253 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4254
4255         * rtl.c (copy_most_rtx): Move from here ...
4256         * emit-rtl.c (copy_most_rtx): ... to here.
4257
4258 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4259
4260         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4261         SUBTARGET_CPP_SIZE_SPEC.
4262         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4263
4264         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4265
4266 2002-03-07  Matt Hiller  <hiller@redhat.com>
4267
4268         * gensupport.c (first_dir_md_include): Renamed from include;
4269         change all references.
4270         (last_dir_md_include): Renamed from last_include; change all
4271         references.
4272         (init_md_reader): Unconditionally initialize base_dir whether or
4273         not filename is a relative path.
4274
4275 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4276
4277         * config/fp-bit.c (_unord_f2): Compile it in even if
4278         US_SOFTWARE_GOFAST is enabled.
4279
4280         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4281         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4282         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4283         NULL_RTX, try reversing the comparison and the operands.
4284
4285 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4286
4287         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4288         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4289         and MATCH_OP_DUP.
4290
4291 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4292
4293         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4294
4295 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4296
4297         * basic-block.h (fixup_abnormal_edges): Declare.
4298         * reload1.c (fixup_abnormal_edges): New function.
4299         * reg-stack.c (convert_regs): Use it.
4300
4301         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4302
4303         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4304
4305 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4306
4307         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4308         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4309         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4310         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4311         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4312         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4313         unless x and y could be infinite.
4314         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4315         Check that the common type of both arguments is a real, even for
4316         targets without unordered comparisons.  Allow an integer argument
4317         to be compared against a real.
4318         (expand_tree_builtin): Use expand_unordered_cmp.
4319         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4320         * cse.c (fold_rtx): Likewise.  Fix indentation.
4321         * fold-const.c (fold_real_zero_addition_p): New.
4322         (fold): Use it, and the new HONOR_... macros.
4323         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4324         * jump.c (reversed_comparison_code_parts): After searching for
4325         the true comparison mode, use HONOR_NANS to decide whether it
4326         can be safely reversed.
4327         (reverse_condition_maybe_unordered): Remove IEEE check.
4328         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4329         to decide which simplifications are valid.  Allow the following
4330         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4331         and (a - -b) to (a + b).
4332         (simplify_relational_operation): Use HONOR_NANS.
4333         * doc/tm.texi: Document the MODE_HAS_... macros.
4334
4335 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4336
4337         * combine.c (simplify_comparison): If simplifying a logical shift
4338         right and compare with constant, force the comparison to unsigned.
4339
4340 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4341
4342         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4343
4344         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4345         -mabi=no-altivec
4346         (alt_reg_names): Remove % for vrsave.
4347
4348 2002-03-06  Richard Henderson  <rth@redhat.com>
4349
4350         PR optimization/5844
4351         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4352         if used indicates we've already emitted one copy of an operand.
4353         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4354         (gen_split): Supply a non-null used.
4355
4356 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4357
4358         * reload1.c (reload): Unshare all rtl after reload is done.
4359
4360         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4361         but simply fail if the expression is too complex to simplify.
4362         (simplify_gen_binary): Handle simplify_plus_minus failures.
4363
4364 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4365
4366         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4367         consistently call delete_trivially_dead_insns after CSE and GCSE;
4368         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4369         after liveness2; update comment in last crossjumping.
4370         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4371
4372 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4373
4374         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4375         after completing fast dead code elimination.
4376
4377         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4378         COMPARE operator.
4379
4380 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4381
4382         * version.c:  Fix misplaced leading blanks on first line.
4383
4384 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4385
4386         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4387
4388 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4389
4390         * cfgcleanup.c (mentions_nonequal_regs): New function.
4391         (thread_jump): Use it.
4392         * toplev.c (rest_of_compilation): Run jump threading after
4393         liveness.
4394
4395 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4396
4397         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4398         patch.
4399
4400 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4401
4402         * predict.c (estimate_bb_frequencies): Do not reload the
4403         frequencies from notes.
4404
4405 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4406
4407         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4408         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4409
4410         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4411         delete_noop_moves): Return indeger.
4412         * flow.c (ndead): New variable.
4413         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4414         BB argument; update callers.
4415         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4416         (life_analysis): Do not call purge_all_dead_edges.
4417         (update_life_info): Return number of deleted insns; print statistics.
4418         (update_life_info_in_dirty_blocks): likewise.
4419         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4420         return number of insns deleted.
4421
4422         * cse.c: Include timevar.h
4423         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4424         iterate until stabilizes; print statistics; return number of killed
4425         insns.
4426         * Makefile.in: (cse.o): Add timevar.h dependency
4427         * rtl.h (delete_trivially_dead_insns): New.
4428         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4429         * toplev.c (rest_of_compilation): Update callers.
4430
4431         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4432         (try_optimize_cfg): Do not update liveness.
4433         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4434         removal stabilizes; use delete_trivially_dead_insns.
4435
4436         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4437
4438 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4439
4440         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4441         callbacks when processing assembly language.
4442
4443 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4444
4445         * pa.h (ASM_FILE_END): Define.
4446         * som.h (ASM_FILE_END): Delete.
4447
4448         * pa.c (function_arg): Don't pass floats in general registers in
4449         indirect calls if TARGET_ELF32.
4450
4451 2002-03-05  Richard Henderson  <rth@redhat.com>
4452
4453         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4454
4455 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4456
4457         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4458
4459 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4460
4461         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4462         -r command line.  Don't hide any symbols if not building
4463         shared libgcc.
4464
4465 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4466
4467         * cfg.c (dump_flow_info): Warn about profile mismatches.
4468         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4469         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4470
4471 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4472
4473         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4474         wide volatile memory by parts.
4475
4476 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4477
4478         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4479         is NULL.
4480
4481 2002-03-05  Richard Henderson  <rth@redhat.com>
4482
4483         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4484
4485 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4486
4487         * toplev.c (documented_lang_options): Document more
4488         language-specific options.
4489         * doc/invoke.texi (Warning Options): Correct documentation for
4490         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4491         * c-decl.c (c_decode_option): Use a table to handle warning options.
4492
4493 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4494
4495         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4496         parameter to mmix_encode_section_info.
4497         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4498         relocatably.  Always produce ELF, not mmo if linking relocatably.
4499         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4500         first is non-zero, don't add symbol prefix.
4501         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4502         prototype accordingly.
4503
4504 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4505
4506         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4507
4508 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4509
4510         * configure.in: Increase required makeinfo version to 4.1.
4511         * configure: Regenerate.
4512
4513 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4514
4515         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4516         elsewhere now.
4517
4518 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4519
4520         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4521         * doc/invoke.texi: Fix @math uses.
4522
4523 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4524
4525         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4526         removal
4527
4528 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4529
4530         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4531         (powerpc-*-eabisimaltivec*): Same.
4532
4533         * config/rs6000/t-ppcendian: New.
4534
4535 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4536
4537         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4538         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4539         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4540
4541 2002-03-03  Richard Henderson  <rth@redhat.com>
4542
4543         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4544
4545 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4546
4547         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4548         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4549         tree.c, config/m68k/m68k.c:
4550         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4551         REAL_ARITHMETIC blocks unconditional.  Delete some further
4552         #ifdef blocks predicated on REAL_ARITHMETIC.
4553         * flags.h, toplev.c: Delete remaining references to
4554         flag_pretend_float.
4555
4556         * doc/invoke.texi: Remove documentation of -fpretend-float.
4557         * doc/tm.texi: Describe the various REAL_* macros as provided by
4558         real.h, not by the target configuration files.
4559
4560         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4561         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4562         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4563         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4564         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4565         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4566         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4567         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4568         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4569         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4570         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4571         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4572         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4573         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4574         config/xtensa/xtensa.h:
4575         Do not define, undefine, or mention in comments any of
4576         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4577         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4578         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4579         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4580         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4581         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4582         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4583         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4584         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4585
4586 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4587
4588         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4589         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4590         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4591         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4592         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4593         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4594         Delete.
4595         * defaults.h (BITS_PER_WORD): Define.
4596         * doc/tm.texi (BITS_PER_WORD): Document default value.
4597
4598         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4599         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4600         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4601
4602 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4603
4604         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4605         lieu of explicit sizeof/sizeof.
4606         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4607         ix86_expand_builtin): Likewise.
4608         * mips.c (mips_add_gc_roots): Likewise.
4609         * mmix.c (mmix_output_condition): Likewise.
4610         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4611         altivec_init_builtins): Likewise.
4612         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4613         * cppexp.c (Nsuff, parse_number): Likewise.
4614         * cppinit.c (builtin_array_end): Likewise.
4615         * gcc.c (n_default_compilers, process_command): Likewise.
4616         * genpreds.c (output_predicate_decls): Likewise.
4617         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4618         * lcm.c (N_ENTITIES): Likewise.
4619         * stor-layout.c (set_sizetype): Likewise.
4620
4621 2002-03-03  Richard Henderson  <rth@redhat.com>
4622
4623         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4624         for types or labels.
4625
4626 2002-03-03  Richard Henderson  <rth@redhat.com>
4627
4628         * c-decl.c (start_decl): Initialized variables are not common.
4629
4630 2002-03-02  Per Bothner  <per@bothner.com>
4631
4632         * gcc.c (option_map):  Suport new --bootclasspath option.
4633         --CLASSPATH is now just an alias for --classpath.
4634
4635 2002-03-02  Richard Henderson  <rth@redhat.com>
4636
4637         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4638         load if "internal" visibility.
4639         * doc/extend.texi: Document visibility meanings.
4640
4641 2002-03-02  Richard Henderson  <rth@redhat.com>
4642
4643         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4644         to functions as well.
4645
4646 2002-03-02  Richard Henderson  <rth@redhat.com>
4647
4648         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4649         (handle_visibility_attribute): Don't call assemble_visibility.
4650         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4651         without asmspec.  Invoke assemble_alias when needed.
4652         * varasm.c (maybe_assemble_visibility): New.
4653         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4654
4655 2002-03-02  Richard Henderson  <rth@redhat.com>
4656
4657         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4658         invoke ENCODE_SECTION_INFO with first call flag.
4659
4660         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4661         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4662         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4663         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4664         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4665         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4666         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4667         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4668         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4669         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4670         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4671         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4672         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4673         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4674         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4675         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4676         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4677         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4678         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4679         config/sh/sh.h, config/sparc/sparc.h,
4680         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4681         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4682         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4683         FIRST argument.  As needed, examine it and do nothing.
4684
4685         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4686         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4687         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4688
4689         * config/arm/t-pe (pe.o): Add dependencies.
4690
4691 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4692
4693         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4694         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4695         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4696         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4697         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4698         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4699         * defaults.h (BITS_PER_UNIT): Define.
4700         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4701
4702 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4703
4704         * config/h8300/h8300-protos.h: Add a prototype for
4705         compute_a_shift_length.
4706         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4707         (compute_a_shift_length): Likewise.
4708         (h8300_adjust_insn_length): Do not adjust insn length of shift
4709         insns.
4710         * config/h8300/h8300.md (anonymous shift patterns): Use
4711         compute_a_shift_length.
4712
4713 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4714
4715         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4716         trunc_int_for_mode.
4717
4718         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4719
4720 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4721
4722         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4723         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4724         * flags.h (flag_zero_initialized_in_bss): Declare.
4725         * toplev.c (flag_zero_initialized_in_bss): New flag.
4726         (lang_independent_options): Add flag_zero_initialized_in_bss.
4727         * tree.c (initializer_zerop): New function.
4728         * tree.h (initializer_zerop): Declare.
4729         * varasm.c (assemble_variable): If we can emit bss, put zero
4730         initializers in the bss section.
4731
4732 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4733
4734         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4735         like more than one symbol per .weak directive.
4736
4737 2002-03-01  Richard Henderson  <rth@redhat.com>
4738
4739         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4740         adjust argument_pointer by pretend_args_size.
4741         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4742
4743 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4744
4745         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4746
4747 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4748
4749         * toplev.c (rest_of_compilation): Delete dead jumptables before
4750         loop.
4751         * flow.c (delete_dead_jumptables): Make global.
4752         * rtl.h (delete_dead_jumptables): Declare.
4753
4754 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4755
4756         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4757         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4758         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4759
4760 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4761
4762         * config/h8300/h8300-protos.h: Fix formatting.
4763         * config/h8300/h8300.c: Likewise.
4764         * config/h8300/h8300.h: Likewise.
4765
4766 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4767
4768         * config/h8300/h8300.c (print_operand): Support 16-bit
4769         constant addresses.
4770         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4771
4772 2002-02-28  Richard Henderson  <rth@redhat.com>
4773
4774         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4775         pun complex values as integers; use gen_lowpart instead of
4776         gen_rtx_SUBREG.
4777         (extract_bit_field): Likewise.
4778
4779 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4780             David Edelsohn  <edelsohn@gnu.org>
4781
4782         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4783         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4784         (SUPPORTS_WEAK): Likewise.
4785         * output.h (add_weak): Add tree param.
4786         * varasm.c (add_weak): Likewise.  Save decl.
4787         (struct weak_syms): Add decl field.
4788         (mark_weak_decls): New function.
4789         (init_varasm_once): ggc_add_root mark_weak_decls.
4790         (assemble_start_function): Use ASM_WEAKEN_DECL.
4791         (assemble_variable): Likewise.
4792         (assemble_alias): Likewise.
4793         (declare_weak): Pass decl to add_weak.
4794         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4795         (remove_from_pending_weak_list): Declare and define for
4796         ASM_WEAKEN_DECL.
4797         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4798         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4799         * defaults.h (SUPPORTS_WEAK): Likewise.
4800         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4801         .weak for code sym.  Do emit .size for descriptor sym.
4802         (ASM_DECLARE_FUNCTION_SIZE): Define.
4803         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4804         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4805         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4806         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4807         .weak for code sym.
4808         (HANDLE_PRAGMA_WEAK): Remove.
4809         (ASM_WEAKEN_LABEL): Remove.
4810         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4811
4812 2002-03-01  Jason Merrill  <jason@redhat.com>
4813
4814         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4815         (TARGET_EXPR_CLEANUP): New macro.
4816
4817 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4818
4819         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4820         to take ptr_extend into account as third type of extension.
4821         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4822         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4823         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4824         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4825         * calls.c (precompute_arguments): Use new macro.
4826         (expand_call): Ditto.
4827         * combine.c (nonzero_bits): Ditto.
4828         (record_promoted_value): Ditto.
4829         * expr.c (store_expr): Ditto.
4830         (expand_expr): Ditto.
4831         * function.c (assign_parms): Ditto.
4832
4833 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4834
4835         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4836         override -shared and -shared-libgcc.
4837
4838 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4839
4840         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4841         of "ultrasparc".
4842         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4843         to be broken.
4844
4845 2002-02-28  Richard Henderson  <rth@redhat.com>
4846
4847         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4848         4 cycle latency from MM producers.
4849         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4850
4851 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4852
4853         * mklibgcc.in: Don't use GNU make extension.
4854
4855 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4856
4857         * c-parse.in (STATIC): New terminal.
4858         (scspec): New non-terminal.  Update productions accordingly.
4859         (program): Remove bogus ifc / end ifc.
4860         (array_declarator): Simplify production using STATIC.
4861
4862 2002-02-28  Jim Meyering  <meyering@lucent.com>
4863
4864         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4865         \a still means TARGET_BELL.
4866
4867 2002-02-28  Richard Henderson  <rth@redhat.com>
4868
4869         * haifa-sched.c (sched_emit_insn): New.
4870         (schedule_block): Use last_scheduled_insn to track last insn.
4871         * sched-int.h (sched_emit_insn): Prototype.
4872         * config/ia64/ia64.c (last_issued): Remove.
4873         (ia64_variable_issue): Don't set it.
4874         (nop_cycles_until): Use sched_emit_insn.
4875
4876 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4877
4878         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4879         extended constants.
4880
4881 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4882
4883         * config/h8300/h8300.c: Fix formatting.
4884         * config/h8300/h8300.h: Likewise.
4885
4886 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4887
4888         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4889         which may overwrite the high byte of the frame pointer.
4890
4891 2002-02-28  Bo Thorsen  <bo@suse.de>
4892
4893         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4894         (STARTFILE_SPEC): Add 64 bit files.
4895         (ENDFILE_SPEC): Likewise.
4896
4897 2002-02-28  Jason Merrill  <jason@redhat.com>
4898
4899         * c-decl.c (finish_function): Only warn about missing return
4900         statement with -Wreturn-type.
4901
4902 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4903
4904         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4905
4906         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4907         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4908
4909 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4910
4911         * basic-block.h (BB_REACHABLE): Renumber.
4912         (BB_DIRTY, BB_NEW): New flags.
4913         (clear_bb_flags): Declare.
4914         (update_life_info_in_dirty_blocks): Declare.
4915         * cfg.c (clear_bb_flags): New function.
4916         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4917         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4918         reorder_insns, emit_insn_after): Mark block as dirty.
4919         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4920         (update_life_info_in_dirty_blocks): New function.
4921         * recog.c (apply_change_group): Dirtify block.
4922
4923         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4924         cfg consistent.
4925         * gcse.c (delete_null_pointer_checks): Likewise.
4926
4927         * toplev.c (dump_file_index): Move cse2 after bp,
4928         add DFI_null
4929         (dump_file_info): Similary.
4930         (rest_of_compilation): Avoid most of CFG rebuilds;
4931         do first if converision after null pointer checks, do cse2
4932         after branch prediction; avoid full liveness rebuild after
4933         initializing subregs.
4934         * invoke.texi (-d options): Document -du, renumber.
4935
4936         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4937         (notice_new_block): Do not set BB_UPDATE_LIFE.
4938         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4939          merge_blocks_move_successor_nojumps, merge_blocks,
4940          try_crossjump_to_edge): Likewise.
4941         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4942         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4943         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4944         (merge_of_block): Do not use life_data_ok.
4945         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4946         (if_convert): Use BB_DIRTY mechanizm to update life.
4947         * lcm.c (optimize_mode_switching): Update
4948         update_life_info_in_dirty_blocks
4949
4950 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4951
4952         * Makefile.in (integrate.o): Update.
4953         * c-decl.c (copy_lang_decl): Rename.
4954         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4955         * integrate.c: Include langhooks.h.
4956         (copy_decl_for_inlining): Update to use langhook.
4957         * langhooks-def.h (lhd_do_nothing_t,
4958         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4959         (LANG_HOOKS_INITIALIZER): Update.
4960         * langhooks.c (lhd_do_nothing_t): New.
4961         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4962         * tree.h (copy_lang_decl): Remove.
4963 objc:
4964         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4965
4966 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4967
4968         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4969         POST_DEC, and POST_MODIFY.
4970
4971 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4972
4973         * c-typeck.c (digest_init): Remove unused parameter; all
4974         callers changed.
4975
4976 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4977
4978         * expmed.c (expand_shift): Correctly test for low part of a
4979         subreg.
4980
4981 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4982
4983         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4984         insn UIDs with insn addresses.
4985
4986 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4987
4988         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4989         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4990         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4991         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4992         gcc.c, toplev.c: Delete code implementing -traditional mode.
4993
4994         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4995         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4996         Document removal of -traditional mode for compilation, and
4997         remove documentation only relevant to that mode.
4998
4999         * config/nextstep.h, config/ptx4.h, config/svr4.h,
5000         config/convex/convex.h, config/d30v/d30v.h,
5001         config/i386/dgux.h, config/i386/osf1elf.h,
5002         config/i386/osfelf.h, config/i386/osfrose.h,
5003         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5004         config/m68k/hp310.h, config/m88k/dgux.h,
5005         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5006         config/m88k/m88k.h, config/m88k/openbsd.h,
5007         config/mips/abi64.h, config/mips/osfrose.h,
5008         config/mips/svr4-5.h, config/mips/svr4-t.h,
5009         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5010         config/stormy16/stormy16.h: Remove all references to
5011         -traditional from target specs.  Delete all mention of the
5012         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
5013         delete a couple of commented-out definitions of
5014         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5015         to -traditional.
5016
5017         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5018         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5019
5020 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5021
5022         * mklibgcc.in: Don't use \n in a line subject to
5023         interpretation by echo.
5024
5025 2002-02-27  Graham Stott  <grahams@redhat.com>
5026
5027         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5028         Constify NAME.
5029
5030         * loop.c (prescan_loop): Handle PARALLEL.
5031
5032         * unroll.c (loop_iterations): Return 0 if the add_val for
5033         a BIV is REG.
5034
5035         * final.c (output_operand_lossage): Constify PFX_STR.
5036
5037         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5038
5039 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5040
5041         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5042         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5043
5044 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
5045
5046         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5047
5048 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5049
5050         * cpplex.c (_cpp_lex_token): Handle directives in macro
5051         arguments.
5052         * cpplib.c (_cpp_handle_directive): Save and restore state
5053         if parsing macro args when entering a directive.
5054         * cppmacro.c (collect_args): No need to handle directives
5055         in macro arguments.
5056         (enter_macro_context, replace_args): Use the original macro
5057         definition in case it was redefined whilst collecting arguments.
5058 doc:
5059         * cpp.texi: Update.
5060
5061 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
5062
5063         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5064         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5065         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5066         method on AIX.
5067         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5068         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5069         (load_toc_v4_PIC_2): Same.
5070
5071 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
5072
5073         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5074
5075 2002-02-26  Richard Henderson  <rth@redhat.com>
5076
5077         * config/alpha/alpha.md (ashldi_se): Re-enable.
5078
5079 2002-02-26  Richard Henderson  <rth@redhat.com>
5080
5081         * config/alpha/alpha.c (alpha_encode_section_info): Examine
5082         MODULE_LOCAL_P; improve commentary.
5083
5084 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
5085
5086         * doc/cpp.texi: Clarify documentation of relationship between
5087         #line and #include.
5088
5089 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5090
5091         * config/h8300/h8300-protos.h: Update the prototype for
5092         compute_logical_op_length.  Add the prototype for
5093         compute_logical_op_cc.
5094         * config/h8300/h8300.c (compute_logical_op_length): Figure out
5095         code from operands.
5096         (compute_logical_op_cc): New.
5097         * config/h8300/h8300.md: Combine all the logical op patterns
5098         in HImode and SImode.  Use compute_logical_op_cc.
5099
5100 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
5101
5102         * config/i386/i386.c (print_operand): Don't append ATT-style
5103         length suffixs to x87 opcodes when in Intel mode.
5104
5105 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
5106
5107         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5108         (init_emit_once): Update calls.
5109         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5110         (init_syntax_once): Prototype.
5111
5112 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5113
5114         * pa-linux.h (LIB_SPEC): Update definition.
5115         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5116
5117 2002-02-26  Richard Henderson  <rth@redhat.com>
5118
5119         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5120         if we emitted a stop bit.
5121
5122 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5123
5124         * configure.in (libgcc_visibility): Substitute.
5125         * configure: Rebuilt.
5126         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5127         defined symbols .hidden.
5128
5129 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5130
5131         * attribs.c (c_common_attribute_table): Add visibility.
5132         (handle_visibility_attribute): New function.
5133         * varasm.c (assemble_visibility): New function.
5134         * output.h (assemble_visibility): Add prototype.
5135         * tree.h (MODULE_LOCAL_P): Define.
5136         * crtstuff.c (__dso_handle): Use visibility attribute.
5137         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5138         for MODULE_LOCAL_P symbols too.
5139         * config/ia64/ia64.c (ia64_encode_section_info): Handle
5140         MODULE_LOCAL_P symbols the same way as local symbols.
5141         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5142         into .sdata/.sbss by the user.
5143         * doc/extend.texi (Function Attributes): Document visibility
5144         attribute.
5145
5146 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5147
5148         PR debug/5770
5149         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5150         STRING_CST initializer spanning the whole variable without
5151         embedded zeros.
5152         If expand_expr returned MEM, don't use it.
5153
5154 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5155
5156         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5157         generate a die for the lexical block.
5158
5159 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5160
5161         * config/h8300/h8300-protos.h: Add a prototype for
5162         compute_logical_op_length.
5163         * config/h8300/h8300.c (compute_logical_op_length): New.
5164         * config/h8300/h8300.md (anonymous logical patterns): Use
5165         compute_logical_op_length for length.
5166
5167 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5168
5169         * dwarf2out.c (modified_type_die): Do not call type_main_variant
5170         for vectors.
5171         (gen_type_die): Same.
5172
5173         * attribs.c (handle_vector_size_attribute): Set debug information.
5174
5175 2002-02-26  Daniel Egger  <degger@fhm.edu>
5176
5177         * config/rs6000/rs6000.md: Swap define_insn attributes to
5178         fix incorrect generation of merge high instructions instead
5179         of merge low.
5180
5181 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5182
5183         * c-typeck.c (really_start_incremental_init): Use
5184         bitsize_zero_node for vectors.
5185
5186 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5187
5188         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5189         ("*set_vrsave_internal"): Same.
5190
5191 2002-02-25  Richard Henderson  <rth@redhat.com>
5192
5193         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5194         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5195
5196 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5197
5198         PR target/5755
5199         * config/i386/i386.c (ix86_return_pops_args): Only pop
5200         fake structure return argument if it was passed on the stack.
5201
5202 2002-02-25  Jason Merrill  <jason@redhat.com>
5203
5204         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5205         RESULT_DECL.
5206
5207 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5208
5209         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5210         link with shared_name only.
5211         * doc/invoke.texi (Link Options): Document new behavior.
5212
5213 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5214
5215         * c-typeck.c (push_init_level): Handle vectors.
5216
5217 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5218
5219         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5220         operands of SPARC_SETHI_P.
5221         (input_operand): Likewise.
5222         (sparc_emit_set_const32): Likewise.
5223         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5224         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5225         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5226         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5227         (movdi_insn_sp64_vis): Likewise.
5228         (movdi split, movdf split): Use SETHI32.
5229         * doc/md.texi: Document SPARC constraints L, M and N.
5230
5231 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5232
5233         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5234         ("*set_vrsave_internal"): use mfspr for Darwin.
5235
5236         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5237         gen_get_vrsave_internal.
5238
5239 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5240
5241         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5242
5243 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5244
5245         * cpplex.c (cpp_interpret_charconst): Get signedness or
5246         otherwise of wide character constants correct.
5247         * cppexp.c (lex): Get signedness of wide charconsts correct.
5248
5249 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5250
5251         * optabs.c (widen_operand): Only call convert_modes for
5252         promoted SUBREG if signedness matches.
5253         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5254
5255 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5256
5257         * cpplib.c (glue_header_name): Use local buffer to build up
5258         header name.
5259
5260 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5261
5262         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5263
5264 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5265
5266         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5267         H8/300[HS] separately.
5268         * config/h8300/h8300.md: Remove the early clobber constraint
5269         from bit field patterns.
5270
5271 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5272
5273         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5274         register_operand.
5275         (mulhisi3): Likewise.
5276         (umulqisi3): Likewise.
5277         (umulhisi3): Likewise.
5278
5279 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5280
5281         * cppinit.c (output_deps): Correct test for stdout output.
5282         (init_dependency_output): Cure warning.
5283
5284 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5285
5286         * expr.c (store_expr): When converting expression to promoted
5287         equivalent type, allow using SUBREG_REG of TARGET as the target
5288         of the expansion of EXP.
5289         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5290         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5291         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5292         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5293         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5294
5295 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5296
5297         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5298         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5299         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5300
5301 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5302
5303         PR optimization/5747
5304         * loop.c (scan_loop): Update reg info if move_movables created new
5305         pseudos.
5306
5307 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5308
5309         * gcc.c (init_gcc_spec): Revert last change.
5310
5311 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5312
5313         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5314         gpc_reg_operand constraint.
5315
5316 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5317
5318         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5319         Simplify comparison of `low'.
5320         (add_operand): Fix formatting.
5321         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5322         (mask_operand): Disallow mask to wrap in 64-bit mode.
5323         (rs6000_stack_info): Remove redundant test setting push_p.
5324         (output_toc): Fix formatting.
5325         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5326         cc_reg_not_cr0_operand constraint.
5327         (booldi3, boolcdi3 splitters): Same.
5328
5329 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5330
5331         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5332
5333 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5334
5335         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5336         gcc invoked with -shared-libgcc.
5337
5338 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5339
5340         PR c++/5748
5341         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5342         decl if any of elements was TREE_USED.
5343
5344 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5345
5346         * config/sparc/sol2.h: Don't include sys/mman.h.
5347         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5348         (arith_4096_operand): Don't throw high bits away.
5349         (const64_operand): Take sign extension of CONST_INTs into account.
5350         (const64_high_operand, sparc_emit_set_const32): Likewise.
5351         (GEN_HIGHINT64): Likewise.
5352         (sparc_emit_set_const64_quick1): Likewise.
5353         (const64_is_2insns): Likewise.
5354         (print_operand): Use trunc_int_for_mode for sign extension.
5355         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5356         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5357         chars.  Assume CONST_INT is already properly sign-extended.
5358         (movdi split): Sign-extend each SImode part.
5359         (andsi3 split): Don't mask high bits off, so that result
5360         remains properly sign-extend.
5361         (iorsi3 split): Likewise.
5362         (xorsi3 split): Likewise.
5363
5364 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5365
5366         * fold-const.c (fold): Fix typo in comments.
5367
5368 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5369
5370         * Makefile.in (langhooks.o): Update dependencies.
5371
5372 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5373
5374         * langhooks.c: Include flags.h.
5375
5376 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5377
5378         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5379
5380         * c-common.c (c_common_post_options): Set inline trees by
5381         default.
5382
5383         * doc/extend.texi (Function Attributes): Document always_inline
5384         attribute.
5385         Update documentation about inlining when not optimizing.
5386
5387         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5388
5389         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5390         unless DECL_ALWAYS_INLINE.
5391
5392         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5393         unless DECL_ALWAYS_INLINE.
5394         (c_disregard_inline_limits): Disregard if always_inline set.
5395
5396         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5397         Disregard if always_inline set.
5398         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5399         unless DECL_ALWAYS_INLINE.
5400
5401         * attribs.c (handle_always_inline_attribute): New.
5402         (c_common_attribute_table): Add always_inline.
5403
5404         * config/rs6000/altivec.h: Add prototypes for builtins
5405         requiring the always_inline attribute.
5406
5407 2002-02-21  Eric Christopher  <echristo@redhat.com>
5408
5409         * expmed.c (store_bit_field): Try to simplify the subreg
5410         before generating a new one when when the mode size of
5411         value is less than maxmode.
5412
5413 2002-02-21  Richard Henderson  <rth@redhat.com>
5414
5415         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5416         than gen_rtx_PLUS to form the sum.
5417         * explow.c (force_reg): Rearrange to not allocate new pseudo
5418         when force_operand returns a register.
5419         * expr.c (expand_assignment): Allow offset_rtx expansion to
5420         return a sum.  Do not force addresses into registers.
5421         (expand_expr): Likewise.
5422         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5423         to canonicalize arithmetic that didn't simpify.
5424         (simplify_plus_minus): New argument force; update
5425         all callers.  Don't split CONST unless we can do something with it,
5426         and wouldn't lose the constness of the operands.
5427
5428         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5429         that we generated earlier.
5430
5431 2002-02-21  Tom Tromey  <tromey@redhat.com>
5432
5433         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5434         (output_line_info): Use constant `1', with a long explanatory
5435         comment.
5436         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5437
5438 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5439
5440         * jump.c (redirect_jump): If old label has no UID, don't try to
5441         delete it.
5442
5443 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5444
5445         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5446         If input is constant, do shifts at compile time.
5447
5448 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5449
5450         * doc/extend.texi: Fix some more overfull hboxes.
5451
5452 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5453
5454         PR optimization/4994
5455         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5456         register moves.
5457
5458 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5459
5460         PR c++/4574
5461         * expr.h (expand_and): Add mode argument.
5462         * expmed.c (expand_and): Add mode argument.
5463         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5464         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5465         * except.c (expand_builtin_extract_return_addr): Likewise.
5466         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5467         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5468         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5469         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5470         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5471         gen_rtx (CONST_INT, VOIDmode, x).
5472
5473 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5474
5475         PR c/4697:
5476         * stmt.c (warn_if_unused_value): Move side effects test once more.
5477
5478 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5479
5480         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5481         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5482
5483 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5484
5485         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5486         SUBREG or ZERO_EXTEND.
5487
5488 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5489
5490         * sh.h (current_function_anonymous_args): Remove.
5491         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5492         of current_function_varargs and current_function_stdarg is set.
5493         * sh.c (sh_expand_prologue): Check current_function_varargs /
5494         current_function_stdarg / TARGET_SH5 instead of
5495         current_function_anonymous_args.
5496
5497         * sh64.h (TARGET_VERSION): Define.
5498
5499 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5500
5501         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5502         VRSAVE_REGNO on TARGET_ALTIVEC.
5503
5504 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5505
5506         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5507         bits of SImode const_int.
5508         (includes_rshift_p): Likewise.
5509         (print_operand): Call mask_operand and mask64_operand with correct
5510         mode.
5511         (rs6000_output_function_epilogue): Pad traceback table to word.
5512         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5513         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5514         mask64_operand with correct mode.
5515         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5516
5517 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5518
5519         PR debug/4461
5520         * varasm.c (get_pool_constant_mark): New.
5521         * rtl.h (get_pool_constant_mark): Add prototype.
5522         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5523         be represented if it has not been output.
5524
5525 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5526
5527         * combine.c (do_SUBST): Sanity check substitutions of
5528         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5529         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5530         CONST_INT into its operand.
5531         (known_cond): Likewise, for ZERO_EXTEND.
5532         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5533         allow for simplification of wide modes.  Reject CONST_INTs in
5534         ZERO_EXTEND when their actual mode is not given.
5535
5536 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5537
5538         * c-decl.c (pushdecl): If no global declaration is found for an
5539         extern declaration in block scope, try a limbo one.
5540
5541 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5542
5543         PR c++/4401
5544         * c-common.c (pointer_int_sum): Moved from...
5545         * c-typeck.c (pointer_int_sum): ...here.
5546         * c-common.h (pointer_int_sum): Add prototype.
5547
5548 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5549
5550         PR c++/5713
5551         * c-decl.c (duplicate_decls): Return 0 if issued error about
5552         redeclaration.
5553
5554 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5555             Jakub Jelinek  <jakub@redhat.com>
5556
5557         PR c/4389
5558         * tree.c (host_integerp): Ensure that the constant integer is
5559         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5560         when pos is zero or non-zero respectively.  Clarify comment.
5561         * c-format.c (check_format_info_recurse): Fix host_integerp
5562         usage; the pos argument should be zero when assigning to a
5563         signed HOST_WIDE_INT.
5564
5565 2002-02-20  Richard Henderson  <rth@redhat.com>
5566
5567         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5568         of the operand, rather than assuming TImode.
5569         (ix86_expand_binop_builtin): Cope with commutative patterns
5570         using nonimmediate_operand for both operands.
5571         (ix86_expand_timode_binop_builtin): Likewise.
5572         (ix86_expand_store_builtin): Validate operand 1.
5573         (ix86_expand_unop1_builtin): Likewise.
5574
5575 2002-02-20  Philip Blundell  <philb@gnu.org>
5576
5577         PR 5705
5578         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5579
5580 2002-02-20  Richard Henderson  <rth@redhat.com>
5581
5582         PR c/5615
5583         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5584
5585 2002-02-20  Tom Tromey  <tromey@redhat.com>
5586
5587         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5588         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5589         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5590         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5591         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5592         unconditionally.
5593
5594 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5595
5596         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5597           for (const_int 0) in X not just INTVAL.
5598
5599 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5600
5601         * doc/extend.texi: Avoid or reduce overfull hboxes.
5602
5603 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5604
5605         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5606         operations if the field does not start at a mode boundary.
5607
5608 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5609
5610         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5611         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5612         Also done for -Acpu and -Amachine.
5613
5614 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5615
5616         * cppinit.c (init_dependency_output): Take deps output file
5617         from -o if none given with -MF.  Suppress normal output.
5618         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5619         * doc/cpp.texi, doc/invoke.texi: Update.
5620
5621 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5622
5623         * toplev.c (output_quoted_string): Write unprintable
5624         characters with octal escapes.
5625
5626 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5627
5628         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5629         really_call_used[VRSAVE_REGNO] if not Altivec.
5630
5631 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5632
5633         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5634         MODE_MASK.
5635         (constant_pool_expr_1): Fix formatting.
5636         (rs6000_legitimize_reload_address): Likewise.
5637
5638 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5639
5640         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5641         now that we have one.
5642
5643 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5644
5645         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5646         end of first block of bitfields (which was only seven bits);
5647         rename dummy to unused_1; remove comment which is no longer true.
5648
5649 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5650
5651         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5652
5653 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5654
5655         PR 5399
5656         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5657         if generating PIC.
5658
5659         PR 5054
5660         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5661         arm_is_longcall_p rather than inspecting call-type cookie
5662         directly.
5663         (call_value_insn) [TARGET_THUMB]: Likewise.
5664
5665 2002-02-19  Graham Stott  <grahams@redhat.com>
5666
5667         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5668
5669 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5670
5671         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5672         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5673         (FP_SAVE_INLINE): Delete.
5674
5675         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5676         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5677         * config/rs6000/t-ppccomm: Build crtsavres.o.
5678         * config/rs6000/crtsavres.asm: New file.
5679
5680 2002-02-19  Philip Blundell  <philb@gnu.org>
5681
5682         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5683         functions.
5684         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5685         (output_return_instruction): Allow interrupt functions to return with
5686         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5687         (arm_expand_prologue): Subtract 4 before stacking LR in an
5688         interrupt function.
5689
5690 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5691
5692         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5693         decl, not just FUNCTION_DECL.
5694         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5695         (arm_assemble_integer): Likewise.
5696         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5697         marked local.
5698
5699 2002-02-19  matthew green  <mrg@eterna.com.au>
5700
5701         * config.gcc (sparc-*-netbsdelf*): Enable target.
5702         (sparc64-*-netbsd*): New target.
5703         * config/sparc/netbsd-elf.h: New file.
5704         * config/sparc/t-netbsd64: New file.
5705
5706 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5707
5708         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5709
5710 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5711
5712         * doc/invoke.texi: explicitly list the style guidelines that
5713         -Weffc++ checks for.
5714
5715 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5716
5717         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5718
5719 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5720
5721         PR other/5718
5722         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5723         only if not -E.  If -E, pass -o through to the preprocessor.
5724
5725 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5726
5727         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5728         register number with an appropriate macro.
5729
5730 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5731
5732         * doc/rtl.texi (Constants): Close @code tag.
5733
5734 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5735
5736         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5737         ("mmx_uavgv4hi3"): Same.
5738         ("pmulhrwv4hi3"): Same.
5739
5740         * tree-inline.c (walk_tree): Handle vectors.
5741
5742         * c-common.c (constant_expression_warning): Handle vectors.
5743         (overflow_warning): Same.
5744
5745         * sched-deps.c (sched_analyze_2): Handle vectors.
5746
5747         * rtlanal.c (rtx_unstable_p): Handle vectors.
5748         (rtx_varies_p): Same.
5749         (count_occurrences): Same.
5750         (regs_set_between_p): Same.
5751         (modified_between_p): Same.
5752         (modified_in_p): Same.
5753         (volatile_insn_p): Same.
5754         (volatile_refs_p): Same.
5755         (side_effects_p): Same.
5756         (may_trap_p): Same.
5757         (inequality_comparisons_p): Same.
5758         (replace_regs): Same.
5759         (computed_jump_p_1): Same.
5760
5761         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5762         argument.
5763         (inner_mode_array): New.
5764         (copy_rtx): Handle vectors.
5765         (copy_most_rtx): Same.
5766         (rtx_equal_p): Same.
5767         (get_mode_alignment): Adjust for vectors.
5768
5769         * resource.c (mark_referenced_resources): Handle vectors.
5770         (mark_set_resources): Same.
5771
5772         * reload1.c (eliminate_regs): Handle vectors.
5773         (elimination_effects): Same.
5774         (scan_paradoxical_subregs): Same.
5775
5776         * reload.c (subst_reg_equivs): Handle vectors.
5777
5778         * regrename.c (scan_rtx): Handle vectors.
5779
5780         * regclass.c (reg_scan_mark_refs): Handle vectors.
5781
5782         * recog.c (find_single_use_1): Handle vectors.
5783
5784         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5785         (contains_replace_regs): Same.
5786         (memref_referenced_p): Same.
5787
5788         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5789         (subst_constants): Same.
5790
5791         * genattrtab.c (attr_copy_rtx): Handle vectors.
5792         (encode_units_mask): Same.
5793         (clear_struct_flag): Same.
5794         (count_sub_rtxs): Same.
5795
5796         * gcse.c (want_to_gcse_p): Handle vectors.
5797         (oprs_unchanged_p): Same.
5798         (hash_expr_1): Same.
5799         (oprs_not_set_p): Same.
5800         (expr_killed_p): Same.
5801         (compute_transp): Same.
5802         (store_ops_ok): Same.
5803
5804         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5805         of vectors.
5806         (fixup_var_refs_1): Same.
5807         (instantiate_virtual_regs_1): Same.
5808
5809         * fold-const.c (operand_equal_p): Handle vectors.
5810         (fold): Same.
5811         (rtl_expr_nonnegative_p): Same.
5812
5813         * flow.c (mark_used_regs): Handle vectors.
5814
5815         * df.c (df_uses_record): Handle vectors.
5816
5817         * cselib.c (cselib_subst_to_values): Handle vectors.
5818         (cselib_mem_conflict_p): Same.
5819         (hash_rtx): Same.
5820
5821         * cse.c (canon_reg): Handle vectors.
5822         (fold_rt): Same.
5823         (cse_process_notes): Same.
5824         (count_reg_usage): Same.
5825         (canon_hash): Same.
5826
5827         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5828
5829         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5830
5831         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5832         (gen_rtx): Handle CONST_VECTOR.
5833         (gen_const_vector_0): New.
5834         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5835         (reset_used_flags): Same.
5836         (copy_insn_1): Same.
5837         (initializer_constant_valid_p): Handle VECTOR_CST.
5838
5839         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5840
5841         * doc/rtl.texi (Constants): Document const_vector.
5842         (CONST0_RTX): Update for vectors.
5843         (RTL sharing): Same.
5844
5845         * print-tree.c (print_node): Add case for VECTOR_CST.
5846
5847         * tree.h (TREE_VECTOR_CST_ELTS): New.
5848         (struct tree_vector): New.
5849         (union tree_node): Add vector node.
5850         (build_vector): Add prototype.
5851
5852         * tree.def (VECTOR_CST): New.
5853
5854         * tree.c (build_vector): New.
5855
5856         * expmed.c (make_tree): Handle CONST_VECTOR.
5857
5858         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5859         (CONST_VECTOR_ELT): New.
5860         (CONST_VECTOR_NUNITS): New.
5861
5862         * machmode.h (GET_MODE_INNER): New.
5863         (DEF_MACHMODE): Accept 8th arg.
5864
5865         * machmode.def: Add 8th argument for vector inner mode.
5866         Add inner vector modes for vectors.
5867
5868         * rtl.def (VEC_CONST): Remove.
5869         (CONST_VECTOR): New.
5870
5871         * expr.c (clear_storage): Allow vectors.
5872         (is_zeros_p): Handle VECTOR_CST.
5873
5874         * varasm.c (output_constant_pool): Handle vectors.
5875         (rtx_const): Add veclo and vechi fields.
5876         (kind): Add RTX_VECTOR.
5877         (decode_rtx_const): Add case for vector.
5878
5879         * config/rs6000/rs6000-protos.h: Add zero_constant.
5880
5881         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5882         constants.  Force easy vector constants into memory.
5883         (easy_vector_constant): New.
5884         (emit_easy_vector_constant): New.
5885         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5886         darwin.
5887
5888         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5889         instruction does.
5890         ("altivec_lvxl"): Same.
5891         (altivec_lvebx): Same.
5892         (altivec_lvehx): Same.
5893         (altivec_lvewx): Same.
5894         ("*movv4si_const0"): New.
5895         ("*movv4sf_const0"): New.
5896         ("*movv8hi_const0"): New.
5897         ("*movv16qi_const0"): New.
5898
5899 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5900
5901         * config/h8300/h8300.c (notice_update_cc): Use
5902         cc_status.value2.
5903
5904 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5905
5906         * config/h8300/h8300.md (divmod patterns): Change the
5907         constraints for operands[1] to register_operand.
5908
5909 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5910
5911         * config/h8300/h8300-protos.h: Remove the prototype for
5912         p_operand.
5913         * config/h8300/h8300.c (p_operand): Remove.
5914         * config/h8300/h8300.md: Replace p_operand with
5915         const_int_operand.
5916
5917 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5918
5919         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5920         comment.
5921         (output_return_instruction): Allow use of LDR to unstack
5922         return addresss even for interrupt handlers or when
5923         interworking.  If compiling for ARMv5, use interworking-safe
5924         return instructions by default.  Remove duplicated code and
5925         lengthy "strcat" sequences.
5926
5927 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5928
5929         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5930         (LINK_EH_SPEC): Define.
5931         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5932
5933 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5934
5935         * config/s390/s390.c (s390_emit_prologue): Do not set the
5936         frame_related flag for call-clobbered registers.
5937
5938 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5939
5940         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5941         (construct_container): Fix handling of SSE operands.
5942         (ix86_expand_builtin): Fix handling of 64bit pointers.
5943         (mmx_maskmovq_rex): New pattern.
5944
5945 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5946
5947         * regrename.c (kill_set_value): Handle subregs properly.
5948
5949 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5950
5951         * objc/objc-act.c (handle_impent): Remove leading '*'
5952         from objc_class_name.
5953
5954 2002-02-17  Richard Henderson  <rth@redhat.com>
5955
5956         * config/alpha/alpha.c (some_small_symbolic_operand,
5957         some_small_symbolic_operand_1, split_small_symbolic_operand,
5958         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5959         Handle small SYMBOL_REFs anywhere, not just inside memories.
5960         * config/alpha/alpha-protos.h: Update.
5961         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5962         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5963
5964 2002-02-17  Roland McGrath  <roland@frob.com>
5965
5966         * config.gcc (powerpc-*-gnu-gnualtivec*,
5967         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5968         * config/rs6000/gnu.h: New file.
5969         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5970         Grok "gnu" in rs6000_abi_name.
5971         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5972         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5973         Grok -mcall-gnu analogous to -mcall-linux et al.
5974         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5975         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5976         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5977
5978 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5979
5980         PR c/3444:
5981         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5982         shortening.
5983
5984 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5985
5986         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5987         ENDFILE_SPEC before (re)defining them.
5988
5989 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5990
5991         * config/h8300/h8300.c: Fix formatting.
5992         * config/h8300/h8300.h: Likewise.
5993
5994 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5995
5996         * doc/tm.texi: Explain why empty strings should not be
5997         marked for translation.
5998
5999 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6000
6001         * final.c (output_operand_lossage): Changed to accept
6002         printf style arguments. Change calls where necessary.
6003         * output.h (output_operand_lossage): Change declaration
6004         accordingly. Update copyright.
6005         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6006         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6007         Update copyright date where necessary.
6008
6009         * config/i386/i386.c (print_operand): Likewise. Remove use of
6010         sprintf.
6011
6012         * config/cris/cris.c (cris_operand_lossage): Likewise.
6013         Rename parameter so that exgettext recognizes it as
6014         translatable message.
6015         (LOSE_AND_RETURN): Rename parameter to msgid.
6016
6017 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6018
6019         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6020         hard coded register number with an appropriate macro.
6021         (HARD_REGNO_MODE_OK): Likewise.
6022         (ARG_POINTER_REGNUM): Likewise.
6023         (STATIC_CHAIN_REGNUM): Likewise.
6024         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6025         * config/h8300/h8300.md (define_constants): Define more
6026         register numbers.
6027
6028 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6029
6030         * config/i386/i386.h: Don't mark empty strings for translation.
6031
6032 2002-02-16  H.J. Lu <hjl@gnu.org>
6033
6034         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6035
6036 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
6037
6038         * cppinit.c (merge_include_chains): Check for brack being
6039         NULL before attempting to merge it with qtail.
6040
6041 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
6042
6043         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6044         DBX_DEBUG.
6045
6046 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6047
6048         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6049
6050 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6051
6052         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6053         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6054         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6055
6056 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6057
6058         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6059         now only if !TARGET_FIX.
6060         (*movsi_nt_vms_fix): New pattern.
6061
6062 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
6063
6064         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6065         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6066         (alpha_sa_mask, alpha_sa_size): Reflect above change.
6067         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6068         (alpha_start_function, alpha_expand_epilogue): Likewise.
6069         (unicosmk_gen_dsib): Likewise.
6070
6071 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6072
6073         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6074
6075 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
6076
6077         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6078         check_and_change_labels, s390_final_chunkify): Delete.
6079         (s390_split_branches, s390_chunkify_pool): New functions.
6080         (s390_function_prologue): Call them.
6081
6082         * config/s390/s390.h (S390_REL_MAX): Delete.
6083         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6084
6085         * config/s390/s390.md (cjump, icjump, jump): Fix length
6086         attribute calculation.
6087
6088
6089 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
6090
6091         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6092         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6093
6094 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6095
6096         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6097         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6098         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6099
6100 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6101
6102         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6103
6104 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6105
6106         * reload.c (find_dummy_reload): Check that an output register
6107         is valid for its mode.
6108
6109 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
6110
6111         * combine.c (known_cond): After replacing the REG of a SUBREG, try
6112         to simplify it.
6113
6114         * function.c (assign_parms): Demote promoted argument passed by
6115         transparent reference.
6116
6117 2001-02-14      Joel Sherrill <joel@OARcorp.com>
6118
6119         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6120         -Acpu() and -Amachine() to eliminate warnings.
6121
6122 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
6123
6124         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6125
6126 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6127
6128         * config/h8300/h8300-protos.h: Update the prototype for
6129         const_costs.
6130         * config/h8300/h8300.c (const_costs): Treat SET as a little
6131         more expensive operation.
6132         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6133         reference to const_costs.
6134
6135 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6136
6137         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6138
6139 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6140
6141         PR c/5503:
6142         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6143         use arguments from newtype.
6144
6145 2002-02-13  Eric Christopher  <echristo@redhat.com>
6146
6147         * config/mips/mips.c (override_options): Add check for march/mipsX
6148         on the same command line. Fix error message in cpu processing.
6149         Remove architecture and ISA checks.
6150
6151 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6152
6153         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6154
6155         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6156
6157 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6158
6159         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6160         alternatives.
6161         ("*movv8hi_internal1"): Same.
6162         ("*movv16qi_internal1"): Same.
6163         ("*movv4sf_internal1"): Same.
6164
6165         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6166         not push_reload for altivec modes.
6167
6168 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6169
6170         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6171         all RTEMS targets including removal of #includes from config/*/rtems*.h
6172         file and adding them to tm_file setting. Added xm_defines=POSIX to
6173         many targets.
6174         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6175         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6176         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6177         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6178         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6179         config/m68k/rtemself.h: Ditto.
6180         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6181         config/mips/rtems64.h: Ditto.
6182         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6183         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6184         Ditto.
6185         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6186         config/sparc/rtemself.h: Ditto.
6187         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6188         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6189         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6190         more like arm-elf.
6191         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6192         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6193         target made more similar to i386-elf.
6194         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6195         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6196         be similar to config/m68k/t-m68kelf.
6197         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6198
6199 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6200
6201         * regmove.c (kill_value): Handle subregs.
6202
6203 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6204
6205         * i386.md (mul patterns): Allow memory operand to be first;
6206         add expanders where needed; fix constraints.
6207         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6208         Allow memory operand to be the first.
6209
6210         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6211         operands.
6212
6213 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6214
6215         PR c/5681:
6216         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6217         GET_MODE (x).
6218
6219 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6220
6221         PR optimization/5547:
6222         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6223         all valid IA-32 address modes involving non-scaled %ebx and
6224         GOT/GOTOFF as displacement.
6225
6226 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6227
6228         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6229         after emitting ltorg insns.
6230
6231         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6232         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6233         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6234         *abssf2): Fix "op_type" attribute.
6235
6236 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6237
6238         * mkconfig.sh: Avoid using a subshell redirect.
6239         ($output.T): Change to $(output)T.
6240         (ENABLE_NLS): Remove unneeded undef.
6241
6242         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6243         * config/alpha/x-vms (libsubdir): Define.
6244
6245         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6246         register frame procedures. Optimize retrieving context.
6247
6248         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6249         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6250         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6251
6252 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6253
6254         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6255         Make same change as for find_base_value.
6256
6257 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6258
6259         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6260         of QImode and SImode.
6261
6262 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6263
6264         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6265         length computation of movsi.
6266         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6267
6268 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6269
6270         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6271         operands[2] to register_operand.
6272
6273 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6274
6275         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6276
6277 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6278
6279         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6280         for altivec_lvx* and altivec_stvx*.
6281         ("*movv4si_internal"): Add constraint for loading from GPRs.
6282         ("*movv8hi_internal1"): Same.
6283         ("*movv16qi_internal1"): Same.
6284         ("*movv4sf_internal1"): Same.
6285
6286         * config/rs6000/rs6000.c (altivec_register_operand): New.
6287
6288         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6289         altivec_register_operand.
6290
6291 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6292
6293         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6294         handle SYMBOL_REF.
6295
6296 2002-02-13  Stan Shebs  <shebs@apple.com>
6297
6298         * c-typeck.c (digest_init): Handle vectors.
6299         (really_start_incremental_init): Same.
6300         (pop_init_level): Same.
6301         (process_init_element): Same.
6302
6303         * varasm.c (output_constant): Same.
6304
6305         * expr.c (clear_storage): Same.
6306         (store_constructor): Same.
6307
6308 2002-02-12  Eric Christopher  <echristo@redhat.com>
6309
6310         * explow.c (hard_function_value): Add comment explaining
6311         signed/unsigned comparison.
6312
6313 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6314
6315         * jump.c (never_reached_warning): Add finish argument.
6316         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6317         real insn after end.
6318         * rtl.h (never_reached_warning): Adjust prototype.
6319         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6320         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6321         never_reached_warning.
6322
6323 2002-02-12  Graham Stott  <grahams@redhat.com>
6324
6325         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6326
6327 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6328
6329         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6330         logical shifts on H8/300.
6331         (shift_alg_si): Improve several shifts on H8/300.
6332         (get_shift_alg): Likewise.
6333
6334 2002-02-12  Graham Stott  <grahams@redhat.com>
6335
6336         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6337
6338 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6339
6340         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6341         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6342
6343 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6344
6345         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6346         non-CONST_INT through default_assemble_integer.
6347         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6348         <case 8>: Abort for CONST_DOUBLE.
6349
6350 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6351
6352         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6353         is specified.
6354         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6355         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6356
6357 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6358
6359         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6360
6361 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6362
6363         * regrename.c (regrename_optimize): Don't accept a
6364         part-clobbered register if the replaced register is not part
6365         clobbered.
6366
6367         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6368         take padding into account when computing the argument value.
6369
6370         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6371
6372         * combine.c (try_combine): Apply substitutions in
6373         CALL_INSN_FUNCTION_USAGE too.
6374
6375 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6376
6377         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6378         __builtin_altivec_abs*.
6379         (bdesc_abs): New.
6380
6381         * config/rs6000/rs6000.h (rs6000_builtins): Add
6382         ALTIVEC_BUILTIN_ABS*.
6383
6384         * config/rs6000/altivec.h: Use const char for builtins expecting
6385         literals.
6386         (vec_abs): New versions for C and C++.
6387         (vec_abss): Same.
6388
6389 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6390
6391         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6392         using Pmode.
6393
6394 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6395
6396         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6397         constant definition from h8300.md.
6398         (FRAME_POINTER_REGNUM): Likewise.
6399         * config/h8300/h8300.md (define_constants): Add FP_REG.
6400
6401 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6402
6403         * config/h8300/h8300.c (print_operand): Remove redundant code.
6404
6405 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6406
6407         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6408         * config/h8300/h8300.c (byte_reg): Make it static.
6409
6410 2002-02-10  Richard Henderson  <rth@redhat.com>
6411
6412         PR c/5623
6413         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6414
6415 2002-02-10  Richard Henderson  <rth@redhat.com>
6416
6417         PR c++/5624
6418         * tree.c (append_random_chars): Don't abort if main_input_filename
6419         does not exist.
6420
6421 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6422
6423         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6424
6425 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6426
6427         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6428         (pushhi1): Likewise.
6429
6430 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6431
6432         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6433         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6434
6435 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6436
6437         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6438         remove MASK_VIS.
6439         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6440
6441 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6442
6443         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6444         a half of an SImode register on H8/300.
6445
6446 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6447
6448         * i386.md (movdi_2): Add missing '!'.
6449
6450 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6451
6452         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6453         definitions.
6454
6455 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6456
6457         * config/h8300/h8300.md (length): Correct the distance valid
6458         for the short branch.
6459
6460 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6461
6462         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6463
6464 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6465
6466         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6467         registers in SImode.
6468         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6469         part-clobbered.
6470
6471         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6472         patch.
6473
6474         Contribute sh64-elf.
6475         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6476         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6477         (sh_cannot_modify_jumps_p): New function.
6478         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6479         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6480         (sh_ms_bitfield_layout_p): New function.
6481         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6482                     Zack Weinberg  <zack@codesourcery.com>
6483         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6484         expand_simple_binop instead of expand_binop.
6485         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6486         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6487         use of .quad and .uaquad.
6488         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6489         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6490         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6491         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6492         movdi_const_16bit): Make sure all CONSTs have modes.
6493         (sym2PIC): Ditto, but by adjusting all callers.
6494         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6495         if the prologue calls the SHmedia argument decoder or register
6496         saver.
6497         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6498         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6499         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6500         (sh_expand_epilogue): Don't emit USE of return target register.
6501         (prepare_move_operands): Legitimize DImode PIC addresses.
6502         (sh_media_register_for_return): Skip tr0, used to initialize the
6503         PIC register.
6504         (sh_expand_prologue): Remove explicit USE of return register.
6505         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6506         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6507         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6508         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6509         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6510         EXTRA_CONSTRAINT_T.
6511         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6512         (MOVI_SHORI_BASE_OPERAND_P): New.
6513         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6514         (EXTRA_CONSTRAINT_T): Define in terms of them.
6515         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6516         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6517         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6518         alternatives supporting TARGET_REGS.
6519         (UNSPEC_GOTPLT): New constant.
6520         (movdi split): Move incrementing of LABEL_NUSES...
6521         (movdi_const, movdi_const_32bit): Here.  Use
6522         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6523         (movdi_const_16bit): New.
6524         (call, call_value) [flag_pic]: Use GOTPLT.
6525         (call_pop, call_value_pop): New expands.
6526         (call_pop_compact, call_pop_rettramp): New insns.
6527         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6528         (sibcall) [flag_pic]: Use GOT.
6529         (builtint_setjmp_receiver): Remove bogus, unused expand.
6530         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6531         (*pt, *ptb, ptrel): New insns.
6532         (sym2GOT): Handle DImode GOT.
6533         (sym2GOTPLT, symGOTPLT2reg): New expands.
6534         (sym2PIC): New expand.
6535         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6536         (shcompact_return_tramp_i): Use return register explicitly.
6537         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6538         disable flag_reorder_blocks.
6539         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6540         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6541         clobbers, for clarity.
6542         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6543         restoring of r0 in macl as MAYBE_DEAD.
6544         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6545         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6546         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6547         alter_subreg all over.
6548         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6549         reload, instead of emitting instructions that would require
6550         reloading.
6551         (casesi_load_media): Add missing modes.
6552         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6553         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6554         as used if the argument decoder is called.
6555         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6556         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6557         Pmode, then extend it to DImode if necessary.
6558         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6559         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6560         constants in FPU-enabled SHmedia, let them be loaded from memory.
6561         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6562         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6563         Adjust whitespace in assembly output templates.
6564         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6565         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6566         mode of if_then_else.
6567         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6568         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6569         sh.h.
6570         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6571                     Joern Rennecke <amylaar@redhat.com>
6572         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6573         (SUBTARGET_CPP_PTR_SPEC): New.
6574         (SUBTARGET_CPP_SPEC): Remove.
6575         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6576         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6577         Fix typo in previous checkin.
6578         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6579         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6580         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6581                     Alexandre Oliva  <aoliva@redhat.com>
6582         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6583         what single FP register can hold for SHmedia target.
6584         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6585                     Alexandre Oliva  <aoliva@redhat.com>
6586         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6587         Do not split into SUBREG.
6588         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6589         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6590         and added new functions as specified in SH5 ABI r9.
6591         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6592         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6593         8-byte boundary.
6594         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6595         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6596         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6597         and consttable_window_ends.
6598         2001-06-03  Graham Stott  <grahams@redhat,com>
6599         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6600         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6601         * config/sh/sh.c (print_operand): Handle floating-point pair,
6602         vector and matrix registers.
6603         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6604         vector modes into account.
6605         * config/sh/sh.md (movv2sf): Split move between registers into
6606         movdf.
6607         (movv4sf, movv16sf): Introduce insns that get split only after
6608         reload.
6609         * config/sh/shmedia.h: Fix Copyright dates.
6610         * config/sh/ushmedia.h: Likewise.  Move loop counter
6611         declarations into conditionals that uses them.
6612         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6613         loop boundary.
6614         * config/sh/sshmedia.h: Fix Copyright dates.
6615         (sh_media_PUTCFG): Fix constraints.
6616         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6617         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6618         ptrmemfunc_vbit_in_delta for SH5.
6619         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6620         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6621         * invoke.texi: Likewise.
6622         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6623         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6624         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6625         GCC_pop_shmedia_regs_nofpu): New global symbols.
6626         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6627         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6628         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6629         compact function with nonlocal labels.
6630         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6631         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6632         (initial_elimination_offset): Account for their stack space.
6633         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6634         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6635         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6636         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6637         least one of the operands to be a register.
6638         (movv2sf): Likewise.  Renamed to movv2sf_i.
6639         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6640         prepare_move_operands() before emitting SHmedia insns.
6641         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6642         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6643         Don't save nor initialize r12.  Don't mis-align the stack.
6644         Pad the code with a nop.
6645         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6646         stack.
6647         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6648         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6649         [__SHMEDIA__]: Implement.
6650         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6651         * config/sh/sh.md: Set latency of `pt' closer to reality.
6652         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6653         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6654         Set move, load and store type attributes.
6655         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6656         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6657         profiling.
6658         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6659         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6660         * config/sh/sh.c (sh_media_register_for_return): New function.
6661         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6662         branch-target register.
6663         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6664         * config/sh/sh.md (return_media_i): Use any call-clobbered
6665         branch-target register.
6666         (return_media): If r18 wasn't copied in the prologue, copy it
6667         here.
6668         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6669         Clear class FP0_REGS.
6670         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6671         from elf.h.
6672         2001-03-08  DJ Delorie  <dj@redhat.com>
6673         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6674         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6675         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6676         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6677         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6678         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6679         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6680         return value correctly for call_cookie.
6681         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6682         * config/sh/crt1.asm (start): Modified so as to call
6683         ___setup_argv_and_call_main.
6684         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6685         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6686         SHmedia mode.
6687         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6688         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6689         (STRIP_NAME_ENCODING): Use it.
6690         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6691         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6692         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6693         prepare_scc_operands().
6694         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6695         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6696         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6697         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6698         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6699         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6700         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6701         used in shcompact_incoming_args.
6702         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6703         change.
6704         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6705         mode.
6706         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6707         Adjust accordingly.
6708         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6709         Simplify.  Adjust.  Add sanity check.
6710         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6711         FPU_SINGLE_BIT.
6712         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6713         TARGET_SHCOMPACT.
6714         (udivsi3, divsi3): Use them.
6715         (force_mode_for_call): New insn.
6716         (call, call_value, sibcall_value): Emit it before SHcompact
6717         calls.
6718         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6719         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6720         call cookie is non-NULL before taking its value.
6721         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6722         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6723         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6724         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6725         block.
6726         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6727         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6728         temporary for stack adjusts.  Use MACL and MACH to pass
6729         arguments to shcompact_incoming_args.
6730         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6731         clobber r1.
6732         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6733         (nested_trampoline): Load static chain address into r1.
6734         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6735         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6736         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6737         fp_arith_reg_operand().
6738         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6739         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6740         and use signed compares for them.
6741         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6742         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6743         ones properly aligned.
6744         (find_barrier): Account for extra alignment needed for 8-byte wide
6745         constants.
6746         (machine_dependent_reorg): Require a label for the second 4-byte
6747         constant after an 8-byte one.
6748         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6749         change.
6750         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6751         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6752         last_float when switching float modes.
6753         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6754         auto-increment for general-purpose registers.
6755         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6756         result.
6757         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6758         for stack adjust.
6759         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6760         registers for varargs.
6761         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6762         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6763         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6764         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6765         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6766         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6767         call_cookie accordingly.
6768         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6769         (SHCOMPACT_BYREF): Likewise.
6770         (SHCOMPACT_FORCE_ON_STACK): New macro.
6771         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6772         (sh_builtin_saveregs): Likewise.
6773         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6774         shcompact_incoming_args): Use new shift values.  Support
6775         sequences of consecutive and non-consecutive pushes/pops.
6776         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6777         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6778         * config/sh/sh.h (TEXT_SECTION): Define.
6779         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6780         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6781         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6782         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6783         return values on FPU-enabled SHmedia.
6784         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6785         FPU-enabled SHmedia.
6786         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6787         value is returned in a non-FP reg and is not returned by
6788         reference.
6789         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6790         jump_ind.
6791         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6792         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6793         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6794         quad-aligned to be passed by callee-copy reference.
6795         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6796         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6797         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6798         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6799         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6800         copying low-numbered FP regs to r7 and r8.
6801         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6802         FP regs to general-purpose regs only if the copy was passed on the
6803         stack.
6804         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6805         copying FP reg to r9.
6806         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6807         copy FP regs to general-purpose regs only in outgoing calls.
6808         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6809         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6810         HOST_WIDE_INT.
6811         * config/sh/sh.h (struct sh_args): Document all fields.
6812         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6813         passed partially on the stack should not consider making
6814         sibcalls.
6815         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6816         stack_regs only for incoming calls.  When passing FP args,
6817         make sure there are FP regs available before modifying
6818         call_cookie.
6819         (SHCOMPACT_BYREF): Pass double args in general-purpose
6820         registers by reference.
6821         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6822         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6823         attempt to generate sibcalls if the caller got any arguments
6824         by reference.
6825         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6826         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6827         to 8-byte boundaries.
6828         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6829         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6830         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6831         stored in the stack.
6832         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6833         for the offsets to have the ISA bit set.
6834         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6835         invocation.  Use beq instead of bgt to mark end of sequence of
6836         loads.
6837         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6838         bgt to mark end of sequence of stores.
6839         * config/sh/sh.c (arith_operand): Don't check whether
6840         CONST_OK_FOR_J for now.
6841         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6842         instead of long for conversion.
6843         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6844         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6845         before passing it to fprintf.
6846         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6847         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6848         Call set_fpscr before reading/writing SR.
6849         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6850         Call set_fpscr.
6851         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6852         SHmedia code.
6853         (FMOVD_WORKS): Define on SH5 with FPU.
6854         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6855         setting.
6856         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6857         _fpscr_values.
6858         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6859         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6860         address.
6861         (ia_main_table): Ditto.
6862         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6863         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6864         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6865         the definitions from sh.h.
6866         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6867         TARGET_SH5.
6868         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6869         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6870         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6871         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6872         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6873         Increment LABEL_NUSES.
6874
6875         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6876         TARGET_SH5.
6877         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6878         defined.
6879         * config/sh/elf.h (SIZE_TYPE): Likewise.
6880         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6881         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6882         shcompact_incoming_args): Load switch table addresses using
6883         datalabel.
6884         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6885         (NO_BUILTIN_SIZE_TYPE): Define.
6886         (SIZE_TYPE): Don't define.
6887         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6888         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6889         definition of __SH5__=32 for -m5-compact-nofpu.
6890         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6891         ADDR_DIFF_VEC.
6892         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6893         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6894         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6895         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6896         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6897         (INSN_LENGTH_ALIGNMENT): Likewise.
6898         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6899         * config/sh/sh.md (call, call_value, sibcall): Simplify
6900         copying of non-branch-target register.
6901         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6902         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6903         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6904         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6905         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6906         floating-point values as structs.
6907         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6908         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6909         general-purpose register.
6910         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6911         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6912         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6913         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6914         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6915         (ENCODE_SECTION_INFO): Enclose variables and constants in
6916         DATALABEL unspecs.
6917         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6918         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6919         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6920         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6921         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6922         SH_DATALABEL_ENCODING to the symbol name.
6923         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6924         convert_mode().
6925         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6926         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6927         UNSPEC_DATALABEL.
6928         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6929         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6930         (DATALABEL_REF_P): Don't require CONST.
6931         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6932         REL label.
6933         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6934         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6935         right.
6936         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6937         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6938         Use shallow_copy_rtx and PUT_MODE to change the mode of
6939         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6940         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6941         on SHmedia using GENERAL_REGs.
6942         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6943         bltu_media_i): Fix reversion of conditions.
6944         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6945         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6946         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6947         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6948         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6949         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6950         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6951         (GCC_nested_trampoline): Likewise.
6952         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6953         * config/sh/sh.c (gen_datalabel_ref): Define.
6954         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6955         (INITIALIZE_TRAMPOLINE): Likewise.
6956         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6957         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6958         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6959         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6960         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6961         (ic_invalidate): Adjust for SH5.
6962         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6963         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6964         _nested_trampoline.
6965         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6966         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6967         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6968         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6969         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6970         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6971         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6972         * config/sh/sh.c (target_reg_operand): Match only target-branch
6973         registers and pseudos that aren't virtual registers.
6974         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6975         Copy operands that don't match target_reg_operand to pseudos.
6976         (call_media, call_value_media, sibcall_media): Use
6977         target_reg_operand instead of target_operand.
6978         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6979         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6980         * config/sh/sh.c (target_reg_operand): Match hardware registers
6981         other than branch-target registers.
6982         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6983         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6984         (fpscr_values) [SH5 == 32]: Define.
6985         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6986         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6987         Handle function addresses coming in SUBREGs.
6988         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6989         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6990         shcompact_return_trampoline): Use datalabel where appropriate.
6991         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6992         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6993         general-purpose register to copy one branch-target register to
6994         another.
6995         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6996         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6997         SYMBOL_REFs with VOIDmode.
6998         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6999         bltu_media_i): New insns.
7000         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7001         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7002         (INIT_CUMULATIVE_ARGS): Likewise.
7003         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7004         * machmode.def (V16SFmode): New mode.
7005         * c-common.c (type_for_mode): Support V2SF and V16SF.
7006         * tree.c (build_common_tree_nodes_2): Likewise.
7007         * tree.h (tree_index): Likewise.
7008         * calls.c (emit_call_1): Take args_so_far.  Adjust all
7009         callers.  Introduce CALL_POPS_ARGS.
7010         * tm.texi (CALL_POPS_ARGS): Document.
7011         * config/sh/crt1.asm: Implement in SHmedia mode.
7012         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7013         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7014         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7015         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7016         Implement divsi and udivsi in SHmedia mode.  Introduce
7017         SHcompact trampolines.
7018         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7019         only in SHmedia64.
7020         (regno_reg_class): Rewrite.
7021         (fp_reg_names): Remove.
7022         (sh_register_names, sh_additional_register_names): New.
7023         (print_operand): Added `u'.  Support SUBREGs in addresses.
7024         Add parentheses around shifted CONSTs.
7025         (output_file_start): Output .mode and .abi directives.
7026         (shiftcosts, addsubcosts, multcosts): Adjust.
7027         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
7028         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
7029         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
7030         bytes, not registers.  Take into account the need for the
7031         SHcompact incoming args trampoline.  Adjust all callers.
7032         (sh_expand_prologue): Take stack_regs into account.  Call
7033         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
7034         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
7035         stack aligned as per SH5 ABI.
7036         (sh_builtin_saveregs): Support SH5 ABI.
7037         (sh_build_va_list, sh_va_start): Likewise.
7038         (initial_elimination_offset): Take alignment into account.
7039         Compute location of PR according to the SH5 stack frame.
7040         (arith_reg_operand): Reject branch-target registers.
7041         (shmedia_6bit_operand): New.
7042         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7043         (target_reg_operand): Match DImode only.  Accept SUBREGs.
7044         (target_operand): New.
7045         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7046         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
7047         SIBCALL_REGS for SHmedia.
7048         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7049         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7050         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7051         (TARGET_SWITCHES): New SH5 flags.
7052         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
7053         VALID_REGISTER_P to disable unsupported registers.
7054         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7055         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7056         (FUNCTION_ARG_PADDING): Define.
7057         (FASTEST_ALIGNMENT): Adjust.
7058         (SH_REGISTER_NAMES_INITIALIZER): New.
7059         (sh_register_names): Declare.
7060         (DEBUG_REGISTER_NAMES): Define.
7061         (REGISTER_NAMES): Define based on sh_register_names.
7062         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7063         (sh_additional_register_names): Declare.
7064         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7065         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7066         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7067         (REGISTER_NATURAL_MODE): Define.
7068         (FIRST_PSEUDO_REGISTER): Adjust.
7069         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7070         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7071         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7072         (VECTOR_MODE_SUPPORTED_P): Define.
7073         (REG_CLASS_CONTENTS): Adjust.
7074         (SMALL_REGISTER_CLASSES): Adjust.
7075         (REG_ALLOC_ORDER): Adjust.
7076         (INDEX_REG_CLASS): Adjust.
7077         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7078         (CONST_OK_FOR_LETTER_P): Adjust.
7079         (PREFERRED_RELOAD_CLASS): Adjust.
7080         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7081         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7082         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7083         (FIRST_FP_PARM_REG): Adjust.
7084         (CALL_POPS_ARGS): Define.
7085         (FUNCTION_ARG_REGNO_P): Adjust.
7086         (struct sh_args): New fields.
7087         (GET_SH_ARG_CLASS): Adjust.
7088         (INIT_CUMULATIVE_ARGS): Adjust.
7089         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7090         (FUNCTION_ARG_ADVANCE): Adjust.
7091         (FUNCTION_ARG): Adjust.
7092         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7093         (FUNCTION_ARG_CALLEE_COPIES): Define.
7094         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7095         (STRICT_ARGUMENT_NAMING): Define.
7096         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7097         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7098         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7099         (SETUP_INCOMING_VARARGS): Adjust.
7100         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7101         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7102         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7103         (SUBREG_OK_FOR_INDEX_P): Adjust.
7104         (EXTRA_CONSTRAINT_S): Update.
7105         (EXTRA_CONSTRAINT_T): New.
7106         (EXTRA_CONSTRAINT): Adjust.
7107         (GO_IF_LEGITIMATE_INDEX): Adjust.
7108         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7109         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7110         (MOVE_MAX): Adjust.
7111         (MAX_MOVE_MAX): Define.
7112         (Pmode): Adjust.
7113         (CONST_COSTS): Adjust.
7114         (REGISTER_MOVE_COST): Adjust.
7115         (BRANCH_COST): Adjust.
7116         (TEXT_SECTION_ASM_OP): Adjust.
7117         (DBX_REGISTER_NUMBER): Adjust.
7118         (ASM_OUTPUT_DOUBLE_INT): New.
7119         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7120         (PREDICATE_CODES): Adjust.
7121         (PROMOTE_MODE): Adjust.
7122         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7123         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7124         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7125         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7126         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7127         (TR0_REG, TR1_REG, TR2_REG): New.
7128         (XD0_REG): Renumber.
7129         (UNSPEC_COMPACT_ARGS): New.
7130         (type): Added pt and ptabs.
7131         (length): Default to 4 on SHmedia.  Default pt length to 12
7132         and     20 on SHmedia32 and SHmedia64, respectively.
7133         (pt): New function unit.
7134         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7135         Add whitespace between operands of SHmedia instructions.
7136         (movdicc): Fix.
7137         (adddi3_media, addsi3_media): Adjust constraints.
7138         (subsi3) [SHmedia]: Force operand 1 into a register.
7139         (udivsi3_i1_media, udivsi3_i4_media): New.
7140         (udivsi3): Support SHmedia.
7141         (divsi3_i1_media, divsi3_i4_media): New.
7142         (divsi3): Support SHmedia.
7143         (anddi3, iordi3, xordi3): Adjust constraints.
7144         (zero_extendhidi2, zero_extendqidi2): New.
7145         (extendsidi2, extendhidi2, extendqidi2): New.
7146         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7147         (pop_e, pop_fpul, pop_4): Likewise.
7148         (movsi_media): Support FP and BT registers.
7149         (movsi_media_nofpu): New.  Adjust splits to DImode.
7150         (lduw, ldub): Renamed to zero_extend* above.
7151         (movqi_media): Fix typo.
7152         (movdi_media): Support FP and BT registers.
7153         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7154         (movdi_const_32bit): New.
7155         (shori_media): Require immediate operand.  Use `u' for output.
7156         (movdf_media, movsf_media): Simplified.
7157         (movdf_media_nofpu, movsf_media_nofpu): New.
7158         (movdf, movsf): Adjust
7159         (movv2sf, movv2sf, movv16sf): New.
7160         (beq_media, beq_media_i): Adjust constraints.  Don't use
7161         scratch BT register.
7162         (bne_media, bne_media_i): Likewise.
7163         (bgt_media, bgt_media_i): Likewise.
7164         (bge_media, bge_media_i): Likewise.
7165         (bgtu_media, bgtu_media_i): Likewise.
7166         (bgeu_media, bgeu_media_i): Likewise.
7167         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7168         bunordered): Emit jump insn.  Force operands to registers when
7169         needed.
7170         (jump_media, jump): Simplify.
7171         (call_compact, call_compact_rettramp): New.
7172         (call_value_compact, call_value_compact_rettramp): New.
7173         (call_media, call_value_media): Simplify.
7174         (sibcall_compact, sibcall_media): New.
7175         (call, call_value): Adjust for SHmedia and SHcompact.
7176         (sibcall, sibcall_value, untyped_call): Likewise.
7177         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7178         (indirect_jump): Adjust for SHmedia.
7179         (casesi_jump_media): New.
7180         (nop): Re-enable for SHmedia.
7181         (call_site): Restrict to SH1.
7182         (casesi): Adjust for SHmedia.
7183         (casesi_shift_media, casesi_load_media): New.
7184         (return): Explicitly use PR register.  Call return trampoline
7185         on SHcompact.
7186         (return_i): Explicitly use PR register.
7187         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7188         (return_media): Adjust.
7189         (shcompact_incoming_args): New.
7190         (epilogue): Adjust.
7191         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7192         (movstrsi): Disable on SH5.
7193         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7194         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7195         (subsf3, subsf3_media): Likewise.
7196         (mulsf3, mulsf3_media, mac_media): Likewise.
7197         (divsf3, divsf3_media): Likewise.
7198         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7199         (floatsisf2, fux_truncsfsi2): Likewise.
7200         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7201         constraints.
7202         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7203         (cmpunsf_media, cmpsf): Likewise.
7204         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7205         (abssf2, abssf2_media): Likewise.
7206         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7207         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7208         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7209         (floatsidf2, fix_truncdfsi2): Likewise.
7210         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7211         constraints.
7212         (cmpeqdf_media, cmpgtdf_media): Likewise.
7213         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7214         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7215         (absdf2, absdf2_media): Likewise.
7216         (extendsfdf2, extendsfdf2_media): Likewise.
7217         (truncsfdf2, truncsfdf2_media): Likewise.
7218         * config/sh/sh64.h: New file.
7219         * config/sh/t-sh64: New file.
7220         * config/sh/shmedia.h: New file.
7221         * config/sh/ushmedia.h: New file.
7222         * config/sh/sshmedia.h: New file.
7223         * configure.in: Added sh64-*-elf.
7224         * configure: Rebuilt.
7225         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7226         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7227         (reg_class_from_letter): Use `b' for TARGET_REGS.
7228         (print_operand): Support `%M', `%m', `AND' and
7229         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7230         (andcosts): Adjust for SHmedia.
7231         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7232         Likewise.
7233         (target_reg_operand): New function.
7234         * config/sh/sh-protos.h (target_reg_operand): Declare.
7235         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7236         FP registers on SH5.
7237         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7238         on SH4.
7239         (TARGET_REGISTER_P): New macro.
7240         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7241         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7242         (EXTRA_CONSTRAINT_S): New macro.
7243         (EXTRA_CONSTRAINT): Adjust.
7244         (FLOAT_TYPE_SIZE): Define to 32.
7245         (Pmode): DImode on SHmedia.
7246         (CONST_COSTS): Adjust for SHmedia literals.
7247         (PREDICATE_CODES): Added target_reg_operand.
7248         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7249         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7250         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7251         (cmpdi): Accept SHmedia.
7252         (movdicc_false, movdicc_true): New insns.
7253         (movdicc): New expand.
7254         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7255         no_new_pseudos.
7256         (addsi3_media): Match `S' constraint.
7257         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7258         (negdi2): Expand for SHmedia.
7259         (one_cmpldi2): New expand.
7260         (zero_extendsidi2): Change from expand to insn.
7261         (extendsidi2): Add constraints.
7262         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7263         LD/ST address.  Fix SI immediate loading split.
7264         (movhi_media, movqi_media, lduw, ldub): New insns.
7265         (movhi, movqi): Accept SHmedia.
7266         (shori_media, movdi_media): Relax input constraints.  Split
7267         symbolic constants.
7268         (movdf_media, movsf_media): New insn.  New split to movdi.
7269         (movdf, movsf): Match on SHmedia.
7270         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7271         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7272         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7273         (bunordered): New expand.
7274         (jump_compact): Renamed from `jump'.
7275         (jump_media): New insn.
7276         (jump): New expand.
7277         (call_media, call_value_media): New insns.
7278         (call, call_value): Adjust.
7279         (indirect_jump_compact): Renamed from `indirect_jump'.
7280         (indirect_jump_media): New insn.
7281         (indirect_jump): New expand.
7282         (untyped_call, return): Accept SHmedia.
7283         (return_media): New insn.
7284         (prologue, epilogue, blockage): Accept SHmedia.
7285         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7286         (sunordered): New expand.
7287         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7288         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7289         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7290         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7291         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7292         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7293         abssf2_media): New insns.
7294         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7295         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7296         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7297         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7298         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7299         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7300         absdf2_media): New insns.
7301         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7302         (extendsfdf2_media, truncdfsf2_media): New insns.
7303         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7304         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7305         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7306         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7307         * config/sh/sh.md (adddi3): New expand.
7308         (adddi3_media, adddi3z_media): New insns.
7309         (adddi3_compact): Renamed from adddi3.
7310         (addsi3_media): Use add.l r63 to add constant zero.
7311         (subdi3): New expand.
7312         (subdi3_media): New insn.
7313         (subdi3_compact): Renamed from subdi3.
7314         (mulsidi3): New expand.
7315         (mulsidi3_media): New insn.
7316         (mulsidi3_compact): Renamed from mulsidi3.
7317         (umulsidi3): New expand.
7318         (umulsidi3_media): New insn.
7319         (umulsidi3_compact): Renamed from umulsidi3.
7320         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7321         (ashlsi3, ashrsi3, lshrsi3): Use them.
7322         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7323         (ashldi3, ashrdi3, lshrdi3): Use them.
7324         (zero_extendsidi2): New expand.
7325         (extendsidi2): New insn.
7326         (movsi_media): New insn.  Split to movdi to load constants.
7327         (movsi): Enable for shmedia.
7328         (movdi_media): New insn.  Use shori_media to load wide constants.
7329         (short_media): New insn.
7330         (movdi): Enable for shmedia.
7331         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7332         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7333         (SUBTARGET_CPP_SPEC): Added `!m5'.
7334         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7335         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7336         to all other SH variants.
7337         (TARGET_DEFAULT): Set to SH1_BIT.
7338         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7339         (BITS_PER_WORD): Raise to 64 on shmedia.
7340         (MAX_BITS_PER_WORD): Change to 64.
7341         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7342         (INT_TYPE_SIZE): Keep as 32.
7343         (UNITS_PER_WORD): Raise to 8 on shmedia.
7344         (MIN_UNITS_PER_WORD): Keep as 4.
7345         (POINTER_SIZE): Raise to 64 on shmedia.
7346         (CONST_OK_FOR_J): New macro.
7347         (CONST_OK_FOR_LETTER_P): Use it.
7348         (processor_type): Add PROCESSOR_SH5.
7349         * config/sh/sh.md: Conditionalize all expands, insns and
7350         splits to TARGET_SH1.
7351         (cpu): Added sh5.
7352         (addsi3_compact): Renamed from...
7353         (addsi3): Now an expand.
7354         (addsi3_media, subsi3_media): New insns.
7355         (subsi3): Don't negate constants with SHmedia.
7356
7357         * hooks.c: New file.
7358         * hooks.h: New file.
7359         * Makefile.in (HOOKS_H): New.
7360         (TARGET_DEF_H): Added $(HOOKS_H).
7361         (OBJS): Added hooks.o.
7362         (cfgcleanup.o, bb-reorder.o): Added target.h.
7363         (hooks.o): Added dependencies.
7364         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7365         (TARGET_INITIALIZER): this.
7366         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7367         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7368         * bb-reorder.c: Include target.h.
7369         (reorder_basic_blocks): Skip if cannot modify jumps.
7370         * cfgcleanup.c: Include target.h.
7371         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7372
7373 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7374
7375         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7376         Protect jump delay slot instructions with .set noreorder and
7377         .set nomacro.
7378
7379 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7380
7381         * config/mips/mips.md (casesi_internal_di): Calculate
7382         the index into the target offset table correctly.
7383
7384 2002-02-08  Richard Henderson  <rth@redhat.com>
7385
7386         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7387         * final.c (output_addr_const): Accept and discard SUBREG.
7388         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7389         mark them unknown instead.
7390         (simplify_subtraction): Handle RTX_UNKNOWN.
7391         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7392
7393 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7394
7395         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7396
7397 2002-02-08  Richard Henderson  <rth@redhat.com>
7398
7399         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7400
7401 2002-02-08  Andreas Jaeger  <aj@suse.de>
7402
7403         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7404         * config/i386/t-linux64: New file.
7405
7406 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7407
7408         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7409         * c-parse.in (compstmt): Clear last_expr_type.
7410
7411 2002-02-07  Richard Henderson  <rth@redhat.com>
7412
7413         * loop.c (strength_reduce): Sink final_value when not
7414         eliminating a biv.
7415
7416 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7417
7418         * config/sparc/freebsd.h: Fix mismatched spec {.
7419
7420 2002-02-07  Richard Henderson  <rth@redhat.com>
7421
7422         * cfgrtl.c: Include recog.h and insn-config.h.
7423         (keep_with_call_p): Fix general_operand invocation.
7424         * Makefile.in (cfgrtl.o): Update dependencies.
7425
7426 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7427
7428         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7429         comment.  Accept HImode only if TARGET_H8300.
7430
7431 2002-02-07  Eric Christopher  <echristo@redhat.com>
7432
7433         * config/mips/crtn.asm: Cleanup #ifdefs.
7434
7435 2002-02-07  Eric Christopher  <echristo@redhat.com>
7436
7437         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7438         register 7 as RA instead of $31.
7439         * config/mips/crtn.asm: Ditto.
7440         * config/mips/mips.c (mips_move_2words): Add case for
7441         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7442         (compute_frame_size): Fix typo.
7443         (save_restore_insns): Ditto.  Make documentation about using
7444         register $7 as return register more precise.
7445         (mips_expand_epilogue): Fix comment. Add code to work around not
7446         being able to add to the stack pointer directly.
7447         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7448         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7449         epilogue.
7450
7451 2002-02-07  Tom Rix  <trix@redhat.com>
7452
7453         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7454         immediates in ldu and stdu DS opcode field.
7455         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7456         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7457         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7458
7459 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7460
7461         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7462         offset for stack bias.
7463
7464 2002-02-07  H.J. Lu <hjl@gnu.org>
7465
7466         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7467
7468 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7469
7470         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7471
7472 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7473
7474         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7475         * i386.c (x86_order_regs_for_local_alloc): New global function.
7476         * i386.h (REG_ALLOC_ORDER): CLeanup.
7477         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7478
7479 2002-02-07  Richard Henderson  <rth@redhat.com>
7480
7481         PR optimization/2463
7482         * alias.c (find_base_value): Recall base values for fixed hard regs.
7483         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7484
7485 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7486
7487         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7488         length.
7489
7490 2002-02-06  Richard Henderson  <rth@redhat.com>
7491
7492         PR c/5609
7493         * stmt.c (resolve_operand_name_1): Take more care with mixed
7494         named and unnamed operands.
7495
7496 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7497             Jan Hubicka  <jh@suse.cz>
7498
7499         * loop.c (remove_constant_addition): Avoid clobbering a shared
7500         CONST expression.
7501
7502 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7503
7504         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7505         * config/s390/t-linux64: New file.
7506         * config/s390/libgcc-glibc.ver: New file.
7507
7508 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7509
7510         * config/s390/linux64.h: Delete file.
7511         * config/s390/s390x.h: New file.
7512         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7513         as target header file.
7514         * config/s390/linux.h (TARGET_VERSION): Define depending on
7515         DEFAULT_TARGET_64BIT.
7516         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7517         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7518         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7519         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7520         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7521         (EXTRA_SPEC): New define.
7522         * config/s390/s390.h (TARGET_VERSION): Define depending on
7523         DEFAULT_TARGET_64BIT.
7524         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7525
7526 2002-02-06  Jason Merrill  <jason@redhat.com>
7527
7528         * c-decl.c (finish_function): Warn about a non-void function with
7529         no return statement and no abnormal exit.
7530         (current_function_returns_abnormally): New variable.
7531         (start_function): Clear it.
7532         (struct c_language_function): Add returns_abnormally.
7533         (push_c_function_context): Save it.
7534         (pop_c_function_context): Restore it.
7535         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7536         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7537         an explicit return type.
7538         * c-tree.h: Declare current_function_returns_abnormally.
7539         (C_FUNCTION_IMPLICIT_INT): New macro.
7540         * c-typeck.c (build_function_call): Set it.
7541         (c_expand_return): Set current_function_returns_value even if the
7542         value is erroneous.
7543
7544 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7545
7546         PR c/5420:
7547         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7548         unsafe for reevaluation.
7549
7550 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7551
7552         PR c/5482:
7553         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7554         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7555
7556 2002-02-06  Richard Henderson  <rth@redhat.com>
7557
7558         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7559         be a general_operand.  Dest for function value must be a pseudo.
7560
7561 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7562
7563         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7564         as SYMBOL_REFs from the constant pool.
7565
7566 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7567
7568         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7569         passed by invisible reference.
7570
7571 2002-02-05  Richard Henderson  <rth@redhat.com>
7572
7573         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7574
7575 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7576
7577         Implement using "base addresses" in insn operands as default.
7578         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7579         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7580         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7581         used to read the rtx value.
7582         (mmix_target_asm_function_epilogue): Fix spacing.
7583         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7584         (mmix_legitimate_address): Ditto.
7585         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7586         should be loaded with a GETA insn.  Don't allocate needless extra
7587         char for nul termination and fix misleading comment.
7588         (mmix_print_operand_address): Handle constants if
7589         TARGET_BASE_ADDRESSES.
7590         (mmix_output_register_setting): Use base addressing if
7591         TARGET_BASE_ADDRESSES and the number of insns is 3.
7592         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7593         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7594         to use R as constraint, add LDA to match s.
7595         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7596         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7597         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7598         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7599         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7600         order with other fixed registers.
7601         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7602         other parameter/call-clobbered registers.
7603         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7604         -mbase-addresses, -mno-base-addresses.
7605         (MMIX Options): Ditto.
7606
7607 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7608
7609         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7610
7611 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7612
7613         * config/rs6000/altivec.h: Change elem to _S_elem.
7614
7615 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7616
7617         * config/netbsd.h (WCHAR_TYPE): Define.
7618         (WCHAR_TYPE_SIZE): Ditto.
7619         (WINT_TYPE): Ditto.
7620         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7621         (WCHAR_UNSIGNED): Ditto.
7622         (WCHAR_TYPE_SIZE): Ditto.
7623         (WINT_TYPE): Ditto.
7624         * config/arm/netbsd.h: Likewise.
7625         * config/i386/netbsd-elf.h: Likewise.
7626         * config/i386/netbsd.h: Likewise.
7627         * config/m68k/netbsd-elf.h: Likewise.
7628         * config/m68k/netbsd.h: Likewise.
7629         * config/ns32k/netbsd.h: Likewise.
7630         * config/sparc/netbsd.h: Likewise.
7631         * config/vax/netbsd.: Likewise.
7632
7633 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7634
7635         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7636         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7637         (TARGET_INITIALIZER): this.
7638         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7639         (BITFIELD_NBYTES_LIMITED): Markup fix.
7640         * tree.h (default_ms_bitfield_layout_p): Declare.
7641         (record_layout_info): Added prev_field.
7642         * tree.c (default_ms_bitfield_layout_p): New fn.
7643         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7644         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7645         * stor-layout.c: Include target.h.
7646         (start_record_layout): Initialize prev_field.
7647         (place_field): Handle MS bit-field layout, and disregard
7648         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7649         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7650         * Makefile.in (stor-layout.o): Adjust dependencies.
7651
7652 2002-02-05  Jason Merrill  <jason@redhat.com>
7653
7654         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7655
7656 2002-02-05  Andreas Jaeger  <aj@suse.de>
7657
7658         * crtstuff.c: Fix comments.
7659
7660 2002-02-05  Richard Henderson  <rth@redhat.com>
7661
7662         PR fortran/3393
7663         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7664         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7665
7666         PR fortran/3392
7667         * config/mips/mips.c (function_arg): Handle TImode.
7668         (function_arg_advance): Likewise.
7669
7670 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7671
7672         * config/rs6000/altivec.h (vec_step_help): Rename to
7673         __vec_step_help.
7674
7675 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7676
7677         * config/rs6000/altivec.h: Fix typos.
7678
7679 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7680
7681         * config/arm/netbsd.h: Correct a comment.
7682
7683 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7684
7685         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7686         building void typed builtins.
7687
7688         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7689         (vec_step): Implement for C++.
7690
7691 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7692
7693         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7694
7695 2002-02-04  Richard Henderson  <rth@redhat.com>
7696
7697         * combine.c (nonzero_bits): Re-introduce special case for
7698         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7699
7700 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7701
7702         * doc/extend.texi: Warn about unsupported usage of altivec
7703         builtins.
7704
7705         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7706         (altivec_predicate_*): New.
7707
7708         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7709         Add C++ version of vec_*() functions.
7710
7711         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7712         (bdesc_2arg): Remove altivec predicates.
7713         (altivec_expand_builtin): Handle predicates.
7714         (altivec_init_builtins): Handle predicates.
7715         (altivec_expand_predicate_builtin): New.
7716
7717 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7718
7719         * pa.c (DO_FRAME_NOTES): Move forward.
7720         (store_reg): Revise handling of frame notes.
7721         (load_reg): Likewise.
7722         (set_reg_plus_d): Likewise.
7723         (hppa_expand_prologue): Likewise.
7724         (hppa_expand_epilogue): Likewise.
7725
7726 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7727
7728         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7729
7730 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7731
7732         PR c/4475, c++/3780:
7733         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7734         * c-common.h (SWITCH_TYPE): Define.
7735         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7736         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7737         Rename spareness variable to sparseness.
7738         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7739         if non-NULL instead of TREE_TYPE (orig_index).
7740         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7741         (expand_end_case): Define using expand_end_case_type.
7742         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7743         to expand_end_case_type.
7744         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7745
7746 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7747
7748         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7749         (BIGGEST_ALIGNMENT): Change to 128.
7750
7751 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7752
7753         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7754
7755 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7756
7757         * pa.md (call_internal_reg_64bit): Remove unused variable.
7758
7759 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7760
7761         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7762         field.
7763         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7764         * config/arm/arm.c (current_function_anonymous_args): Delete,
7765         replace uses with cfun->machine->uses_anonymous_args.
7766         (arm_reorg): Do not reset uses_anonymous_args.
7767
7768         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7769         any geenral register.
7770
7771 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7772
7773         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7774         the entry block.
7775
7776 2002-02-04  Richard Henderson  <rth@redhat.com>
7777
7778         * combine.c (force_to_mode): Remove STACK_BIAS code.
7779         (nonzero_bits): Likewise.  Replace sp/fp special case with
7780         REGNO_POINTER_ALIGN.
7781
7782         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7783         (HARD_FRAME_POINTER_REGNUM): New.
7784         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7785         (FIXED_REGS, CALL_USED_REGS): Update.
7786         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7787         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7788         (HARD_REGNO_NREGS): Update for SFP.
7789         (STACK_POINTER_OFFSET): Include bias here ...
7790         (FIRST_PARM_OFFSET): ... not here.
7791         (STACK_BIAS): Remove.
7792         (INIT_EXPANDERS): New.
7793         (STARTING_FRAME_OFFSET): Do not include bias.
7794         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7795         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7796         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7797         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7798         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7799         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7800         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7801         (MUST_SAVE_REGISTER): Likewise.
7802         (sparc_flat_function_prologue): Likewise.
7803         (sparc_flat_function_epilogue): Likewise.
7804         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7805         (sparc_init_modes): SFP is GENERAL_REGS.
7806         (sparc_builtin_saveregs): SFP does not have bias applied.
7807
7808 2002-02-04  Richard Henderson  <rth@redhat.com>
7809
7810         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7811         current_function_is_thunk.
7812         (alpha_sa_mask): Distinguish between current_function_is_thunk
7813         called from ASM_OUTPUT_MI_THUNK and not.
7814         (alpha_does_function_need_gp): Thunks always need gp.
7815         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7816         (alpha_output_mi_thunk_osf): New.
7817         * config/alpha/alpha-protos.h: Update.
7818         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7819
7820 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7821
7822         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7823         function types, not when they're taken away.
7824
7825 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7826
7827         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7828         CODE_LABEL and jump table when replacing a table jump with a
7829         simple jump.
7830
7831 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7832
7833         * config/s390/s390-protos.h (legitimize_la_operand,
7834         s390_secondary_input_reload_class, s390_plus_operand,
7835         s390_expand_plus_operand): Add prototypes.
7836
7837         config/s390/s390.c (s390_secondary_input_reload_class,
7838         s390_plus_operand, s390_expand_plus_operand): New functions.
7839
7840         (struct s390_address): New member 'pointer'.
7841         (s390_decompose_address): Compute it.
7842         (legitimate_la_operand_p): Use it.
7843         (legitimize_la_operand): New function.
7844         (movti, movdi, movdf splitters): Call it.
7845
7846         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7847         (PREDICATE_CODES): Add s390_plus_operand.
7848
7849         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7850         (la_ccclobber): Allow GENERAL_REGS as output operand.
7851
7852         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7853         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7854         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7855
7856 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7857
7858         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7859         register names for regular asm () construct.
7860
7861 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7862
7863         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7864         registers.
7865
7866 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7867
7868         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7869         pat for recog.
7870
7871 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7872
7873         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7874         constant pool to be identical by string address and index.
7875
7876 2002-02-04  Anthony Green  <green@redhat.com>
7877
7878         * output.h (SECTION_OVERRIDE): Define.
7879         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7880
7881 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7882
7883         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7884         by existing arm*-*-netbsd* (a.out) target.
7885         (ns32k-*-netbsdelf*): Likewise.
7886         (sparc-*-netbsdelf*): Likewise.
7887         (vax-*-netbsdelf*): Likewise.
7888
7889 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7890
7891         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7892         headers and libobjc headers.
7893
7894 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7895
7896         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7897         (_mingw.h): Remove duplicate include.
7898
7899 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7900
7901         * config.gcc: Set cpu_type to m68k for 68010, as well.
7902         (m68010-*-netbsdelf*): New...
7903         (m68k*-*-netbsdelf*): ...targets.
7904         * config/m68k/netbsd-elf.h: New file.
7905
7906 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7907
7908         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7909
7910 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7911
7912         * config/h8300/h8300.c (h8_push_ops): Move inside
7913         h8300_init_once.
7914         (h8_pop_ops): Likewise.
7915         (h8_move_ops): Likewise.
7916
7917 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7918
7919         * config/h8300/h8300.c (os_task): Make it static.
7920         (monitor): Likewise.
7921         (pragma_saveall): Likewise.
7922
7923 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7924
7925         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7926         constant is a valid sign-extension for Pmode.
7927
7928 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7929
7930         * config/h8300/h8300.c: Fix formatting.
7931
7932 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7933
7934         * config/h8300/h8300.md: Fix formatting.
7935
7936 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7937
7938         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7939         predicates of operands[1].  Split the patterns for each
7940         processor variant.
7941
7942 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7943
7944         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7945         of operands[1] to register_operand.
7946
7947 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7948
7949         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7950         * cpphash.c (_cpp_init_hashtable): Similarly.
7951         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7952         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7953         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7954         (cpp_handle_option): Handle the new options.
7955         * cpplex.c (cpp_interpret_charconst): Use new flag.
7956         * cpplib.h (struct cpp_options): New member signed_char.
7957         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7958         (cpp_options): Handle -fsigned-char and -funsigned-char.
7959         (static_specs): Remove signed_char_spec.
7960         (do_spec1): Don't handle %c.
7961         * system.h: Poison SIGNED_CHAR_SPEC.
7962         * tradcif.y (yylex): Use flag_signed_char.
7963         * tradcpp.h (flag_signed_char): New.
7964         * tradcpp.c (flag_signed_char): New.
7965         (main): Handle new command-line options.
7966         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7967 config:
7968         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7969         * avr/avr.h: Remove old comments.
7970         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7971         (CC1_SPEC): Pass -fsigned-char if -mic*.
7972         (SIGNED_CHAR_SPEC): Remove.
7973 doc:
7974         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7975
7976 2002-02-01  Eric Christopher  <echristo@redhat.com>
7977
7978         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7979         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7980         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7981         (ASM_OUTPUT_REG_POP): Ditto.
7982
7983 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7984
7985         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7986         patch.
7987
7988 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7989
7990         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7991
7992 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7993
7994         PR c/5304:
7995         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7996         unconditionally.
7997
7998 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7999
8000         * cfganal.c: Include tm_p.h.
8001         (keep_with_call_p): Fix the test that determines if a register holds
8002         the return value of a call.
8003
8004 2002-02-01  DJ Delorie  <dj@redhat.com>
8005
8006         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8007         we are given conflicting registers, switch to the other one we
8008         had allocated for us.
8009         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8010         as TImode so we know when the "other" register is available.
8011
8012 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
8013
8014         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8015         sparc/sparc_bi.h.
8016
8017 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8018
8019         * cfganal.c (keep_with_call_p): New function.
8020         (flow_call_edges_add): Prevent splitting a block between a call and
8021         a single-set instruction that should be kept in the same block.
8022
8023 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8024
8025         * doc/install.texi (avr): Update outdated URL.
8026
8027 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
8028
8029         * config/stormy16/stormy16.md (pushqi): New.
8030         (popqi): New.
8031         (pushhi): New.
8032         (pophi): New.
8033         (movhi): Remove stack operands.
8034         (movqi): Likewise.
8035         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8036         nonimmediate_nonstack_operand.
8037         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8038         New.
8039         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8040         New.
8041
8042 2002-01-31  Jason Merrill  <jason@redhat.com>
8043
8044         * Makefile.in (c-parse.c): Handle .output file.
8045         * objc/Make-lang.in (objc-parse.c): Likewise.
8046
8047 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
8048
8049         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8050         the -me[lb] option is given.  Don't output the default flag
8051         twice.
8052
8053 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
8054
8055         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8056         the primary source file; this has not been done yet.
8057         * c-decl.c (c_expand_body): Reset input_filename from
8058         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8059
8060 2002-01-31  Kazu Hirata  <kazu@hxi.com>
8061
8062         * rtlanal.c (subreg_regno_offset): Do not use
8063         SUBREG_REGNO_OFFSET.
8064         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8065         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8066
8067 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8068
8069         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
8070         version rather than GNATS version in --version output.
8071
8072 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
8073
8074         * ifcvt.c (noce_process_if_block): Make a copy of the destination
8075         when copying back from a temporary.
8076
8077 2002-01-30  Richard Henderson  <rth@redhat.com>
8078
8079         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8080         and new_dest are the same.
8081
8082 2002-01-30  Richard Henderson  <rth@redhat.com>
8083
8084         PR opt/5076
8085         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8086         * rtl.c (note_insn_name): Update.
8087         * emit-rtl.c (remove_unnecessary_notes): Kill it.
8088         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
8089         to perform loop rotation.
8090         (expand_exit_loop_top_cond): New.
8091         * tree.h (expand_exit_loop_top_cond): Declare it.
8092         * c-semantics.c (genrtl_while_stmt): Use it.
8093         (genrtl_for_stmt): Likewise.
8094
8095 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
8096
8097         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8098         arguments to 64-bit boundaries on 64-bit ABIs.
8099
8100 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
8101
8102         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8103
8104 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8105
8106         * c-decl.c (grokdeclarator): Handle type being a typedef for an
8107         invalid type.
8108
8109 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
8110
8111         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8112         * config/sparc/sparc_bi.h: Remove file.
8113         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8114
8115 2002-01-30  Richard Henderson  <rth@redhat.com>
8116
8117         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8118
8119 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
8120
8121         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8122
8123 2002-01-30  Jason Merrill  <jason@redhat.com>
8124
8125         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8126         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8127         (reg_save): Use DW_CFA_offset_extended_sf instead.
8128
8129         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8130
8131 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8132
8133         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8134         in cselib_lookup.
8135
8136 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8137
8138         * rs6000.md ("*call_value_local32"): Remove constraints.
8139         ("*call_value_local64"): Same.
8140         ("*call_value_indirect_nonlocal_aix32"): Same.
8141         ("*call_value_nonlocal_aix32"): Same.
8142         ("*call_value_indirect_nonlocal_aix64"): Same.
8143         ("*call_value_nonlocal_aix64"): Same.
8144         ("*call_value_nonlocal_sysv"): Same.
8145
8146 2002-01-29  Richard Henderson  <rth@redhat.com>
8147
8148         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8149
8150 2002-01-29  Richard Henderson  <rth@redhat.com>
8151
8152         * expr.c (force_operand): Ignore flag_pic for detecting pic
8153         address loads.
8154         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8155         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8156         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8157         instead of open-coded loop.
8158         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8159         be fixed when in use.
8160
8161 2002-01-29  Richard Henderson  <rth@redhat.com>
8162
8163         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8164         * sched-rgn.c (propagate_deps): Update them.
8165         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8166         clobbers list when either gets too long.
8167
8168 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8169
8170         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8171         and INDEX_REGS the same as GENERAL_REGS.
8172         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8173
8174 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8175
8176         * tree.c (build_nonstandard_integer_type): Correct prototype.
8177
8178 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8179
8180         * config/s390/s390.md (movstrsico, movstrdix_64,
8181         movstrsix_31): Remove, replace by ...
8182         (movstrdi_short, movstrsi_short, movstrdi_long,
8183         movstrsi_long): ... these.  New.
8184         (movstrdi, movstrsi): Adapt.
8185
8186         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8187         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8188         Remove unnecessary CC clobber.
8189         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8190         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8191
8192         (divmoddi4): Don't partially initialize TImode register.
8193
8194 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8195
8196         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8197
8198 2002-01-29  Richard Henderson  <rth@redhat.com>
8199
8200         * flow.c (print_rtl_and_abort): Remove.
8201         (print_rtl_and_abort_fcn): Remove.
8202         (verify_local_live_at_start): Use dump_bb instead.
8203         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8204         (verify_wide_reg_1): Return 2 on mode test failure.
8205
8206 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8207
8208         PR c/3325, c/3326, c/2511, c/3347
8209         * c-decl.c (enum_decl_context): Remove BITFIELD.
8210         (grokdeclarator): Take bitfield width as an input.
8211         Ensure bitfields are given the correct type.  Perform
8212         bitfield width validation with build_bitfield_integer_type
8213         rather than waiting for finish_struct.
8214         (grok_typename, grok_typename_in_parm_context, start_decl,
8215         push_parmdecl, grokfield, start_function): Update calls to
8216         grokdeclarator.
8217         (build_bitfield_integer_type): New function.
8218         (finish_struct): Move bitfield validation to grokdeclarator
8219         and build_bitfield_integer_type.
8220         * tree.c (build_nonstandard_integer_type): New function.
8221         * tree.h (build_nonstandard_integer_type): New prototype.
8222 objc:
8223         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8224
8225 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8226
8227         PR other/1502:
8228         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8229         don't ignore unrecognized -W* options.
8230         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8231         * cpplib.h (cpp_handle_option): Adjust prototype.
8232         * c-decl.c (c_decode_options): Pass 0 as last argument to
8233         cpp_handle_option.
8234
8235         PR c/2896:
8236         * gcc.c (cpp_unique_options): Split from cpp_options.
8237         (cpp_options): Source cpp_unique_options.
8238         (default_compilers): Use cpp_unique_options instead of cpp_options
8239         when used together with cc1_options.
8240         (static_specs): Add cpp_unique_options.
8241         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8242         when used together with cc1_options.
8243
8244 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8245
8246         * config/h8300/h8300-protos.h: Update the prototype of
8247         output_a_shift.
8248         * config/h8300/h8300.c (output_a_shift): Remove an unused
8249         argument 'insn'.  Remove redundant code.
8250         * config/h8300/h8300.md: Adust to the new prototype of
8251         output_a_shift.
8252
8253 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8254
8255         * config/h8300/h8300-protos.h: Update the prototypes of
8256         emit_a_rotate and expand_a_rotate.
8257         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8258         first argument to 'enum rtx_code'.
8259         (expand_a_rotate): Likewise.
8260
8261 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8262
8263         * config/h8300/h8300-protos.h: Update the prototype of
8264         output_simode_bld.
8265         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8266         'log2'.
8267         * config/h8300/h8300.md: Adjust to the new prototype.
8268
8269 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8270
8271         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8272         redundant code.
8273
8274 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8275
8276         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8277         is a fixed register before returning pic_offset_table_rtx.
8278         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8279         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8280
8281 2002-01-28  Jason Merrill  <jason@redhat.com>
8282
8283         * dwarf2.h: Sync with src version.
8284
8285 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8286
8287         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8288         BT_FN_VOID_PTR_VAR.
8289         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8290         * doc/extend.texi (__builtin_prefetch): Update documentation:
8291         first argument is now const void ptr.
8292
8293 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8294
8295         * config/h8300/h8300-protos.h: Remove an unused prototype.
8296
8297 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8298
8299         * toplev.c (lang_independent_init): Round up identifier size.
8300
8301 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8302
8303         * config.gcc: Revert previous change.
8304
8305 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8306
8307         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8308
8309 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8310
8311         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8312         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8313         other non-elf netbsd config frags.
8314         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8315         collect2 will does that.
8316         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8317         shared-lib frobbing will work.
8318
8319 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8320
8321         * config/h8300/h8300.h: Fix formatting.
8322         * config/h8300/h8300.md: Likewise.
8323
8324 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8325
8326         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8327         the old, removed AAA_standards fix.
8328         * fixinc/fixincl.x: Rebuilt.
8329
8330 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8331
8332         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8333         atexit call in crtbegin, hooked in after call to frame_dummy;
8334         register EH before registering __fini__start.
8335
8336 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8337
8338         * config/rs6000/altivec.h: Remove spurious semicolons.
8339
8340 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8341
8342         * config/h8300/h8300.md: Replace dead bit extraction patterns
8343         with ones that work.
8344
8345 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8346
8347         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8348         if not STRICT_ALIGNMENT.
8349         * rtl.h (MEM_ALIGN): Likewise.
8350
8351 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8352
8353         * doc/invoke.texi (-fdump-translation-unit): Revert this
8354         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8355
8356 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8357
8358         * config/h8300/h8300.md (define_constants): New.
8359         (anonymous patterns) Use defined constants appropriately.
8360
8361 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8362
8363         * config/h8300/h8300.c (function_arg): Remove redundant code.
8364
8365 2002-01-26  Richard Henderson  <rth@redhat.com>
8366
8367         * sched-deps.c (reg_pending_uses_head): New.
8368         (reg_pending_barrier): Rename from reg_pending_sets_all.
8369         (find_insn_list): Don't mark inline.
8370         (find_insn_mem_list): Remove.
8371         (add_dependence_list, add_dependence_list_and_free): New.
8372         (flush_pending_lists): Replace only_write param with separate
8373         for_read and for_write parameters.  Update all callers.  Use
8374         add_dependence_list_and_free.
8375         (sched_analyze_1): Do not add reg dependencies here; just set
8376         the pending bits.  Use add_dependence_list.
8377         (sched_analyze_2): Likewise.
8378         (sched_analyze_insn): Replace schedule_barrier_found with
8379         reg_pending_barrier.  Add all dependencies for pending reg
8380         uses, sets, and clobbers.
8381         (sched_analyze): Don't add reg dependencies for calls, just
8382         set pending bits.  Use regs_invalidated_by_call.  Treat
8383         sched_before_next_call as a normal list, not a fake insn.
8384         (init_deps): No funny init for sched_before_next_call.
8385         (free_deps): Free pending mems lists.  Don't zero reg_last.
8386         (init_deps_global): Init reg_pending_uses.
8387         (finish_deps_global): Free it.
8388         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8389         (find_insn_mem_list): Remove.
8390         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8391         (propagate_deps): Use them.  Zero temp mem lists.
8392
8393 2002-01-26  Richard Henderson  <rth@redhat.com>
8394
8395         * Makefile.in (CRTSTUFF_CFLAGS): New.
8396         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8397         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8398         crtstuff.c instead of alpha assembly version.
8399         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8400         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8401         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8402         (__do_global_dtors_aux): Mark used.
8403         (frame_dummy, __do_global_ctors_aux): Mark used.
8404         (fini_dummy, init_dummy): Remove.
8405
8406         * config/alpha/crtbegin.asm: Remove file.
8407         * config/alpha/crtend.asm: Remove file.
8408         * config/alpha/t-crtbe: Remove file.
8409         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8410         (LINK_EH_SPEC): New.
8411
8412         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8413         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8414         calling constructors.
8415         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8416
8417         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8418         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8419         CRT_END_INIT_DUMMY hack.
8420         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8421         FORCE_{INIT,FINI}_SECTION_ALIGN.
8422
8423         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8424         FORCE_{INIT,FINI}_SECTION_ALIGN.
8425
8426         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8427         invocation sequence.
8428         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8429
8430         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8431         (FORCE_CODE_SECTION_ALIGN): New.
8432
8433 2002-01-26  Richard Henderson  <rth@redhat.com>
8434
8435         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8436
8437 2002-01-26  Richard Henderson  <rth@redhat.com>
8438
8439         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8440         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8441
8442 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8443
8444         * config/h8300/h8300.md: Remove bit extraction patterns that
8445         cannot be triggered.
8446         Restrict each bit extraction pattern to a variant on which the
8447         pattern is tested.
8448
8449 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8450
8451         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8452
8453 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8454
8455         * config/h8300/h8300.md: Remove bit test patterns that cannot
8456         be triggered.
8457         Restrict each bit test pattern to a variant on which the
8458         pattern is tested.
8459
8460 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8461
8462         * builtins.c (expand_builtin_strncat): Remove redundant check for
8463         INTEGER_CST.
8464
8465 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8466
8467         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8468         default setting.
8469         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8470         existing setting.
8471
8472 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8473
8474         * dbxout.c (dbxout_init): Use assemble_name rather than just
8475         stripping off the first character.
8476         (dbxout_source_file): Likewise.
8477
8478 2002-01-25  DJ Delorie  <dj@redhat.com>
8479
8480         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8481         using rtx_equal_p, not by comparing pointers.
8482
8483 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8484
8485         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8486         for PIC_OFFSET_TABLE_REGNUM.
8487         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8488
8489 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8490
8491         * config.gcc (x86_64-*-freebsd*): New target.
8492         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8493         value.
8494         (i[34567]86-*-freebsd*): Don't include svr4.h.
8495         * config/i386/freebsd64.h: New file.
8496
8497 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8498
8499         * config/alpha/x-vms (version): Make static.
8500
8501         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8502         in previous checkin.
8503
8504         * Makefile.in (install-headers-cp): New target.
8505         * config.gcc (alpha-dec-*vms*): Install headers with
8506         install-headers-cp
8507
8508 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8509
8510         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8511         avoid it's copies.
8512
8513 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8514
8515         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8516         of compare_tree_int.
8517         (expand_builtin_strncat): Likewise.
8518         * c-decl.c (finish_struct): Use tree_low_cst.
8519         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8520         * tree.c (compare_tree_int): Likewise.
8521
8522 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8523
8524         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8525         adjustments even if they are implemented by more than two insns.
8526
8527 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8528
8529         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8530         * df.h (struct ref): Kill B.
8531         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8532
8533         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8534         * flow.c (propagate_one_insn): Use it.
8535         (mark_used_regs): Handle NIL.
8536
8537 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8538
8539         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8540         to help folding.
8541
8542 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8543
8544         * rs6000.md (prefetch): Make address V4SI mode so that the address
8545         is restricted to legitimate form for instruction.
8546
8547 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8548
8549         * doc/install.texi (xtensa-*-elf): New target.
8550         (xtensa-*-linux*): New target.
8551         * doc/contrib.texi: Add myself.
8552
8553 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8554
8555         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8556         purpose register to hold an SImode (or smaller) value.
8557
8558 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8559
8560         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8561         registry only.
8562         * crtstuff.c: Likewise.
8563
8564 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8565
8566         * config/h8300/h8300.md (negation patterns): Tighten
8567         predicates to register_operand.
8568
8569 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8570
8571         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8572         mode, not Pmode.
8573
8574         * builtins.c (expand_builtin_prefetch): Same.
8575
8576 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8577
8578         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8579         modes.
8580
8581 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8582
8583         * config/h8300/h8300.c (print_operand): Remove support for
8584         operand character 'A'.
8585         * config/h8300/h8300.md (three anonymous patterns): Replace
8586         operand character 'A' with either 'T' or 'S'.
8587
8588 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8589
8590         * config/h8300/h8300.c (print_operand): Remove support for
8591         operand character 'U'.
8592
8593 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8594
8595         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8596
8597 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8598
8599         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8600         values to be assigned to the stack pointer.
8601
8602 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8603
8604         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8605         to const_double needs to be done right for big-endian systems.
8606
8607 2002-01-24  Jason Merrill  <jason@redhat.com>
8608
8609         PR c++/2432
8610         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8611         to can_throw_internal.
8612
8613 2002-01-23  Richard Henderson  <rth@redhat.com>
8614
8615         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8616         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8617
8618 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8619
8620         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8621         (symGOT2reg): Use them, then set as GOT value as unchanging.
8622         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8623         as a temporary, if possible.
8624         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8625         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8626
8627 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8628
8629         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8630         accept to accept 0x80 as operands[2].
8631
8632 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8633
8634         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8635
8636 2002-01-23  Richard Henderson  <rth@redhat.com>
8637
8638         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8639
8640 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8641
8642         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8643         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8644         an attribute.
8645
8646 2002-01-23  Richard Henderson  <rth@redhat.com>
8647
8648         * expr.c (move_by_pieces_1): Extend size before negation.
8649
8650         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8651         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8652         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8653         * config/m68k/t-m68kelf: Likewise.
8654
8655 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8656
8657         * config/xtensa/elf.h: New file.
8658         * config/xtensa/lib1funcs.asm: New file.
8659         * config/xtensa/lib2funcs.S: New file.
8660         * config/xtensa/linux.h: New file.
8661         * config/xtensa/t-xtensa: New file.
8662         * config/xtensa/xtensa-config.h: New file.
8663         * config/xtensa/xtensa-protos.h: New file.
8664         * config/xtensa/xtensa.c: New file.
8665         * config/xtensa/xtensa.h: New file.
8666         * config/xtensa/xtensa.md: New file.
8667         * config.gcc (xtensa-*-elf*): New target.
8668         (xtensa-*-linux*): New target.
8669         * cse.c (canon_hash): Compare rtx pointers instead of register
8670         numbers.  This is required for the Xtensa port.
8671         * integrate.c (copy_insn_list): Handle case where the static
8672         chain is in memory and the memory address has to be copied to
8673         a register.
8674         * doc/invoke.texi (Option Summary): Add Xtensa options.
8675         (Xtensa Options): New node.
8676         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8677
8678 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8679
8680         * diagnostic.c (internal_error): Do ICE suppression only
8681         when ENABLE_CHECKING is not defined.
8682
8683         * c-typeck.c (require_complete_type): Return error_mark_node
8684         if type is error_mark_node.
8685
8686 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8687
8688         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8689         -Os and issue a warning.
8690
8691 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8692
8693         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8694         current (lack of) need for host configuration by hand.
8695
8696         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8697         references.  Documentation of some target macros moved from
8698         hostconfig.texi to tm.texi.
8699
8700 2002-01-23  Will Cohen  <wcohen@redhat.com>
8701
8702         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8703         defined.
8704
8705 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8706
8707         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8708         operand[3].
8709
8710 2002-01-23  Jason Merrill  <jason@redhat.com>
8711
8712         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8713
8714         * function.c (assign_parms): Don't put args of inline functions
8715         into registers when not optimizing.
8716
8717 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8718
8719         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8720         (prologue_use): New pattern.
8721         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8722         preference to gen_rtx_USE.
8723         (thumb_expand_prologue): Use gen_prologue_use in preference to
8724         gen_rtx_USE.
8725         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8726         gen_rtx_USE.
8727
8728 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8729
8730         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8731
8732 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8733
8734         PR c/3504
8735         * doc/extend.texi: Correct documentation of __alignof__.
8736
8737 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8738
8739         * params.h: Rename arguments of DEFPARAM so that it will be
8740         recognized as a translation keyword.
8741
8742 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8743
8744         * extend.texi: Document altivec functions.
8745         Fix N-bit adjectives in X86 builtin documentation.
8746
8747 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8748
8749         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8750         auto_inc_dec values.
8751
8752 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8753
8754         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8755         after backslash.
8756         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8757
8758 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8759
8760         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8761
8762 2002-01-22  Richard Henderson  <rth@redhat.com>
8763
8764         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8765         copy_insn not copy_rtx.
8766
8767 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8768
8769         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8770         "nonzero" as that might add "1" bits.  Ensure "constop" is
8771         properly sign extened.
8772         (force_to_mode): Tweak for sign extended constop.
8773
8774 2002-01-22  Richard Henderson  <rth@redhat.com>
8775
8776         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8777         for_each_rtx instead of assuming we're already looking at the MEM.
8778         (split_small_symbolic_mem_operand): Likewise.
8779         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8780         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8781
8782 2002-01-22  Richard Henderson  <rth@redhat.com>
8783
8784         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8785         sequence number for the literal.
8786         (divmoddi_internal_er): Likewise.
8787
8788 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8789
8790         PR java/4972
8791         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8792         in LIBICONV variable.
8793         * configure: Regenerated.
8794
8795 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8796
8797         * dependence.c (build_def_use): Remove array_idx.
8798
8799         * dwarfout.c (last_filename): Remove.
8800         (output_compile_unit_die): Remove last_filename.
8801
8802 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8803             Richard Henderson  <rth@redhat.com>
8804
8805         PR opt/3640
8806         * fold-const.c (fold): Optimize unsigned comparisons against
8807         UINT_MAX (and similar unsigned constants).
8808
8809 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8810
8811         * Makefile.in (loop.o): Depend on OPTABS_H.
8812         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8813         against the predicate.
8814
8815         PR target/5379
8816         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8817         for the address operand.
8818
8819 2002-01-22  Richard Henderson  <rth@redhat.com>
8820
8821         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8822
8823 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8824
8825         PR other/5450
8826         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8827         preprocessor flags.
8828
8829 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8830
8831         * config.gcc (x86_64-*-netbsd*): New target.
8832         * config/i386/netbsd64.h: New file.
8833
8834 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8835
8836         * regrename.c (kill_value): Fix typo.
8837
8838 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8839
8840         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8841
8842         * config/rs6000/rs6000.h: Same.
8843
8844         * function.c (instantiate_virtual_regs): Remove
8845         STARTING_FRAME_PHASE.
8846         (assign_stack_local_1): Same.
8847         Calculate frame phase.
8848
8849 2002-01-22  Nick Clifton  <nickc@redhat.com>
8850
8851         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8852         variable declaration to outer scope in order to simplify
8853         future extensions.
8854         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8855         arm_hard_regno_mode_ok.
8856         * config/arm/arm-protos.h: Add a prototype for
8857         arm_hard_regno_mode_ok.
8858         * config/arm/arm.c (soft_df_operand): Remove now redundant
8859         check for DImode values using IP_REGNUM.
8860         (nonimmediate_soft_df_operand): Remove now redundant check for
8861         DImode values using IP_REGNUM.
8862         (arm_hard_regno_mode_ok): New function. New check: make sure
8863         that DImode values are not stored in IP_REGNUM.
8864
8865         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8866         note with a USE.
8867         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8868
8869 2002-01-22  Jason Merrill  <jason@redhat.com>
8870
8871         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8872         consistency if this COMPOUND_STMT is scoped.
8873
8874 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8875
8876         * predict.c: Fix formatting.
8877         * print-tree.c: Likewise.
8878         * protoize.c: Likewise.
8879         * real.h: Likewise.
8880         * rtl.h: Likewise.
8881         * sbitmap.h: Likewise.
8882         * scan.c: Likewise.
8883         * sched-deps.c: Likewise.
8884         * sched-vis.c: Likewise.
8885         * sdbout.c: Likewise.
8886         * sibcall.c: Likewise.
8887         * ssa.c: Likewise.
8888         * ssa-ccp.c: Likewise.
8889         * ssa-dce.c: Likewise.
8890         * stmt.c: Likewise.
8891         * stor-layout.c: Likewise.
8892         * system.h: Likewise.
8893
8894 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8895
8896         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8897         if fits in bounds of base type.
8898
8899         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8900         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8901         (add_bound_info, default): If can't find a context, make a
8902         SAVE_EXPR.
8903         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8904
8905 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8906
8907         * c-typeck.c (parser_build_binary_op): If result from
8908         build_binary_op is ERROR_MARK just return error_mark_node without
8909         further processing.
8910
8911 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8912
8913         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8914         Split a.out-specific bits into...
8915         * config/netbsd-aout.h: ...this.
8916         * config/netbsd-elf.h: New file.
8917         * config/alpha/netbsd-elf.h: Remove.
8918         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8919         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8920         (STARTFILE_SPEC): Remove redundant definition.
8921         (ENDFILE_SPEC): Likewise.
8922         (LINK_SPEC): Likewise.
8923         (CPP_SPEC): Likewise.
8924         (ASM_SPEC): Likewise.
8925         (LIB_SPEC): Likewise.
8926         (SWITCH_TAKES_ARG): Likewise.
8927         (TARGET_MEM_FUNCTIONS): Likewise.
8928         (CPP_PREDEFINES): Redefine.
8929         (ASM_FINAL_SPEC): Remove redefinition.
8930         (ASM_COMMENT_START): Redefine.
8931         (FUNCTION_PROFILER): Define.
8932         (TARGET_VERSION): Redefine.
8933         Comment and formatting cleanup.
8934         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8935         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8936         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8937         big- or little-endian.
8938         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8939         * config.gcc (*-*-netbsd*): Add definitions common to all
8940         NetBSD configs.
8941         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8942         gnu_ld definitions.  Add netbsd-elf.h to and remove
8943         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8944         tmake_file, and don't lose previous tmake_file contents.
8945         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8946         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8947         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8948         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8949         (mipsel-*-netbsd*): Rename this to...
8950         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8951         mips/little.h to tm_file for mips*el-*.
8952         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8953         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8954         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8955
8956 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8957
8958         * pa-protos.h (reg_before_reload_operand): New function prototype.
8959         * pa.c (reg_before_reload_operand): New function implementation.
8960         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8961         contraints to "*m".
8962
8963 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8964
8965         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8966
8967 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8968
8969         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8970         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8971         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8972         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8973         (ENDFILE_SPEC): Undefine.
8974         (STARTFILE_SPEC): Redefine for PA.
8975
8976 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8977
8978         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8979
8980 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8981
8982         * config.gcc: Add entries to supported PowerPC --with-cpu
8983         types.
8984
8985 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8986
8987         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8988         true for 64-bit mode only SSE registers in 32-bit mode.
8989
8990 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8991
8992         * unwind-dw2.c: Fix formatting.
8993         * unwind-dw2-fde.c: Likewise.
8994         * unwind-dw2-fde.h: Likewise.
8995         * unwind-pe.h: Likewise.
8996         * varasm.c: Likewise.
8997         * varray.h: Likewise.
8998
8999 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
9000
9001         Remove workaround for register stack overwrite bug in mmix.
9002         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9003         support for TARGET_REG_STACK_FILL_BUG.
9004         * config/mmix/mmix.h: Remove member has_call_without_parameters.
9005         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9006         Delete.
9007         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9008         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9009         -mno-reg-stack-fill-bug-workaround.
9010         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9011         machine member has_call_without_parameters.
9012         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9013         -mreg-stack-fill-bug-workaround and
9014         -mno-reg-stack-fill-bug-workaround.
9015         (MMIX Options): Ditto.
9016
9017 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9018
9019         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9020         as appropriate.
9021         Remove redundant code.
9022
9023 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9024
9025         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9026         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9027         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9028         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9029         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9030         out target macro definitions and non-target-specific comments
9031         mostly taken from old versions of the manual.
9032
9033 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9034
9035         * config/h8300/h8300.h: Fix comment formatting.
9036         * config/ia64/aix.h: Likewise.
9037         * config/ia64/ia64-protos.h: Likewise.
9038         * config/ia64/ia64.c: Likewise.
9039         * config/ia64/ia64.h: Likewise.
9040         * config/ia64/ia64intrin.h: Likewise.
9041         * config/ia64/linux.h: Likewise.
9042         * config/ia64/unwind-aix.c: Likewise.
9043         * config/ia64/unwind-ia64.c: Likewise.
9044
9045 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9046
9047         * config/h8300/h8300.c: Revise comments about shift code.
9048
9049 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9050
9051         * config/h8300/h8300.c (function_arg): Update a comment.
9052
9053 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9054
9055         * config/h8300/h8300.md: Update the comments at the beginning
9056         of the file.
9057
9058 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9059
9060         * config/i370/i370.c: Fix comment formatting.
9061         * config/i370/i370.h: Likewise.
9062         * config/i370/i370.md: Likewise.
9063         * config/i370/linux.h: Likewise.
9064
9065 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9066
9067         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9068
9069         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9070         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9071         in incomplete case.
9072
9073 2002-01-20  Graham Stott  <grahams@redhat.com>
9074
9075         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9076
9077 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9078
9079         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9080
9081 2002-01-19  Tom Rix  <trix@redhat.com>
9082
9083         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9084
9085 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
9086
9087         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9088
9089         * function.c (assign_stack_local_1): Adjust x_frame_offset with
9090         STARTING_FRAME_PHASE.
9091         (STARTING_FRAME_PHASE): New.
9092         (instantiate_virtual_regs): Check saneness of
9093         STARTING_FRAME_PHASE.
9094
9095         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9096
9097 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9098
9099         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9100
9101 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9102
9103         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9104         be used for bootstrapping GCC 3.0.
9105
9106 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9107
9108         * config/h8300/h8300.md: Fix an insn length.
9109
9110 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9111
9112         * bitmap.h: Fix comment formatting.
9113         * combine.c: Likewise.
9114         * cppfiles.c: Likewise.
9115         * c-pragma.h: Likewise.
9116         * c-typeck.c: Likewise.
9117         * df.c: Likewise.
9118         * dwarf2out.c: Likewise.
9119         * function.c: Likewise.
9120         * gcc.c: Likewise.
9121         * genattrtab.c: Likewise.
9122         * gthr-win32.h: Likewise.
9123         * haifa-sched.c: Likewise.
9124         * predict.c: Likewise.
9125         * rtlanal.c: Likewise.
9126         * rtl.h: Likewise.
9127         * unwind-dw2-fde.h: Likewise.
9128         * unwind-pe.h: Likewise.
9129         * vmsdbgout.c: Likewise.
9130
9131 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9132
9133         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9134         if type_required and passed decl.
9135
9136 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9137
9138         * config.gcc (cpu_type): Include altivec.h in powerpc
9139         extra_headers.
9140         Same for darwin.
9141
9142         * config/rs6000/altivec.h: New.
9143
9144 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9145
9146         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9147         handling information.
9148         * doc/trouble.texi (Interoperation): Add libstdc++ information
9149         for AIX.
9150         (Misunderstandings): Add template instantiation and static template
9151         member information for AIX.
9152
9153 2002-01-17  Jason Merrill  <jason@redhat.com>
9154
9155         * dbxout.c (dbxout_type): Support const and volatile.
9156
9157         * except.c (add_partial_entry): Remove backwards compatibility code.
9158         (end_protect_partials): Likewise.
9159
9160 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9161
9162         * config/ia64/ia64.md (prologue_use): New.
9163         * config/ia64/ia64.c (ia64_expand_prologue): Use
9164         gen_prologue_use instead of gen_rtx_USE.
9165         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9166         as CODE_FOR_pred_rel_mutex.
9167         (ia64_sched_reorder2): Likewise.
9168
9169 2002-01-16  Eric Christopher  <echristo@redhat.com>
9170
9171         * config/mips/r3900.h: Reformat.
9172         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9173         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9174         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9175         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9176         * config/mips/t-elf: Remove mips3 multilib.
9177
9178 2002-01-16  H.J. Lu <hjl@gnu.org>
9179
9180         * config/mips/linux.h: Include "mips/abi64.h".
9181
9182 2002-01-16  H.J. Lu <hjl@gnu.org>
9183
9184         * config/mips/t-linux: New.
9185
9186         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9187
9188         * config/mips/linux.h: Don't include "gofast.h".
9189         (INIT_SUBTARGET_OPTABS): Removed.
9190
9191 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9192
9193         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9194         output_a_shift.
9195         * config/h8300/h8300.c: Likewise.
9196         * config/h8300/h8300.md: Likewise.
9197
9198 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9199
9200         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9201         spaces after an opcode name.
9202         (pushqi1_h8300hs): Likewise.
9203         (pushhi1_h8300hs): Likewise.
9204
9205 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9206
9207         * doc/extend.texi: Replace "option" with "attribute"
9208         appropriately.
9209
9210 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9211
9212         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9213         (and:DI () (const_int -8)).
9214         (split_small_symbolic_mem_operand): Split
9215         (mem (and:DI () (const_int -8)).
9216
9217 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9218
9219         PR target/5309:
9220         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9221         same way as TYPE_IMUL.
9222         (ultrasparc_sched_reorder): Likewise.
9223         * config/sparc/sparc.md (type): Add comment to update
9224         ultrasparc_sched_reorder when making changes.
9225
9226 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9227
9228         * doc/invoke.texi: Change the dump file name of block
9229         reordering pass from 28.bbro to 29.bbro.
9230         Mention -dk option.
9231
9232 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9233
9234         * i386.md (minsf splitter): Fix pasto.
9235
9236 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9237
9238         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9239         to frame pointer initialisation instruction.
9240         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9241         initialisation instruction.
9242         (soft_df_operand): Do not accept the IP register.
9243         (nonimmediate_soft_df_operand): Do not accept the IP register.
9244
9245 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9246
9247         PR target/5357:
9248         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9249         MASK_V8 being both set.
9250
9251 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9252
9253         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9254         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9255         config/s390/s390.md (call, call_value): Add GOT register to
9256         CALL_INSN_FUNCTION_USAGE where needed.
9257         (call_exp, call_value_exp): New.
9258
9259 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9260
9261         * config/arm/arm.c: General formatting tidy up.
9262
9263 2002-01-16  Graham Stott  <grahams@redhat.com>
9264
9265         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9266         cast and when casting an integer literal to "rtx" pointer.
9267         (expand_call): Likewise.
9268         * flow.c (try_pre_increment): Likewise.
9269         (find_use_as_address): Likewise.
9270         * integrate.c (expand_iline_function): Likewise.
9271         * regmove.c (try_auto_increment): Likewise.
9272
9273 2002-01-16  Graham Stott  <grahams@redhat.com>
9274
9275         * sched-rgn.c (passed): Use sbitmap_free.
9276         (header): Likewise.
9277         (inner): Likewise.
9278         (in_queue): Likewise.
9279         (in_stack): Likewise.
9280
9281 2002-01-15  Eric Christopher  <echristo@redhat.com>
9282
9283         * flow.c (propagate_one_insn): Change to use fatal_insn.
9284
9285 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9286
9287         * expmed.c (extract_fixed_bit_field): Remove unused code.
9288         * system.h: Poison SLOW_ZERO_EXTEND.
9289         * doc/tm.texi: Remove.
9290         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9291         * config/arm/arm.h: Likewise.
9292         * config/avr/avr.h: Likewise.
9293         * config/clipper/clipper.h: Likewise.
9294         * config/convex/convex.h: Likewise.
9295         * config/d30v/d30v.h: Likewise.
9296         * config/dsp16xx/dsp16xx.h: Likewise.
9297         * config/elxsi/elxsi.h: Likewise.
9298         * config/fr30/fr30.h: Likewise.
9299         * config/h8300/h8300.h: Likewise.
9300         * config/i370/i370.h: Likewise.
9301         * config/i386/i386.h: Likewise.
9302         * config/m68k/m68k.h: Likewise.
9303         * config/mips/mips.h: Likewise.
9304         * config/ns32k/ns32k.h: Likewise.
9305         * config/pdp11/pdp11.h: Likewise.
9306         * config/pj/pj.h: Likewise.
9307         * config/s390/s390.h: Likewise.
9308         * config/sh/sh.h: Likewise.
9309         * config/stormy16/stormy16.h: Likewise.
9310         * config/v850/v850.h: Likewise.
9311         * config/vax/vax.h: Likewise.
9312         * config/we32k/we32k.h: Likewise.
9313
9314 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9315
9316         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9317         (altivec_lvsl): Change constraint to b.
9318         (altivec_lvsr): Same.
9319         (altivec_lvebx): Same.
9320         (altivec_lvehx): Same.
9321         (altivec_lvewx): Same.
9322         (altivec_lvxl): Same.
9323         (altivec_lvx): Same.
9324         (altivec_stvx): Add parallel.
9325         (altivec_stvxl): Same.
9326         (altivec_stvehx): Same.
9327         (altivec_stvebx): Same.
9328         (altivec_stvebx): Same.
9329
9330 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9331
9332         * config.gcc: Change altivec.h to altivec-defs.h.
9333
9334         * config/rs6000/altivec.h: Delete.
9335
9336         * config/rs6000/altivec-defs.h: Add.
9337
9338 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9339
9340         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9341         and UMOD modes.
9342
9343         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9344         less than or equal to eight bytes.
9345
9346         * vax.md (andsi3): Remove constraints and change SET destination
9347         operand type to nonimmediate_operand.
9348         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9349         when it is a CONST_INT.
9350
9351 2002-01-15  Jason Merrill  <jason@redhat.com>
9352
9353         * c-common.def (FILE_STMT): New code.
9354         * c-common.c (statement_code_p): It's a statement.
9355         * c-common.h (stmt_tree_s): Add x_last_filename.
9356         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9357         (last_expr_filename): New macro.
9358         * c-semantics.c (begin_stmt_tree): Initialize it.
9359         (add_stmt): If the filename changed, also insert a
9360         FILE_STMT.
9361         (expand_stmt): Handle seeing one.
9362
9363 2002-01-15  Eric Christopher  <echristo@redhat.com>
9364
9365         * flow.c (propagate_one_insn): Add error message and print out
9366         insn for debugging.
9367
9368 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9369
9370         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9371         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9372         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9373         TRAMPOLINE_ALIGNMENT.
9374         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9375         to be in bits.
9376         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9377         PCC_BITFIELD_TYPE_MATTERS.
9378         * config/interix.h (STDC_VALUE): Remove.  Use
9379         STDC_0_IN_SYSTEM_HEADERS.
9380         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9381         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9382         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9383
9384 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9385
9386         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9387         not work on this platform currently.
9388
9389 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9390
9391         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9392         readonly_warning in _().
9393
9394 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9395
9396         * gcc.c (delete_if_ordinary): Backout previous change.
9397
9398 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9399
9400         * config/h8300/h8300.c (print_operand): Remove support for
9401         unused operand characters.
9402
9403         * read-rtl.c: Fix formatting.
9404         * real.c: Likewise.
9405         * recog.c: Likewise.
9406         * regclass.c: Likewise.
9407         * regmove.c: Likewise.
9408         * reg-stack.c: Likewise.
9409         * reload1.c: Likewise.
9410         * rtlanal.c: Likewise.
9411
9412 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9413
9414         * config/i386/i386.c: Fix formatting.
9415
9416 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9417
9418         * c-typeck.c (process_init_element): Don't save_expr
9419         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9420
9421 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9422
9423         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9424         emit optional traceback table if optimize_size or TARGET_ELF.
9425         * config/rs6000/rs6000.md (prefetch): New.
9426
9427 2002-01-15  Andreas Jaeger  <aj@suse.de>
9428
9429         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9430
9431 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9432
9433         * mips-tfile.c: Fix formatting.
9434
9435 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9436
9437         * unroll.c (final_reg_note_copy): Fix previous commit.
9438
9439 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9440
9441         * config/h8300/h8300-protos.h: Remove the prototype for
9442         eq_operator.
9443         * config/h8300/h8300.c (eq_operator): Remove.
9444
9445 2002-01-14  Richard Henderson  <rth@redhat.com>
9446
9447         * config/i386/i386.md (prefetch): Tidy.
9448         (prefetch_3dnow): Fix locality operand.
9449
9450 2002-01-14  Richard Henderson  <rth@redhat.com>
9451
9452         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9453         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9454
9455 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9456
9457         * reload1.c (reload_combine): Pass reg_sum replacement through
9458         copy_rtx in loop performing multiple changes.
9459
9460 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9461
9462         * except.c (remove_unreachable_regions): New.
9463         (free_eh_status): Clear exception_handler_labels.
9464         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9465         (find_exception_handler_labels): Don't add the same label more than
9466         once.
9467         (remove_exception_handler_label): Don't die if
9468         find_exception_handler_labels hasn't been called for the current
9469         function yet.
9470
9471 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9472
9473         * toplev.c (rest_of_compilation): Rebuild jump labels after
9474         gcse.
9475
9476 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9477
9478         * doc/extend.texi: Move documentation of X86 built-in functions
9479         here.
9480         * doc/invoke.texi: From here.
9481         * doc/sourcebuild.texi: Document location of documentation for
9482         machine built-in functions.
9483
9484 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9485
9486         * cppfiles.c (TEST_THRESHOLD): New macro.
9487         (SHOULD_MMAP): Ditto.
9488         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9489         be used.
9490
9491 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9492
9493         * unroll.c (final_reg_note_copy): Properly handle
9494         REG_LABEL
9495         (unroll_loops): Fix LOOP_CONDITION heuristics.
9496
9497 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9498
9499         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9500         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9501
9502 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9503
9504         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9505         threaded loop.
9506
9507 2002-01-14  Tom Rix  <trix@redhat.com>
9508
9509         * config/rs6000/rs6000.md: Fix typo with sradi.
9510
9511 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9512
9513         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9514         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9515         (clrstrdi, clrstrsi): Adapt callers.
9516
9517         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9518
9519         (movti splitter): Never use register 0 as base register.
9520
9521 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9522
9523         * combine.c (simplify_shift_const): Always generate new rtx
9524         for shift expression instead of reusing given expression.
9525
9526 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9527
9528         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9529         alpha_legitimize_address unless mode is Pmode.
9530
9531 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9532
9533         * doc/md.texi (Modifiers): Document the '*' constraint for the
9534         user.
9535
9536         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9537         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9538         for xstormy16 too.
9539
9540 2002-01-13  Richard Henderson  <rth@redhat.com>
9541
9542         * reload.c (find_reloads): Use a hard reg destination as reload reg
9543         for an input reload of the source.
9544
9545 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9546
9547         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9548         more generic.
9549
9550 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9551
9552         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9553         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9554
9555         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9556
9557 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9558
9559         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9560
9561 2002-01-12  Tom Rix  <trix@redhat.com>
9562
9563         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9564         TARGET_POWERPC64.
9565
9566 2002-01-12  Richard Henderson  <rth@redhat.com>
9567
9568         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9569
9570         * doc/invoke.texi: Update Alpha options.
9571
9572         * doc/invoke.texi: Update i386 built-in function lists.
9573
9574 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9575
9576         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9577         referencing outside.
9578
9579 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9580
9581         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9582         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9583         offsets, and change line folding.
9584         * optabs.c (expand_binop): Remove warnings.
9585         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9586
9587 2002-01-12  Graham Stott <grahams@redhat.com>
9588
9589         * attribs.c (handle_deprecated_attribute): constify WHAT.
9590         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9591         dangling else warning and constify WHAT.
9592         * except.h (struct function, struct inline_remap): Move
9593         struct tag forward defs before all prototypes.
9594         (duplicate_eh_regions): Whitespace.
9595
9596 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9597
9598         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9599         MODE_BASE_REG_CLASS.
9600         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9601
9602 2002-01-12  Richard Henderson  <rth@redhat.com>
9603
9604         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9605         (ix86_expand_vector_move): New.
9606         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9607         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9608         Remove old prefetch builtins.  Special case the logicals removed above.
9609         (ix86_expand_builtin): Likewise.
9610         (safe_vector_operand): Use V4SFmode, not TImode.
9611         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9612         (ix86_expand_timode_binop_builtin): New.
9613         * config/i386/i386-protos.h: Update.
9614         * config/i386/i386.h (enum ix86_builtins): Update.
9615         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9616         Use ix86_expand_vector_move in vector move expanders.
9617         (movti_internal, movti_rex64): Add xorps alternative.
9618         (sse_clrv4sf): Rename and adjust from sse_clrti.
9619         (prefetch): Don't work so hard.
9620         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9621         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9622         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9623
9624 2002-01-11  Richard Henderson  <rth@redhat.com>
9625
9626         * config/i386/mmintrin.h: New file.
9627         * config/i386/xmmintrin.h: New file.
9628         * config.gcc (i?86-*-*): Add extra_headers.
9629         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9630         truncation codes.
9631         (simplify_binary_operation): Handle saturating arithmetic codes.
9632         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9633         not the lowpart subreg.
9634         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9635         on error.
9636         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9637
9638 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9639
9640         * conflict.c (conflict_graph_compute): Free regsets when finished.
9641         * ssa.c (compute_coalesced_reg_partition): Likewise.
9642
9643 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9644
9645         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9646         every where we allocate a register.
9647
9648 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9649
9650         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9651         * lcm.c (compute_earliest, compute_farthest): Likewise.
9652
9653 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9654
9655         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9656
9657 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9658
9659         * doc/rtl.texi (Insns): Fix 2 typos.
9660
9661 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9662
9663         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9664         options.  Use @table @gcctabopt for MMIX options.  Add index
9665         entries for MMIX options.  Start new paragraph with first
9666         heading of the machine-dependent options.
9667
9668 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9669
9670         PR other/5299
9671         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9672         * combine.c (force_to_mode): Same.
9673         * reload1.c (clear_reload_reg_in_use): Same.
9674
9675 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9676
9677         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9678         and 'subtargets'.
9679
9680 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9681             Brad Lucier <lucier@math.purdue.edu>
9682
9683         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9684         mcpu.
9685
9686 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9687
9688         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9689         Protect with IN_LIBGCC.
9690         (LINK_EH_SPEC): Add required trailing space.
9691
9692 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9693
9694         * c-tree.h: Move function declarations so that they are listed
9695         under the filename which contains them.
9696         (check_identifier, finish_decl_top_level,
9697         lookup_name_current_level_global, shadow_record_fields): Remove.
9698
9699 2002-01-11  Andreas Jaeger  <aj@suse.de>
9700
9701         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9702         march.
9703
9704 2002-01-10  Richard Henderson  <rth@redhat.com>
9705
9706         * config/alpha/alpha.c (print_operand): Add 'J'.
9707         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9708         new operand with the sequence number for the lituse.  When splitting
9709         the insns, use gen_movdi_er_high_g and generate a sequence number.
9710         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9711
9712 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9713
9714         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9715         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9716         stvxl.
9717         (altivec_expand_builtin): Same.
9718         (altivec_expand_stv_builtin): New.
9719
9720         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9721
9722         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9723         ("altivec_lvehx"): New.
9724         ("altivec_lvewx"): New.
9725         ("altivec_lvxl"): New.
9726         ("altivec_lvx"): New.
9727         ("altivec_stvx"): New.
9728         ("altivec_stvebx"): New.
9729         ("altivec_stvehx"): New.
9730         ("altivec_stvewx"): New.
9731         ("altivec_stvxl"): New.
9732
9733 2002-01-10  Richard Henderson  <rth@redhat.com>
9734
9735         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9736         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9737         care not to delete instructions twice.
9738
9739 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9740
9741         * toplev.c: Don't declare environ (it's not used anywhere).
9742         * configure.in: Don't check for declaration of environ.
9743         * config/i386/xm-mingw32.h: Don't #define environ.
9744         * config.in, configure: Regenerate.
9745
9746 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9747
9748         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9749         * configure: Regenerate.
9750
9751         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9752         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9753         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9754         alpha/xm-vms.h.
9755         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9756         LIMITS_H_TEST here, not in m68k/x-next.
9757         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9758         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9759
9760         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9761         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9762         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9763
9764         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9765         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9766         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9767         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9768         replacement of quadlib.asm with quadlib.c.
9769
9770         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9771         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9772         config/rs6000/xm-beos.h: Delete file.
9773
9774         * config.gcc: Update to match above changes.
9775
9776 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9777
9778         * config/h8300/h8300.h: Fix comment typos.
9779         * config/h8300/h8300.md: Likewise.
9780         * config/h8300/lib1funcs.asm: Likewise.
9781
9782 2002-01-10  Dale Johannesen  <dalej@apple.com>
9783
9784         PR optimization/5269
9785         * unroll.c (precondition_loop_p): Make *increment be the correct
9786         sign when n_iterations known, to avoid confusing caller.
9787
9788 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9789
9790         * doc/extend.texi (deprecated): Fix a typo.
9791
9792 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9793
9794         * basic-block.h (update_br_prob_note): Declare.
9795         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9796         (try_forward_edges): Care negative frequencies and update note.
9797         (outgoing_edges_match): Tweek conditional merging heuristics.
9798         (try_crossjump_to_edge): use update_br_prob_note.
9799         * cfglayout.c (fixup_reorder_chain): Likewise.
9800         * cfrtl.c (update_br_prob_note): New.
9801         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9802
9803         * i386.c (ix86_decompose_address): Return -1 if address contains
9804         shift.
9805         (legitimate_address_p): Require ix86_decompose_address to return 1.
9806
9807         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9808         (cprop_insn): Likewise.
9809
9810 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9811
9812         * toplev.c: Fix formatting.
9813         * tree.c: Likewise.
9814         * tree-dump.c: Likewise.
9815         * unroll.c: Likewise.
9816         * unwind-dw2.c: Likewise.
9817         * unwind-dw2-fde.c: Likewise.
9818         * unwind-dw2-fde-glibc.c: Likewise.
9819         * unwind-sjlj.c: Likewise.
9820
9821 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9822
9823         * doc/invoke.texi: Document PDP-11 options.
9824
9825 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9826
9827         * config/h8300/h8300.h: Fix formatting.
9828
9829 2002-01-10  Ira Ruben   <ira@apple.com>
9830
9831         Add __attribute__ ((deprecated)).
9832         * extend.texi: Document __attribute__ ((deprecated)).
9833         * invoke.texi: Document -Wno-deprecated-declarations.
9834         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9835         * testsuite/gcc.dg/deprecated.c: New C test.
9836         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9837         (c_common_attribute_table): Add "deprecated" entry.
9838         (handle_deprecated_attribute): New function.
9839         * c-decl.c (deprecated_states): New enum.
9840         deprecated_state: State of "deprecated" handling.
9841         (start_decl): Set deprecated_state based on attributes.
9842         (grokdeclarator): Test for deprecated uses, propagate attribute.
9843         * c-typeck.c (build_component_ref): Test for deprecated fields.
9844         (build_external_ref): Test for deprecated primaries.
9845         * diagnostic.c (warn_deprecated_use) New function to issue
9846         warnings about __attribute__ ((depricated)) references.
9847         * flags.h (warn_deprecated_decl): Extern declared for
9848         -W[no-]deprecated-declarations option.
9849         * print-tree.c (print_node): Show deprecated flag status.
9850         * toplev.c (warn_deprecated_decl): Defined.
9851         (W_options): Added "deprecated-declaration".
9852         * toplev.h (warn_deprecated_use): Extern declared.
9853         * tree.h (struct tree_common): Define deprecated_flag.
9854         (TREE_DEPRECATED): New macro to access flag.
9855         * cp/call.c (build_call): Test for deprecated calls.
9856         * cp/class.c (add_implicitly_declared_members): Set global
9857         flag to tell grokdeclarator to not issue deprecated warnings.
9858         * cp/cp-tree.h: Add extern for adding_implicit_members.
9859         * cp/decl.c (deprecated_states): New enum.
9860         (start_decl): Set deprecated_state based on attributes.
9861         (grokdeclarator): Test for deprecated uses, propagate attribute.
9862         * cp/lex.c (do_identifier): Test for deprecated primaries.
9863         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9864
9865 2002-01-10  Ira Ruben   <ira@apple.com>
9866
9867         Fix to assign attributes to inline member functions.
9868         * cp/decl.c (start_method): Handle attrlist.
9869
9870 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9871
9872         * combine.c (expand_field_assignment): Use subreg_lsb().
9873
9874 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9875
9876         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9877         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9878         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9879         Recurse for any operand of AND as long as constant is non-zero.
9880
9881 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9882
9883         * config/h8300/h8300.md: Remove constraints from expanders.
9884
9885 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9886
9887         * varasm.c: Fix formatting.
9888         * varray.c: Likewise.
9889         * vmsdbgout.c: Likewise.
9890         * xcoffout.c: Likewise.
9891
9892 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9893
9894         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9895         update edge probabilities to match.
9896
9897 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9898
9899         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9900         dependencies.
9901         * doc/languages.texi, doc/sourcebuild.texi: New files.
9902         * doc/configfiles.texi: Make a subsubsection.  Update.
9903         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9904         instructions for building GCC.
9905         * doc/makefile.texi: Make a subsection.
9906         * doc/gccint.texi: Update.
9907
9908 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9909
9910         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9911
9912 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9913
9914         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9915
9916 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9917
9918         * optabs.c (expand_fix): Look for wider integer modes first.
9919
9920         * i386.md (mov?f): Avoid the fake const double trick for medium
9921         memory model.
9922         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9923         (fop_df_4): Disable for SSE compilation.
9924
9925 2002-01-10  Graham Stott  <grahams@redhat.com>
9926
9927         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9928         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9929
9930 2002-01-10  Richard Henderson  <rth@redhat.com>
9931
9932         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9933
9934 2002-01-10  Richard Henderson  <rth@redhat.com>
9935
9936         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9937         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9938
9939 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9940
9941         * combine.c (can_combine_p): Fix a comment typo.
9942
9943 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9944
9945         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9946         empty list correctly.  Change loop index $t to $f for
9947         consistency with rest of Makefile.
9948
9949 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9950
9951         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9952         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9953
9954         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9955         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9956         (altivec_init_builtins): Same.
9957         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9958         (altivec_expand_binop_builtin): Same.
9959         (altivec_expand_ternop_builtin): Same.
9960         (bdesc_dst): New.
9961
9962         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9963         ("altivec_vctuxs"): Fix typo.
9964         ("altivec_vnmsubfp"): Same.
9965         ("altivec_dssall"): New.
9966         ("altivec_mfvscr"): New.
9967         ("altivec_dss"): New.
9968         ("altivec_lvsl"): New.
9969         ("altivec_lvsr"): New.
9970         ("altivec_dstt"): New.
9971         ("altivec_dstst"): New.
9972         ("altivec_dststt"): New.
9973         ("altivec_dst"): New.
9974
9975         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9976         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9977
9978 2002-01-09  Richard Henderson  <rth@redhat.com>
9979
9980         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9981
9982 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9983
9984         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9985         function.
9986         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9987         prototype.
9988         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9989
9990 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9991
9992         * read-rtl.c: Fix formatting.
9993         * real.c: Likewise.
9994         * regclass.c: Likewise.
9995         * regrename.c: Likewise.
9996         * reg-stack.c: Likewise.
9997         * reload1.c: Likewise.
9998         * reload.c: Likewise.
9999         * rtl.c: Likewise.
10000
10001 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10002
10003         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10004         to extract items in the expr_list chain.
10005
10006 2002-01-09  Richard Henderson  <rth@redhat.com>
10007
10008         * config/vax/vax.c (vax_rtx_cost): Never abort.
10009
10010         * config/vax/vax.h (REAL_ARITHMETIC): Define.
10011
10012 2002-01-09  Jan Hubicka  <jh@suse.cz>
10013
10014         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10015
10016 2002-01-09  Richard Henderson  <rth@redhat.com>
10017
10018         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10019         Unify code from various alternatives.
10020
10021 2002-01-09  Richard Henderson  <rth@redhat.com>
10022
10023         * regrename.c (copy_value): Ignore the copy if the source register
10024         is present in the value chain with a narrower mode.
10025
10026 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
10027
10028         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10029         for the c4x target. Also improve layout.
10030
10031 2002-01-09  Richard Henderson  <rth@redhat.com>
10032
10033         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10034         * config/m32r/m32r.md (and ior xor splitters): Swap operands
10035         to match insn patterns.
10036
10037 2002-01-09  Richard Henderson  <rth@redhat.com>
10038
10039         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10040         (copyprop_hardreg_forward_1): Likewise.
10041
10042 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10043
10044         * pa.md (decrement_and_branch_until_zero): Change predicate for
10045         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10046
10047 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10048
10049         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10050         gets undefined. For Darwin.
10051
10052 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10053
10054         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10055
10056 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10057
10058         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10059
10060 2002-01-08  Richard Henderson  <rth@redhat.com>
10061
10062         * regrename.c (copy_value): Ignore overlapping copies.
10063
10064 2002-01-08  Richard Henderson  <rth@redhat.com>
10065
10066         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10067         as needed to avoid shared structure.
10068
10069 2002-01-08  Kazu Hirata  <kazu@hxi.com>
10070
10071         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10072         H8/300H and H8/S.
10073
10074 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10075
10076         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10077         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10078         documentation of obsolete macros.
10079         * system.h: Poison these macros.
10080         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10081         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10082         config/c4x/c4x.h, config/clipper/clipper.h,
10083         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10084         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10085         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10086         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10087         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10088         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10089         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10090         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10091         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10092         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10093         config/sparc/sparc.h, config/stormy16/stormy16.h,
10094         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10095         definitions and commented out definitions of obsolete macros.
10096         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10097         of MAX_INT_TYPE_SIZE.
10098
10099 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10100
10101         * config/s390/s390.c (s390_preferred_reload_class): Never
10102         return ADDR_REGS if it isn't a subset of the given class.
10103         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10104         FP_REGS, but all superclasses as well.
10105
10106         * config/s390/s390.c (s390_function_profiler): Fix thinko.
10107
10108         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10109         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10110         must not be a const_int.
10111
10112 2002-01-08  Richard Henderson  <rth@redhat.com>
10113
10114         * Makefile.in (toplev.o): Depend on options.h.
10115         (gcc.o): Depend on specs.h.
10116
10117 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
10118
10119         * expr.c (store_expr): Convert VOIDmode constants back to target's
10120         mode.
10121
10122 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10123
10124         * doc/invoke.texi: Markup gcc as @command.  Refer to
10125         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10126         of http://gcc.gnu.org/thanks.html.
10127
10128 2002-01-08  Dale Johannesen  <dalej@apple.com>
10129
10130         * config/rs6000/rs6000.md: Add missing int register
10131         target case to movdf_low.
10132
10133 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10134
10135         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10136         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10137         (cppinit.o): Depend on except.h.
10138         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10139         s-specs): New rules.
10140
10141         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10142         Don't create specs.h/options.h/gencheck.h here.  Remove
10143         unnecessary variable settings from last argument of AC_OUTPUT.
10144         * config.in, configure: Regenerate.
10145         * intl.c: Hardcode package name as "gcc".
10146
10147         * cppinit.c: Include except.h.
10148         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10149         appropriate.
10150         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10151         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10152         (!)USING_SJLJ_EXCEPTIONS.
10153         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10154
10155 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10156
10157         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10158         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10159         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10160         documentation of obsolete macros.
10161         * system.h: Poison these macros.
10162         * config/d30v/d30v.h, config/ns32k/encore.h,
10163         config/stormy16/stormy16.h: Remove definitions and commented out
10164         definitions of obsolete macros.
10165
10166 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10167
10168         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10169         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10170         warnings.
10171
10172 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10173
10174         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10175         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10176         to insn adjusting stack/frame pointer.
10177         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10178         accept operands that cause the insn to be non-splittable.
10179
10180 2002-01-08  Graham Stott  <grahams@redhat.com>
10181
10182         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10183         (C_TYPE_FIELDS_VOLATILE): Likewise.
10184         (C_TYPE_BEING_DEFINED): Likewise.
10185         (C_IS_RESERVED_WORD): Likewise.
10186         (C_TYPE_VARIABLE_SIZE): Likewise.
10187         (C_DECL_VARIABLE_SIZE): Likewise.
10188         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10189         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10190         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10191         parenthesis.
10192         (C_DECL_ANTICIPATED): Likewise.
10193         (c_build_type_variant): Add parenthesis.
10194
10195 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10196
10197         * gcc.c (option_map): Remove --version.
10198         (process_command): Handle -fversion following the GNU Coding
10199         Standards.  Partially addresses PR other/704.
10200
10201 2002-01-08  Graham Stott  <grahams@redhat.com>
10202
10203         * combine.c (combine_instructions): Fix typo.
10204
10205 2002-01-08  Graham Stott  <grahams@redhat.com>
10206
10207         * debug.h: Use "tree" and "rtx" throughout.
10208
10209         * debug.c: Likewise.
10210
10211 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10212
10213         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10214         constant pool, use the pool's version of the symbol instead.
10215
10216 2002-01-07  Richard Henderson  <rth@redhat.com>
10217
10218         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10219         the original register was copied in a mode with a fewer number of
10220         hard registers than the desired mode.
10221         (copyprop_hardreg_forward_1): Likewise.
10222         (debug_value_data): Fix loop test.
10223         * toplev.c (parse_options_and_default_flags): Reenable
10224         -fcprop-registers at -O1.
10225
10226 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10227
10228         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10229         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10230
10231         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10232         predicates.
10233
10234         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10235
10236 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10237
10238         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10239         (pa_output_function_prologue): Output local label at the beginning of
10240         the prologue when profiling.
10241         (hppa_profile_hook): Use the local label rather than the function label.
10242         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10243
10244 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10245
10246         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10247         (altivec_expand_unop_builtin): Fix thinko.
10248         (altivec_expand_binop_builtin): Same.
10249         (altivec_expand_ternop_builtin): Same.
10250         (altivec_expand_builtin): Same.
10251
10252 2002-01-07  Richard Henderson  <rth@redhat.com>
10253
10254         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10255
10256 2002-01-07  Jason Merrill  <jason@redhat.com>
10257
10258         * unwind-dw2.c (execute_cfa_program): Use < again.
10259
10260 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10261
10262         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10263
10264 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10265
10266         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10267         Don't allow -1 - x -> ~x simplifications in the first pass.
10268
10269 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10270
10271         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10272         arguments.
10273         (altivec_expand_binop_builtin): Same.
10274         (altivec_expand_unop_builtin): Same.
10275         (print_operand): Fix typo.
10276         (bdesc_1arg): Add vupk* variants.
10277
10278         * rs6000.h (rs6000_builtins): Add vupk* enums.
10279
10280         * rs6000.md: Add altivec_vupk* variants.
10281
10282 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10283
10284         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10285         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10286         and last update dates.
10287
10288 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10289
10290         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10291
10292 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10293
10294         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10295         * config/avr/avr.h (CPP_SPEC): Likewise.
10296         (LINK_SPEC): Likewise.
10297         (CRT_BINUTILS_SPECS): Likewise.
10298         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10299         * doc/invoke.texi (AVR Options): Document them.
10300
10301 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10302
10303         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10304         LABEL_NUSES.
10305
10306 2002-01-07  Graham Stott  <grahams@redhat.com>
10307
10308         * config/i386/i386.h: Update copyright date.
10309         (HALF_PIC_PTR): Add parenthesis.
10310         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10311         (CONSTANT_ALIGNMENT): Add parenthesis.
10312         (DATA_ALIGNMENT): Likewise.
10313         (LOCAL_ALIGNMENT): Likewise.
10314         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10315         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10316         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10317         (HARD_REGNO_NREGS): Add paranethesis.
10318         (VALID_SSE_REG_MODE): Whitespace.
10319         (VALID_MMX_REG_MODE): Whitespace.
10320         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10321         (ix86_hard_regno_mode_ok): Add parenthesis.
10322         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10323         (RETURN_IN_MEMORY): Whitespace.
10324         (N_REG_CLASSES): Add parenthesis.
10325         (INTEGER_CLASS_P): Add parenthesis and wrap.
10326         (FLOAT_CLASS_P): Likewise.
10327         (SSE_CLASS_P): Likewise.
10328         (MMX_CLASS_P): Likewise.
10329         (MAYBE_INTEGER_CLASS_P): Likewise.
10330         (MAYBE_FLOAT_CLASS_P): Likewise.
10331         (MAYBE_SSE_CLASS_P): Likewise.
10332         (MAYBE_MMX_CLASS_P): Likewise.
10333         (Q_CLASS_P): Likewise.
10334         (GENERAL_REGNO_P): Uppercase macro parameter.
10335         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10336         (FP_REGNO_P): Likewise.
10337         (ANY_FP_REGNO_P): Uppercase macro parameter.
10338         (SSE_REGNO_P): Likewise.
10339         (SSE_REGNO): Likewise.
10340         (SSE_REG_P): Likewise.
10341         (SSE_FLOAT_MODE_P): Likewise.
10342         (MMX_REGNO_P): Likewise.
10343         (MMX_REG_P):Likewise.
10344         (STACK_REG_P): Likewise.
10345         (NON_STACK_REG_P): Likewise.
10346         (STACK_TOP_P): Likewise.
10347         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10348         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10349         (SECONDARY_MEMORY_NEEDED): Likewise.
10350         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10351         (MD_ASM_CLOBBERS): Whitespace and wrap.
10352         (MUST_PASS_IN_STACK): Whitespace and wrap.
10353         (RETURN_POPS_ARGS): Add parenthesis.
10354         (INIT_CUMULATIVE_ARGS): Likewise.
10355         (FUNCTION_ARG): Likewise.
10356         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10357         (SETUP_INCOMING_VARARGS): Likewise.
10358         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10359         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10360         parenthsis.
10361         (EXPAND_BUILTIN_VA_ARG): Likewise.
10362         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10363         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10364         (INITIAL_ELIMINATION_OFFSET): Likewise.
10365         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10366         (REGNO_OK_FOR_BASE_P): Likewise.
10367         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10368         (REGNO_OK_FOR_DIREG_P): Likewise.
10369         (REG_OK_FOR_INDEX_P): Whitespace.
10370         (REG_OK_FOR_BASE_P): Whitespace.
10371         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10372         parenthesis.
10373         (FIND_BASE_TERM): Fix typo.
10374         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10375         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10376         (SYMBOLIC_CONST; Whitespace.
10377         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10378         (ENCODE_SECTION_INFO): Whitespace.
10379         (FINALIZE_PIC): Remove do { ... } while (0).
10380         (PROMOTE_MODE): Wrap in do { ... } while (0).
10381         (CONST_COSTS): Whitespace.
10382         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10383         (REGISTER_MOVE_COST): Add parenthesis.
10384         (MEMORY_MOVE_COST): Likewise.
10385         (EXTRA_CC_MODES): Whitespace.
10386         (SELECT_CC_MODE): Add parenthesis and whitespace.
10387         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10388         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10389         (ASM_OUTPUT_LABEL): Add paramethesis.
10390         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10391         (ASM_OUTPUT_REG_POP): Likewise.
10392         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10393         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10394
10395         * config/i386/i386.c: Update copyright.
10396         (CHECK_STACK_LIMIT): Add parenthesis.
10397         (AT_BP): Uppercase macro parameter.
10398         (x86_64_int_parameter_registers): Constify.
10399         (x86_64_int_return_registers): Likewise.
10400         (ix86_compare_op0): Use rtx.
10401         (construct_container): Constify INTREG parameter.
10402         (function_arg): Use rtx.
10403
10404         * diagnostic.h: Update copyright date.
10405         (output_buffer_state): Add parenthesis.
10406         (output_buffer_format_args): Likewise.
10407
10408         * combine.c (combine_instructions): Replace XEXP (links, 0)
10409         with link.
10410
10411 2002-01-06  H.J. Lu <hjl@gnu.org>
10412
10413         * cfgcleanup.c (thread_jump): Fix 2 typos.
10414
10415 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10416
10417         * config.gcc: Add support for --enable-altivec.
10418
10419 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10420
10421         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10422
10423 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10424
10425         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10426         __objc_class_name_*.
10427
10428 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10429
10430         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10431
10432 2002-01-06  Richard Henderson  <rth@redhat.com>
10433
10434         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10435         nop them out.  Increment label reference count for REG_LABEL.
10436         (fill_slots_from_thread): Frob label reference count around
10437         delete_related_insns.
10438
10439 2002-01-05  Richard Henderson  <rth@redhat.com>
10440
10441         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10442         jump threading.
10443
10444 2002-01-05  Richard Henderson  <rth@redhat.com>
10445
10446         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10447         * integrate.c (output_inline_function): Likewise.
10448         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10449         to remove_unnecessary_notes after emitting abstract instance.
10450         Force an emitted nested function to have its parent emited as well.
10451         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10452         for null.
10453         (rtl_for_decl_location): Do not look at reload data structures
10454         before reload has run.
10455
10456 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10457
10458         * cse.c: Fix formatting.
10459         * dwarf2asm.c: Likewise.
10460         * dwarf2out.c: Likewise.
10461         * explow.c: Likewise.
10462         * expmed.c: Likewise.
10463         * function.c: Likewise.
10464         * gcov.c: Likewise.
10465         * gencheck.c: Likewise.
10466         * genrecog.c: Likewise.
10467         * ggc-common.c: Likewise.
10468         * ggc-page.c: Likewise.
10469         * global.c: Likewise.
10470
10471 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10472
10473         * combine.c: Fix formatting.
10474
10475 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10476
10477         PR middle-end/1557
10478         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10479
10480 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10481
10482         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10483         as 1 for __powerpc64__ as well.
10484
10485         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10486
10487         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10488         return it.
10489
10490 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10491
10492         * lcm.c: Revert change, due to performance regression it causes on
10493         SPEC because it's slightly more conservative (sigh, I hate
10494         edge-based LCM).
10495
10496 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10497
10498         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10499
10500 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10501
10502         * doc/cppinternals.texi: Update.
10503
10504 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10505
10506         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10507         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10508         negatives.
10509         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10510         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10511         kludge for pre-october-14th mmix versions to handle new-found bug
10512         with PUSHJ/PUSHGO and the register stack.
10513         * config/mmix/mmix.h (struct machine_function): Rename member
10514         has_call_value_without_parameters to has_call_without_parameters.
10515         All referers changed.
10516         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10517         TARGET_MASK_BRANCH_PREDICT): New macros.
10518         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10519         -mno-reg-stack-fill-bug-workaround.
10520         * config/mmix/mmix.md ("call"): Set struct machine member
10521         has_call_without_parameters.
10522
10523 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10524
10525         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10526
10527 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10528
10529         * cfgcleanup.c: Include tm_p.h
10530         (mark_effect): Fix handling of hard register; fix handling of SET
10531
10532 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10533
10534         * config/h8300/h8300.md (anonymous patterns): Check that
10535         operands are registers before using REGNO on them.
10536
10537 2002-01-03  Roland McGrath  <roland@frob.com>
10538
10539         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10540
10541 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10542
10543         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10544         * c-common.h (genrtl_expr_stmt_value): Likewise.
10545         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10546         (expand_expr_stmt_value): Add maybe_last argument.
10547         Don't warn about statement with no effect if it is the last statement
10548         in expression statement.
10549         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10550         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10551         expand_expr_stmt_value.
10552         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10553         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10554         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10555         as maybe_last to expand_expr_stmt_value.
10556
10557 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10558
10559         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10560         be passed in, do not build it.
10561         (c_begin_if_stmt): New function.
10562         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10563         * c-common.h (c_expand_start_cond): Update prototype.
10564         (c_begin_if_stmt): Prototype new function.
10565         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10566         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10567         c_begin_while_stmt and c_finish_while_stmt_cond.
10568
10569 2002-01-04  William Cohen  <wcohen@redhat.com>
10570
10571         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10572         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10573         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10574         * config/pa/som.h (ASM_FILE_START): Likewise.
10575
10576 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10577
10578         * lcm.c: Include df.h.
10579         Add available_transfer_function prototype.
10580         (compute_available): Rework to use iterative dataflow framework.
10581         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10582         with bb_info in df.h
10583         (available_transfer_function): New function.
10584
10585         * Makefile.in (lcm.o): add df.h to dependencies.
10586
10587 2002-01-04  Richard Henderson  <rth@redhat.com>
10588
10589         * config/alpha/alpha.c (some_operand): Accept HIGH.
10590         (input_operand): Likewise; accept simple references to globals.
10591         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10592         (alpha_const_double_ok_for_letter_p): Likewise.
10593         (alpha_extra_constraint): Likewise.
10594         (alpha_preferred_reload_class): Likewise.  Do not force
10595         symbolic constants to memory.
10596         (alpha_legitimate_address_p): Accept simple references
10597         to small_symbolic_operand.
10598         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10599         called when no_new_pseudos.  Emit simple symbolic references.
10600         Split integers into low, high, and rest.
10601         (alpha_expand_mov): Use alpha_legitimize_address.
10602         (some_small_symbolic_mem_operand): New.
10603         (split_small_symbolic_mem_operand): New.
10604         * config/alpha/alpha-protos.h: Update.
10605         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10606         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10607         (EXTRA_CONSTRAINT): Likewise.
10608         (PREFERRED_RELOAD_CLASS): Likewise.
10609         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10610         (PREDICATE_CODES): Update.
10611         * config/alpha/alpha.md: New post-reload splitters to convert
10612         simplfied symbolic operands to the form that references $29.
10613         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10614         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10615
10616 2002-01-03  Richard Henderson  <rth@redhat.com>
10617
10618         * local-alloc.c (function_invariant_p): Update commentary.
10619
10620 2002-01-04  H.J. Lu <hjl@gnu.org>
10621
10622         * toplev.c (rest_of_compilation): Fix a typo when calling
10623         cleanup_cfg.
10624
10625 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10626
10627         * c-common.c: Fix formatting.
10628         * diagnostic.c: Likewise.
10629         * doloop.c: Likewise.
10630         * dwarf2out.c: Likewise.
10631
10632 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10633
10634         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10635         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10636
10637 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10638
10639         * cpperror.c: Update comments and copyright.
10640         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10641         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10642
10643 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10644
10645         * collect2.c (main): Use strcmp when testing for "-shared".
10646
10647 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10648
10649         * cppmacro.c: Don't include intl.h.  Update comments.
10650         (new_number_token): Allocate enough buffer for 64-bit unsigned
10651         integers; update prototype.
10652         * cppmain.c: Update comments.
10653
10654 2002-01-03  William Cohen  <wcohen@redhat.com>
10655
10656         * function.h (struct function): Add profile.
10657         (current_function_profile): New.
10658         doc/extend.texi: Update documentation.
10659         * final.c (final_start_function): Use current_function_profile
10660         instead of profile_flag.
10661         (profile_after_prologue): Likewise.
10662         * function.c (expand_function_start): Likewise.
10663         (expand_function_start): Likewise.
10664         * config/alpha/alpha.c (direct_call_operand):
10665         (alpha_does_function_need_gp): Likewise.
10666         (alpha_expand_prologue): Likewise.
10667         * config/arm/arm.c (arm_expand_prologue): Likewise.
10668         thumb_expand_prologue: Likewise.
10669         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10670         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10671         (fr30_expand_prologue): Likewise.
10672         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10673         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10674         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10675         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10676         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10677         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10678         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10679         (m32r_expand_prologue): Likewise.
10680         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10681         (m88k_expand_prologue): Likewise.
10682         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10683         * config/mips/mips.c (compute_frame_size): Likewise.
10684         (mips_expand_prologue): Likewise.
10685         (mips_can_use_return_insn): Likewise.
10686         * config/pa/elf.h (ASM_FILE_START): Likewise.
10687         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10688         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10689         * config/pa/som.h (ASM_FILE_START): Likewise.
10690         * config/romp/romp.c (romp_using_r14): Likewise.
10691         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10692         (rs6000_stack_info): Likewise.
10693         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10694         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10695         * config/v850/v850.c (compute_register_save_size): Likewise.
10696
10697 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10698
10699         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10700         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10701
10702 2002-01-03  Turly O'Connor  <turly@apple.com>
10703
10704         * darwin.c (machopic_output_possible_stub_label): Don't generate
10705         stub routines for pseudo-stubs which we've just defined.
10706
10707 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10708
10709         * builtins.c: Fix formatting.
10710         * c-typeck.c: Likewise.
10711         * combine.c: Likewise.
10712         * expr.c: Likewise.
10713         * loop.c: Likewise.
10714
10715 2002-01-03  Andreas Schwab  <schwab@suse.de>
10716
10717         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10718         and return true if _cpp_push_next_buffer pushed a new include
10719         file.
10720         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10721         _cpp_pop_file_buffer did not push a new file.
10722         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10723
10724 2002-01-02  Eric Christopher  <echristo@redhat.com>
10725
10726         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10727         FIND_REG_INC_NOTE call. Update copyright.
10728         * loop.c (canonicalize_condition): Ditto.
10729         * reorg.c (delete_scheduled_jump): Ditto.
10730
10731 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10732
10733         * gcse.c: Fix formatting.
10734
10735 2002-01-03  Graham Stott  <grahams@redhat.com>
10736
10737         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10738         forward defs for struct tags rtx_def, union_tree, rtvec_def
10739         also output corresponding typedefs for rtx, tree, and rtvec.
10740
10741         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10742         rtvec_def along with corresponding typedefs for rtx, tree, and
10743         rtvec to config.h, hconfig.h, tconfig.h.
10744
10745 2002-01-03  Graham Stott  <grahams@redhat.com>
10746
10747         * tree.h: Update copyright date.
10748         (IS_EXPR_CODE_CLASS): Add parenthesis.
10749         (TREE_SET_CODE): Add whitespace.
10750         (TREE_CHECK): Add parenthesis.
10751         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10752         (CST_OR_CONSTRUCTOR_CHECK):
10753         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10754         (TREE_SYMBOL_REFERENCED): Whitespace.
10755         (INT_CST_LT): Likewise.
10756         (INT_CST_LT_UNSIGNED): Likewise.
10757         (tree_real_cst): Unwrap comment.
10758         (tree_string): Likewise.
10759         (tree_complex): Likewise.
10760         (IDENTIFIER_POINTER): correct cast.
10761         (SAVE_EXPR_CONTEXT): Whitespace.
10762         (EXPR_WFL_FILENAME_NODE): Likewise.
10763         (EXPR_WFL_FILENAME): Remove parenthesis.
10764         (DECL_ORIGIN): Add parenthesis.
10765         (DECL_FROM_INLINE): Use NULL_TREE.
10766         (build_int_2): Whitespace.
10767         (build_type_variant): Add parenthesis.
10768
10769         * gcc/jcf-parse.c: Update copyright date.
10770         (yyparse): Constify resource_filename.
10771
10772 2002-01-03  Graham Stott  <grahams@redhat.com>
10773
10774         * rtl.h: Update copyright date.
10775         (RTL_CHECK1): Wrap long line.
10776         (RTL_CHECK2): Likewise.
10777         (RTL_CHECKC1): Wrap long line and whitespace.
10778         (RTL_CHECKC2): Likewise.
10779         (XWINT): Whitespace.
10780         (XINT): Likewise.
10781         (XSTR): Likewise.
10782         (XEXP): Likewise.
10783         (XVEC): Likewise.
10784         (XMODE): Likewise.
10785         (XBITMAP): Likewise.
10786         (XTREE): Likewise.
10787         (XBBDEF): Likewise.
10788         (XTMPL): Likewise.
10789         (X0WINT): Likewise.
10790         (X0INT):Likewise.
10791         (X0UINT): Likewise.
10792         (X0STR): Likewise.
10793         (X0EXP): Likewise.
10794         (X0VEC): Likewise.
10795         (X0MODE): Likewise.
10796         (X0BITMAP): Likewise.
10797         (X0TREE): Likewise.
10798         (X0BBDEF): Likewise.
10799         (X0ADVFLAGS): Likewise.
10800         (X0CSELIB): Likewise.
10801         (X0MEMATTR): Likewise.
10802         (XCWINT): Likewise.
10803         (XCINT): Likewise.
10804         (XCUINT): Likewise.
10805         (XCSTR): Likewise.
10806         (XCEXP): Likewise.
10807         (XCVEC): Likewise.
10808         (XCMODE): Likewise.
10809         (XCBITMAP): Likewise.
10810         (XCTREE): Likewise.
10811         (XCBBDEF): Likewise.
10812         (XCADVFLAGS): Likewise.
10813         (XCCSELIB): Likewise.
10814         (XC2EXP): Likewise.
10815         (INSN_UID): Likewise.
10816         (PREV_INSN): Likewise.
10817         (PATTERN): Likewise.
10818         (INSN_CODE): Likewise.
10819         (PUT_REG_NOTE_KIND): Likewise.
10820         (CODE_LABEL_NUMBER): Likewise.
10821         (NOTE_SOURCE_FILE): Likewise.
10822         (NOTE_BLOCK): Likewise.
10823         (NOTE_EH_HANDLER): Likewise.
10824         (NOTE_RANGE_INFO): Likewise.
10825         (NOTE_LIVE_INFO): Likewise.
10826         (NOTE_BASIC_BLOCK): Likewise.
10827         (NOTE_EXPECTED_VALUE): Likewise.
10828         (NOTE_LINE_NUMBER): Likewise.
10829         (LABEL_NAME): Likewise.
10830         (LABEL_NUSES): Likewise.
10831         (LABEL_ALTERNATE_NAME): Likewise.
10832         (ADDRESSOF_DECL): Likewise.
10833         (JUMP_LABEL): Likewise.
10834         (LABEL_NEXTREF): Likewise.
10835         (REGNO): Likewise.
10836         (ORIGINAL_REGNO: Likewise.
10837         (HARD_REGISTER_NUM_P): Add parenthesis.
10838         (SUBREG_REG): Whitespace.
10839         (SUBREG_BYTE): Likewise.
10840         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10841         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10842         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10843         (ASM_OPERANDS_INPUT_VEC): Likewise.
10844         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10845         (ASM_OPERANDS_INPUT): Likewise.
10846         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10847         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10848         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10849         (ASM_OPERANDS_INPUT_MODE): Likewise.
10850         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10851         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10852         (MEM_SET_IN_STRUCT_P): Minor reformat.
10853         (TRAP_CONDITION): Whitespace.
10854         (TRAP_CODE): Likewise.
10855         (COND_EXEC_TEST): Likewise.
10856         (COND_EXEC_CODE): Likewise.
10857         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10858         (PHI_NODE_P): Add parenthesis.
10859         (plus_constant): Whitespace and add parenthesis.
10860
10861 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10862
10863         * config/avr/avr.c: Fix comment typos.
10864         * config/c4x/c4x.md: Likewise.
10865         * config/dsp16xx/dsp16xx.h: Likewise.
10866         * config/dsp16xx/dsp16xx.md: Likewise.
10867         * config/i386/i386.md: Likewise.
10868         * config/ia64/ia64.c: Likewise.
10869         * config/m32r/m32r.h: Likewise.
10870         * config/m68hc11/m68hc11.md: Likewise.
10871         * config/mmix/mmix.c: Likewise.
10872         * config/mn10200/mn10200.c: Likewise.
10873         * config/romp/romp.c: Likewise.
10874         * config/sh/sh.c: Likewise.
10875         * config/stormy16/stormy16.c: Likewise.
10876         * config/stormy16/stormy16.h: Likewise.
10877         * config/stormy16/stormy16.md: Likewise.
10878
10879 2002-01-03  Graham Stott  <grahams@redhat.com>
10880
10881         * loop.h: Update copyright date.
10882         (LOOP_MOVABLES): Fix typo.
10883         (LOOP_REGS): Likewise.
10884         (LOOP_IVS): Likewise.
10885
10886 2002-01-03  Graham Stott  <grahams@redhat.com>
10887
10888         * cppinit.c: Update copyright date.
10889         Don't include output.h
10890         * Makefile.in: Update copyright date.
10891         Update dependency.
10892
10893 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10894
10895         PR c/5226
10896         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10897         (-pthread) Add to RS/6000 options.
10898
10899 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10900
10901         * except.c: Fix comment typos.
10902         * loop.c: Likewise.
10903         * varasm.c: Likewise.
10904         * doc/tm.texi: Fix a typo.
10905
10906 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10907
10908         * c-typeck.c (output_init_element): Allow initializing static storage
10909         duration objects with compound literals.
10910
10911 2002-01-02  Richard Henderson  <rth@redhat.com>
10912
10913         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10914         after abusing it.
10915
10916 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10917
10918         * gcc.c (default_compilers): Const-ify.
10919         * mips-tdump.c (stab_names): Likewise.
10920         * mips-tfile.c (map_coff_types, map_coff_storage,
10921         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10922         pseudo_ops_t, pseudo_ops): Likewise.
10923         * protoize.c (default_include): Likewise
10924
10925         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10926         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10927         Add array size in declaration.
10928         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10929         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10930         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10931         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10932         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10933         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10934         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10935         emtens, make_nan): Const-ify.
10936         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10937         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10938
10939 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10940
10941         * config.gcc (ia64-*-*): Set extra_headers.
10942         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10943         * config/alpha/t-osf: Remove.
10944         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10945
10946 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10947
10948         * config/rs6000/t-aix43: Revert previous change.
10949
10950 2002-01-02  Jason Merrill  <jason@redhat.com>
10951
10952         * c-decl.c (c_expand_body): Call outlining_inline_function when
10953         emitting an inline function out of line.
10954
10955 2002-01-02  Richard Henderson  <rth@redhat.com>
10956
10957         * dwarf2out.c (limbo_die_node): Add created_for member.
10958         (new_die): New argument created_for.  Update all callers.
10959         (mark_limbo_die_list): New.
10960         (dwarf2out_init): Register limbo_die_list as a root.
10961         (dwarf2out_finish): Force insert limbo dies into their function
10962         context.
10963
10964 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10965
10966         PR c++/5089
10967         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10968
10969 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10970
10971         * config/h8300/fixunssfsi.c: Update copyright.
10972         Fix comment typos.
10973         Fix formatting.
10974         * config/h8300/h8300.c: Update copyright.
10975         Eliminate warnings.
10976
10977 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10978
10979         * config/romp/romp.c: Fix comment formatting.
10980         * config/romp/romp.h: Likewise.
10981         * config/romp/romp.md: Likewise.
10982         * config/s390/s390.c: Likewise.
10983         * config/stormy16/stormy16.c: Likewise.
10984         * config/stormy16/stormy16.h: Likewise.
10985
10986 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10987
10988         * c-common.h (genrtl_expr_stmt_value): Declare.
10989         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10990         (genrtl_goto_stmt_value): ... this new function.  Pass new
10991         argument down to expand_expr_stmt_value, taking
10992         TREE_ADDRESSABLE into account.
10993         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10994         STMT_EXPR as addressable, i.e., one whose result we want.
10995         * expr.c (expand_expr): Don't save expression statement value
10996         of labeled_blocks or loop_exprs.
10997         * stmt.c (expand_expr_stmt): Redirect to...
10998         (expand_expr_stmt_value): ... this new function.  Use new
10999         argument to tell whether to save expression value.
11000         (expand_end_stmt_expr): Reset last_expr_type and
11001         last_expr_value if we don't have either.
11002         * tree-inline.c (declare_return_variable): Mark its use
11003         statement as addressable.
11004         * tree.h: Document new use of TREE_ADDRESSABLE.
11005         (expand_expr_stmt_value): Declare.
11006
11007 2002-01-01  Tom Rix  <trix@redhat.com>
11008
11009         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11010         rs6000_emit_allocate_stack.
11011
11012 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
11013
11014         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11015         ${srcdir}/ginclude/ to every entry in extra_headers.
11016         * configure: Regenerate.
11017         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11018         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11019         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11020         * ginclude/proto.h: Rename to config/convex/proto.h.
11021
11022 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11023
11024         * attribs.c (handle_vector_size_attribute): Use host_integerp
11025         and tree_int_cst; remove warnings.
11026         * caller-save.c (insert_restore): Add cast to get rid of warning.
11027         (insert_save): Likewise.
11028         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11029         * regmove.c (find_matches): Add temporary var to kill a warning.
11030
11031 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
11032
11033         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11034         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11035         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11036         (vms-dwarf2eh.o): Add Makefile rule.
11037         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11038         * config/alpha/vms-dwarf2eh.asm: New file.
11039
11040         * gcc.c (delete_if_ordinary): Delete all versions.
11041
11042 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11043
11044         * config/mmix/mmix.md: Update FIXME to not mention
11045         define_constants.
11046         (MMIX_rJ_REGNUM): New define_constants constant.
11047         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11048         "*movdicc_real"): Adjust contraints formatting.
11049         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11050         for branch prediction.
11051         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11052         output template.
11053         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11054         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11055         number.  Delete related FIXMEs.
11056         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11057         from number to MMIX_rJ_REGNUM.
11058         (TARGET_MASK_BRANCH_PREDICT): New.
11059         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11060         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
11061         value.  Add -mbranch-predict and -mno-branch-predict.
11062         (TARGET_VERSION): Drop date.
11063         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11064         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11065         for finding out global symbols.
11066         (mmix_asm_output_labelref): Revert condition for global symbol.
11067         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11068         (mmix_print_operand_punct_valid_p): A '+' is valid.
11069
11070 See ChangeLog.6 for earlier changes.